diff --git a/pkgs/development/python-modules/3to2/default.nix b/pkgs/development/python-modules/3to2/default.nix index b86e16ae0d4d..7832a765a05f 100644 --- a/pkgs/development/python-modules/3to2/default.nix +++ b/pkgs/development/python-modules/3to2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/a2wsgi/default.nix b/pkgs/development/python-modules/a2wsgi/default.nix index b2b5a03beac4..4706c97c9bc4 100644 --- a/pkgs/development/python-modules/a2wsgi/default.nix +++ b/pkgs/development/python-modules/a2wsgi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, asgiref -, httpx -, pdm-backend -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + asgiref, + httpx, + pdm-backend, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-UOgaxVqmCfosZm5CuswlxCTIiEzmBy8afpAhFLfuXWM="; }; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; nativeCheckInputs = [ asgiref diff --git a/pkgs/development/python-modules/aadict/default.nix b/pkgs/development/python-modules/aadict/default.nix index 4ddf06bbb700..8cf5bd7ba4dd 100644 --- a/pkgs/development/python-modules/aadict/default.nix +++ b/pkgs/development/python-modules/aadict/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pynose -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pynose, + setuptools, }: buildPythonPackage rec { @@ -16,21 +17,13 @@ buildPythonPackage rec { hash = "sha256-p3MorFXbtXNdqZRBhwJRvv4TX2h6twenoXhWE2OydwQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - six - ]; + dependencies = [ six ]; - nativeCheckInputs = [ - pynose - ]; + nativeCheckInputs = [ pynose ]; - pythonImportsCheck = [ - "aadict" - ]; + pythonImportsCheck = [ "aadict" ]; meta = with lib; { description = "An auto-attribute dict (and a couple of other useful dict functions)"; diff --git a/pkgs/development/python-modules/aafigure/default.nix b/pkgs/development/python-modules/aafigure/default.nix index b2a04d8ac599..0d519a1bddb7 100644 --- a/pkgs/development/python-modules/aafigure/default.nix +++ b/pkgs/development/python-modules/aafigure/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pillow }: +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, +}: buildPythonPackage rec { pname = "aafigure"; diff --git a/pkgs/development/python-modules/aardwolf/default.nix b/pkgs/development/python-modules/aardwolf/default.nix index 934133d0d705..72d309cd3298 100644 --- a/pkgs/development/python-modules/aardwolf/default.nix +++ b/pkgs/development/python-modules/aardwolf/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, arc4 -, asn1crypto -, asn1tools -, asyauth -, asysocks -, buildPythonPackage -, cargo -, colorama -, fetchFromGitHub -, iconv -, minikerberos -, pillow -, pyperclip -, pythonOlder -, rustPlatform -, rustc -, setuptools-rust -, tqdm -, unicrypto -, winsspi +{ + lib, + stdenv, + arc4, + asn1crypto, + asn1tools, + asyauth, + asysocks, + buildPythonPackage, + cargo, + colorama, + fetchFromGitHub, + iconv, + minikerberos, + pillow, + pyperclip, + pythonOlder, + rustPlatform, + rustc, + setuptools-rust, + tqdm, + unicrypto, + winsspi, }: buildPythonPackage rec { @@ -65,16 +66,12 @@ buildPythonPackage rec { tqdm unicrypto winsspi - ] ++ lib.optionals (stdenv.isDarwin) [ - iconv - ]; + ] ++ lib.optionals (stdenv.isDarwin) [ iconv ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "aardwolf" - ]; + pythonImportsCheck = [ "aardwolf" ]; meta = with lib; { description = "Asynchronous RDP protocol implementation"; diff --git a/pkgs/development/python-modules/abjad/default.nix b/pkgs/development/python-modules/abjad/default.nix index 3c501a029b18..9ff530afdf74 100644 --- a/pkgs/development/python-modules/abjad/default.nix +++ b/pkgs/development/python-modules/abjad/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ply -, roman -, uqbar -, pythonOlder -, pytestCheckHook -, lilypond +{ + lib, + buildPythonPackage, + fetchPypi, + ply, + roman, + uqbar, + pythonOlder, + pytestCheckHook, + lilypond, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { uqbar ]; - buildInputs = [ - lilypond - ]; + buildInputs = [ lilypond ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace abjad/io.py \ diff --git a/pkgs/development/python-modules/about-time/default.nix b/pkgs/development/python-modules/about-time/default.nix index d705bf5a3e15..f666ed760fd6 100644 --- a/pkgs/development/python-modules/about-time/default.nix +++ b/pkgs/development/python-modules/about-time/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "about_time" - ]; + pythonImportsCheck = [ "about_time" ]; meta = with lib; { description = "A cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions"; diff --git a/pkgs/development/python-modules/absl-py/default.nix b/pkgs/development/python-modules/absl-py/default.nix index 99271645f19a..9447d53ae699 100644 --- a/pkgs/development/python-modules/absl-py/default.nix +++ b/pkgs/development/python-modules/absl-py/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, lib -, fetchPypi -, setuptools -, six +{ + buildPythonPackage, + lib, + fetchPypi, + setuptools, + six, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-eCB5DvuzFnOc3otOGTVyQ/w2CKFSAkKIUT3ZaNfZWf8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # checks use bazel; should be revisited doCheck = false; diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index b32cadab4b2d..9c3cf1171dca 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -1,23 +1,24 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, llvmPackages -, pytest7CheckHook -, setuptools -, numpy -, packaging -, psutil -, pyyaml -, safetensors -, torch -, config -, cudatoolkit -, evaluate -, parameterized -, transformers +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + llvmPackages, + pytest7CheckHook, + setuptools, + numpy, + packaging, + psutil, + pyyaml, + safetensors, + torch, + config, + cudatoolkit, + evaluate, + parameterized, + transformers, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-E20pI5BrcTrMYrhriuOUl5/liSaQQy6eqRyCoauwb9Q="; }; - buildInputs = [ - llvmPackages.openmp - ]; + buildInputs = [ llvmPackages.openmp ]; build-system = [ setuptools ]; @@ -55,49 +54,56 @@ buildPythonPackage rec { pytest7CheckHook transformers ]; - preCheck = '' - export HOME=$(mktemp -d) - export PATH=$out/bin:$PATH - '' + lib.optionalString config.cudaSupport '' - export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas" - ''; + preCheck = + '' + export HOME=$(mktemp -d) + export PATH=$out/bin:$PATH + '' + + lib.optionalString config.cudaSupport '' + export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas" + ''; pytestFlagsArray = [ "tests" ]; - disabledTests = [ - # try to download data: - "FeatureExamplesTests" - "test_infer_auto_device_map_on_t0pp" + disabledTests = + [ + # try to download data: + "FeatureExamplesTests" + "test_infer_auto_device_map_on_t0pp" - # require socket communication - "test_explicit_dtypes" - "test_gated" - "test_invalid_model_name" - "test_invalid_model_name_transformers" - "test_no_metadata" - "test_no_split_modules" - "test_remote_code" - "test_transformers_model" + # require socket communication + "test_explicit_dtypes" + "test_gated" + "test_invalid_model_name" + "test_invalid_model_name_transformers" + "test_no_metadata" + "test_no_split_modules" + "test_remote_code" + "test_transformers_model" - # nondeterministic, tests GC behaviour by thresholding global ram usage - "test_free_memory_dereferences_prepared_components" + # nondeterministic, tests GC behaviour by thresholding global ram usage + "test_free_memory_dereferences_prepared_components" - # set the environment variable, CC, which conflicts with standard environment - "test_patch_environment_key_exists" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # RuntimeError: Dynamo is not supported on Python 3.12+ - "test_convert_to_fp32" - "test_send_to_device_compiles" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # usual aarch64-linux RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly - "CheckpointTest" - # TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' (it seems cpuinfo doesn't work here) - "test_mpi_multicpu_config_cmd" - ] ++ lib.optionals (!config.cudaSupport) [ - # requires ptxas from cudatoolkit, which is unfree - "test_dynamo_extract_model" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - # RuntimeError: torch_shm_manager: execl failed: Permission denied - "CheckpointTest" - ]; + # set the environment variable, CC, which conflicts with standard environment + "test_patch_environment_key_exists" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # RuntimeError: Dynamo is not supported on Python 3.12+ + "test_convert_to_fp32" + "test_send_to_device_compiles" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # usual aarch64-linux RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly + "CheckpointTest" + # TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' (it seems cpuinfo doesn't work here) + "test_mpi_multicpu_config_cmd" + ] + ++ lib.optionals (!config.cudaSupport) [ + # requires ptxas from cudatoolkit, which is unfree + "test_dynamo_extract_model" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ + # RuntimeError: torch_shm_manager: execl failed: Permission denied + "CheckpointTest" + ]; disabledTestPaths = lib.optionals (!(stdenv.isLinux && stdenv.isx86_64)) [ # numerous instances of torch.multiprocessing.spawn.ProcessRaisedException: @@ -107,9 +113,7 @@ buildPythonPackage rec { "tests/test_scheduler.py" ]; - pythonImportsCheck = [ - "accelerate" - ]; + pythonImportsCheck = [ "accelerate" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/accessible-pygments/default.nix b/pkgs/development/python-modules/accessible-pygments/default.nix index 2686ff12ecf0..0691be328f05 100644 --- a/pkgs/development/python-modules/accessible-pygments/default.nix +++ b/pkgs/development/python-modules/accessible-pygments/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pygments +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pygments, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pygments - ]; + dependencies = [ pygments ]; # Tests only execute pygments with these styles doCheck = false; diff --git a/pkgs/development/python-modules/accupy/default.nix b/pkgs/development/python-modules/accupy/default.nix index ee8e3c80a945..f8f9897a6b3a 100644 --- a/pkgs/development/python-modules/accupy/default.nix +++ b/pkgs/development/python-modules/accupy/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, mpmath -, numpy -, pybind11 -, pyfma -, eigen -, importlib-metadata -, pytestCheckHook -, matplotlib -, dufte -, perfplot +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + mpmath, + numpy, + pybind11, + pyfma, + eigen, + importlib-metadata, + pytestCheckHook, + matplotlib, + dufte, + perfplot, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pybind11 ]; - buildInputs = [ - eigen - ]; + buildInputs = [ eigen ]; dependencies = [ mpmath @@ -53,8 +52,8 @@ buildPythonPackage rec { ]; postConfigure = '' - substituteInPlace setup.py \ - --replace-fail "/usr/include/eigen3/" "${eigen}/include/eigen3/" + substituteInPlace setup.py \ + --replace-fail "/usr/include/eigen3/" "${eigen}/include/eigen3/" ''; preBuild = '' @@ -73,7 +72,10 @@ buildPythonPackage rec { done ''; - disabledTests = [ "test_speed_comparison1" "test_speed_comparison2" ]; + disabledTests = [ + "test_speed_comparison1" + "test_speed_comparison2" + ]; pythonImportsCheck = [ "accupy" ]; diff --git a/pkgs/development/python-modules/acme-tiny/default.nix b/pkgs/development/python-modules/acme-tiny/default.nix index f0e1d699a8ef..df1337a47df9 100644 --- a/pkgs/development/python-modules/acme-tiny/default.nix +++ b/pkgs/development/python-modules/acme-tiny/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, fusepy -, fuse -, openssl +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + fusepy, + fuse, + openssl, }: buildPythonPackage rec { @@ -25,7 +26,10 @@ buildPythonPackage rec { buildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ fusepy fuse ]; + nativeCheckInputs = [ + fusepy + fuse + ]; doCheck = false; # seems to hang, not sure diff --git a/pkgs/development/python-modules/acme/default.nix b/pkgs/development/python-modules/acme/default.nix index 65e930e07414..0b3ad8d27480 100644 --- a/pkgs/development/python-modules/acme/default.nix +++ b/pkgs/development/python-modules/acme/default.nix @@ -1,16 +1,17 @@ -{ buildPythonPackage -, certbot -, cryptography -, pyasn1 -, pyopenssl -, pyrfc3339 -, josepy -, pytz -, requests -, requests-toolbelt -, six -, werkzeug -, ndg-httpsclient +{ + buildPythonPackage, + certbot, + cryptography, + pyasn1, + pyopenssl, + pyrfc3339, + josepy, + pytz, + requests, + requests-toolbelt, + six, + werkzeug, + ndg-httpsclient, }: buildPythonPackage rec { @@ -20,8 +21,17 @@ buildPythonPackage rec { format = "setuptools"; propagatedBuildInputs = [ - cryptography pyasn1 pyopenssl pyrfc3339 pytz requests requests-toolbelt six - werkzeug ndg-httpsclient josepy + cryptography + pyasn1 + pyopenssl + pyrfc3339 + pytz + requests + requests-toolbelt + six + werkzeug + ndg-httpsclient + josepy ]; # does not contain any tests diff --git a/pkgs/development/python-modules/acoustics/default.nix b/pkgs/development/python-modules/acoustics/default.nix index 3f51f03e5e0d..67941fd6dedf 100644 --- a/pkgs/development/python-modules/acoustics/default.nix +++ b/pkgs/development/python-modules/acoustics/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, matplotlib -, numpy -, pandas -, pytestCheckHook -, pythonOlder -, scipy -, tabulate +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + matplotlib, + numpy, + pandas, + pytestCheckHook, + pythonOlder, + scipy, + tabulate, }: buildPythonPackage rec { @@ -20,7 +21,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "python-acoustics"; - repo = "python-acoustics"; + repo = "python-acoustics"; rev = "99d79206159b822ea2f4e9d27c8b2fbfeb704d38"; hash = "sha256-/4bVjlhj8ihpAFHEWPaZ/xBILi3rb8f0NmwAexJCg+o="; }; @@ -35,9 +36,7 @@ buildPythonPackage rec { tabulate ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR @@ -45,9 +44,7 @@ buildPythonPackage rec { echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; - pytestFlagsArray = [ - "-Wignore::DeprecationWarning" - ]; + pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; pythonImportsCheck = [ "acoustics" ]; diff --git a/pkgs/development/python-modules/acquire/default.nix b/pkgs/development/python-modules/acquire/default.nix index d03aa8456bec..5fed3a33b44d 100644 --- a/pkgs/development/python-modules/acquire/default.nix +++ b/pkgs/development/python-modules/acquire/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, defusedxml -, dissect-cstruct -, dissect-target -, fetchFromGitHub -, minio -, pycryptodome -, pytestCheckHook -, pythonOlder -, requests -, requests-toolbelt -, rich -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + defusedxml, + dissect-cstruct, + dissect-target, + fetchFromGitHub, + minio, + pycryptodome, + pytestCheckHook, + pythonOlder, + requests, + requests-toolbelt, + rich, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -51,13 +52,9 @@ buildPythonPackage rec { ] ++ dissect-target.optional-dependencies.full; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.full; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full; - pythonImportsCheck = [ - "acquire" - ]; + pythonImportsCheck = [ "acquire" ]; meta = with lib; { description = "Tool to quickly gather forensic artifacts from disk images or a live system"; diff --git a/pkgs/development/python-modules/actdiag/default.nix b/pkgs/development/python-modules/actdiag/default.nix index 070bcd72ed4a..e4069863bb21 100644 --- a/pkgs/development/python-modules/actdiag/default.nix +++ b/pkgs/development/python-modules/actdiag/default.nix @@ -1,11 +1,12 @@ -{ lib -, blockdiag -, buildPythonPackage -, fetchFromGitHub -, pynose -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + blockdiag, + buildPythonPackage, + fetchFromGitHub, + pynose, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - blockdiag - ]; + propagatedBuildInputs = [ blockdiag ]; nativeCheckInputs = [ pynose pytestCheckHook ]; - pytestFlagsArray = [ - "src/actdiag/tests/" - ]; + pytestFlagsArray = [ "src/actdiag/tests/" ]; disabledTests = [ # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches' @@ -45,9 +40,7 @@ buildPythonPackage rec { "noviewbox" ]; - pythonImportsCheck = [ - "actdiag" - ]; + pythonImportsCheck = [ "actdiag" ]; meta = with lib; { description = "Generate activity-diagram image from spec-text file (similar to Graphviz)"; diff --git a/pkgs/development/python-modules/acunetix/default.nix b/pkgs/development/python-modules/acunetix/default.nix index b28a6beefbc7..2c1800fbc503 100644 --- a/pkgs/development/python-modules/acunetix/default.nix +++ b/pkgs/development/python-modules/acunetix/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiofiles -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + aiofiles, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "acunetix" - ]; + pythonImportsCheck = [ "acunetix" ]; meta = with lib; { description = "Acunetix Web Vulnerability Scanner SDK for Python"; diff --git a/pkgs/development/python-modules/adafruit-io/default.nix b/pkgs/development/python-modules/adafruit-io/default.nix index 8aaa8b61fda7..3177c7804766 100644 --- a/pkgs/development/python-modules/adafruit-io/default.nix +++ b/pkgs/development/python-modules/adafruit-io/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, paho-mqtt -, pytestCheckHook -, pythonOlder -, requests -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + paho-mqtt, + pytestCheckHook, + pythonOlder, + requests, + setuptools-scm, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-JBpF08WGe1pMK1y7HZLH/jSQkJtbWdiTGYHWRd39UIk="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ paho-mqtt requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "Adafruit_IO" - ]; + pythonImportsCheck = [ "Adafruit_IO" ]; disabledTestPaths = [ # Tests requires valid credentials diff --git a/pkgs/development/python-modules/adafruit-pureio/default.nix b/pkgs/development/python-modules/adafruit-pureio/default.nix index 82d39fa23aba..0c2ce56f2d04 100644 --- a/pkgs/development/python-modules/adafruit-pureio/default.nix +++ b/pkgs/development/python-modules/adafruit-pureio/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-xM+7NlcxlC0fEJKhFvR9/a4K7xjFsn8QcrWCStXqjHw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # Physical SMBus is not present doCheck = false; - pythonImportsCheck = [ - "Adafruit_PureIO" - ]; + pythonImportsCheck = [ "Adafruit_PureIO" ]; meta = with lib; { description = "Python interface to Linux IO including I2C and SPI"; diff --git a/pkgs/development/python-modules/adal/default.nix b/pkgs/development/python-modules/adal/default.nix index 926f1696dfa8..9025dd327fb8 100644 --- a/pkgs/development/python-modules/adal/default.nix +++ b/pkgs/development/python-modules/adal/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpretty -, pyjwt -, pytestCheckHook -, python-dateutil -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpretty, + pyjwt, + pytestCheckHook, + python-dateutil, + requests, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sed -i '/cryptography/d' setup.py ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pyjwt @@ -45,9 +44,7 @@ buildPythonPackage rec { "test_failed_request" ]; - pythonImportsCheck = [ - "adal" - ]; + pythonImportsCheck = [ "adal" ]; meta = with lib; { description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources"; diff --git a/pkgs/development/python-modules/adax-local/default.nix b/pkgs/development/python-modules/adax-local/default.nix index 4571816cfa07..0f8cfb62a357 100644 --- a/pkgs/development/python-modules/adax-local/default.nix +++ b/pkgs/development/python-modules/adax-local/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, bleak -, buildPythonPackage -, fetchFromGitHub -, async-timeout -, pythonOlder +{ + lib, + aiohttp, + bleak, + buildPythonPackage, + fetchFromGitHub, + async-timeout, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "adax_local" - ]; + pythonImportsCheck = [ "adax_local" ]; meta = with lib; { description = "Module for local access to Adax"; diff --git a/pkgs/development/python-modules/adax/default.nix b/pkgs/development/python-modules/adax/default.nix index 19e1e9a6fb02..173fe1ce76b7 100644 --- a/pkgs/development/python-modules/adax/default.nix +++ b/pkgs/development/python-modules/adax/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "adax" - ]; + pythonImportsCheck = [ "adax" ]; meta = with lib; { description = "Python module to communicate with Adax"; diff --git a/pkgs/development/python-modules/adb-enhanced/default.nix b/pkgs/development/python-modules/adb-enhanced/default.nix index 739d34014357..ee26d23ce755 100644 --- a/pkgs/development/python-modules/adb-enhanced/default.nix +++ b/pkgs/development/python-modules/adb-enhanced/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, jdk11 -, psutil -, pythonOlder +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + jdk11, + psutil, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # Disable tests because they require a dedicated Android emulator doCheck = false; - pythonImportsCheck = [ - "adbe" - ]; + pythonImportsCheck = [ "adbe" ]; meta = with lib; { description = "Tool for Android testing and development"; diff --git a/pkgs/development/python-modules/adb-homeassistant/default.nix b/pkgs/development/python-modules/adb-homeassistant/default.nix index f411c85fbfd1..2385862e703e 100644 --- a/pkgs/development/python-modules/adb-homeassistant/default.nix +++ b/pkgs/development/python-modules/adb-homeassistant/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, libusb1 -, rsa -, pycryptodome -, pytest -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libusb1, + rsa, + pycryptodome, + pytest, + mock, }: buildPythonPackage { pname = "adb-homeassistant"; @@ -18,7 +19,6 @@ buildPythonPackage { repo = "python-adb"; rev = "5949bf432307cbba7128e84d7bc6add7f054a078"; sha256 = "0s3fazvbzchn1fsvjrd1jl8w9y4dvvgq6q8m8p5lr2gri0npr581"; - }; propagatedBuildInputs = [ @@ -27,7 +27,10 @@ buildPythonPackage { pycryptodome ]; - nativeCheckInputs = [ pytest mock ]; + nativeCheckInputs = [ + pytest + mock + ]; checkPhase = '' py.test test ''; diff --git a/pkgs/development/python-modules/adb-shell/default.nix b/pkgs/development/python-modules/adb-shell/default.nix index c2f189e2749a..ed62a5304618 100644 --- a/pkgs/development/python-modules/adb-shell/default.nix +++ b/pkgs/development/python-modules/adb-shell/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiofiles -, async-timeout -, buildPythonPackage -, cryptography -, fetchFromGitHub -, isPy3k -, libusb1 -, mock -, pyasn1 -, pythonAtLeast -, pycryptodome -, pytestCheckHook -, rsa +{ + lib, + aiofiles, + async-timeout, + buildPythonPackage, + cryptography, + fetchFromGitHub, + isPy3k, + libusb1, + mock, + pyasn1, + pythonAtLeast, + pycryptodome, + pytestCheckHook, + rsa, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { aiofiles async-timeout ]; - usb = [ - libusb1 - ]; + usb = [ libusb1 ]; }; nativeCheckInputs = [ @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "adb_shell" - ]; + pythonImportsCheck = [ "adb_shell" ]; meta = with lib; { description = "Python implementation of ADB with shell and FileSync functionality"; diff --git a/pkgs/development/python-modules/adblock/default.nix b/pkgs/development/python-modules/adblock/default.nix index 87f42fbd35b6..7faeab491f62 100644 --- a/pkgs/development/python-modules/adblock/default.nix +++ b/pkgs/development/python-modules/adblock/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, fetchFromGitHub -, fetchpatch -, buildPythonPackage -, rustPlatform -, pkg-config -, openssl -, publicsuffix-list -, pythonOlder -, libiconv -, CoreFoundation -, Security -, pytestCheckHook -, toml +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + buildPythonPackage, + rustPlatform, + pkg-config, + openssl, + publicsuffix-list, + pythonOlder, + libiconv, + CoreFoundation, + Security, + pytestCheckHook, + toml, }: buildPythonPackage rec { @@ -50,20 +51,20 @@ buildPythonPackage rec { hash = "sha256-1xmYmF5P7a5O9MilxDy+CVhmWMGRetdM2fGvTPy7JmM="; }; - nativeBuildInputs = [ - pkg-config - ] ++ (with rustPlatform; [ - cargoSetupHook - maturinBuildHook - ]); + nativeBuildInputs = + [ pkg-config ] + ++ (with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]); - buildInputs = [ - openssl - ] ++ lib.optionals stdenv.isDarwin [ - libiconv - CoreFoundation - Security - ]; + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.isDarwin [ + libiconv + CoreFoundation + Security + ]; PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"; @@ -92,6 +93,9 @@ buildPythonPackage rec { homepage = "https://github.com/ArniDagur/python-adblock/"; changelog = "https://github.com/ArniDagur/python-adblock/blob/${version}/CHANGELOG.md"; maintainers = with maintainers; [ dotlambda ]; - license = with licenses; [ asl20 /* or */ mit ]; + license = with licenses; [ + asl20 # or + mit + ]; }; } diff --git a/pkgs/development/python-modules/add-trailing-comma/default.nix b/pkgs/development/python-modules/add-trailing-comma/default.nix index 1bf592b99517..8b3fecc56001 100644 --- a/pkgs/development/python-modules/add-trailing-comma/default.nix +++ b/pkgs/development/python-modules/add-trailing-comma/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, tokenize-rt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + tokenize-rt, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-B+wjBy42RwabVz/6qEMGpB0JmwJ9hqSskwcNj4x/B/k="; }; - propagatedBuildInputs = [ - tokenize-rt - ]; + propagatedBuildInputs = [ tokenize-rt ]; - pythonImportsCheck = [ - "add_trailing_comma" - ]; + pythonImportsCheck = [ "add_trailing_comma" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A tool (and pre-commit hook) to automatically add trailing commas to calls and literals"; diff --git a/pkgs/development/python-modules/addict/default.nix b/pkgs/development/python-modules/addict/default.nix index 2a80935f3a22..36bab211bb4a 100644 --- a/pkgs/development/python-modules/addict/default.nix +++ b/pkgs/development/python-modules/addict/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/adguardhome/default.nix b/pkgs/development/python-modules/adguardhome/default.nix index a92e6e8ae33d..5dbaefc3db99 100644 --- a/pkgs/development/python-modules/adguardhome/default.nix +++ b/pkgs/development/python-modules/adguardhome/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace 0.0.0 ${version} ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "adguardhome" - ]; + pythonImportsCheck = [ "adguardhome" ]; meta = with lib; { description = "Python client for the AdGuard Home API"; diff --git a/pkgs/development/python-modules/adjusttext/default.nix b/pkgs/development/python-modules/adjusttext/default.nix index 6f4ca01a7ac0..233d5036dc98 100644 --- a/pkgs/development/python-modules/adjusttext/default.nix +++ b/pkgs/development/python-modules/adjusttext/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, packaging -, pythonOlder -, scipy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + packaging, + pythonOlder, + scipy, + setuptools, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "adjustText" - ]; + pythonImportsCheck = [ "adjustText" ]; meta = with lib; { description = "Iteratively adjust text position in matplotlib plots to minimize overlaps"; diff --git a/pkgs/development/python-modules/advantage-air/default.nix b/pkgs/development/python-modules/advantage-air/default.nix index ffe66565dc2c..569edb891c38 100644 --- a/pkgs/development/python-modules/advantage-air/default.nix +++ b/pkgs/development/python-modules/advantage-air/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-4rRR9IxzH5EiYfWzWYeyCwoLB2LetBVyH7L3nkvp+gA="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # No tests doCheck = false; - pythonImportsCheck = [ - "advantage_air" - ]; + pythonImportsCheck = [ "advantage_air" ]; meta = with lib; { description = "API helper for Advantage Air's MyAir and e-zone API"; diff --git a/pkgs/development/python-modules/advocate/default.nix b/pkgs/development/python-modules/advocate/default.nix index 532302b799c6..9ac86f369a6a 100644 --- a/pkgs/development/python-modules/advocate/default.nix +++ b/pkgs/development/python-modules/advocate/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ndg-httpsclient -, netifaces -, pyasn1 -, pyopenssl -, requests -, six -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ndg-httpsclient, + netifaces, + pyasn1, + pyopenssl, + requests, + six, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aemet-opendata/default.nix b/pkgs/development/python-modules/aemet-opendata/default.nix index dcf232247be9..03a71385fce1 100644 --- a/pkgs/development/python-modules/aemet-opendata/default.nix +++ b/pkgs/development/python-modules/aemet-opendata/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, geopy -, pythonOlder -, requests -, setuptools -, urllib3 -, wheel +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + geopy, + pythonOlder, + requests, + setuptools, + urllib3, + wheel, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - pythonImportsCheck = [ - "aemet_opendata.interface" - ]; + pythonImportsCheck = [ "aemet_opendata.interface" ]; meta = with lib; { description = "Python client for AEMET OpenData Rest API"; diff --git a/pkgs/development/python-modules/aenum/default.nix b/pkgs/development/python-modules/aenum/default.nix index c299864830af..3b25cf8bdf54 100644 --- a/pkgs/development/python-modules/aenum/default.nix +++ b/pkgs/development/python-modules/aenum/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyparsing -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pyparsing, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,32 +21,30 @@ buildPythonPackage rec { hash = "sha256-jL12zRjE+HD/ObJChNPqAo++hzGljfOqWB5DTFdblVk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pyparsing pytestCheckHook ]; - pythonImportsCheck = [ - "aenum" - ]; + pythonImportsCheck = [ "aenum" ]; - disabledTests = [ - # https://github.com/ethanfurman/aenum/issues/27 - "test_class_nested_enum_and_pickle_protocol_four" - "test_pickle_enum_function_with_qualname" - "test_stdlib_inheritence" - "test_subclasses_with_getnewargs_ex" - "test_arduino_headers" - "test_c_header_scanner" - "test_extend_flag_backwards_stdlib" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # AttributeError: has no attribute 'value'. Did you mean: 'blue'? - "test_extend_enum_shadow_property_stdlib" - ]; + disabledTests = + [ + # https://github.com/ethanfurman/aenum/issues/27 + "test_class_nested_enum_and_pickle_protocol_four" + "test_pickle_enum_function_with_qualname" + "test_stdlib_inheritence" + "test_subclasses_with_getnewargs_ex" + "test_arduino_headers" + "test_c_header_scanner" + "test_extend_flag_backwards_stdlib" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: has no attribute 'value'. Did you mean: 'blue'? + "test_extend_enum_shadow_property_stdlib" + ]; meta = with lib; { description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants"; diff --git a/pkgs/development/python-modules/aeppl/default.nix b/pkgs/development/python-modules/aeppl/default.nix index 514e585d6033..62067166d5df 100644 --- a/pkgs/development/python-modules/aeppl/default.nix +++ b/pkgs/development/python-modules/aeppl/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, aesara -, numpy -, scipy -, numdifftools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + aesara, + numpy, + scipy, + numdifftools, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-mqBbXwWJwQA2wSHuEdBeXQMfTIcgwYEjpq8AVmOjmHM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aesara @@ -43,9 +42,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d); ''; - pythonImportsCheck = [ - "aeppl" - ]; + pythonImportsCheck = [ "aeppl" ]; disabledTests = [ # Compute issue diff --git a/pkgs/development/python-modules/aesara/default.nix b/pkgs/development/python-modules/aesara/default.nix index edf3f989ecbc..a7e5ee143667 100644 --- a/pkgs/development/python-modules/aesara/default.nix +++ b/pkgs/development/python-modules/aesara/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, buildPythonPackage -, cons -, cython -, etuples -, fetchFromGitHub -, filelock -, hatch-vcs -, hatchling -, jax -, jaxlib -, logical-unification -, minikanren -, numba -, numba-scipy -, numpy -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, scipy -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + cons, + cython, + etuples, + fetchFromGitHub, + filelock, + hatch-vcs, + hatchling, + jax, + jaxlib, + logical-unification, + minikanren, + numba, + numba-scipy, + numpy, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + scipy, + typing-extensions, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "aesara" - ]; + pythonImportsCheck = [ "aesara" ]; disabledTestPaths = [ # Don't run the most compute-intense tests diff --git a/pkgs/development/python-modules/aesedb/default.nix b/pkgs/development/python-modules/aesedb/default.nix index fda6d316162a..e4c377895e43 100644 --- a/pkgs/development/python-modules/aesedb/default.nix +++ b/pkgs/development/python-modules/aesedb/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiowinreg -, buildPythonPackage -, colorama -, fetchFromGitHub -, pycryptodomex -, pythonOlder -, setuptools -, tqdm -, unicrypto +{ + lib, + aiowinreg, + buildPythonPackage, + colorama, + fetchFromGitHub, + pycryptodomex, + pythonOlder, + setuptools, + tqdm, + unicrypto, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-nYuMWE03Rsw1XuD/bxccpu8rddeXgS/EKJcO1VBLTLU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiowinreg @@ -39,9 +38,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "aesedb" - ]; + pythonImportsCheck = [ "aesedb" ]; meta = with lib; { description = "Parser for JET databases"; diff --git a/pkgs/development/python-modules/aetcd/default.nix b/pkgs/development/python-modules/aetcd/default.nix index 8a2652450cd1..77cd49ad8029 100644 --- a/pkgs/development/python-modules/aetcd/default.nix +++ b/pkgs/development/python-modules/aetcd/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, grpcio -, protobuf -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + grpcio, + protobuf, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aetcd" - ]; + pythonImportsCheck = [ "aetcd" ]; disabledTestPaths = [ # Tests require a running ectd instance diff --git a/pkgs/development/python-modules/afdko/default.nix b/pkgs/development/python-modules/afdko/default.nix index ed934eab350b..98e3ee4a9522 100644 --- a/pkgs/development/python-modules/afdko/default.nix +++ b/pkgs/development/python-modules/afdko/default.nix @@ -1,33 +1,34 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, fonttools -, defcon -, lxml -, fs -, unicodedata2 -, zopfli -, brotlipy -, fontpens -, brotli -, fontmath -, mutatormath -, booleanoperations -, ufoprocessor -, ufonormalizer -, tqdm -, setuptools-scm -, scikit-build -, cmake -, ninja -, antlr4_9 -, libxml2 -, pytestCheckHook -# Enables some expensive tests, useful for verifying an update -, runAllTests ? false -, afdko +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + fonttools, + defcon, + lxml, + fs, + unicodedata2, + zopfli, + brotlipy, + fontpens, + brotli, + fontmath, + mutatormath, + booleanoperations, + ufoprocessor, + ufonormalizer, + tqdm, + setuptools-scm, + scikit-build, + cmake, + ninja, + antlr4_9, + libxml2, + pytestCheckHook, + # Enables some expensive tests, useful for verifying an update + runAllTests ? false, + afdko, }: buildPythonPackage rec { @@ -80,11 +81,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ booleanoperations fonttools - lxml # fonttools[lxml], defcon[lxml] extra - fs # fonttools[ufo] extra - unicodedata2 # fonttools[unicode] extra - brotlipy # fonttools[woff] extra - zopfli # fonttools[woff] extra + lxml # fonttools[lxml], defcon[lxml] extra + fs # fonttools[ufo] extra + unicodedata2 # fonttools[unicode] extra + brotlipy # fonttools[woff] extra + zopfli # fonttools[woff] extra fontpens brotli defcon @@ -107,23 +108,26 @@ buildPythonPackage rec { rm -rf _skbuild ''; - disabledTests = lib.optionals (!runAllTests) [ - # Disable slow tests, reduces test time ~25 % - "test_report" - "test_post_overflow" - "test_cjk" - "test_extrapolate" - "test_filename_without_dir" - "test_overwrite" - "test_options" - ] ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [ - # unknown reason so far - # https://github.com/adobe-type-tools/afdko/issues/1425 - "test_spec" - ] ++ lib.optionals (stdenv.hostPlatform.isi686) [ - "test_dump_option" - "test_type1mm_inputs" - ]; + disabledTests = + lib.optionals (!runAllTests) [ + # Disable slow tests, reduces test time ~25 % + "test_report" + "test_post_overflow" + "test_cjk" + "test_extrapolate" + "test_filename_without_dir" + "test_overwrite" + "test_options" + ] + ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [ + # unknown reason so far + # https://github.com/adobe-type-tools/afdko/issues/1425 + "test_spec" + ] + ++ lib.optionals (stdenv.hostPlatform.isi686) [ + "test_dump_option" + "test_type1mm_inputs" + ]; passthru.tests = { fullTestsuite = afdko.override { runAllTests = true; }; diff --git a/pkgs/development/python-modules/affine/default.nix b/pkgs/development/python-modules/affine/default.nix index 4f121cbdbf94..c86ad95b71d6 100644 --- a/pkgs/development/python-modules/affine/default.nix +++ b/pkgs/development/python-modules/affine/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-ok2BjWqDbBMZdtIvjCe408oy0K9kwdjSnet7r6TaHuo="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/rasterio/affine/blob/${version}/CHANGES.txt"; @@ -34,5 +31,4 @@ buildPythonPackage rec { homepage = "https://github.com/rasterio/affine"; maintainers = with maintainers; [ mredaelli ]; }; - } diff --git a/pkgs/development/python-modules/afsapi/default.nix b/pkgs/development/python-modules/afsapi/default.nix index d971bc5b5e03..604452336ffe 100644 --- a/pkgs/development/python-modules/afsapi/default.nix +++ b/pkgs/development/python-modules/afsapi/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, lxml -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lxml, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp @@ -37,13 +36,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "async_tests.py" - ]; + pytestFlagsArray = [ "async_tests.py" ]; - pythonImportsCheck = [ - "afsapi" - ]; + pythonImportsCheck = [ "afsapi" ]; meta = with lib; { description = "Python implementation of the Frontier Silicon API"; diff --git a/pkgs/development/python-modules/agate-dbf/default.nix b/pkgs/development/python-modules/agate-dbf/default.nix index 1f3055b4600d..548ad6b5e40f 100644 --- a/pkgs/development/python-modules/agate-dbf/default.nix +++ b/pkgs/development/python-modules/agate-dbf/default.nix @@ -1,21 +1,32 @@ -{ lib, fetchPypi, buildPythonPackage, agate, dbf, dbfread }: +{ + lib, + fetchPypi, + buildPythonPackage, + agate, + dbf, + dbfread, +}: buildPythonPackage rec { - pname = "agate-dbf"; - version = "0.2.3"; - format = "setuptools"; + pname = "agate-dbf"; + version = "0.2.3"; + format = "setuptools"; - propagatedBuildInputs = [ agate dbf dbfread ]; + propagatedBuildInputs = [ + agate + dbf + dbfread + ]; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-mKK1N1cTbMdNwpflniEB009tSPQfdBVrtsDeJruiqj8="; - }; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-mKK1N1cTbMdNwpflniEB009tSPQfdBVrtsDeJruiqj8="; + }; - meta = with lib; { - description = "Adds read support for dbf files to agate"; - homepage = "https://github.com/wireservice/agate-dbf"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ vrthra ]; - }; + meta = with lib; { + description = "Adds read support for dbf files to agate"; + homepage = "https://github.com/wireservice/agate-dbf"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ vrthra ]; + }; } diff --git a/pkgs/development/python-modules/agate-excel/default.nix b/pkgs/development/python-modules/agate-excel/default.nix index 64b4718a2bc2..aad186601b7b 100644 --- a/pkgs/development/python-modules/agate-excel/default.nix +++ b/pkgs/development/python-modules/agate-excel/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, agate -, openpyxl -, xlrd -, olefile -, pytestCheckHook -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + agate, + openpyxl, + xlrd, + olefile, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { olefile ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "agate" - ]; + pythonImportsCheck = [ "agate" ]; meta = with lib; { description = "Adds read support for excel files to agate"; diff --git a/pkgs/development/python-modules/agate-sql/default.nix b/pkgs/development/python-modules/agate-sql/default.nix index 70cb2fbda688..e0449f27c0f7 100644 --- a/pkgs/development/python-modules/agate-sql/default.nix +++ b/pkgs/development/python-modules/agate-sql/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, agate -, sqlalchemy -, crate -, pytestCheckHook -, geojson +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + agate, + sqlalchemy, + crate, + pytestCheckHook, + geojson, }: buildPythonPackage rec { @@ -21,9 +22,16 @@ buildPythonPackage rec { hash = "sha256-mxswKEpXP9QWdZQ3Jz3MXIECK98vrLJLSqAppir9U7A="; }; - propagatedBuildInputs = [ agate sqlalchemy ]; + propagatedBuildInputs = [ + agate + sqlalchemy + ]; - nativeCheckInputs = [ crate geojson pytestCheckHook ]; + nativeCheckInputs = [ + crate + geojson + pytestCheckHook + ]; pythonImportsCheck = [ "agatesql" ]; diff --git a/pkgs/development/python-modules/agate/default.nix b/pkgs/development/python-modules/agate/default.nix index 48a30b9a40ef..7af42df65a52 100644 --- a/pkgs/development/python-modules/agate/default.nix +++ b/pkgs/development/python-modules/agate/default.nix @@ -1,20 +1,21 @@ -{ lib -, babel -, buildPythonPackage -, cssselect -, fetchFromGitHub -, glibcLocales -, isodate -, leather -, lxml -, parsedatetime -, pyicu -, pynose -, python-slugify -, pythonOlder -, pytimeparse -, pytz -, setuptools +{ + lib, + babel, + buildPythonPackage, + cssselect, + fetchFromGitHub, + glibcLocales, + isodate, + leather, + lxml, + parsedatetime, + pyicu, + pynose, + python-slugify, + pythonOlder, + pytimeparse, + pytz, + setuptools, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ babel @@ -57,9 +56,7 @@ buildPythonPackage rec { LC_ALL="en_US.UTF-8" nosetests tests ''; - pythonImportsCheck = [ - "agate" - ]; + pythonImportsCheck = [ "agate" ]; meta = with lib; { description = "Python data analysis library that is optimized for humans instead of machines"; diff --git a/pkgs/development/python-modules/agent-py/default.nix b/pkgs/development/python-modules/agent-py/default.nix index 584feec88dde..3bcb124337b0 100644 --- a/pkgs/development/python-modules/agent-py/default.nix +++ b/pkgs/development/python-modules/agent-py/default.nix @@ -1,4 +1,12 @@ -{ aiohttp, buildPythonPackage, fetchPypi, isPy3k, lib, python, requests }: +{ + aiohttp, + buildPythonPackage, + fetchPypi, + isPy3k, + lib, + python, + requests, +}: buildPythonPackage rec { pname = "agent-py"; @@ -12,7 +20,10 @@ buildPythonPackage rec { sha256 = "1hx88m8b8kfb2gm6hii5ldjv7hlvqf99cz0w2vj0d0grrxcbn5cz"; }; - propagatedBuildInputs = [ requests aiohttp ]; + propagatedBuildInputs = [ + requests + aiohttp + ]; checkPhase = '' ${python.interpreter} tests/test_agent.py diff --git a/pkgs/development/python-modules/aggdraw/default.nix b/pkgs/development/python-modules/aggdraw/default.nix index a83de3540fcd..06e092b4a605 100644 --- a/pkgs/development/python-modules/aggdraw/default.nix +++ b/pkgs/development/python-modules/aggdraw/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, packaging -, setuptools -, pkgconfig -, freetype -, pytest -, python -, pillow -, numpy +{ + lib, + fetchFromGitHub, + buildPythonPackage, + packaging, + setuptools, + pkgconfig, + freetype, + pytest, + python, + pillow, + numpy, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pkgconfig ]; - buildInputs = [ - freetype - ]; + buildInputs = [ freetype ]; nativeCheckInputs = [ numpy diff --git a/pkgs/development/python-modules/ago/default.nix b/pkgs/development/python-modules/ago/default.nix index 59aaf184a6fc..ba9fb23a2ce9 100644 --- a/pkgs/development/python-modules/ago/default.nix +++ b/pkgs/development/python-modules/ago/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-0gEPXqw99UTsSOwRYQLgaFkaNFsaWA8ylz24pQX8p0Q="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ago" ]; diff --git a/pkgs/development/python-modules/aigpy/default.nix b/pkgs/development/python-modules/aigpy/default.nix index ef0e5f13273a..3cc1946087d8 100644 --- a/pkgs/development/python-modules/aigpy/default.nix +++ b/pkgs/development/python-modules/aigpy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mutagen -, requests -, colorama -, prettytable -, pycrypto -, pydub +{ + lib, + buildPythonPackage, + fetchPypi, + mutagen, + requests, + colorama, + prettytable, + pycrypto, + pydub, }: buildPythonPackage rec { @@ -19,7 +20,14 @@ buildPythonPackage rec { sha256 = "sha256-1kQced6YdC/wvegqFVhZfej4+4aemGXvKysKjejP13w="; }; - propagatedBuildInputs = [ mutagen requests colorama prettytable pycrypto pydub ]; + propagatedBuildInputs = [ + mutagen + requests + colorama + prettytable + pycrypto + pydub + ]; meta = { homepage = "https://github.com/AIGMix/AIGPY"; diff --git a/pkgs/development/python-modules/aio-geojson-client/default.nix b/pkgs/development/python-modules/aio-geojson-client/default.nix index 04dfa69f8912..4034699d2d29 100644 --- a/pkgs/development/python-modules/aio-geojson-client/default.nix +++ b/pkgs/development/python-modules/aio-geojson-client/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, geojson -, haversine -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + geojson, + haversine, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_geojson_client" - ]; + pythonImportsCheck = [ "aio_geojson_client" ]; meta = with lib; { description = "Python module for accessing GeoJSON feeds"; diff --git a/pkgs/development/python-modules/aio-geojson-generic-client/default.nix b/pkgs/development/python-modules/aio-geojson-generic-client/default.nix index 343f47d2aca4..e8c1606433db 100644 --- a/pkgs/development/python-modules/aio-geojson-generic-client/default.nix +++ b/pkgs/development/python-modules/aio-geojson-generic-client/default.nix @@ -1,16 +1,17 @@ -{ lib -, aio-geojson-client -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, geojson -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pytz -, setuptools +{ + lib, + aio-geojson-client, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + geojson, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + pytz, + setuptools, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_geojson_generic_client" - ]; + pythonImportsCheck = [ "aio_geojson_generic_client" ]; meta = with lib; { description = "Python library for accessing GeoJSON feeds"; diff --git a/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix b/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix index 65973321f95b..f9dd37f5653a 100644 --- a/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix +++ b/pkgs/development/python-modules/aio-geojson-geonetnz-quakes/default.nix @@ -1,14 +1,15 @@ -{ lib -, aio-geojson-client -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pytz -, pythonOlder -, setuptools +{ + lib, + aio-geojson-client, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pytz, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-8OpmA3yHjUY+N5Obri4RWeuJiW916xGSWUYUgdpmjkw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aio-geojson-client @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_geojson_geonetnz_quakes" - ]; + pythonImportsCheck = [ "aio_geojson_geonetnz_quakes" ]; meta = with lib; { description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds"; diff --git a/pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix b/pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix index 35e558fdc262..6050107c9acf 100644 --- a/pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix +++ b/pkgs/development/python-modules/aio-geojson-geonetnz-volcano/default.nix @@ -1,16 +1,17 @@ -{ lib -, aio-geojson-client -, aiohttp -, aioresponses -, mock -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-xdist -, pytestCheckHook -, pytz -, pythonOlder -, setuptools +{ + lib, + aio-geojson-client, + aiohttp, + aioresponses, + mock, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-xdist, + pytestCheckHook, + pytz, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-ZmGDO9EROFMlxdj5txNh719M+3l/0jRFbB2h2AyZAdI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aio-geojson-client @@ -47,9 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_geojson_geonetnz_volcano" - ]; + pythonImportsCheck = [ "aio_geojson_geonetnz_volcano" ]; meta = with lib; { description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds"; diff --git a/pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nix b/pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nix index 94724e800f58..2341e515a01e 100644 --- a/pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nix +++ b/pkgs/development/python-modules/aio-geojson-nsw-rfs-incidents/default.nix @@ -1,14 +1,15 @@ -{ lib -, aio-geojson-client -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pytz -, setuptools +{ + lib, + aio-geojson-client, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pytz, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-HksiKfXhLASAgU81x7YiOXFmBLIkqJ9ldWLLY1ZbZlk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aio-geojson-client @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_geojson_nsw_rfs_incidents" - ]; + pythonImportsCheck = [ "aio_geojson_nsw_rfs_incidents" ]; meta = with lib; { description = "Python module for accessing the NSW Rural Fire Service incidents feeds"; diff --git a/pkgs/development/python-modules/aio-geojson-usgs-earthquakes/default.nix b/pkgs/development/python-modules/aio-geojson-usgs-earthquakes/default.nix index 339481624a35..55a67843f1e9 100644 --- a/pkgs/development/python-modules/aio-geojson-usgs-earthquakes/default.nix +++ b/pkgs/development/python-modules/aio-geojson-usgs-earthquakes/default.nix @@ -1,14 +1,15 @@ -{ lib -, aio-geojson-client -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pytz -, pythonOlder -, setuptools +{ + lib, + aio-geojson-client, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pytz, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-Q9vBy5R5N5ihJdSMALo88qVYcFVs2/33lYRPdLej4S8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aio-geojson-client @@ -37,18 +36,14 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ aioresponses pytest-asyncio ]; - pythonImportsCheck = [ - "aio_geojson_usgs_earthquakes" - ]; + pythonImportsCheck = [ "aio_geojson_usgs_earthquakes" ]; meta = with lib; { description = "Python module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds"; diff --git a/pkgs/development/python-modules/aio-georss-client/default.nix b/pkgs/development/python-modules/aio-georss-client/default.nix index 6130564b421c..8aea98efa5a4 100644 --- a/pkgs/development/python-modules/aio-georss-client/default.nix +++ b/pkgs/development/python-modules/aio-georss-client/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, dateparser -, fetchFromGitHub -, haversine -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, xmltodict +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + dateparser, + fetchFromGitHub, + haversine, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + xmltodict, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -49,9 +48,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_georss_client" - ]; + pythonImportsCheck = [ "aio_georss_client" ]; meta = with lib; { description = "Python library for accessing GeoRSS feeds"; diff --git a/pkgs/development/python-modules/aio-georss-gdacs/default.nix b/pkgs/development/python-modules/aio-georss-gdacs/default.nix index 52c5c79a198e..457f4bca26ec 100644 --- a/pkgs/development/python-modules/aio-georss-gdacs/default.nix +++ b/pkgs/development/python-modules/aio-georss-gdacs/default.nix @@ -1,13 +1,14 @@ -{ lib -, aio-georss-client -, aioresponses -, buildPythonPackage -, dateparser -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aio-georss-client, + aioresponses, + buildPythonPackage, + dateparser, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aio-georss-client @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aio_georss_gdacs" - ]; + pythonImportsCheck = [ "aio_georss_gdacs" ]; meta = with lib; { description = "Python library for accessing GeoRSS feeds"; diff --git a/pkgs/development/python-modules/aioairzone/default.nix b/pkgs/development/python-modules/aioairzone/default.nix index 905232c065a3..1bb75f3cfb0e 100644 --- a/pkgs/development/python-modules/aioairzone/default.nix +++ b/pkgs/development/python-modules/aioairzone/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-99Km1zizAA0BF4ZlLmKOBoOQzKS/QdWpWC9dzg2s3lU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "aioairzone" - ]; + pythonImportsCheck = [ "aioairzone" ]; meta = with lib; { description = "Module to control AirZone devices"; @@ -43,4 +38,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fab ]; }; } - diff --git a/pkgs/development/python-modules/aioaladdinconnect/default.nix b/pkgs/development/python-modules/aioaladdinconnect/default.nix index 5617eec6b534..3925407abeab 100644 --- a/pkgs/development/python-modules/aioaladdinconnect/default.nix +++ b/pkgs/development/python-modules/aioaladdinconnect/default.nix @@ -1,9 +1,10 @@ -{ lib -, aioboto3 -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aioboto3, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "AIOAladdinConnect" - ]; + pythonImportsCheck = [ "AIOAladdinConnect" ]; meta = with lib; { description = "Library for controlling Genie garage doors connected to Aladdin Connect devices"; diff --git a/pkgs/development/python-modules/aioambient/default.nix b/pkgs/development/python-modules/aioambient/default.nix index 5646bf02b8a2..c5573e88f7d9 100644 --- a/pkgs/development/python-modules/aioambient/default.nix +++ b/pkgs/development/python-modules/aioambient/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, python-engineio -, python-socketio -, pythonOlder -, websockets +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + python-engineio, + python-socketio, + pythonOlder, + websockets, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-eqZVY0L+2BWF7cCXW/VLQYYXNPtUF6tJHQmeZNW1W5o="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp @@ -50,13 +49,9 @@ buildPythonPackage rec { ]; # Ignore the examples directory as the files are prefixed with test_ - disabledTestPaths = [ - "examples/" - ]; + disabledTestPaths = [ "examples/" ]; - pythonImportsCheck = [ - "aioambient" - ]; + pythonImportsCheck = [ "aioambient" ]; meta = with lib; { description = "Python library for the Ambient Weather API"; diff --git a/pkgs/development/python-modules/aioamqp/default.nix b/pkgs/development/python-modules/aioamqp/default.nix index a23d248bbd41..8184e3e31172 100644 --- a/pkgs/development/python-modules/aioamqp/default.nix +++ b/pkgs/development/python-modules/aioamqp/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pamqp -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pamqp, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pamqp - ]; + dependencies = [ pamqp ]; # Tests assume rabbitmq server running doCheck = false; - pythonImportsCheck = [ - "aioamqp" - ]; + pythonImportsCheck = [ "aioamqp" ]; meta = with lib; { description = "AMQP implementation using asyncio"; diff --git a/pkgs/development/python-modules/aioapcaccess/default.nix b/pkgs/development/python-modules/aioapcaccess/default.nix index 6d6c70955251..104e09fac8ba 100644 --- a/pkgs/development/python-modules/aioapcaccess/default.nix +++ b/pkgs/development/python-modules/aioapcaccess/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioapcaccess" - ]; + pythonImportsCheck = [ "aioapcaccess" ]; meta = with lib; { description = "Module for working with apcaccess"; diff --git a/pkgs/development/python-modules/aioapns/default.nix b/pkgs/development/python-modules/aioapns/default.nix index fe6b4192014a..1fe48c4462f2 100644 --- a/pkgs/development/python-modules/aioapns/default.nix +++ b/pkgs/development/python-modules/aioapns/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, h2 -, pyjwt -, pyopenssl -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + h2, + pyjwt, + pyopenssl, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-QPayQogW97saMmaPUP5x0CiXd6Qptg/OROigi5ASNQg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ h2 @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aioapns" - ]; + pythonImportsCheck = [ "aioapns" ]; meta = with lib; { description = "An efficient APNs Client Library"; diff --git a/pkgs/development/python-modules/aioaseko/default.nix b/pkgs/development/python-modules/aioaseko/default.nix index beea7e05a750..c8f6a896c9fe 100644 --- a/pkgs/development/python-modules/aioaseko/default.nix +++ b/pkgs/development/python-modules/aioaseko/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pyjwt +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pyjwt, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-bjPl0yrRaTIEEuPV8NbWu2hx/es5bcu2tDBZV+95fUc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "aioaseko" - ]; + pythonImportsCheck = [ "aioaseko" ]; meta = with lib; { description = "Module to interact with the Aseko Pool Live API"; diff --git a/pkgs/development/python-modules/aioazuredevops/default.nix b/pkgs/development/python-modules/aioazuredevops/default.nix index aaab9a1a4cc5..d8b046d3b03b 100644 --- a/pkgs/development/python-modules/aioazuredevops/default.nix +++ b/pkgs/development/python-modules/aioazuredevops/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, aiohttp -, incremental + # dependencies + aiohttp, + incremental, -# tests -, aioresponses -, pytest-aiohttp -, pytest-asyncio -, pytest-socket -, pytestCheckHook -, syrupy + # tests + aioresponses, + pytest-aiohttp, + pytest-asyncio, + pytest-socket, + pytestCheckHook, + syrupy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiobafi6/default.nix b/pkgs/development/python-modules/aiobafi6/default.nix index 7856437baeea..632b3d7d5b19 100644 --- a/pkgs/development/python-modules/aiobafi6/default.nix +++ b/pkgs/development/python-modules/aiobafi6/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, zeroconf +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + zeroconf, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-QxjrspvNrcMcGChjj1B4QF/SnWCsGmPxnI2bWAL6BiI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ protobuf @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiobafi6" - ]; + pythonImportsCheck = [ "aiobafi6" ]; meta = with lib; { description = "Library for communication with the Big Ass Fans i6 firmware"; diff --git a/pkgs/development/python-modules/aiobiketrax/default.nix b/pkgs/development/python-modules/aiobiketrax/default.nix index 9d6d7ab52114..88b070a51049 100644 --- a/pkgs/development/python-modules/aiobiketrax/default.nix +++ b/pkgs/development/python-modules/aiobiketrax/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, auth0-python -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyjwt -, pytest-aiohttp -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + aiohttp, + auth0-python, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyjwt, + pytest-aiohttp, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -32,17 +33,11 @@ buildPythonPackage rec { --replace-fail "auth0.v3" "auth0" ''; - pythonRelaxDeps = [ - "auth0-python" - ]; + pythonRelaxDeps = [ "auth0-python" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ aiohttp @@ -51,13 +46,9 @@ buildPythonPackage rec { pyjwt ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "aiobiketrax" - ]; + pythonImportsCheck = [ "aiobiketrax" ]; meta = with lib; { description = "Library for interacting with the PowUnity BikeTrax GPS tracker"; diff --git a/pkgs/development/python-modules/aioblescan/default.nix b/pkgs/development/python-modules/aioblescan/default.nix index 768b2f972201..24e17c54edda 100644 --- a/pkgs/development/python-modules/aioblescan/default.nix +++ b/pkgs/development/python-modules/aioblescan/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-JeA9jX566OSRiejdnlifbcNGm0J0C+xzA6zXDUyZ6jc="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "aioblescan" - ]; + pythonImportsCheck = [ "aioblescan" ]; meta = with lib; { description = "Library to listen for BLE advertized packets"; diff --git a/pkgs/development/python-modules/aioboto3/default.nix b/pkgs/development/python-modules/aioboto3/default.nix index ea7921fc283b..96a7cc9c4d74 100644 --- a/pkgs/development/python-modules/aioboto3/default.nix +++ b/pkgs/development/python-modules/aioboto3/default.nix @@ -1,19 +1,20 @@ -{ lib -, aiobotocore -, aiofiles -, buildPythonPackage -, chalice -, cryptography -, dill -, fetchFromGitHub -, moto -, poetry-core -, poetry-dynamic-versioning -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests +{ + lib, + aiobotocore, + aiofiles, + buildPythonPackage, + chalice, + cryptography, + dill, + fetchFromGitHub, + moto, + poetry-core, + poetry-dynamic-versioning, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, }: buildPythonPackage rec { @@ -36,21 +37,13 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "aiobotocore" - ]; + pythonRelaxDeps = [ "aiobotocore" ]; - propagatedBuildInputs = [ - aiobotocore - ] ++ aiobotocore.optional-dependencies.boto3; + propagatedBuildInputs = [ aiobotocore ] ++ aiobotocore.optional-dependencies.boto3; passthru.optional-dependencies = { - chalice = [ - chalice - ]; - s3cse = [ - cryptography - ]; + chalice = [ chalice ]; + s3cse = [ cryptography ]; }; nativeCheckInputs = [ @@ -62,9 +55,7 @@ buildPythonPackage rec { requests ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "aioboto3" - ]; + pythonImportsCheck = [ "aioboto3" ]; disabledTests = [ # Our moto package is not ready to support more tests diff --git a/pkgs/development/python-modules/aiobotocore/default.nix b/pkgs/development/python-modules/aiobotocore/default.nix index 5c421c99f6d0..8ecbb92d75f7 100644 --- a/pkgs/development/python-modules/aiobotocore/default.nix +++ b/pkgs/development/python-modules/aiobotocore/default.nix @@ -1,21 +1,22 @@ -{ lib -, aiohttp -, aioitertools -, botocore -, buildPythonPackage -, dill -, fetchFromGitHub -, flask -, flask-cors -, awscli -, moto -, boto3 -, setuptools -, pytest-asyncio -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, wrapt +{ + lib, + aiohttp, + aioitertools, + botocore, + buildPythonPackage, + dill, + fetchFromGitHub, + flask, + flask-cors, + awscli, + moto, + boto3, + setuptools, + pytest-asyncio, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + wrapt, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { sed -i "s/'botocore>=.*'/'botocore'/" setup.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -50,12 +49,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - awscli = [ - awscli - ]; - boto3 = [ - boto3 - ]; + awscli = [ awscli ]; + boto3 = [ boto3 ]; }; nativeCheckInputs = [ @@ -67,9 +62,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiobotocore" - ]; + pythonImportsCheck = [ "aiobotocore" ]; disabledTestPaths = [ # Tests require network access @@ -90,18 +83,20 @@ buildPythonPackage rec { "tests/test_waiter.py" ]; - disabledTests = [ - "test_get_credential" - "test_load_sso_credentials_without_cache" - "test_load_sso_credentials" - "test_required_config_not_set" - "test_sso_cred_fetcher_raises_helpful_message_on_unauthorized_exception" - "test_sso_credential_fetcher_can_fetch_credentials" - ] ++ lib.optionals (pythonAtLeast "3.12.") [ - # AttributeError: 'called_with' is not a valid assertion. Use a spec for the mock if 'called_with' is meant to be an attribute. - "test_max_rate_updated_on_success_response" - "test_max_rate_cant_exceed_20_percent_max" - ]; + disabledTests = + [ + "test_get_credential" + "test_load_sso_credentials_without_cache" + "test_load_sso_credentials" + "test_required_config_not_set" + "test_sso_cred_fetcher_raises_helpful_message_on_unauthorized_exception" + "test_sso_credential_fetcher_can_fetch_credentials" + ] + ++ lib.optionals (pythonAtLeast "3.12.") [ + # AttributeError: 'called_with' is not a valid assertion. Use a spec for the mock if 'called_with' is meant to be an attribute. + "test_max_rate_updated_on_success_response" + "test_max_rate_cant_exceed_20_percent_max" + ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/aiobroadlink/default.nix b/pkgs/development/python-modules/aiobroadlink/default.nix index db73273a3679..01a0df16561c 100644 --- a/pkgs/development/python-modules/aiobroadlink/default.nix +++ b/pkgs/development/python-modules/aiobroadlink/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-uTUtDhL9VtWZE+Y6ZJY4prmlE+Yh2UrCg5+eSyAQzMk="; }; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aiobroadlink" - ]; + pythonImportsCheck = [ "aiobroadlink" ]; meta = with lib; { description = "Python module to control various Broadlink devices"; diff --git a/pkgs/development/python-modules/aiocache/default.nix b/pkgs/development/python-modules/aiocache/default.nix index 5d78252791b3..17e60970e4fa 100644 --- a/pkgs/development/python-modules/aiocache/default.nix +++ b/pkgs/development/python-modules/aiocache/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, aiomcache -, buildPythonPackage -, fetchFromGitHub -, marshmallow -, msgpack -, pkgs -, pythonOlder -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, redis -, setuptools +{ + lib, + aiohttp, + aiomcache, + buildPythonPackage, + fetchFromGitHub, + marshmallow, + msgpack, + pkgs, + pythonOlder, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + redis, + setuptools, }: buildPythonPackage rec { @@ -33,20 +34,12 @@ buildPythonPackage rec { --replace-fail "--cov=aiocache --cov=tests/ --cov-report term" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; optional-dependencies = { - redis = [ - redis - ]; - memcached = [ - aiomcache - ]; - msgpack = [ - msgpack - ]; + redis = [ redis ]; + memcached = [ aiomcache ]; + msgpack = [ msgpack ]; }; nativeCheckInputs = [ @@ -58,7 +51,8 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues optional-dependencies); pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" # TypeError: object MagicMock can't be used in 'await' expression "--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close" ]; @@ -83,9 +77,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "aiocache" - ]; + pythonImportsCheck = [ "aiocache" ]; meta = with lib; { description = "Python API Rate Limit Decorator"; diff --git a/pkgs/development/python-modules/aiocomelit/default.nix b/pkgs/development/python-modules/aiocomelit/default.nix index b9c18196d24a..f8a116c011e0 100644 --- a/pkgs/development/python-modules/aiocomelit/default.nix +++ b/pkgs/development/python-modules/aiocomelit/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, colorlog -, fetchFromGitHub -, pint -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + colorlog, + fetchFromGitHub, + pint, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail " --cov=aiocomelit --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -42,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiocomelit" - ]; + pythonImportsCheck = [ "aiocomelit" ]; meta = with lib; { description = "Library to control Comelit Simplehome"; diff --git a/pkgs/development/python-modules/aioconsole/default.nix b/pkgs/development/python-modules/aioconsole/default.nix index 0c5346eebd67..da4efbbdbb38 100644 --- a/pkgs/development/python-modules/aioconsole/default.nix +++ b/pkgs/development/python-modules/aioconsole/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: # This package provides a binary "apython" which sometimes invokes @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-c8zeKebS04bZS9pMIKAauaLPvRrWaGoDKbnF906tFzQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio @@ -51,9 +50,7 @@ buildPythonPackage rec { "test_interact_multiple_indented_lines" ]; - pythonImportsCheck = [ - "aioconsole" - ]; + pythonImportsCheck = [ "aioconsole" ]; meta = with lib; { changelog = "https://github.com/vxgmichel/aioconsole/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/aiocontextvars/default.nix b/pkgs/development/python-modules/aiocontextvars/default.nix index d1048db7de98..47f7108309e6 100644 --- a/pkgs/development/python-modules/aiocontextvars/default.nix +++ b/pkgs/development/python-modules/aiocontextvars/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pytest-asyncio -, isPy27 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pytest-asyncio, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiocron/default.nix b/pkgs/development/python-modules/aiocron/default.nix index a9a135e28f21..0701fdab407a 100644 --- a/pkgs/development/python-modules/aiocron/default.nix +++ b/pkgs/development/python-modules/aiocron/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, python -, croniter -, tzlocal -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + python, + croniter, + tzlocal, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ croniter diff --git a/pkgs/development/python-modules/aiocurrencylayer/default.nix b/pkgs/development/python-modules/aiocurrencylayer/default.nix index 427992c58823..944904ae2cae 100644 --- a/pkgs/development/python-modules/aiocurrencylayer/default.nix +++ b/pkgs/development/python-modules/aiocurrencylayer/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, poetry-core -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + poetry-core, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-VOzgWN+dDPaGEcahFPSWjBR989b9eNkx4zcnI9o2Xiw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; nativeCheckInputs = [ pytest-asyncio @@ -37,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiocurrencylayer" - ]; + pythonImportsCheck = [ "aiocurrencylayer" ]; meta = with lib; { description = "Python API for interacting with currencylayer"; diff --git a/pkgs/development/python-modules/aiodhcpwatcher/default.nix b/pkgs/development/python-modules/aiodhcpwatcher/default.nix index 1cdc26eead5d..4566a36e8559 100644 --- a/pkgs/development/python-modules/aiodhcpwatcher/default.nix +++ b/pkgs/development/python-modules/aiodhcpwatcher/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, scapy + # dependencies + scapy, -# tests -, pytest-asyncio -, pytestCheckHook + # tests + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,22 +30,16 @@ buildPythonPackage rec { sed -i "/addopts =/d" pyproject.toml ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - scapy - ]; + dependencies = [ scapy ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "aiodhcpwatcher" - ]; + pythonImportsCheck = [ "aiodhcpwatcher" ]; meta = with lib; { description = "Watch for DHCP packets with asyncio"; diff --git a/pkgs/development/python-modules/aiodocker/default.nix b/pkgs/development/python-modules/aiodocker/default.nix index f3c76acceac0..13f5134d3cec 100644 --- a/pkgs/development/python-modules/aiodocker/default.nix +++ b/pkgs/development/python-modules/aiodocker/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "RL5Ck4wsBZO88afmoojeFKbdIeCjDo/SwNqUcERH6Ls="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # tests require docker daemon doCheck = false; diff --git a/pkgs/development/python-modules/aioecowitt/default.nix b/pkgs/development/python-modules/aioecowitt/default.nix index 414f35aaf4d0..b871411b0163 100644 --- a/pkgs/development/python-modules/aioecowitt/default.nix +++ b/pkgs/development/python-modules/aioecowitt/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, meteocalc -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + meteocalc, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-QfUawUtkNl2molropV8NSU7Kfm/D5/xuaPCjgm2TVOs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioecowitt" - ]; + pythonImportsCheck = [ "aioecowitt" ]; meta = with lib; { description = "Wrapper for the EcoWitt protocol"; diff --git a/pkgs/development/python-modules/aioelectricitymaps/default.nix b/pkgs/development/python-modules/aioelectricitymaps/default.nix index e0f6a236b6cb..be03d2de043a 100644 --- a/pkgs/development/python-modules/aioelectricitymaps/default.nix +++ b/pkgs/development/python-modules/aioelectricitymaps/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace-warn "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "aioelectricitymaps" - ]; + pythonImportsCheck = [ "aioelectricitymaps" ]; meta = with lib; { description = "Module for interacting with Electricity maps"; diff --git a/pkgs/development/python-modules/aioemonitor/default.nix b/pkgs/development/python-modules/aioemonitor/default.nix index feddda5832f2..a9fcde7fb79a 100644 --- a/pkgs/development/python-modules/aioemonitor/default.nix +++ b/pkgs/development/python-modules/aioemonitor/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-raises -, pytestCheckHook -, pythonOlder -, xmltodict +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-raises, + pytestCheckHook, + pythonOlder, + xmltodict, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aioesphomeapi/default.nix b/pkgs/development/python-modules/aioesphomeapi/default.nix index fff33bbb6aca..665cc10fc58b 100644 --- a/pkgs/development/python-modules/aioesphomeapi/default.nix +++ b/pkgs/development/python-modules/aioesphomeapi/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, cython -, setuptools + # build-system + cython, + setuptools, -# dependencies -, aiohappyeyeballs -, async-interrupt -, async-timeout -, chacha20poly1305-reuseable -, cryptography -, noiseprotocol -, protobuf -, zeroconf + # dependencies + aiohappyeyeballs, + async-interrupt, + async-timeout, + chacha20poly1305-reuseable, + cryptography, + noiseprotocol, + protobuf, + zeroconf, -# tests -, mock -, pytest-asyncio -, pytestCheckHook + # tests + mock, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { noiseprotocol protobuf zeroconf - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ mock @@ -65,15 +64,16 @@ buildPythonPackage rec { "test_reconnect_logic_stop_callback" ]; - pythonImportsCheck = [ - "aioesphomeapi" - ]; + pythonImportsCheck = [ "aioesphomeapi" ]; meta = with lib; { description = "Python Client for ESPHome native API"; homepage = "https://github.com/esphome/aioesphomeapi"; changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ fab hexa ]; + maintainers = with maintainers; [ + fab + hexa + ]; }; } diff --git a/pkgs/development/python-modules/aioextensions/default.nix b/pkgs/development/python-modules/aioextensions/default.nix index 92c05b12e677..34097274aa69 100644 --- a/pkgs/development/python-modules/aioextensions/default.nix +++ b/pkgs/development/python-modules/aioextensions/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pythonOlder +{ + buildPythonPackage, + fetchPypi, + lib, + pythonOlder, -# Python dependencies -, uvloop -, pytest + # Python dependencies + uvloop, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiofile/default.nix b/pkgs/development/python-modules/aiofile/default.nix index ba9bd0652cfb..ecbcf73396ec 100644 --- a/pkgs/development/python-modules/aiofile/default.nix +++ b/pkgs/development/python-modules/aiofile/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiomisc -, aiomisc-pytest -, caio -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiomisc, + aiomisc-pytest, + caio, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54="; }; - propagatedBuildInputs = [ - caio - ]; + propagatedBuildInputs = [ caio ]; nativeCheckInputs = [ aiomisc @@ -32,9 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiofile" - ]; + pythonImportsCheck = [ "aiofile" ]; disabledTests = [ # Tests (SystemError) fails randomly during nix-review diff --git a/pkgs/development/python-modules/aiofiles/default.nix b/pkgs/development/python-modules/aiofiles/default.nix index d3d289204b7b..dd9e903a4369 100644 --- a/pkgs/development/python-modules/aiofiles/default.nix +++ b/pkgs/development/python-modules/aiofiles/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; nativeCheckInputs = [ pytest-asyncio @@ -41,9 +40,7 @@ buildPythonPackage rec { "test_slow_file" ]; - pythonImportsCheck = [ - "aiofiles" - ]; + pythonImportsCheck = [ "aiofiles" ]; meta = with lib; { description = "File support for asyncio"; diff --git a/pkgs/development/python-modules/aioflo/default.nix b/pkgs/development/python-modules/aioflo/default.nix index 4ec24cb77a9a..13b51bf8ad21 100644 --- a/pkgs/development/python-modules/aioflo/default.nix +++ b/pkgs/development/python-modules/aioflo/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -39,13 +40,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; __darwinAllowLocalNetworking = true; @@ -56,9 +53,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioflo" - ]; + pythonImportsCheck = [ "aioflo" ]; meta = with lib; { description = "Python library for Flo by Moen Smart Water Detectors"; diff --git a/pkgs/development/python-modules/aioftp/default.nix b/pkgs/development/python-modules/aioftp/default.nix index 6aa37699ca4a..89906cb45814 100644 --- a/pkgs/development/python-modules/aioftp/default.nix +++ b/pkgs/development/python-modules/aioftp/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, async-timeout -, buildPythonPackage -, fetchPypi -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, siosocks -, trustme +{ + lib, + stdenv, + async-timeout, + buildPythonPackage, + fetchPypi, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + siosocks, + trustme, }: buildPythonPackage rec { @@ -28,18 +29,12 @@ buildPythonPackage rec { --replace " --cov" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - siosocks - ]; + propagatedBuildInputs = [ siosocks ]; passthru.optional-dependencies = { - socks = [ - siosocks - ]; + socks = [ siosocks ]; }; nativeCheckInputs = [ @@ -54,9 +49,7 @@ buildPythonPackage rec { "test_pasv_connection_pasv_forced_response_address" ]; - pythonImportsCheck = [ - "aioftp" - ]; + pythonImportsCheck = [ "aioftp" ]; meta = with lib; { description = "Python FTP client/server for asyncio"; diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 59367acb041a..696f05f403ce 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, async-timeout -, backoff -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, sigstore +{ + lib, + aiohttp, + aresponses, + async-timeout, + backoff, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + sigstore, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace 'sigstore = "<2"' 'sigstore = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -54,17 +53,13 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; preCheck = '' export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "aiogithubapi" - ]; + pythonImportsCheck = [ "aiogithubapi" ]; disabledTests = [ # sigstore.errors.TUFError: Failed to refresh TUF metadata diff --git a/pkgs/development/python-modules/aioguardian/default.nix b/pkgs/development/python-modules/aioguardian/default.nix index 8047a91fb2c4..afd3fd33190a 100644 --- a/pkgs/development/python-modules/aioguardian/default.nix +++ b/pkgs/development/python-modules/aioguardian/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, async-timeout -, asyncio-dgram -, buildPythonPackage -, certifi -, docutils -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, voluptuous +{ + lib, + aiohttp, + async-timeout, + asyncio-dgram, + buildPythonPackage, + certifi, + docutils, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + voluptuous, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-7fY8+aAxlDtOBLu8SadY5qiH6+RvxnFpOw1RXTonP2o="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -48,13 +47,9 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - "examples/" - ]; + disabledTestPaths = [ "examples/" ]; - pythonImportsCheck = [ - "aioguardian" - ]; + pythonImportsCheck = [ "aioguardian" ]; meta = with lib; { description = " Python library to interact with Elexa Guardian devices"; diff --git a/pkgs/development/python-modules/aiohappyeyeballs/default.nix b/pkgs/development/python-modules/aiohappyeyeballs/default.nix index a2be5384a04c..efd083022fda 100644 --- a/pkgs/development/python-modules/aiohappyeyeballs/default.nix +++ b/pkgs/development/python-modules/aiohappyeyeballs/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# optional-dependencies -, furo -, myst-parser -, sphinx-autobuild -, sphinxHook + # optional-dependencies + furo, + myst-parser, + sphinx-autobuild, + sphinxHook, -# tests -, pytest-asyncio -, pytestCheckHook + # tests + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { --replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ] ++ passthru.optional-dependencies.docs; + nativeBuildInputs = [ poetry-core ] ++ passthru.optional-dependencies.docs; passthru.optional-dependencies = { docs = [ @@ -59,9 +58,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiohappyeyeballs" - ]; + pythonImportsCheck = [ "aiohappyeyeballs" ]; disabledTestPaths = [ # https://github.com/bdraco/aiohappyeyeballs/issues/30 @@ -73,6 +70,9 @@ buildPythonPackage rec { homepage = "https://github.com/bdraco/aiohappyeyeballs"; changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/v${version}/CHANGELOG.md"; license = licenses.psfl; - maintainers = with maintainers; [ fab hexa ]; + maintainers = with maintainers; [ + fab + hexa + ]; }; } diff --git a/pkgs/development/python-modules/aioharmony/default.nix b/pkgs/development/python-modules/aioharmony/default.nix index 8976c3d30707..bbb42f62c715 100644 --- a/pkgs/development/python-modules/aioharmony/default.nix +++ b/pkgs/development/python-modules/aioharmony/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder -, slixmpp +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, + slixmpp, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiohomekit/default.nix b/pkgs/development/python-modules/aiohomekit/default.nix index 546fd9c4f404..94bd0c7dcd07 100644 --- a/pkgs/development/python-modules/aiohomekit/default.nix +++ b/pkgs/development/python-modules/aiohomekit/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, aiocoap -, aiohappyeyeballs -, async-interrupt -, bleak -, bleak-retry-connector -, chacha20poly1305 -, chacha20poly1305-reuseable -, commentjson -, cryptography -, fetchFromGitHub -, orjson -, poetry-core -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, zeroconf +{ + lib, + buildPythonPackage, + aiocoap, + aiohappyeyeballs, + async-interrupt, + bleak, + bleak-retry-connector, + chacha20poly1305, + chacha20poly1305-reuseable, + commentjson, + cryptography, + fetchFromGitHub, + orjson, + poetry-core, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + zeroconf, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-F3PhZsuIgT3x1Y3/kx9juPwN2WKxvdbahrRm+r6ZPps="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiocoap @@ -73,9 +72,7 @@ buildPythonPackage rec { "test_discover_device_id_case_upper" ]; - pythonImportsCheck = [ - "aiohomekit" - ]; + pythonImportsCheck = [ "aiohomekit" ]; meta = with lib; { description = "Python module that implements the HomeKit protocol"; diff --git a/pkgs/development/python-modules/aiohttp-apispec/default.nix b/pkgs/development/python-modules/aiohttp-apispec/default.nix index ea908ff54414..adcc1d17dbf5 100644 --- a/pkgs/development/python-modules/aiohttp-apispec/default.nix +++ b/pkgs/development/python-modules/aiohttp-apispec/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, apispec -, buildPythonPackage -, callPackage -, fetchFromGitHub -, fetchPypi -, jinja2 -, packaging -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, webargs +{ + lib, + aiohttp, + apispec, + buildPythonPackage, + callPackage, + fetchFromGitHub, + fetchPypi, + jinja2, + packaging, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + webargs, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiohttp_apispec" - ]; + pythonImportsCheck = [ "aiohttp_apispec" ]; meta = with lib; { description = "Build and document REST APIs with aiohttp and apispec"; diff --git a/pkgs/development/python-modules/aiohttp-basicauth/default.nix b/pkgs/development/python-modules/aiohttp-basicauth/default.nix index b7ce89c13476..ee3e5483a1e4 100644 --- a/pkgs/development/python-modules/aiohttp-basicauth/default.nix +++ b/pkgs/development/python-modules/aiohttp-basicauth/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, pytestCheckHook -, pytest-asyncio -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + pytestCheckHook, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-UaRzauHmBHYwXFqRwDn1py79BScqq5j5SWALM4dQBP4="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/aiohttp-client-cache/default.nix b/pkgs/development/python-modules/aiohttp-client-cache/default.nix index c8ff60e64f5a..999eb2dedf31 100644 --- a/pkgs/development/python-modules/aiohttp-client-cache/default.nix +++ b/pkgs/development/python-modules/aiohttp-client-cache/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchPypi -, buildPythonPackage -, poetry-core -, aiohttp -, attrs -, itsdangerous -, url-normalize +{ + lib, + fetchPypi, + buildPythonPackage, + poetry-core, + aiohttp, + attrs, + itsdangerous, + url-normalize, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { inherit pname version; sha256 = "sha256-B2b/9O2gVJjHUlN0pYeBDcwsy3slaAnd5SroeQqEU+s="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp attrs diff --git a/pkgs/development/python-modules/aiohttp-cors/default.nix b/pkgs/development/python-modules/aiohttp-cors/default.nix index ad6033ca4f27..31c211580270 100644 --- a/pkgs/development/python-modules/aiohttp-cors/default.nix +++ b/pkgs/development/python-modules/aiohttp-cors/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder -, typing ? null, aiohttp +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + typing ? null, + aiohttp, }: buildPythonPackage rec { @@ -14,8 +19,7 @@ buildPythonPackage rec { disabled = pythonOlder "3.5"; - propagatedBuildInputs = [ aiohttp ] - ++ lib.optional (pythonOlder "3.5") typing; + propagatedBuildInputs = [ aiohttp ] ++ lib.optional (pythonOlder "3.5") typing; # Requires network access doCheck = false; diff --git a/pkgs/development/python-modules/aiohttp-fast-url-dispatcher/default.nix b/pkgs/development/python-modules/aiohttp-fast-url-dispatcher/default.nix index 905705c992dd..6fee93b33335 100644 --- a/pkgs/development/python-modules/aiohttp-fast-url-dispatcher/default.nix +++ b/pkgs/development/python-modules/aiohttp-fast-url-dispatcher/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { --replace " --cov=aiohttp_fast_url_dispatcher --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "aiohttp_fast_url_dispatcher" - ]; + pythonImportsCheck = [ "aiohttp_fast_url_dispatcher" ]; meta = with lib; { description = "A faster URL dispatcher for aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp-isal/default.nix b/pkgs/development/python-modules/aiohttp-isal/default.nix index dbaac3028777..4d7c46ee5484 100644 --- a/pkgs/development/python-modules/aiohttp-isal/default.nix +++ b/pkgs/development/python-modules/aiohttp-isal/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, aiohttp -, isal + # dependencies + aiohttp, + isal, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -25,26 +26,20 @@ buildPythonPackage rec { hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp isal ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' sed -i '/addopts/d' pyproject.toml ''; - pythonImportsCheck = [ - "aiohttp_isal" - ]; + pythonImportsCheck = [ "aiohttp_isal" ]; meta = with lib; { changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/aiohttp-jinja2/default.nix b/pkgs/development/python-modules/aiohttp-jinja2/default.nix index 9584316d8554..490dea94e037 100644 --- a/pkgs/development/python-modules/aiohttp-jinja2/default.nix +++ b/pkgs/development/python-modules/aiohttp-jinja2/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, jinja2 -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + jinja2, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { "ignore::DeprecationWarning" ]; - pythonImportsCheck = [ - "aiohttp_jinja2" - ]; + pythonImportsCheck = [ "aiohttp_jinja2" ]; meta = with lib; { description = "Jinja2 support for aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp-oauthlib/default.nix b/pkgs/development/python-modules/aiohttp-oauthlib/default.nix index 92981ea952c7..31972760c132 100644 --- a/pkgs/development/python-modules/aiohttp-oauthlib/default.nix +++ b/pkgs/development/python-modules/aiohttp-oauthlib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, oauthlib -, aiohttp -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + oauthlib, + aiohttp, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { aiohttp ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # Package has no tests. doCheck = false; diff --git a/pkgs/development/python-modules/aiohttp-openmetrics/default.nix b/pkgs/development/python-modules/aiohttp-openmetrics/default.nix index 871b9e33bded..8f11cfb84996 100644 --- a/pkgs/development/python-modules/aiohttp-openmetrics/default.nix +++ b/pkgs/development/python-modules/aiohttp-openmetrics/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, prometheus-client -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + prometheus-client, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-/ZRngcMlroCVTvIl+30DR4SI8LsSnTovuzg3YduWgWA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -31,9 +30,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "aiohttp_openmetrics" - ]; + pythonImportsCheck = [ "aiohttp_openmetrics" ]; meta = with lib; { description = "OpenMetrics provider for aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp-remotes/default.nix b/pkgs/development/python-modules/aiohttp-remotes/default.nix index 66f81b123298..ac73417b348c 100644 --- a/pkgs/development/python-modules/aiohttp-remotes/default.nix +++ b/pkgs/development/python-modules/aiohttp-remotes/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, flit -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + flit, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -22,15 +23,9 @@ buildPythonPackage rec { sha256 = "f95c3a6be5e2de746a85ce9af49ec548da6db8378d7e81bb171ec77b13562a6c"; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; - propagatedBuildInputs = [ - aiohttp - ] ++ lib.optionals (pythonOlder "3.7") [ - typing-extensions - ]; + propagatedBuildInputs = [ aiohttp ] ++ lib.optionals (pythonOlder "3.7") [ typing-extensions ]; nativeCheckInputs = [ pytest-aiohttp @@ -42,9 +37,7 @@ buildPythonPackage rec { --replace " --no-cov-on-fail --cov-branch --cov=aiohttp_remotes --cov-report=term --cov-report=html" "" ''; - pythonImportsCheck = [ - "aiohttp_remotes" - ]; + pythonImportsCheck = [ "aiohttp_remotes" ]; pytestFlagsArray = [ "-W" diff --git a/pkgs/development/python-modules/aiohttp-retry/default.nix b/pkgs/development/python-modules/aiohttp-retry/default.nix index 262fcef8e442..940f5bd35a3d 100644 --- a/pkgs/development/python-modules/aiohttp-retry/default.nix +++ b/pkgs/development/python-modules/aiohttp-retry/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-aiohttp -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-aiohttp, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Zr68gx8ZR9jKrogmqaFLvpBAIHE9ptHm0zZ/b49cCLw="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; __darwinAllowLocalNetworking = true; @@ -32,13 +31,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiohttp_retry" - ]; + pythonImportsCheck = [ "aiohttp_retry" ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; meta = with lib; { description = "Retry client for aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp-session/default.nix b/pkgs/development/python-modules/aiohttp-session/default.nix index 31acba3ebd52..d52634972165 100644 --- a/pkgs/development/python-modules/aiohttp-session/default.nix +++ b/pkgs/development/python-modules/aiohttp-session/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, aiohttp + # dependencies + aiohttp, -# optional-dependencies -, aiomcache -, cryptography -, pynacl -, redis + # optional-dependencies + aiomcache, + cryptography, + pynacl, + redis, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { hash = "sha256-7MNah4OIQnoxLoZkLOdeu5uCwSyPMhc6Wsht8dFconc="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - aiohttp - ]; + dependencies = [ aiohttp ]; optional-dependencies = { aioredis = [ redis ]; @@ -45,9 +42,7 @@ buildPythonPackage rec { doCheck = false; # runs redis in docker - pythonImportsCheck = [ - "aiohttp_session" - ]; + pythonImportsCheck = [ "aiohttp_session" ]; meta = with lib; { description = "Web sessions for aiohttp.web"; diff --git a/pkgs/development/python-modules/aiohttp-socks/default.nix b/pkgs/development/python-modules/aiohttp-socks/default.nix index 6b96d06ea482..8bce625b2f97 100644 --- a/pkgs/development/python-modules/aiohttp-socks/default.nix +++ b/pkgs/development/python-modules/aiohttp-socks/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, aiohttp -, attrs -, python-socks + # dependencies + aiohttp, + attrs, + python-socks, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-a2EdTOg46c8sL+1eDbpEfMhIJKbLqV3FdHYGIB2kbLQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -38,9 +37,7 @@ buildPythonPackage rec { # Checks needs internet access doCheck = false; - pythonImportsCheck = [ - "aiohttp_socks" - ]; + pythonImportsCheck = [ "aiohttp_socks" ]; meta = { description = "SOCKS proxy connector for aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp-swagger/default.nix b/pkgs/development/python-modules/aiohttp-swagger/default.nix index 19c822acf1a7..c97a3a27c7a3 100644 --- a/pkgs/development/python-modules/aiohttp-swagger/default.nix +++ b/pkgs/development/python-modules/aiohttp-swagger/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, jinja2 -, markupsafe -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + jinja2, + markupsafe, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { rm tests/conftest.py ''; - pythonImportsCheck = [ - "aiohttp_swagger" - ]; + pythonImportsCheck = [ "aiohttp_swagger" ]; meta = with lib; { description = "Swagger API Documentation builder for aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp-wsgi/default.nix b/pkgs/development/python-modules/aiohttp-wsgi/default.nix index d048cb41e320..f962c82166e9 100644 --- a/pkgs/development/python-modules/aiohttp-wsgi/default.nix +++ b/pkgs/development/python-modules/aiohttp-wsgi/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-3Q00FidZWV1KueuHyHKQf1PsDJGOaRW6v/kBy7lzD4Q="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "aiohttp_wsgi" ]; diff --git a/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix b/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix index bb5337203f6f..4d0a45414bf1 100644 --- a/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix +++ b/pkgs/development/python-modules/aiohttp-zlib-ng/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, zlib-ng +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + zlib-ng, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { --replace-fail " --cov=aiohttp_zlib_ng --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp zlib-ng ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "aiohttp_zlib_ng" - ]; + pythonImportsCheck = [ "aiohttp_zlib_ng" ]; meta = with lib; { description = "Enable zlib_ng on aiohttp"; diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index a84a54e2c6fa..20d911edfbba 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, substituteAll -, llhttp -, python -# build_requires -, cython -, setuptools -# install_requires -, attrs -, multidict -, async-timeout -, yarl -, frozenlist -, aiosignal -, aiodns -, brotli -# tests_require -, freezegun -, gunicorn -, pytest-mock -, pytest7CheckHook -, python-on-whales -, re-assert -, trustme +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + llhttp, + python, + # build_requires + cython, + setuptools, + # install_requires + attrs, + multidict, + async-timeout, + yarl, + frozenlist, + aiosignal, + aiodns, + brotli, + # tests_require + freezegun, + gunicorn, + pytest-mock, + pytest7CheckHook, + python-on-whales, + re-assert, + trustme, }: buildPythonPackage rec { @@ -84,32 +85,35 @@ buildPythonPackage rec { ''; # NOTE: pytest-xdist cannot be added because it is flaky. See https://github.com/NixOS/nixpkgs/issues/230597 for more info. - nativeCheckInputs = [ - freezegun - gunicorn - pytest-mock - pytest7CheckHook - python-on-whales - re-assert - ] ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [ - # Optional test dependency. Depends indirectly on pyopenssl, which is - # broken on aarch64-darwin. - trustme - ]; + nativeCheckInputs = + [ + freezegun + gunicorn + pytest-mock + pytest7CheckHook + python-on-whales + re-assert + ] + ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) [ + # Optional test dependency. Depends indirectly on pyopenssl, which is + # broken on aarch64-darwin. + trustme + ]; - disabledTests = [ - # Disable tests that require network access - "test_client_session_timeout_zero" - "test_mark_formdata_as_processed" - "test_requote_redirect_url_default" - # don't run benchmarks - "test_import_time" - ] ++ lib.optionals stdenv.is32bit [ - "test_cookiejar" - ] ++ lib.optionals stdenv.isDarwin [ - "test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572, remove >= v4.0.0 - "test_close" - ]; + disabledTests = + [ + # Disable tests that require network access + "test_client_session_timeout_zero" + "test_mark_formdata_as_processed" + "test_requote_redirect_url_default" + # don't run benchmarks + "test_import_time" + ] + ++ lib.optionals stdenv.is32bit [ "test_cookiejar" ] + ++ lib.optionals stdenv.isDarwin [ + "test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572, remove >= v4.0.0 + "test_close" + ]; disabledTestPaths = [ "tests/test_proxy_functional.py" # FIXME package proxy.py @@ -118,13 +122,15 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; # aiohttp in current folder shadows installed version - preCheck = '' - rm -r aiohttp - touch tests/data.unknown_mime_type # has to be modified after 1 Jan 1990 - '' + lib.optionalString stdenv.isDarwin '' - # Work around "OSError: AF_UNIX path too long" - export TMPDIR="/tmp" - ''; + preCheck = + '' + rm -r aiohttp + touch tests/data.unknown_mime_type # has to be modified after 1 Jan 1990 + '' + + lib.optionalString stdenv.isDarwin '' + # Work around "OSError: AF_UNIX path too long" + export TMPDIR="/tmp" + ''; meta = with lib; { changelog = "https://github.com/aio-libs/aiohttp/blob/v${version}/CHANGES.rst"; diff --git a/pkgs/development/python-modules/aiohue/default.nix b/pkgs/development/python-modules/aiohue/default.nix index 44ab0e99a9d0..39468b2116a5 100644 --- a/pkgs/development/python-modules/aiohue/default.nix +++ b/pkgs/development/python-modules/aiohue/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, asyncio-throttle -, awesomeversion -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-aiohttp -, pytest-asyncio -, pythonOlder -, setuptools +{ + lib, + aiohttp, + asyncio-throttle, + awesomeversion, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-aiohttp, + pytest-asyncio, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace 'version = "0.0.0"' 'version = "${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ awesomeversion diff --git a/pkgs/development/python-modules/aiohwenergy/default.nix b/pkgs/development/python-modules/aiohwenergy/default.nix index fb4d89adab51..d5e45c6525b0 100644 --- a/pkgs/development/python-modules/aiohwenergy/default.nix +++ b/pkgs/development/python-modules/aiohwenergy/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,16 +21,12 @@ buildPythonPackage rec { hash = "sha256-WfkwIxyDzLNzhWNWST/V3iN9Bhu2oXDwGiA5UXCq5ho="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aiohwenergy" - ]; + pythonImportsCheck = [ "aiohwenergy" ]; meta = with lib; { description = "Python library to interact with the HomeWizard Energy devices API"; diff --git a/pkgs/development/python-modules/aioinflux/default.nix b/pkgs/development/python-modules/aioinflux/default.nix index d45e02d1e91b..ef5f9bcf6340 100644 --- a/pkgs/development/python-modules/aioinflux/default.nix +++ b/pkgs/development/python-modules/aioinflux/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, ciso8601 -, pandas +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + ciso8601, + pandas, }: buildPythonPackage rec { @@ -16,7 +17,11 @@ buildPythonPackage rec { sha256 = "1jy5mcg9wdz546s9wdwsgkxhm2ac4dmphd9vz243db39j1m0a3bj"; }; - propagatedBuildInputs = [ aiohttp ciso8601 pandas ]; + propagatedBuildInputs = [ + aiohttp + ciso8601 + pandas + ]; # Tests require InfluxDB server doCheck = false; @@ -27,6 +32,9 @@ buildPythonPackage rec { description = "Asynchronous Python client for InfluxDB"; homepage = "https://github.com/gusutabopb/aioinflux"; license = licenses.mit; - maintainers = with maintainers; [ liamdiprose lopsided98 ]; + maintainers = with maintainers; [ + liamdiprose + lopsided98 + ]; }; } diff --git a/pkgs/development/python-modules/aioitertools/default.nix b/pkgs/development/python-modules/aioitertools/default.nix index 6fdc7dfd4d62..3f4870df41ad 100644 --- a/pkgs/development/python-modules/aioitertools/default.nix +++ b/pkgs/development/python-modules/aioitertools/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + pythonOlder, -# native -, flit-core + # native + flit-core, -# propagates -, typing-extensions + # propagates + typing-extensions, -# tests -, unittestCheckHook + # tests + unittestCheckHook, }: buildPythonPackage rec { @@ -26,21 +27,13 @@ buildPythonPackage rec { hash = "sha256-QsaLjdOmnCv38iM7999LtYtVe8pSUqwC7VGHu8Z9aDE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "aioitertools" - ]; + pythonImportsCheck = [ "aioitertools" ]; meta = with lib; { description = "Implementation of itertools, builtins, and more for AsyncIO and mixed-type iterables"; diff --git a/pkgs/development/python-modules/aiojobs/default.nix b/pkgs/development/python-modules/aiojobs/default.nix index 62633de45385..a2d012e2a650 100644 --- a/pkgs/development/python-modules/aiojobs/default.nix +++ b/pkgs/development/python-modules/aiojobs/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -36,18 +37,12 @@ buildPythonPackage rec { --replace "--cov=aiojobs/ --cov=tests/ --cov-report term" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ async-timeout ]; passthru.optional-dependencies = { - aiohttp = [ - aiohttp - ]; + aiohttp = [ aiohttp ]; }; nativeCheckInputs = [ @@ -55,9 +50,7 @@ buildPythonPackage rec { pytest-aiohttp ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "aiojobs" - ]; + pythonImportsCheck = [ "aiojobs" ]; disabledTests = [ # RuntimeWarning: coroutine 'Scheduler._wait_failed' was never awaited diff --git a/pkgs/development/python-modules/aiokafka/default.nix b/pkgs/development/python-modules/aiokafka/default.nix index cddfbc9295d4..347a4a5f78a3 100644 --- a/pkgs/development/python-modules/aiokafka/default.nix +++ b/pkgs/development/python-modules/aiokafka/default.nix @@ -1,17 +1,18 @@ -{ lib -, async-timeout -, buildPythonPackage -, cython -, fetchFromGitHub -, gssapi -, kafka-python -, lz4 -, packaging -, python-snappy -, pythonOlder -, setuptools -, zlib -, zstandard +{ + lib, + async-timeout, + buildPythonPackage, + cython, + fetchFromGitHub, + gssapi, + kafka-python, + lz4, + packaging, + python-snappy, + pythonOlder, + setuptools, + zlib, + zstandard, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - zlib - ]; + buildInputs = [ zlib ]; dependencies = [ async-timeout @@ -44,26 +43,16 @@ buildPythonPackage rec { ]; optional-dependencies = { - snappy = [ - python-snappy - ]; - lz4 = [ - lz4 - ]; - zstd = [ - zstandard - ]; - gssapi = [ - gssapi - ]; + snappy = [ python-snappy ]; + lz4 = [ lz4 ]; + zstd = [ zstandard ]; + gssapi = [ gssapi ]; }; # Checks require running Kafka server doCheck = false; - pythonImportsCheck = [ - "aiokafka" - ]; + pythonImportsCheck = [ "aiokafka" ]; meta = with lib; { description = "Kafka integration with asyncio"; diff --git a/pkgs/development/python-modules/aiokef/default.nix b/pkgs/development/python-modules/aiokef/default.nix index f185f974c7f8..52289adda842 100644 --- a/pkgs/development/python-modules/aiokef/default.nix +++ b/pkgs/development/python-modules/aiokef/default.nix @@ -1,10 +1,11 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, tenacity +{ + lib, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + tenacity, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { tenacity ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests" ]; pythonImportsCheck = [ "aiokef" ]; diff --git a/pkgs/development/python-modules/aiolifx-connection/default.nix b/pkgs/development/python-modules/aiolifx-connection/default.nix index 92cece410ee4..4c024d45a378 100644 --- a/pkgs/development/python-modules/aiolifx-connection/default.nix +++ b/pkgs/development/python-modules/aiolifx-connection/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, aiolifx +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + aiolifx, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256:09fydp5fqqh1s0vav39mw98i1la6qcgk17gch0m5ihyl9q50ks13"; }; - propagatedBuildInputs = [ - aiolifx - ]; + propagatedBuildInputs = [ aiolifx ]; # tests are not implemented doCheck = false; - pythonImportsCheck = [ - "aiolifx_connection" - ]; + pythonImportsCheck = [ "aiolifx_connection" ]; meta = with lib; { description = "Wrapper for aiolifx to connect to a single LIFX device"; diff --git a/pkgs/development/python-modules/aiolifx-effects/default.nix b/pkgs/development/python-modules/aiolifx-effects/default.nix index 282a87c43d8d..975dce93766a 100644 --- a/pkgs/development/python-modules/aiolifx-effects/default.nix +++ b/pkgs/development/python-modules/aiolifx-effects/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, aiolifx +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + aiolifx, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-Mhxs5PNr2W9ych56WYUZTEGck4HVTQfkil3S3zHv6Qc="; }; - propagatedBuildInputs = [ - aiolifx - ]; + propagatedBuildInputs = [ aiolifx ]; # tests are not implemented doCheck = false; - pythonImportsCheck = [ - "aiolifx_effects" - ]; + pythonImportsCheck = [ "aiolifx_effects" ]; meta = with lib; { changelog = "https://github.com/amelchio/aiolifx_effects/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/aiolimiter/default.nix b/pkgs/development/python-modules/aiolimiter/default.nix index 5757a77da65b..928fb0123a73 100644 --- a/pkgs/development/python-modules/aiolimiter/default.nix +++ b/pkgs/development/python-modules/aiolimiter/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, importlib-metadata -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, toml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + importlib-metadata, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + toml, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-BpLh9utf2oJe+83rsIZeV5+MjbJ3aO5slMNVbUywQIo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ pytest-asyncio @@ -42,9 +39,7 @@ buildPythonPackage rec { --replace " --cov=aiolimiter --cov-config=tox.ini --cov-report term-missing" "" ''; - pythonImportsCheck = [ - "aiolimiter" - ]; + pythonImportsCheck = [ "aiolimiter" ]; meta = with lib; { description = "Implementation of a rate limiter for asyncio"; diff --git a/pkgs/development/python-modules/aiolip/default.nix b/pkgs/development/python-modules/aiolip/default.nix index d09efdf7866b..5baebc529b02 100644 --- a/pkgs/development/python-modules/aiolip/default.nix +++ b/pkgs/development/python-modules/aiolip/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1bgmcl8q1p6f2xm3w2qylvla6vf6bd1p2hfwj4l8w6w0w04vr02g"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py --replace "'pytest-runner'," "" diff --git a/pkgs/development/python-modules/aiolivisi/default.nix b/pkgs/development/python-modules/aiolivisi/default.nix index 1cad96a9425b..a432f5ec3534 100644 --- a/pkgs/development/python-modules/aiolivisi/default.nix +++ b/pkgs/development/python-modules/aiolivisi/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pydantic -, pytestCheckHook -, pythonOlder -, websockets +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pydantic, + pytestCheckHook, + pythonOlder, + websockets, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "aiolivisi" - ]; + pythonImportsCheck = [ "aiolivisi" ]; meta = with lib; { description = "Module to communicate with LIVISI Smart Home Controller"; diff --git a/pkgs/development/python-modules/aiolookin/default.nix b/pkgs/development/python-modules/aiolookin/default.nix index 75a6b0715d20..ab251f3f820d 100644 --- a/pkgs/development/python-modules/aiolookin/default.nix +++ b/pkgs/development/python-modules/aiolookin/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, faker -, fetchFromGitHub -, pytest-aiohttp -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + faker, + fetchFromGitHub, + pytest-aiohttp, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-G3/lUgV60CMLskUo83TlvLLIfJtu5DEz+94mdVI4OrI="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ faker @@ -39,9 +38,7 @@ buildPythonPackage rec { "test_successful" ]; - pythonImportsCheck = [ - "aiolookin" - ]; + pythonImportsCheck = [ "aiolookin" ]; meta = with lib; { description = "Python client for interacting with LOOKin devices"; diff --git a/pkgs/development/python-modules/aiomcache/default.nix b/pkgs/development/python-modules/aiomcache/default.nix index c5349ce13fc2..f320ae7945d3 100644 --- a/pkgs/development/python-modules/aiomcache/default.nix +++ b/pkgs/development/python-modules/aiomcache/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, python-memcached -, typing-extensions + # dependencies + python-memcached, + typing-extensions, }: buildPythonPackage rec { @@ -23,21 +24,13 @@ buildPythonPackage rec { hash = "sha256-+rlKHDop0kNxJ0HoXROs/oyI4zE3MDyxXXhWZtVDMj4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - python-memcached - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + dependencies = [ python-memcached ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]; doCheck = false; # executes memcached in docker - pythonImportsCheck = [ - "aiomcache" - ]; + pythonImportsCheck = [ "aiomcache" ]; meta = with lib; { changelog = "https://github.com/aio-libs/aiomcache/blob/${src.rev}/CHANGES.rst"; diff --git a/pkgs/development/python-modules/aiomodernforms/default.nix b/pkgs/development/python-modules/aiomodernforms/default.nix index 98133f8b894f..4727fa2b46a5 100644 --- a/pkgs/development/python-modules/aiomodernforms/default.nix +++ b/pkgs/development/python-modules/aiomodernforms/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, backoff -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + backoff, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiomqtt/default.nix b/pkgs/development/python-modules/aiomqtt/default.nix index 3a5321198edf..a67df0b943d9 100644 --- a/pkgs/development/python-modules/aiomqtt/default.nix +++ b/pkgs/development/python-modules/aiomqtt/default.nix @@ -1,13 +1,14 @@ -{ lib -, anyio -, buildPythonPackage -, fetchFromGitHub -, paho-mqtt -, poetry-core -, poetry-dynamic-versioning -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + anyio, + buildPythonPackage, + fetchFromGitHub, + paho-mqtt, + poetry-core, + poetry-dynamic-versioning, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -39,12 +40,11 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiomqtt" - ]; + pythonImportsCheck = [ "aiomqtt" ]; pytestFlagsArray = [ - "-m" "'not network'" + "-m" + "'not network'" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/aiomusiccast/default.nix b/pkgs/development/python-modules/aiomusiccast/default.nix index f2639400bb72..32245aec5a01 100644 --- a/pkgs/development/python-modules/aiomusiccast/default.nix +++ b/pkgs/development/python-modules/aiomusiccast/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, aiohttp -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + aiohttp, + setuptools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace '"0.0.0"' '"${version}"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -38,9 +37,7 @@ buildPythonPackage rec { # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "aiomusiccast" - ]; + pythonImportsCheck = [ "aiomusiccast" ]; meta = with lib; { description = "Companion library for musiccast devices intended for the Home Assistant integration"; diff --git a/pkgs/development/python-modules/aiomysql/default.nix b/pkgs/development/python-modules/aiomysql/default.nix index 140ddfd0e517..093b6f0b96d3 100644 --- a/pkgs/development/python-modules/aiomysql/default.nix +++ b/pkgs/development/python-modules/aiomysql/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pymysql -, pythonOlder -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pymysql, + pythonOlder, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -39,16 +40,12 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - pymysql - ]; + propagatedBuildInputs = [ pymysql ]; # Tests require MySQL database doCheck = false; - pythonImportsCheck = [ - "aiomysql" - ]; + pythonImportsCheck = [ "aiomysql" ]; meta = with lib; { description = "MySQL driver for asyncio"; diff --git a/pkgs/development/python-modules/aionanoleaf/default.nix b/pkgs/development/python-modules/aionanoleaf/default.nix index e819431a4220..18b77947fbdd 100644 --- a/pkgs/development/python-modules/aionanoleaf/default.nix +++ b/pkgs/development/python-modules/aionanoleaf/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-f0TyXhuAzI0s0n6sXH9mKWA4nad2YchZkQ0+jw/Bmv0="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aionanoleaf" - ]; + pythonImportsCheck = [ "aionanoleaf" ]; meta = with lib; { description = "Python wrapper for the Nanoleaf API"; diff --git a/pkgs/development/python-modules/aionotion/default.nix b/pkgs/development/python-modules/aionotion/default.nix index 918900c34a47..645bbc39c14c 100644 --- a/pkgs/development/python-modules/aionotion/default.nix +++ b/pkgs/development/python-modules/aionotion/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, ciso8601 -, fetchFromGitHub -, frozenlist -, mashumaro -, poetry-core -, pyjwt -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pytest-cov -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + ciso8601, + fetchFromGitHub, + frozenlist, + mashumaro, + poetry-core, + pyjwt, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pytest-cov, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-BsbfLb5wCVxR8v2U2Zzt7LMl7XJcZWfVjZN47VDkhFc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -55,13 +54,9 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - "examples" - ]; + disabledTestPaths = [ "examples" ]; - pythonImportsCheck = [ - "aionotion" - ]; + pythonImportsCheck = [ "aionotion" ]; meta = with lib; { description = "Python library for Notion Home Monitoring"; diff --git a/pkgs/development/python-modules/aiooncue/default.nix b/pkgs/development/python-modules/aiooncue/default.nix index 4003ebd5de40..4925d8d34448 100644 --- a/pkgs/development/python-modules/aiooncue/default.nix +++ b/pkgs/development/python-modules/aiooncue/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-TKOpx+twnG9zj7RcwOn53ebT7eyLOFKyxChp9lCdoU8="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module doesn't have tests doCheck = false; @@ -31,9 +30,7 @@ buildPythonPackage rec { --replace '"pytest-runner",' "" ''; - pythonImportsCheck = [ - "aiooncue" - ]; + pythonImportsCheck = [ "aiooncue" ]; meta = with lib; { description = "Module to interact with the Kohler Oncue API"; diff --git a/pkgs/development/python-modules/aioopenssl/default.nix b/pkgs/development/python-modules/aioopenssl/default.nix index 0ecbbc4e6a53..e51b023a3072 100644 --- a/pkgs/development/python-modules/aioopenssl/default.nix +++ b/pkgs/development/python-modules/aioopenssl/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyopenssl -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyopenssl, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,15 +19,11 @@ buildPythonPackage rec { hash = "sha256-7Q+4/DlP+kUnC3YNk7woJaxLEEiuVmolUOajepM003Q="; }; - propagatedBuildInputs = [ - pyopenssl - ]; + propagatedBuildInputs = [ pyopenssl ]; pythonImportsCheck = [ "aioopenssl" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "TLS-capable transport using OpenSSL for asyncio"; diff --git a/pkgs/development/python-modules/aiooui/default.nix b/pkgs/development/python-modules/aiooui/default.nix index d26385e284b0..fb85170c54b4 100644 --- a/pkgs/development/python-modules/aiooui/default.nix +++ b/pkgs/development/python-modules/aiooui/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,18 +31,14 @@ buildPythonPackage rec { --replace-fail '"setuptools>=65.4.1", ' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "aiooui" - ]; + pythonImportsCheck = [ "aiooui" ]; meta = with lib; { description = "Async OUI lookups"; diff --git a/pkgs/development/python-modules/aiopg/default.nix b/pkgs/development/python-modules/aiopg/default.nix index fb49bba0f4ab..a54ce5436b7a 100644 --- a/pkgs/development/python-modules/aiopg/default.nix +++ b/pkgs/development/python-modules/aiopg/default.nix @@ -1,9 +1,10 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, psycopg2 -, pythonOlder +{ + lib, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + psycopg2, + pythonOlder, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { # Tests requires a PostgreSQL Docker instance doCheck = false; - pythonImportsCheck = [ - "aiopg" - ]; + pythonImportsCheck = [ "aiopg" ]; meta = with lib; { description = "Python library for accessing a PostgreSQL database"; diff --git a/pkgs/development/python-modules/aiopinboard/default.nix b/pkgs/development/python-modules/aiopinboard/default.nix index 33d4d82ea218..f6785c7facb2 100644 --- a/pkgs/development/python-modules/aiopinboard/default.nix +++ b/pkgs/development/python-modules/aiopinboard/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, aresponses -, arrow -, buildPythonPackage -, certifi -, fetchFromGitHub -, frozenlist -, poetry-core -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + arrow, + buildPythonPackage, + certifi, + fetchFromGitHub, + frozenlist, + poetry-core, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-/N9r17e0ZvPmcqW/XtRyAENKCGRzWqeOSKPpWHHYomg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -45,10 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - - pythonImportsCheck = [ - "aiopinboard" - ]; + pythonImportsCheck = [ "aiopinboard" ]; meta = with lib; { description = "Library to interact with the Pinboard API"; diff --git a/pkgs/development/python-modules/aioprocessing/default.nix b/pkgs/development/python-modules/aioprocessing/default.nix index 4a66a8f35d02..b54e16612f87 100644 --- a/pkgs/development/python-modules/aioprocessing/default.nix +++ b/pkgs/development/python-modules/aioprocessing/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-/gHHsaOMeBaGEdMEDnPZMDbDt8imSdY23J7Xo7ybG6I="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Tests aren't included in pypi package doCheck = false; - pythonImportsCheck = [ - "aioprocessing" - ]; + pythonImportsCheck = [ "aioprocessing" ]; meta = with lib; { description = "Library that integrates the multiprocessing module with asyncio"; diff --git a/pkgs/development/python-modules/aioprometheus/default.nix b/pkgs/development/python-modules/aioprometheus/default.nix index 273d35fe13d9..f12c4f1a722c 100644 --- a/pkgs/development/python-modules/aioprometheus/default.nix +++ b/pkgs/development/python-modules/aioprometheus/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, orjson -, quantile-python -, aiohttp -, aiohttp-basicauth -, starlette -, quart -, pytestCheckHook -, httpx -, fastapi -, uvicorn -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + orjson, + quantile-python, + aiohttp, + aiohttp-basicauth, + starlette, + quart, + pytestCheckHook, + httpx, + fastapi, + uvicorn, + pythonOlder, }: buildPythonPackage rec { @@ -34,15 +35,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - aiohttp = [ - aiohttp - ]; - starlette = [ - starlette - ]; - quart = [ - quart - ]; + aiohttp = [ aiohttp ]; + starlette = [ starlette ]; + quart = [ quart ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/aiopulse/default.nix b/pkgs/development/python-modules/aiopulse/default.nix index 3a2c11417be6..3155e6d7d9ef 100644 --- a/pkgs/development/python-modules/aiopulse/default.nix +++ b/pkgs/development/python-modules/aiopulse/default.nix @@ -1,9 +1,10 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-yrltqnePNnNwsVGkfXgtrtL/FuazRvmoVL4L0H4j4Bg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - async-timeout - ]; + propagatedBuildInputs = [ async-timeout ]; # Tests are not present doCheck = false; - pythonImportsCheck = [ - "aiopulse" - ]; + pythonImportsCheck = [ "aiopulse" ]; meta = with lib; { description = "Python Rollease Acmeda Automate Pulse hub protocol implementation"; diff --git a/pkgs/development/python-modules/aiopurpleair/default.nix b/pkgs/development/python-modules/aiopurpleair/default.nix index 2fd8515b237a..bc6ec70a0753 100644 --- a/pkgs/development/python-modules/aiopurpleair/default.nix +++ b/pkgs/development/python-modules/aiopurpleair/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pydantic -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pydantic, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-2Ngo2pvzwcgQvpyW5Q97VQN/tGSVhVJwRj0DMaPn+O4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "aiopurpleair" - ]; + pythonImportsCheck = [ "aiopurpleair" ]; meta = with lib; { description = "Python library for interacting with the PurpleAir API"; diff --git a/pkgs/development/python-modules/aiopvpc/default.nix b/pkgs/development/python-modules/aiopvpc/default.nix index 19baf29f55c5..82c5f0ab124b 100644 --- a/pkgs/development/python-modules/aiopvpc/default.nix +++ b/pkgs/development/python-modules/aiopvpc/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, async-timeout -, backports-zoneinfo -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, python-dotenv +{ + lib, + aiohttp, + async-timeout, + backports-zoneinfo, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + python-dotenv, }: buildPythonPackage rec { @@ -31,16 +32,12 @@ buildPythonPackage rec { --replace-fail " --cov --cov-report term --cov-report html" "" ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp async-timeout - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; nativeCheckInputs = [ pytest-asyncio @@ -49,9 +46,7 @@ buildPythonPackage rec { python-dotenv ]; - pythonImportsCheck = [ - "aiopvpc" - ]; + pythonImportsCheck = [ "aiopvpc" ]; meta = with lib; { description = "Python module to download Spanish electricity hourly prices (PVPC)"; diff --git a/pkgs/development/python-modules/aiopyarr/default.nix b/pkgs/development/python-modules/aiopyarr/default.nix index c4a6cf05ad51..a957998de354 100644 --- a/pkgs/development/python-modules/aiopyarr/default.nix +++ b/pkgs/development/python-modules/aiopyarr/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, ciso8601 -, fetchFromGitHub -, orjson -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + ciso8601, + fetchFromGitHub, + orjson, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiopyarr" - ]; + pythonImportsCheck = [ "aiopyarr" ]; meta = with lib; { description = "Python API client for Lidarr/Radarr/Readarr/Sonarr"; diff --git a/pkgs/development/python-modules/aiopylgtv/default.nix b/pkgs/development/python-modules/aiopylgtv/default.nix index b7034d385835..8a23532f6345 100644 --- a/pkgs/development/python-modules/aiopylgtv/default.nix +++ b/pkgs/development/python-modules/aiopylgtv/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pythonOlder -, sqlitedict -, websockets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pythonOlder, + sqlitedict, + websockets, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aioqsw/default.nix b/pkgs/development/python-modules/aioqsw/default.nix index 7e62d1f2089d..b936ef738716 100644 --- a/pkgs/development/python-modules/aioqsw/default.nix +++ b/pkgs/development/python-modules/aioqsw/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -27,16 +28,12 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "aioqsw" - ]; + pythonImportsCheck = [ "aioqsw" ]; meta = with lib; { description = "Library to fetch data from QNAP QSW switches"; diff --git a/pkgs/development/python-modules/aioquic/default.nix b/pkgs/development/python-modules/aioquic/default.nix index 071fe70dd962..4b909ecb4aca 100644 --- a/pkgs/development/python-modules/aioquic/default.nix +++ b/pkgs/development/python-modules/aioquic/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, certifi -, cryptography -, fetchPypi -, fetchpatch -, openssl -, pylsqpack -, pyopenssl -, pytestCheckHook -, pythonOlder -, setuptools -, service-identity +{ + lib, + buildPythonPackage, + certifi, + cryptography, + fetchPypi, + fetchpatch, + openssl, + pylsqpack, + pyopenssl, + pytestCheckHook, + pythonOlder, + setuptools, + service-identity, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ certifi @@ -44,17 +43,11 @@ buildPythonPackage rec { service-identity ]; - buildInputs = [ - openssl - ]; + buildInputs = [ openssl ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "aioquic" - ]; + pythonImportsCheck = [ "aioquic" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/aioraven/default.nix b/pkgs/development/python-modules/aioraven/default.nix index ca64f111e35e..44e1530dce76 100644 --- a/pkgs/development/python-modules/aioraven/default.nix +++ b/pkgs/development/python-modules/aioraven/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, iso4217 -, pyserial -, pyserial-asyncio -, pytestCheckHook -, pytest-asyncio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + iso4217, + pyserial, + pyserial-asyncio, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-kGCFwpMaLWxLUp8k5H5AnL21KrwohbUYLswLcLqmc3M="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ iso4217 @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioraven" - ]; + pythonImportsCheck = [ "aioraven" ]; meta = with lib; { description = "Module for communication with RAVEn devices"; diff --git a/pkgs/development/python-modules/aiorecollect/default.nix b/pkgs/development/python-modules/aiorecollect/default.nix index 4d3aae9dc1b8..9cb3cca5d666 100644 --- a/pkgs/development/python-modules/aiorecollect/default.nix +++ b/pkgs/development/python-modules/aiorecollect/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, freezegun -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + freezegun, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { sed -i '/certifi =/d' pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; __darwinAllowLocalNetworking = true; @@ -52,9 +49,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "aiorecollect" - ]; + pythonImportsCheck = [ "aiorecollect" ]; meta = with lib; { description = "Python library for the Recollect Waste API"; diff --git a/pkgs/development/python-modules/aioredis/default.nix b/pkgs/development/python-modules/aioredis/default.nix index 2c944600ef91..aef2e406036e 100644 --- a/pkgs/development/python-modules/aioredis/default.nix +++ b/pkgs/development/python-modules/aioredis/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, async-timeout -, typing-extensions -, hiredis -, isPyPy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + async-timeout, + typing-extensions, + hiredis, + isPyPy, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aioresponses/default.nix b/pkgs/development/python-modules/aioresponses/default.nix index 6cbcad24bdc4..c95e48c4ba3e 100644 --- a/pkgs/development/python-modules/aioresponses/default.nix +++ b/pkgs/development/python-modules/aioresponses/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, pbr -, setuptools + # build-system + pbr, + setuptools, -# dependencies -, aiohttp + # dependencies + aiohttp, -# tests -, ddt -, pytestCheckHook + # tests + ddt, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - pythonImportsCheck = [ - "aioresponses" - ]; + pythonImportsCheck = [ "aioresponses" ]; nativeCheckInputs = [ ddt diff --git a/pkgs/development/python-modules/aioridwell/default.nix b/pkgs/development/python-modules/aioridwell/default.nix index 6598b42ed8bf..da7c4322b7be 100644 --- a/pkgs/development/python-modules/aioridwell/default.nix +++ b/pkgs/development/python-modules/aioridwell/default.nix @@ -1,19 +1,20 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, freezegun -, poetry-core -, pyjwt -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pytz -, titlecase -, types-pytz +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + freezegun, + poetry-core, + pyjwt, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pytz, + titlecase, + types-pytz, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-B5k8uXDHq0U6fJVW8oy2sWUj5OIVGUfe9EtCjnIr3OE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -63,9 +62,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "aioridwell" - ]; + pythonImportsCheck = [ "aioridwell" ]; meta = with lib; { description = "Python library for interacting with Ridwell waste recycling"; diff --git a/pkgs/development/python-modules/aiormq/default.nix b/pkgs/development/python-modules/aiormq/default.nix index 214ffc714ee6..773477e62c72 100644 --- a/pkgs/development/python-modules/aiormq/default.nix +++ b/pkgs/development/python-modules/aiormq/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiomisc-pytest -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, pytestCheckHook -, pamqp -, yarl -, poetry-core +{ + lib, + aiomisc-pytest, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + pytestCheckHook, + pamqp, + yarl, + poetry-core, }: buildPythonPackage rec { @@ -29,22 +30,16 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pamqp" - ]; + pythonRelaxDeps = [ "pamqp" ]; propagatedBuildInputs = [ pamqp yarl ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - aiomisc-pytest - ]; + checkInputs = [ aiomisc-pytest ]; # Tests attempt to connect to a RabbitMQ server disabledTestPaths = [ @@ -52,9 +47,7 @@ buildPythonPackage rec { "tests/test_connection.py" ]; - pythonImportsCheck = [ - "aiormq" - ]; + pythonImportsCheck = [ "aiormq" ]; meta = with lib; { description = "AMQP 0.9.1 asynchronous client library"; diff --git a/pkgs/development/python-modules/aiorpcx/default.nix b/pkgs/development/python-modules/aiorpcx/default.nix index 5686a7dafd12..a770b6e5f3ab 100644 --- a/pkgs/development/python-modules/aiorpcx/default.nix +++ b/pkgs/development/python-modules/aiorpcx/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, attrs +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + attrs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiortsp/default.nix b/pkgs/development/python-modules/aiortsp/default.nix index a988e670070d..76d9f7a30486 100644 --- a/pkgs/development/python-modules/aiortsp/default.nix +++ b/pkgs/development/python-modules/aiortsp/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, dpkt + # dependencies + dpkt, -# tests -, mock -, pytestCheckHook -, pytest-asyncio + # tests + mock, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-bxfnKAzMYh0lhS3he617eGhO7hmNbiwEYHh8k/PZ6r4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - dpkt - ]; + propagatedBuildInputs = [ dpkt ]; nativeCheckInputs = [ mock @@ -40,9 +37,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "aiortsp" - ]; + pythonImportsCheck = [ "aiortsp" ]; meta = with lib; { description = "An Asyncio-based RTSP library"; diff --git a/pkgs/development/python-modules/aioruckus/default.nix b/pkgs/development/python-modules/aioruckus/default.nix index a3d77994f432..d78c56e92cc3 100644 --- a/pkgs/development/python-modules/aioruckus/default.nix +++ b/pkgs/development/python-modules/aioruckus/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, wheel -, xmltodict +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, + xmltodict, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { xmltodict ]; - pythonImportsCheck = [ - "aioruckus" - ]; + pythonImportsCheck = [ "aioruckus" ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/aiorun/default.nix b/pkgs/development/python-modules/aiorun/default.nix index 1d181dc7cf4f..318411ae9a5d 100644 --- a/pkgs/development/python-modules/aiorun/default.nix +++ b/pkgs/development/python-modules/aiorun/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, fetchpatch -, flit-core -, pygments -, pytestCheckHook -, uvloop +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + fetchpatch, + flit-core, + pygments, + pytestCheckHook, + uvloop, }: buildPythonPackage rec { @@ -25,19 +26,16 @@ buildPythonPackage rec { patches = [ # Raise flit-core version constrains - (fetchpatch { # https://github.com/cjrh/aiorun/pull/85 + (fetchpatch { + # https://github.com/cjrh/aiorun/pull/85 url = "https://github.com/cjrh/aiorun/commit/a0c027ea331167712738e35ca70fefcd794e16d5.patch"; hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk="; }) ]; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; - dependencies = [ - pygments - ]; + dependencies = [ pygments ]; nativeCheckInputs = [ pytestCheckHook @@ -49,9 +47,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pythonImportsCheck = [ - "aiorun" - ]; + pythonImportsCheck = [ "aiorun" ]; meta = with lib; { description = "Boilerplate for asyncio applications"; diff --git a/pkgs/development/python-modules/aioruuvigateway/default.nix b/pkgs/development/python-modules/aioruuvigateway/default.nix index 215d34d098b0..2084d5d0bdf5 100644 --- a/pkgs/development/python-modules/aioruuvigateway/default.nix +++ b/pkgs/development/python-modules/aioruuvigateway/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, bluetooth-data-tools -, httpx -, pytest-asyncio -, pytest-httpx -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + bluetooth-data-tools, + httpx, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Etv+kPFYEK79hpDeNmDfuyNj1vJ6udry1u+TRO5gLV4="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -36,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioruuvigateway" - ]; + pythonImportsCheck = [ "aioruuvigateway" ]; meta = with lib; { description = "An asyncio-native library for requesting data from a Ruuvi Gateway"; diff --git a/pkgs/development/python-modules/aiorwlock/default.nix b/pkgs/development/python-modules/aiorwlock/default.nix index 87fab70a03f3..1a1de43c0886 100644 --- a/pkgs/development/python-modules/aiorwlock/default.nix +++ b/pkgs/development/python-modules/aiorwlock/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pytest-asyncio -, pytest-cov -, pytestCheckHook +{ + buildPythonPackage, + fetchPypi, + lib, + pytest-asyncio, + pytest-cov, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiosasl/default.nix b/pkgs/development/python-modules/aiosasl/default.nix index d904802ff61a..81f96c4d1b1b 100644 --- a/pkgs/development/python-modules/aiosasl/default.nix +++ b/pkgs/development/python-modules/aiosasl/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pyopenssl -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pyopenssl, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aiosenz/default.nix b/pkgs/development/python-modules/aiosenz/default.nix index cddb2f37071f..48a5ca3d1025 100644 --- a/pkgs/development/python-modules/aiosenz/default.nix +++ b/pkgs/development/python-modules/aiosenz/default.nix @@ -1,11 +1,12 @@ -{ lib -, authlib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + authlib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-ODdWPS14zzptxuS6mff51f0s1SYnIqjF40DmvT0sL0w="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ httpx @@ -34,9 +33,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aiosenz" - ]; + pythonImportsCheck = [ "aiosenz" ]; meta = with lib; { description = "Python wrapper for the nVent Raychem SENZ RestAPI"; diff --git a/pkgs/development/python-modules/aioserial/default.nix b/pkgs/development/python-modules/aioserial/default.nix index ca0c4d2e8c6e..d413591aaa3a 100644 --- a/pkgs/development/python-modules/aioserial/default.nix +++ b/pkgs/development/python-modules/aioserial/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyserial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-cCvwOw64S47y2NrFy5JeHmhdzpj3exJVabxv0rO1gig="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/aioshutil/default.nix b/pkgs/development/python-modules/aioshutil/default.nix index 84813ff04c97..599745e19180 100644 --- a/pkgs/development/python-modules/aioshutil/default.nix +++ b/pkgs/development/python-modules/aioshutil/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-XIGjiLjoyS/7vUDIyBPvHNMyHOBa0gsg/c/vGgrhZAg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ pytest-asyncio @@ -35,9 +34,7 @@ buildPythonPackage rec { --replace " --cov aioshutil --cov-report xml" "" ''; - pythonImportsCheck = [ - "aioshutil" - ]; + pythonImportsCheck = [ "aioshutil" ]; meta = with lib; { description = "Asynchronous version of function of shutil module"; diff --git a/pkgs/development/python-modules/aiosignal/default.nix b/pkgs/development/python-modules/aiosignal/default.nix index 2b3addc35917..7e024ce27626 100644 --- a/pkgs/development/python-modules/aiosignal/default.nix +++ b/pkgs/development/python-modules/aiosignal/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, frozenlist -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + frozenlist, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-vx3Fe28r+0it1UFwyDSD9NNyeIN4tywTyr4pVp49WuU="; }; - propagatedBuildInputs = [ - frozenlist - ]; + propagatedBuildInputs = [ frozenlist ]; nativeCheckInputs = [ pytest-asyncio @@ -36,9 +35,7 @@ buildPythonPackage rec { --replace "--cov=aiosignal" "" ''; - pythonImportsCheck = [ - "aiosignal" - ]; + pythonImportsCheck = [ "aiosignal" ]; meta = with lib; { description = "Python list of registered asynchronous callbacks"; diff --git a/pkgs/development/python-modules/aioskybell/default.nix b/pkgs/development/python-modules/aioskybell/default.nix index 2e5527850bf5..922d60f4c33c 100644 --- a/pkgs/development/python-modules/aioskybell/default.nix +++ b/pkgs/development/python-modules/aioskybell/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiofiles -, aiohttp -, aresponses -, buildPythonPackage -, ciso8601 -, fetchFromGitHub -, pytest-asyncio -, pytest-freezegun -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiofiles, + aiohttp, + aresponses, + buildPythonPackage, + ciso8601, + fetchFromGitHub, + pytest-asyncio, + pytest-freezegun, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'version="master",' 'version="${version}",' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aioskybell" - ]; + pythonImportsCheck = [ "aioskybell" ]; meta = with lib; { description = "API client for Skybell doorbells"; diff --git a/pkgs/development/python-modules/aioslimproto/default.nix b/pkgs/development/python-modules/aioslimproto/default.nix index 0a92b10bfd29..0f6d21d3aefb 100644 --- a/pkgs/development/python-modules/aioslimproto/default.nix +++ b/pkgs/development/python-modules/aioslimproto/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pillow -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pillow, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { --replace-fail "--cov" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -40,9 +39,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "aioslimproto" - ]; + pythonImportsCheck = [ "aioslimproto" ]; meta = with lib; { description = "Module to control Squeezebox players"; diff --git a/pkgs/development/python-modules/aiosmb/default.nix b/pkgs/development/python-modules/aiosmb/default.nix index 873eb8d24acf..0fe74733ff64 100644 --- a/pkgs/development/python-modules/aiosmb/default.nix +++ b/pkgs/development/python-modules/aiosmb/default.nix @@ -1,18 +1,19 @@ -{ lib -, asyauth -, asysocks -, buildPythonPackage -, colorama -, cryptography -, fetchPypi -, minikerberos -, prompt-toolkit -, pycryptodomex -, pythonOlder -, six -, tqdm -, winacl -, winsspi +{ + lib, + asyauth, + asysocks, + buildPythonPackage, + colorama, + cryptography, + fetchPypi, + minikerberos, + prompt-toolkit, + pycryptodomex, + pythonOlder, + six, + tqdm, + winacl, + winsspi, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { # Project doesn't have tests doCheck = false; - pythonImportsCheck = [ - "aiosmb" - ]; + pythonImportsCheck = [ "aiosmb" ]; meta = with lib; { description = "Python SMB library"; diff --git a/pkgs/development/python-modules/aiosmtpd/default.nix b/pkgs/development/python-modules/aiosmtpd/default.nix index 39050153be2e..78ea18709d8b 100644 --- a/pkgs/development/python-modules/aiosmtpd/default.nix +++ b/pkgs/development/python-modules/aiosmtpd/default.nix @@ -1,13 +1,14 @@ -{ lib -, atpublic -, attrs -, buildPythonPackage -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + atpublic, + attrs, + buildPythonPackage, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { hash = "sha256-8nQ4BVSLYgZHRGkbujy/olV/+GABlkDhe5wef3hyQpQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ atpublic attrs - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ pytest-mock @@ -50,9 +47,7 @@ buildPythonPackage rec { "test_byclient" ]; - pythonImportsCheck = [ - "aiosmtpd" - ]; + pythonImportsCheck = [ "aiosmtpd" ]; meta = with lib; { description = "Asyncio based SMTP server"; diff --git a/pkgs/development/python-modules/aiosmtplib/default.nix b/pkgs/development/python-modules/aiosmtplib/default.nix index dda58fc011e8..fa8822675a22 100644 --- a/pkgs/development/python-modules/aiosmtplib/default.nix +++ b/pkgs/development/python-modules/aiosmtplib/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiosmtpd -, buildPythonPackage -, fetchFromGitHub -, hypothesis -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, trustme +{ + lib, + aiosmtpd, + buildPythonPackage, + fetchFromGitHub, + hypothesis, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + trustme, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-67Z+k+PBIGP2oGb/52dMtsapUsHufvFcX+wWiMj5Jsg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ aiosmtpd @@ -36,9 +35,7 @@ buildPythonPackage rec { trustme ]; - pythonImportsCheck = [ - "aiosmtplib" - ]; + pythonImportsCheck = [ "aiosmtplib" ]; meta = with lib; { description = "Module which provides a SMTP client"; diff --git a/pkgs/development/python-modules/aiosomecomfort/default.nix b/pkgs/development/python-modules/aiosomecomfort/default.nix index 59698d94a314..6161fd0166de 100644 --- a/pkgs/development/python-modules/aiosomecomfort/default.nix +++ b/pkgs/development/python-modules/aiosomecomfort/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, prettytable -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + prettytable, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-EmglZW9gzgswxoEtDT+evjn8N+3aPooYFudwAXP8XEE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp prettytable ]; - pythonImportsCheck = [ - "aiosomecomfort" - ]; + pythonImportsCheck = [ "aiosomecomfort" ]; # Tests only run on Windows, due to WindowsSelectorEventLoopPolicy doCheck = false; diff --git a/pkgs/development/python-modules/aiosql/default.nix b/pkgs/development/python-modules/aiosql/default.nix index ac2ff4a650a8..1ffaae51334c 100644 --- a/pkgs/development/python-modules/aiosql/default.nix +++ b/pkgs/development/python-modules/aiosql/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pg8000 -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, sphinx-rtd-theme -, sphinxHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pg8000, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + sphinx-rtd-theme, + sphinxHook, }: buildPythonPackage rec { @@ -39,18 +40,14 @@ buildPythonPackage rec { sphinxHook ]; - propagatedBuildInputs = [ - pg8000 - ]; + propagatedBuildInputs = [ pg8000 ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "aiosql" - ]; + pythonImportsCheck = [ "aiosql" ]; meta = with lib; { description = "Simple SQL in Python"; diff --git a/pkgs/development/python-modules/aiosqlite/default.nix b/pkgs/development/python-modules/aiosqlite/default.nix index bd16b06895a6..3bad4e187070 100644 --- a/pkgs/development/python-modules/aiosqlite/default.nix +++ b/pkgs/development/python-modules/aiosqlite/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -21,26 +22,16 @@ buildPythonPackage rec { hash = "sha256-JQ9iNxK7FvBhPyr825d+8P5ZYFztDIX3gOwp4FPfyU4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Tests are not pick-up automatically by the hook - pytestFlagsArray = [ - "aiosqlite/tests/*.py" - ]; + pytestFlagsArray = [ "aiosqlite/tests/*.py" ]; - pythonImportsCheck = [ - "aiosqlite" - ]; + pythonImportsCheck = [ "aiosqlite" ]; meta = with lib; { description = "Asyncio bridge to the standard sqlite3 module"; diff --git a/pkgs/development/python-modules/aiosteamist/default.nix b/pkgs/development/python-modules/aiosteamist/default.nix index 535594e3d28d..b6fc08e3c9d1 100644 --- a/pkgs/development/python-modules/aiosteamist/default.nix +++ b/pkgs/development/python-modules/aiosteamist/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, xmltodict +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + xmltodict, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-IKrAJ4QDcYJRO4hcomL9FRs8hJ3k7SgRgK4H1b8SxIM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -36,9 +35,7 @@ buildPythonPackage rec { --replace 'xmltodict = "^0.12.0"' 'xmltodict = "*"' ''; - pythonImportsCheck = [ - "aiosteamist" - ]; + pythonImportsCheck = [ "aiosteamist" ]; # Modules doesn't have test suite doCheck = false; diff --git a/pkgs/development/python-modules/aiostream/default.nix b/pkgs/development/python-modules/aiostream/default.nix index 43f3ae89f138..b787f69c1b74 100644 --- a/pkgs/development/python-modules/aiostream/default.nix +++ b/pkgs/development/python-modules/aiostream/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { --replace " --cov aiostream --cov-report html --cov-report term" "" ''; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "aiostream" - ]; + pythonImportsCheck = [ "aiostream" ]; meta = with lib; { description = "Generator-based operators for asynchronous iteration"; diff --git a/pkgs/development/python-modules/aioswitcher/default.nix b/pkgs/development/python-modules/aioswitcher/default.nix index 4534dcf09687..bd6b8df30a91 100644 --- a/pkgs/development/python-modules/aioswitcher/default.nix +++ b/pkgs/development/python-modules/aioswitcher/default.nix @@ -1,16 +1,17 @@ -{ lib -, assertpy -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytest-mockservers -, pytest-resource-path -, pytest-sugar -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, time-machine +{ + lib, + assertpy, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-mockservers, + pytest-resource-path, + pytest-sugar, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + time-machine, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; preCheck = '' export TZ=Asia/Jerusalem @@ -47,21 +46,21 @@ buildPythonPackage rec { time-machine ]; - disabledTests = [ - # AssertionError: Expected <14:00> to be equal to <17:00>, but was not. - "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data" - "test_schedule_parser_with_a_daily_recurring_enabled_schedule_data" - "test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data" - "test_schedule_parser_with_a_non_recurring_enabled_schedule_data" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # ssertionError: Expected <'I' format requires 0 <= number <= 4294967295> to be equal to , but was not. - "test_minutes_to_hexadecimal_seconds_with_a_negative_value_should_throw_an_error" - "test_current_timestamp_to_hexadecimal_with_errornous_value_should_throw_an_error" - ]; + disabledTests = + [ + # AssertionError: Expected <14:00> to be equal to <17:00>, but was not. + "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data" + "test_schedule_parser_with_a_daily_recurring_enabled_schedule_data" + "test_schedule_parser_with_a_partial_daily_recurring_enabled_schedule_data" + "test_schedule_parser_with_a_non_recurring_enabled_schedule_data" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # ssertionError: Expected <'I' format requires 0 <= number <= 4294967295> to be equal to , but was not. + "test_minutes_to_hexadecimal_seconds_with_a_negative_value_should_throw_an_error" + "test_current_timestamp_to_hexadecimal_with_errornous_value_should_throw_an_error" + ]; - pythonImportsCheck = [ - "aioswitcher" - ]; + pythonImportsCheck = [ "aioswitcher" ]; meta = with lib; { description = "Python module to interact with Switcher water heater"; diff --git a/pkgs/development/python-modules/aiosyncthing/default.nix b/pkgs/development/python-modules/aiosyncthing/default.nix index fd9d02cb3a72..59bc50e78e37 100644 --- a/pkgs/development/python-modules/aiosyncthing/default.nix +++ b/pkgs/development/python-modules/aiosyncthing/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, expects -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, yarl +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + expects, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + yarl, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pytest-mock ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; postPatch = '' substituteInPlace pyproject.toml \ diff --git a/pkgs/development/python-modules/aiotankerkoenig/default.nix b/pkgs/development/python-modules/aiotankerkoenig/default.nix index 5915fdd6beb1..a1a2fd247171 100644 --- a/pkgs/development/python-modules/aiotankerkoenig/default.nix +++ b/pkgs/development/python-modules/aiotankerkoenig/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy -, yarl +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, + yarl, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace-fail "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "aiotankerkoenig" - ]; + pythonImportsCheck = [ "aiotankerkoenig" ]; meta = with lib; { description = "Python module for interacting with tankerkoenig.de"; diff --git a/pkgs/development/python-modules/aiotractive/default.nix b/pkgs/development/python-modules/aiotractive/default.nix index 4af4f9618784..a299a349856d 100644 --- a/pkgs/development/python-modules/aiotractive/default.nix +++ b/pkgs/development/python-modules/aiotractive/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, yarl +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + yarl, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-fIdIFG1OpAN1R2L2RryTzYZyqGLo3tqAAkRC8UUFM4k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aiotractive" - ]; + pythonImportsCheck = [ "aiotractive" ]; meta = with lib; { changelog = "https://github.com/zhulik/aiotractive/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/aiounittest/default.nix b/pkgs/development/python-modules/aiounittest/default.nix index 1c97a430503a..beae5db296ab 100644 --- a/pkgs/development/python-modules/aiounittest/default.nix +++ b/pkgs/development/python-modules/aiounittest/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, setuptools -, pynose -, coverage -, wrapt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + setuptools, + pynose, + coverage, + wrapt, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-7lDOI1SHPpRZLTHRTmfbKlZH18T73poJdFyVmb+HKms="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - wrapt - ]; + propagatedBuildInputs = [ wrapt ]; nativeCheckInputs = [ pynose diff --git a/pkgs/development/python-modules/aiovlc/default.nix b/pkgs/development/python-modules/aiovlc/default.nix index 39607c9fdde5..d0e0e42f33ff 100644 --- a/pkgs/development/python-modules/aiovlc/default.nix +++ b/pkgs/development/python-modules/aiovlc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { " --cov=aiovlc --cov-report=term-missing:skip-covered" "" ''; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; nativeCheckInputs = [ pytest-asyncio @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "aiovlc" - ]; + pythonImportsCheck = [ "aiovlc" ]; meta = with lib; { description = "Python module to control VLC"; diff --git a/pkgs/development/python-modules/aiowaqi/default.nix b/pkgs/development/python-modules/aiowaqi/default.nix index 19e133e27cbd..d69377e8be8c 100644 --- a/pkgs/development/python-modules/aiowaqi/default.nix +++ b/pkgs/development/python-modules/aiowaqi/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -46,18 +45,14 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "aiowaqi" - ]; + pythonImportsCheck = [ "aiowaqi" ]; disabledTests = [ # Upstream mocking fails "test_search" ]; - pytestFlagsArray = [ - "--snapshot-update" - ]; + pytestFlagsArray = [ "--snapshot-update" ]; meta = with lib; { description = "Module to interact with the WAQI API"; diff --git a/pkgs/development/python-modules/aiowatttime/default.nix b/pkgs/development/python-modules/aiowatttime/default.nix index f20f7fe02ab1..74e85adc6913 100644 --- a/pkgs/development/python-modules/aiowatttime/default.nix +++ b/pkgs/development/python-modules/aiowatttime/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-sodgFveVE2Z894z36AzXF6c3iI4UhaqMJK+H6CjsvGA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/aiowebostv/default.nix b/pkgs/development/python-modules/aiowebostv/default.nix index e264710e0c47..2e3ee99d5ab3 100644 --- a/pkgs/development/python-modules/aiowebostv/default.nix +++ b/pkgs/development/python-modules/aiowebostv/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, websockets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + websockets, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-VUznW+rMCZF1LbrQmEaOgdcX3YCm6Tf7yWlB8KNrjxU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - websockets - ]; + propagatedBuildInputs = [ websockets ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "aiowebostv" - ]; + pythonImportsCheck = [ "aiowebostv" ]; meta = with lib; { description = "Module to interact with LG webOS based TV devices"; diff --git a/pkgs/development/python-modules/aioweenect/default.nix b/pkgs/development/python-modules/aioweenect/default.nix index a55c1ad65046..43083f319ba1 100644 --- a/pkgs/development/python-modules/aioweenect/default.nix +++ b/pkgs/development/python-modules/aioweenect/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { --replace "--cov --cov-report term-missing --cov-report xml --cov=aioweenect tests" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ aresponses @@ -42,10 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - - pythonImportsCheck = [ - "aioweenect" - ]; + pythonImportsCheck = [ "aioweenect" ]; meta = with lib; { description = "Library for the weenect API"; diff --git a/pkgs/development/python-modules/aiowithings/default.nix b/pkgs/development/python-modules/aiowithings/default.nix index 46dfafb2ad75..31d6af04cf35 100644 --- a/pkgs/development/python-modules/aiowithings/default.nix +++ b/pkgs/development/python-modules/aiowithings/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy -, yarl +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -46,9 +45,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "aiowithings" - ]; + pythonImportsCheck = [ "aiowithings" ]; meta = with lib; { description = "Module to interact with Withings"; diff --git a/pkgs/development/python-modules/aioxmpp/default.nix b/pkgs/development/python-modules/aioxmpp/default.nix index 6c7660f9f3e1..1608a234e721 100644 --- a/pkgs/development/python-modules/aioxmpp/default.nix +++ b/pkgs/development/python-modules/aioxmpp/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiosasl -, aioopenssl -, babel -, dnspython -, lxml -, multidict -, pyasn1 -, pyasn1-modules -, pyopenssl -, pytz -, sortedcollections -, tzlocal -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiosasl, + aioopenssl, + babel, + dnspython, + lxml, + multidict, + pyasn1, + pyasn1-modules, + pyopenssl, + pytz, + sortedcollections, + tzlocal, + pytestCheckHook, }: buildPythonPackage rec { @@ -52,13 +53,9 @@ buildPythonPackage rec { "aioxmpp.stream" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = [ - "benchmarks" - ]; + disabledTestPaths = [ "benchmarks" ]; disabledTests = [ # AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'normalize' diff --git a/pkgs/development/python-modules/aioymaps/default.nix b/pkgs/development/python-modules/aioymaps/default.nix index aea81caca754..1bb817406af8 100644 --- a/pkgs/development/python-modules/aioymaps/default.nix +++ b/pkgs/development/python-modules/aioymaps/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-pW8FoMdA8XdQZmLRwk5SBBgFhYhgEMJPA9+b+8aicuE="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/airium/default.nix b/pkgs/development/python-modules/airium/default.nix index b61cd573fb4b..c433c0066771 100644 --- a/pkgs/development/python-modules/airium/default.nix +++ b/pkgs/development/python-modules/airium/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, setuptools -, pytestCheckHook -, beautifulsoup4 +{ + lib, + buildPythonPackage, + fetchFromGitLab, + setuptools, + pytestCheckHook, + beautifulsoup4, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-qAU+rmj2ZHw7KdxVvRyponcPiRcyENfDyW1y9JTiwsY="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/airly/default.nix b/pkgs/development/python-modules/airly/default.nix index 7153890494e2..c9e3d2726e36 100644 --- a/pkgs/development/python-modules/airly/default.nix +++ b/pkgs/development/python-modules/airly/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, aioresponses -, aiounittest -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + aiounittest, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/airthings-cloud/default.nix b/pkgs/development/python-modules/airthings-cloud/default.nix index fb8b20965a31..6016d1921cc6 100644 --- a/pkgs/development/python-modules/airthings-cloud/default.nix +++ b/pkgs/development/python-modules/airthings-cloud/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "airthings" - ]; + pythonImportsCheck = [ "airthings" ]; meta = with lib; { description = "Python module for Airthings"; diff --git a/pkgs/development/python-modules/airtouch4pyapi/default.nix b/pkgs/development/python-modules/airtouch4pyapi/default.nix index de19c5965364..4fd3df8885b9 100644 --- a/pkgs/development/python-modules/airtouch4pyapi/default.nix +++ b/pkgs/development/python-modules/airtouch4pyapi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-RiRwebumidn0nijL/e9J74ZYx0DASi1up5BTNxYoGEA="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/ajpy/default.nix b/pkgs/development/python-modules/ajpy/default.nix index 6ae4a11322f9..e8db62267dbe 100644 --- a/pkgs/development/python-modules/ajpy/default.nix +++ b/pkgs/development/python-modules/ajpy/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "ajpy"; diff --git a/pkgs/development/python-modules/alabaster/default.nix b/pkgs/development/python-modules/alabaster/default.nix index b2b77a34c881..3d13eaee2d0d 100644 --- a/pkgs/development/python-modules/alabaster/default.nix +++ b/pkgs/development/python-modules/alabaster/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pygments +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pygments, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aladdin-connect/default.nix b/pkgs/development/python-modules/aladdin-connect/default.nix index 3ca8016cd765..ebf54ec2abc4 100644 --- a/pkgs/development/python-modules/aladdin-connect/default.nix +++ b/pkgs/development/python-modules/aladdin-connect/default.nix @@ -1,8 +1,9 @@ -{ lib -, requests -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + requests, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-kLvMpSGa5WyDOH3ejAJyFGsB9IiMXp+nvVxM/ZkxyFw="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "aladdin_connect" - ]; + pythonImportsCheck = [ "aladdin_connect" ]; meta = with lib; { description = "Python library for interacting with Genie Aladdin Connect devices"; diff --git a/pkgs/development/python-modules/alarmdecoder/default.nix b/pkgs/development/python-modules/alarmdecoder/default.nix index 3573990876a2..4109ce7d1d9f 100644 --- a/pkgs/development/python-modules/alarmdecoder/default.nix +++ b/pkgs/development/python-modules/alarmdecoder/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pyftdi -, pyopenssl -, pyserial -, pytestCheckHook -, pythonOlder -, pyusb +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pyftdi, + pyopenssl, + pyserial, + pytestCheckHook, + pythonOlder, + pyusb, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/albumentations/default.nix b/pkgs/development/python-modules/albumentations/default.nix index 7e15fcf6c116..b17e1c055c5f 100644 --- a/pkgs/development/python-modules/albumentations/default.nix +++ b/pkgs/development/python-modules/albumentations/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, deepdiff -, numpy -, opencv4 -, pyyaml -, scikit-image -, scikit-learn -, scipy -, pydantic -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, torch -, torchvision -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + deepdiff, + numpy, + opencv4, + pyyaml, + scikit-image, + scikit-learn, + scipy, + pydantic, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + torch, + torchvision, + typing-extensions, }: buildPythonPackage rec { @@ -32,18 +33,14 @@ buildPythonPackage rec { hash = "sha256-7t1+22zzFtkZaAyOo6xjk+MXT9N44PmQ/NRRfvLeRVk="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRemoveDeps = [ "opencv-python" "pydantic" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ numpy diff --git a/pkgs/development/python-modules/ale-py/default.nix b/pkgs/development/python-modules/ale-py/default.nix index 18ff3667e59f..269d42e737d3 100644 --- a/pkgs/development/python-modules/ale-py/default.nix +++ b/pkgs/development/python-modules/ale-py/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cmake -, ninja -, pybind11 -, setuptools -, wheel -, SDL2 -, zlib -, importlib-resources -, numpy -, typing-extensions -, importlib-metadata -, gymnasium -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cmake, + ninja, + pybind11, + setuptools, + wheel, + SDL2, + zlib, + importlib-resources, + numpy, + typing-extensions, + importlib-metadata, + gymnasium, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -54,9 +55,7 @@ buildPythonPackage rec { importlib-resources numpy typing-extensions - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -75,9 +74,7 @@ buildPythonPackage rec { # test_atari_env.py::test_check_env fails on the majority of the environments because the ROM are missing. # The user is expected to manually download the roms: # https://github.com/Farama-Foundation/Arcade-Learning-Environment/blob/v0.9.0/docs/faq.md#i-downloaded-ale-and-i-installed-it-successfully-but-i-cannot-find-any-rom-file-at-roms-do-i-have-to-get-them-somewhere-else - disabledTests = [ - "test_check_env" - ]; + disabledTests = [ "test_check_env" ]; meta = { description = "A simple framework that allows researchers and hobbyists to develop AI agents for Atari 2600 games"; diff --git a/pkgs/development/python-modules/alectryon/default.nix b/pkgs/development/python-modules/alectryon/default.nix index 423aedb94237..545bf0681b4c 100644 --- a/pkgs/development/python-modules/alectryon/default.nix +++ b/pkgs/development/python-modules/alectryon/default.nix @@ -1,5 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi -, pygments, dominate, beautifulsoup4, docutils, sphinx }: +{ + lib, + buildPythonPackage, + fetchPypi, + pygments, + dominate, + beautifulsoup4, + docutils, + sphinx, +}: buildPythonPackage rec { pname = "alectryon"; diff --git a/pkgs/development/python-modules/alembic/default.nix b/pkgs/development/python-modules/alembic/default.nix index 47c6a22ea181..f56082213ec2 100644 --- a/pkgs/development/python-modules/alembic/default.nix +++ b/pkgs/development/python-modules/alembic/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, importlib-metadata -, importlib-resources -, mako -, sqlalchemy -, typing-extensions + # dependencies + importlib-metadata, + importlib-resources, + mako, + sqlalchemy, + typing-extensions, -# tests -, pytest7CheckHook -, pytest-xdist -, python-dateutil + # tests + pytest7CheckHook, + pytest-xdist, + python-dateutil, }: buildPythonPackage rec { @@ -31,22 +32,20 @@ buildPythonPackage rec { hash = "sha256-STLIVYv2jy7pK5u8uCGGccYnBk1bCJOUN69td9wF5ZU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - mako - sqlalchemy - typing-extensions - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - importlib-metadata - ]; + dependencies = + [ + mako + sqlalchemy + typing-extensions + ] + ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources + importlib-metadata + ]; - pythonImportsCheck = [ - "alembic" - ]; + pythonImportsCheck = [ "alembic" ]; nativeCheckInputs = [ pytest7CheckHook diff --git a/pkgs/development/python-modules/alexapy/default.nix b/pkgs/development/python-modules/alexapy/default.nix index 2ab2d2612365..fcc0bd1c46f6 100644 --- a/pkgs/development/python-modules/alexapy/default.nix +++ b/pkgs/development/python-modules/alexapy/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiofiles -, aiohttp -, authcaptureproxy -, backoff -, beautifulsoup4 -, buildPythonPackage -, certifi -, cryptography -, fetchFromGitLab -, poetry-core -, pyotp -, pythonOlder -, pythonRelaxDepsHook -, requests -, simplejson -, yarl +{ + lib, + aiofiles, + aiohttp, + authcaptureproxy, + backoff, + beautifulsoup4, + buildPythonPackage, + certifi, + cryptography, + fetchFromGitLab, + poetry-core, + pyotp, + pythonOlder, + pythonRelaxDepsHook, + requests, + simplejson, + yarl, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-eoL7q+p0m3YZd7Ub7U8nE3tQGNA2oQXelvN+H01b0BM="; }; - pythonRelaxDeps = [ - "aiofiles" - ]; + pythonRelaxDeps = [ "aiofiles" ]; nativeBuildInputs = [ poetry-core @@ -54,9 +53,7 @@ buildPythonPackage rec { yarl ]; - pythonImportsCheck = [ - "alexapy" - ]; + pythonImportsCheck = [ "alexapy" ]; # Module has no tests (only a websocket test which seems unrelated to the module) doCheck = false; diff --git a/pkgs/development/python-modules/algebraic-data-types/default.nix b/pkgs/development/python-modules/algebraic-data-types/default.nix index 9c19470fbddc..e247c3b3f018 100644 --- a/pkgs/development/python-modules/algebraic-data-types/default.nix +++ b/pkgs/development/python-modules/algebraic-data-types/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hypothesis -, mypy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hypothesis, + mypy, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { "tests/test_mypy_plugin.py" ]; - pythonImportsCheck = [ - "adt" - ]; + pythonImportsCheck = [ "adt" ]; meta = with lib; { description = "Algebraic data types for Python"; diff --git a/pkgs/development/python-modules/alive-progress/default.nix b/pkgs/development/python-modules/alive-progress/default.nix index 58ccedd26d6c..74572b2c16fa 100644 --- a/pkgs/development/python-modules/alive-progress/default.nix +++ b/pkgs/development/python-modules/alive-progress/default.nix @@ -1,12 +1,13 @@ -{ lib -, about-time -, buildPythonPackage -, click -, fetchFromGitHub -, grapheme -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + about-time, + buildPythonPackage, + click, + fetchFromGitHub, + grapheme, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-yJhl0QrMHET9ISDc/D5AEQ7dTJkmcV2SWqy/xmG18uY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ about-time @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "alive_progress" - ]; + pythonImportsCheck = [ "alive_progress" ]; meta = with lib; { description = "A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations"; diff --git a/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix b/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix index 3f29826f0a34..646742cafd40 100644 --- a/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix +++ b/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix @@ -1,8 +1,9 @@ -{ lib -, aliyun-python-sdk-core -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aliyun-python-sdk-core, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-LMCNvjV85TvdSM0OXean4dPzAiV8apVdRLTvUISOKec="; }; - propagatedBuildInputs = [ - aliyun-python-sdk-core - ]; + propagatedBuildInputs = [ aliyun-python-sdk-core ]; # All components are stored in a mono repo doCheck = false; - pythonImportsCheck = [ - "aliyunsdkcdn" - ]; + pythonImportsCheck = [ "aliyunsdkcdn" ]; meta = with lib; { description = "CDN module of Aliyun Python SDK"; diff --git a/pkgs/development/python-modules/aliyun-python-sdk-config/default.nix b/pkgs/development/python-modules/aliyun-python-sdk-config/default.nix index 5801e6a5ee14..6d8fe35e20ab 100644 --- a/pkgs/development/python-modules/aliyun-python-sdk-config/default.nix +++ b/pkgs/development/python-modules/aliyun-python-sdk-config/default.nix @@ -1,8 +1,9 @@ -{ lib -, aliyun-python-sdk-core -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aliyun-python-sdk-core, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-blrT/yCQ2vxaociSqKvRX3fUyKLsAFT3UyFGB/AzZHI="; }; - propagatedBuildInputs = [ - aliyun-python-sdk-core - ]; + propagatedBuildInputs = [ aliyun-python-sdk-core ]; # All components are stored in a mono repo doCheck = false; - pythonImportsCheck = [ - "aliyunsdkconfig" - ]; + pythonImportsCheck = [ "aliyunsdkconfig" ]; meta = with lib; { description = "Configuration module of Aliyun Python SDK"; diff --git a/pkgs/development/python-modules/aliyun-python-sdk-dbfs/default.nix b/pkgs/development/python-modules/aliyun-python-sdk-dbfs/default.nix index 1dc10a140cc1..a627ccce23b9 100644 --- a/pkgs/development/python-modules/aliyun-python-sdk-dbfs/default.nix +++ b/pkgs/development/python-modules/aliyun-python-sdk-dbfs/default.nix @@ -1,8 +1,9 @@ -{ lib -, aliyun-python-sdk-core -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aliyun-python-sdk-core, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-Kj6DfnXZq5ilE+vnZrAoZEhPDoNrMIs5p2OcBc24qXM="; }; - propagatedBuildInputs = [ - aliyun-python-sdk-core - ]; + propagatedBuildInputs = [ aliyun-python-sdk-core ]; # All components are stored in a mono repo doCheck = false; - pythonImportsCheck = [ - "aliyunsdkdbfs" - ]; + pythonImportsCheck = [ "aliyunsdkdbfs" ]; meta = with lib; { description = "DBFS module of Aliyun Python SDK"; diff --git a/pkgs/development/python-modules/aliyun-python-sdk-iot/default.nix b/pkgs/development/python-modules/aliyun-python-sdk-iot/default.nix index 2f08429d54d7..a2fa3bcc3c31 100644 --- a/pkgs/development/python-modules/aliyun-python-sdk-iot/default.nix +++ b/pkgs/development/python-modules/aliyun-python-sdk-iot/default.nix @@ -1,8 +1,9 @@ -{ lib -, aliyun-python-sdk-core -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aliyun-python-sdk-core, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-v0jTMKtYrbEBVjHQokpWSlcJBALZFsuoYHq8wCP8w1E="; }; - propagatedBuildInputs = [ - aliyun-python-sdk-core - ]; + propagatedBuildInputs = [ aliyun-python-sdk-core ]; # All components are stored in a mono repo doCheck = false; - pythonImportsCheck = [ - "aliyunsdkiot" - ]; + pythonImportsCheck = [ "aliyunsdkiot" ]; meta = with lib; { description = "IoT module of Aliyun Python SDK"; diff --git a/pkgs/development/python-modules/aliyun-python-sdk-sts/default.nix b/pkgs/development/python-modules/aliyun-python-sdk-sts/default.nix index 8de611716748..0f913ff8412a 100644 --- a/pkgs/development/python-modules/aliyun-python-sdk-sts/default.nix +++ b/pkgs/development/python-modules/aliyun-python-sdk-sts/default.nix @@ -1,8 +1,9 @@ -{ lib -, aliyun-python-sdk-core -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aliyun-python-sdk-core, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-GLzieAX0j/aEKeKj37PtBQJy3c2zWgy1no7/lXiYSU0="; }; - propagatedBuildInputs = [ - aliyun-python-sdk-core - ]; + propagatedBuildInputs = [ aliyun-python-sdk-core ]; # All components are stored in a mono repo doCheck = false; - pythonImportsCheck = [ - "aliyunsdksts" - ]; + pythonImportsCheck = [ "aliyunsdksts" ]; meta = with lib; { description = "STS module of Aliyun Python SDK"; diff --git a/pkgs/development/python-modules/allpairspy/default.nix b/pkgs/development/python-modules/allpairspy/default.nix index 31bc1229e2ba..4ee847df38f6 100644 --- a/pkgs/development/python-modules/allpairspy/default.nix +++ b/pkgs/development/python-modules/allpairspy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-0wzoQDHB7Tt80ZTlKrNxFutztsgUuin5D2eb80c4PBI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "allpairspy" - ]; + pythonImportsCheck = [ "allpairspy" ]; meta = with lib; { description = "Pairwise test combinations generator"; diff --git a/pkgs/development/python-modules/allure-behave/default.nix b/pkgs/development/python-modules/allure-behave/default.nix index ef9e8fc2bf20..ed238e86961b 100644 --- a/pkgs/development/python-modules/allure-behave/default.nix +++ b/pkgs/development/python-modules/allure-behave/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, behave -, allure-python-commons -, setuptools-scm +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + behave, + allure-python-commons, + setuptools-scm, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-M4yizHOV0e491y9dfZLYkg8a3g4H3evGN7OOYeBtyNw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; pythonImportsCheck = [ "allure_behave" ]; diff --git a/pkgs/development/python-modules/allure-pytest/default.nix b/pkgs/development/python-modules/allure-pytest/default.nix index 504f118bc3a7..88fc7054f1e6 100644 --- a/pkgs/development/python-modules/allure-pytest/default.nix +++ b/pkgs/development/python-modules/allure-pytest/default.nix @@ -1,10 +1,11 @@ -{ lib -, allure-python-commons -, buildPythonPackage -, fetchPypi -, pytest -, pythonOlder -, setuptools-scm +{ + lib, + allure-python-commons, + buildPythonPackage, + fetchPypi, + pytest, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,24 +20,16 @@ buildPythonPackage rec { hash = "sha256-DvjheQxEqYjba4PE1PXpFFHixMjqEGAd+ohSjSOvz24="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - allure-python-commons - ]; + propagatedBuildInputs = [ allure-python-commons ]; # Tests were moved to the meta package doCheck = false; - pythonImportsCheck = [ - "allure_pytest" - ]; + pythonImportsCheck = [ "allure_pytest" ]; meta = with lib; { description = "Allure integrations for Python test frameworks"; diff --git a/pkgs/development/python-modules/allure-python-commons-test/default.nix b/pkgs/development/python-modules/allure-python-commons-test/default.nix index 2e08bef31d70..5a4f5049d9cc 100644 --- a/pkgs/development/python-modules/allure-python-commons-test/default.nix +++ b/pkgs/development/python-modules/allure-python-commons-test/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, attrs -, pluggy -, six -, pyhamcrest -, setuptools-scm -, python +{ + lib, + fetchPypi, + buildPythonPackage, + attrs, + pluggy, + six, + pyhamcrest, + setuptools-scm, + python, }: buildPythonPackage rec { @@ -19,11 +20,14 @@ buildPythonPackage rec { hash = "sha256-pWkLVfBrLEhdhuTE95K3aqrhEY2wEyo5uRzuJC3ngjE="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ attrs pluggy six pyhamcrest ]; + propagatedBuildInputs = [ + attrs + pluggy + six + pyhamcrest + ]; checkPhase = '' ${python.interpreter} -m doctest ./src/container.py diff --git a/pkgs/development/python-modules/allure-python-commons/default.nix b/pkgs/development/python-modules/allure-python-commons/default.nix index c63466ce8e25..30881b90f3fd 100644 --- a/pkgs/development/python-modules/allure-python-commons/default.nix +++ b/pkgs/development/python-modules/allure-python-commons/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, attrs -, pluggy -, six -, allure-python-commons-test -, setuptools-scm -, python +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + attrs, + pluggy, + six, + allure-python-commons-test, + setuptools-scm, + python, }: buildPythonPackage rec { @@ -22,18 +23,24 @@ buildPythonPackage rec { hash = "sha256-ojLnlVgR+Yjkmkwd1sFszn6bgdDqBCKx5WVNMlTiyvM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ attrs pluggy six allure-python-commons-test ]; + propagatedBuildInputs = [ + attrs + pluggy + six + allure-python-commons-test + ]; checkPhase = '' ${python.interpreter} -m doctest ./src/utils.py ${python.interpreter} -m doctest ./src/mapping.py ''; - pythonImportsCheck = [ "allure" "allure_commons" ]; + pythonImportsCheck = [ + "allure" + "allure_commons" + ]; meta = with lib; { description = "Common engine for all modules. It is useful for make integration with your homemade frameworks"; diff --git a/pkgs/development/python-modules/altair/default.nix b/pkgs/development/python-modules/altair/default.nix index 3b9b53b9a6c3..3dd6eca6de46 100644 --- a/pkgs/development/python-modules/altair/default.nix +++ b/pkgs/development/python-modules/altair/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# Runtime dependencies -, hatchling -, toolz -, numpy -, jsonschema -, typing-extensions -, pandas -, jinja2 -, packaging + # Runtime dependencies + hatchling, + toolz, + numpy, + jsonschema, + typing-extensions, + pandas, + jinja2, + packaging, -# Build, dev and test dependencies -, anywidget -, ipython -, pytestCheckHook -, vega-datasets -, sphinx + # Build, dev and test dependencies + anywidget, + ipython, + pytestCheckHook, + vega-datasets, + sphinx, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-uTG+V0SQgAQtMjvrVvKVKgIBT9qO+26EPRxQCEXj/gc="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ jinja2 @@ -74,6 +73,9 @@ buildPythonPackage rec { downloadPage = "https://github.com/altair-viz/altair"; changelog = "https://altair-viz.github.io/releases/changes.html"; license = licenses.bsd3; - maintainers = with maintainers; [ teh vinetos ]; + maintainers = with maintainers; [ + teh + vinetos + ]; }; } diff --git a/pkgs/development/python-modules/altgraph/default.nix b/pkgs/development/python-modules/altgraph/default.nix index 3a42414aa8d8..f06d76e993a4 100644 --- a/pkgs/development/python-modules/altgraph/default.nix +++ b/pkgs/development/python-modules/altgraph/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/amaranth-boards/default.nix b/pkgs/development/python-modules/amaranth-boards/default.nix index 2475c93f8c61..0d21b69cdef6 100644 --- a/pkgs/development/python-modules/amaranth-boards/default.nix +++ b/pkgs/development/python-modules/amaranth-boards/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, amaranth -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + amaranth, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -20,8 +21,14 @@ buildPythonPackage rec { hash = "sha256-dwZCKMJnEY9RjzkcJ9r3TEC7W+Wfi/P7Hjl4/d60/qo="; }; - nativeBuildInputs = [ setuptools setuptools-scm ]; - dependencies = [ setuptools amaranth ]; + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + dependencies = [ + setuptools + amaranth + ]; preBuild = '' export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}" @@ -34,6 +41,10 @@ buildPythonPackage rec { description = "Board definitions for Amaranth HDL"; homepage = "https://github.com/amaranth-lang/amaranth-boards"; license = licenses.bsd2; - maintainers = with maintainers; [ emily thoughtpolice pbsds ]; + maintainers = with maintainers; [ + emily + thoughtpolice + pbsds + ]; }; } diff --git a/pkgs/development/python-modules/amaranth-soc/default.nix b/pkgs/development/python-modules/amaranth-soc/default.nix index 0742055e9cf2..d7cd667ed7aa 100644 --- a/pkgs/development/python-modules/amaranth-soc/default.nix +++ b/pkgs/development/python-modules/amaranth-soc/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, amaranth -, pdm-backend +{ + lib, + buildPythonPackage, + fetchFromGitHub, + amaranth, + pdm-backend, }: buildPythonPackage rec { @@ -30,6 +31,10 @@ buildPythonPackage rec { description = "System on Chip toolkit for Amaranth HDL"; homepage = "https://github.com/amaranth-lang/amaranth-soc"; license = licenses.bsd2; - maintainers = with maintainers; [ emily thoughtpolice pbsds ]; + maintainers = with maintainers; [ + emily + thoughtpolice + pbsds + ]; }; } diff --git a/pkgs/development/python-modules/amaranth/default.nix b/pkgs/development/python-modules/amaranth/default.nix index 5f2f072558df..9895d315c385 100644 --- a/pkgs/development/python-modules/amaranth/default.nix +++ b/pkgs/development/python-modules/amaranth/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pdm-backend -, pyvcd -, jinja2 -, importlib-resources -, importlib-metadata -, git +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pdm-backend, + pyvcd, + jinja2, + importlib-resources, + importlib-metadata, + git, -# for tests -, pytestCheckHook -, symbiyosys -, yices -, yosys + # for tests + pytestCheckHook, + symbiyosys, + yices, + yosys, }: buildPythonPackage rec { @@ -34,12 +35,13 @@ buildPythonPackage rec { pdm-backend ]; - dependencies = [ - jinja2 - pyvcd - ] ++ - lib.optional (pythonOlder "3.9") importlib-resources ++ - lib.optional (pythonOlder "3.8") importlib-metadata; + dependencies = + [ + jinja2 + pyvcd + ] + ++ lib.optional (pythonOlder "3.9") importlib-resources + ++ lib.optional (pythonOlder "3.8") importlib-metadata; nativeCheckInputs = [ pytestCheckHook @@ -55,6 +57,10 @@ buildPythonPackage rec { mainProgram = "amaranth-rpc"; homepage = "https://amaranth-lang.org/docs/amaranth"; license = licenses.bsd2; - maintainers = with maintainers; [ emily thoughtpolice pbsds ]; + maintainers = with maintainers; [ + emily + thoughtpolice + pbsds + ]; }; } diff --git a/pkgs/development/python-modules/amarna/default.nix b/pkgs/development/python-modules/amarna/default.nix index d9587d11ee48..daa474e25ecf 100644 --- a/pkgs/development/python-modules/amarna/default.nix +++ b/pkgs/development/python-modules/amarna/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lark -, pydot -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lark, + pydot, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { pydot ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "amarna" - ]; + pythonImportsCheck = [ "amarna" ]; meta = with lib; { description = "Static-analyzer and linter for the Cairo programming language"; diff --git a/pkgs/development/python-modules/amazon-ion/default.nix b/pkgs/development/python-modules/amazon-ion/default.nix index 939c554d339d..d10b9f4ff049 100644 --- a/pkgs/development/python-modules/amazon-ion/default.nix +++ b/pkgs/development/python-modules/amazon-ion/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cbor2 -, docopt -, fetchFromGitHub -, jsonconversion -, pytestCheckHook -, pythonOlder -, setuptools -, six -, tabulate +{ + lib, + buildPythonPackage, + cbor2, + docopt, + fetchFromGitHub, + jsonconversion, + pytestCheckHook, + pythonOlder, + setuptools, + six, + tabulate, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace "'pytest-runner'," "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jsonconversion @@ -58,9 +57,7 @@ buildPythonPackage rec { "tests/test_benchmark_cli.py" ]; - pythonImportsCheck = [ - "amazon.ion" - ]; + pythonImportsCheck = [ "amazon.ion" ]; meta = with lib; { description = "Python implementation of Amazon Ion"; diff --git a/pkgs/development/python-modules/amazon-kclpy/default.nix b/pkgs/development/python-modules/amazon-kclpy/default.nix index 751a2945da59..4a95e7860311 100644 --- a/pkgs/development/python-modules/amazon-kclpy/default.nix +++ b/pkgs/development/python-modules/amazon-kclpy/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, mock, boto, pytest }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + mock, + boto, + pytest, +}: buildPythonPackage rec { pname = "amazon-kclpy"; @@ -18,7 +26,10 @@ buildPythonPackage rec { --replace "'argparse'," "" ''; - propagatedBuildInputs = [ mock boto ]; + propagatedBuildInputs = [ + mock + boto + ]; nativeCheckInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/ambee/default.nix b/pkgs/development/python-modules/ambee/default.nix index 3e3f719b7afd..ddd0b4e747ee 100644 --- a/pkgs/development/python-modules/ambee/default.nix +++ b/pkgs/development/python-modules/ambee/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiohttp -, poetry-core -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiohttp, + poetry-core, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-2wX2CLr6kdVw2AGPW6DmYI2OBfQFI/iWVorok2d3wx4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/amberelectric/default.nix b/pkgs/development/python-modules/amberelectric/default.nix index ac32a8cc7824..19cc637c816b 100644 --- a/pkgs/development/python-modules/amberelectric/default.nix +++ b/pkgs/development/python-modules/amberelectric/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest-mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, setuptools -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + pytest-mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-HujjqJ3nkPIj8P0qAiQnQzLhji5l8qOAO2Gh53OJ7UY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ urllib3 @@ -35,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "amberelectric" - ]; + pythonImportsCheck = [ "amberelectric" ]; meta = with lib; { description = "Python Amber Electric API interface"; diff --git a/pkgs/development/python-modules/ambiclimate/default.nix b/pkgs/development/python-modules/ambiclimate/default.nix index ecaae3fd9f57..54ff63a282e3 100644 --- a/pkgs/development/python-modules/ambiclimate/default.nix +++ b/pkgs/development/python-modules/ambiclimate/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, async-timeout +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + async-timeout, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/amcrest/default.nix b/pkgs/development/python-modules/amcrest/default.nix index de008a1d2f1b..4fffb467ef73 100644 --- a/pkgs/development/python-modules/amcrest/default.nix +++ b/pkgs/development/python-modules/amcrest/default.nix @@ -30,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ argcomplete @@ -48,9 +46,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "amcrest" - ]; + pythonImportsCheck = [ "amcrest" ]; meta = with lib; { description = "Python module for Amcrest and Dahua Cameras"; diff --git a/pkgs/development/python-modules/amiibo-py/default.nix b/pkgs/development/python-modules/amiibo-py/default.nix index 93cc6cdd0b6c..bf38fbd56bbb 100644 --- a/pkgs/development/python-modules/amiibo-py/default.nix +++ b/pkgs/development/python-modules/amiibo-py/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, aiohttp -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + aiohttp, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/amply/default.nix b/pkgs/development/python-modules/amply/default.nix index 5f648fc1baf9..12af9b9da2eb 100644 --- a/pkgs/development/python-modules/amply/default.nix +++ b/pkgs/development/python-modules/amply/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools-scm -, docutils -, pyparsing -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools-scm, + docutils, + pyparsing, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/amqp/default.nix b/pkgs/development/python-modules/amqp/default.nix index 36fc48c35f35..8adda06c48c9 100644 --- a/pkgs/development/python-modules/amqp/default.nix +++ b/pkgs/development/python-modules/amqp/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, case -, fetchPypi -, pytestCheckHook -, pytest-rerunfailures -, pythonOlder -, vine +{ + lib, + buildPythonPackage, + case, + fetchPypi, + pytestCheckHook, + pytest-rerunfailures, + pythonOlder, + vine, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-oez/QlrQY61CpIbJAoB9FIIxFIHIrZWnJpSyl1519/0="; }; - propagatedBuildInputs = [ - vine - ]; + propagatedBuildInputs = [ vine ]; __darwinAllowLocalNetworking = true; @@ -37,9 +36,7 @@ buildPythonPackage rec { "test_rmq.py" ]; - pythonImportsCheck = [ - "amqp" - ]; + pythonImportsCheck = [ "amqp" ]; meta = with lib; { description = "Python client for the Advanced Message Queuing Procotol (AMQP). This is a fork of amqplib which is maintained by the Celery project"; diff --git a/pkgs/development/python-modules/amqplib/default.nix b/pkgs/development/python-modules/amqplib/default.nix index 0805ce6784a2..60c66e241491 100644 --- a/pkgs/development/python-modules/amqplib/default.nix +++ b/pkgs/development/python-modules/amqplib/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, python }: +{ + lib, + buildPythonPackage, + fetchPypi, + python, +}: buildPythonPackage rec { pname = "amqplib"; diff --git a/pkgs/development/python-modules/amqtt/default.nix b/pkgs/development/python-modules/amqtt/default.nix index 0daef6d77aa0..0221295513b3 100644 --- a/pkgs/development/python-modules/amqtt/default.nix +++ b/pkgs/development/python-modules/amqtt/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, hypothesis -, passlib -, poetry-core -, pytest-logdog -, pytest-asyncio -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, pyyaml -, setuptools -, transitions -, websockets +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + hypothesis, + passlib, + poetry-core, + pytest-logdog, + pytest-asyncio, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + pyyaml, + setuptools, + transitions, + websockets, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace 'websockets = ">=9.0,<11.0"' 'websockets = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ docopt @@ -56,9 +55,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # stuck in epoll @@ -83,9 +80,7 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - pythonImportsCheck = [ - "amqtt" - ]; + pythonImportsCheck = [ "amqtt" ]; meta = with lib; { description = "Python MQTT client and broker implementation"; diff --git a/pkgs/development/python-modules/anchor-kr/default.nix b/pkgs/development/python-modules/anchor-kr/default.nix index 32ce534e6b6b..10828482b830 100644 --- a/pkgs/development/python-modules/anchor-kr/default.nix +++ b/pkgs/development/python-modules/anchor-kr/default.nix @@ -1,6 +1,7 @@ -{ lib, +{ + lib, buildPythonPackage, - fetchFromGitHub + fetchFromGitHub, }: buildPythonPackage { pname = "anchor"; diff --git a/pkgs/development/python-modules/ancp-bids/default.nix b/pkgs/development/python-modules/ancp-bids/default.nix index 366b00e9c6e0..8ab4de7ac38c 100644 --- a/pkgs/development/python-modules/ancp-bids/default.nix +++ b/pkgs/development/python-modules/ancp-bids/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, pytestCheckHook -, setuptools -, wheel -, numpy -, pandas +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + pytestCheckHook, + setuptools, + wheel, + numpy, + pandas, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "ancpbids" - ]; + pythonImportsCheck = [ "ancpbids" ]; pytestFlagsArray = [ "tests/auto" ]; diff --git a/pkgs/development/python-modules/androguard/default.nix b/pkgs/development/python-modules/androguard/default.nix index e408d11590bd..cc1789963e61 100644 --- a/pkgs/development/python-modules/androguard/default.nix +++ b/pkgs/development/python-modules/androguard/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, networkx -, pygments -, lxml -, colorama -, matplotlib -, asn1crypto -, click -, pydot -, ipython -, packaging -, pyqt5 -, pyperclip -, nose -, nose-timer -, mock -, python-magic -, codecov -, coverage -, qt5 -# This is usually used as a library, and it'd be a shame to force the GUI -# libraries to the closure if GUI is not desired. -, withGui ? false -# Tests take a very long time, and currently fail, but next release' tests -# shouldn't fail -, doCheck ? false +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + networkx, + pygments, + lxml, + colorama, + matplotlib, + asn1crypto, + click, + pydot, + ipython, + packaging, + pyqt5, + pyperclip, + nose, + nose-timer, + mock, + python-magic, + codecov, + coverage, + qt5, + # This is usually used as a library, and it'd be a shame to force the GUI + # libraries to the closure if GUI is not desired. + withGui ? false, + # Tests take a very long time, and currently fail, but next release' tests + # shouldn't fail + doCheck ? false, }: buildPythonPackage rec { @@ -41,27 +42,25 @@ buildPythonPackage rec { sha256 = "1aparxiq11y0hbvkayp92w684nyxyyx7mi0n1x6x51g5z6c58vmy"; }; - nativeBuildInputs = [ - packaging - ] ++ lib.optionals withGui [ - qt5.wrapQtAppsHook - ]; + nativeBuildInputs = [ packaging ] ++ lib.optionals withGui [ qt5.wrapQtAppsHook ]; - propagatedBuildInputs = [ - asn1crypto - click - colorama - future - ipython - lxml - matplotlib - networkx - pydot - pygments - ] ++ lib.optionals withGui [ - pyqt5 - pyperclip - ]; + propagatedBuildInputs = + [ + asn1crypto + click + colorama + future + ipython + lxml + matplotlib + networkx + pydot + pygments + ] + ++ lib.optionals withGui [ + pyqt5 + pyperclip + ]; nativeCheckInputs = [ codecov diff --git a/pkgs/development/python-modules/android-backup/default.nix b/pkgs/development/python-modules/android-backup/default.nix index e958e853b046..cc153ab2e395 100644 --- a/pkgs/development/python-modules/android-backup/default.nix +++ b/pkgs/development/python-modules/android-backup/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycrypto -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycrypto, + python, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "0c436hv64ddqrjs77pa7z6spiv49pjflbmgg31p38haj5mzlrqvw"; }; - propagatedBuildInputs = [ - pycrypto - ]; + propagatedBuildInputs = [ pycrypto ]; checkPhase = '' ${python.interpreter} -m android_backup.tests diff --git a/pkgs/development/python-modules/androidtv/default.nix b/pkgs/development/python-modules/androidtv/default.nix index 0516388b3f89..799306fa30f0 100644 --- a/pkgs/development/python-modules/androidtv/default.nix +++ b/pkgs/development/python-modules/androidtv/default.nix @@ -1,13 +1,14 @@ -{ lib -, adb-shell -, aiofiles -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, mock -, pure-python-adb -, pytestCheckHook -, pythonOlder +{ + lib, + adb-shell, + aiofiles, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + mock, + pure-python-adb, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,27 +32,21 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - async = [ - aiofiles - ]; + async = [ aiofiles ]; inherit (adb-shell.optional-dependencies) usb; }; nativeCheckInputs = [ mock pytestCheckHook - ] - ++ passthru.optional-dependencies.async - ++ passthru.optional-dependencies.usb; + ] ++ passthru.optional-dependencies.async ++ passthru.optional-dependencies.usb; disabledTests = [ # Requires git but fails anyway "test_no_underscores" ]; - pythonImportsCheck = [ - "androidtv" - ]; + pythonImportsCheck = [ "androidtv" ]; meta = with lib; { description = "Communicate with an Android TV or Fire TV device via ADB over a network"; diff --git a/pkgs/development/python-modules/anel-pwrctrl-homeassistant/default.nix b/pkgs/development/python-modules/anel-pwrctrl-homeassistant/default.nix index d32138c68dfa..07b8cbb96c0c 100644 --- a/pkgs/development/python-modules/anel-pwrctrl-homeassistant/default.nix +++ b/pkgs/development/python-modules/anel-pwrctrl-homeassistant/default.nix @@ -17,14 +17,12 @@ buildPythonPackage rec { # No tests doCheck = false; - pythonImportsCheck = [ - "anel_pwrctrl" - ]; + pythonImportsCheck = [ "anel_pwrctrl" ]; meta = with lib; { description = "Discover and control ANEL NET-PwrCtrl devices"; homepage = "https://github.com/mweinelt/anel-pwrctrl"; license = licenses.mit; - maintainers = with maintainers; [jamiemagee]; + maintainers = with maintainers; [ jamiemagee ]; }; } diff --git a/pkgs/development/python-modules/angrcli/default.nix b/pkgs/development/python-modules/angrcli/default.nix index cd2bf2f5508f..0e3fa66f2486 100644 --- a/pkgs/development/python-modules/angrcli/default.nix +++ b/pkgs/development/python-modules/angrcli/default.nix @@ -1,14 +1,15 @@ -{ lib -, angr -, buildPythonPackage -, cmd2 -, coreutils -, fetchFromGitHub -, pygments -, pytestCheckHook -, pythonOlder -, setuptools -, stdenv +{ + lib, + angr, + buildPythonPackage, + cmd2, + coreutils, + fetchFromGitHub, + pygments, + pytestCheckHook, + pythonOlder, + setuptools, + stdenv, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace-fail "/bin/ls" "${coreutils}/bin/ls" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ angr @@ -52,9 +51,7 @@ buildPythonPackage rec { "test_max_depth" ]; - pythonImportsCheck = [ - "angrcli" - ]; + pythonImportsCheck = [ "angrcli" ]; meta = with lib; { description = "Python modules to allow easier interactive use of angr"; diff --git a/pkgs/development/python-modules/aniso8601/default.nix b/pkgs/development/python-modules/aniso8601/default.nix index 5aa4edce7c2e..0c10170d5c10 100644 --- a/pkgs/development/python-modules/aniso8601/default.nix +++ b/pkgs/development/python-modules/aniso8601/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, python-dateutil -, fetchPypi -, isPy3k -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + python-dateutil, + fetchPypi, + isPy3k, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM="; }; - propagatedBuildInputs = [ - python-dateutil - ]; + propagatedBuildInputs = [ python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ lib.optional (!isPy3k) mock; + nativeCheckInputs = [ pytestCheckHook ] ++ lib.optional (!isPy3k) mock; pythonImportsCheck = [ "aniso8601" ]; diff --git a/pkgs/development/python-modules/anitopy/default.nix b/pkgs/development/python-modules/anitopy/default.nix index 313f9631154e..95f3af2b7cb5 100644 --- a/pkgs/development/python-modules/anitopy/default.nix +++ b/pkgs/development/python-modules/anitopy/default.nix @@ -1,6 +1,7 @@ -{ lib, +{ + lib, buildPythonPackage, - fetchFromGitHub + fetchFromGitHub, }: buildPythonPackage rec { pname = "anitopy"; diff --git a/pkgs/development/python-modules/annexremote/default.nix b/pkgs/development/python-modules/annexremote/default.nix index 562014f06789..8b133595ebbd 100644 --- a/pkgs/development/python-modules/annexremote/default.nix +++ b/pkgs/development/python-modules/annexremote/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "annexremote" - ]; + pythonImportsCheck = [ "annexremote" ]; meta = with lib; { description = "Helper module to easily develop git-annex remotes"; diff --git a/pkgs/development/python-modules/annotated-types/default.nix b/pkgs/development/python-modules/annotated-types/default.nix index 85e2379507c6..4cb4b9856ef6 100644 --- a/pkgs/development/python-modules/annotated-types/default.nix +++ b/pkgs/development/python-modules/annotated-types/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, typing-extensions -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + typing-extensions, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,19 +20,13 @@ buildPythonPackage rec { hash = "sha256-SZ9/rXYcns4DFM6vk6SRKvuv3MY3T7xO9aW7WAQqtVE="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ typing-extensions ]; pythonImportsCheck = [ "annotated_types" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Reusable constraint types to use with typing.Annotated"; diff --git a/pkgs/development/python-modules/annoy/default.nix b/pkgs/development/python-modules/annoy/default.nix index 4de8d0adacb9..255896d30982 100644 --- a/pkgs/development/python-modules/annoy/default.nix +++ b/pkgs/development/python-modules/annoy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, h5py -, numpy -, pynose -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + h5py, + numpy, + pynose, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,22 +26,16 @@ buildPythonPackage rec { --replace-fail "'nose>=1.0'" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - h5py - ]; + nativeBuildInputs = [ h5py ]; nativeCheckInputs = [ numpy pynose ]; - pythonImportsCheck = [ - "annoy" - ]; + pythonImportsCheck = [ "annoy" ]; meta = with lib; { description = "Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk"; diff --git a/pkgs/development/python-modules/anonip/default.nix b/pkgs/development/python-modules/anonip/default.nix index 5f6cc373e560..b4aa2652bf0a 100644 --- a/pkgs/development/python-modules/anonip/default.nix +++ b/pkgs/development/python-modules/anonip/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,22 +20,16 @@ buildPythonPackage rec { sha256 = "0cssdcridadjzichz1vv1ng7jwphqkn8ihh83hpz9mcjmxyb94qc"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.cfg \ --replace " --cov=anonip --cov-report=term-missing --no-cov-on-fail" "" ''; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "anonip" - ]; + pythonImportsCheck = [ "anonip" ]; meta = with lib; { description = "Tool to anonymize IP addresses in log files"; diff --git a/pkgs/development/python-modules/ansi/default.nix b/pkgs/development/python-modules/ansi/default.nix index 3fb30ebf7255..282fcd04e0a5 100644 --- a/pkgs/development/python-modules/ansi/default.nix +++ b/pkgs/development/python-modules/ansi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-PmgB1glksu4roQeZ1o7uilMJNm9xaYqw680N2z+tUUM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ansi.colour" diff --git a/pkgs/development/python-modules/ansi2html/default.nix b/pkgs/development/python-modules/ansi2html/default.nix index 5f87f8ff3e51..0d14a1809f6f 100644 --- a/pkgs/development/python-modules/ansi2html/default.nix +++ b/pkgs/development/python-modules/ansi2html/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { preCheck = "export PATH=$PATH:$out/bin"; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ansi2html" ]; diff --git a/pkgs/development/python-modules/ansi2image/default.nix b/pkgs/development/python-modules/ansi2image/default.nix index eadb1ca188a4..2f3373b1c50a 100644 --- a/pkgs/development/python-modules/ansi2image/default.nix +++ b/pkgs/development/python-modules/ansi2image/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, pillow -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + pillow, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { pillow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ansi2image" - ]; + pythonImportsCheck = [ "ansi2image" ]; - pytestFlagsArray = [ - "tests/tests.py" - ]; + pytestFlagsArray = [ "tests/tests.py" ]; meta = with lib; { description = "Module to convert ANSI text to an image"; diff --git a/pkgs/development/python-modules/ansible-builder/default.nix b/pkgs/development/python-modules/ansible-builder/default.nix index e9ddfe5bc287..cb2fa593d3ae 100644 --- a/pkgs/development/python-modules/ansible-builder/default.nix +++ b/pkgs/development/python-modules/ansible-builder/default.nix @@ -1,8 +1,9 @@ -{ lib -, python3Packages -, podman -, fetchPypi -, bindep +{ + lib, + python3Packages, + podman, + fetchPypi, + bindep, }: python3Packages.buildPythonPackage rec { pname = "ansible-builder"; @@ -19,9 +20,7 @@ python3Packages.buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - bindep - ]; + buildInputs = [ bindep ]; propagatedBuildInputs = with python3Packages; [ podman diff --git a/pkgs/development/python-modules/ansible-compat/default.nix b/pkgs/development/python-modules/ansible-compat/default.nix index 0461bf66d805..77036d0cf8ef 100644 --- a/pkgs/development/python-modules/ansible-compat/default.nix +++ b/pkgs/development/python-modules/ansible-compat/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ansible-core -, flaky -, pytest-mock -, pytestCheckHook -, pyyaml -, setuptools -, setuptools-scm -, subprocess-tee -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + ansible-core, + flaky, + pytest-mock, + pytestCheckHook, + pyyaml, + setuptools, + setuptools-scm, + subprocess-tee, + pythonOlder, }: buildPythonPackage rec { @@ -60,9 +61,7 @@ buildPythonPackage rec { "test_runtime" ]; - pythonImportsCheck = [ - "ansible_compat" - ]; + pythonImportsCheck = [ "ansible_compat" ]; meta = with lib; { description = "Function collection that help interacting with various versions of Ansible"; diff --git a/pkgs/development/python-modules/ansible-kernel/default.nix b/pkgs/development/python-modules/ansible-kernel/default.nix index 4bc9f89aec35..9b01dbc0de0d 100644 --- a/pkgs/development/python-modules/ansible-kernel/default.nix +++ b/pkgs/development/python-modules/ansible-kernel/default.nix @@ -1,27 +1,36 @@ -{ lib -, buildPythonPackage -, fetchPypi -, writeText -, setuptools -, ipywidgets -, six -, docopt -, tqdm -, jupyter -, psutil -, pyyaml -, ansible-runner -, ansible -, python +{ + lib, + buildPythonPackage, + fetchPypi, + writeText, + setuptools, + ipywidgets, + six, + docopt, + tqdm, + jupyter, + psutil, + pyyaml, + ansible-runner, + ansible, + python, }: let - kernelSpecFile = writeText "kernel.json" (builtins.toJSON { - argv = [ python.interpreter "-m" "ansible_kernel" "-f" "{connection_file}" ]; - codemirror_mode = "yaml"; - display_name = "Ansible"; - language = "ansible"; - }); + kernelSpecFile = writeText "kernel.json" ( + builtins.toJSON { + argv = [ + python.interpreter + "-m" + "ansible_kernel" + "-f" + "{connection_file}" + ]; + codemirror_mode = "yaml"; + display_name = "Ansible"; + language = "ansible"; + } + ); in buildPythonPackage rec { pname = "ansible-kernel"; @@ -35,15 +44,25 @@ buildPythonPackage rec { build-system = [ setuptools ]; - dependencies = [ ipywidgets six docopt tqdm jupyter psutil pyyaml ansible-runner ansible ]; + dependencies = [ + ipywidgets + six + docopt + tqdm + jupyter + psutil + pyyaml + ansible-runner + ansible + ]; postPatch = '' - # remove when merged - # https://github.com/ansible/ansible-jupyter-kernel/pull/82 - touch LICENSE.md + # remove when merged + # https://github.com/ansible/ansible-jupyter-kernel/pull/82 + touch LICENSE.md - # remove custom install - sed -i "s/cmdclass={'install': Installer},//" setup.py + # remove custom install + sed -i "s/cmdclass={'install': Installer},//" setup.py ''; # tests hang with launched kernel diff --git a/pkgs/development/python-modules/ansible-navigator/default.nix b/pkgs/development/python-modules/ansible-navigator/default.nix index 5c2179253436..326d5f51943a 100644 --- a/pkgs/development/python-modules/ansible-navigator/default.nix +++ b/pkgs/development/python-modules/ansible-navigator/default.nix @@ -1,10 +1,11 @@ -{ lib -, pkgs -, python3Packages -, podman -, oniguruma -, fetchPypi -, buildPythonPackage +{ + lib, + pkgs, + python3Packages, + podman, + oniguruma, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { pname = "ansible-navigator"; diff --git a/pkgs/development/python-modules/ansible-runner/default.nix b/pkgs/development/python-modules/ansible-runner/default.nix index b0145a3113ee..2bc07dd1277f 100644 --- a/pkgs/development/python-modules/ansible-runner/default.nix +++ b/pkgs/development/python-modules/ansible-runner/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, ansible-core -, buildPythonPackage -, fetchPypi -, fetchpatch -, glibcLocales -, importlib-metadata -, mock -, openssh -, pbr -, pexpect -, psutil -, pytest-mock -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, pythonOlder -, python-daemon -, pyyaml -, setuptools -, six +{ + lib, + stdenv, + ansible-core, + buildPythonPackage, + fetchPypi, + fetchpatch, + glibcLocales, + importlib-metadata, + mock, + openssh, + pbr, + pexpect, + psutil, + pytest-mock, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + pythonOlder, + python-daemon, + pyyaml, + setuptools, + six, }: buildPythonPackage rec { @@ -39,7 +40,10 @@ buildPythonPackage rec { name = "fix-tests.patch"; url = "https://github.com/ansible/ansible-runner/commit/0d522c90cfc1f305e118705a1b3335ccb9c1633d.patch"; hash = "sha256-eTnQkftvjK0YHU+ovotRVSuVlvaVeXp5SvYk1DPCg88="; - excludes = [ ".github/workflows/ci.yml" "tox.ini" ]; + excludes = [ + ".github/workflows/ci.yml" + "tox.ini" + ]; }) (fetchpatch { # python 3.12 compat @@ -60,9 +64,7 @@ buildPythonPackage rec { python-daemon pyyaml six - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ ansible-core # required to place ansible CLI onto the PATH in tests @@ -92,21 +94,20 @@ buildPythonPackage rec { "test_validate_pattern" ]; - disabledTestPaths = [ - # These tests unset PATH and then run executables like `bash` (see https://github.com/ansible/ansible-runner/pull/918) - "test/integration/test_runner.py" - "test/unit/test_runner.py" - ] - ++ lib.optionals stdenv.isDarwin [ - # Integration tests on Darwin are not regularly passing in ansible-runner's own CI - "test/integration" - # These tests write to `/tmp` which is not writable on Darwin - "test/unit/config/test__base.py" - ]; + disabledTestPaths = + [ + # These tests unset PATH and then run executables like `bash` (see https://github.com/ansible/ansible-runner/pull/918) + "test/integration/test_runner.py" + "test/unit/test_runner.py" + ] + ++ lib.optionals stdenv.isDarwin [ + # Integration tests on Darwin are not regularly passing in ansible-runner's own CI + "test/integration" + # These tests write to `/tmp` which is not writable on Darwin + "test/unit/config/test__base.py" + ]; - pythonImportsCheck = [ - "ansible_runner" - ]; + pythonImportsCheck = [ "ansible_runner" ]; meta = with lib; { description = "Helps when interfacing with Ansible"; diff --git a/pkgs/development/python-modules/ansible-vault-rw/default.nix b/pkgs/development/python-modules/ansible-vault-rw/default.nix index 9e0005e04e85..1deb67f015bb 100644 --- a/pkgs/development/python-modules/ansible-vault-rw/default.nix +++ b/pkgs/development/python-modules/ansible-vault-rw/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, ansible-core + # dependencies + ansible-core, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-XOj9tUcPFEm3a/B64qvFZIDa1INWrkBchbaG77ZNvV4"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - ansible-core - ]; + propagatedBuildInputs = [ ansible-core ]; # Otherwise tests will fail to create directory # Permission denied: '/homeless-shelter' @@ -40,15 +37,12 @@ buildPythonPackage rec { # no tests in sdist, no 2.1.0 tag on git doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "This project aim to R/W an ansible-vault yaml file."; homepage = "https://github.com/tomoh1r/ansible-vault"; - changelog = - "https://github.com/tomoh1r/ansible-vault/blob/master/CHANGES.txt"; + changelog = "https://github.com/tomoh1r/ansible-vault/blob/master/CHANGES.txt"; license = licenses.gpl3; maintainers = with maintainers; [ StillerHarpo ]; }; diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index dccf9ede2253..0a2103efc9c6 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -1,30 +1,32 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook -, installShellFiles -, docutils -, ansible -, cryptography -, importlib-resources -, jinja2 -, junit-xml -, lxml -, ncclient -, packaging -, paramiko -, ansible-pylibssh -, passlib -, pexpect -, psutil -, pycrypto -, pyyaml -, requests -, resolvelib -, scp -, windowsSupport ? false, pywinrm -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, + installShellFiles, + docutils, + ansible, + cryptography, + importlib-resources, + jinja2, + junit-xml, + lxml, + ncclient, + packaging, + paramiko, + ansible-pylibssh, + passlib, + pexpect, + psutil, + pycrypto, + pyyaml, + requests, + resolvelib, + scp, + windowsSupport ? false, + pywinrm, + xmltodict, }: buildPythonPackage rec { @@ -49,41 +51,36 @@ buildPythonPackage rec { nativeBuildInputs = [ installShellFiles docutils - ] ++ lib.optionals (pythonOlder "3.10") [ - pythonRelaxDepsHook - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ pythonRelaxDepsHook ]; - propagatedBuildInputs = [ - # depend on ansible instead of the other way around - ansible - # from requirements.txt - cryptography - jinja2 - packaging - passlib - pyyaml - resolvelib - # optional dependencies - junit-xml - lxml - ncclient - paramiko - ansible-pylibssh - pexpect - psutil - pycrypto - requests - scp - xmltodict - ] ++ lib.optionals windowsSupport [ - pywinrm - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-resources - ]; + propagatedBuildInputs = + [ + # depend on ansible instead of the other way around + ansible + # from requirements.txt + cryptography + jinja2 + packaging + passlib + pyyaml + resolvelib + # optional dependencies + junit-xml + lxml + ncclient + paramiko + ansible-pylibssh + pexpect + psutil + pycrypto + requests + scp + xmltodict + ] + ++ lib.optionals windowsSupport [ pywinrm ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ]; - pythonRelaxDeps = lib.optionals (pythonOlder "3.10") [ - "importlib-resources" - ]; + pythonRelaxDeps = lib.optionals (pythonOlder "3.10") [ "importlib-resources" ]; postInstall = '' export HOME="$(mktemp -d)" diff --git a/pkgs/development/python-modules/ansible/default.nix b/pkgs/development/python-modules/ansible/default.nix index 321cf23c2671..1c6457a5f769 100644 --- a/pkgs/development/python-modules/ansible/default.nix +++ b/pkgs/development/python-modules/ansible/default.nix @@ -1,22 +1,23 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchPypi -, jsonschema -, jxmlease -, ncclient -, netaddr -, paramiko -, ansible-pylibssh -, pynetbox -, scp -, textfsm -, ttp -, xmltodict +{ + lib, + pythonOlder, + buildPythonPackage, + fetchPypi, + jsonschema, + jxmlease, + ncclient, + netaddr, + paramiko, + ansible-pylibssh, + pynetbox, + scp, + textfsm, + ttp, + xmltodict, -# optionals -, withJunos ? false -, withNetbox ? false + # optionals + withJunos ? false, + withNetbox ? false, }: let @@ -39,38 +40,42 @@ buildPythonPackage { sed -Ei '/ansible-core/d' setup.py ''; - propagatedBuildInputs = lib.unique ([ - # Support ansible collections by default, make all others optional - # ansible.netcommon - jxmlease - ncclient - netaddr - paramiko - ansible-pylibssh - xmltodict - # ansible.posix - # ansible.utils - jsonschema - textfsm - ttp - xmltodict - # ansible.windows + propagatedBuildInputs = lib.unique ( + [ + # Support ansible collections by default, make all others optional + # ansible.netcommon + jxmlease + ncclient + netaddr + paramiko + ansible-pylibssh + xmltodict + # ansible.posix + # ansible.utils + jsonschema + textfsm + ttp + xmltodict + # ansible.windows - # lots of collections with dedicated requirements.txt and pyproject.toml files, - # add the dependencies for the collections you need conditionally and install - # ansible using overrides to enable the collections you need. - ] ++ lib.optionals (withJunos) [ - # ansible_collections/junipernetworks/junos/requirements.txt - jxmlease - ncclient - paramiko - ansible-pylibssh - scp - xmltodict - ] ++ lib.optionals (withNetbox) [ - # ansible_collections/netbox/netbox/pyproject.toml - pynetbox - ]); + # lots of collections with dedicated requirements.txt and pyproject.toml files, + # add the dependencies for the collections you need conditionally and install + # ansible using overrides to enable the collections you need. + ] + ++ lib.optionals (withJunos) [ + # ansible_collections/junipernetworks/junos/requirements.txt + jxmlease + ncclient + paramiko + ansible-pylibssh + scp + xmltodict + ] + ++ lib.optionals (withNetbox) [ + # ansible_collections/netbox/netbox/pyproject.toml + pynetbox + ] + ); # don't try and fail to strip 48000+ non strippable files, it takes >5 minutes! dontStrip = true; diff --git a/pkgs/development/python-modules/ansicolors/default.nix b/pkgs/development/python-modules/ansicolors/default.nix index ddedef72916a..bf07d4c883d7 100644 --- a/pkgs/development/python-modules/ansicolors/default.nix +++ b/pkgs/development/python-modules/ansicolors/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "ansicolors"; diff --git a/pkgs/development/python-modules/ansiconv/default.nix b/pkgs/development/python-modules/ansiconv/default.nix index ae240be30996..6f76b757524a 100644 --- a/pkgs/development/python-modules/ansiconv/default.nix +++ b/pkgs/development/python-modules/ansiconv/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytest }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, +}: buildPythonPackage rec { pname = "ansiconv"; @@ -20,5 +25,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ psyanticy ]; }; - } diff --git a/pkgs/development/python-modules/ansimarkup/default.nix b/pkgs/development/python-modules/ansimarkup/default.nix index 9e4ed625ba19..06d84f4c6f52 100644 --- a/pkgs/development/python-modules/ansimarkup/default.nix +++ b/pkgs/development/python-modules/ansimarkup/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, colorama +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + colorama, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ansiwrap/default.nix b/pkgs/development/python-modules/ansiwrap/default.nix index 66ff581b9ba5..c80d24d1c9b6 100644 --- a/pkgs/development/python-modules/ansiwrap/default.nix +++ b/pkgs/development/python-modules/ansiwrap/default.nix @@ -1,12 +1,13 @@ -{ lib -, ansicolors -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, textwrap3 +{ + lib, + ansicolors, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + textwrap3, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "ansiwrap" - ]; + pythonImportsCheck = [ "ansiwrap" ]; meta = with lib; { description = "Textwrap, but savvy to ANSI colors and styles"; diff --git a/pkgs/development/python-modules/anthemav/default.nix b/pkgs/development/python-modules/anthemav/default.nix index 00642f8cb157..095cd790b8c4 100644 --- a/pkgs/development/python-modules/anthemav/default.nix +++ b/pkgs/development/python-modules/anthemav/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "anthemav" - ]; + pythonImportsCheck = [ "anthemav" ]; meta = with lib; { description = "Python asyncio module to interface with Anthem AVM and MRX receivers"; diff --git a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix index 70fa4e6da2fa..2c446ac30517 100644 --- a/pkgs/development/python-modules/antlr4-python3-runtime/default.nix +++ b/pkgs/development/python-modules/antlr4-python3-runtime/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, setuptools -, python -, antlr4 +{ + lib, + buildPythonPackage, + setuptools, + python, + antlr4, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/runtime/Python3"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postPatch = '' substituteInPlace tests/TestIntervalSet.py \ diff --git a/pkgs/development/python-modules/anyascii/default.nix b/pkgs/development/python-modules/anyascii/default.nix index 3e001d5a1874..9a7b8d71bd46 100644 --- a/pkgs/development/python-modules/anyascii/default.nix +++ b/pkgs/development/python-modules/anyascii/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-nV0y74RP4iW4vHy6f5UFNPrk2iepvzpr6iyw6kbORzA="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/anyascii/anyascii/blob/${version}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/anybadge/default.nix b/pkgs/development/python-modules/anybadge/default.nix index 0418de37a251..8bb9f80cfd3a 100644 --- a/pkgs/development/python-modules/anybadge/default.nix +++ b/pkgs/development/python-modules/anybadge/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { # setup.py reads its version from the TRAVIS_TAG environment variable TRAVIS_TAG = "v${version}"; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; nativeCheckInputs = [ pytestCheckHook @@ -43,9 +42,7 @@ buildPythonPackage rec { "tests/test_server.py" ]; - pythonImportsCheck = [ - "anybadge" - ]; + pythonImportsCheck = [ "anybadge" ]; meta = with lib; { description = "Python tool for generating badges for your projects"; diff --git a/pkgs/development/python-modules/anyconfig/default.nix b/pkgs/development/python-modules/anyconfig/default.nix index b0e673969a5b..9d4d0ed58203 100644 --- a/pkgs/development/python-modules/anyconfig/default.nix +++ b/pkgs/development/python-modules/anyconfig/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pytestCheckHook -, setuptools +{ + buildPythonPackage, + fetchPypi, + lib, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { sed -i '/addopts =/d' setup.cfg ''; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not diff --git a/pkgs/development/python-modules/anyio/default.nix b/pkgs/development/python-modules/anyio/default.nix index c5e6d20acb6b..e317f6fe5775 100644 --- a/pkgs/development/python-modules/anyio/default.nix +++ b/pkgs/development/python-modules/anyio/default.nix @@ -1,30 +1,31 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, exceptiongroup -, idna -, sniffio -, typing-extensions + # dependencies + exceptiongroup, + idna, + sniffio, + typing-extensions, -# optionals -, trio + # optionals + trio, -# tests -, hypothesis -, psutil -, pytest-mock -, pytest-xdist -, pytestCheckHook -, trustme -, uvloop + # tests + hypothesis, + psutil, + pytest-mock, + pytest-xdist, + pytestCheckHook, + trustme, + uvloop, }: buildPythonPackage rec { @@ -46,18 +47,18 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - idna - sniffio - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - typing-extensions - ]; + propagatedBuildInputs = + [ + idna + sniffio + ] + ++ lib.optionals (pythonOlder "3.11") [ + exceptiongroup + typing-extensions + ]; passthru.optional-dependencies = { - trio = [ - trio - ]; + trio = [ trio ]; }; # trustme uses pyopenssl @@ -75,8 +76,10 @@ buildPythonPackage rec { ] ++ passthru.optional-dependencies.trio; pytestFlagsArray = [ - "-W" "ignore::trio.TrioDeprecationWarning" - "-m" "'not network'" + "-W" + "ignore::trio.TrioDeprecationWarning" + "-m" + "'not network'" ]; disabledTests = lib.optionals (stdenv.isx86_64 && stdenv.isDarwin) [ @@ -91,9 +94,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "anyio" - ]; + pythonImportsCheck = [ "anyio" ]; meta = with lib; { changelog = "https://github.com/agronholm/anyio/blob/${src.rev}/docs/versionhistory.rst"; diff --git a/pkgs/development/python-modules/anyqt/default.nix b/pkgs/development/python-modules/anyqt/default.nix index 584b1dcf4233..f1e88064955d 100644 --- a/pkgs/development/python-modules/anyqt/default.nix +++ b/pkgs/development/python-modules/anyqt/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyqt5 -, pytestCheckHook -, nix-update-script +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyqt5, + pytestCheckHook, + nix-update-script, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-dL2EUAMzWKq/oN3rXiEC6emDJddmg4KclT5ONKA0jfk="; }; - nativeCheckInputs = [ pyqt5 pytestCheckHook ]; + nativeCheckInputs = [ + pyqt5 + pytestCheckHook + ]; # All of these fail because Qt modules cannot be imported disabledTestPaths = [ diff --git a/pkgs/development/python-modules/anysqlite/default.nix b/pkgs/development/python-modules/anysqlite/default.nix index bf6cb41a7916..26e5b43a8371 100644 --- a/pkgs/development/python-modules/anysqlite/default.nix +++ b/pkgs/development/python-modules/anysqlite/default.nix @@ -1,12 +1,13 @@ -{ lib -, anyio -, buildPythonPackage -, fetchFromGitHub -, hatch-fancy-pypi-readme -, hatchling -, pytestCheckHook -, pythonOlder -, trio +{ + lib, + anyio, + buildPythonPackage, + fetchFromGitHub, + hatch-fancy-pypi-readme, + hatchling, + pytestCheckHook, + pythonOlder, + trio, }: buildPythonPackage rec { @@ -28,18 +29,14 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - anyio - ]; + propagatedBuildInputs = [ anyio ]; nativeCheckInputs = [ pytestCheckHook trio ]; - pythonImportsCheck = [ - "anysqlite" - ]; + pythonImportsCheck = [ "anysqlite" ]; meta = with lib; { description = "Sqlite3 for asyncio and trio"; diff --git a/pkgs/development/python-modules/anytree/default.nix b/pkgs/development/python-modules/anytree/default.nix index 0fe64bbe8f62..5be671d31e2b 100644 --- a/pkgs/development/python-modules/anytree/default.nix +++ b/pkgs/development/python-modules/anytree/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fontconfig -, graphviz -, poetry-core -, pytest7CheckHook -, pythonOlder -, six -, substituteAll -, withGraphviz ? true +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fontconfig, + graphviz, + poetry-core, + pytest7CheckHook, + pythonOlder, + six, + substituteAll, + withGraphviz ? true, }: buildPythonPackage rec { @@ -32,17 +33,11 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytest7CheckHook - ]; + nativeCheckInputs = [ pytest7CheckHook ]; # Tests print “Fontconfig error: Cannot load default config file” preCheck = lib.optionalString withGraphviz '' @@ -52,9 +47,7 @@ buildPythonPackage rec { # Circular dependency anytree → graphviz → pango → glib → gtk-doc → anytree doCheck = withGraphviz; - pythonImportsCheck = [ - "anytree" - ]; + pythonImportsCheck = [ "anytree" ]; meta = with lib; { description = "Powerful and Lightweight Python Tree Data Structure"; diff --git a/pkgs/development/python-modules/anywidget/default.nix b/pkgs/development/python-modules/anywidget/default.nix index 51f6131ae5e6..dd45e8f4676e 100644 --- a/pkgs/development/python-modules/anywidget/default.nix +++ b/pkgs/development/python-modules/anywidget/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, hatch-jupyter-builder -, hatchling -, importlib-metadata -, ipywidgets -, psygnal -, typing-extensions -, watchfiles +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + hatch-jupyter-builder, + hatchling, + importlib-metadata, + ipywidgets, + psygnal, + typing-extensions, + watchfiles, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aocd-example-parser/default.nix b/pkgs/development/python-modules/aocd-example-parser/default.nix index c2379aa914e1..de56bb7f0698 100644 --- a/pkgs/development/python-modules/aocd-example-parser/default.nix +++ b/pkgs/development/python-modules/aocd-example-parser/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-iOxqzZj29aY/xyigir1KOU6GcBBvnlxEOBLHChEQjf4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Circular dependency with aocd # pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/aocd/default.nix b/pkgs/development/python-modules/aocd/default.nix index 1b56736028b8..3a6c506f6b11 100644 --- a/pkgs/development/python-modules/aocd/default.nix +++ b/pkgs/development/python-modules/aocd/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, aocd-example-parser -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, numpy -, pebble -, pook -, pytest-freezegun -, pytest-mock -, pytest-raisin -, pytest-socket -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, requests-mock -, rich -, setuptools -, termcolor -, tzlocal +{ + lib, + stdenv, + aocd-example-parser, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + numpy, + pebble, + pook, + pytest-freezegun, + pytest-mock, + pytest-raisin, + pytest-socket, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + requests-mock, + rich, + setuptools, + termcolor, + tzlocal, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { hash = "sha256-YZvcR97uHceloqwoP+azaBmj3GLusYNbItLIaeJ3QD0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aocd-example-parser @@ -101,9 +100,7 @@ buildPythonPackage rec { "test_submit_float_warns" ]; - pythonImportsCheck = [ - "aocd" - ]; + pythonImportsCheck = [ "aocd" ]; meta = with lib; { description = "Get your Advent of Code data with a single import statement"; diff --git a/pkgs/development/python-modules/apache-beam/default.nix b/pkgs/development/python-modules/apache-beam/default.nix index fead79054b36..0854275c395f 100644 --- a/pkgs/development/python-modules/apache-beam/default.nix +++ b/pkgs/development/python-modules/apache-beam/default.nix @@ -1,50 +1,51 @@ -{ buildPythonPackage -, cloudpickle -, crcmod -, cython -, dill -, fastavro -, fasteners -, fetchFromGitHub -, fetchpatch -, freezegun -, grpcio -, grpcio-tools -, hdfs -, httplib2 -, hypothesis -, lib -, mock -, mypy-protobuf -, numpy -, objsize -, orjson -, pandas -, parameterized -, proto-plus -, protobuf -, psycopg2 -, pyarrow -, pydot -, pyhamcrest -, pymongo -, pytest-xdist -, pytestCheckHook -, python -, python-dateutil -, pythonRelaxDepsHook -, pytz -, pyyaml -, regex -, requests -, requests-mock -, scikit-learn -, setuptools -, sqlalchemy -, tenacity -, testcontainers -, typing-extensions -, zstandard +{ + buildPythonPackage, + cloudpickle, + crcmod, + cython, + dill, + fastavro, + fasteners, + fetchFromGitHub, + fetchpatch, + freezegun, + grpcio, + grpcio-tools, + hdfs, + httplib2, + hypothesis, + lib, + mock, + mypy-protobuf, + numpy, + objsize, + orjson, + pandas, + parameterized, + proto-plus, + protobuf, + psycopg2, + pyarrow, + pydot, + pyhamcrest, + pymongo, + pytest-xdist, + pytestCheckHook, + python, + python-dateutil, + pythonRelaxDepsHook, + pytz, + pyyaml, + regex, + requests, + requests-mock, + scikit-learn, + setuptools, + sqlalchemy, + tenacity, + testcontainers, + typing-extensions, + zstandard, }: buildPythonPackage rec { @@ -126,9 +127,7 @@ buildPythonPackage rec { enableParallelBuilding = true; - pythonImportsCheck = [ - "apache_beam" - ]; + pythonImportsCheck = [ "apache_beam" ]; checkInputs = [ freezegun diff --git a/pkgs/development/python-modules/apcaccess/default.nix b/pkgs/development/python-modules/apcaccess/default.nix index b93a91c3090b..5fb60a8c6f82 100644 --- a/pkgs/development/python-modules/apcaccess/default.nix +++ b/pkgs/development/python-modules/apcaccess/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { --replace "setup_requires='pytest-runner'," "" ''; - pythonImportsCheck = [ - "apcaccess" - ]; + pythonImportsCheck = [ "apcaccess" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Library offers programmatic access to the status information provided by apcupsd over its Network Information Server"; diff --git a/pkgs/development/python-modules/apipkg/default.nix b/pkgs/development/python-modules/apipkg/default.nix index 7fa8bdf06f58..e3cf3a0c7757 100644 --- a/pkgs/development/python-modules/apipkg/default.nix +++ b/pkgs/development/python-modules/apipkg/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,17 +24,11 @@ buildPythonPackage rec { hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test_apipkg.py" - ]; + pytestFlagsArray = [ "test_apipkg.py" ]; - pythonImportsCheck = [ - "apipkg" - ]; + pythonImportsCheck = [ "apipkg" ]; meta = with lib; { changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG"; diff --git a/pkgs/development/python-modules/apischema/default.nix b/pkgs/development/python-modules/apischema/default.nix index eb385ccaf90e..1034d1d02160 100644 --- a/pkgs/development/python-modules/apischema/default.nix +++ b/pkgs/development/python-modules/apischema/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, graphql-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + graphql-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { }; passthru.optional-dependencies = { - graphql = [ - graphql-core - ]; + graphql = [ graphql-core ]; }; nativeCheckInputs = [ @@ -32,9 +31,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "apischema" - ]; + pythonImportsCheck = [ "apischema" ]; meta = with lib; { description = "JSON (de)serialization, GraphQL and JSON schema generation using typing"; diff --git a/pkgs/development/python-modules/apispec-webframeworks/default.nix b/pkgs/development/python-modules/apispec-webframeworks/default.nix index 66e45f0a15f9..3953083d41a6 100644 --- a/pkgs/development/python-modules/apispec-webframeworks/default.nix +++ b/pkgs/development/python-modules/apispec-webframeworks/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, apispec -, bottle -, buildPythonPackage -, fetchFromGitHub -, flit-core -, flask -, mock -, pytestCheckHook -, pythonOlder -, tornado +{ + lib, + aiohttp, + apispec, + bottle, + buildPythonPackage, + fetchFromGitHub, + flit-core, + flask, + mock, + pytestCheckHook, + pythonOlder, + tornado, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-qepiaRW36quIgxBtEHMF3HN0wO6jp2uGAHgg5fJoMUY="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - apispec - ] ++ apispec.optional-dependencies.yaml; + propagatedBuildInputs = [ apispec ] ++ apispec.optional-dependencies.yaml; nativeCheckInputs = [ aiohttp @@ -43,9 +40,7 @@ buildPythonPackage rec { tornado ]; - pythonImportsCheck = [ - "apispec_webframeworks" - ]; + pythonImportsCheck = [ "apispec_webframeworks" ]; meta = with lib; { description = "Web framework plugins for apispec"; diff --git a/pkgs/development/python-modules/apispec/default.nix b/pkgs/development/python-modules/apispec/default.nix index b3df151c0c51..46fbf4371971 100644 --- a/pkgs/development/python-modules/apispec/default.nix +++ b/pkgs/development/python-modules/apispec/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, marshmallow -, mock -, openapi-spec-validator -, packaging -, prance -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + marshmallow, + mock, + openapi-spec-validator, + packaging, + prance, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -25,21 +26,13 @@ buildPythonPackage rec { hash = "sha256-9cqkfO51/gO5xQtVlASLTAUu7KLCEuDawS27YXXZplk="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; passthru.optional-dependencies = { - marshmallow = [ - marshmallow - ]; - yaml = [ - pyyaml - ]; + marshmallow = [ marshmallow ]; + yaml = [ pyyaml ]; validation = [ openapi-spec-validator prance @@ -51,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "apispec" - ]; + pythonImportsCheck = [ "apispec" ]; meta = with lib; { changelog = "https://github.com/marshmallow-code/apispec/blob/${version}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/apkit/default.nix b/pkgs/development/python-modules/apkit/default.nix index 7e2c45ca8bc7..ab07a00ddb46 100644 --- a/pkgs/development/python-modules/apkit/default.nix +++ b/pkgs/development/python-modules/apkit/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/aplpy/default.nix b/pkgs/development/python-modules/aplpy/default.nix index 14141cf72d36..ab718a184070 100644 --- a/pkgs/development/python-modules/aplpy/default.nix +++ b/pkgs/development/python-modules/aplpy/default.nix @@ -1,22 +1,23 @@ -{ lib -, astropy -, buildPythonPackage -, fetchpatch -, fetchPypi -, matplotlib -, numpy -, pillow -, pyavm -, pyregion -, pytest-astropy -, pytestCheckHook -, pythonOlder -, reproject -, scikit-image -, setuptools -, setuptools-scm -, shapely -, wheel +{ + lib, + astropy, + buildPythonPackage, + fetchpatch, + fetchPypi, + matplotlib, + numpy, + pillow, + pyavm, + pyregion, + pytest-astropy, + pytestCheckHook, + pythonOlder, + reproject, + scikit-image, + setuptools, + setuptools-scm, + shapely, + wheel, }: buildPythonPackage rec { @@ -73,9 +74,7 @@ buildPythonPackage rec { OPENMP_EXPECTED=0 ''; - pythonImportsCheck = [ - "aplpy" - ]; + pythonImportsCheck = [ "aplpy" ]; meta = with lib; { description = "The Astronomical Plotting Library in Python"; diff --git a/pkgs/development/python-modules/appdirs/default.nix b/pkgs/development/python-modules/appdirs/default.nix index 1f2da03eae04..0e1cebb646ca 100644 --- a/pkgs/development/python-modules/appdirs/default.nix +++ b/pkgs/development/python-modules/appdirs/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/apple-weatherkit/default.nix b/pkgs/development/python-modules/apple-weatherkit/default.nix index ce5bce13d5f7..60cfd6d9e71e 100644 --- a/pkgs/development/python-modules/apple-weatherkit/default.nix +++ b/pkgs/development/python-modules/apple-weatherkit/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, aiohttp -, aiohttp-retry -, pythonOlder -, pyjwt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + aiohttp, + aiohttp-retry, + pythonOlder, + pyjwt, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-w3KinicaF01I6fIidI7XYHpB8eq52RTUw/BMLrx6Grk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "apple_weatherkit" - ]; + pythonImportsCheck = [ "apple_weatherkit" ]; meta = with lib; { description = "Python library for Apple WeatherKit"; diff --git a/pkgs/development/python-modules/applicationinsights/default.nix b/pkgs/development/python-modules/applicationinsights/default.nix index 3dd3ccf4d36b..9c4021bbad37 100644 --- a/pkgs/development/python-modules/applicationinsights/default.nix +++ b/pkgs/development/python-modules/applicationinsights/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, portalocker +{ + buildPythonPackage, + lib, + fetchPypi, + portalocker, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/appnope/default.nix b/pkgs/development/python-modules/appnope/default.nix index bb72bbc8e73e..19a9263a0697 100644 --- a/pkgs/development/python-modules/appnope/default.nix +++ b/pkgs/development/python-modules/appnope/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-JYzNOPD1ofOrtZK5TTKxbF1ausmczsltR7F1Vwss8Sw="; }; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; meta = { description = "Disable App Nap on macOS"; diff --git a/pkgs/development/python-modules/approval-utilities/default.nix b/pkgs/development/python-modules/approval-utilities/default.nix index 38d22ad57aae..c7e7157539b4 100644 --- a/pkgs/development/python-modules/approval-utilities/default.nix +++ b/pkgs/development/python-modules/approval-utilities/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, approvaltests -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + approvaltests, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { mv setup.approval_utilities.py setup.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ # used in approval_utilities/utilities/time_utilities.py diff --git a/pkgs/development/python-modules/approvaltests/default.nix b/pkgs/development/python-modules/approvaltests/default.nix index 9898dffe82ab..650aa440170e 100644 --- a/pkgs/development/python-modules/approvaltests/default.nix +++ b/pkgs/development/python-modules/approvaltests/default.nix @@ -1,21 +1,22 @@ -{ lib -, allpairspy -, approval-utilities -, beautifulsoup4 -, buildPythonPackage -, empty-files -, fetchFromGitHub -, mock -, mrjob -, numpy -, pyperclip -, pytest -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, testfixtures -, typing-extensions +{ + lib, + allpairspy, + approval-utilities, + beautifulsoup4, + buildPythonPackage, + empty-files, + fetchFromGitHub, + mock, + mrjob, + numpy, + pyperclip, + pytest, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + testfixtures, + typing-extensions, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-oG1TH9F8IYDZWLuL2TIesNuZQVzGQRqkGk502HTG+O8="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ allpairspy diff --git a/pkgs/development/python-modules/apptools/default.nix b/pkgs/development/python-modules/apptools/default.nix index faaf6bec0796..60360301a09b 100644 --- a/pkgs/development/python-modules/apptools/default.nix +++ b/pkgs/development/python-modules/apptools/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, configobj -, fetchPypi -, importlib-resources -, pandas -, pytestCheckHook -, pythonOlder -, tables -, traits -, traitsui +{ + lib, + buildPythonPackage, + configobj, + fetchPypi, + importlib-resources, + pandas, + pytestCheckHook, + pythonOlder, + tables, + traits, + traitsui, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { configobj traits traitsui - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; nativeCheckInputs = [ tables @@ -41,9 +40,7 @@ buildPythonPackage rec { export HOME=$TMP ''; - pythonImportsCheck = [ - "apptools" - ]; + pythonImportsCheck = [ "apptools" ]; meta = with lib; { description = "Set of packages that Enthought has found useful in creating a number of applications"; diff --git a/pkgs/development/python-modules/apricot-select/default.nix b/pkgs/development/python-modules/apricot-select/default.nix index 80e12792f162..b50707e96e6f 100644 --- a/pkgs/development/python-modules/apricot-select/default.nix +++ b/pkgs/development/python-modules/apricot-select/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numba -, numpy -, pynose -, pytestCheckHook -, pythonOlder -, scikit-learn -, scipy -, setuptools -, torchvision -, tqdm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numba, + numpy, + pynose, + pytestCheckHook, + pythonOlder, + scikit-learn, + scipy, + setuptools, + torchvision, + tqdm, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { sed -i '/"nose"/d' setup.py ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ numba @@ -49,9 +48,7 @@ buildPythonPackage rec { torchvision ]; - pythonImportsCheck = [ - "apricot" - ]; + pythonImportsCheck = [ "apricot" ]; disabledTestPaths = [ # Tests require nose diff --git a/pkgs/development/python-modules/aprslib/default.nix b/pkgs/development/python-modules/aprslib/default.nix index 390a88fc2bf2..72f9d05d4e2b 100644 --- a/pkgs/development/python-modules/aprslib/default.nix +++ b/pkgs/development/python-modules/aprslib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { doCheck = false; # mox3 is disabled on python311 - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "aprslib" ]; diff --git a/pkgs/development/python-modules/apscheduler/default.nix b/pkgs/development/python-modules/apscheduler/default.nix index 7de46a521651..6d038d28ec3e 100644 --- a/pkgs/development/python-modules/apscheduler/default.nix +++ b/pkgs/development/python-modules/apscheduler/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, gevent -, pytest-asyncio -, pytest-tornado -, pytestCheckHook -, pythonOlder -, pytz -, setuptools -, setuptools-scm -, six -, tornado -, twisted -, tzlocal +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + gevent, + pytest-asyncio, + pytest-tornado, + pytestCheckHook, + pythonOlder, + pytz, + setuptools, + setuptools-scm, + six, + tornado, + twisted, + tzlocal, }: buildPythonPackage rec { @@ -55,20 +56,20 @@ buildPythonPackage rec { --replace-fail " --cov --tb=short" "" ''; - disabledTests = [ - "test_broken_pool" - # gevent tests have issue on newer Python releases - "test_add_live_job" - "test_add_pending_job" - "test_shutdown" - ] ++ lib.optionals stdenv.isDarwin [ - "test_submit_job" - "test_max_instances" - ]; + disabledTests = + [ + "test_broken_pool" + # gevent tests have issue on newer Python releases + "test_add_live_job" + "test_add_pending_job" + "test_shutdown" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_submit_job" + "test_max_instances" + ]; - pythonImportsCheck = [ - "apscheduler" - ]; + pythonImportsCheck = [ "apscheduler" ]; meta = with lib; { description = "Library that lets you schedule your Python code to be executed"; diff --git a/pkgs/development/python-modules/apsw/default.nix b/pkgs/development/python-modules/apsw/default.nix index 41eb2ade77ed..06cacee9f1bf 100644 --- a/pkgs/development/python-modules/apsw/default.nix +++ b/pkgs/development/python-modules/apsw/default.nix @@ -26,7 +26,6 @@ buildPythonPackage rec { buildInputs = [ sqlite ]; - # Project uses custom test setup to exclude some tests by default, so using pytest # requires more maintenance # https://github.com/rogerbinns/apsw/issues/335 diff --git a/pkgs/development/python-modules/apycula/default.nix b/pkgs/development/python-modules/apycula/default.nix index c41dd8fea278..43e2fbdbcc39 100644 --- a/pkgs/development/python-modules/apycula/default.nix +++ b/pkgs/development/python-modules/apycula/default.nix @@ -22,9 +22,7 @@ buildPythonPackage rec { build-system = [ setuptools-scm ]; - dependencies = [ - crc - ]; + dependencies = [ crc ]; # Tests require a physical FPGA doCheck = false; diff --git a/pkgs/development/python-modules/aqipy-atmotech/default.nix b/pkgs/development/python-modules/aqipy-atmotech/default.nix index a9b82ca6ad19..549e49b3d486 100644 --- a/pkgs/development/python-modules/aqipy-atmotech/default.nix +++ b/pkgs/development/python-modules/aqipy-atmotech/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-tqHhfJmtVFUSO57Cid9y3LK4pOoG7ROtwDT2hY5IE1Y="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'" "" ''; - pythonImportsCheck = [ - "aqipy" - ]; + pythonImportsCheck = [ "aqipy" ]; meta = with lib; { description = "Library for AQI calculation"; diff --git a/pkgs/development/python-modules/aqualogic/default.nix b/pkgs/development/python-modules/aqualogic/default.nix index e7772f40c63c..4e5ac2e73f48 100644 --- a/pkgs/development/python-modules/aqualogic/default.nix +++ b/pkgs/development/python-modules/aqualogic/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pytestCheckHook -, websockets +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pytestCheckHook, + websockets, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { websockets ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # With 3.4 the event loop is not terminated after the first test # https://github.com/swilson/aqualogic/issues/9 diff --git a/pkgs/development/python-modules/arabic-reshaper/default.nix b/pkgs/development/python-modules/arabic-reshaper/default.nix index f9c82cd0a699..36c9aaf01395 100644 --- a/pkgs/development/python-modules/arabic-reshaper/default.nix +++ b/pkgs/development/python-modules/arabic-reshaper/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fonttools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fonttools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,12 @@ buildPythonPackage rec { }; passthru.optional-dependencies = { - with-fonttools = [ - fonttools - ]; + with-fonttools = [ fonttools ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "arabic_reshaper" - ]; + pythonImportsCheck = [ "arabic_reshaper" ]; meta = with lib; { description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic"; diff --git a/pkgs/development/python-modules/arc4/default.nix b/pkgs/development/python-modules/arc4/default.nix index 9e873328a308..6706519259c7 100644 --- a/pkgs/development/python-modules/arc4/default.nix +++ b/pkgs/development/python-modules/arc4/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-DlZIygf5v3ZNY2XFmrKOA15ccMo3Rv0kf6hZJ0CskeQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "arc4" - ]; + pythonImportsCheck = [ "arc4" ]; meta = with lib; { description = "ARCFOUR (RC4) cipher implementation"; diff --git a/pkgs/development/python-modules/arcam-fmj/default.nix b/pkgs/development/python-modules/arcam-fmj/default.nix index b78a7bfac161..c7a2f7579507 100644 --- a/pkgs/development/python-modules/arcam-fmj/default.nix +++ b/pkgs/development/python-modules/arcam-fmj/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, fetchFromGitHub -, aiohttp -, attrs -, defusedxml -, pytest-aiohttp -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + fetchFromGitHub, + aiohttp, + attrs, + defusedxml, + pytest-aiohttp, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/archspec/default.nix b/pkgs/development/python-modules/archspec/default.nix index 1ae73f71f325..d0f7e0ac67e3 100644 --- a/pkgs/development/python-modules/archspec/default.nix +++ b/pkgs/development/python-modules/archspec/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, jsonschema -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + jsonschema, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,29 +24,26 @@ buildPythonPackage rec { hash = "sha256-Ek+rmgvG6DbtxljAEHVac/JzNI1MaLpPu4G8nhaxzg8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; nativeCheckInputs = [ pytestCheckHook jsonschema ]; - pythonImportsCheck = [ - "archspec" - ]; + pythonImportsCheck = [ "archspec" ]; meta = with lib; { description = "Library for detecting, labeling, and reasoning about microarchitectures"; mainProgram = "archspec"; homepage = "https://archspec.readthedocs.io/"; changelog = "https://github.com/archspec/archspec/releases/tag/v${version}"; - license = with licenses; [ mit asl20 ]; + license = with licenses; [ + mit + asl20 + ]; maintainers = with maintainers; [ atila ]; }; } diff --git a/pkgs/development/python-modules/area/default.nix b/pkgs/development/python-modules/area/default.nix index 3057bf1eb805..d1e072de8d87 100644 --- a/pkgs/development/python-modules/area/default.nix +++ b/pkgs/development/python-modules/area/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "area"; diff --git a/pkgs/development/python-modules/arelle/default.nix b/pkgs/development/python-modules/arelle/default.nix index fbbda611ba50..7ecdc1bb8a93 100644 --- a/pkgs/development/python-modules/arelle/default.nix +++ b/pkgs/development/python-modules/arelle/default.nix @@ -1,8 +1,19 @@ -{ gui ? true, - buildPythonPackage, fetchFromGitHub, lib, - sphinx, lxml, isodate, numpy, openpyxl, - tkinter ? null, py3to2, isPy3k, python, - ... }: +{ + gui ? true, + buildPythonPackage, + fetchFromGitHub, + lib, + sphinx, + lxml, + isodate, + numpy, + openpyxl, + tkinter ? null, + py3to2, + isPy3k, + python, + ... +}: buildPythonPackage rec { pname = "arelle${lib.optionalString (!gui) "-headless"}"; @@ -19,10 +30,11 @@ buildPythonPackage rec { rev = "edgr${version}"; sha256 = "12a94ipdp6xalqyds7rcp6cjwps6fbj3byigzfy403hlqc9n1g33"; }; - outputs = ["out" "doc"]; - patches = [ - ./tests.patch + outputs = [ + "out" + "doc" ]; + patches = [ ./tests.patch ]; postPatch = "rm testParser2.py"; nativeBuildInputs = [ sphinx @@ -33,25 +45,25 @@ buildPythonPackage rec { isodate numpy openpyxl - ] ++ lib.optionals gui [ - tkinter - ]; + ] ++ lib.optionals gui [ tkinter ]; # arelle-gui is useless without gui dependencies, so delete it when !gui. - postInstall = lib.optionalString (!gui) '' - find $out/bin -name "*arelle-gui*" -delete - '' + - # By default, not the entirety of the src dir is copied. This means we don't - # copy the `images` dir, which is needed for the gui version. - lib.optionalString (gui) '' - targetDir=$out/${python.sitePackages} - cp -vr $src/arelle $targetDir - ''; + postInstall = + lib.optionalString (!gui) '' + find $out/bin -name "*arelle-gui*" -delete + '' + + + # By default, not the entirety of the src dir is copied. This means we don't + # copy the `images` dir, which is needed for the gui version. + lib.optionalString (gui) '' + targetDir=$out/${python.sitePackages} + cp -vr $src/arelle $targetDir + ''; # Documentation postBuild = '' (cd apidocs && make html && cp -r _build $doc) - ''; + ''; doCheck = false; @@ -60,10 +72,12 @@ buildPythonPackage rec { ''; meta = with lib; { - description = '' - An open source facility for XBRL, the eXtensible Business Reporting - Language supporting various standards, exposed through a Python or - REST API'' + lib.optionalString gui " and a graphical user interface"; + description = + '' + An open source facility for XBRL, the eXtensible Business Reporting + Language supporting various standards, exposed through a Python or + REST API'' + + lib.optionalString gui " and a graphical user interface"; mainProgram = "arelle"; homepage = "http://arelle.org/"; license = licenses.asl20; diff --git a/pkgs/development/python-modules/aresponses/default.nix b/pkgs/development/python-modules/aresponses/default.nix index 01b0c3c44a6e..f5d268fcf2bf 100644 --- a/pkgs/development/python-modules/aresponses/default.nix +++ b/pkgs/development/python-modules/aresponses/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytest -, pytest-asyncio -, pytestCheckHook +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytest, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-Ui9ZpWaVBfCbDlZH3EgHX32FIZtyTHnc/UXqtoEyFcw="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; buildInputs = [ pytest @@ -45,9 +44,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "aresponses" - ]; + pythonImportsCheck = [ "aresponses" ]; meta = with lib; { description = "Asyncio testing server"; @@ -56,4 +53,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ makefu ]; }; } - diff --git a/pkgs/development/python-modules/argcomplete/default.nix b/pkgs/development/python-modules/argcomplete/default.nix index 363b07758a2a..2fd19fc2091a 100644 --- a/pkgs/development/python-modules/argcomplete/default.nix +++ b/pkgs/development/python-modules/argcomplete/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Tries to build and install test packages which fails doCheck = false; - pythonImportsCheck = [ - "argcomplete" - ]; + pythonImportsCheck = [ "argcomplete" ]; meta = with lib; { changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst"; diff --git a/pkgs/development/python-modules/argh/default.nix b/pkgs/development/python-modules/argh/default.nix index 3097db541754..145682871993 100644 --- a/pkgs/development/python-modules/argh/default.nix +++ b/pkgs/development/python-modules/argh/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, flit-core -, iocapture -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + flit-core, + iocapture, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-2xw0iFgE99RkbDhdwvsZtFKYVhMi9MFerhsTOZP54yM="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ iocapture diff --git a/pkgs/development/python-modules/argon2-cffi-bindings/default.nix b/pkgs/development/python-modules/argon2-cffi-bindings/default.nix index 822acd09e142..4e286daa0ed6 100644 --- a/pkgs/development/python-modules/argon2-cffi-bindings/default.nix +++ b/pkgs/development/python-modules/argon2-cffi-bindings/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, libargon2 -, cffi -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + libargon2, + cffi, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { cffi ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; env.ARGON2_CFFI_USE_SYSTEM = 1; diff --git a/pkgs/development/python-modules/argon2-cffi/default.nix b/pkgs/development/python-modules/argon2-cffi/default.nix index da9022c93f19..2ab26082ad16 100644 --- a/pkgs/development/python-modules/argon2-cffi/default.nix +++ b/pkgs/development/python-modules/argon2-cffi/default.nix @@ -1,12 +1,13 @@ -{ hypothesis -, pytestCheckHook -, buildPythonPackage -, fetchPypi -, lib -, hatchling -, hatch-vcs -, hatch-fancy-pypi-readme -, argon2-cffi-bindings +{ + hypothesis, + pytestCheckHook, + buildPythonPackage, + fetchPypi, + lib, + hatchling, + hatch-vcs, + hatch-fancy-pypi-readme, + argon2-cffi-bindings, }: buildPythonPackage rec { @@ -20,17 +21,24 @@ buildPythonPackage rec { hash = "sha256-h5w+eaJynOdo67fTbUYJ46eKTKLsOp8SKGygV+PQ2wg="; }; - nativeBuildInputs = [ hatchling hatch-vcs hatch-fancy-pypi-readme ]; + nativeBuildInputs = [ + hatchling + hatch-vcs + hatch-fancy-pypi-readme + ]; propagatedBuildInputs = [ argon2-cffi-bindings ]; - nativeCheckInputs = [ hypothesis pytestCheckHook ]; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; pythonImportsCheck = [ "argon2" ]; meta = with lib; { description = "Secure Password Hashes for Python"; - homepage = "https://argon2-cffi.readthedocs.io/"; - license = licenses.mit; + homepage = "https://argon2-cffi.readthedocs.io/"; + license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/argos-translate-files/default.nix b/pkgs/development/python-modules/argos-translate-files/default.nix index 0f0e3ea22354..308f8bb7c0a1 100644 --- a/pkgs/development/python-modules/argos-translate-files/default.nix +++ b/pkgs/development/python-modules/argos-translate-files/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, translatehtml +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + translatehtml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/argostranslate/default.nix b/pkgs/development/python-modules/argostranslate/default.nix index f631da6ea800..5d4db901771d 100644 --- a/pkgs/development/python-modules/argostranslate/default.nix +++ b/pkgs/development/python-modules/argostranslate/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, ctranslate2 -, ctranslate2-cpp -, sentencepiece -, stanza +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + ctranslate2, + ctranslate2-cpp, + sentencepiece, + stanza, }: let ctranslate2OneDNN = ctranslate2.override { @@ -42,9 +43,7 @@ buildPythonPackage rec { doCheck = false; # needs network access - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # required for import check to work # PermissionError: [Errno 13] Permission denied: '/homeless-shelter' diff --git a/pkgs/development/python-modules/argparse-addons/default.nix b/pkgs/development/python-modules/argparse-addons/default.nix index 44b9bf1c4ce0..1af3f55cd554 100644 --- a/pkgs/development/python-modules/argparse-addons/default.nix +++ b/pkgs/development/python-modules/argparse-addons/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "argparse-addons"; @@ -17,6 +21,9 @@ buildPythonPackage rec { description = "Additional Python argparse types and actions"; homepage = "https://github.com/eerimoq/argparse_addons"; license = licenses.mit; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/argparse-dataclass/default.nix b/pkgs/development/python-modules/argparse-dataclass/default.nix index e0fbcd842b80..68ba25a94ead 100644 --- a/pkgs/development/python-modules/argparse-dataclass/default.nix +++ b/pkgs/development/python-modules/argparse-dataclass/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "argparse_dataclass" - ]; + pythonImportsCheck = [ "argparse_dataclass" ]; meta = with lib; { description = "Declarative CLIs with argparse and dataclasses"; diff --git a/pkgs/development/python-modules/argparse-manpage/default.nix b/pkgs/development/python-modules/argparse-manpage/default.nix index 59a303e0237b..6236e4150a06 100644 --- a/pkgs/development/python-modules/argparse-manpage/default.nix +++ b/pkgs/development/python-modules/argparse-manpage/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, packaging -, tomli -, pytestCheckHook -, pip +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + packaging, + tomli, + pytestCheckHook, + pip, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools packaging - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ pytestCheckHook @@ -43,9 +40,7 @@ buildPythonPackage rec { "test_old_example_file_name" ]; - pythonImportsCheck = [ - "argparse_manpage" - ]; + pythonImportsCheck = [ "argparse_manpage" ]; passthru.optional-dependencies = { setuptools = [ setuptools ]; diff --git a/pkgs/development/python-modules/args/default.nix b/pkgs/development/python-modules/args/default.nix index 329fde341669..28170c20e92c 100644 --- a/pkgs/development/python-modules/args/default.nix +++ b/pkgs/development/python-modules/args/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "args"; diff --git a/pkgs/development/python-modules/aria2p/default.nix b/pkgs/development/python-modules/aria2p/default.nix index 01f81b316952..132f467e0499 100644 --- a/pkgs/development/python-modules/aria2p/default.nix +++ b/pkgs/development/python-modules/aria2p/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pdm-backend -, appdirs -, loguru -, requests -, setuptools -, toml -, websocket-client -, asciimatics -, pyperclip -, aria2 -, fastapi -, psutil -, pytest-xdist -, pytestCheckHook -, responses -, uvicorn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pdm-backend, + appdirs, + loguru, + requests, + setuptools, + toml, + websocket-client, + asciimatics, + pyperclip, + aria2, + fastapi, + psutil, + pytest-xdist, + pytestCheckHook, + responses, + uvicorn, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-WlbZP2+qUSyfmeFFiuarXI3VaNZvD9cnOef/WM+J0OE="; }; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; propagatedBuildInputs = [ appdirs @@ -47,7 +46,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - tui = [ asciimatics pyperclip ]; + tui = [ + asciimatics + pyperclip + ]; }; preCheck = '' diff --git a/pkgs/development/python-modules/ariadne/default.nix b/pkgs/development/python-modules/ariadne/default.nix index 14740b2136c1..c94ffd720d10 100644 --- a/pkgs/development/python-modules/ariadne/default.nix +++ b/pkgs/development/python-modules/ariadne/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, freezegun -, graphql-core -, hatchling -, httpx -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, python-multipart -, starlette -, syrupy -, typing-extensions -, werkzeug +{ + lib, + buildPythonPackage, + fetchFromGitHub, + freezegun, + graphql-core, + hatchling, + httpx, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + python-multipart, + starlette, + syrupy, + typing-extensions, + werkzeug, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { hash = "sha256-zdM6LKtrD6m3hWn90yAgsinCvaa86BaTdhgf/VzGDLA="; }; - patches = [ - ./remove-opentracing.patch - ]; + patches = [ ./remove-opentracing.patch ]; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ graphql-core @@ -55,13 +52,9 @@ buildPythonPackage rec { werkzeug ]; - pythonImportsCheck = [ - "ariadne" - ]; + pythonImportsCheck = [ "ariadne" ]; - pytestFlagsArray = [ - "--snapshot-update" - ]; + pytestFlagsArray = [ "--snapshot-update" ]; disabledTests = [ # TypeError: TestClient.request() got an unexpected keyword argument 'content' diff --git a/pkgs/development/python-modules/arnparse/default.nix b/pkgs/development/python-modules/arnparse/default.nix index 5da008aa650f..43e072b31461 100644 --- a/pkgs/development/python-modules/arnparse/default.nix +++ b/pkgs/development/python-modules/arnparse/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-2+wxzYoS/KJXjYM6lZguxbr2Oxobo0eFNnzWZHLi0WM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "arnparse" - ]; + pythonImportsCheck = [ "arnparse" ]; meta = with lib; { description = "Parse ARNs using Python"; diff --git a/pkgs/development/python-modules/arpeggio/default.nix b/pkgs/development/python-modules/arpeggio/default.nix index b07a7333c878..cd98f61d4e52 100644 --- a/pkgs/development/python-modules/arpeggio/default.nix +++ b/pkgs/development/python-modules/arpeggio/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/arpy/default.nix b/pkgs/development/python-modules/arpy/default.nix index 229e15d24ff3..b1b8cbd68ddc 100644 --- a/pkgs/development/python-modules/arpy/default.nix +++ b/pkgs/development/python-modules/arpy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-jD1XJJhcpJymn0CwZ65U06xLKm1JjHffmx/umEO7a5s="; }; - checkInputs = [ - unittestCheckHook - ]; + checkInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "arpy" ]; diff --git a/pkgs/development/python-modules/array-record/default.nix b/pkgs/development/python-modules/array-record/default.nix index c37eec6baba0..83385b535429 100644 --- a/pkgs/development/python-modules/array-record/default.nix +++ b/pkgs/development/python-modules/array-record/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, pythonAtLeast -, python -, fetchPypi -, absl-py -, etils -, importlib-resources -, typing-extensions -, zipp +{ + lib, + buildPythonPackage, + pythonOlder, + pythonAtLeast, + python, + fetchPypi, + absl-py, + etils, + importlib-resources, + typing-extensions, + zipp, }: buildPythonPackage rec { @@ -19,21 +20,25 @@ buildPythonPackage rec { # As of 2023-10-31, PyPI includes wheels for Python 3.9, 3.10, and 3.11. disabled = pythonOlder "3.9" || pythonAtLeast "3.12"; - src = let - pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}"; - in fetchPypi { - inherit version format; - pname = "array_record"; - dist = pyShortVersion; - python = pyShortVersion; - abi = pyShortVersion; - platform = "manylinux_2_17_x86_64.manylinux2014_x86_64"; - hash = { - cp39 = "sha256-BzMOVue7E1S1+5+XTcPELko81ujc9MbmqLhNsU7pqO0="; - cp310 = "sha256-eUD9pQu9GsbV8MPD1MiF3Ihr+zYioSOo6P15hYIwPYo="; - cp311 = "sha256-rAmkI3EIZPYiXrxFowfDC0Gf3kRw0uX0i6Kx6Zu+hNM="; - }.${pyShortVersion} or (throw "${pname} is missing hash for ${pyShortVersion}"); - }; + src = + let + pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}"; + in + fetchPypi { + inherit version format; + pname = "array_record"; + dist = pyShortVersion; + python = pyShortVersion; + abi = pyShortVersion; + platform = "manylinux_2_17_x86_64.manylinux2014_x86_64"; + hash = + { + cp39 = "sha256-BzMOVue7E1S1+5+XTcPELko81ujc9MbmqLhNsU7pqO0="; + cp310 = "sha256-eUD9pQu9GsbV8MPD1MiF3Ihr+zYioSOo6P15hYIwPYo="; + cp311 = "sha256-rAmkI3EIZPYiXrxFowfDC0Gf3kRw0uX0i6Kx6Zu+hNM="; + } + .${pyShortVersion} or (throw "${pname} is missing hash for ${pyShortVersion}"); + }; propagatedBuildInputs = [ absl-py diff --git a/pkgs/development/python-modules/arrayqueues/default.nix b/pkgs/development/python-modules/arrayqueues/default.nix index 48207c8e659f..a363318453ba 100644 --- a/pkgs/development/python-modules/arrayqueues/default.nix +++ b/pkgs/development/python-modules/arrayqueues/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + numpy, }: buildPythonPackage rec { @@ -13,9 +17,7 @@ buildPythonPackage rec { sha256 = "sha256-7I+5BQO/gsvTREDkBfxrMblw3JPfY48S4KI4PCGPtFY="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; meta = { homepage = "https://github.com/portugueslab/arrayqueues"; diff --git a/pkgs/development/python-modules/arris-tg2492lg/default.nix b/pkgs/development/python-modules/arris-tg2492lg/default.nix index e44aec28aed7..c966fd1ac7ce 100644 --- a/pkgs/development/python-modules/arris-tg2492lg/default.nix +++ b/pkgs/development/python-modules/arris-tg2492lg/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-MQq9jMUoJgqaY0f9YIbhME2kO+ektPqBnT9REg3qDpg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-aiohttp pytestCheckHook ]; - pythonImportsCheck = [ - "arris_tg2492lg" - ]; + pythonImportsCheck = [ "arris_tg2492lg" ]; meta = with lib; { description = "Library to connect to an Arris TG2492LG"; diff --git a/pkgs/development/python-modules/arrow/default.nix b/pkgs/development/python-modules/arrow/default.nix index 77aa1f6ca4ac..57645904f79f 100644 --- a/pkgs/development/python-modules/arrow/default.nix +++ b/pkgs/development/python-modules/arrow/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core -, python-dateutil -, types-python-dateutil -, pytestCheckHook -, pytest-mock -, pytz -, simplejson +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, + python-dateutil, + types-python-dateutil, + pytestCheckHook, + pytest-mock, + pytz, + simplejson, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { sed -i "/addopts/d" tox.ini ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ python-dateutil @@ -45,9 +44,7 @@ buildPythonPackage rec { ]; # ParserError: Could not parse timezone expression "America/Nuuk" - disabledTests = [ - "test_parse_tz_name_zzz" - ]; + disabledTests = [ "test_parse_tz_name_zzz" ]; pythonImportsCheck = [ "arrow" ]; diff --git a/pkgs/development/python-modules/art/default.nix b/pkgs/development/python-modules/art/default.nix index 3b64d927324e..0f43d311f88c 100644 --- a/pkgs/development/python-modules/art/default.nix +++ b/pkgs/development/python-modules/art/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/arviz/default.nix b/pkgs/development/python-modules/arviz/default.nix index b7860aa5dc30..19e69d4e087f 100644 --- a/pkgs/development/python-modules/arviz/default.nix +++ b/pkgs/development/python-modules/arviz/default.nix @@ -1,34 +1,35 @@ -{ lib -, buildPythonPackage -, dm-tree -, fetchFromGitHub -, emcee -, h5netcdf -, matplotlib -, netcdf4 -, numba -, numpy -, pandas -, setuptools -, cloudpickle -, pytestCheckHook -, scipy -, packaging -, pythonOlder -, typing-extensions -, xarray -, xarray-einstats -, zarr -, ffmpeg -, h5py -, jaxlib -, torchvision -, jax +{ + lib, + buildPythonPackage, + dm-tree, + fetchFromGitHub, + emcee, + h5netcdf, + matplotlib, + netcdf4, + numba, + numpy, + pandas, + setuptools, + cloudpickle, + pytestCheckHook, + scipy, + packaging, + pythonOlder, + typing-extensions, + xarray, + xarray-einstats, + zarr, + ffmpeg, + h5py, + jaxlib, + torchvision, + jax, # , pymc3 (circular dependency) -, pyro-ppl + pyro-ppl, #, pystan (not packaged) -, numpyro -, bokeh + numpyro, + bokeh, }: buildPythonPackage rec { @@ -85,9 +86,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d); ''; - pytestFlagsArray = [ - "arviz/tests/base_tests/" - ]; + pytestFlagsArray = [ "arviz/tests/base_tests/" ]; disabledTests = [ # Tests require network access @@ -110,9 +109,7 @@ buildPythonPackage rec { "test_plot_forest" ]; - pythonImportsCheck = [ - "arviz" - ]; + pythonImportsCheck = [ "arviz" ]; meta = with lib; { description = "Library for exploratory analysis of Bayesian models"; diff --git a/pkgs/development/python-modules/arxiv2bib/default.nix b/pkgs/development/python-modules/arxiv2bib/default.nix index a60642a11489..889159ccff34 100644 --- a/pkgs/development/python-modules/arxiv2bib/default.nix +++ b/pkgs/development/python-modules/arxiv2bib/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, mock -, unittestCheckHook +{ + buildPythonPackage, + lib, + fetchFromGitHub, + mock, + unittestCheckHook, }: buildPythonPackage rec { @@ -18,8 +19,14 @@ buildPythonPackage rec { sha256 = "1kp2iyx20lpc9dv4qg5fgwf83a1wx6f7hj1ldqyncg0kn9xcrhbg"; }; - nativeCheckInputs = [ unittestCheckHook mock ]; - unittestFlagsArray = [ "-s" "tests" ]; + nativeCheckInputs = [ + unittestCheckHook + mock + ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; meta = with lib; { description = "Get a BibTeX entry from an arXiv id number, using the arxiv.org API"; diff --git a/pkgs/development/python-modules/asana/default.nix b/pkgs/development/python-modules/asana/default.nix index bdad7887ba7a..5f78649ba449 100644 --- a/pkgs/development/python-modules/asana/default.nix +++ b/pkgs/development/python-modules/asana/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, certifi -, six -, python-dateutil -, urllib3 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + certifi, + six, + python-dateutil, + urllib3, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { urllib3 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "asana" - ]; + pythonImportsCheck = [ "asana" ]; meta = with lib; { description = "Python client library for Asana"; diff --git a/pkgs/development/python-modules/ascii-magic/default.nix b/pkgs/development/python-modules/ascii-magic/default.nix index 0c876d756ebe..8f7b5ae5c428 100644 --- a/pkgs/development/python-modules/ascii-magic/default.nix +++ b/pkgs/development/python-modules/ascii-magic/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, colorama -, fetchPypi -, pillow -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + colorama, + fetchPypi, + pillow, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { pillow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ascii_magic" - ]; + pythonImportsCheck = [ "ascii_magic" ]; preCheck = '' cd tests diff --git a/pkgs/development/python-modules/asciimatics/default.nix b/pkgs/development/python-modules/asciimatics/default.nix index 0a9736bebe50..ee536ff7177d 100644 --- a/pkgs/development/python-modules/asciimatics/default.nix +++ b/pkgs/development/python-modules/asciimatics/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, pyfiglet -, pytestCheckHook -, pythonOlder -, setuptools-scm -, wcwidth +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + pyfiglet, + pytestCheckHook, + pythonOlder, + setuptools-scm, + wcwidth, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ pyfiglet @@ -31,11 +30,9 @@ buildPythonPackage rec { wcwidth ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ + pythonImportsCheck = [ "asciimatics.effects" "asciimatics.renderers" "asciimatics.scene" diff --git a/pkgs/development/python-modules/asciitree/default.nix b/pkgs/development/python-modules/asciitree/default.nix index 206793653665..ab8ec69bef49 100644 --- a/pkgs/development/python-modules/asciitree/default.nix +++ b/pkgs/development/python-modules/asciitree/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-AaLDO27W6fGHGU11rRpBf5gg1we+9SS1MEJdFP2lPBw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Draws ASCII trees"; diff --git a/pkgs/development/python-modules/asdf-standard/default.nix b/pkgs/development/python-modules/asdf-standard/default.nix index 63586454746b..15c8191a8465 100644 --- a/pkgs/development/python-modules/asdf-standard/default.nix +++ b/pkgs/development/python-modules/asdf-standard/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-resources -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-resources, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-AVNbwrFb/AnsimLUmZ+c8y3EnccWYMhCVkAij9h3YQI="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ importlib-resources ]; # Circular dependency on asdf doCheck = false; - pythonImportsCheck = [ - "asdf_standard" - ]; + pythonImportsCheck = [ "asdf_standard" ]; meta = with lib; { description = "Standards document describing ASDF"; diff --git a/pkgs/development/python-modules/asdf-transform-schemas/default.nix b/pkgs/development/python-modules/asdf-transform-schemas/default.nix index 7adc1705569e..4a96c06dac39 100644 --- a/pkgs/development/python-modules/asdf-transform-schemas/default.nix +++ b/pkgs/development/python-modules/asdf-transform-schemas/default.nix @@ -1,10 +1,11 @@ -{ lib -, asdf-standard -, buildPythonPackage -, fetchPypi -, importlib-resources -, pythonOlder -, setuptools-scm +{ + lib, + asdf-standard, + buildPythonPackage, + fetchPypi, + importlib-resources, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -20,22 +21,14 @@ buildPythonPackage rec { hash = "sha256-gs9MeCV1c0qJUyfyX/WDzpSZ1+K4Nv6IgLLXlhxrRis="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; - dependencies = [ - asdf-standard - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + dependencies = [ asdf-standard ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; # Circular dependency on asdf doCheck = false; - pythonImportsCheck = [ - "asdf_transform_schemas" - ]; + pythonImportsCheck = [ "asdf_transform_schemas" ]; meta = with lib; { description = "ASDF schemas for validating transform tags"; diff --git a/pkgs/development/python-modules/asdf/default.nix b/pkgs/development/python-modules/asdf/default.nix index 43fa7ae2fdca..09e00d7ae8f5 100644 --- a/pkgs/development/python-modules/asdf/default.nix +++ b/pkgs/development/python-modules/asdf/default.nix @@ -1,23 +1,24 @@ -{ lib -, asdf-standard -, asdf-transform-schemas -, attrs -, buildPythonPackage -, fetchFromGitHub -, fsspec -, importlib-metadata -, jmespath -, lz4 -, numpy -, packaging -, psutil -, pytest-remotedata -, pytestCheckHook -, pythonOlder -, pyyaml -, semantic-version -, setuptools -, setuptools-scm +{ + lib, + asdf-standard, + asdf-transform-schemas, + attrs, + buildPythonPackage, + fetchFromGitHub, + fsspec, + importlib-metadata, + jmespath, + lz4, + numpy, + packaging, + psutil, + pytest-remotedata, + pytestCheckHook, + pythonOlder, + pyyaml, + semantic-version, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -59,10 +60,7 @@ buildPythonPackage rec { pytestCheckHook ]; - - pythonImportsCheck = [ - "asdf" - ]; + pythonImportsCheck = [ "asdf" ]; meta = with lib; { description = "Python tools to handle ASDF files"; diff --git a/pkgs/development/python-modules/ase/default.nix b/pkgs/development/python-modules/ase/default.nix index 087e7415b58b..6bd5f58b4203 100644 --- a/pkgs/development/python-modules/ase/default.nix +++ b/pkgs/development/python-modules/ase/default.nix @@ -1,18 +1,19 @@ -{ lib -, fetchPypi -, buildPythonPackage -, isPy27 -, pythonAtLeast -, setuptools -, numpy -, scipy -, matplotlib -, flask -, pillow -, psycopg2 -, pytestCheckHook -, pytest-mock -, pytest-xdist +{ + lib, + fetchPypi, + buildPythonPackage, + isPy27, + pythonAtLeast, + setuptools, + numpy, + scipy, + matplotlib, + flask, + pillow, + psycopg2, + pytestCheckHook, + pytest-mock, + pytest-xdist, }: buildPythonPackage rec { @@ -29,9 +30,20 @@ buildPythonPackage rec { build-system = [ setuptools ]; - dependencies = [ numpy scipy matplotlib flask pillow psycopg2 ]; + dependencies = [ + numpy + scipy + matplotlib + flask + pillow + psycopg2 + ]; - nativeCheckInputs = [ pytestCheckHook pytest-mock pytest-xdist ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-mock + pytest-xdist + ]; disabledTests = [ "test_fundamental_params" @@ -41,10 +53,7 @@ buildPythonPackage rec { "test_favicon" "test_vibrations_methods" # missing attribute "test_jmol_roundtrip" # missing attribute - ] - ++ lib.optionals (pythonAtLeast "3.12") [ - "test_info_calculators" - ]; + ] ++ lib.optionals (pythonAtLeast "3.12") [ "test_info_calculators" ]; preCheck = '' export PATH="$out/bin:$PATH" diff --git a/pkgs/development/python-modules/asgi-csrf/default.nix b/pkgs/development/python-modules/asgi-csrf/default.nix index e04eda64ab50..d7b7a4c03fd2 100644 --- a/pkgs/development/python-modules/asgi-csrf/default.nix +++ b/pkgs/development/python-modules/asgi-csrf/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub -, itsdangerous -, python-multipart -, pytestCheckHook -, starlette -, httpx -, pytest-asyncio +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, + itsdangerous, + python-multipart, + pytestCheckHook, + starlette, + httpx, + pytest-asyncio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/asgi-lifespan/default.nix b/pkgs/development/python-modules/asgi-lifespan/default.nix index 05e21d84585f..97ab68297c21 100644 --- a/pkgs/development/python-modules/asgi-lifespan/default.nix +++ b/pkgs/development/python-modules/asgi-lifespan/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, setuptools-scm -, sniffio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + setuptools-scm, + sniffio, }: buildPythonPackage rec { @@ -30,16 +31,12 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - sniffio - ]; + dependencies = [ sniffio ]; # Circular dependencies, starlette doCheck = false; - pythonImportsCheck = [ - "asgi_lifespan" - ]; + pythonImportsCheck = [ "asgi_lifespan" ]; meta = with lib; { description = "Programmatic startup/shutdown of ASGI apps"; diff --git a/pkgs/development/python-modules/asgi-logger/default.nix b/pkgs/development/python-modules/asgi-logger/default.nix index fb79236d784c..0133515565e2 100644 --- a/pkgs/development/python-modules/asgi-logger/default.nix +++ b/pkgs/development/python-modules/asgi-logger/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, asgiref +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + asgiref, }: buildPythonPackage rec { @@ -15,18 +16,12 @@ buildPythonPackage rec { hash = "sha256-son1ML9J0UMgJCpWdYD/yK0FO6VmfuzifSWpeCLToKo="; }; - nativeBuildInputs = [ - poetry-core - ]; - propagatedBuildInputs = [ - asgiref - ]; + nativeBuildInputs = [ poetry-core ]; + propagatedBuildInputs = [ asgiref ]; # tests are not in the pypi release, and there are no tags/release corresponding to the pypi releases in the github doCheck = false; - pythonImportsCheck = [ - "asgi_logger" - ]; + pythonImportsCheck = [ "asgi_logger" ]; meta = with lib; { description = "Access logger for ASGI servers"; diff --git a/pkgs/development/python-modules/asgineer/default.nix b/pkgs/development/python-modules/asgineer/default.nix index c1fae6959a69..b9b856fe4e1b 100644 --- a/pkgs/development/python-modules/asgineer/default.nix +++ b/pkgs/development/python-modules/asgineer/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -30,4 +31,3 @@ buildPythonPackage rec { maintainers = [ maintainers.matthiasbeyer ]; }; } - diff --git a/pkgs/development/python-modules/asgiref/default.nix b/pkgs/development/python-modules/asgiref/default.nix index 11fd868ebd91..10cfbf571b30 100644 --- a/pkgs/development/python-modules/asgiref/default.nix +++ b/pkgs/development/python-modules/asgiref/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-VW1PBh6+nLMD7qxmL83ymuxCPYKVY3qGKsB7ZiMqMu8="; }; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook pytest-asyncio ]; - disabledTests = lib.optionals stdenv.isDarwin [ - "test_multiprocessing" - ]; + disabledTests = lib.optionals stdenv.isDarwin [ "test_multiprocessing" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/asks/default.nix b/pkgs/development/python-modules/asks/default.nix index 86c024f0e12d..1bab5a583c1a 100644 --- a/pkgs/development/python-modules/asks/default.nix +++ b/pkgs/development/python-modules/asks/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, fetchFromGitHub -, anyio -, async-generator -, h11 -, curio -, overly -, pytestCheckHook -, trio +{ + lib, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + fetchFromGitHub, + anyio, + async-generator, + h11, + curio, + overly, + pytestCheckHook, + trio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/asmog/default.nix b/pkgs/development/python-modules/asmog/default.nix index a1d8c340ba68..39e77a2a15ba 100644 --- a/pkgs/development/python-modules/asmog/default.nix +++ b/pkgs/development/python-modules/asmog/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/asn1/default.nix b/pkgs/development/python-modules/asn1/default.nix index 4e62df50aff5..6b406b13961b 100644 --- a/pkgs/development/python-modules/asn1/default.nix +++ b/pkgs/development/python-modules/asn1/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, future -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + future, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,26 +21,18 @@ buildPythonPackage rec { hash = "sha256-pXLG2Mkrv6EeJn6Dk+SefzNtrPdQ6of95LbVTKjTADQ="; }; - propagatedBuildInputs = [ - future - ]; + propagatedBuildInputs = [ future ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "enum-compat" "" ''; - pytestFlagsArray = [ - "tests/test_asn1.py" - ]; + pytestFlagsArray = [ "tests/test_asn1.py" ]; - pythonImportsCheck = [ - "asn1" - ]; + pythonImportsCheck = [ "asn1" ]; meta = with lib; { description = "Python ASN.1 encoder and decoder"; diff --git a/pkgs/development/python-modules/asn1ate/default.nix b/pkgs/development/python-modules/asn1ate/default.nix index fbad415431dc..0a1032259c84 100644 --- a/pkgs/development/python-modules/asn1ate/default.nix +++ b/pkgs/development/python-modules/asn1ate/default.nix @@ -1,9 +1,14 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pyparsing }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyparsing, +}: buildPythonPackage rec { pname = "asn1ate"; format = "setuptools"; - version= "0.6"; + version = "0.6"; src = fetchFromGitHub { sha256 = "1p8hv4gsyqsdr0gafcq497n52pybiqmc22di8ai4nsj60fv0km45"; diff --git a/pkgs/development/python-modules/asn1crypto/default.nix b/pkgs/development/python-modules/asn1crypto/default.nix index a10ad81c1823..4fb33a866a60 100644 --- a/pkgs/development/python-modules/asn1crypto/default.nix +++ b/pkgs/development/python-modules/asn1crypto/default.nix @@ -1,28 +1,33 @@ -{ lib -, buildPythonPackage -, python -, fetchFromGitHub +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, -# build system -, setuptools + # build system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: # Switch version based on python version, as the situation isn't easy: # https://github.com/wbond/asn1crypto/issues/269 # https://github.com/MatthiasValvekens/certomancer/issues/12 let - provenance = if lib.versionOlder python.version "3.12" then rec { - version = "1.5.1"; - rev = version; - hash = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M="; - } else { - version = "1.5.1-unstable-2023-11-03"; - rev = "b763a757bb2bef2ab63620611ddd8006d5e9e4a2"; - hash = "sha256-11WajEDtisiJsKQjZMSd5sDog3DuuBzf1PcgSY+uuXY="; - }; + provenance = + if lib.versionOlder python.version "3.12" then + rec { + version = "1.5.1"; + rev = version; + hash = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M="; + } + else + { + version = "1.5.1-unstable-2023-11-03"; + rev = "b763a757bb2bef2ab63620611ddd8006d5e9e4a2"; + hash = "sha256-11WajEDtisiJsKQjZMSd5sDog3DuuBzf1PcgSY+uuXY="; + }; in buildPythonPackage rec { @@ -37,13 +42,9 @@ buildPythonPackage rec { inherit (provenance) rev hash; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP"; diff --git a/pkgs/development/python-modules/asn1tools/default.nix b/pkgs/development/python-modules/asn1tools/default.nix index b339739afcab..4895e713cd60 100644 --- a/pkgs/development/python-modules/asn1tools/default.nix +++ b/pkgs/development/python-modules/asn1tools/default.nix @@ -1,14 +1,15 @@ -{ lib -, bitstruct -, buildPythonPackage -, diskcache -, fetchFromGitHub -, prompt-toolkit -, pyparsing -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + bitstruct, + buildPythonPackage, + diskcache, + fetchFromGitHub, + prompt-toolkit, + pyparsing, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-TWAOML6nsLX3TYqoQ9fcSjrUmC4byXOfczfkmSaSa0k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bitstruct @@ -35,12 +34,8 @@ buildPythonPackage rec { ]; passthru.optional-depdendencies = { - shell = [ - prompt-toolkit - ]; - cache = [ - diskcache - ]; + shell = [ prompt-toolkit ]; + cache = [ diskcache ]; }; nativeCheckInputs = [ @@ -48,9 +43,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-depdendencies); - pythonImportsCheck = [ - "asn1tools" - ]; + pythonImportsCheck = [ "asn1tools" ]; disabledTests = [ # assert exact error message of pyparsing which changed and no longer matches diff --git a/pkgs/development/python-modules/aspectlib/default.nix b/pkgs/development/python-modules/aspectlib/default.nix index 3f4a87e0a334..752484f21374 100644 --- a/pkgs/development/python-modules/aspectlib/default.nix +++ b/pkgs/development/python-modules/aspectlib/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch -, setuptools -, fields -, process-tests -, pytestCheckHook -, tornado +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch, + setuptools, + fields, + process-tests, + pytestCheckHook, + tornado, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - fields - ]; + propagatedBuildInputs = [ fields ]; pythonImportsCheck = [ "aspectlib" @@ -53,9 +50,7 @@ buildPythonPackage rec { tornado ]; - pytestFlagsArray = [ - "-W ignore::DeprecationWarning" - ]; + pytestFlagsArray = [ "-W ignore::DeprecationWarning" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/aspell-python/default.nix b/pkgs/development/python-modules/aspell-python/default.nix index 1f66b49869e0..37c708bed5c0 100644 --- a/pkgs/development/python-modules/aspell-python/default.nix +++ b/pkgs/development/python-modules/aspell-python/default.nix @@ -1,12 +1,13 @@ -{ lib -, aspell -, aspellDicts -, buildPythonPackage -, fetchPypi -, isPy27 -, pytestCheckHook -, pythonAtLeast -, setuptools +{ + lib, + aspell, + aspellDicts, + buildPythonPackage, + fetchPypi, + isPy27, + pytestCheckHook, + pythonAtLeast, + setuptools, }: buildPythonPackage rec { @@ -23,26 +24,18 @@ buildPythonPackage rec { hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - buildInputs = [ - aspell - ]; + buildInputs = [ aspell ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell" export HOME=$(mktemp -d) ''; - pytestFlagsArray = [ - "test/unittests.py" - ]; + pytestFlagsArray = [ "test/unittests.py" ]; disabledTests = lib.optionals (pythonAtLeast "3.10") [ # https://github.com/WojciechMula/aspell-python/issues/22 @@ -51,9 +44,7 @@ buildPythonPackage rec { "test_saveall" ]; - pythonImportsCheck = [ - "aspell" - ]; + pythonImportsCheck = [ "aspell" ]; meta = with lib; { description = "Python wrapper for aspell (C extension and Python version)"; diff --git a/pkgs/development/python-modules/aspy-refactor-imports/default.nix b/pkgs/development/python-modules/aspy-refactor-imports/default.nix index 9ba679225da2..7271669c8ff3 100644 --- a/pkgs/development/python-modules/aspy-refactor-imports/default.nix +++ b/pkgs/development/python-modules/aspy-refactor-imports/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + stdenv, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { sha256 = "MlCM3zNTQZJ1RWrTQG0AN28RUepWINKCeLENykbu2nw="; }; - pythonImportsCheck = [ - "aspy.refactor_imports" - ]; + pythonImportsCheck = [ "aspy.refactor_imports" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # fails on darwin due to case-insensitive file system - disabledTests = lib.optionals stdenv.isDarwin ["test_application_directory_case"]; + disabledTests = lib.optionals stdenv.isDarwin [ "test_application_directory_case" ]; meta = with lib; { description = "Utilities for refactoring imports in python-like syntax."; diff --git a/pkgs/development/python-modules/aspy-yaml/default.nix b/pkgs/development/python-modules/aspy-yaml/default.nix index 732d19be0d10..87f3d2f0ab81 100644 --- a/pkgs/development/python-modules/aspy-yaml/default.nix +++ b/pkgs/development/python-modules/aspy-yaml/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pyyaml }: +{ + lib, + buildPythonPackage, + fetchPypi, + pyyaml, +}: buildPythonPackage rec { pname = "aspy-yaml"; diff --git a/pkgs/development/python-modules/assay/default.nix b/pkgs/development/python-modules/assay/default.nix index 35dce9a454a2..25108a26d404 100644 --- a/pkgs/development/python-modules/assay/default.nix +++ b/pkgs/development/python-modules/assay/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonAtLeast }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, +}: buildPythonPackage rec { pname = "assay"; diff --git a/pkgs/development/python-modules/assertpy/default.nix b/pkgs/development/python-modules/assertpy/default.nix index de900c368da1..e45e59409c72 100644 --- a/pkgs/development/python-modules/assertpy/default.nix +++ b/pkgs/development/python-modules/assertpy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { sha256 = "0hnfh45cmqyp7zasrllwf8gbq3mazqlhhk0sq1iqlh6fig0yfq2f"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "assertpy" - ]; + pythonImportsCheck = [ "assertpy" ]; meta = with lib; { description = "Simple assertion library for unit testing with a fluent API"; diff --git a/pkgs/development/python-modules/asterisk-mbox/default.nix b/pkgs/development/python-modules/asterisk-mbox/default.nix index 0a08dc737449..d0a1b28536d0 100644 --- a/pkgs/development/python-modules/asterisk-mbox/default.nix +++ b/pkgs/development/python-modules/asterisk-mbox/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch2 -, setuptools -, packaging +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch2, + setuptools, + packaging, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/asteroid-filterbanks/default.nix b/pkgs/development/python-modules/asteroid-filterbanks/default.nix index 3a22c0fb5132..e01ecde83cce 100644 --- a/pkgs/development/python-modules/asteroid-filterbanks/default.nix +++ b/pkgs/development/python-modules/asteroid-filterbanks/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, black -, codecov -, coverage -, librosa -, numpy -, pre-commit -, pytest -, scipy -, torch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + black, + codecov, + coverage, + librosa, + numpy, + pre-commit, + pytest, + scipy, + torch, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/astor/default.nix b/pkgs/development/python-modules/astor/default.nix index f69afaf55252..c13e6d4cfab0 100644 --- a/pkgs/development/python-modules/astor/default.nix +++ b/pkgs/development/python-modules/astor/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { }; # disable tests broken with python3.6: https://github.com/berkerpeksag/astor/issues/89 - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/berkerpeksag/astor/issues/196 diff --git a/pkgs/development/python-modules/astral/default.nix b/pkgs/development/python-modules/astral/default.nix index 40f66dc26ab4..c6831e4473cb 100644 --- a/pkgs/development/python-modules/astral/default.nix +++ b/pkgs/development/python-modules/astral/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build -, poetry-core + # build + poetry-core, -# runtime -, backports-zoneinfo + # runtime + backports-zoneinfo, -# tests -, pytestCheckHook -, freezegun + # tests + pytestCheckHook, + freezegun, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-m3w7QS6eadFyz7JL4Oat3MnxvQGijbi+vmbXXMxTPYg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; nativeCheckInputs = [ freezegun diff --git a/pkgs/development/python-modules/astroid/default.nix b/pkgs/development/python-modules/astroid/default.nix index d0b3fe60160a..c1161eb1e58f 100644 --- a/pkgs/development/python-modules/astroid/default.nix +++ b/pkgs/development/python-modules/astroid/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, typing-extensions -, pip -, pylint -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + typing-extensions, + pip, + pylint, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-+cTQHbqoucaNi7rPoyH6Cu07vZMS8KWn5C/A3NXRSwE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ]; nativeCheckInputs = [ pip diff --git a/pkgs/development/python-modules/astropy-extension-helpers/default.nix b/pkgs/development/python-modules/astropy-extension-helpers/default.nix index 9f7280185aed..e398e7c34c2f 100644 --- a/pkgs/development/python-modules/astropy-extension-helpers/default.nix +++ b/pkgs/development/python-modules/astropy-extension-helpers/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, findutils -, pytestCheckHook -, pythonOlder -, pip -, setuptools -, setuptools-scm -, tomli -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + findutils, + pytestCheckHook, + pythonOlder, + pip, + setuptools, + setuptools-scm, + tomli, + wheel, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - tomli - ]; + propagatedBuildInputs = [ tomli ]; nativeCheckInputs = [ findutils @@ -51,18 +50,14 @@ buildPythonPackage rec { ]; # avoid import mismatch errors, as conftest.py is copied to build dir - pytestFlagsArray = [ - "extension_helpers" - ]; + pytestFlagsArray = [ "extension_helpers" ]; disabledTests = [ # https://github.com/astropy/extension-helpers/issues/43 "test_write_if_different" ]; - pythonImportsCheck = [ - "extension_helpers" - ]; + pythonImportsCheck = [ "extension_helpers" ]; meta = with lib; { description = "Utilities for building and installing packages in the Astropy ecosystem"; diff --git a/pkgs/development/python-modules/astropy-healpix/default.nix b/pkgs/development/python-modules/astropy-healpix/default.nix index 26be3405964c..e65d0d222285 100644 --- a/pkgs/development/python-modules/astropy-healpix/default.nix +++ b/pkgs/development/python-modules/astropy-healpix/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, numpy -, astropy -, astropy-extension-helpers -, setuptools -, setuptools-scm -, pytestCheckHook -, pytest-doctestplus -, hypothesis +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + numpy, + astropy, + astropy-extension-helpers, + setuptools, + setuptools-scm, + pytestCheckHook, + pytest-doctestplus, + hypothesis, }: buildPythonPackage rec { @@ -19,7 +20,7 @@ buildPythonPackage rec { src = fetchPypi { inherit version; - pname = lib.replaceStrings ["-"] ["_"] pname; + pname = lib.replaceStrings [ "-" ] [ "_" ] pname; hash = "sha256-3l0qfsl7FnBFBmlx8loVDR5AYfBxWb4jZJY02zbnl0Y="; }; diff --git a/pkgs/development/python-modules/astropy-helpers/default.nix b/pkgs/development/python-modules/astropy-helpers/default.nix index 0cf6cbda0688..6588d88009dc 100644 --- a/pkgs/development/python-modules/astropy-helpers/default.nix +++ b/pkgs/development/python-modules/astropy-helpers/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/astropy-iers-data/default.nix b/pkgs/development/python-modules/astropy-iers-data/default.nix index ae993ba5d520..c878ce72f660 100644 --- a/pkgs/development/python-modules/astropy-iers-data/default.nix +++ b/pkgs/development/python-modules/astropy-iers-data/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/astropy/default.nix b/pkgs/development/python-modules/astropy/default.nix index d22420b9fcfe..5aca4395568e 100644 --- a/pkgs/development/python-modules/astropy/default.nix +++ b/pkgs/development/python-modules/astropy/default.nix @@ -1,27 +1,28 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, -# build time -, astropy-extension-helpers -, cython -, jinja2 -, oldest-supported-numpy -, setuptools-scm -, wheel -# testing -, pytestCheckHook -, stdenv -, pytest-xdist -, pytest-astropy + # build time + astropy-extension-helpers, + cython, + jinja2, + oldest-supported-numpy, + setuptools-scm, + wheel, + # testing + pytestCheckHook, + stdenv, + pytest-xdist, + pytest-astropy, -# runtime -, astropy-iers-data -, numpy -, packaging -, pyerfa -, pyyaml + # runtime + astropy-iers-data, + numpy, + packaging, + pyerfa, + pyyaml, }: buildPythonPackage rec { @@ -66,9 +67,7 @@ buildPythonPackage rec { export HOME="$(mktemp -d)" export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 )) ''; - pythonImportsCheck = [ - "astropy" - ]; + pythonImportsCheck = [ "astropy" ]; disabledTests = [ # May fail due to parallelism, see: # https://github.com/astropy/astropy/issues/15441 @@ -84,15 +83,16 @@ buildPythonPackage rec { "test_sidereal_lon_independent" "test_timedelta_full_precision_arithmetic" "test_datetime_to_timedelta" - ] ++ lib.optionals stdenv.isDarwin [ - "test_sidereal_lat_independent" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_sidereal_lat_independent" ]; meta = { description = "Astronomy/Astrophysics library for Python"; homepage = "https://www.astropy.org"; license = lib.licenses.bsd3; platforms = lib.platforms.all; - maintainers = with lib.maintainers; [ kentjames doronbehar ]; + maintainers = with lib.maintainers; [ + kentjames + doronbehar + ]; }; } diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index 79bb6b03c243..7988d75a9044 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -1,22 +1,23 @@ -{ pkgs -, buildPythonPackage -, fetchPypi -, astropy -, requests -, keyring -, beautifulsoup4 -, html5lib -, matplotlib -, pillow -, pytest -, pytest-astropy -, pytest-dependency -, pytest-rerunfailures -, pytestCheckHook -, pyvo -, astropy-helpers -, setuptools -, isPy3k +{ + pkgs, + buildPythonPackage, + fetchPypi, + astropy, + requests, + keyring, + beautifulsoup4, + html5lib, + matplotlib, + pillow, + pytest, + pytest-astropy, + pytest-dependency, + pytest-rerunfailures, + pytestCheckHook, + pyvo, + astropy-helpers, + setuptools, + isPy3k, }: buildPythonPackage rec { @@ -40,16 +41,17 @@ buildPythonPackage rec { pyvo ]; - nativeBuildInputs = [ astropy-helpers setuptools ]; + nativeBuildInputs = [ + astropy-helpers + setuptools + ]; # Disable automatic update of the astropy-helper module postPatch = '' substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ matplotlib @@ -62,7 +64,8 @@ buildPythonPackage rec { pytestFlagsArray = [ # DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; # Tests must be run in the build directory. The tests create files diff --git a/pkgs/development/python-modules/asttokens/default.nix b/pkgs/development/python-modules/asttokens/default.nix index 53fe96ff4d03..a725032d7548 100644 --- a/pkgs/development/python-modules/asttokens/default.nix +++ b/pkgs/development/python-modules/asttokens/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools-scm -, six -, astroid -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools-scm, + six, + astroid, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-sDhpcYuppusCfhNL/fafOKI21oHIPBYNUQdorxElS6A="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ astroid diff --git a/pkgs/development/python-modules/astunparse/default.nix b/pkgs/development/python-modules/astunparse/default.nix index 54ee47f37d25..77f2cc10ad10 100644 --- a/pkgs/development/python-modules/astunparse/default.nix +++ b/pkgs/development/python-modules/astunparse/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, six -, wheel - }: +{ + lib, + fetchPypi, + buildPythonPackage, + six, + wheel, +}: buildPythonPackage rec { pname = "astunparse"; - version = "1.6.3"; + version = "1.6.3"; format = "setuptools"; src = fetchPypi { @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "5ad93a8456f0d084c3456d059fd9a92cce667963232cbf763eac3bc5b7940872"; }; - propagatedBuildInputs = [ six wheel ]; + propagatedBuildInputs = [ + six + wheel + ]; # tests not included with pypi release doCheck = false; diff --git a/pkgs/development/python-modules/asyauth/default.nix b/pkgs/development/python-modules/asyauth/default.nix index 3421902ff830..786bfc4c7fe7 100644 --- a/pkgs/development/python-modules/asyauth/default.nix +++ b/pkgs/development/python-modules/asyauth/default.nix @@ -1,11 +1,12 @@ -{ lib -, asn1crypto -, asysocks -, buildPythonPackage -, fetchPypi -, minikerberos -, pythonOlder -, unicrypto +{ + lib, + asn1crypto, + asysocks, + buildPythonPackage, + fetchPypi, + minikerberos, + pythonOlder, + unicrypto, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project doesn't have tests doCheck = false; - pythonImportsCheck = [ - "asyauth" - ]; + pythonImportsCheck = [ "asyauth" ]; meta = with lib; { description = "Unified authentication library"; diff --git a/pkgs/development/python-modules/async-dns/default.nix b/pkgs/development/python-modules/async-dns/default.nix index 375e72d24fdd..cbc8f15ed210 100644 --- a/pkgs/development/python-modules/async-dns/default.nix +++ b/pkgs/development/python-modules/async-dns/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + python, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "0vn7hxvpzikd7q61a27fwzal4lwsra2063awyr6fjpy6lh3cjdwf"; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; checkPhase = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/async-generator/default.nix b/pkgs/development/python-modules/async-generator/default.nix index 92c281580d9e..81efcc00d9ce 100644 --- a/pkgs/development/python-modules/async-generator/default.nix +++ b/pkgs/development/python-modules/async-generator/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,20 +20,19 @@ buildPythonPackage rec { hash = "sha256-brs9EGwSkgqq5CzLb3h+9e79zdFm6j1ij6hHar5xIUQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ - "test_aclose_on_unstarted_generator" - ]; + disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_aclose_on_unstarted_generator" ]; pythonImportsCheck = [ "async_generator" ]; meta = with lib; { description = "Async generators and context managers for Python 3.5+"; homepage = "https://github.com/python-trio/async_generator"; - license = with licenses; [ mit asl20 ]; + license = with licenses; [ + mit + asl20 + ]; maintainers = with maintainers; [ dotlambda ]; }; } diff --git a/pkgs/development/python-modules/async-interrupt/default.nix b/pkgs/development/python-modules/async-interrupt/default.nix index b6e16f54963d..d9fa7c8a59e5 100644 --- a/pkgs/development/python-modules/async-interrupt/default.nix +++ b/pkgs/development/python-modules/async-interrupt/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { --replace " --cov=async_interrupt --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "async_interrupt" - ]; + pythonImportsCheck = [ "async_interrupt" ]; meta = with lib; { description = "Context manager to raise an exception when a future is done"; diff --git a/pkgs/development/python-modules/async-lru/default.nix b/pkgs/development/python-modules/async-lru/default.nix index 2f4ef7262acd..91fd5b0b9180 100644 --- a/pkgs/development/python-modules/async-lru/default.nix +++ b/pkgs/development/python-modules/async-lru/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, typing-extensions -, pytestCheckHook -, pytest-asyncio +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + typing-extensions, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-S2sOkgtS+YdMtVP7UHD3+oR8Fem8roLhhgVVfh33PcM="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ]; postPatch = '' sed -i -e '/^addopts/d' -e '/^filterwarnings/,+2d' setup.cfg diff --git a/pkgs/development/python-modules/async-modbus/default.nix b/pkgs/development/python-modules/async-modbus/default.nix index 05d926744352..24a4b3c30eef 100644 --- a/pkgs/development/python-modules/async-modbus/default.nix +++ b/pkgs/development/python-modules/async-modbus/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, connio -, fetchFromGitHub -, fetchpatch -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, umodbus +{ + lib, + buildPythonPackage, + connio, + fetchFromGitHub, + fetchpatch, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + umodbus, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { --replace '"--durations=2", "--verbose"' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ connio @@ -53,9 +52,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "async_modbus" - ]; + pythonImportsCheck = [ "async_modbus" ]; meta = with lib; { description = "Library for Modbus communication"; diff --git a/pkgs/development/python-modules/async-stagger/default.nix b/pkgs/development/python-modules/async-stagger/default.nix index 379056ad56f3..51c18ed36773 100644 --- a/pkgs/development/python-modules/async-stagger/default.nix +++ b/pkgs/development/python-modules/async-stagger/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook -, pytest-asyncio -, pytest-mock +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + pytest-asyncio, + pytest-mock, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { "test_stagger_coro_gen" ]; - pythonImportsCheck = [ - "async_stagger" - ]; + pythonImportsCheck = [ "async_stagger" ]; meta = with lib; { description = "Happy Eyeballs connection algorithm and underlying scheduling logic in asyncio"; diff --git a/pkgs/development/python-modules/async-timeout/default.nix b/pkgs/development/python-modules/async-timeout/default.nix index 88a6c9e14e34..bc7c535947c0 100644 --- a/pkgs/development/python-modules/async-timeout/default.nix +++ b/pkgs/development/python-modules/async-timeout/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, typing-extensions +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-RkDZa+hNgtAu1Z6itxBaD3szq+hwNwPNCrC/h8QnUi8="; }; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; # Circular dependency on aiohttp doCheck = false; diff --git a/pkgs/development/python-modules/async-tkinter-loop/default.nix b/pkgs/development/python-modules/async-tkinter-loop/default.nix index 2d4c0e538a68..0119dbd96be6 100644 --- a/pkgs/development/python-modules/async-tkinter-loop/default.nix +++ b/pkgs/development/python-modules/async-tkinter-loop/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python3Packages -, poetry-core -, tkinter -, typing-extensions -, pythonRelaxDepsHook -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + python3Packages, + poetry-core, + tkinter, + typing-extensions, + pythonRelaxDepsHook, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { typing-extensions ]; - pythonRemoveDeps = [ - "asyncio" - ]; + pythonRemoveDeps = [ "asyncio" ]; - pythonImportsCheck = [ - "async_tkinter_loop" - ]; + pythonImportsCheck = [ "async_tkinter_loop" ]; meta = with lib; { description = "Implementation of asynchronous mainloop for tkinter, the use of which allows using async handler functions"; diff --git a/pkgs/development/python-modules/async-upnp-client/default.nix b/pkgs/development/python-modules/async-upnp-client/default.nix index d896a16f5ab6..86ed8e48b504 100644 --- a/pkgs/development/python-modules/async-upnp-client/default.nix +++ b/pkgs/development/python-modules/async-upnp-client/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, aiohttp -, async-timeout -, defusedxml -, python-didl-lite -, voluptuous + # dependencies + aiohttp, + async-timeout, + defusedxml, + python-didl-lite, + voluptuous, -# tests -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook + # tests + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-RmpQOVZ/s3Zv2e+iS7LTI5Wh/g0yy0Xv0M8ppsbYZPg="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -56,18 +55,14 @@ buildPythonPackage rec { # socket.gaierror: [Errno -2] Name or service not known "test_async_get_local_ip" "test_get_local_ip" - ] ++ lib.optionals stdenv.isDarwin [ - "test_deferred_callback_url" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_deferred_callback_url" ]; disabledTestPaths = [ # Tries to bind to multicast socket and fails to find proper interface "tests/test_ssdp_listener.py" ]; - pythonImportsCheck = [ - "async_upnp_client" - ]; + pythonImportsCheck = [ "async_upnp_client" ]; meta = with lib; { description = "Asyncio UPnP Client library for Python"; diff --git a/pkgs/development/python-modules/asyncclick/default.nix b/pkgs/development/python-modules/asyncclick/default.nix index 5847a55f8375..f36b5a773d19 100644 --- a/pkgs/development/python-modules/asyncclick/default.nix +++ b/pkgs/development/python-modules/asyncclick/default.nix @@ -1,11 +1,12 @@ -{ lib -, anyio -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, pytestCheckHook -, pythonOlder -, trio +{ + lib, + anyio, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + pytestCheckHook, + pythonOlder, + trio, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-gx7s/HikvjsXalc0Z73JWMKc1SlhR+kohwk2sW4o19I="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - anyio - ]; + propagatedBuildInputs = [ anyio ]; nativeCheckInputs = [ pytestCheckHook @@ -36,7 +33,8 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" "ignore::trio.TrioDeprecationWarning" + "-W" + "ignore::trio.TrioDeprecationWarning" ]; disabledTests = [ @@ -44,9 +42,7 @@ buildPythonPackage rec { "test_context_pushing" ]; - pythonImportsCheck = [ - "asyncclick" - ]; + pythonImportsCheck = [ "asyncclick" ]; meta = with lib; { description = "Python composable command line utility"; diff --git a/pkgs/development/python-modules/asynccmd/default.nix b/pkgs/development/python-modules/asynccmd/default.nix index 623424047429..0cfbf87fc4d3 100644 --- a/pkgs/development/python-modules/asynccmd/default.nix +++ b/pkgs/development/python-modules/asynccmd/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/asyncinotify/default.nix b/pkgs/development/python-modules/asyncinotify/default.nix index 6fe187bfc3cf..27fb79e5b98b 100644 --- a/pkgs/development/python-modules/asyncinotify/default.nix +++ b/pkgs/development/python-modules/asyncinotify/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-RXx6i5dIB2oySVaLoHPRGD9VKgiO5OAXmrzVBq8Ad18="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "asyncinotify" - ]; + pythonImportsCheck = [ "asyncinotify" ]; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; meta = with lib; { description = "Module for inotify"; diff --git a/pkgs/development/python-modules/asyncio-mqtt/default.nix b/pkgs/development/python-modules/asyncio-mqtt/default.nix index 309e74ba4cc1..8209b9460659 100644 --- a/pkgs/development/python-modules/asyncio-mqtt/default.nix +++ b/pkgs/development/python-modules/asyncio-mqtt/default.nix @@ -1,14 +1,15 @@ -{ lib -, anyio -, buildPythonPackage -, fetchFromGitHub -, paho-mqtt -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, typing-extensions -, wheel +{ + lib, + anyio, + buildPythonPackage, + fetchFromGitHub, + paho-mqtt, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + typing-extensions, + wheel, }: buildPythonPackage rec { @@ -31,20 +32,14 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - paho-mqtt - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = [ paho-mqtt ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; nativeCheckInputs = [ anyio pytestCheckHook ]; - pythonImportsCheck = [ - "asyncio_mqtt" - ]; + pythonImportsCheck = [ "asyncio_mqtt" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/asyncio-rlock/default.nix b/pkgs/development/python-modules/asyncio-rlock/default.nix index 6f53a3adfa0a..8ed725d13ccc 100644 --- a/pkgs/development/python-modules/asyncio-rlock/default.nix +++ b/pkgs/development/python-modules/asyncio-rlock/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/asyncio-throttle/default.nix b/pkgs/development/python-modules/asyncio-throttle/default.nix index c48868380ebd..dc8dc03599a1 100644 --- a/pkgs/development/python-modules/asyncio-throttle/default.nix +++ b/pkgs/development/python-modules/asyncio-throttle/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pytest-asyncio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/asyncmy/default.nix b/pkgs/development/python-modules/asyncmy/default.nix index 76a6d86a5bee..54c5ad8fd37b 100644 --- a/pkgs/development/python-modules/asyncmy/default.nix +++ b/pkgs/development/python-modules/asyncmy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, poetry-core -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + poetry-core, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Not running tests as aiomysql is missing support for pymysql>=0.9.3 doCheck = false; - pythonImportsCheck = [ - "asyncmy" - ]; + pythonImportsCheck = [ "asyncmy" ]; meta = with lib; { description = "Python module to interact with MySQL/mariaDB"; diff --git a/pkgs/development/python-modules/asyncpg/default.nix b/pkgs/development/python-modules/asyncpg/default.nix index dce3a9ba0642..b855d952ed2d 100644 --- a/pkgs/development/python-modules/asyncpg/default.nix +++ b/pkgs/development/python-modules/asyncpg/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, async-timeout -, uvloop -, postgresql -, pythonOlder -, pytest-xdist -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + async-timeout, + uvloop, + postgresql, + pythonOlder, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # required for compatibility with Python versions older than 3.11 # see https://github.com/MagicStack/asyncpg/blob/v0.29.0/asyncpg/_asyncio_compat.py#L13 - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ uvloop @@ -41,9 +40,7 @@ buildPythonPackage rec { rm -rf asyncpg/ ''; - pythonImportsCheck = [ - "asyncpg" - ]; + pythonImportsCheck = [ "asyncpg" ]; meta = with lib; { description = "Asyncio PosgtreSQL driver"; diff --git a/pkgs/development/python-modules/asyncserial/default.nix b/pkgs/development/python-modules/asyncserial/default.nix index a40d31510c40..1fec899b050f 100644 --- a/pkgs/development/python-modules/asyncserial/default.nix +++ b/pkgs/development/python-modules/asyncserial/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-WExmgh55sTH2w7wV3i96J1F1FN7L5rX3L/Ayvt2Kw/g="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; pythonImportsCheck = [ "asyncserial" ]; diff --git a/pkgs/development/python-modules/asyncsleepiq/default.nix b/pkgs/development/python-modules/asyncsleepiq/default.nix index 25969661bf15..9f78951b7d98 100644 --- a/pkgs/development/python-modules/asyncsleepiq/default.nix +++ b/pkgs/development/python-modules/asyncsleepiq/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-TDHFKLifNmmAVvD5DjSopEXFbR+KPMIdSA+rLAKrfpI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "asyncsleepiq" - ]; + pythonImportsCheck = [ "asyncsleepiq" ]; meta = with lib; { description = "Async interface to SleepIQ API"; diff --git a/pkgs/development/python-modules/asyncssh/default.nix b/pkgs/development/python-modules/asyncssh/default.nix index 993947d5d7ea..3618d0eaa184 100644 --- a/pkgs/development/python-modules/asyncssh/default.nix +++ b/pkgs/development/python-modules/asyncssh/default.nix @@ -1,21 +1,22 @@ -{ lib -, bcrypt -, buildPythonPackage -, cryptography -, fetchPypi -, fido2 -, gssapi -, libnacl -, libsodium -, nettle -, openssh -, openssl -, pyopenssl -, pytestCheckHook -, python-pkcs11 -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + bcrypt, + buildPythonPackage, + cryptography, + fetchPypi, + fido2, + gssapi, + libnacl, + libsodium, + nettle, + openssh, + openssl, + pyopenssl, + pytestCheckHook, + python-pkcs11, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -38,29 +39,15 @@ buildPythonPackage rec { typing-extensions ]; - buildInputs = [ - libsodium - ]; + buildInputs = [ libsodium ]; optional-dependencies = { - bcrypt = [ - bcrypt - ]; - fido2 = [ - fido2 - ]; - gssapi = [ - gssapi - ]; - libnacl = [ - libnacl - ]; - pkcs11 = [ - python-pkcs11 - ]; - pyOpenSSL = [ - pyopenssl - ]; + bcrypt = [ bcrypt ]; + fido2 = [ fido2 ]; + gssapi = [ gssapi ]; + libnacl = [ libnacl ]; + pkcs11 = [ python-pkcs11 ]; + pyOpenSSL = [ pyopenssl ]; }; __darwinAllowLocalNetworking = true; @@ -95,9 +82,7 @@ buildPythonPackage rec { "test_forward_remote" ]; - pythonImportsCheck = [ - "asyncssh" - ]; + pythonImportsCheck = [ "asyncssh" ]; meta = with lib; { description = "Asynchronous SSHv2 Python client and server library"; diff --git a/pkgs/development/python-modules/asynctest/default.nix b/pkgs/development/python-modules/asynctest/default.nix index fde7479884dc..d8a97aaf302a 100644 --- a/pkgs/development/python-modules/asynctest/default.nix +++ b/pkgs/development/python-modules/asynctest/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, python, pythonAtLeast }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + python, + pythonAtLeast, +}: buildPythonPackage rec { pname = "asynctest"; diff --git a/pkgs/development/python-modules/asyncua/default.nix b/pkgs/development/python-modules/asyncua/default.nix index 3666d8716d96..9b9c571dde30 100644 --- a/pkgs/development/python-modules/asyncua/default.nix +++ b/pkgs/development/python-modules/asyncua/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, aiofiles -, aiosqlite -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pyopenssl -, pytest-asyncio_0_21 -, pytest-mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, setuptools -, sortedcontainers -, typing-extensions +{ + lib, + stdenv, + aiofiles, + aiosqlite, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pyopenssl, + pytest-asyncio_0_21, + pytest-mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + setuptools, + sortedcontainers, + typing-extensions, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { --replace "tools/" "$out/bin/" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiofiles @@ -64,9 +63,7 @@ buildPythonPackage rec { pytest-mock ]; - pythonImportsCheck = [ - "asyncua" - ]; + pythonImportsCheck = [ "asyncua" ]; disabledTests = lib.optionals stdenv.isDarwin [ # Failed: DID NOT RAISE diff --git a/pkgs/development/python-modules/asysocks/default.nix b/pkgs/development/python-modules/asysocks/default.nix index cad72c813aec..d0df75b17dd5 100644 --- a/pkgs/development/python-modules/asysocks/default.nix +++ b/pkgs/development/python-modules/asysocks/default.nix @@ -1,8 +1,9 @@ -{ lib -, asn1crypto -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + asn1crypto, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-uilvJjuZrvdC2m4zhXCkbzLjwtbC1liWEZ20Ya7FYJ0="; }; - propagatedBuildInputs = [ - asn1crypto - ]; + propagatedBuildInputs = [ asn1crypto ]; # Upstream hasn't release the tests yet doCheck = false; - pythonImportsCheck = [ - "asysocks" - ]; + pythonImportsCheck = [ "asysocks" ]; meta = with lib; { description = "Python Socks4/5 client and server library"; diff --git a/pkgs/development/python-modules/atc-ble/default.nix b/pkgs/development/python-modules/atc-ble/default.nix index 187aaeeb99ac..76e572401904 100644 --- a/pkgs/development/python-modules/atc-ble/default.nix +++ b/pkgs/development/python-modules/atc-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pycryptodomex -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pycryptodomex, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace " --cov=atc_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-sensor-state-data @@ -38,13 +37,9 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "atc_ble" - ]; + pythonImportsCheck = [ "atc_ble" ]; meta = with lib; { description = "Library for ATC devices with custom firmware"; diff --git a/pkgs/development/python-modules/atenpdu/default.nix b/pkgs/development/python-modules/atenpdu/default.nix index 25c114debd40..1dde4152f0ac 100644 --- a/pkgs/development/python-modules/atenpdu/default.nix +++ b/pkgs/development/python-modules/atenpdu/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, async-timeout -, pysnmp-lextudio -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + fetchPypi, + async-timeout, + pysnmp-lextudio, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-KzRoE4tE/tQkKYroq5PbWKREmEl8AwbIOg3IHRZZtsQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ async-timeout @@ -31,9 +30,7 @@ buildPythonPackage rec { # Module has no test doCheck = false; - pythonImportsCheck = [ - "atenpdu" - ]; + pythonImportsCheck = [ "atenpdu" ]; meta = with lib; { description = "Python interface to control ATEN PE PDUs"; diff --git a/pkgs/development/python-modules/atlassian-python-api/default.nix b/pkgs/development/python-modules/atlassian-python-api/default.nix index c4c9f85cf3f2..922f3831b5e0 100644 --- a/pkgs/development/python-modules/atlassian-python-api/default.nix +++ b/pkgs/development/python-modules/atlassian-python-api/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, beautifulsoup4 -, deprecated -, jmespath -, lxml -, oauthlib -, requests -, requests-kerberos -, requests-oauthlib -, six -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + deprecated, + jmespath, + lxml, + oauthlib, + requests, + requests-kerberos, + requests-oauthlib, + six, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -40,13 +41,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "atlassian" - ]; + pythonImportsCheck = [ "atlassian" ]; meta = with lib; { description = "Python Atlassian REST API Wrapper"; diff --git a/pkgs/development/python-modules/atom/default.nix b/pkgs/development/python-modules/atom/default.nix index 519fc3791d79..3e7bb3e990b6 100644 --- a/pkgs/development/python-modules/atom/default.nix +++ b/pkgs/development/python-modules/atom/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, future -, cppy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + future, + cppy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,25 +23,17 @@ buildPythonPackage rec { hash = "sha256-HoUKU6z+6PPBUsvI4earZG9UXN0PrugAxu/F7WUfUe8="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - cppy - ]; + buildInputs = [ cppy ]; preCheck = '' rm -rf atom ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "atom.api" - ]; + pythonImportsCheck = [ "atom.api" ]; meta = with lib; { description = "Memory efficient Python objects"; diff --git a/pkgs/development/python-modules/atomicwrites-homeassistant/default.nix b/pkgs/development/python-modules/atomicwrites-homeassistant/default.nix index b340c0f9e80c..aba94f1bfddc 100644 --- a/pkgs/development/python-modules/atomicwrites-homeassistant/default.nix +++ b/pkgs/development/python-modules/atomicwrites-homeassistant/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: let @@ -18,13 +19,9 @@ buildPythonPackage { hash = "sha256-JWpnIQbxZ0VEUijZZiQLd7VfRqCW0gMFkBpXql0fTC8="; }; - pythonImportsCheck = [ - "atomicwrites" - ]; + pythonImportsCheck = [ "atomicwrites" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Atomic file writes"; diff --git a/pkgs/development/python-modules/atomicwrites/default.nix b/pkgs/development/python-modules/atomicwrites/default.nix index 06ce71504dd5..1779a14148aa 100644 --- a/pkgs/development/python-modules/atomicwrites/default.nix +++ b/pkgs/development/python-modules/atomicwrites/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "atomicwrites"; diff --git a/pkgs/development/python-modules/atomman/default.nix b/pkgs/development/python-modules/atomman/default.nix index fca4cd88e48c..8a04f3e8f9ab 100644 --- a/pkgs/development/python-modules/atomman/default.nix +++ b/pkgs/development/python-modules/atomman/default.nix @@ -1,25 +1,26 @@ -{ lib -, ase -, buildPythonPackage -, cython -, datamodeldict -, fetchFromGitHub -, matplotlib -, numericalunits -, numpy -, pandas -, phonopy -, potentials -, pymatgen -, pytestCheckHook -, pythonOlder -, requests -, scipy -, setuptools -, toolz -, wheel -, xmltodict -, pythonRelaxDepsHook +{ + lib, + ase, + buildPythonPackage, + cython, + datamodeldict, + fetchFromGitHub, + matplotlib, + numericalunits, + numpy, + pandas, + phonopy, + potentials, + pymatgen, + pytestCheckHook, + pythonOlder, + requests, + scipy, + setuptools, + toolz, + wheel, + xmltodict, + pythonRelaxDepsHook, }: buildPythonPackage { @@ -79,9 +80,7 @@ buildPythonPackage { "test_unique_shifts_prototype" # needs network access to download database files ]; - pythonImportsCheck = [ - "atomman" - ]; + pythonImportsCheck = [ "atomman" ]; meta = with lib; { description = "Atomistic Manipulation Toolkit"; diff --git a/pkgs/development/python-modules/atpublic/default.nix b/pkgs/development/python-modules/atpublic/default.nix index 616581ffc6f5..cf752f0a59c5 100644 --- a/pkgs/development/python-modules/atpublic/default.nix +++ b/pkgs/development/python-modules/atpublic/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, hatchling -, sybil -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + hatchling, + sybil, + typing-extensions, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-0cjNkxr3Rh9tGLxgYzg+hlTZ6e8Z1Y7m3AHoUVu/Vd8="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook @@ -42,9 +39,7 @@ buildPythonPackage rec { sed -i '/cov=public/d' pyproject.toml ''; - pythonImportsCheck = [ - "public" - ]; + pythonImportsCheck = [ "public" ]; meta = with lib; { description = "Python decorator and function which populates a module's __all__ and globals"; diff --git a/pkgs/development/python-modules/atsim-potentials/default.nix b/pkgs/development/python-modules/atsim-potentials/default.nix index d391ef74539e..f194c251d5d3 100644 --- a/pkgs/development/python-modules/atsim-potentials/default.nix +++ b/pkgs/development/python-modules/atsim-potentials/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchFromGitHub -, setuptools -, configparser -, pyparsing -, pytestCheckHook -, future -, openpyxl -, wrapt -, scipy -, cexprtk -, deepdiff -, sympy +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchFromGitHub, + setuptools, + configparser, + pyparsing, + pytestCheckHook, + future, + openpyxl, + wrapt, + scipy, + cexprtk, + deepdiff, + sympy, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-G7lNqwEUwAT0f7M2nUTCxpXOAl6FWKlh7tcsvbur1eM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cexprtk diff --git a/pkgs/development/python-modules/attrs/default.nix b/pkgs/development/python-modules/attrs/default.nix index 8e46432b810f..6a9884beca5c 100644 --- a/pkgs/development/python-modules/attrs/default.nix +++ b/pkgs/development/python-modules/attrs/default.nix @@ -1,9 +1,10 @@ -{ lib -, callPackage -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatchling +{ + lib, + callPackage, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatchling, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { substituteAllInPlace pyproject.toml ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; outputs = [ "out" @@ -41,9 +40,7 @@ buildPythonPackage rec { cp -R conftest.py tests $testout ''; - pythonImportsCheck = [ - "attr" - ]; + pythonImportsCheck = [ "attr" ]; # pytest depends on attrs, so we can't do this out-of-the-box. # Instead, we do this as a passthru.tests test. diff --git a/pkgs/development/python-modules/attrs/tests.nix b/pkgs/development/python-modules/attrs/tests.nix index 2614716d71d0..d657ba1ffc5a 100644 --- a/pkgs/development/python-modules/attrs/tests.nix +++ b/pkgs/development/python-modules/attrs/tests.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, pytestCheckHook -, attrs -, hypothesis +{ + buildPythonPackage, + pytestCheckHook, + attrs, + hypothesis, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/aubio/default.nix b/pkgs/development/python-modules/aubio/default.nix index 7ce07795bc5f..f6766bd56a53 100644 --- a/pkgs/development/python-modules/aubio/default.nix +++ b/pkgs/development/python-modules/aubio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, numpy -, pytestCheckHook -, stdenv -, darwin +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + numpy, + pytestCheckHook, + stdenv, + darwin, }: buildPythonPackage rec { @@ -20,19 +21,21 @@ buildPythonPackage rec { hash = "sha256-RvzhB1kQNP0IbAygwH2RBi/kSyuFPAHgsiCATPeMHTo="; }; - buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ Accelerate AudioToolbox CoreVideo CoreGraphics ]); + buildInputs = lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk.frameworks; + [ + Accelerate + AudioToolbox + CoreVideo + CoreGraphics + ] + ); - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - numpy - ]; + dependencies = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "aubio" ]; diff --git a/pkgs/development/python-modules/audible/default.nix b/pkgs/development/python-modules/audible/default.nix index 63b8e605086e..1eb984dcbc16 100644 --- a/pkgs/development/python-modules/audible/default.nix +++ b/pkgs/development/python-modules/audible/default.nix @@ -1,20 +1,21 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage +{ + lib, + fetchFromGitHub, + buildPythonPackage, # build-system -, poetry-core + poetry-core, # dependencies -, beautifulsoup4 -, httpx -, pbkdf2 -, pillow -, pyaes -, rsa + beautifulsoup4, + httpx, + pbkdf2, + pillow, + pyaes, + rsa, # test dependencies -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-qLU8FjJBPKFgjpumPqRiiMBwZi+zW46iEmWM8UerMgs="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pillow @@ -42,9 +41,7 @@ buildPythonPackage rec { rsa ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "audible" ]; diff --git a/pkgs/development/python-modules/audioread/default.nix b/pkgs/development/python-modules/audioread/default.nix index 851839f0a797..fc3bd9b2c43e 100644 --- a/pkgs/development/python-modules/audioread/default.nix +++ b/pkgs/development/python-modules/audioread/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-rFRgpUmMSL3y6OdnQCWDpNzRP0QU0ob0LOQ3nos1Bm0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # No tests, need to disable or py3k breaks doCheck = false; diff --git a/pkgs/development/python-modules/audiotools/default.nix b/pkgs/development/python-modules/audiotools/default.nix index 6d85e2b18483..4bd7594b5fdc 100644 --- a/pkgs/development/python-modules/audiotools/default.nix +++ b/pkgs/development/python-modules/audiotools/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, stdenv -, AudioToolbox -, AudioUnit -, CoreServices +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + stdenv, + AudioToolbox, + AudioUnit, + CoreServices, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/auditok/default.nix b/pkgs/development/python-modules/auditok/default.nix index 2ec68b11157b..1ae8f82ab6fc 100644 --- a/pkgs/development/python-modules/auditok/default.nix +++ b/pkgs/development/python-modules/auditok/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, fetchPypi -, lib -, matplotlib -, numpy -, pyaudio -, pydub -, pythonOlder -, unittestCheckHook +{ + buildPythonPackage, + fetchPypi, + lib, + matplotlib, + numpy, + pyaudio, + pydub, + pythonOlder, + unittestCheckHook, }: buildPythonPackage rec { @@ -22,11 +23,19 @@ buildPythonPackage rec { hash = "sha256-HNsw9VLP7XEgs8E2X6p7ygDM47AwWxMYjptipknFig4="; }; - propagatedBuildInputs = [ matplotlib numpy pyaudio pydub ]; + propagatedBuildInputs = [ + matplotlib + numpy + pyaudio + pydub + ]; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; pythonImportsCheck = [ "auditok" ]; diff --git a/pkgs/development/python-modules/auditwheel/default.nix b/pkgs/development/python-modules/auditwheel/default.nix index 9890a39e460c..6864f6bece83 100644 --- a/pkgs/development/python-modules/auditwheel/default.nix +++ b/pkgs/development/python-modules/auditwheel/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools-scm -, pyelftools -, importlib-metadata -, pretend -, pytestCheckHook -# non-python dependencies -, bzip2 -, gnutar -, patchelf -, unzip +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools-scm, + pyelftools, + importlib-metadata, + pretend, + pytestCheckHook, + # non-python dependencies + bzip2, + gnutar, + patchelf, + unzip, }: buildPythonPackage rec { @@ -26,15 +27,9 @@ buildPythonPackage rec { hash = "sha256-ZCLEq2Qh0j41XJHplGkmzVMrn99G8rX/2vGr/p7inmc="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - pyelftools - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ pyelftools ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ pretend @@ -42,9 +37,7 @@ buildPythonPackage rec { ]; # Integration tests require docker and networking - disabledTestPaths = [ - "tests/integration" - ]; + disabledTestPaths = [ "tests/integration" ]; # Ensure that there are no undeclared deps postCheck = '' @@ -52,7 +45,15 @@ buildPythonPackage rec { ''; makeWrapperArgs = [ - "--prefix" "PATH" ":" (lib.makeBinPath [ bzip2 gnutar patchelf unzip ]) + "--prefix" + "PATH" + ":" + (lib.makeBinPath [ + bzip2 + gnutar + patchelf + unzip + ]) ]; meta = with lib; { @@ -60,9 +61,9 @@ buildPythonPackage rec { description = "Auditing and relabeling cross-distribution Linux wheels"; homepage = "https://github.com/pypa/auditwheel"; license = with licenses; [ - mit # auditwheel and nibabel - bsd2 # from https://github.com/matthew-brett/delocate - bsd3 # from https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py + mit # auditwheel and nibabel + bsd2 # from https://github.com/matthew-brett/delocate + bsd3 # from https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py ]; mainProgram = "auditwheel"; maintainers = with maintainers; [ davhau ]; diff --git a/pkgs/development/python-modules/augeas/default.nix b/pkgs/development/python-modules/augeas/default.nix index 48c5e723bc4c..9da8e4a22dcc 100644 --- a/pkgs/development/python-modules/augeas/default.nix +++ b/pkgs/development/python-modules/augeas/default.nix @@ -1,40 +1,44 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, unittestCheckHook -, pkg-config -, augeas -, cffi -, pkgs # for libxml2 +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + unittestCheckHook, + pkg-config, + augeas, + cffi, + pkgs, # for libxml2 }: buildPythonPackage rec { - pname = "augeas"; - version = "1.2.0"; - format = "setuptools"; + pname = "augeas"; + version = "1.2.0"; + format = "setuptools"; - src = fetchFromGitHub { - owner = "hercules-team"; - repo = "python-augeas"; - rev = "v${version}"; - hash = "sha256-Lq8ckra3sqN38zo1d5JsEq6U5TtLKRmqysoWNwR9J9A="; - }; + src = fetchFromGitHub { + owner = "hercules-team"; + repo = "python-augeas"; + rev = "v${version}"; + hash = "sha256-Lq8ckra3sqN38zo1d5JsEq6U5TtLKRmqysoWNwR9J9A="; + }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ augeas pkgs.libxml2 ]; + buildInputs = [ + augeas + pkgs.libxml2 + ]; - propagatedBuildInputs = [ cffi ]; + propagatedBuildInputs = [ cffi ]; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ "augeas" ]; + pythonImportsCheck = [ "augeas" ]; - meta = with lib; { - changelog = "https://github.com/hercules-team/python-augeas/releases/tag/v${version}"; - description = "Pure python bindings for augeas"; - homepage = "https://github.com/hercules-team/python-augeas"; - license = licenses.lgpl2Plus; - platforms = platforms.unix; - }; + meta = with lib; { + changelog = "https://github.com/hercules-team/python-augeas/releases/tag/v${version}"; + description = "Pure python bindings for augeas"; + homepage = "https://github.com/hercules-team/python-augeas"; + license = licenses.lgpl2Plus; + platforms = platforms.unix; + }; } diff --git a/pkgs/development/python-modules/augmax/default.nix b/pkgs/development/python-modules/augmax/default.nix index 3be4c4713600..ac4d6834f8ba 100644 --- a/pkgs/development/python-modules/augmax/default.nix +++ b/pkgs/development/python-modules/augmax/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, einops -, fetchFromGitHub -, jax -, jaxlib -, lib -, pythonOlder -, setuptools +{ + buildPythonPackage, + einops, + fetchFromGitHub, + jax, + jaxlib, + lib, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-xz6yJiVZUkRcRa2rKZdytfpP+XCk/QI4xtKlNaS9FYo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ einops diff --git a/pkgs/development/python-modules/auroranoaa/default.nix b/pkgs/development/python-modules/auroranoaa/default.nix index f906b4e42bcb..82820fc05f33 100644 --- a/pkgs/development/python-modules/auroranoaa/default.nix +++ b/pkgs/development/python-modules/auroranoaa/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/aurorapy/default.nix b/pkgs/development/python-modules/aurorapy/default.nix index 6ee2be80d3b6..dbfa6a226b9a 100644 --- a/pkgs/development/python-modules/aurorapy/default.nix +++ b/pkgs/development/python-modules/aurorapy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, future -, pyserial -, pytestCheckHook -, pythonOlder -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchFromGitLab, + future, + pyserial, + pytestCheckHook, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-rGwfGq3zdoG9NCGqVN29Q4bWApk5B6CRdsW9ctWgOec="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ future @@ -37,9 +36,7 @@ buildPythonPackage rec { six ]; - pythonImportsCheck = [ - "aurorapy" - ]; + pythonImportsCheck = [ "aurorapy" ]; meta = with lib; { description = "Implementation of the communication protocol for Power-One Aurora inverters"; diff --git a/pkgs/development/python-modules/autarco/default.nix b/pkgs/development/python-modules/autarco/default.nix index 71cf0df61d77..b843f023dc60 100644 --- a/pkgs/development/python-modules/autarco/default.nix +++ b/pkgs/development/python-modules/autarco/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, syrupy -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + syrupy, + yarl, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-IBf6Dw2Yf7m+5bQ72K0kPxGdtpl8JowQ9IO3gWS3Vso="; }; - pythonRelaxDeps = [ - "orjson" - ]; + pythonRelaxDeps = [ "orjson" ]; postPatch = '' # Upstream doesn't set a version for the pyproject.toml @@ -60,9 +59,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "autarco" - ]; + pythonImportsCheck = [ "autarco" ]; meta = with lib; { description = "Module for the Autarco Inverter"; diff --git a/pkgs/development/python-modules/auth0-python/default.nix b/pkgs/development/python-modules/auth0-python/default.nix index 1ae64d53a50c..ae2692cd697f 100644 --- a/pkgs/development/python-modules/auth0-python/default.nix +++ b/pkgs/development/python-modules/auth0-python/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, callee -, cryptography -, fetchFromGitHub -, mock -, poetry-core -, poetry-dynamic-versioning -, pyjwt -, pyopenssl -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, urllib3 +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + callee, + cryptography, + fetchFromGitHub, + mock, + poetry-core, + poetry-dynamic-versioning, + pyjwt, + pyopenssl, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + urllib3, }: buildPythonPackage rec { @@ -54,9 +55,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonRelaxDeps = [ - "cryptography" - ]; + pythonRelaxDeps = [ "cryptography" ]; disabledTests = [ # Tries to ping websites (e.g. google.com) @@ -65,9 +64,7 @@ buildPythonPackage rec { "test_options_are_used_and_override" ]; - pythonImportsCheck = [ - "auth0" - ]; + pythonImportsCheck = [ "auth0" ]; meta = with lib; { description = "Auth0 Python SDK"; diff --git a/pkgs/development/python-modules/authcaptureproxy/default.nix b/pkgs/development/python-modules/authcaptureproxy/default.nix index 7f0159f96bca..5a7ca4f2bbc0 100644 --- a/pkgs/development/python-modules/authcaptureproxy/default.nix +++ b/pkgs/development/python-modules/authcaptureproxy/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, aiohttp -, beautifulsoup4 -, httpx -, multidict -, typer -, yarl + # dependencies + aiohttp, + beautifulsoup4, + httpx, + multidict, + typer, + yarl, -# tests -, pytest-asyncio -, pytestCheckHook + # tests + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-gdu0Ror/epu6huTEpBrqHD62O9uaL6273pKnpqPKskc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -54,9 +53,7 @@ buildPythonPackage rec { "test_return_timer_countdown_refresh_html" ]; - pythonImportsCheck = [ - "authcaptureproxy" - ]; + pythonImportsCheck = [ "authcaptureproxy" ]; meta = with lib; { changelog = "https://github.com/alandtse/auth_capture_proxy/releases/tag/v${version}"; @@ -64,6 +61,9 @@ buildPythonPackage rec { mainProgram = "auth_capture_proxy"; homepage = "https://github.com/alandtse/auth_capture_proxy"; license = licenses.asl20; - maintainers = with maintainers; [ graham33 hexa ]; + maintainers = with maintainers; [ + graham33 + hexa + ]; }; } diff --git a/pkgs/development/python-modules/authheaders/default.nix b/pkgs/development/python-modules/authheaders/default.nix index 3f73af498036..1bd70e81d333 100644 --- a/pkgs/development/python-modules/authheaders/default.nix +++ b/pkgs/development/python-modules/authheaders/default.nix @@ -1,13 +1,14 @@ -{ lib -, authres -, buildPythonPackage -, dkimpy -, dnspython -, fetchFromGitHub -, publicsuffix2 -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + authres, + buildPythonPackage, + dkimpy, + dnspython, + fetchFromGitHub, + publicsuffix2, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-/vxUUSWwysYQzcy2AmkF4f8R59FHRnBfFlPRpfM9e5o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ authres @@ -36,13 +35,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "authheaders" - ]; + pythonImportsCheck = [ "authheaders" ]; disabledTests = [ # Test fails with timeout even if the resolv.conf hack is present diff --git a/pkgs/development/python-modules/authlib/default.nix b/pkgs/development/python-modules/authlib/default.nix index a2c6c2a1b057..cda09f45d17d 100644 --- a/pkgs/development/python-modules/authlib/default.nix +++ b/pkgs/development/python-modules/authlib/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, cachelib -, cryptography -, fetchFromGitHub -, flask -, flask-sqlalchemy -, httpx -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests -, starlette -, werkzeug +{ + lib, + buildPythonPackage, + cachelib, + cryptography, + fetchFromGitHub, + flask, + flask-sqlalchemy, + httpx, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, + starlette, + werkzeug, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { werkzeug ]; - pythonImportsCheck = [ - "authlib" - ]; + pythonImportsCheck = [ "authlib" ]; disabledTestPaths = [ # Django tests require a running instance diff --git a/pkgs/development/python-modules/authres/default.nix b/pkgs/development/python-modules/authres/default.nix index 52c1d138bc6e..3c9a9d367968 100644 --- a/pkgs/development/python-modules/authres/default.nix +++ b/pkgs/development/python-modules/authres/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, python }: +{ + lib, + fetchPypi, + buildPythonPackage, + python, +}: buildPythonPackage rec { pname = "authres"; diff --git a/pkgs/development/python-modules/autobahn/default.nix b/pkgs/development/python-modules/autobahn/default.nix index 238dbd8bba95..1efc211fcc54 100644 --- a/pkgs/development/python-modules/autobahn/default.nix +++ b/pkgs/development/python-modules/autobahn/default.nix @@ -1,50 +1,51 @@ -{ lib -, buildPythonPackage -, fetchPypi -, attrs -, argon2-cffi -, base58 -, cbor2 -, cffi -, click -, cryptography -, ecdsa -, eth-abi -, eth-account -, flatbuffers -, jinja2 -, hkdf -, hyperlink -, mnemonic -, mock -, msgpack -, passlib -, py-ecc -# , py-eth-sig-utils -, py-multihash -, py-ubjson -, pynacl -, pygobject3 -, pyopenssl -, qrcode -, pytest-asyncio_0_21 -, python-snappy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + argon2-cffi, + base58, + cbor2, + cffi, + click, + cryptography, + ecdsa, + eth-abi, + eth-account, + flatbuffers, + jinja2, + hkdf, + hyperlink, + mnemonic, + mock, + msgpack, + passlib, + py-ecc, + # , py-eth-sig-utils + py-multihash, + py-ubjson, + pynacl, + pygobject3, + pyopenssl, + qrcode, + pytest-asyncio_0_21, + python-snappy, + pytestCheckHook, + pythonOlder, # , pytrie -, rlp -, service-identity -, setuptools -, spake2 -, twisted -, txaio -, ujson + rlp, + service-identity, + setuptools, + spake2, + twisted, + txaio, + ujson, # , web3 # , wsaccel # , xbr -, yapf + yapf, # , zlmdb -, zope-interface + zope-interface, }@args: buildPythonPackage rec { @@ -64,9 +65,7 @@ buildPythonPackage rec { --replace-fail "pytest>=2.8.6,<3.3.0" "pytest" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cryptography @@ -75,38 +74,70 @@ buildPythonPackage rec { txaio ]; - nativeCheckInputs = [ - mock - pytest-asyncio_0_21 - pytestCheckHook - ] ++ optional-dependencies.scram - ++ optional-dependencies.serialization - ++ optional-dependencies.xbr; + nativeCheckInputs = + [ + mock + pytest-asyncio_0_21 + pytestCheckHook + ] + ++ optional-dependencies.scram ++ optional-dependencies.serialization ++ optional-dependencies.xbr; preCheck = '' # Run asyncio tests (requires twisted) export USE_ASYNCIO=1 ''; - pytestFlagsArray = [ - "--pyargs autobahn" - ]; + pytestFlagsArray = [ "--pyargs autobahn" ]; - pythonImportsCheck = [ - "autobahn" - ]; + pythonImportsCheck = [ "autobahn" ]; optional-dependencies = rec { all = accelerate ++ compress ++ encryption ++ nvx ++ serialization ++ scram ++ twisted ++ ui ++ xbr; - accelerate = [ /* wsaccel */ ]; + accelerate = [ + # wsaccel + ]; compress = [ python-snappy ]; - encryption = [ pynacl pyopenssl qrcode /* pytrie */ service-identity ]; + encryption = [ + pynacl + pyopenssl + qrcode # pytrie + service-identity + ]; nvx = [ cffi ]; - scram = [ argon2-cffi cffi passlib ]; - serialization = [ cbor2 flatbuffers msgpack ujson py-ubjson ]; - twisted = [ attrs args.twisted zope-interface ]; + scram = [ + argon2-cffi + cffi + passlib + ]; + serialization = [ + cbor2 + flatbuffers + msgpack + ujson + py-ubjson + ]; + twisted = [ + attrs + args.twisted + zope-interface + ]; ui = [ pygobject3 ]; - xbr = [ base58 cbor2 click ecdsa eth-abi jinja2 hkdf mnemonic py-ecc /* py-eth-sig-utils */ py-multihash rlp spake2 twisted /* web3 xbr */ yapf /* zlmdb */ ]; + xbr = [ + base58 + cbor2 + click + ecdsa + eth-abi + jinja2 + hkdf + mnemonic + py-ecc # py-eth-sig-utils + py-multihash + rlp + spake2 + twisted # web3 xbr + yapf # zlmdb + ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/autocommand/default.nix b/pkgs/development/python-modules/autocommand/default.nix index 11ee55d6417d..fd4a0f22d439 100644 --- a/pkgs/development/python-modules/autocommand/default.nix +++ b/pkgs/development/python-modules/autocommand/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,20 +26,14 @@ buildPythonPackage rec { rm setup.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # fails with: SyntaxError: invalid syntax doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "autocommand" - ]; + pythonImportsCheck = [ "autocommand" ]; meta = with lib; { description = "Autocommand turns a python function into a CLI program"; diff --git a/pkgs/development/python-modules/autofaiss/default.nix b/pkgs/development/python-modules/autofaiss/default.nix index af5bbbebbb7d..e5d117e6cc29 100644 --- a/pkgs/development/python-modules/autofaiss/default.nix +++ b/pkgs/development/python-modules/autofaiss/default.nix @@ -1,15 +1,16 @@ -{ buildPythonPackage -, embedding-reader -, faiss -, fetchFromGitHub -, fire -, fsspec -, lib -, numpy -, pyarrow -, pytestCheckHook -, pythonRelaxDepsHook -, pythonOlder +{ + buildPythonPackage, + embedding-reader, + faiss, + fetchFromGitHub, + fire, + fsspec, + lib, + numpy, + pyarrow, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-pey3wrW7CDLMiPPKnmYrcSJqGuy6ecA2SE9m3Jtt6DU="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRemoveDeps = [ # The `dataclasses` packages is a python2-only backport, unnecessary in @@ -56,9 +55,7 @@ buildPythonPackage rec { pyarrow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Attempts to spin up a Spark cluster and talk to it which doesn't work in diff --git a/pkgs/development/python-modules/autoflake/default.nix b/pkgs/development/python-modules/autoflake/default.nix index 1fc68b92f94b..135123760968 100644 --- a/pkgs/development/python-modules/autoflake/default.nix +++ b/pkgs/development/python-modules/autoflake/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, pyflakes -, pytestCheckHook -, pythonOlder -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + pyflakes, + pytestCheckHook, + pythonOlder, + tomli, }: buildPythonPackage rec { pname = "autoflake"; @@ -17,22 +18,13 @@ buildPythonPackage rec { hash = "sha256-yYt13FsKhkWcTwGh0yrH60M47EMXpEaVFf8eaH7NkJ4="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - pyflakes - ] - ++ lib.optional (pythonOlder "3.11") tomli; + propagatedBuildInputs = [ pyflakes ] ++ lib.optional (pythonOlder "3.11") tomli; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "autoflake" - ]; + pythonImportsCheck = [ "autoflake" ]; disabledTests = [ # AssertionError: True is not false diff --git a/pkgs/development/python-modules/autograd-gamma/default.nix b/pkgs/development/python-modules/autograd-gamma/default.nix index a772a0967859..0e38848d6f7d 100644 --- a/pkgs/development/python-modules/autograd-gamma/default.nix +++ b/pkgs/development/python-modules/autograd-gamma/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, autograd, scipy }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + autograd, + scipy, +}: buildPythonPackage rec { pname = "autograd-gamma"; diff --git a/pkgs/development/python-modules/autograd/default.nix b/pkgs/development/python-modules/autograd/default.nix index 26f636e85bf0..2b7569d8f745 100644 --- a/pkgs/development/python-modules/autograd/default.nix +++ b/pkgs/development/python-modules/autograd/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, future -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + future, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # fixed, enable testing. See: https://github.com/HIPS/autograd/issues/404 doCheck = false; - pythonImportsCheck = [ - "autograd" - ]; + pythonImportsCheck = [ "autograd" ]; meta = with lib; { homepage = "https://github.com/HIPS/autograd"; diff --git a/pkgs/development/python-modules/autoit-ripper/default.nix b/pkgs/development/python-modules/autoit-ripper/default.nix index 3a4f3f059fc9..47d54b20820b 100644 --- a/pkgs/development/python-modules/autoit-ripper/default.nix +++ b/pkgs/development/python-modules/autoit-ripper/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pefile -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pefile, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-+BHWDkeVewoRUgaHln5TyoajpCvJiowCiC2dFYyp1MA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pefile - ]; + propagatedBuildInputs = [ pefile ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "autoit_ripper" - ]; + pythonImportsCheck = [ "autoit_ripper" ]; meta = with lib; { description = "Python module to extract AutoIt scripts embedded in PE binaries"; diff --git a/pkgs/development/python-modules/autologging/default.nix b/pkgs/development/python-modules/autologging/default.nix index 46adfc6195ac..4d58b3d8ab53 100644 --- a/pkgs/development/python-modules/autologging/default.nix +++ b/pkgs/development/python-modules/autologging/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "autologging"; diff --git a/pkgs/development/python-modules/automat/default.nix b/pkgs/development/python-modules/automat/default.nix index e69a30257f1c..af707983b595 100644 --- a/pkgs/development/python-modules/automat/default.nix +++ b/pkgs/development/python-modules/automat/default.nix @@ -1,50 +1,54 @@ -{ lib -, buildPythonPackage -, fetchPypi -, attrs -, pytest-benchmark -, pytestCheckHook -, setuptools-scm -, six +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + pytest-benchmark, + pytestCheckHook, + setuptools-scm, + six, }: -let automat = buildPythonPackage rec { - version = "22.10.0"; - format = "setuptools"; - pname = "automat"; +let + automat = buildPythonPackage rec { + version = "22.10.0"; + format = "setuptools"; + pname = "automat"; - src = fetchPypi { - pname = "Automat"; - inherit version; - hash = "sha256-5WvrhO2tGdzBHTDo2biV913ute9elrhKRnBms7hLsE4="; + src = fetchPypi { + pname = "Automat"; + inherit version; + hash = "sha256-5WvrhO2tGdzBHTDo2biV913ute9elrhKRnBms7hLsE4="; + }; + + nativeBuildInputs = [ setuptools-scm ]; + + propagatedBuildInputs = [ + six + attrs + ]; + + nativeCheckInputs = [ + pytest-benchmark + pytestCheckHook + ]; + + # escape infinite recursion with twisted + doCheck = false; + + passthru.tests = { + check = automat.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + meta = with lib; { + homepage = "https://github.com/glyph/Automat"; + description = "Self-service finite-state machines for the programmer on the go"; + mainProgram = "automat-visualize"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; }; - - nativeBuildInputs = [ - setuptools-scm - ]; - - propagatedBuildInputs = [ - six - attrs - ]; - - nativeCheckInputs = [ - pytest-benchmark - pytestCheckHook - ]; - - # escape infinite recursion with twisted - doCheck = false; - - passthru.tests = { - check = automat.overridePythonAttrs (_: { doCheck = true; }); - }; - - meta = with lib; { - homepage = "https://github.com/glyph/Automat"; - description = "Self-service finite-state machines for the programmer on the go"; - mainProgram = "automat-visualize"; - license = licenses.mit; - maintainers = with maintainers; [ ]; - }; -}; in automat +in +automat diff --git a/pkgs/development/python-modules/automx2/default.nix b/pkgs/development/python-modules/automx2/default.nix index a0b4f78e6754..05ddb4c521a9 100644 --- a/pkgs/development/python-modules/automx2/default.nix +++ b/pkgs/development/python-modules/automx2/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, flask-migrate -, ldap3 -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + flask-migrate, + ldap3, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-s/kd9A/d3SPMZC9+B4DdcXVi77WLH/SBwXIdaKHUj34="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask @@ -33,13 +32,9 @@ buildPythonPackage rec { ldap3 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "automx2" - ]; + pythonImportsCheck = [ "automx2" ]; meta = with lib; { description = "Email client configuration made easy"; diff --git a/pkgs/development/python-modules/autopage/default.nix b/pkgs/development/python-modules/autopage/default.nix index c8fbd6b9473d..99ed7cc7c02d 100644 --- a/pkgs/development/python-modules/autopage/default.nix +++ b/pkgs/development/python-modules/autopage/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, setuptools }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, +}: buildPythonPackage rec { pname = "autopage"; @@ -11,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-gmmW10xaqfS2kWGVVHMSrGOEusOBC4UXBj8pMkgle3I="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "autopage" ]; diff --git a/pkgs/development/python-modules/autopep8/default.nix b/pkgs/development/python-modules/autopep8/default.nix index 34dd0baa4c99..316d9edc1a1d 100644 --- a/pkgs/development/python-modules/autopep8/default.nix +++ b/pkgs/development/python-modules/autopep8/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, glibcLocales -, pycodestyle -, pytestCheckHook -, pythonOlder -, setuptools -, tomli +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + glibcLocales, + pycodestyle, + pytestCheckHook, + pythonOlder, + setuptools, + tomli, }: buildPythonPackage rec { @@ -24,15 +25,9 @@ buildPythonPackage rec { hash = "sha256-psGl9rXxTQGHyXf1VskJ/I/goVH5hRRP5bUXQdaT/8M="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - pycodestyle - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ pycodestyle ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ glibcLocales diff --git a/pkgs/development/python-modules/autoslot/default.nix b/pkgs/development/python-modules/autoslot/default.nix index c234b35e0e58..55059da486a0 100644 --- a/pkgs/development/python-modules/autoslot/default.nix +++ b/pkgs/development/python-modules/autoslot/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { --replace 'build-backend = "flit.buildapi"' 'build-backend = "flit_core.buildapi"' ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "autoslot" - ]; + pythonImportsCheck = [ "autoslot" ]; meta = with lib; { description = "Automatic __slots__ for your Python classes"; diff --git a/pkgs/development/python-modules/av/default.nix b/pkgs/development/python-modules/av/default.nix index 7d2f6c14a7ee..c126a8ab1fc4 100644 --- a/pkgs/development/python-modules/av/default.nix +++ b/pkgs/development/python-modules/av/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, cython -, fetchFromGitHub -, fetchpatch -, ffmpeg_5-headless -, numpy -, pillow -, pkg-config -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + cython, + fetchFromGitHub, + fetchpatch, + ffmpeg_5-headless, + numpy, + pillow, + pkg-config, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - ffmpeg_5-headless - ]; + buildInputs = [ ffmpeg_5-headless ]; preCheck = '' # ensure we import the built version @@ -57,55 +56,57 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # urlopen fails during DNS resolution - "test_writing_to_custom_io" - "test_decode_close_then_use" - # Tests that want to download FATE data, https://github.com/PyAV-Org/PyAV/issues/955 - "test_vobsub" - "test_transcode" - "test_stream_tuples" - "test_stream_seek" - "test_stream_probing" - "test_seek_start" - "test_seek_middle" - "test_seek_int64" - "test_seek_float" - "test_seek_end" - "test_roundtrip" - "test_reading_from_write_readonl" - "test_reading_from_pipe_readonly" - "test_reading_from_file" - "test_reading_from_buffer" - "test_reading_from_buffer_no_see" - "test_parse" - "test_movtext" - "test_encoding_xvid" - "test_encoding_tiff" - "test_encoding_png" - "test_encoding_pcm_s24le" - "test_encoding_mpeg4" - "test_encoding_mpeg1video" - "test_encoding_mp2" - "test_encoding_mjpeg" - "test_encoding_h264" - "test_encoding_dvvideo" - "test_encoding_dnxhd" - "test_encoding_aac" - "test_decoded_video_frame_count" - "test_decoded_time_base" - "test_decoded_motion_vectors" - "test_decode_half" - "test_decode_audio_sample_count" - "test_data" - "test_container_probing" - "test_codec_tag" - "test_selection" - ] ++ lib.optionals (stdenv.isDarwin) [ - # Segmentation Faults - "test_encoding_with_pts" - "test_bayer_write" - ]; + disabledTests = + [ + # urlopen fails during DNS resolution + "test_writing_to_custom_io" + "test_decode_close_then_use" + # Tests that want to download FATE data, https://github.com/PyAV-Org/PyAV/issues/955 + "test_vobsub" + "test_transcode" + "test_stream_tuples" + "test_stream_seek" + "test_stream_probing" + "test_seek_start" + "test_seek_middle" + "test_seek_int64" + "test_seek_float" + "test_seek_end" + "test_roundtrip" + "test_reading_from_write_readonl" + "test_reading_from_pipe_readonly" + "test_reading_from_file" + "test_reading_from_buffer" + "test_reading_from_buffer_no_see" + "test_parse" + "test_movtext" + "test_encoding_xvid" + "test_encoding_tiff" + "test_encoding_png" + "test_encoding_pcm_s24le" + "test_encoding_mpeg4" + "test_encoding_mpeg1video" + "test_encoding_mp2" + "test_encoding_mjpeg" + "test_encoding_h264" + "test_encoding_dvvideo" + "test_encoding_dnxhd" + "test_encoding_aac" + "test_decoded_video_frame_count" + "test_decoded_time_base" + "test_decoded_motion_vectors" + "test_decode_half" + "test_decode_audio_sample_count" + "test_data" + "test_container_probing" + "test_codec_tag" + "test_selection" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # Segmentation Faults + "test_encoding_with_pts" + "test_bayer_write" + ]; disabledTestPaths = [ # urlopen fails during DNS resolution diff --git a/pkgs/development/python-modules/avea/default.nix b/pkgs/development/python-modules/avea/default.nix index 01440a0ff9ac..202d6e7b7742 100644 --- a/pkgs/development/python-modules/avea/default.nix +++ b/pkgs/development/python-modules/avea/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, bluepy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + bluepy, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "1dirf0zdf4hb941w1dvh97vsvcy4h3w9r8jwdgr1ggmhdf9kfx4v"; }; - propagatedBuildInputs = [ - bluepy - ]; + propagatedBuildInputs = [ bluepy ]; # no tests are present doCheck = false; diff --git a/pkgs/development/python-modules/avidtools/default.nix b/pkgs/development/python-modules/avidtools/default.nix index bcb1ba01c819..3b58583c4fd2 100644 --- a/pkgs/development/python-modules/avidtools/default.nix +++ b/pkgs/development/python-modules/avidtools/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, datetime -, fetchPypi -, nvdlib -, pydantic -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + datetime, + fetchPypi, + nvdlib, + pydantic, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sed -i "/'typing'/d" setup.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ datetime @@ -39,9 +38,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "avidtools" - ]; + pythonImportsCheck = [ "avidtools" ]; meta = with lib; { description = "Developer tools for AVID"; diff --git a/pkgs/development/python-modules/avion/default.nix b/pkgs/development/python-modules/avion/default.nix index 8bb0f339cd48..d4b4a72148d9 100644 --- a/pkgs/development/python-modules/avion/default.nix +++ b/pkgs/development/python-modules/avion/default.nix @@ -1,11 +1,12 @@ -{ lib -, bluepy -, buildPythonPackage -, csrmesh -, fetchPypi -, pycryptodome -, pythonOlder -, requests +{ + lib, + bluepy, + buildPythonPackage, + csrmesh, + fetchPypi, + pycryptodome, + pythonOlder, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/avro-python3/default.nix b/pkgs/development/python-modules/avro-python3/default.nix index 114ff98326f8..921803ce1351 100644 --- a/pkgs/development/python-modules/avro-python3/default.nix +++ b/pkgs/development/python-modules/avro-python3/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, pycodestyle, isort }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pycodestyle, + isort, +}: buildPythonPackage rec { pname = "avro-python3"; @@ -11,8 +18,11 @@ buildPythonPackage rec { sha256 = "3b63f24e6b04368c3e4a6f923f484be0230d821aad65ac36108edbff29e9aaab"; }; - buildInputs = [ pycodestyle isort ]; - doCheck = false; # No such file or directory: './run_tests.py + buildInputs = [ + pycodestyle + isort + ]; + doCheck = false; # No such file or directory: './run_tests.py meta = with lib; { description = "A serialization and RPC framework"; @@ -20,6 +30,9 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/avro-python3/"; license = licenses.asl20; - maintainers = [ maintainers.shlevy maintainers.timma ]; + maintainers = [ + maintainers.shlevy + maintainers.timma + ]; }; } diff --git a/pkgs/development/python-modules/avro/default.nix b/pkgs/development/python-modules/avro/default.nix index 4b1f85e7d203..41c0e90ae939 100644 --- a/pkgs/development/python-modules/avro/default.nix +++ b/pkgs/development/python-modules/avro/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, setuptools -, fetchPypi -, typing-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + setuptools, + fetchPypi, + typing-extensions, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { --replace-fail 'distutils' 'setuptools._distutils' ''; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Requires network access @@ -44,9 +39,7 @@ buildPythonPackage rec { "test_schema_compatibility_type_mismatch" ]; - pythonImportsCheck = [ - "avro" - ]; + pythonImportsCheck = [ "avro" ]; meta = with lib; { description = "Python serialization and RPC framework"; diff --git a/pkgs/development/python-modules/avro3k/default.nix b/pkgs/development/python-modules/avro3k/default.nix index 43a61d6d0220..9b3ac0359f8a 100644 --- a/pkgs/development/python-modules/avro3k/default.nix +++ b/pkgs/development/python-modules/avro3k/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, +}: buildPythonPackage rec { pname = "avro3k"; @@ -17,7 +22,7 @@ buildPythonPackage rec { --replace "1.7.7-SNAPSHOT" "1.7.7" ''; - doCheck = false; # No such file or directory: './run_tests.py + doCheck = false; # No such file or directory: './run_tests.py meta = with lib; { description = "A serialization and RPC framework"; diff --git a/pkgs/development/python-modules/aw-client/default.nix b/pkgs/development/python-modules/aw-client/default.nix index c08ea790059c..42c51ed2f806 100644 --- a/pkgs/development/python-modules/aw-client/default.nix +++ b/pkgs/development/python-modules/aw-client/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, aw-core -, requests -, persist-queue -, click -, tabulate -, typing-extensions -, pytestCheckHook -, gitUpdater +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + aw-core, + requests, + persist-queue, + click, + tabulate, + typing-extensions, + pytestCheckHook, + gitUpdater, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { disabled = pythonOlder "3.8"; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aw-core @@ -42,9 +41,7 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Only run this test, the others are integration tests that require # an instance of aw-server running in order to function. @@ -57,9 +54,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "aw_client" ]; - passthru.updateScript = gitUpdater { - rev-prefix = "v"; - }; + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; meta = with lib; { description = "Client library for ActivityWatch"; diff --git a/pkgs/development/python-modules/aw-core/default.nix b/pkgs/development/python-modules/aw-core/default.nix index 290c2650a015..e7410409c4be 100644 --- a/pkgs/development/python-modules/aw-core/default.nix +++ b/pkgs/development/python-modules/aw-core/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, poetry-core -, jsonschema -, peewee -, platformdirs -, iso8601 -, rfc3339-validator -, strict-rfc3339 -, tomlkit -, deprecation -, timeslot -, pytestCheckHook -, gitUpdater +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + poetry-core, + jsonschema, + peewee, + platformdirs, + iso8601, + rfc3339-validator, + strict-rfc3339, + tomlkit, + deprecation, + timeslot, + pytestCheckHook, + gitUpdater, }: buildPythonPackage rec { @@ -55,9 +56,7 @@ buildPythonPackage rec { "iso8601" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # Fake home folder for tests that write to $HOME @@ -66,9 +65,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "aw_core" ]; - passthru.updateScript = gitUpdater { - rev-prefix = "v"; - }; + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; meta = with lib; { description = "Core library for ActivityWatch"; diff --git a/pkgs/development/python-modules/awacs/default.nix b/pkgs/development/python-modules/awacs/default.nix index 18c5944b06cb..efb134be6787 100644 --- a/pkgs/development/python-modules/awacs/default.nix +++ b/pkgs/development/python-modules/awacs/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, python -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + python, + typing-extensions, }: buildPythonPackage rec { @@ -18,17 +19,13 @@ buildPythonPackage rec { hash = "sha256-sNo1auVjdOqHLGzbAJRrsi6c2BfD861rAIAZ46RdgEA="; }; - propagatedBuildInputs = lib.lists.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = lib.lists.optionals (pythonOlder "3.8") [ typing-extensions ]; checkPhase = '' ${python.interpreter} -m unittest discover ''; - pythonImportsCheck = [ - "awacs" - ]; + pythonImportsCheck = [ "awacs" ]; meta = with lib; { description = "AWS Access Policy Language creation library"; diff --git a/pkgs/development/python-modules/awesome-slugify/default.nix b/pkgs/development/python-modules/awesome-slugify/default.nix index cd1717a96b4d..1b43d389ee75 100644 --- a/pkgs/development/python-modules/awesome-slugify/default.nix +++ b/pkgs/development/python-modules/awesome-slugify/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, unidecode, regex, unittestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + unidecode, + regex, + unittestCheckHook, +}: buildPythonPackage rec { pname = "awesome-slugify"; @@ -19,7 +26,10 @@ buildPythonPackage rec { ./slugify_filename_test.patch # fixes broken test by new unidecode ]; - propagatedBuildInputs = [ unidecode regex ]; + propagatedBuildInputs = [ + unidecode + regex + ]; nativeCheckInputs = [ unittestCheckHook ]; diff --git a/pkgs/development/python-modules/awesomeversion/default.nix b/pkgs/development/python-modules/awesomeversion/default.nix index f728bbb56209..9ffea48aa93e 100644 --- a/pkgs/development/python-modules/awesomeversion/default.nix +++ b/pkgs/development/python-modules/awesomeversion/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pytest-snapshot -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pytest-snapshot, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { --replace-fail 'version = "0"' 'version = "${version}"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - pythonImportsCheck = [ - "awesomeversion" - ]; + pythonImportsCheck = [ "awesomeversion" ]; nativeCheckInputs = [ pytest-snapshot diff --git a/pkgs/development/python-modules/awkward-cpp/default.nix b/pkgs/development/python-modules/awkward-cpp/default.nix index e7d43e5cfae3..e7a85e47a9a7 100644 --- a/pkgs/development/python-modules/awkward-cpp/default.nix +++ b/pkgs/development/python-modules/awkward-cpp/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, cmake -, ninja -, pybind11 -, scikit-build-core -, numpy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + cmake, + ninja, + pybind11, + scikit-build-core, + numpy, }: buildPythonPackage rec { @@ -28,15 +29,11 @@ buildPythonPackage rec { scikit-build-core ] ++ scikit-build-core.optional-dependencies.pyproject; - dependencies = [ - numpy - ]; + dependencies = [ numpy ]; dontUseCmakeConfigure = true; - pythonImportsCheck = [ - "awkward_cpp" - ]; + pythonImportsCheck = [ "awkward_cpp" ]; meta = with lib; { description = "CPU kernels and compiled extensions for Awkward Array"; diff --git a/pkgs/development/python-modules/awkward/default.nix b/pkgs/development/python-modules/awkward/default.nix index 31e92178427a..d0d028be234a 100644 --- a/pkgs/development/python-modules/awkward/default.nix +++ b/pkgs/development/python-modules/awkward/default.nix @@ -1,25 +1,26 @@ -{ lib -, fsspec -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatch-fancy-pypi-readme -, hatchling -, awkward-cpp -, importlib-metadata -, numpy -, packaging -, typing-extensions -, jax -, jaxlib -, numba -, setuptools -, numexpr -, pandas -, pyarrow -, pytest-xdist -, pytestCheckHook +{ + lib, + fsspec, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatch-fancy-pypi-readme, + hatchling, + awkward-cpp, + importlib-metadata, + numpy, + packaging, + typing-extensions, + jax, + jaxlib, + numba, + setuptools, + numexpr, + pandas, + pyarrow, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,44 +42,43 @@ buildPythonPackage rec { hatchling ]; - dependencies = [ - awkward-cpp - fsspec - importlib-metadata - numpy - packaging - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ] ++ lib.optionals (pythonOlder "3.12") [ - importlib-metadata - ]; + dependencies = + [ + awkward-cpp + fsspec + importlib-metadata + numpy + packaging + ] + ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ] + ++ lib.optionals (pythonOlder "3.12") [ importlib-metadata ]; dontUseCmakeConfigure = true; pythonImportsCheck = [ "awkward" ]; - nativeCheckInputs = [ - fsspec - numba - setuptools - numexpr - pandas - pyarrow - pytest-xdist - pytestCheckHook - ] ++ lib.optionals (!stdenv.isDarwin) [ - # no support for darwin - jax - jaxlib - ]; + nativeCheckInputs = + [ + fsspec + numba + setuptools + numexpr + pandas + pyarrow + pytest-xdist + pytestCheckHook + ] + ++ lib.optionals (!stdenv.isDarwin) [ + # no support for darwin + jax + jaxlib + ]; # The following tests have been disabled because they need to be run on a GPU platform. disabledTestPaths = [ "tests-cuda" - # Disable tests dependending on jax on darwin - ] ++ lib.optionals stdenv.isDarwin [ - "tests/test_2603_custom_behaviors_with_jax.py" - ]; + # Disable tests dependending on jax on darwin + ] ++ lib.optionals stdenv.isDarwin [ "tests/test_2603_custom_behaviors_with_jax.py" ]; meta = with lib; { description = "Manipulate JSON-like data with NumPy-like idioms"; diff --git a/pkgs/development/python-modules/aws-adfs/default.nix b/pkgs/development/python-modules/aws-adfs/default.nix index 0c67f2ce4bce..30198118f22b 100644 --- a/pkgs/development/python-modules/aws-adfs/default.nix +++ b/pkgs/development/python-modules/aws-adfs/default.nix @@ -1,20 +1,21 @@ -{ lib -, boto3 -, botocore -, buildPythonPackage -, click -, configparser -, fetchFromGitHub -, fido2 -, lxml -, poetry-core -, pyopenssl -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, requests-kerberos -, toml +{ + lib, + boto3, + botocore, + buildPythonPackage, + click, + configparser, + fetchFromGitHub, + fido2, + lxml, + poetry-core, + pyopenssl, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + requests-kerberos, + toml, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "configparser" - ]; + pythonRelaxDeps = [ "configparser" ]; propagatedBuildInputs = [ boto3 @@ -61,9 +60,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d); ''; - pythonImportsCheck = [ - "aws_adfs" - ]; + pythonImportsCheck = [ "aws_adfs" ]; meta = with lib; { description = "Command line tool to ease AWS CLI authentication against ADFS"; diff --git a/pkgs/development/python-modules/aws-encryption-sdk/default.nix b/pkgs/development/python-modules/aws-encryption-sdk/default.nix index 13f8d29ca913..2094ab1e3c4d 100644 --- a/pkgs/development/python-modules/aws-encryption-sdk/default.nix +++ b/pkgs/development/python-modules/aws-encryption-sdk/default.nix @@ -1,15 +1,16 @@ -{ lib -, attrs -, boto3 -, buildPythonPackage -, cryptography -, fetchPypi -, mock -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools -, wrapt +{ + lib, + attrs, + boto3, + buildPythonPackage, + cryptography, + fetchPypi, + mock, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, + wrapt, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-QwT8+M4qo/qYsaz/ejvzzQUowynAxDe1Xg9Fa79iNH4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs @@ -52,9 +51,7 @@ buildPythonPackage rec { "test_happy_version" ]; - pythonImportsCheck = [ - "aws_encryption_sdk" - ]; + pythonImportsCheck = [ "aws_encryption_sdk" ]; meta = with lib; { description = "Python implementation of the AWS Encryption SDK"; diff --git a/pkgs/development/python-modules/aws-lambda-builders/default.nix b/pkgs/development/python-modules/aws-lambda-builders/default.nix index 561942aa79ce..4ef304c6c2a1 100644 --- a/pkgs/development/python-modules/aws-lambda-builders/default.nix +++ b/pkgs/development/python-modules/aws-lambda-builders/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, parameterized -, pip -, pyelftools -, pytestCheckHook -, pythonOlder -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + parameterized, + pip, + pyelftools, + pytestCheckHook, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { --replace-fail "version=read_version()," 'version="${version}",' ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - six - ]; + dependencies = [ six ]; nativeCheckInputs = [ mock @@ -73,9 +70,7 @@ buildPythonPackage rec { "tests/integration/workflows/dotnet_clipackage/test_dotnet.py" ]; - pythonImportsCheck = [ - "aws_lambda_builders" - ]; + pythonImportsCheck = [ "aws_lambda_builders" ]; meta = with lib; { description = "Tool to compile, build and package AWS Lambda functions"; diff --git a/pkgs/development/python-modules/aws-sam-translator/default.nix b/pkgs/development/python-modules/aws-sam-translator/default.nix index 872adf822768..005c65b91c10 100644 --- a/pkgs/development/python-modules/aws-sam-translator/default.nix +++ b/pkgs/development/python-modules/aws-sam-translator/default.nix @@ -1,17 +1,18 @@ -{ lib -, boto3 -, buildPythonPackage -, fetchFromGitHub -, jsonschema -, parameterized -, pydantic -, pytest-env -, pytest-rerunfailures -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pyyaml -, typing-extensions +{ + lib, + boto3, + buildPythonPackage, + fetchFromGitHub, + jsonschema, + parameterized, + pydantic, + pytest-env, + pytest-rerunfailures, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pyyaml, + typing-extensions, }: buildPythonPackage rec { @@ -80,9 +81,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "samtranslator" - ]; + pythonImportsCheck = [ "samtranslator" ]; meta = with lib; { description = "Python library to transform SAM templates into AWS CloudFormation templates"; diff --git a/pkgs/development/python-modules/aws-secretsmanager-caching/default.nix b/pkgs/development/python-modules/aws-secretsmanager-caching/default.nix index 46de183c1d42..6427a1417ec2 100644 --- a/pkgs/development/python-modules/aws-secretsmanager-caching/default.nix +++ b/pkgs/development/python-modules/aws-secretsmanager-caching/default.nix @@ -1,12 +1,13 @@ -{ lib -, botocore -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + botocore, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -32,18 +33,14 @@ buildPythonPackage rec { --replace-fail "'pytest-runner'," "" ''; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ botocore - setuptools # Needs pkg_resources at runtime. + setuptools # Needs pkg_resources at runtime. ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Integration tests require networking. @@ -65,9 +62,7 @@ buildPythonPackage rec { "test_valid_json" ]; - pythonImportsCheck = [ - "aws_secretsmanager_caching" - ]; + pythonImportsCheck = [ "aws_secretsmanager_caching" ]; meta = with lib; { description = "Client-side AWS secrets manager caching library"; diff --git a/pkgs/development/python-modules/aws-xray-sdk/default.nix b/pkgs/development/python-modules/aws-xray-sdk/default.nix index 43d59437330b..9ad75c36d59f 100644 --- a/pkgs/development/python-modules/aws-xray-sdk/default.nix +++ b/pkgs/development/python-modules/aws-xray-sdk/default.nix @@ -1,23 +1,24 @@ -{ lib -, aiohttp -, botocore -, bottle -, buildPythonPackage -, django -, fetchFromGitHub -, httpx -, importlib-metadata -, jsonpickle -, pymysql -, pytest-asyncio -, pynamodb -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, sqlalchemy -, webtest -, wrapt +{ + lib, + aiohttp, + botocore, + bottle, + buildPythonPackage, + django, + fetchFromGitHub, + httpx, + importlib-metadata, + jsonpickle, + pymysql, + pytest-asyncio, + pynamodb, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + sqlalchemy, + webtest, + wrapt, }: buildPythonPackage rec { @@ -34,18 +35,14 @@ buildPythonPackage rec { hash = "sha256-KhYYzeOteQxS1ltEUbjsDriHXO0Kom9YiCvVhSNvXVQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ botocore jsonpickle requests wrapt - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ aiohttp @@ -68,9 +65,7 @@ buildPythonPackage rec { "tests/test_patcher.py" ]; - pythonImportsCheck = [ - "aws_xray_sdk" - ]; + pythonImportsCheck = [ "aws_xray_sdk" ]; meta = with lib; { description = "AWS X-Ray SDK for the Python programming language"; diff --git a/pkgs/development/python-modules/awscrt/default.nix b/pkgs/development/python-modules/awscrt/default.nix index d5d0cb589171..05daf72893df 100644 --- a/pkgs/development/python-modules/awscrt/default.nix +++ b/pkgs/development/python-modules/awscrt/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cmake -, perl -, stdenv -, gcc10 -, CoreFoundation -, Security -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + cmake, + perl, + stdenv, + gcc10, + CoreFoundation, + Security, + pythonOlder, }: buildPythonPackage rec { @@ -28,18 +29,16 @@ buildPythonPackage rec { ]; # gcc <10 is not supported, LLVM on darwin is just fine - nativeBuildInputs = [ - cmake - ] ++ lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [ - gcc10 - perl - ]; + nativeBuildInputs = + [ cmake ] + ++ lib.optionals (!stdenv.isDarwin && stdenv.isAarch64) [ + gcc10 + perl + ]; dontUseCmakeConfigure = true; - pythonImportsCheck = [ - "awscrt" - ]; + pythonImportsCheck = [ "awscrt" ]; # Unable to import test module # https://github.com/awslabs/aws-crt-python/issues/281 diff --git a/pkgs/development/python-modules/awsiotpythonsdk/default.nix b/pkgs/development/python-modules/awsiotpythonsdk/default.nix index 20da74babff2..3fd9258df22c 100644 --- a/pkgs/development/python-modules/awsiotpythonsdk/default.nix +++ b/pkgs/development/python-modules/awsiotpythonsdk/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-TUNIWGal7NQy2qmHVTiw6eX4t/Yt3NnM3HHztBwMfoM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "AWSIoTPythonSDK" - ]; + pythonImportsCheck = [ "AWSIoTPythonSDK" ]; meta = with lib; { description = "Python SDK for connecting to AWS IoT"; diff --git a/pkgs/development/python-modules/awsipranges/default.nix b/pkgs/development/python-modules/awsipranges/default.nix index 036639c3cdb7..c3b74b1feca8 100644 --- a/pkgs/development/python-modules/awsipranges/default.nix +++ b/pkgs/development/python-modules/awsipranges/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyopenssl -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyopenssl, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-ve1+0zkDDUGswtQoXhfESMcBzoNgUutxEhz43HXL4H8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pyopenssl pytestCheckHook ]; - pythonImportsCheck = [ - "awsipranges" - ]; + pythonImportsCheck = [ "awsipranges" ]; disabledTestPaths = [ # Tests require network access diff --git a/pkgs/development/python-modules/awslambdaric/default.nix b/pkgs/development/python-modules/awslambdaric/default.nix index 75e8897a7144..7defc559cce0 100644 --- a/pkgs/development/python-modules/awslambdaric/default.nix +++ b/pkgs/development/python-modules/awslambdaric/default.nix @@ -1,18 +1,19 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, isPy27 -, pytestCheckHook -, autoconf271 -, automake -, cmake -, gcc -, libtool -, perl -, setuptools -, simplejson +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + isPy27, + pytestCheckHook, + autoconf271, + automake, + cmake, + gcc, + libtool, + perl, + setuptools, + simplejson, }: buildPythonPackage rec { @@ -44,7 +45,14 @@ buildPythonPackage rec { propagatedBuildInputs = [ simplejson ]; - nativeBuildInputs = [ autoconf271 automake cmake libtool perl setuptools ]; + nativeBuildInputs = [ + autoconf271 + automake + cmake + libtool + perl + setuptools + ]; buildInputs = [ gcc ]; @@ -57,7 +65,10 @@ buildPythonPackage rec { "test_handle_event_request_fault_exception_logging_syntax_error" ]; - pythonImportsCheck = [ "awslambdaric" "runtime_client" ]; + pythonImportsCheck = [ + "awslambdaric" + "runtime_client" + ]; meta = with lib; { broken = (stdenv.isLinux && stdenv.isAarch64); diff --git a/pkgs/development/python-modules/awswrangler/default.nix b/pkgs/development/python-modules/awswrangler/default.nix index b222c5703cd4..a9ac6a814c60 100644 --- a/pkgs/development/python-modules/awswrangler/default.nix +++ b/pkgs/development/python-modules/awswrangler/default.nix @@ -41,13 +41,9 @@ buildPythonPackage rec { pythonRelaxDeps = [ "packaging" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ boto3 @@ -75,9 +71,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "awswrangler" - ]; + pythonImportsCheck = [ "awswrangler" ]; pytestFlagsArray = [ # Subset of tests that run in upstream CI (many others require credentials) diff --git a/pkgs/development/python-modules/ax/default.nix b/pkgs/development/python-modules/ax/default.nix index 91da12fc1f73..ac6f96e48f2a 100644 --- a/pkgs/development/python-modules/ax/default.nix +++ b/pkgs/development/python-modules/ax/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, botorch -, ipywidgets -, jinja2 -, pandas -, plotly -, setuptools -, setuptools-scm -, typeguard -, wheel -, hypothesis -, mercurial -, pyfakefs -, pytestCheckHook -, yappi -, pyre-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + botorch, + ipywidgets, + jinja2, + pandas, + plotly, + setuptools, + setuptools-scm, + typeguard, + wheel, + hypothesis, + mercurial, + pyfakefs, + pytestCheckHook, + yappi, + pyre-extensions, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/axisregistry/default.nix b/pkgs/development/python-modules/axisregistry/default.nix index 510b87474d9a..9b509c2adca2 100644 --- a/pkgs/development/python-modules/axisregistry/default.nix +++ b/pkgs/development/python-modules/axisregistry/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fonttools -, protobuf -, pythonRelaxDepsHook -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, + protobuf, + pythonRelaxDepsHook, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { ]; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Relax the dependency on protobuf 3. Other packages in the Google Fonts # ecosystem have begun upgrading from protobuf 3 to protobuf 4, diff --git a/pkgs/development/python-modules/azure-applicationinsights/default.nix b/pkgs/development/python-modules/azure-applicationinsights/default.nix index 3292f0066a96..27e6275ab542 100644 --- a/pkgs/development/python-modules/azure-applicationinsights/default.nix +++ b/pkgs/development/python-modules/azure-applicationinsights/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, msrest +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + msrest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-batch/default.nix b/pkgs/development/python-modules/azure-batch/default.nix index b0e27ef337cb..3caa3c69de87 100644 --- a/pkgs/development/python-modules/azure-batch/default.nix +++ b/pkgs/development/python-modules/azure-batch/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-x5Jn1sPT/hShakIqtbv6vL1o7QtYtrvN+gyDRcTHhTI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-common @@ -31,9 +30,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.batch" - ]; + pythonImportsCheck = [ "azure.batch" ]; meta = with lib; { description = "This is the Microsoft Azure Batch Client Library"; diff --git a/pkgs/development/python-modules/azure-common/default.nix b/pkgs/development/python-modules/azure-common/default.nix index 2b4caa102f79..b168e1b21cf2 100644 --- a/pkgs/development/python-modules/azure-common/default.nix +++ b/pkgs/development/python-modules/azure-common/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-nspkg -, isPyPy -, setuptools -, python -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + azure-nspkg, + isPyPy, + setuptools, + python, + isPy3k, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-SsDNMhTja2obakQmhnIqXYzESWA6qDPz8PQL2oNnBKM="; }; - propagatedBuildInputs = [ - azure-nspkg - ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup + propagatedBuildInputs = [ azure-nspkg ] ++ lib.optionals (!isPy3k) [ setuptools ]; # need for namespace lookup postInstall = lib.optionalString (!isPy3k) '' echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/${python.sitePackages}"/azure/__init__.py @@ -34,6 +33,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure common code"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson ]; + maintainers = with maintainers; [ + olcai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-containerregistry/default.nix b/pkgs/development/python-modules/azure-containerregistry/default.nix index 7b6d8ba17915..37d7173441ac 100644 --- a/pkgs/development/python-modules/azure-containerregistry/default.nix +++ b/pkgs/development/python-modules/azure-containerregistry/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, azure-core -, msrest -, msrestazure -, isodate +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + azure-core, + msrest, + msrestazure, + isodate, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix index 90a16ee09820..0de7d344b1df 100644 --- a/pkgs/development/python-modules/azure-core/default.nix +++ b/pkgs/development/python-modules/azure-core/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, aiodns -, aiohttp -, flask -, mock -, pytest -, pytest-asyncio -, pytest-trio -, pytestCheckHook -, requests -, setuptools -, six -, trio -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + aiodns, + aiohttp, + flask, + mock, + pytest, + pytest-asyncio, + pytest-trio, + pytestCheckHook, + requests, + setuptools, + six, + trio, + typing-extensions, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-Jic6JUEx+EJp6OpEZPNWDHMfKcDB9prJkBCEXyOcGo8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -43,9 +42,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - aio = [ - aiohttp - ]; + aio = [ aiohttp ]; }; nativeCheckInputs = [ @@ -64,9 +61,7 @@ buildPythonPackage rec { export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH ''; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; # disable tests which touch network disabledTests = [ @@ -77,12 +72,10 @@ buildPythonPackage rec { "timeout" "test_sync_transport_short_read_download_stream" "test_aio_transport_short_read_download_stream" - # disable 8 tests failing on some darwin machines with errors: - # azure.core.polling.base_polling.BadStatus: Invalid return status 403 for 'GET' operation - # azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Forbidden' - ] ++ lib.optionals stdenv.isDarwin [ - "location_polling_fail" - ]; + # disable 8 tests failing on some darwin machines with errors: + # azure.core.polling.base_polling.BadStatus: Invalid return status 403 for 'GET' operation + # azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Forbidden' + ] ++ lib.optionals stdenv.isDarwin [ "location_polling_fail" ]; disabledTestPaths = [ # requires testing modules which aren't published, and likely to create cyclic dependencies diff --git a/pkgs/development/python-modules/azure-cosmosdb-nspkg/default.nix b/pkgs/development/python-modules/azure-cosmosdb-nspkg/default.nix index f256d8d5b449..f11653ef6d23 100644 --- a/pkgs/development/python-modules/azure-cosmosdb-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-cosmosdb-nspkg/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + azure-nspkg, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "acf691e692818d9a65c653c7a3485eb8e35c0bdc496bba652e5ea3905ba09cd8"; }; - propagatedBuildInputs = [ - azure-nspkg - ]; + propagatedBuildInputs = [ azure-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-cosmosdb-table/default.nix b/pkgs/development/python-modules/azure-cosmosdb-table/default.nix index 42c81a96ff6c..3f68e661f6c0 100644 --- a/pkgs/development/python-modules/azure-cosmosdb-table/default.nix +++ b/pkgs/development/python-modules/azure-cosmosdb-table/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cryptography -, azure-common -, azure-storage-common -, azure-cosmosdb-nspkg -, futures ? null -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, + azure-common, + azure-storage-common, + azure-cosmosdb-nspkg, + futures ? null, + isPy3k, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { azure-common azure-storage-common azure-cosmosdb-nspkg - ] ++ lib.optionals (!isPy3k) [ - futures - ]; + ] ++ lib.optionals (!isPy3k) [ futures ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-data-tables/default.nix b/pkgs/development/python-modules/azure-data-tables/default.nix index 42b8b1edb55d..c9b61bcb5772 100644 --- a/pkgs/development/python-modules/azure-data-tables/default.nix +++ b/pkgs/development/python-modules/azure-data-tables/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions -, yarl +{ + lib, + azure-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.data.tables" - ]; + pythonImportsCheck = [ "azure.data.tables" ]; meta = with lib; { description = "NoSQL data storage service that can be accessed from anywhere"; diff --git a/pkgs/development/python-modules/azure-datalake-store/default.nix b/pkgs/development/python-modules/azure-datalake-store/default.nix index 7dcf5c8b7398..2a5ad27ee8c1 100644 --- a/pkgs/development/python-modules/azure-datalake-store/default.nix +++ b/pkgs/development/python-modules/azure-datalake-store/default.nix @@ -1,11 +1,12 @@ -{ lib -, adal -, azure-common -, buildPythonPackage -, fetchPypi -, msal -, pythonOlder -, requests +{ + lib, + adal, + azure-common, + buildPythonPackage, + fetchPypi, + msal, + pythonOlder, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-eventgrid/default.nix b/pkgs/development/python-modules/azure-eventgrid/default.nix index c7246ffe9d85..a124885aed00 100644 --- a/pkgs/development/python-modules/azure-eventgrid/default.nix +++ b/pkgs/development/python-modules/azure-eventgrid/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-common, + azure-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-a9fVQBbMo6Zwdp6WTYKiQBlqJcQRs+nxqKqBVcPbBew="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ azure-common @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.eventgrid" - ]; + pythonImportsCheck = [ "azure.eventgrid" ]; meta = with lib; { description = "A fully-managed intelligent event routing service that allows for uniform event consumption using a publish-subscribe model"; diff --git a/pkgs/development/python-modules/azure-eventhub/default.nix b/pkgs/development/python-modules/azure-eventhub/default.nix index 91203ed64204..ceff113cc60a 100644 --- a/pkgs/development/python-modules/azure-eventhub/default.nix +++ b/pkgs/development/python-modules/azure-eventhub/default.nix @@ -1,10 +1,11 @@ -{ lib -, azure-core -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + azure-core, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-C0Ywon7jrAxEjD8jdSHV3K71qKGnJBQjUGwEY3oKRLA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core diff --git a/pkgs/development/python-modules/azure-functions-devops-build/default.nix b/pkgs/development/python-modules/azure-functions-devops-build/default.nix index aa6e29103578..e7e4cf570cb8 100644 --- a/pkgs/development/python-modules/azure-functions-devops-build/default.nix +++ b/pkgs/development/python-modules/azure-functions-devops-build/default.nix @@ -1,7 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, jinja2 -, msrest -, vsts +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + msrest, + vsts, }: buildPythonPackage rec { @@ -17,7 +20,11 @@ buildPythonPackage rec { sha256 = "1slc7jd92v9q1qg1yacnrpi2a7hi7iw61wzbzfd6wx9q63pw9yqi"; }; - propagatedBuildInputs = [ jinja2 msrest vsts ]; + propagatedBuildInputs = [ + jinja2 + msrest + vsts + ]; # circular dependency with azure-cli-core doCheck = false; diff --git a/pkgs/development/python-modules/azure-graphrbac/default.nix b/pkgs/development/python-modules/azure-graphrbac/default.nix index 1c26d5e6b29a..412838ef7fc5 100644 --- a/pkgs/development/python-modules/azure-graphrbac/default.nix +++ b/pkgs/development/python-modules/azure-graphrbac/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-identity/default.nix b/pkgs/development/python-modules/azure-identity/default.nix index 18e21134a8db..c7470e5f36c8 100644 --- a/pkgs/development/python-modules/azure-identity/default.nix +++ b/pkgs/development/python-modules/azure-identity/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, azure-core -, cryptography -, msal -, msal-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + azure-core, + cryptography, + msal, + msal-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { msal-extensions ]; - pythonImportsCheck = [ - "azure.identity" - ]; + pythonImportsCheck = [ "azure.identity" ]; # Requires checkout from mono-repo and a mock account: # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/tests.yml diff --git a/pkgs/development/python-modules/azure-keyvault-administration/default.nix b/pkgs/development/python-modules/azure-keyvault-administration/default.nix index a890e435508f..e059b2fb6e05 100644 --- a/pkgs/development/python-modules/azure-keyvault-administration/default.nix +++ b/pkgs/development/python-modules/azure-keyvault-administration/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + azure-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-ems2y59UTzV1D/L6lMg7l7PvIMH+G0JOpoAY7ucD8d8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core @@ -33,13 +32,9 @@ buildPythonPackage rec { # Tests require checkout from mono-repo doCheck = false; - pythonNamespaces = [ - "azure.keyvault" - ]; + pythonNamespaces = [ "azure.keyvault" ]; - pythonImportsCheck = [ - "azure.keyvault.administration" - ]; + pythonImportsCheck = [ "azure.keyvault.administration" ]; meta = with lib; { description = "Microsoft Azure Key Vault Administration Client Library for Python"; diff --git a/pkgs/development/python-modules/azure-keyvault-certificates/default.nix b/pkgs/development/python-modules/azure-keyvault-certificates/default.nix index e45f1b241517..77bfa1ea25a0 100644 --- a/pkgs/development/python-modules/azure-keyvault-certificates/default.nix +++ b/pkgs/development/python-modules/azure-keyvault-certificates/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, azure-core -, isodate -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + azure-core, + isodate, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-xWEnPkQCwlEUhzSGyYv6GyxHiGIp1BAOh9rxAO4Edyg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-common @@ -32,16 +31,12 @@ buildPythonPackage rec { typing-extensions ]; - pythonNamespaces = [ - "azure.keyvault" - ]; + pythonNamespaces = [ "azure.keyvault" ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.keyvault.certificates" - ]; + pythonImportsCheck = [ "azure.keyvault.certificates" ]; meta = with lib; { description = "Microsoft Azure Key Vault Certificates Client Library for Python"; diff --git a/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix b/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix index f060c77edc16..813b0d51d04c 100644 --- a/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-keyvault-nspkg/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, -# pythonPackages -, azure-nspkg + # pythonPackages + azure-nspkg, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "0hdnd6124hx7s16z1pssmq5m5mqqqz8s38ixl9aayv4wmf5bhs5c"; }; - propagatedBuildInputs = [ - azure-nspkg - ]; + propagatedBuildInputs = [ azure-nspkg ]; # Just a namespace package, no tests exist: # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/keyvault/tests.yml @@ -29,8 +28,6 @@ buildPythonPackage rec { description = "Microsoft Azure Key Vault Namespace Package [Internal]"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/azure-keyvault-secrets/default.nix b/pkgs/development/python-modules/azure-keyvault-secrets/default.nix index 56004efa76b6..795ac2e8978a 100644 --- a/pkgs/development/python-modules/azure-keyvault-secrets/default.nix +++ b/pkgs/development/python-modules/azure-keyvault-secrets/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + azure-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-VjbAodiiDjxXmcs8z/1Ovz8NGst8rpUmhhgzr4sP6BQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core @@ -30,9 +29,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonNamespaces = [ - "azure.keyvault" - ]; + pythonNamespaces = [ "azure.keyvault" ]; # Tests require checkout from mono-repo doCheck = false; diff --git a/pkgs/development/python-modules/azure-keyvault/default.nix b/pkgs/development/python-modules/azure-keyvault/default.nix index 4fedfd4cbf55..e8959dd5f660 100644 --- a/pkgs/development/python-modules/azure-keyvault/default.nix +++ b/pkgs/development/python-modules/azure-keyvault/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, azure-keyvault-certificates -, azure-keyvault-keys -, azure-keyvault-secrets +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + azure-keyvault-certificates, + azure-keyvault-keys, + azure-keyvault-secrets, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-loganalytics/default.nix b/pkgs/development/python-modules/azure-loganalytics/default.nix index 7c18ed7ceb5f..78879294d9e5 100644 --- a/pkgs/development/python-modules/azure-loganalytics/default.nix +++ b/pkgs/development/python-modules/azure-loganalytics/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, azure-common +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + azure-common, }: buildPythonPackage rec { @@ -30,6 +31,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Log Analytics Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ maxwilson jonringer ]; + maintainers = with maintainers; [ + maxwilson + jonringer + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-advisor/default.nix b/pkgs/development/python-modules/azure-mgmt-advisor/default.nix index 2a75de7bf493..e73f36518d56 100644 --- a/pkgs/development/python-modules/azure-mgmt-advisor/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-advisor/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, isPy3k -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + isPy3k, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-appcontainers/default.nix b/pkgs/development/python-modules/azure-mgmt-appcontainers/default.nix index 624c9735b6ac..8d66700b5413 100644 --- a/pkgs/development/python-modules/azure-mgmt-appcontainers/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-appcontainers/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, azure-common -, azure-mgmt-core -, isodate -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + azure-common, + azure-mgmt-core, + isodate, + typing-extensions, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { azure-common azure-mgmt-core isodate - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # no tests included doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.appcontainers" - ]; + pythonImportsCheck = [ "azure.mgmt.appcontainers" ]; meta = with lib; { description = "Microsoft Azure Appcontainers Management Client Library for Python"; diff --git a/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix b/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix index 352d719ddadd..053211a5ac47 100644 --- a/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { azure-mgmt-core msrest msrestazure - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; pythonNamespaces = [ "azure.mgmt" ]; @@ -38,6 +37,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Application Insights Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-authorization/default.nix b/pkgs/development/python-modules/azure-mgmt-authorization/default.nix index 89ce5b1a4012..52c94964f570 100644 --- a/pkgs/development/python-modules/azure-mgmt-authorization/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-authorization/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-batch/default.nix b/pkgs/development/python-modules/azure-mgmt-batch/default.nix index 64cfffff110a..e6020399fdf8 100644 --- a/pkgs/development/python-modules/azure-mgmt-batch/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-batch/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-/JSIGmrNuKlTPzcbb3stPq6heJ65VQFLJKkI1t/nWZE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-common @@ -33,9 +32,7 @@ buildPythonPackage rec { # Tests are only available in mono repo doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.batch" - ]; + pythonImportsCheck = [ "azure.mgmt.batch" ]; meta = with lib; { description = "This is the Microsoft Azure Batch Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-batchai/default.nix b/pkgs/development/python-modules/azure-mgmt-batchai/default.nix index fd0a7c019a3f..0fa160b6adc0 100644 --- a/pkgs/development/python-modules/azure-mgmt-batchai/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-batchai/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, msrestazure +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + msrestazure, }: buildPythonPackage rec { @@ -23,7 +24,7 @@ buildPythonPackage rec { azure-common azure-mgmt-core azure-mgmt-nspkg - ]; + ]; pythonNamespaces = [ "azure.mgmt" ]; diff --git a/pkgs/development/python-modules/azure-mgmt-billing/default.nix b/pkgs/development/python-modules/azure-mgmt-billing/default.nix index 7bf243e3edbb..db243f585759 100644 --- a/pkgs/development/python-modules/azure-mgmt-billing/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-billing/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { pname = "azure-mgmt-billing"; - version = "6.0.0"; #pypi's 0.2.0 doesn't build ootb + version = "6.0.0"; # pypi's 0.2.0 doesn't build ootb format = "setuptools"; src = fetchPypi { diff --git a/pkgs/development/python-modules/azure-mgmt-cdn/default.nix b/pkgs/development/python-modules/azure-mgmt-cdn/default.nix index 7c53f86ca6c4..adb2d6033421 100644 --- a/pkgs/development/python-modules/azure-mgmt-cdn/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-cdn/default.nix @@ -1,10 +1,11 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix b/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix index 25dfe383e35d..a4052e739880 100644 --- a/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, azure-mgmt-core -, msrestazure -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + azure-mgmt-core, + msrestazure, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-commerce/default.nix b/pkgs/development/python-modules/azure-mgmt-commerce/default.nix index 035f3f6c682c..c8a189bb8c39 100644 --- a/pkgs/development/python-modules/azure-mgmt-commerce/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-commerce/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { @@ -42,6 +43,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Commerce Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ maxwilson jonringer ]; + maintainers = with maintainers; [ + maxwilson + jonringer + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-common/default.nix b/pkgs/development/python-modules/azure-mgmt-common/default.nix index 5f0390708c7d..cecaf2dd2bd4 100644 --- a/pkgs/development/python-modules/azure-mgmt-common/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-common/default.nix @@ -1,12 +1,13 @@ -{ pkgs -, buildPythonPackage -, fetchPypi -, python -, azure-common -, azure-mgmt-nspkg -, requests -, msrestazure -, isPy3k +{ + pkgs, + buildPythonPackage, + fetchPypi, + python, + azure-common, + azure-mgmt-nspkg, + requests, + msrestazure, + isPy3k, }: buildPythonPackage rec { @@ -38,6 +39,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Resource Management common code"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson ]; + maintainers = with maintainers; [ + olcai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-consumption/default.nix b/pkgs/development/python-modules/azure-mgmt-consumption/default.nix index 5156763d55f0..b300fe7f17b6 100644 --- a/pkgs/development/python-modules/azure-mgmt-consumption/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-consumption/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix b/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix index 06a9c072f279..3b0c9ecfe20a 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerinstance/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + pythonOlder, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.containerinstance" - ]; + pythonImportsCheck = [ "azure.mgmt.containerinstance" ]; meta = with lib; { description = "This is the Microsoft Azure Container Instance Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix index 40e86961a892..9604f102ec38 100644 --- a/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, azure-common -, azure-mgmt-core -, isodate +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + azure-common, + azure-mgmt-core, + isodate, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-core/default.nix b/pkgs/development/python-modules/azure-mgmt-core/default.nix index 67e7a4bca229..ef3aedee0dc5 100644 --- a/pkgs/development/python-modules/azure-mgmt-core/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-core/default.nix @@ -1,8 +1,9 @@ -{ pkgs -, buildPythonPackage -, fetchPypi -, azure-core -, typing-extensions +{ + pkgs, + buildPythonPackage, + fetchPypi, + azure-core, + typing-extensions, }: buildPythonPackage rec { @@ -26,7 +27,10 @@ buildPythonPackage rec { # not included doCheck = false; - pythonImportsCheck = [ "azure.mgmt.core" "azure.core" ]; + pythonImportsCheck = [ + "azure.mgmt.core" + "azure.core" + ]; meta = with pkgs.lib; { description = "Microsoft Azure Management Core Library for Python"; diff --git a/pkgs/development/python-modules/azure-mgmt-cosmosdb/default.nix b/pkgs/development/python-modules/azure-mgmt-cosmosdb/default.nix index 0448801856be..f46d6f967b22 100644 --- a/pkgs/development/python-modules/azure-mgmt-cosmosdb/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-cosmosdb/default.nix @@ -1,10 +1,11 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.cosmosdb" - ]; + pythonImportsCheck = [ "azure.mgmt.cosmosdb" ]; meta = with lib; { description = "Module to work with the Microsoft Azure Cosmos DB Management"; diff --git a/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix b/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix index 9bbf7cec42ee..2d8e7b884d18 100644 --- a/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datafactory/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-99uvyPwzRnUxp4ePA5Xa19QVTRvkAjvHDVIGgbcBP7o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-common @@ -33,9 +32,7 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.datafactory" - ]; + pythonImportsCheck = [ "azure.mgmt.datafactory" ]; meta = with lib; { description = "This is the Microsoft Azure Data Factory Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix b/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix index 83d6e314987f..1c1a1d05b269 100644 --- a/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-datalake-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-datalake-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix b/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix index 8723830d4105..322987f2039a 100644 --- a/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datalake-nspkg/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + azure-mgmt-nspkg, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "deb192ba422f8b3ec272ce4e88736796f216f28ea5b03f28331d784b7a3f4880"; }; - propagatedBuildInputs = [ - azure-mgmt-nspkg - ]; + propagatedBuildInputs = [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-datalake-store/default.nix b/pkgs/development/python-modules/azure-mgmt-datalake-store/default.nix index 2ab479b3f7c2..b790482ee7aa 100644 --- a/pkgs/development/python-modules/azure-mgmt-datalake-store/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datalake-store/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-datalake-nspkg -, azure-mgmt-core +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-datalake-nspkg, + azure-mgmt-core, }: buildPythonPackage rec { @@ -34,6 +35,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Data Lake Store Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix b/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix index fe57d5d26cc6..f15bcca45128 100644 --- a/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-datamigration/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, msrest -, msrestazure -, azure-common -, azure-mgmt-nspkg -, azure-mgmt-core +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + msrest, + msrestazure, + azure-common, + azure-mgmt-nspkg, + azure-mgmt-core, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; pythonNamespaces = [ "azure.mgmt" ]; @@ -38,6 +37,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Data Migration Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix b/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix index 9a2cf7c02709..196fadd01e1e 100644 --- a/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix b/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix index 02b21b3dfd35..57717302637b 100644 --- a/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; pythonNamespaces = [ "azure.mgmt" ]; @@ -38,6 +37,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure DevTestLabs Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-dns/default.nix b/pkgs/development/python-modules/azure-mgmt-dns/default.nix index bc8d9eb9e115..f1031a1db42f 100644 --- a/pkgs/development/python-modules/azure-mgmt-dns/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-dns/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, }: buildPythonPackage rec { @@ -35,6 +36,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure DNS Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-eventgrid/default.nix b/pkgs/development/python-modules/azure-mgmt-eventgrid/default.nix index 98c897aeabff..a04027b66f70 100644 --- a/pkgs/development/python-modules/azure-mgmt-eventgrid/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-eventgrid/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.eventgrid" - ]; + pythonImportsCheck = [ "azure.mgmt.eventgrid" ]; meta = with lib; { description = "This is the Microsoft Azure EventGrid Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-eventhub/default.nix b/pkgs/development/python-modules/azure-mgmt-eventhub/default.nix index 92bb1bf301a8..7ce3bf66c5d6 100644 --- a/pkgs/development/python-modules/azure-mgmt-eventhub/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-eventhub/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix index 7bd4c3669632..02457ba264ef 100644 --- a/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-hanaonazure/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-imagebuilder/default.nix b/pkgs/development/python-modules/azure-mgmt-imagebuilder/default.nix index 50341f66402f..2f254d6f2475 100644 --- a/pkgs/development/python-modules/azure-mgmt-imagebuilder/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-imagebuilder/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-PzJdaIthJcL6kmgeWxjqQHugMtW+P3wHJEBtcz5sFO8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-common diff --git a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix index 660b26620757..4d7ffa9c36f4 100644 --- a/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iotcentral/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { azure-mgmt-core msrest msrestazure - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-iothub/default.nix b/pkgs/development/python-modules/azure-mgmt-iothub/default.nix index 8890f65af3af..fbf2da2f1c13 100644 --- a/pkgs/development/python-modules/azure-mgmt-iothub/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iothub/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { azure-common azure-mgmt-core isodate - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.iothub" - ]; + pythonImportsCheck = [ "azure.mgmt.iothub" ]; meta = with lib; { description = "This is the Microsoft Azure IoTHub Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix b/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix index df0a7efe8dbf..36ee7883f1ca 100644 --- a/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { @@ -36,6 +37,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure IoTHub Provisioning Services Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-keyvault/default.nix b/pkgs/development/python-modules/azure-mgmt-keyvault/default.nix index 9b954760fe1c..7bd05198e4ea 100644 --- a/pkgs/development/python-modules/azure-mgmt-keyvault/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-keyvault/default.nix @@ -1,10 +1,11 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { isodate ]; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; # Module has no tests doCheck = false; @@ -37,6 +36,9 @@ buildPythonPackage rec { homepage = "https://github.com/Azure/azure-sdk-for-python"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-keyvault_${version}/sdk/keyvault/azure-mgmt-keyvault/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ jonringer maxwilson ]; + maintainers = with maintainers; [ + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix b/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix index 499b4362f02c..84e8197bbc3c 100644 --- a/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-logic/default.nix b/pkgs/development/python-modules/azure-mgmt-logic/default.nix index fc22b57d98a8..c3e74008da92 100644 --- a/pkgs/development/python-modules/azure-mgmt-logic/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-logic/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.logic" - ]; + pythonImportsCheck = [ "azure.mgmt.logic" ]; meta = with lib; { description = "This is the Microsoft Azure Logic Apps Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix index fa6e67196260..118ba1701602 100644 --- a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-managementgroups/default.nix b/pkgs/development/python-modules/azure-mgmt-managementgroups/default.nix index 22df23f03cd3..52c5f380740a 100644 --- a/pkgs/development/python-modules/azure-mgmt-managementgroups/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-managementgroups/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix b/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix index 5d91873e9622..ff45777f8970 100644 --- a/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-managementpartner/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-maps/default.nix b/pkgs/development/python-modules/azure-mgmt-maps/default.nix index 81b216804ae4..2f7dbd1209a2 100644 --- a/pkgs/development/python-modules/azure-mgmt-maps/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-maps/default.nix @@ -1,12 +1,13 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions -, msrest +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, + msrest, }: buildPythonPackage rec { @@ -26,20 +27,14 @@ buildPythonPackage rec { azure-common azure-mgmt-core msrest - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.maps" - ]; + pythonImportsCheck = [ "azure.mgmt.maps" ]; meta = with lib; { description = "This is the Microsoft Azure Maps Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix b/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix index d07dd7a1cfe7..4f2dd1ff04a1 100644 --- a/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-marketplaceordering/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-nspkg -, isPy3k -, azure-mgmt-core +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-nspkg, + isPy3k, + azure-mgmt-core, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-media/default.nix b/pkgs/development/python-modules/azure-mgmt-media/default.nix index a9c47aca1ead..473fbf070079 100644 --- a/pkgs/development/python-modules/azure-mgmt-media/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-media/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.media" - ]; + pythonImportsCheck = [ "azure.mgmt.media" ]; meta = with lib; { description = "This is the Microsoft Azure Media Services Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-monitor/default.nix b/pkgs/development/python-modules/azure-mgmt-monitor/default.nix index e4d0ae9b288f..1a75b23ccc85 100644 --- a/pkgs/development/python-modules/azure-mgmt-monitor/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-monitor/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { isodate azure-common azure-mgmt-core - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-msi/default.nix b/pkgs/development/python-modules/azure-mgmt-msi/default.nix index 8351622cd42f..5c2fb8aeb572 100644 --- a/pkgs/development/python-modules/azure-mgmt-msi/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-msi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, msrest -, azure-common -, azure-mgmt-core +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + msrest, + azure-common, + azure-mgmt-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-netapp/default.nix b/pkgs/development/python-modules/azure-mgmt-netapp/default.nix index eaa6df20a744..a9fe7b0ab5f4 100644 --- a/pkgs/development/python-modules/azure-mgmt-netapp/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-netapp/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, azure-common -, azure-mgmt-core -, isodate +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + azure-common, + azure-mgmt-core, + isodate, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-network/default.nix b/pkgs/development/python-modules/azure-mgmt-network/default.nix index d64d76abd1fe..7fe9320abaab 100644 --- a/pkgs/development/python-modules/azure-mgmt-network/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-network/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-3OLK+xrg5WPgte/FN9yYp8Ctgk1CYeZL7XX3iBlt1cY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-common @@ -33,19 +32,19 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; - pythonImportsCheck = [ - "azure.mgmt.network" - ]; + pythonImportsCheck = [ "azure.mgmt.network" ]; meta = with lib; { description = "Microsoft Azure SDK for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/network/azure-mgmt-network"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-network_${version}/sdk/network/azure-mgmt-network/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson jonringer ]; + maintainers = with maintainers; [ + olcai + maxwilson + jonringer + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix index 75e7718f110b..c28e754429d8 100644 --- a/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-notificationhubs/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix b/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix index 6f5b8912f9a2..27fa690bb52e 100644 --- a/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-nspkg/default.nix @@ -1,7 +1,8 @@ -{ pkgs -, buildPythonPackage -, fetchPypi -, azure-nspkg +{ + pkgs, + buildPythonPackage, + fetchPypi, + azure-nspkg, }: buildPythonPackage rec { @@ -23,6 +24,9 @@ buildPythonPackage rec { description = "Microsoft Azure SDK for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson ]; + maintainers = with maintainers; [ + olcai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-policyinsights/default.nix b/pkgs/development/python-modules/azure-mgmt-policyinsights/default.nix index e92d7302d32c..a7365e27bd8e 100644 --- a/pkgs/development/python-modules/azure-mgmt-policyinsights/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-policyinsights/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { azure-mgmt-core msrest msrestazure - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-powerbiembedded/default.nix b/pkgs/development/python-modules/azure-mgmt-powerbiembedded/default.nix index 9215d8955b91..664d6e905fa9 100644 --- a/pkgs/development/python-modules/azure-mgmt-powerbiembedded/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-powerbiembedded/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-privatedns/default.nix b/pkgs/development/python-modules/azure-mgmt-privatedns/default.nix index 2a89a0460cd8..a1446f95426d 100644 --- a/pkgs/development/python-modules/azure-mgmt-privatedns/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-privatedns/default.nix @@ -1,12 +1,13 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, msrest -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + msrest, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { azure-mgmt-core isodate msrest - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # no tests included doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix b/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix index c73ae220f09d..dc10601bb662 100644 --- a/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-rdbms/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { azure-mgmt-core msrest msrestazure - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-recoveryservices/default.nix b/pkgs/development/python-modules/azure-mgmt-recoveryservices/default.nix index 5399eef058a8..414fcce92ab1 100644 --- a/pkgs/development/python-modules/azure-mgmt-recoveryservices/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-recoveryservices/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { azure-common azure-mgmt-core isodate - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.recoveryservices" - ]; + pythonImportsCheck = [ "azure.mgmt.recoveryservices" ]; meta = with lib; { description = "This is the Microsoft Azure Recovery Services Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-redhatopenshift/default.nix b/pkgs/development/python-modules/azure-mgmt-redhatopenshift/default.nix index fd6fe1b3e65b..de5fa0d7faf3 100644 --- a/pkgs/development/python-modules/azure-mgmt-redhatopenshift/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-redhatopenshift/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -24,18 +25,14 @@ buildPythonPackage rec { isodate azure-common azure-mgmt-core - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; pythonNamespaces = "azure.mgmt"; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.redhatopenshift" - ]; + pythonImportsCheck = [ "azure.mgmt.redhatopenshift" ]; meta = with lib; { description = "Microsoft Azure Red Hat Openshift Management Client Library for Python"; diff --git a/pkgs/development/python-modules/azure-mgmt-redis/default.nix b/pkgs/development/python-modules/azure-mgmt-redis/default.nix index 4bfbc40d7a42..b40de91c0ad6 100644 --- a/pkgs/development/python-modules/azure-mgmt-redis/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-redis/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { isodate azure-common azure-mgmt-core - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.redis" - ]; + pythonImportsCheck = [ "azure.mgmt.redis" ]; meta = with lib; { description = "This is the Microsoft Azure Redis Cache Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-relay/default.nix b/pkgs/development/python-modules/azure-mgmt-relay/default.nix index 9e6f2eb9f797..ced59697c8e3 100644 --- a/pkgs/development/python-modules/azure-mgmt-relay/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-relay/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-reservations/default.nix b/pkgs/development/python-modules/azure-mgmt-reservations/default.nix index ee97aab67805..d382ded7d810 100644 --- a/pkgs/development/python-modules/azure-mgmt-reservations/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-reservations/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-resource/default.nix b/pkgs/development/python-modules/azure-mgmt-resource/default.nix index 648b22df3860..37e29ac970f0 100644 --- a/pkgs/development/python-modules/azure-mgmt-resource/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-resource/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-mgmt-core -, azure-mgmt-common -, msrest -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + azure-mgmt-core, + azure-mgmt-common, + msrest, + pythonOlder, }: buildPythonPackage rec { @@ -29,18 +30,18 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; - pythonImportsCheck = [ - "azure.mgmt.resource" - ]; + pythonImportsCheck = [ "azure.mgmt.resource" ]; meta = with lib; { description = "Microsoft Azure SDK for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson jonringer ]; + maintainers = with maintainers; [ + olcai + maxwilson + jonringer + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-scheduler/default.nix b/pkgs/development/python-modules/azure-mgmt-scheduler/default.nix index 306a7500114f..57d67492ccaf 100644 --- a/pkgs/development/python-modules/azure-mgmt-scheduler/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-scheduler/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-search/default.nix b/pkgs/development/python-modules/azure-mgmt-search/default.nix index 5ba74007734a..ebdfda97592a 100644 --- a/pkgs/development/python-modules/azure-mgmt-search/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-search/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { azure-common azure-mgmt-core isodate - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "azure.mgmt.search" - ]; + pythonImportsCheck = [ "azure.mgmt.search" ]; meta = with lib; { description = "This is the Microsoft Azure Search Management Client Library"; diff --git a/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix b/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix index 182fa1599752..1606e56cccdc 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicebus/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix b/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix index 1ba61f30fcfa..916f785bf70b 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder -, setuptools +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-oIQzBJVUQ2yQhEvIqWgg6INplITm/8mQMv0lcfjF99Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ isodate @@ -30,9 +29,7 @@ buildPythonPackage rec { azure-mgmt-core ]; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-servicefabricmanagedclusters/default.nix b/pkgs/development/python-modules/azure-mgmt-servicefabricmanagedclusters/default.nix index 513018a1ecc2..4152514643d6 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicefabricmanagedclusters/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicefabricmanagedclusters/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix b/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix index 520ae24b3210..9e5405336b68 100644 --- a/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-servicelinker/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, azure-mgmt-core -, msrest +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + azure-mgmt-core, + msrest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix index 2079cd8d0d98..e40c1670747f 100644 --- a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-mgmt-sql/default.nix b/pkgs/development/python-modules/azure-mgmt-sql/default.nix index c677f7e3cca0..83e45b54a9bb 100644 --- a/pkgs/development/python-modules/azure-mgmt-sql/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-sql/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-storage/default.nix b/pkgs/development/python-modules/azure-mgmt-storage/default.nix index 5643ab8ce545..f1efac7bb88f 100644 --- a/pkgs/development/python-modules/azure-mgmt-storage/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-storage/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-mgmt-common -, azure-mgmt-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + azure-mgmt-common, + azure-mgmt-core, + pythonOlder, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { azure-mgmt-core ]; - pythonNamespaces = [ - "azure.mgmt" - ]; + pythonNamespaces = [ "azure.mgmt" ]; - pythonImportsCheck = [ - "azure.mgmt.storage" - ]; + pythonImportsCheck = [ "azure.mgmt.storage" ]; # Module has no tests doCheck = false; @@ -38,6 +35,10 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Storage Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ jonringer olcai maxwilson ]; + maintainers = with maintainers; [ + jonringer + olcai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-mgmt-subscription/default.nix b/pkgs/development/python-modules/azure-mgmt-subscription/default.nix index 1915f15110b9..ad45a8015587 100644 --- a/pkgs/development/python-modules/azure-mgmt-subscription/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-subscription/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { azure-mgmt-core msrest msrestazure - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix b/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix index e2ae6c3e9cf5..acccaba91bff 100644 --- a/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-trafficmanager/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msrest -, msrestazure -, azure-common -, azure-mgmt-core -, azure-mgmt-nspkg -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + msrestazure, + azure-common, + azure-mgmt-core, + azure-mgmt-nspkg, + isPy3k, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - ] ++ lib.optionals (!isPy3k) [ - azure-mgmt-nspkg - ]; + ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-mgmt-web/default.nix b/pkgs/development/python-modules/azure-mgmt-web/default.nix index 0008035e91e0..a4b2769543d3 100644 --- a/pkgs/development/python-modules/azure-mgmt-web/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-web/default.nix @@ -1,10 +1,11 @@ -{ lib -, azure-common -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder +{ + lib, + azure-common, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-monitor-ingestion/default.nix b/pkgs/development/python-modules/azure-monitor-ingestion/default.nix index 7058a1bddbea..43e3c13022b1 100644 --- a/pkgs/development/python-modules/azure-monitor-ingestion/default.nix +++ b/pkgs/development/python-modules/azure-monitor-ingestion/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, azure-core -, isodate -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + azure-core, + isodate, + typing-extensions, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-idAEqP+HaZs/0fzyBaqO8enTTySg88w3TSIUceiYdDs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core diff --git a/pkgs/development/python-modules/azure-nspkg/default.nix b/pkgs/development/python-modules/azure-nspkg/default.nix index a79963cddb26..57fa09792493 100644 --- a/pkgs/development/python-modules/azure-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-nspkg/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -20,6 +21,9 @@ buildPythonPackage rec { description = "Microsoft Azure SDK for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson ]; + maintainers = with maintainers; [ + olcai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-servicebus/default.nix b/pkgs/development/python-modules/azure-servicebus/default.nix index e84a9cb5fd21..ba9864d8c128 100644 --- a/pkgs/development/python-modules/azure-servicebus/default.nix +++ b/pkgs/development/python-modules/azure-servicebus/default.nix @@ -1,13 +1,14 @@ -{ lib -, azure-common -, azure-core -, buildPythonPackage -, fetchPypi -, isodate -, msrest -, pythonOlder -, typing-extensions -, uamqp +{ + lib, + azure-common, + azure-core, + buildPythonPackage, + fetchPypi, + isodate, + msrest, + pythonOlder, + typing-extensions, + uamqp, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # Tests require dev-tools doCheck = false; - pythonImportsCheck = [ - "azure.servicebus" - ]; + pythonImportsCheck = [ "azure.servicebus" ]; meta = with lib; { description = "Microsoft Azure Service Bus Client Library"; diff --git a/pkgs/development/python-modules/azure-servicefabric/default.nix b/pkgs/development/python-modules/azure-servicefabric/default.nix index b7ad663a1b43..e7052a171651 100644 --- a/pkgs/development/python-modules/azure-servicefabric/default.nix +++ b/pkgs/development/python-modules/azure-servicefabric/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, msrest +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + msrest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix b/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix index d47f38396c74..bff86f69ba6b 100644 --- a/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix +++ b/pkgs/development/python-modules/azure-servicemanagement-legacy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + requests, }: buildPythonPackage rec { @@ -30,6 +31,9 @@ buildPythonPackage rec { description = "This is the Microsoft Azure Service Management Legacy Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ olcai maxwilson ]; + maintainers = with maintainers; [ + olcai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-storage-blob/default.nix b/pkgs/development/python-modules/azure-storage-blob/default.nix index 3fd78981d046..19a7bb6af82e 100644 --- a/pkgs/development/python-modules/azure-storage-blob/default.nix +++ b/pkgs/development/python-modules/azure-storage-blob/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-core -, buildPythonPackage -, cryptography -, fetchPypi -, isodate -, pythonOlder -, typing-extensions +{ + lib, + azure-core, + buildPythonPackage, + cryptography, + fetchPypi, + isodate, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -35,6 +36,9 @@ buildPythonPackage rec { homepage = "https://github.com/Azure/azure-sdk-for-python"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-storage-blob_${version}/sdk/storage/azure-storage-blob/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ cmcdragonkai maxwilson ]; + maintainers = with maintainers; [ + cmcdragonkai + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/azure-storage-common/default.nix b/pkgs/development/python-modules/azure-storage-common/default.nix index 361725a307aa..7f5b602dad16 100644 --- a/pkgs/development/python-modules/azure-storage-common/default.nix +++ b/pkgs/development/python-modules/azure-storage-common/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, cryptography -, python-dateutil -, requests -, isPy3k -, azure-storage-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + cryptography, + python-dateutil, + requests, + isPy3k, + azure-storage-nspkg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-storage-file/default.nix b/pkgs/development/python-modules/azure-storage-file/default.nix index bf847905ae93..97ad54fda704 100644 --- a/pkgs/development/python-modules/azure-storage-file/default.nix +++ b/pkgs/development/python-modules/azure-storage-file/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-common -, azure-storage-common -, isPy3k -, futures ? null +{ + lib, + buildPythonPackage, + fetchPypi, + azure-common, + azure-storage-common, + isPy3k, + futures ? null, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/azure-storage-nspkg/default.nix b/pkgs/development/python-modules/azure-storage-nspkg/default.nix index 9d1394e5be3a..3807fa100e40 100644 --- a/pkgs/development/python-modules/azure-storage-nspkg/default.nix +++ b/pkgs/development/python-modules/azure-storage-nspkg/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-nspkg +{ + lib, + buildPythonPackage, + fetchPypi, + azure-nspkg, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "6f3bbe8652d5f542767d8433e7f96b8df7f518774055ac7c92ed7ca85f653811"; }; - propagatedBuildInputs = [ - azure-nspkg - ]; + propagatedBuildInputs = [ azure-nspkg ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/azure-storage-queue/default.nix b/pkgs/development/python-modules/azure-storage-queue/default.nix index 1fdbf6914d18..8f3a18b51c6e 100644 --- a/pkgs/development/python-modules/azure-storage-queue/default.nix +++ b/pkgs/development/python-modules/azure-storage-queue/default.nix @@ -1,12 +1,13 @@ -{ lib -, azure-core -, buildPythonPackage -, cryptography -, fetchPypi -, isodate -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + azure-core, + buildPythonPackage, + cryptography, + fetchPypi, + isodate, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-mBAbDhfaDUcM9XALbEDP50Q57Dycds84OYCW5zcbnRs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core @@ -33,17 +32,13 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - aio = [ - azure-core - ] ++ azure-core.optional-dependencies.aio; + aio = [ azure-core ] ++ azure-core.optional-dependencies.aio; }; # has no tests doCheck = false; - pythonImportsCheck = [ - "azure.storage.queue" - ]; + pythonImportsCheck = [ "azure.storage.queue" ]; meta = with lib; { description = "Client library for Microsoft Azure Storage services containing the queue service APIs"; diff --git a/pkgs/development/python-modules/azure-synapse-artifacts/default.nix b/pkgs/development/python-modules/azure-synapse-artifacts/default.nix index 1782dd56e485..3e628b3cbeb1 100644 --- a/pkgs/development/python-modules/azure-synapse-artifacts/default.nix +++ b/pkgs/development/python-modules/azure-synapse-artifacts/default.nix @@ -1,11 +1,12 @@ -{ lib -, azure-common -, azure-core -, azure-mgmt-core -, buildPythonPackage -, fetchPypi -, isodate -, pythonOlder +{ + lib, + azure-common, + azure-core, + azure-mgmt-core, + buildPythonPackage, + fetchPypi, + isodate, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Tests are only available in mono-repo doCheck = false; - pythonImportsCheck = [ - "azure.synapse.artifacts" - ]; + pythonImportsCheck = [ "azure.synapse.artifacts" ]; meta = with lib; { description = "Microsoft Azure Synapse Artifacts Client Library for Python"; diff --git a/pkgs/development/python-modules/babel/default.nix b/pkgs/development/python-modules/babel/default.nix index 2e2a1a66eb48..3bd0b83f2db0 100644 --- a/pkgs/development/python-modules/babel/default.nix +++ b/pkgs/development/python-modules/babel/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + pythonAtLeast, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# tests -, freezegun -, pytestCheckHook -, pytz -, tzdata + # tests + freezegun, + pytestCheckHook, + pytz, + tzdata, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { hash = "sha256-aRmGfbA2OYuiHrXHoPayirjLw656c6ROvjSudKTn02M="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - pytz - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ pytz ]; # including backports.zoneinfo for python<3.9 yields infinite recursion doCheck = pythonAtLeast "3.9"; @@ -44,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook # https://github.com/python-babel/babel/issues/988#issuecomment-1521765563 pytz - ] ++ lib.optionals isPyPy [ - tzdata - ]; + ] ++ lib.optionals isPyPy [ tzdata ]; disabledTests = [ # fails on days switching from and to daylight saving time in EST diff --git a/pkgs/development/python-modules/babelfish/default.nix b/pkgs/development/python-modules/babelfish/default.nix index f79a0ba005fa..292ddc5d2610 100644 --- a/pkgs/development/python-modules/babelfish/default.nix +++ b/pkgs/development/python-modules/babelfish/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, setuptools }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, +}: buildPythonPackage rec { pname = "babelfish"; diff --git a/pkgs/development/python-modules/babelfont/default.nix b/pkgs/development/python-modules/babelfont/default.nix index 8afa32c50053..ffdc8953c36a 100644 --- a/pkgs/development/python-modules/babelfont/default.nix +++ b/pkgs/development/python-modules/babelfont/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cu2qu -, defcon -, fontfeatures -, fonttools -, glyphslib -, openstep-plist -, orjson -, poetry-core -, pytestCheckHook -, ufolib2 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cu2qu, + defcon, + fontfeatures, + fonttools, + glyphslib, + openstep-plist, + orjson, + poetry-core, + pytestCheckHook, + ufolib2, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { orjson ufolib2 ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; doCheck = true; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/babelgladeextractor/default.nix b/pkgs/development/python-modules/babelgladeextractor/default.nix index d6154a063e7c..e0b4d3c8ebc1 100644 --- a/pkgs/development/python-modules/babelgladeextractor/default.nix +++ b/pkgs/development/python-modules/babelgladeextractor/default.nix @@ -1,8 +1,9 @@ -{ lib -, isPy3k -, buildPythonPackage -, fetchPypi -, babel +{ + lib, + isPy3k, + buildPythonPackage, + fetchPypi, + babel, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "160p4wi2ss69g141c2z59azvrhn7ymy5m9h9d65qrcabigi0by5w"; }; - propagatedBuildInputs = [ - babel - ]; + propagatedBuildInputs = [ babel ]; # SyntaxError: Non-ASCII character '\xc3' in file /build/BabelGladeExtractor-0.6.3/babelglade/tests/test_translate.py on line 20, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details doCheck = isPy3k; diff --git a/pkgs/development/python-modules/backcall/default.nix b/pkgs/development/python-modules/backcall/default.nix index adf4daa893ae..ca1f30956a1c 100644 --- a/pkgs/development/python-modules/backcall/default.nix +++ b/pkgs/development/python-modules/backcall/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { @@ -25,5 +26,4 @@ buildPythonPackage rec { homepage = "https://github.com/takluyver/backcall"; license = lib.licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/backoff/default.nix b/pkgs/development/python-modules/backoff/default.nix index 000f02447676..46e0f80bf240 100644 --- a/pkgs/development/python-modules/backoff/default.nix +++ b/pkgs/development/python-modules/backoff/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pytest-asyncio -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pytest-asyncio, + responses, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-g8bYGJ6Kw6y3BUnuoP1IAye5CL0geH5l7pTb3xxq7jI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio @@ -29,9 +28,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "backoff" - ]; + pythonImportsCheck = [ "backoff" ]; meta = with lib; { description = "Function decoration for backoff and retry"; diff --git a/pkgs/development/python-modules/backports-cached-property/default.nix b/pkgs/development/python-modules/backports-cached-property/default.nix index dcce9b5fc6f0..c2a0bc245915 100644 --- a/pkgs/development/python-modules/backports-cached-property/default.nix +++ b/pkgs/development/python-modules/backports-cached-property/default.nix @@ -1,6 +1,13 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder -, setuptools-scm, wheel -, pytestCheckHook, pytest-mock, pytest-sugar +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools-scm, + wheel, + pytestCheckHook, + pytest-mock, + pytest-sugar, }: buildPythonPackage rec { @@ -17,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-rdgKbVQaELilPrN4ve8RbbaLiT14Xex0esy5vUX2ZBc="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - wheel - ]; + propagatedBuildInputs = [ wheel ]; nativeCheckInputs = [ pytestCheckHook @@ -31,9 +34,7 @@ buildPythonPackage rec { pytest-sugar ]; - pythonImportsCheck = [ - "backports.cached_property" - ]; + pythonImportsCheck = [ "backports.cached_property" ]; meta = with lib; { description = "Python 3.8 functools.cached_property backport to python 3.6"; diff --git a/pkgs/development/python-modules/backports-datetime-fromisoformat/default.nix b/pkgs/development/python-modules/backports-datetime-fromisoformat/default.nix index febf3d50bb4f..d79b11eeb63b 100644 --- a/pkgs/development/python-modules/backports-datetime-fromisoformat/default.nix +++ b/pkgs/development/python-modules/backports-datetime-fromisoformat/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytz -, pytestCheckHook + # tests + pytz, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-c3LCTOKva99+x96iLHNnL1e1Ft1M1CsjQX+nEqAlXUs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytz @@ -32,13 +31,11 @@ buildPythonPackage rec { ]; disabledTestPaths = [ - # ModuleNotFoundError: No module named 'developmental_release' + # ModuleNotFoundError: No module named 'developmental_release' "release/test_developmental_release.py" ]; - pythonImportsCheck = [ - "backports.datetime_fromisoformat" - ]; + pythonImportsCheck = [ "backports.datetime_fromisoformat" ]; meta = with lib; { changelog = "https://github.com/movermeyer/backports.datetime_fromisoformat/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/backports-entry-points-selectable/default.nix b/pkgs/development/python-modules/backports-entry-points-selectable/default.nix index ea57e4887bff..9a0baed50a48 100644 --- a/pkgs/development/python-modules/backports-entry-points-selectable/default.nix +++ b/pkgs/development/python-modules/backports-entry-points-selectable/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, importlib-metadata +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + importlib-metadata, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-F6i0SucA+6VIaG3SdN3JHAYDcVZc1jgGwgodM5EXRuY="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix b/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix index 237cde584ebd..644ccaf657dd 100644 --- a/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix +++ b/pkgs/development/python-modules/backports-shutil-get-terminal-size/default.nix @@ -1,35 +1,37 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pythonOlder, }: -if !(pythonOlder "3.3") then null else buildPythonPackage { - pname = "backports-shutil-get-terminal-size"; - version = "unstable-2016-02-21"; +if !(pythonOlder "3.3") then + null +else + buildPythonPackage { + pname = "backports-shutil-get-terminal-size"; + version = "unstable-2016-02-21"; - # there have been numerous fixes committed since the initial release. - # Most notably fixing a problem where the backport would always return - # terminal size 0. See https://trac.sagemath.org/ticket/25320#comment:5. - # Unfortunately the maintainer seems inactive and has not responded to - # a request for a new release since 2016: - # https://github.com/chrippa/backports.shutil_get_terminal_size/issues/7 - src = fetchFromGitHub { - owner = "chrippa"; - repo = "backports.shutil_get_terminal_size"; - rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a"; - sha256 = "17sgv8vg0xxfdnca45l1mmwwvj29gich5c8kqznnj51kfccch7sg"; - }; + # there have been numerous fixes committed since the initial release. + # Most notably fixing a problem where the backport would always return + # terminal size 0. See https://trac.sagemath.org/ticket/25320#comment:5. + # Unfortunately the maintainer seems inactive and has not responded to + # a request for a new release since 2016: + # https://github.com/chrippa/backports.shutil_get_terminal_size/issues/7 + src = fetchFromGitHub { + owner = "chrippa"; + repo = "backports.shutil_get_terminal_size"; + rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a"; + sha256 = "17sgv8vg0xxfdnca45l1mmwwvj29gich5c8kqznnj51kfccch7sg"; + }; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; - meta = with lib; { - description = "A backport of the get_terminal_size function from Python 3.3’s shutil."; - homepage = "https://github.com/chrippa/backports.shutil_get_terminal_size"; - license = with licenses; [ mit ]; - maintainers = teams.sage.members; - }; -} + meta = with lib; { + description = "A backport of the get_terminal_size function from Python 3.3’s shutil."; + homepage = "https://github.com/chrippa/backports.shutil_get_terminal_size"; + license = with licenses; [ mit ]; + maintainers = teams.sage.members; + }; + } diff --git a/pkgs/development/python-modules/backports-shutil-which/default.nix b/pkgs/development/python-modules/backports-shutil-which/default.nix index 290e4e269781..07335b5bf6b1 100644 --- a/pkgs/development/python-modules/backports-shutil-which/default.nix +++ b/pkgs/development/python-modules/backports-shutil-which/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, pytest }: +{ + lib, + fetchPypi, + buildPythonPackage, + pytest, +}: buildPythonPackage rec { pname = "backports-shutil-which"; diff --git a/pkgs/development/python-modules/backports-strenum/default.nix b/pkgs/development/python-modules/backports-strenum/default.nix index 229f9282c355..71312dd1677e 100644 --- a/pkgs/development/python-modules/backports-strenum/default.nix +++ b/pkgs/development/python-modules/backports-strenum/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-jbMR9VAGsMAJTP2VQyRr+RPYwWwk8hGAYs4KoZEWa7U="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "backports.strenum" - ]; + pythonImportsCheck = [ "backports.strenum" ]; meta = with lib; { description = "Base class for creating enumerated constants that are also subclasses of str"; diff --git a/pkgs/development/python-modules/backports-zoneinfo/default.nix b/pkgs/development/python-modules/backports-zoneinfo/default.nix index ff5196855d34..a27197dea80d 100644 --- a/pkgs/development/python-modules/backports-zoneinfo/default.nix +++ b/pkgs/development/python-modules/backports-zoneinfo/default.nix @@ -1,13 +1,16 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, python -, substituteAll -, importlib-resources -, tzdata -, hypothesis -, pytestCheckHook -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + python, + substituteAll, + importlib-resources, + tzdata, + hypothesis, + pytestCheckHook, + fetchpatch, }: buildPythonPackage rec { @@ -50,11 +53,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - tzdata - ] ++ lib.optionals (pythonOlder "3.7") [ - importlib-resources - ]; + propagatedBuildInputs = [ tzdata ] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ]; pythonImportsCheck = [ "backports.zoneinfo" ]; diff --git a/pkgs/development/python-modules/bacpypes/default.nix b/pkgs/development/python-modules/bacpypes/default.nix index 9a30c1bbd6a9..8819f55e0a66 100644 --- a/pkgs/development/python-modules/bacpypes/default.nix +++ b/pkgs/development/python-modules/bacpypes/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, wheel -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + wheel, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -28,22 +29,16 @@ buildPythonPackage rec { --replace "(3, 8): 'py34'," "(3, 8): 'py34', (3, 9): 'py34', (3, 10): 'py34', (3, 11): 'py34', (3, 12): 'py34'," ''; - propagatedBuildInputs = [ - wheel - ]; + propagatedBuildInputs = [ wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Test fails with a an error: AssertionError: assert 30 == 31 "test_recurring_task_5" ]; - pythonImportsCheck = [ - "bacpypes" - ]; + pythonImportsCheck = [ "bacpypes" ]; meta = with lib; { description = "Module for the BACnet application layer and network layer"; diff --git a/pkgs/development/python-modules/bagit/default.nix b/pkgs/development/python-modules/bagit/default.nix index abc9fdb1661f..6742f35877c4 100644 --- a/pkgs/development/python-modules/bagit/default.nix +++ b/pkgs/development/python-modules/bagit/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gettext -, mock -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gettext, + mock, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { hash = "sha256-t01P7MPWgOrktuW2zF0TIzt6u/jkLmrpD2OnqawhJaI="; }; - nativeBuildInputs = [ gettext setuptools-scm ]; + nativeBuildInputs = [ + gettext + setuptools-scm + ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/bambi/default.nix b/pkgs/development/python-modules/bambi/default.nix index 5a3a23a4e3d0..9f051f511c4d 100644 --- a/pkgs/development/python-modules/bambi/default.nix +++ b/pkgs/development/python-modules/bambi/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, arviz -, formulae -, graphviz -, pandas -, pymc -, blackjax -, numpyro -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + arviz, + formulae, + graphviz, + pandas, + pymc, + blackjax, + numpyro, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-9+uTyV3mQlHOKAjXohwkhTzNe/+I5XR/LuH1ZYvhc8I="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ arviz @@ -80,9 +79,7 @@ buildPythonPackage rec { "test_with_user_values" ]; - pythonImportsCheck = [ - "bambi" - ]; + pythonImportsCheck = [ "bambi" ]; meta = with lib; { homepage = "https://bambinos.github.io/bambi"; diff --git a/pkgs/development/python-modules/banal/default.nix b/pkgs/development/python-modules/banal/default.nix index d8843dd89486..a2b938a5f035 100644 --- a/pkgs/development/python-modules/banal/default.nix +++ b/pkgs/development/python-modules/banal/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { pname = "banal"; @@ -15,9 +16,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "banal" - ]; + pythonImportsCheck = [ "banal" ]; meta = with lib; { description = "Commons of banal micro-functions for Python"; diff --git a/pkgs/development/python-modules/bandcamp-api/default.nix b/pkgs/development/python-modules/bandcamp-api/default.nix index 31efe43cbef5..c1feeae7ffe1 100644 --- a/pkgs/development/python-modules/bandcamp-api/default.nix +++ b/pkgs/development/python-modules/bandcamp-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beautifulsoup4 -, demjson3 -, html5lib -, lxml -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + beautifulsoup4, + demjson3, + html5lib, + lxml, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bandit/default.nix b/pkgs/development/python-modules/bandit/default.nix index e309643e8c6e..b81a24dbf48d 100644 --- a/pkgs/development/python-modules/bandit/default.nix +++ b/pkgs/development/python-modules/bandit/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, gitpython -, pbr -, pyyaml -, rich -, stevedore +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + gitpython, + pbr, + pyyaml, + rich, + stevedore, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Nt5Q9yCFarJKJNuqX+4sZgUO2XwUd+ChFZ3qsXdeq2s="; }; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; propagatedBuildInputs = [ gitpython @@ -36,9 +35,7 @@ buildPythonPackage rec { # and this requires Network Connectivity doCheck = false; - pythonImportsCheck = [ - "bandit" - ]; + pythonImportsCheck = [ "bandit" ]; meta = with lib; { description = "Security oriented static analyser for python code"; diff --git a/pkgs/development/python-modules/bangla/default.nix b/pkgs/development/python-modules/bangla/default.nix index d5664d7aeae0..4cdaee2a2529 100644 --- a/pkgs/development/python-modules/bangla/default.nix +++ b/pkgs/development/python-modules/bangla/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bap/default.nix b/pkgs/development/python-modules/bap/default.nix index a3316b8651f5..67460f40751b 100644 --- a/pkgs/development/python-modules/bap/default.nix +++ b/pkgs/development/python-modules/bap/default.nix @@ -1,4 +1,10 @@ -{lib, buildPythonPackage, fetchFromGitHub, bap, requests}: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + bap, + requests, +}: buildPythonPackage rec { pname = "bap"; @@ -11,7 +17,10 @@ buildPythonPackage rec { sha256 = "1ahkrmcn7qaivps1gar8wd9mq2qqyx6zzvznf5r9rr05h17x5lbp"; }; - propagatedBuildInputs = [bap requests]; + propagatedBuildInputs = [ + bap + requests + ]; doCheck = false; diff --git a/pkgs/development/python-modules/barectf/default.nix b/pkgs/development/python-modules/barectf/default.nix index ed9be93dd021..e56367d85fa1 100644 --- a/pkgs/development/python-modules/barectf/default.nix +++ b/pkgs/development/python-modules/barectf/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest7CheckHook -, pythonRelaxDepsHook -, setuptools -, jsonschema -, pyyaml -, jinja2 -, termcolor +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest7CheckHook, + pythonRelaxDepsHook, + setuptools, + jsonschema, + pyyaml, + jinja2, + termcolor, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { termcolor ]; - pythonImportsCheck = [ - "barectf" - ]; + pythonImportsCheck = [ "barectf" ]; - nativeCheckInputs = [ - pytest7CheckHook - ]; + nativeCheckInputs = [ pytest7CheckHook ]; meta = with lib; { description = "Generator of ANSI C tracers which output CTF data streams "; diff --git a/pkgs/development/python-modules/baron/default.nix b/pkgs/development/python-modules/baron/default.nix index d02a434248fb..8e766dc78486 100644 --- a/pkgs/development/python-modules/baron/default.nix +++ b/pkgs/development/python-modules/baron/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchPypi, buildPythonPackage, rply, pytestCheckHook, isPy3k }: +{ + lib, + fetchPypi, + buildPythonPackage, + rply, + pytestCheckHook, + isPy3k, +}: buildPythonPackage rec { pname = "baron"; diff --git a/pkgs/development/python-modules/base2048/default.nix b/pkgs/development/python-modules/base2048/default.nix index 8d75bd93e336..3f8ecf0c58b1 100644 --- a/pkgs/development/python-modules/base2048/default.nix +++ b/pkgs/development/python-modules/base2048/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, cargo -, fetchFromGitHub -, frelatage -, libiconv -, maturin -, pytestCheckHook -, pythonOlder -, rustc -, rustPlatform +{ + lib, + stdenv, + buildPythonPackage, + cargo, + fetchFromGitHub, + frelatage, + libiconv, + maturin, + pytestCheckHook, + pythonOlder, + rustc, + rustPlatform, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-OXlfycJB1IrW2Zq0xPDGjjwCdRTWtX/ixPGWcd+YjAg="; }; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; postPatch = '' ln -s ${./Cargo.lock} Cargo.lock @@ -41,23 +40,15 @@ buildPythonPackage rec { rustc ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; passthru.optional-dependencies = { - fuzz = [ - frelatage - ]; + fuzz = [ frelatage ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "base2048" - ]; + pythonImportsCheck = [ "base2048" ]; meta = with lib; { description = "Binary encoding with base-2048 in Python with Rust"; diff --git a/pkgs/development/python-modules/base36/default.nix b/pkgs/development/python-modules/base36/default.nix index 461ecc912791..33909a6c942a 100644 --- a/pkgs/development/python-modules/base36/default.nix +++ b/pkgs/development/python-modules/base36/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/base58/default.nix b/pkgs/development/python-modules/base58/default.nix index 020f103851cb..f3eaa3b3e858 100644 --- a/pkgs/development/python-modules/base58/default.nix +++ b/pkgs/development/python-modules/base58/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyhamcrest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pyhamcrest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/base58check/default.nix b/pkgs/development/python-modules/base58check/default.nix index 7b635abd0de1..338775bf6cee 100644 --- a/pkgs/development/python-modules/base58check/default.nix +++ b/pkgs/development/python-modules/base58check/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-Tig6beLRDsXC//x4+t/z2BGaJQWzcP0J+QEKx3D0rhs="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "base58check" - ]; + pythonImportsCheck = [ "base58check" ]; meta = with lib; { description = "Implementation of the Base58Check encoding scheme"; diff --git a/pkgs/development/python-modules/base64io/default.nix b/pkgs/development/python-modules/base64io/default.nix index 0ca50fa63dc5..c5ba9c836144 100644 --- a/pkgs/development/python-modules/base64io/default.nix +++ b/pkgs/development/python-modules/base64io/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder -, setuptools -, unstableGitUpdater +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, + setuptools, + unstableGitUpdater, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-RFl0iuyHdPf3VpBxH4m/N2yaKEBxkNMT1ldZP9VGGOk="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/baseline/default.nix b/pkgs/development/python-modules/baseline/default.nix index d64fbd26f6f3..1fadfe681b88 100644 --- a/pkgs/development/python-modules/baseline/default.nix +++ b/pkgs/development/python-modules/baseline/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + pytestCheckHook, +}: buildPythonPackage rec { pname = "baseline"; diff --git a/pkgs/development/python-modules/baselines/default.nix b/pkgs/development/python-modules/baselines/default.nix index 70be97034ce0..fab9db7660d9 100644 --- a/pkgs/development/python-modules/baselines/default.nix +++ b/pkgs/development/python-modules/baselines/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, gym -, scipy -, tqdm -, joblib -, dill -, progressbar2 -, cloudpickle -, click -, pyzmq -, tensorflow -, mpi4py +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + gym, + scipy, + tqdm, + joblib, + dill, + progressbar2, + cloudpickle, + click, + pyzmq, + tensorflow, + mpi4py, }: buildPythonPackage { @@ -52,9 +53,7 @@ buildPythonPackage { # fails to create a daemon, probably because of sandboxing doCheck = false; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; meta = with lib; { description = "High-quality implementations of reinforcement learning algorithms"; diff --git a/pkgs/development/python-modules/basemap-data/default.nix b/pkgs/development/python-modules/basemap-data/default.nix index 390b4afcf760..af62404ff84e 100644 --- a/pkgs/development/python-modules/basemap-data/default.nix +++ b/pkgs/development/python-modules/basemap-data/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, basemap -, cython -, geos -, numpy -, matplotlib -, pyproj -, pyshp -, python -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + basemap, + cython, + geos, + numpy, + matplotlib, + pyproj, + pyshp, + python, + setuptools, }: buildPythonPackage rec { @@ -23,12 +24,15 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ "mpl_toolkits.basemap_data" ]; + pythonImportsCheck = [ "mpl_toolkits.basemap_data" ]; meta = with lib; { homepage = "https://matplotlib.org/basemap/"; description = "Data assets for matplotlib basemap"; - license = with licenses; [ mit lgpl3Plus ]; + license = with licenses; [ + mit + lgpl3Plus + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/basemap/default.nix b/pkgs/development/python-modules/basemap/default.nix index 3dd2e761b097..ecc9b0bae69e 100644 --- a/pkgs/development/python-modules/basemap/default.nix +++ b/pkgs/development/python-modules/basemap/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, basemap-data -, cython -, geos -, numpy -, matplotlib -, pillow -, pyproj -, pyshp -, python -, pythonRelaxDepsHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + basemap-data, + cython, + geos, + numpy, + matplotlib, + pillow, + pyproj, + pyshp, + python, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -70,6 +71,9 @@ buildPythonPackage rec { http://matplotlib.github.com/basemap/users/examples.html for examples of what it can do. ''; maintainers = with maintainers; [ ]; - license = with licenses; [ mit lgpl21 ]; + license = with licenses; [ + mit + lgpl21 + ]; }; } diff --git a/pkgs/development/python-modules/bases/default.nix b/pkgs/development/python-modules/bases/default.nix index 9c25ffaa63f8..062c757f8ce5 100644 --- a/pkgs/development/python-modules/bases/default.nix +++ b/pkgs/development/python-modules/bases/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, pytestCheckHook + pytestCheckHook, -, pythonOlder + pythonOlder, -, setuptools -, wheel -, setuptools-scm + setuptools, + wheel, + setuptools-scm, # for tests -, base58 + base58, -, typing-extensions -, typing-validation + typing-extensions, + typing-validation, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bash-kernel/default.nix b/pkgs/development/python-modules/bash-kernel/default.nix index 57f28860fca9..8ed6a8c79cfe 100644 --- a/pkgs/development/python-modules/bash-kernel/default.nix +++ b/pkgs/development/python-modules/bash-kernel/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, flit-core -, ipykernel -, python -, pexpect -, bashInteractive -, substituteAll +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + flit-core, + ipykernel, + python, + pexpect, + bashInteractive, + substituteAll, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ ipykernel @@ -55,7 +54,7 @@ buildPythonPackage rec { # Evaluate a test notebook with papermill cd $(mktemp -d) - ${python.withPackages (ps: [ps.papermill])}/bin/papermill --kernel bash ${./test.ipynb} out.ipynb + ${python.withPackages (ps: [ ps.papermill ])}/bin/papermill --kernel bash ${./test.ipynb} out.ipynb runHook postCheck ''; diff --git a/pkgs/development/python-modules/bashlex/default.nix b/pkgs/development/python-modules/bashlex/default.nix index ed5cb1a6091a..17d2485c6def 100644 --- a/pkgs/development/python-modules/bashlex/default.nix +++ b/pkgs/development/python-modules/bashlex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} -c 'import bashlex' ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "bashlex" ]; diff --git a/pkgs/development/python-modules/basiciw/default.nix b/pkgs/development/python-modules/basiciw/default.nix index 33ea28ff0fb8..45b1d5407db4 100644 --- a/pkgs/development/python-modules/basiciw/default.nix +++ b/pkgs/development/python-modules/basiciw/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gcc -, wirelesstools -, isPy27 -, isPyPy +{ + lib, + buildPythonPackage, + fetchPypi, + gcc, + wirelesstools, + isPy27, + isPyPy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/batchgenerators/default.nix b/pkgs/development/python-modules/batchgenerators/default.nix index 56476a0e7d39..e07567ff1be0 100644 --- a/pkgs/development/python-modules/batchgenerators/default.nix +++ b/pkgs/development/python-modules/batchgenerators/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, future -, numpy -, pillow -, scipy -, scikit-learn -, scikit-image -, threadpoolctl +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + future, + numpy, + pillow, + scipy, + scikit-learn, + scikit-image, + threadpoolctl, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { --replace '"unittest2",' "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # see https://github.com/MIC-DKFZ/batchgenerators/pull/78 disabledTestPaths = [ "tests/test_axis_mirroring.py" ]; diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index 87c6aa2cafbf..d5cda51e3227 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, jinja2 -, jupyterhub -, pythonOlder -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + jinja2, + jupyterhub, + pythonOlder, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "batchspawner" - ]; + pythonImportsCheck = [ "batchspawner" ]; meta = with lib; { description = "A spawner for Jupyterhub to spawn notebooks using batch resource managers"; diff --git a/pkgs/development/python-modules/baycomp/default.nix b/pkgs/development/python-modules/baycomp/default.nix index 6ed381851535..c1ae4c14efb6 100644 --- a/pkgs/development/python-modules/baycomp/default.nix +++ b/pkgs/development/python-modules/baycomp/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, scipy -, scikit-learn -, matplotlib -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + scipy, + scikit-learn, + matplotlib, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bayesian-optimization/default.nix b/pkgs/development/python-modules/bayesian-optimization/default.nix index dda52e8ebba8..f8cfa8af8b4c 100644 --- a/pkgs/development/python-modules/bayesian-optimization/default.nix +++ b/pkgs/development/python-modules/bayesian-optimization/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, scikit-learn -, scipy -, colorama -, pytestCheckHook -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + scikit-learn, + scipy, + colorama, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bbox/default.nix b/pkgs/development/python-modules/bbox/default.nix index 5e601e43b564..0a41bccf7111 100644 --- a/pkgs/development/python-modules/bbox/default.nix +++ b/pkgs/development/python-modules/bbox/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, matplotlib -, numpy -, pendulum -, pillow -, poetry-core -, pyquaternion +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + matplotlib, + numpy, + pendulum, + pillow, + poetry-core, + pyquaternion, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-FrJ8FhlqwmnEB/QvPlkDfqZncNGPhwY9aagM9yv1LGs="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyquaternion @@ -47,9 +46,7 @@ buildPythonPackage rec { "test_multi_jaccard_index_2d_performance" ]; - pythonImportsCheck = [ - "bbox" - ]; + pythonImportsCheck = [ "bbox" ]; meta = with lib; { description = "Python library for 2D/3D bounding boxes"; diff --git a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix index 2322f0407f9f..2fd65621f130 100644 --- a/pkgs/development/python-modules/bc-jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/bc-jsonpath-ng/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, decorator -, fetchFromGitHub -, ply -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + decorator, + fetchFromGitHub, + ply, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { ply ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Exclude tests that require oslotest "tests/test_jsonpath_rw_ext.py" ]; - pythonImportsCheck = [ - "bc_jsonpath_ng" - ]; + pythonImportsCheck = [ "bc_jsonpath_ng" ]; meta = with lib; { description = "JSONPath implementation for Python"; diff --git a/pkgs/development/python-modules/bc-python-hcl2/default.nix b/pkgs/development/python-modules/bc-python-hcl2/default.nix index dc74d1612760..519a39c53bac 100644 --- a/pkgs/development/python-modules/bc-python-hcl2/default.nix +++ b/pkgs/development/python-modules/bc-python-hcl2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lark -, pynose -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + lark, + pynose, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,16 +26,12 @@ buildPythonPackage rec { setuptools ]; - dependencies = [ - lark - ]; + dependencies = [ lark ]; # This fork of python-hcl2 doesn't ship tests doCheck = false; - pythonImportsCheck = [ - "hcl2" - ]; + pythonImportsCheck = [ "hcl2" ]; meta = with lib; { description = "Parser for HCL2 written in Python using Lark"; diff --git a/pkgs/development/python-modules/bcdoc/default.nix b/pkgs/development/python-modules/bcdoc/default.nix index b9af31589539..5d1c96392d0b 100644 --- a/pkgs/development/python-modules/bcdoc/default.nix +++ b/pkgs/development/python-modules/bcdoc/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, docutils, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + docutils, + six, +}: buildPythonPackage rec { pname = "bcdoc"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "f568c182e06883becf7196f227052435cffd45604700c82362ca77d3427b6202"; }; - buildInputs = [ docutils six ]; + buildInputs = [ + docutils + six + ]; # Tests fail due to nix file timestamp normalization. doCheck = false; diff --git a/pkgs/development/python-modules/bcf/default.nix b/pkgs/development/python-modules/bcf/default.nix index 08fb7d4249bd..f8a1f6825d8e 100644 --- a/pkgs/development/python-modules/bcf/default.nix +++ b/pkgs/development/python-modules/bcf/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, appdirs -, click -, colorama -, intelhex -, packaging -, pyaml -, pyftdi -, pyserial -, requests -, schema +{ + lib, + buildPythonPackage, + fetchFromGitHub, + appdirs, + click, + colorama, + intelhex, + packaging, + pyaml, + pyftdi, + pyserial, + requests, + schema, }: buildPythonPackage rec { pname = "bcf"; diff --git a/pkgs/development/python-modules/bcg/default.nix b/pkgs/development/python-modules/bcg/default.nix index c039a1e30072..1855e95eddba 100644 --- a/pkgs/development/python-modules/bcg/default.nix +++ b/pkgs/development/python-modules/bcg/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, appdirs -, click -, click-log -, paho-mqtt -, pyaml -, pyserial -, schema -, simplejson +{ + lib, + buildPythonPackage, + fetchFromGitHub, + appdirs, + click, + click-log, + paho-mqtt, + pyaml, + pyserial, + schema, + simplejson, }: buildPythonPackage rec { pname = "bcg"; diff --git a/pkgs/development/python-modules/bch/default.nix b/pkgs/development/python-modules/bch/default.nix index 2885cc47bfe1..b29e2f0dfe94 100644 --- a/pkgs/development/python-modules/bch/default.nix +++ b/pkgs/development/python-modules/bch/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, click-log -, paho-mqtt -, pyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + click-log, + paho-mqtt, + pyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bcrypt/3.nix b/pkgs/development/python-modules/bcrypt/3.nix index fec467f983cc..86b9361ff4ff 100644 --- a/pkgs/development/python-modules/bcrypt/3.nix +++ b/pkgs/development/python-modules/bcrypt/3.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, setuptools -, isPyPy -, fetchPypi -, pythonOlder -, cffi -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + setuptools, + isPyPy, + fetchPypi, + pythonOlder, + cffi, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -21,26 +22,18 @@ buildPythonPackage rec { hash = "sha256-QzxBDCF3BXcF2iqfLNAd0VdJOyp6wUyFk6FrPatra/s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ six cffi ]; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bcrypt" - ]; + pythonImportsCheck = [ "bcrypt" ]; meta = with lib; { description = "Modern password hashing for your software and your servers"; diff --git a/pkgs/development/python-modules/bcrypt/default.nix b/pkgs/development/python-modules/bcrypt/default.nix index a8f751056d90..e4dcaceabbdf 100644 --- a/pkgs/development/python-modules/bcrypt/default.nix +++ b/pkgs/development/python-modules/bcrypt/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, cargo -, rustPlatform -, rustc -, setuptools -, setuptools-rust -, fetchPypi -, pythonOlder -, pytestCheckHook -, libiconv -, stdenv +{ + lib, + buildPythonPackage, + cargo, + rustPlatform, + rustc, + setuptools, + setuptools-rust, + fetchPypi, + pythonOlder, + pytestCheckHook, + libiconv, + stdenv, # for passthru.tests -, asyncssh -, django_4 -, fastapi -, paramiko -, twisted + asyncssh, + django_4, + fastapi, + paramiko, + twisted, }: buildPythonPackage rec { @@ -49,16 +50,18 @@ buildPythonPackage rec { # Remove when https://github.com/NixOS/nixpkgs/pull/190093 lands. buildInputs = lib.optional stdenv.isDarwin libiconv; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bcrypt" - ]; + pythonImportsCheck = [ "bcrypt" ]; passthru.tests = { - inherit asyncssh django_4 fastapi paramiko twisted; + inherit + asyncssh + django_4 + fastapi + paramiko + twisted + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/bdffont/default.nix b/pkgs/development/python-modules/bdffont/default.nix index 29cbe658db4d..cf0de4ceba09 100644 --- a/pkgs/development/python-modules/bdffont/default.nix +++ b/pkgs/development/python-modules/bdffont/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, nix-update-script -, hatch-vcs -, hatchling -, brotli -, fonttools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + nix-update-script, + hatch-vcs, + hatchling, + brotli, + fonttools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/beaker/default.nix b/pkgs/development/python-modules/beaker/default.nix index b55b8ce93c69..4b1b91eeba0a 100644 --- a/pkgs/development/python-modules/beaker/default.nix +++ b/pkgs/development/python-modules/beaker/default.nix @@ -1,22 +1,23 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, glibcLocales -, nose -, pylibmc -, python-memcached -, redis -, pymongo -, mock -, webtest -, sqlalchemy -, pycrypto -, cryptography -, isPy27 -, isPy3k -, funcsigs ? null -, pycryptopp ? null +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + glibcLocales, + nose, + pylibmc, + python-memcached, + redis, + pymongo, + mock, + webtest, + sqlalchemy, + pycrypto, + cryptography, + isPy27, + isPy3k, + funcsigs ? null, + pycryptopp ? null, }: buildPythonPackage rec { @@ -31,14 +32,16 @@ buildPythonPackage rec { sha256 = "059sc7iar90lc2y9mppdis5ddfcxyirz03gmsfb0307f5dsa1dhj"; }; - propagatedBuildInputs = [ - sqlalchemy - pycrypto - cryptography - ] ++ lib.optionals (isPy27) [ - funcsigs - pycryptopp - ]; + propagatedBuildInputs = + [ + sqlalchemy + pycrypto + cryptography + ] + ++ lib.optionals (isPy27) [ + funcsigs + pycryptopp + ]; nativeCheckInputs = [ glibcLocales @@ -73,8 +76,6 @@ buildPythonPackage rec { homepage = "https://github.com/bbangert/beaker"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ domenkozar ]; - knownVulnerabilities = [ - "CVE-2013-7489" - ]; + knownVulnerabilities = [ "CVE-2013-7489" ]; }; } diff --git a/pkgs/development/python-modules/beancount-black/default.nix b/pkgs/development/python-modules/beancount-black/default.nix index 0b4eb2ba6996..4196997a0c95 100644 --- a/pkgs/development/python-modules/beancount-black/default.nix +++ b/pkgs/development/python-modules/beancount-black/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, beancount-parser -, click -, poetry-core -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + beancount-parser, + click, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-SoAic9UYKE9lhMpl44VosJmmjKJjDrKOyMeUO931Ztg="; }; - buildInputs = [ - poetry-core - ]; + buildInputs = [ poetry-core ]; propagatedBuildInputs = [ beancount-parser click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "beancount_black" - ]; + pythonImportsCheck = [ "beancount_black" ]; meta = with lib; { description = "Opinioned code formatter for Beancount"; diff --git a/pkgs/development/python-modules/beancount-docverif/default.nix b/pkgs/development/python-modules/beancount-docverif/default.nix index d614b2f12d4f..e78db14aa242 100644 --- a/pkgs/development/python-modules/beancount-docverif/default.nix +++ b/pkgs/development/python-modules/beancount-docverif/default.nix @@ -1,7 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, setuptools-scm -, beancount -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + beancount, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,30 +18,24 @@ buildPythonPackage rec { hash = "sha256-CFBv1FZP5JO+1MPnD86ttrO42zZlvE157zqig7s4HOg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - beancount - ]; + propagatedBuildInputs = [ beancount ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/siriobalmelli/beancount_docverif"; description = "Document verification plugin for Beancount"; longDescription = '' - Docverif is the "Document Verification" plugin for beancount, fulfilling the following functions: + Docverif is the "Document Verification" plugin for beancount, fulfilling the following functions: - - Require that every transaction touching an account have an accompanying document on disk. - - Explicitly declare the name of a document accompanying a transaction. - - Explicitly declare that a transaction is expected not to have an accompanying document. - - Look for an "implicit" PDF document matching transaction data. - - Associate (and require) a document with any type of entry, including open entries themselves. - - Guarantee integrity: verify that every document declared does in fact exist on disk. + - Require that every transaction touching an account have an accompanying document on disk. + - Explicitly declare the name of a document accompanying a transaction. + - Explicitly declare that a transaction is expected not to have an accompanying document. + - Look for an "implicit" PDF document matching transaction data. + - Associate (and require) a document with any type of entry, including open entries themselves. + - Guarantee integrity: verify that every document declared does in fact exist on disk. ''; license = licenses.mit; maintainers = with maintainers; [ siriobalmelli ]; diff --git a/pkgs/development/python-modules/beancount-parser/default.nix b/pkgs/development/python-modules/beancount-parser/default.nix index f3319a58b06e..3493a7f61143 100644 --- a/pkgs/development/python-modules/beancount-parser/default.nix +++ b/pkgs/development/python-modules/beancount-parser/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, lark -, poetry-core -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + lark, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-8YcrsLdSRTixKXU/IM821kNcBo0jB/8DXA1/KiedsBY="; }; - buildInputs = [ - poetry-core - ]; + buildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - lark - ]; + propagatedBuildInputs = [ lark ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "beancount_parser" - ]; + pythonImportsCheck = [ "beancount_parser" ]; meta = with lib; { description = "Standalone Lark based Beancount syntax parser"; diff --git a/pkgs/development/python-modules/beancount/default.nix b/pkgs/development/python-modules/beancount/default.nix index ef415aa83d7a..ebe39136080e 100644 --- a/pkgs/development/python-modules/beancount/default.nix +++ b/pkgs/development/python-modules/beancount/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, beautifulsoup4 -, bottle -, chardet -, python-dateutil -, google-api-python-client -, google-auth-oauthlib -, lxml -, oauth2client -, ply -, pytest -, python-magic -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + beautifulsoup4, + bottle, + chardet, + python-dateutil, + google-api-python-client, + google-auth-oauthlib, + lxml, + oauth2client, + ply, + pytest, + python-magic, + requests, }: buildPythonPackage rec { @@ -52,9 +53,9 @@ buildPythonPackage rec { homepage = "https://github.com/beancount/beancount"; description = "Double-entry bookkeeping computer language"; longDescription = '' - A double-entry bookkeeping computer language that lets you define - financial transaction records in a text file, read them in memory, - generate a variety of reports from them, and provides a web interface. + A double-entry bookkeeping computer language that lets you define + financial transaction records in a text file, read them in memory, + generate a variety of reports from them, and provides a web interface. ''; license = licenses.gpl2Only; maintainers = with maintainers; [ bhipple ]; diff --git a/pkgs/development/python-modules/beanhub-cli/default.nix b/pkgs/development/python-modules/beanhub-cli/default.nix index 25c003e19292..5573d7618a23 100644 --- a/pkgs/development/python-modules/beanhub-cli/default.nix +++ b/pkgs/development/python-modules/beanhub-cli/default.nix @@ -1,25 +1,26 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, beancount-black -, beancount-parser -, beanhub-forms -, beanhub-import -, click -, fastapi -, httpx -, jinja2 -, poetry-core -, pydantic -, pydantic-core -, pydantic-settings -, pytz -, pyyaml -, rich -, starlette-wtf -, uvicorn +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + beancount-black, + beancount-parser, + beanhub-forms, + beanhub-import, + click, + fastapi, + httpx, + jinja2, + poetry-core, + pydantic, + pydantic-core, + pydantic-settings, + pytz, + pyyaml, + rich, + starlette-wtf, + uvicorn, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { hash = "sha256-vYBbaUVJAs+aIp6aQpJb62DEDxe/sQTzgOkjPq6ADoc="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ beancount-black @@ -63,9 +62,7 @@ buildPythonPackage rec { httpx ]; - pythonImportsCheck = [ - "beanhub_cli" - ]; + pythonImportsCheck = [ "beanhub_cli" ]; meta = { description = "Command line tools for BeanHub or Beancount users"; diff --git a/pkgs/development/python-modules/beanhub-extract/default.nix b/pkgs/development/python-modules/beanhub-extract/default.nix index c0c623b88f30..66c0e76dd598 100644 --- a/pkgs/development/python-modules/beanhub-extract/default.nix +++ b/pkgs/development/python-modules/beanhub-extract/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, poetry-core -, pytz +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + poetry-core, + pytz, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-Wt8ZCyCaERNXEd0/Q89QWUW/wGFSHAP2RZLhnv5xkgY="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - pytz - ]; + dependencies = [ pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "beanhub_extract" - ]; + pythonImportsCheck = [ "beanhub_extract" ]; meta = { description = "The simple library for extracting all kind of bank account transaction export files, mostly for beanhub-import to ingest and generate transactions"; diff --git a/pkgs/development/python-modules/beanhub-forms/default.nix b/pkgs/development/python-modules/beanhub-forms/default.nix index 27cf644b96f0..2482d0306e7c 100644 --- a/pkgs/development/python-modules/beanhub-forms/default.nix +++ b/pkgs/development/python-modules/beanhub-forms/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, jinja2 -, multidict -, poetry-core -, pydantic -, pyyaml -, wtforms +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + jinja2, + multidict, + poetry-core, + pydantic, + pyyaml, + wtforms, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-313c+ENmTe1LyfEiMXNB9AUoGx3Yv/1D0T3HnAbd+Zw="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ jinja2 @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "beanhub_forms" - ]; + pythonImportsCheck = [ "beanhub_forms" ]; meta = { description = "Library for generating and processing BeanHub's custom forms"; diff --git a/pkgs/development/python-modules/beanhub-import/default.nix b/pkgs/development/python-modules/beanhub-import/default.nix index 7097c45356a1..4d205ebb54a6 100644 --- a/pkgs/development/python-modules/beanhub-import/default.nix +++ b/pkgs/development/python-modules/beanhub-import/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, beancount-black -, beancount-parser -, beanhub-extract -, jinja2 -, poetry-core -, pydantic -, pytz -, pyyaml +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + beancount-black, + beancount-parser, + beanhub-extract, + jinja2, + poetry-core, + pydantic, + pytz, + pyyaml, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-BH+d7cKC83b7T2Z1Xlwpsv3KACo1vDn6v65tElhir/c="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ beancount-black @@ -41,13 +40,9 @@ buildPythonPackage rec { pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "beanhub_import" - ]; + pythonImportsCheck = [ "beanhub_import" ]; meta = { description = "Declarative idempotent rule-based Beancount transaction import engine in Python"; diff --git a/pkgs/development/python-modules/beanstalkc/default.nix b/pkgs/development/python-modules/beanstalkc/default.nix index c0590651ded8..d5b4a294666e 100644 --- a/pkgs/development/python-modules/beanstalkc/default.nix +++ b/pkgs/development/python-modules/beanstalkc/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchFromGitHub, buildPythonPackage }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, +}: buildPythonPackage rec { pname = "beanstalkc"; diff --git a/pkgs/development/python-modules/beartype/default.nix b/pkgs/development/python-modules/beartype/default.nix index ac4a0947e28b..f9382892a51d 100644 --- a/pkgs/development/python-modules/beartype/default.nix +++ b/pkgs/development/python-modules/beartype/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-Jk3cLx2p7JT/Y5FB++M9IuEqn3WqhjuDtwRv//E4GSc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook typing-extensions ]; - pythonImportsCheck = [ - "beartype" - ]; + pythonImportsCheck = [ "beartype" ]; meta = with lib; { description = "Fast runtime type checking for Python"; diff --git a/pkgs/development/python-modules/beautiful-date/default.nix b/pkgs/development/python-modules/beautiful-date/default.nix index 05ebf87f2a05..ed34ae468826 100644 --- a/pkgs/development/python-modules/beautiful-date/default.nix +++ b/pkgs/development/python-modules/beautiful-date/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, freezegun -, python-dateutil -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + freezegun, + python-dateutil, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-e6YJBaDwWqVehxBPOvsIdV4FIXlIwj29H5untXGJvT0="; }; - propagatedBuildInputs = [ - python-dateutil - ]; + propagatedBuildInputs = [ python-dateutil ]; nativeCheckInputs = [ freezegun pytestCheckHook ]; - pythonImportsCheck = [ - "beautiful_date" - ]; + pythonImportsCheck = [ "beautiful_date" ]; meta = with lib; { description = "Simple and beautiful way to create date and datetime objects"; diff --git a/pkgs/development/python-modules/beautifulsoup4/default.nix b/pkgs/development/python-modules/beautifulsoup4/default.nix index 75ae136d2887..4ebcfd4128df 100644 --- a/pkgs/development/python-modules/beautifulsoup4/default.nix +++ b/pkgs/development/python-modules/beautifulsoup4/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, chardet -, hatchling -, html5lib -, lxml -, pytestCheckHook -, pythonOlder -, soupsieve -, sphinxHook +{ + lib, + buildPythonPackage, + fetchPypi, + chardet, + hatchling, + html5lib, + lxml, + pytestCheckHook, + pythonOlder, + soupsieve, + sphinxHook, -# for passthru.tests -, html-sanitizer -, markdownify -, mechanicalsoup -, nbconvert -, subliminal -, wagtail + # for passthru.tests + html-sanitizer, + markdownify, + mechanicalsoup, + nbconvert, + subliminal, + wagtail, }: buildPythonPackage rec { @@ -24,7 +25,10 @@ buildPythonPackage rec { version = "4.12.3"; pyproject = true; - outputs = ["out" "doc"]; + outputs = [ + "out" + "doc" + ]; disabled = pythonOlder "3.6"; @@ -44,29 +48,25 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - html5lib = [ - html5lib - ]; - lxml = [ - lxml - ]; + html5lib = [ html5lib ]; + lxml = [ lxml ]; }; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "bs4" - ]; + pythonImportsCheck = [ "bs4" ]; passthru.tests = { - inherit html-sanitizer + inherit + html-sanitizer markdownify mechanicalsoup nbconvert subliminal - wagtail; + wagtail + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/beautifultable/default.nix b/pkgs/development/python-modules/beautifultable/default.nix index 97b13414f36b..9b1544ae2bd0 100644 --- a/pkgs/development/python-modules/beautifultable/default.nix +++ b/pkgs/development/python-modules/beautifultable/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, wcwidth -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + wcwidth, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-/SReCEvSwiNjBoz/3tGJ9zUNBAag4mLsHlUXwm47zCw="; }; - propagatedBuildInputs = [ - wcwidth - ]; + propagatedBuildInputs = [ wcwidth ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; - pythonImportsCheck = [ - "beautifultable" - ]; + pythonImportsCheck = [ "beautifultable" ]; meta = with lib; { description = "Python package for printing visually appealing tables"; diff --git a/pkgs/development/python-modules/beautysh/default.nix b/pkgs/development/python-modules/beautysh/default.nix index c41414075f38..79cda3b5eec6 100644 --- a/pkgs/development/python-modules/beautysh/default.nix +++ b/pkgs/development/python-modules/beautysh/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytestCheckHook -, setuptools -, types-colorama -, types-setuptools +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytestCheckHook, + setuptools, + types-colorama, + types-setuptools, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace 'types-setuptools = "^57.4.0"' 'types-setuptools = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ colorama @@ -47,13 +46,9 @@ buildPythonPackage rec { types-setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "beautysh" - ]; + pythonImportsCheck = [ "beautysh" ]; meta = with lib; { description = "Tool for beautifying Bash scripts"; diff --git a/pkgs/development/python-modules/bech32/default.nix b/pkgs/development/python-modules/bech32/default.nix index 37a120a042c3..53c7bc5ec91d 100644 --- a/pkgs/development/python-modules/bech32/default.nix +++ b/pkgs/development/python-modules/bech32/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { pname = "bech32"; diff --git a/pkgs/development/python-modules/before-after/default.nix b/pkgs/development/python-modules/before-after/default.nix index 3dc6c400693d..6756580f5a77 100644 --- a/pkgs/development/python-modules/before-after/default.nix +++ b/pkgs/development/python-modules/before-after/default.nix @@ -1,4 +1,10 @@ -{ buildPythonPackage, fetchPypi, fetchpatch, pytestCheckHook, lib }: +{ + buildPythonPackage, + fetchPypi, + fetchpatch, + pytestCheckHook, + lib, +}: buildPythonPackage rec { pname = "before-after"; diff --git a/pkgs/development/python-modules/behave/default.nix b/pkgs/development/python-modules/behave/default.nix index 942981d004c9..21b6d7b69260 100644 --- a/pkgs/development/python-modules/behave/default.nix +++ b/pkgs/development/python-modules/behave/default.nix @@ -1,8 +1,20 @@ -{ lib, stdenv, fetchFromGitHub -, buildPythonPackage, python -, pytestCheckHook, mock, path, pyhamcrest, pytest-html -, glibcLocales -, colorama, cucumber-tag-expressions, parse, parse-type, six +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + python, + pytestCheckHook, + mock, + path, + pyhamcrest, + pytest-html, + glibcLocales, + colorama, + cucumber-tag-expressions, + parse, + parse-type, + six, }: buildPythonPackage rec { @@ -17,7 +29,13 @@ buildPythonPackage rec { hash = "sha256-B8PUN1Q4UAsDWrHjPZDlpaPjCKjI/pAogCSI+BQnaWs="; }; - nativeCheckInputs = [ pytestCheckHook mock path pyhamcrest pytest-html ]; + nativeCheckInputs = [ + pytestCheckHook + mock + path + pyhamcrest + pytest-html + ]; # upstream tests are failing, so instead we only check if we can import it doCheck = false; @@ -25,7 +43,13 @@ buildPythonPackage rec { pythonImportsCheck = [ "behave" ]; buildInputs = [ glibcLocales ]; - propagatedBuildInputs = [ colorama cucumber-tag-expressions parse parse-type six ]; + propagatedBuildInputs = [ + colorama + cucumber-tag-expressions + parse + parse-type + six + ]; postPatch = '' patchShebangs bin @@ -49,6 +73,9 @@ buildPythonPackage rec { description = "behaviour-driven development, Python style"; mainProgram = "behave"; license = licenses.bsd2; - maintainers = with maintainers; [ alunduil maxxk ]; + maintainers = with maintainers; [ + alunduil + maxxk + ]; }; } diff --git a/pkgs/development/python-modules/bencode-py/default.nix b/pkgs/development/python-modules/bencode-py/default.nix index 4a2dfc5c320f..7221c1e42c0c 100644 --- a/pkgs/development/python-modules/bencode-py/default.nix +++ b/pkgs/development/python-modules/bencode-py/default.nix @@ -17,22 +17,16 @@ buildPythonPackage rec { hash = "sha256-KiTM2hclpRplCJPQtjJgE4NZ6qKZu256CZYTUKKm4Fw="; }; - pythonImportsCheck = [ - "bencodepy" - ]; + pythonImportsCheck = [ "bencodepy" ]; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Simple bencode parser (for Python 2, Python 3 and PyPy)"; homepage = "https://github.com/fuzeman/bencode.py"; license = licenses.bitTorrent11; - maintainers = with maintainers; [vamega]; + maintainers = with maintainers; [ vamega ]; }; } diff --git a/pkgs/development/python-modules/bencoder/default.nix b/pkgs/development/python-modules/bencoder/default.nix index 2fa730630c0b..6de70cb88961 100644 --- a/pkgs/development/python-modules/bencoder/default.nix +++ b/pkgs/development/python-modules/bencoder/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, }: buildPythonPackage rec { pname = "bencoder"; diff --git a/pkgs/development/python-modules/beniget/default.nix b/pkgs/development/python-modules/beniget/default.nix index 5868378f8d37..3e3e104a9062 100644 --- a/pkgs/development/python-modules/beniget/default.nix +++ b/pkgs/development/python-modules/beniget/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gast +{ + lib, + buildPythonPackage, + fetchPypi, + gast, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "75554b3b8ad0553ce2f607627dad3d95c60c441189875b98e097528f8e23ac0c"; }; - propagatedBuildInputs = [ - gast - ]; + propagatedBuildInputs = [ gast ]; meta = { description = "Extract semantic information about static Python code"; diff --git a/pkgs/development/python-modules/bentoml/default.nix b/pkgs/development/python-modules/bentoml/default.nix index 6946f45e050f..439309b4bd42 100644 --- a/pkgs/development/python-modules/bentoml/default.nix +++ b/pkgs/development/python-modules/bentoml/default.nix @@ -1,71 +1,72 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, hatch-vcs -, aiohttp -, attrs -, cattrs -, circus -, click -, click-option-group -, cloudpickle -, deepmerge -, fs -, httpx -, inflection -, jinja2 -, numpy -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-instrumentation-aiohttp-client -, opentelemetry-instrumentation-asgi -, opentelemetry-sdk -, opentelemetry-semantic-conventions -, opentelemetry-util-http -, packaging -, pathspec -, pip-requirements-parser -, pip-tools -, prometheus-client -, psutil -, nvidia-ml-py -, python-dateutil -, python-json-logger -, python-multipart -, pyyaml -, requests -, rich -, schema -, simple-di -, starlette -, uvicorn -, watchfiles -, fs-s3fs -, grpcio -, grpcio-health-checking -, opentelemetry-instrumentation-grpc -, protobuf -, grpcio-channelz -, grpcio-reflection -, filetype -, pillow -, pydantic -, pandas -, pyarrow -, opentelemetry-exporter-otlp-proto-http -# https://pypi.org/project/opentelemetry-exporter-jaeger-proto-grpc/ -# , opentelemetry-exporter-jaeger # support for this exporter ends in july 2023 -, opentelemetry-exporter-otlp -# , opentelemetry-exporter-zipkin -, tritonclient -# native check inputs -, pytestCheckHook -, scikit-learn -, lxml -, orjson -, pytest-asyncio -, fastapi +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + hatch-vcs, + aiohttp, + attrs, + cattrs, + circus, + click, + click-option-group, + cloudpickle, + deepmerge, + fs, + httpx, + inflection, + jinja2, + numpy, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-instrumentation-aiohttp-client, + opentelemetry-instrumentation-asgi, + opentelemetry-sdk, + opentelemetry-semantic-conventions, + opentelemetry-util-http, + packaging, + pathspec, + pip-requirements-parser, + pip-tools, + prometheus-client, + psutil, + nvidia-ml-py, + python-dateutil, + python-json-logger, + python-multipart, + pyyaml, + requests, + rich, + schema, + simple-di, + starlette, + uvicorn, + watchfiles, + fs-s3fs, + grpcio, + grpcio-health-checking, + opentelemetry-instrumentation-grpc, + protobuf, + grpcio-channelz, + grpcio-reflection, + filetype, + pillow, + pydantic, + pandas, + pyarrow, + opentelemetry-exporter-otlp-proto-http, + # https://pypi.org/project/opentelemetry-exporter-jaeger-proto-grpc/ + # , opentelemetry-exporter-jaeger # support for this exporter ends in july 2023 + opentelemetry-exporter-otlp, + # , opentelemetry-exporter-zipkin + tritonclient, + # native check inputs + pytestCheckHook, + scikit-learn, + lxml, + orjson, + pytest-asyncio, + fastapi, }: let @@ -80,7 +81,10 @@ let io-file = [ filetype ]; io-image = io-file ++ [ pillow ]; io-json = [ pydantic ]; - io-pandas = [ pandas pyarrow ]; + io-pandas = [ + pandas + pyarrow + ]; grpc-reflection = grpc ++ [ grpcio-reflection ]; grpc-channelz = grpc ++ [ grpcio-channelz ]; monitor-otlp = [ opentelemetry-exporter-otlp-proto-http ]; @@ -91,9 +95,23 @@ let tracing = tracing-otlp; # ++ tracing-zipkin ++ tracing-jaeger optional-dependencies = { all = aws ++ io ++ grpc ++ grpc-reflection ++ grpc-channelz ++ tracing ++ monitor-otlp; - inherit aws grpc io-file io-image io-json io-pandas io grpc-reflection - grpc-channelz monitor-otlp tracing-otlp tracing; - triton = [ tritonclient ] ++ tritonclient.optional-dependencies.http ++ tritonclient.optional-dependencies.grpc; + inherit + aws + grpc + io-file + io-image + io-json + io-pandas + io + grpc-reflection + grpc-channelz + monitor-otlp + tracing-otlp + tracing + ; + triton = [ + tritonclient + ] ++ tritonclient.optional-dependencies.http ++ tritonclient.optional-dependencies.grpc; }; in buildPythonPackage { @@ -114,9 +132,7 @@ buildPythonPackage { --replace "requests" "httpx" ''; - pythonRelaxDeps = [ - "opentelemetry-semantic-conventions" - ]; + pythonRelaxDeps = [ "opentelemetry-semantic-conventions" ]; nativeBuildInputs = [ hatchling @@ -197,13 +213,15 @@ buildPythonPackage { starlette ] ++ optional-dependencies.grpc; - meta = with lib; { description = "Build Production-Grade AI Applications"; homepage = "https://github.com/bentoml/BentoML"; changelog = "https://github.com/bentoml/BentoML/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ happysalada natsukium ]; + maintainers = with maintainers; [ + happysalada + natsukium + ]; # https://github.com/bentoml/BentoML/issues/3885 broken = versionAtLeast pydantic.version "2"; }; diff --git a/pkgs/development/python-modules/bespon/default.nix b/pkgs/development/python-modules/bespon/default.nix index a942651dcb73..212c32543da7 100644 --- a/pkgs/development/python-modules/bespon/default.nix +++ b/pkgs/development/python-modules/bespon/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -25,5 +26,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ synthetica ]; }; - } diff --git a/pkgs/development/python-modules/betacode/default.nix b/pkgs/development/python-modules/betacode/default.nix index 4b935b34139a..225d7501787d 100644 --- a/pkgs/development/python-modules/betacode/default.nix +++ b/pkgs/development/python-modules/betacode/default.nix @@ -1,4 +1,10 @@ -{ fetchPypi, buildPythonPackage, pygtrie, isPy3k, lib, }: +{ + fetchPypi, + buildPythonPackage, + pygtrie, + isPy3k, + lib, +}: buildPythonPackage rec { pname = "betacode"; version = "1.0"; diff --git a/pkgs/development/python-modules/betamax-matchers/default.nix b/pkgs/development/python-modules/betamax-matchers/default.nix index 2588c1c84882..74db60a0bf09 100644 --- a/pkgs/development/python-modules/betamax-matchers/default.nix +++ b/pkgs/development/python-modules/betamax-matchers/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, betamax, requests-toolbelt }: +{ + lib, + buildPythonPackage, + fetchPypi, + betamax, + requests-toolbelt, +}: buildPythonPackage rec { pname = "betamax-matchers"; @@ -11,7 +16,10 @@ buildPythonPackage rec { sha256 = "07qpwjyq2i2aqhz5iwghnj4pqr2ys5n45v1vmpcfx9r5mhwrsq43"; }; - buildInputs = [ betamax requests-toolbelt ]; + buildInputs = [ + betamax + requests-toolbelt + ]; meta = with lib; { homepage = "https://github.com/sigmavirus24/betamax_matchers"; diff --git a/pkgs/development/python-modules/betamax-serializers/default.nix b/pkgs/development/python-modules/betamax-serializers/default.nix index 072b3fa4193b..629f9d1ffe74 100644 --- a/pkgs/development/python-modules/betamax-serializers/default.nix +++ b/pkgs/development/python-modules/betamax-serializers/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, betamax, pyyaml }: +{ + lib, + buildPythonPackage, + fetchPypi, + betamax, + pyyaml, +}: buildPythonPackage rec { pname = "betamax-serializers"; @@ -11,7 +16,10 @@ buildPythonPackage rec { sha256 = "0ja9isbjmzzhxdj69s0kdsvw8nkp073w6an6a4liy5vk3fdl2p1l"; }; - buildInputs = [ betamax pyyaml ]; + buildInputs = [ + betamax + pyyaml + ]; meta = with lib; { homepage = "https://gitlab.com/betamax/serializers"; diff --git a/pkgs/development/python-modules/betamax/default.nix b/pkgs/development/python-modules/betamax/default.nix index d4da87d07433..ef870d8b1286 100644 --- a/pkgs/development/python-modules/betamax/default.nix +++ b/pkgs/development/python-modules/betamax/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "betamax"; diff --git a/pkgs/development/python-modules/beziers/default.nix b/pkgs/development/python-modules/beziers/default.nix index e4295f63ba05..e132936a1c39 100644 --- a/pkgs/development/python-modules/beziers/default.nix +++ b/pkgs/development/python-modules/beziers/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, dotmap -, matplotlib -, pyclipper -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dotmap, + matplotlib, + pyclipper, + unittestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-4014u7s47Tfdpa2Q9hKAoHg7Ebcs1/DVW5TpEmoh2bc="; }; - propagatedBuildInputs = [ - pyclipper - ]; + propagatedBuildInputs = [ pyclipper ]; doCheck = true; nativeCheckInputs = [ @@ -30,7 +29,11 @@ buildPythonPackage rec { matplotlib unittestCheckHook ]; - unittestFlagsArray = [ "-s" "test" "-v" ]; + unittestFlagsArray = [ + "-s" + "test" + "-v" + ]; meta = with lib; { description = "Python library for manipulating Bezier curves and paths in fonts"; diff --git a/pkgs/development/python-modules/bibtexparser/default.nix b/pkgs/development/python-modules/bibtexparser/default.nix index d6b24f13ab13..38dcd4a705f2 100644 --- a/pkgs/development/python-modules/bibtexparser/default.nix +++ b/pkgs/development/python-modules/bibtexparser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyparsing -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyparsing, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,18 @@ buildPythonPackage rec { hash = "sha256-YMkLSx7L2srLINZa6Ec0rPoxE2SdMv6CnI4BpHgHuzM="; }; - propagatedBuildInputs = [ - pyparsing - ]; + propagatedBuildInputs = [ pyparsing ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bibtexparser" - ]; + pythonImportsCheck = [ "bibtexparser" ]; meta = with lib; { description = "Bibtex parser for Python"; homepage = "https://github.com/sciunto-org/python-bibtexparser"; - license = with licenses; [ lgpl3Only /* or */ bsd3 ]; + license = with licenses; [ + lgpl3Only # or + bsd3 + ]; }; } diff --git a/pkgs/development/python-modules/bidict/default.nix b/pkgs/development/python-modules/bidict/default.nix index 811fb7055fea..4856e8fa26de 100644 --- a/pkgs/development/python-modules/bidict/default.nix +++ b/pkgs/development/python-modules/bidict/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, hypothesis -, pytest-xdist -, pytestCheckHook -, typing-extensions -, pythonOlder -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + hypothesis, + pytest-xdist, + pytestCheckHook, + typing-extensions, + pythonOlder, + wheel, }: buildPythonPackage rec { @@ -49,6 +50,9 @@ buildPythonPackage rec { changelog = "https://bidict.readthedocs.io/changelog.html"; description = "The bidirectional mapping library for Python."; license = licenses.mpl20; - maintainers = with maintainers; [ jab jakewaksbaum ]; + maintainers = with maintainers; [ + jab + jakewaksbaum + ]; }; } diff --git a/pkgs/development/python-modules/bids-validator/default.nix b/pkgs/development/python-modules/bids-validator/default.nix index 6779e42c580d..3671757c3f18 100644 --- a/pkgs/development/python-modules/bids-validator/default.nix +++ b/pkgs/development/python-modules/bids-validator/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, versioneer + # build-system + setuptools, + versioneer, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # needs packages which are not available in nixpkgs doCheck = false; - pythonImportsCheck = [ - "bids_validator" - ]; + pythonImportsCheck = [ "bids_validator" ]; meta = with lib; { description = "Validator for the Brain Imaging Data Structure"; diff --git a/pkgs/development/python-modules/biliass/default.nix b/pkgs/development/python-modules/biliass/default.nix index 65f4e8f7d7c8..8836f20fbb41 100644 --- a/pkgs/development/python-modules/biliass/default.nix +++ b/pkgs/development/python-modules/biliass/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, protobuf -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + protobuf, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,23 +22,15 @@ buildPythonPackage rec { hash = "sha256-Opb4rlGe+LDJZs3F7e/NZYfuMtHEWUZeMm8VZQfEzKI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - protobuf - ]; + propagatedBuildInputs = [ protobuf ]; doCheck = false; # test artifacts missing - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "biliass" - ]; + pythonImportsCheck = [ "biliass" ]; meta = with lib; { homepage = "https://github.com/yutto-dev/biliass"; diff --git a/pkgs/development/python-modules/billiard/default.nix b/pkgs/development/python-modules/billiard/default.nix index 15ccd234a7ac..87e6b47366a2 100644 --- a/pkgs/development/python-modules/billiard/default.nix +++ b/pkgs/development/python-modules/billiard/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, case -, psutil -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + case, + psutil, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { "test_set_pdeathsig" ]; - pythonImportsCheck = [ - "billiard" - ]; + pythonImportsCheck = [ "billiard" ]; meta = with lib; { description = "Python multiprocessing fork with improvements and bugfixes"; diff --git a/pkgs/development/python-modules/bimmer-connected/default.nix b/pkgs/development/python-modules/bimmer-connected/default.nix index 39c8874f7f3f..9e32e58f1633 100644 --- a/pkgs/development/python-modules/bimmer-connected/default.nix +++ b/pkgs/development/python-modules/bimmer-connected/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pbr -, httpx -, pillow -, pycryptodome -, pyjwt -, pytest-asyncio -, pytestCheckHook -, python -, respx -, setuptools -, time-machine -, tzdata +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pbr, + httpx, + pillow, + pycryptodome, + pyjwt, + pytest-asyncio, + pytestCheckHook, + python, + respx, + setuptools, + time-machine, + tzdata, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - china = [ - pillow - ]; + china = [ pillow ]; }; postInstall = '' @@ -69,9 +68,7 @@ buildPythonPackage rec { export TZDIR=${tzdata}/${python.sitePackages}/tzdata/zoneinfo ''; - pythonImportsCheck = [ - "bimmer_connected" - ]; + pythonImportsCheck = [ "bimmer_connected" ]; meta = with lib; { changelog = "https://github.com/bimmerconnected/bimmer_connected/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/binance-connector/default.nix b/pkgs/development/python-modules/binance-connector/default.nix index c8d3b044b558..914ab4c6acd0 100644 --- a/pkgs/development/python-modules/binance-connector/default.nix +++ b/pkgs/development/python-modules/binance-connector/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodome -, pythonOlder -, requests -, websocket-client -# dependencies for tests -, pytest-cov -, pytest -, sure -, responses -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodome, + pythonOlder, + requests, + websocket-client, + # dependencies for tests + pytest-cov, + pytest, + sure, + responses, + pytestCheckHook, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # pytestCheckHook attempts to run examples directory, which requires # network access - disabledTestPaths = [ - "examples/" - ]; + disabledTestPaths = [ "examples/" ]; pythonImportsCheck = [ "binance.spot" diff --git a/pkgs/development/python-modules/binary/default.nix b/pkgs/development/python-modules/binary/default.nix index 9311289b7cc2..93cb6d24dae0 100644 --- a/pkgs/development/python-modules/binary/default.nix +++ b/pkgs/development/python-modules/binary/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,12 +23,18 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ "binary" "binary.core" ]; + pythonImportsCheck = [ + "binary" + "binary.core" + ]; meta = with lib; { description = "Easily convert between binary and SI units (kibibyte, kilobyte, etc.)"; homepage = "https://github.com/ofek/binary"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/binary2strings/default.nix b/pkgs/development/python-modules/binary2strings/default.nix index c122b67886da..3a9937e8fea8 100644 --- a/pkgs/development/python-modules/binary2strings/default.nix +++ b/pkgs/development/python-modules/binary2strings/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pybind11 -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pybind11, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "binary2strings" - ]; + pythonImportsCheck = [ "binary2strings" ]; - pytestFlagsArray = [ - "tests/test.py" - ]; + pytestFlagsArray = [ "tests/test.py" ]; meta = with lib; { description = "Module to extract Ascii, Utf8, and Unicode strings from binary data"; diff --git a/pkgs/development/python-modules/binaryornot/default.nix b/pkgs/development/python-modules/binaryornot/default.nix index 435b5412b238..dd57a7885aac 100644 --- a/pkgs/development/python-modules/binaryornot/default.nix +++ b/pkgs/development/python-modules/binaryornot/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, chardet, hypothesis }: +{ + lib, + buildPythonPackage, + fetchPypi, + chardet, + hypothesis, +}: buildPythonPackage rec { pname = "binaryornot"; diff --git a/pkgs/development/python-modules/bincopy/default.nix b/pkgs/development/python-modules/bincopy/default.nix index f61432b229f8..45fb979a72b5 100644 --- a/pkgs/development/python-modules/bincopy/default.nix +++ b/pkgs/development/python-modules/bincopy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, argparse-addons -, humanfriendly -, pyelftools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + argparse-addons, + humanfriendly, + pyelftools, + pythonOlder, }: buildPythonPackage rec { @@ -25,15 +26,16 @@ buildPythonPackage rec { pyelftools ]; - pythonImportsCheck = [ - "bincopy" - ]; + pythonImportsCheck = [ "bincopy" ]; meta = with lib; { description = "Mangling of various file formats that conveys binary information (Motorola S-Record, Intel HEX, TI-TXT, ELF and binary files)"; mainProgram = "bincopy"; homepage = "https://github.com/eerimoq/bincopy"; license = licenses.mit; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/bindep/default.nix b/pkgs/development/python-modules/bindep/default.nix index 4a27f56a3bcd..8acd7ecf7cf0 100644 --- a/pkgs/development/python-modules/bindep/default.nix +++ b/pkgs/development/python-modules/bindep/default.nix @@ -1,6 +1,7 @@ -{ lib -, python3Packages -, fetchPypi +{ + lib, + python3Packages, + fetchPypi, }: python3Packages.buildPythonPackage rec { pname = "bindep"; diff --git a/pkgs/development/python-modules/binho-host-adapter/default.nix b/pkgs/development/python-modules/binho-host-adapter/default.nix index 51b9d9908a12..78cd0e9b7ed9 100644 --- a/pkgs/development/python-modules/binho-host-adapter/default.nix +++ b/pkgs/development/python-modules/binho-host-adapter/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyserial +{ + lib, + buildPythonPackage, + fetchPypi, + pyserial, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/binwalk/default.nix b/pkgs/development/python-modules/binwalk/default.nix index b3725caa3d6d..1e3a4ec08187 100644 --- a/pkgs/development/python-modules/binwalk/default.nix +++ b/pkgs/development/python-modules/binwalk/default.nix @@ -1,24 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, stdenv -, zlib -, xz -, gzip -, bzip2 -, gnutar -, p7zip -, cabextract -, cramfsprogs -, cramfsswap -, sasquatch -, squashfsTools -, matplotlib -, nose -, pycrypto -, pyqtgraph -, visualizationSupport ? false }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + stdenv, + zlib, + xz, + gzip, + bzip2, + gnutar, + p7zip, + cabextract, + cramfsprogs, + cramfsswap, + sasquatch, + squashfsTools, + matplotlib, + nose, + pycrypto, + pyqtgraph, + visualizationSupport ? false, +}: buildPythonPackage rec { pname = "binwalk${lib.optionalString visualizationSupport "-full"}"; @@ -38,16 +40,33 @@ buildPythonPackage rec { (fetchpatch { url = "https://github.com/ReFirmLabs/binwalk/commit/dd4f2efd275c9dd1001130e82e0f985110cd2754.patch"; sha256 = "1707n4nf1d1ay1yn4i8qlrvj2c1120g88hjwyklpsc2s2dcnqj9r"; - includes = [ - "testing/tests/test_firmware_zip.py" - ]; + includes = [ "testing/tests/test_firmware_zip.py" ]; revert = true; }) ]; - propagatedBuildInputs = [ zlib xz gzip bzip2 gnutar p7zip cabextract squashfsTools xz pycrypto ] - ++ lib.optionals visualizationSupport [ matplotlib pyqtgraph ] - ++ lib.optionals (!stdenv.isDarwin) [ cramfsprogs cramfsswap sasquatch ]; + propagatedBuildInputs = + [ + zlib + xz + gzip + bzip2 + gnutar + p7zip + cabextract + squashfsTools + xz + pycrypto + ] + ++ lib.optionals visualizationSupport [ + matplotlib + pyqtgraph + ] + ++ lib.optionals (!stdenv.isDarwin) [ + cramfsprogs + cramfsswap + sasquatch + ]; # setup.py only installs version.py during install, not test postPatch = '' diff --git a/pkgs/development/python-modules/bip-utils/default.nix b/pkgs/development/python-modules/bip-utils/default.nix index c4709e80845d..17d7eea6b1b2 100644 --- a/pkgs/development/python-modules/bip-utils/default.nix +++ b/pkgs/development/python-modules/bip-utils/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cbor2 -, coincurve -, crcmod -, ecdsa -, ed25519-blake2b -, fetchFromGitHub -, py-sr25519-bindings -, pycryptodome -, pynacl -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cbor2, + coincurve, + crcmod, + ecdsa, + ed25519-blake2b, + fetchFromGitHub, + py-sr25519-bindings, + pycryptodome, + pynacl, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-3G37n/mfI+3JVIkmJWzbB1qPPTE6NJJlFZWdE0fIIWA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ecdsa @@ -43,19 +42,18 @@ buildPythonPackage rec { pycryptodome ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bip_utils" - ]; + pythonImportsCheck = [ "bip_utils" ]; meta = with lib; { description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation"; homepage = "https://github.com/ebellocchia/bip_utils"; changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ prusnak stargate01 ]; + maintainers = with maintainers; [ + prusnak + stargate01 + ]; }; } diff --git a/pkgs/development/python-modules/bip32/default.nix b/pkgs/development/python-modules/bip32/default.nix index 165cf6231eea..a042acd83299 100644 --- a/pkgs/development/python-modules/bip32/default.nix +++ b/pkgs/development/python-modules/bip32/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, pythonOlder -, setuptools -, base58 -, coincurve +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + pythonOlder, + setuptools, + base58, + coincurve, }: buildPythonPackage rec { @@ -29,22 +30,16 @@ buildPythonPackage rec { --replace-fail 'coincurve>=15.0,<19' 'coincurve>=15.0,<20' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ base58 coincurve ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bip32" - ]; + pythonImportsCheck = [ "bip32" ]; meta = with lib; { description = "Minimalistic implementation of the BIP32 key derivation scheme"; diff --git a/pkgs/development/python-modules/biplist/default.nix b/pkgs/development/python-modules/biplist/default.nix index 26247a3930cd..0ef428281a66 100644 --- a/pkgs/development/python-modules/biplist/default.nix +++ b/pkgs/development/python-modules/biplist/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "1im45a9z7ryrfyp1v6i39qia5qagw6i1mhif0hl0praz9iv4j1ac"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Failing tests diff --git a/pkgs/development/python-modules/birch/default.nix b/pkgs/development/python-modules/birch/default.nix index 56c95e415c31..f91bfea02733 100644 --- a/pkgs/development/python-modules/birch/default.nix +++ b/pkgs/development/python-modules/birch/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, setuptools -, strct -, pytestCheckHook -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + setuptools, + strct, + pytestCheckHook, + pyyaml, }: buildPythonPackage rec { @@ -40,13 +41,9 @@ buildPythonPackage rec { --replace-fail '"0+unknown"' '"${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - dependencies = [ - strct - ]; + dependencies = [ strct ]; pythonImportsCheck = [ "birch" @@ -64,7 +61,6 @@ buildPythonPackage rec { export HOME="$(mktemp -d)" ''; - meta = with lib; { description = "Simple hierarchical configuration for Python packages"; homepage = "https://github.com/shaypal5/birch"; diff --git a/pkgs/development/python-modules/bitarray/default.nix b/pkgs/development/python-modules/bitarray/default.nix index 8a748ed5b1b8..426fa3f6874b 100644 --- a/pkgs/development/python-modules/bitarray/default.nix +++ b/pkgs/development/python-modules/bitarray/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { ${python.interpreter} -c 'import bitarray; bitarray.test()' ''; - pythonImportsCheck = [ - "bitarray" - ]; + pythonImportsCheck = [ "bitarray" ]; meta = with lib; { description = "Efficient arrays of booleans"; diff --git a/pkgs/development/python-modules/bitcoin-utils-fork-minimal/default.nix b/pkgs/development/python-modules/bitcoin-utils-fork-minimal/default.nix index c548ce0bbf32..f2c70dcadc7e 100644 --- a/pkgs/development/python-modules/bitcoin-utils-fork-minimal/default.nix +++ b/pkgs/development/python-modules/bitcoin-utils-fork-minimal/default.nix @@ -1,9 +1,10 @@ -{ lib -, base58 -, buildPythonPackage -, ecdsa -, fetchPypi -, sympy +{ + lib, + base58, + buildPythonPackage, + ecdsa, + fetchPypi, + sympy, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # Project doesn't ship tests doCheck = false; - pythonImportsCheck = [ - "bitcoinutils" - ]; + pythonImportsCheck = [ "bitcoinutils" ]; meta = with lib; { description = "Bitcoin utility functions"; diff --git a/pkgs/development/python-modules/bitcoinlib/default.nix b/pkgs/development/python-modules/bitcoinlib/default.nix index d921d9ca56bf..910e3ea654a9 100644 --- a/pkgs/development/python-modules/bitcoinlib/default.nix +++ b/pkgs/development/python-modules/bitcoinlib/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }: +{ + stdenv, + lib, + buildPythonPackage, + isPy3k, + fetchFromGitHub, + openssl, +}: buildPythonPackage rec { pname = "bitcoinlib"; @@ -20,7 +27,10 @@ buildPythonPackage rec { "'${lib.getLib openssl}/lib/libssl${stdenv.hostPlatform.extensions.sharedLibrary}'" ''; - pythonImportsCheck = [ "bitcoin" "bitcoin.core.key" ]; + pythonImportsCheck = [ + "bitcoin" + "bitcoin.core.key" + ]; meta = with lib; { homepage = "https://github.com/petertodd/python-bitcoinlib"; diff --git a/pkgs/development/python-modules/bitcoinrpc/default.nix b/pkgs/development/python-modules/bitcoinrpc/default.nix index 65c05c01991b..cfdc523b1213 100644 --- a/pkgs/development/python-modules/bitcoinrpc/default.nix +++ b/pkgs/development/python-modules/bitcoinrpc/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, orjson -, httpx -, typing-extensions -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + orjson, + httpx, + typing-extensions, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bitcoinrpc" - ]; + pythonImportsCheck = [ "bitcoinrpc" ]; meta = with lib; { description = "Bitcoin JSON-RPC client"; diff --git a/pkgs/development/python-modules/bite-parser/default.nix b/pkgs/development/python-modules/bite-parser/default.nix index 62f4d3672787..76abaebf6364 100644 --- a/pkgs/development/python-modules/bite-parser/default.nix +++ b/pkgs/development/python-modules/bite-parser/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + poetry-core, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Uq2FDoo5gztMRqtdkKYX0RULhjFgy+DeujC6BTZ3CZI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/bitlist/default.nix b/pkgs/development/python-modules/bitlist/default.nix index 30198b7a1a17..6054bee43bea 100644 --- a/pkgs/development/python-modules/bitlist/default.nix +++ b/pkgs/development/python-modules/bitlist/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, parts -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + parts, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,17 +31,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - parts - ]; + propagatedBuildInputs = [ parts ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bitlist" - ]; + pythonImportsCheck = [ "bitlist" ]; meta = with lib; { description = "Python library for working with little-endian list representation of bit strings"; diff --git a/pkgs/development/python-modules/bitmath/default.nix b/pkgs/development/python-modules/bitmath/default.nix index d5bdf77fb592..dab0477350b7 100644 --- a/pkgs/development/python-modules/bitmath/default.nix +++ b/pkgs/development/python-modules/bitmath/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, progressbar231 ? null, progressbar33, mock }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + progressbar231 ? null, + progressbar33, + mock, +}: buildPythonPackage rec { pname = "bitmath"; @@ -10,7 +18,10 @@ buildPythonPackage rec { sha256 = "293325f01e65defe966853111df11d39215eb705a967cb115851da8c4cfa3eb8"; }; - nativeCheckInputs = [ (if isPy3k then progressbar33 else progressbar231) mock ]; + nativeCheckInputs = [ + (if isPy3k then progressbar33 else progressbar231) + mock + ]; meta = with lib; { description = "Module for representing and manipulating file sizes with different prefix"; diff --git a/pkgs/development/python-modules/bitsandbytes/default.nix b/pkgs/development/python-modules/bitsandbytes/default.nix index 189b8a9c6c27..a80643c4d1bd 100644 --- a/pkgs/development/python-modules/bitsandbytes/default.nix +++ b/pkgs/development/python-modules/bitsandbytes/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder -, setuptools -, wheel -, torch -, scipy -, symlinkJoin +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, + setuptools, + wheel, + torch, + scipy, + symlinkJoin, }: let @@ -29,17 +30,19 @@ let cuda-native-redist = symlinkJoin { name = "cuda-native-redist-${cudaVersion}"; - paths = with cudaPackages; [ - cuda_cudart # cuda_runtime.h cuda_runtime_api.h - cuda_nvcc - ] ++ cuda-common-redist; + paths = + with cudaPackages; + [ + cuda_cudart # cuda_runtime.h cuda_runtime_api.h + cuda_nvcc + ] + ++ cuda-common-redist; }; cuda-redist = symlinkJoin { name = "cuda-redist-${cudaVersion}"; paths = cuda-common-redist; }; - in buildPythonPackage { inherit pname version; @@ -54,46 +57,45 @@ buildPythonPackage { hash = "sha256-PZxsFJ6WpfeQqRQrRRBZfZfNY6/TfJFLBeknX24OXcU="; }; - postPatch = '' - substituteInPlace Makefile --replace "/usr/bin/g++" "g++" --replace "lib64" "lib" - substituteInPlace bitsandbytes/cuda_setup/main.py \ - --replace "binary_path = package_dir / self.binary_name" \ - "binary_path = Path('$out/${python.sitePackages}/${pname}')/self.binary_name" - '' + lib.optionalString torch.cudaSupport '' - substituteInPlace bitsandbytes/cuda_setup/main.py \ - --replace "/usr/local/cuda/lib64" "${cuda-native-redist}/lib" - ''; + postPatch = + '' + substituteInPlace Makefile --replace "/usr/bin/g++" "g++" --replace "lib64" "lib" + substituteInPlace bitsandbytes/cuda_setup/main.py \ + --replace "binary_path = package_dir / self.binary_name" \ + "binary_path = Path('$out/${python.sitePackages}/${pname}')/self.binary_name" + '' + + lib.optionalString torch.cudaSupport '' + substituteInPlace bitsandbytes/cuda_setup/main.py \ + --replace "/usr/local/cuda/lib64" "${cuda-native-redist}/lib" + ''; CUDA_HOME = "${cuda-native-redist}"; - preBuild = if torch.cudaSupport then - with torch.cudaPackages; - let cudaVersion = lib.concatStrings (lib.splitVersion torch.cudaPackages.cudaMajorMinorVersion); in - ''make CUDA_VERSION=${cudaVersion} cuda${cudaMajorVersion}x'' - else - ''make CUDA_VERSION=CPU cpuonly''; + preBuild = + if torch.cudaSupport then + with torch.cudaPackages; + let + cudaVersion = lib.concatStrings (lib.splitVersion torch.cudaPackages.cudaMajorMinorVersion); + in + ''make CUDA_VERSION=${cudaVersion} cuda${cudaMajorVersion}x'' + else + ''make CUDA_VERSION=CPU cpuonly''; nativeBuildInputs = [ setuptools wheel - ] ++ lib.optionals torch.cudaSupport [ - cuda-native-redist - ]; + ] ++ lib.optionals torch.cudaSupport [ cuda-native-redist ]; - buildInputs = lib.optionals torch.cudaSupport [ - cuda-redist - ]; + buildInputs = lib.optionals torch.cudaSupport [ cuda-redist ]; propagatedBuildInputs = [ scipy torch ]; - doCheck = false; # tests require CUDA and also GPU access + doCheck = false; # tests require CUDA and also GPU access - pythonImportsCheck = [ - "bitsandbytes" - ]; + pythonImportsCheck = [ "bitsandbytes" ]; meta = with lib; { description = "8-bit CUDA functions for PyTorch"; diff --git a/pkgs/development/python-modules/bitstring/default.nix b/pkgs/development/python-modules/bitstring/default.nix index 52fdaece66ff..d21e985bfa09 100644 --- a/pkgs/development/python-modules/bitstring/default.nix +++ b/pkgs/development/python-modules/bitstring/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, bitarray -, setuptools -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + bitarray, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-CO7R2SCb232OW1DCLo45UIarFG5FhR4WkwuQieXha0Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - bitarray - ]; + propagatedBuildInputs = [ bitarray ]; nativeCheckInputs = [ unittestCheckHook ]; diff --git a/pkgs/development/python-modules/bitstruct/default.nix b/pkgs/development/python-modules/bitstruct/default.nix index e16a6d7a38cd..7d64491e9733 100644 --- a/pkgs/development/python-modules/bitstruct/default.nix +++ b/pkgs/development/python-modules/bitstruct/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-11up3e2FwX6IWiCaAOuOJI7kB2IUny8qeTYMqFdGfaw="; }; - pythonImportsCheck = [ - "bitstruct" - ]; + pythonImportsCheck = [ "bitstruct" ]; meta = with lib; { description = "Python bit pack/unpack package"; diff --git a/pkgs/development/python-modules/bitvavo-aio/default.nix b/pkgs/development/python-modules/bitvavo-aio/default.nix index 9dc561afd680..0df3e7add098 100644 --- a/pkgs/development/python-modules/bitvavo-aio/default.nix +++ b/pkgs/development/python-modules/bitvavo-aio/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1d9nbbvv7xnkixj03sfhs2da5j3i2m7p73r7j1yb7b39zas2rbig"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/bizkaibus/default.nix b/pkgs/development/python-modules/bizkaibus/default.nix index 4f55bb14fdbf..ba078194af8f 100644 --- a/pkgs/development/python-modules/bizkaibus/default.nix +++ b/pkgs/development/python-modules/bizkaibus/default.nix @@ -1,8 +1,9 @@ -{ lib -, requests -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + requests, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1v7k9fclndb4x9npzhzj68kbrc3lb3wr6cwal2x46ib207593ckr"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/bjoern/default.nix b/pkgs/development/python-modules/bjoern/default.nix index e8b11a6311a4..3b79ab7dae7e 100644 --- a/pkgs/development/python-modules/bjoern/default.nix +++ b/pkgs/development/python-modules/bjoern/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, libev, python }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libev, + python, +}: buildPythonPackage rec { pname = "bjoern"; diff --git a/pkgs/development/python-modules/bkcharts/default.nix b/pkgs/development/python-modules/bkcharts/default.nix index cdcd03c18d55..737535ce3cf6 100644 --- a/pkgs/development/python-modules/bkcharts/default.nix +++ b/pkgs/development/python-modules/bkcharts/default.nix @@ -1,11 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pandas +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pandas, }: - buildPythonPackage rec { pname = "bkcharts"; version = "0.2"; @@ -16,7 +16,10 @@ buildPythonPackage rec { sha256 = "a5eaa8e78853dcecaa46345812e4fabe9cd3b96330ebf0809f640a4a0556d72e"; }; - propagatedBuildInputs = [ numpy pandas ]; + propagatedBuildInputs = [ + numpy + pandas + ]; # Circular test dependency on bokeh doCheck = false; diff --git a/pkgs/development/python-modules/black-macchiato/default.nix b/pkgs/development/python-modules/black-macchiato/default.nix index b29405d00791..da26ce0ed3a8 100644 --- a/pkgs/development/python-modules/black-macchiato/default.nix +++ b/pkgs/development/python-modules/black-macchiato/default.nix @@ -1,9 +1,10 @@ -{ lib, +{ + lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook, - black + black, }: buildPythonPackage rec { @@ -14,24 +15,26 @@ buildPythonPackage rec { disabled = pythonOlder "3.6"; src = fetchFromGitHub { - owner = "wbolster"; - repo = pname; - rev = version; + owner = "wbolster"; + repo = pname; + rev = version; sha256 = "0lc9w50nlbmlzj44krk7kxcia202fhybbnwfh77xixlc7vb4rayl"; }; propagatedBuildInputs = [ black ]; - nativeCheckInputs = [ pytestCheckHook black ]; + nativeCheckInputs = [ + pytestCheckHook + black + ]; pythonImportsCheck = [ "black" ]; meta = with lib; { description = "This is a small utility built on top of the black Python code formatter to enable formatting of partial files"; mainProgram = "black-macchiato"; - homepage = "https://github.com/wbolster/black-macchiato"; - license = licenses.bsd3; + homepage = "https://github.com/wbolster/black-macchiato"; + license = licenses.bsd3; maintainers = with maintainers; [ jperras ]; }; - } diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index 48f1c3305558..158d0698aaef 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -1,25 +1,26 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook -, aiohttp -, click -, colorama -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, ipython -, mypy-extensions -, packaging -, pathspec -, parameterized -, platformdirs -, tokenize-rt -, tomli -, typing-extensions -, uvloop +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + aiohttp, + click, + colorama, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + ipython, + mypy-extensions, + packaging, + pathspec, + parameterized, + platformdirs, + tokenize-rt, + tomli, + typing-extensions, + uvloop, }: buildPythonPackage rec { @@ -40,27 +41,23 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - click - mypy-extensions - packaging - pathspec - platformdirs - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - typing-extensions - ]; + propagatedBuildInputs = + [ + click + mypy-extensions + packaging + pathspec + platformdirs + ] + ++ lib.optionals (pythonOlder "3.11") [ + tomli + typing-extensions + ]; passthru.optional-dependencies = { - colorama = [ - colorama - ]; - d = [ - aiohttp - ]; - uvloop = [ - uvloop - ]; + colorama = [ colorama ]; + d = [ aiohttp ]; + uvloop = [ uvloop ]; jupyter = [ ipython tokenize-rt @@ -77,30 +74,35 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; - preCheck = '' - export PATH="$PATH:$out/bin" + preCheck = + '' + export PATH="$PATH:$out/bin" - # The top directory /build matches black's DEFAULT_EXCLUDE regex. - # Make /build the project root for black tests to avoid excluding files. - touch ../.git - '' + lib.optionalString stdenv.isDarwin '' - # Work around https://github.com/psf/black/issues/2105 - export TMPDIR="/tmp" - ''; + # The top directory /build matches black's DEFAULT_EXCLUDE regex. + # Make /build the project root for black tests to avoid excluding files. + touch ../.git + '' + + lib.optionalString stdenv.isDarwin '' + # Work around https://github.com/psf/black/issues/2105 + export TMPDIR="/tmp" + ''; - disabledTests = [ - # requires network access - "test_gen_check_output" - ] ++ lib.optionals stdenv.isDarwin [ - # fails on darwin - "test_expression_diff" - # Fail on Hydra, see https://github.com/NixOS/nixpkgs/pull/130785 - "test_bpo_2142_workaround" - "test_skip_magic_trailing_comma" - ]; + disabledTests = + [ + # requires network access + "test_gen_check_output" + ] + ++ lib.optionals stdenv.isDarwin [ + # fails on darwin + "test_expression_diff" + # Fail on Hydra, see https://github.com/NixOS/nixpkgs/pull/130785 + "test_bpo_2142_workaround" + "test_skip_magic_trailing_comma" + ]; # multiple tests exceed max open files on hydra builders doCheck = !(stdenv.isLinux && stdenv.isAarch64); @@ -110,6 +112,9 @@ buildPythonPackage rec { changelog = "https://github.com/psf/black/blob/${version}/CHANGES.md"; license = licenses.mit; mainProgram = "black"; - maintainers = with maintainers; [ sveitser autophagy ]; + maintainers = with maintainers; [ + sveitser + autophagy + ]; }; } diff --git a/pkgs/development/python-modules/blackjax/default.nix b/pkgs/development/python-modules/blackjax/default.nix index 4a0807cd7c49..3e8c680f7c91 100644 --- a/pkgs/development/python-modules/blackjax/default.nix +++ b/pkgs/development/python-modules/blackjax/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytest-xdist -, pytestCheckHook -, setuptools-scm -, fastprogress -, jax -, jaxlib -, jaxopt -, optax -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytest-xdist, + pytestCheckHook, + setuptools-scm, + fastprogress, + jax, + jaxlib, + jaxopt, + optax, + typing-extensions, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-VoWBCjFMyE5LVJyf7du/pKlnvDHj22lguiP6ZUzH9ak="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ fastprogress @@ -46,25 +45,25 @@ buildPythonPackage rec { pytest-xdist ]; - disabledTestPaths = [ - "tests/test_benchmarks.py" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # Assertion errors on numerical values - "tests/mcmc/test_integrators.py" - ]; + disabledTestPaths = + [ "tests/test_benchmarks.py" ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # Assertion errors on numerical values + "tests/mcmc/test_integrators.py" + ]; - disabledTests = [ - # too slow - "test_adaptive_tempered_smc" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # Numerical test (AssertionError) - # https://github.com/blackjax-devs/blackjax/issues/668 - "test_chees_adaptation" - ]; + disabledTests = + [ + # too slow + "test_adaptive_tempered_smc" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # Numerical test (AssertionError) + # https://github.com/blackjax-devs/blackjax/issues/668 + "test_chees_adaptation" + ]; - pythonImportsCheck = [ - "blackjax" - ]; + pythonImportsCheck = [ "blackjax" ]; meta = with lib; { homepage = "https://blackjax-devs.github.io/blackjax"; diff --git a/pkgs/development/python-modules/bleach-allowlist/default.nix b/pkgs/development/python-modules/bleach-allowlist/default.nix index 96f9b6ccf416..2ef358f71fa3 100644 --- a/pkgs/development/python-modules/bleach-allowlist/default.nix +++ b/pkgs/development/python-modules/bleach-allowlist/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, bleach +{ + lib, + buildPythonPackage, + fetchPypi, + bleach, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-VuIghgeaDmoxAK6Z5NuvIOslhUhlmOsOmUAIoRQo2ps="; }; - propagatedBuildInputs = [ - bleach - ]; + propagatedBuildInputs = [ bleach ]; # No tests doCheck = false; diff --git a/pkgs/development/python-modules/bleach/default.nix b/pkgs/development/python-modules/bleach/default.nix index c1fb4d77e806..73d1e312a313 100644 --- a/pkgs/development/python-modules/bleach/default.nix +++ b/pkgs/development/python-modules/bleach/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, six -, html5lib -, setuptools -, tinycss2 -, packaging -, pythonOlder -, webencodings +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + six, + html5lib, + setuptools, + tinycss2, + packaging, + pythonOlder, + webencodings, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-CjHxg3ljxB1Gu/EzG4d44TCOoHkdsDzE5zV7l89CqP4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ html5lib @@ -36,23 +35,17 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - css = [ - tinycss2 - ]; + css = [ tinycss2 ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Disable network tests "protocols" ]; - pythonImportsCheck = [ - "bleach" - ]; + pythonImportsCheck = [ "bleach" ]; meta = with lib; { description = "An easy, HTML5, whitelisting HTML sanitizer"; diff --git a/pkgs/development/python-modules/bleak-esphome/default.nix b/pkgs/development/python-modules/bleak-esphome/default.nix index 0138f8b1d7f3..c313abbe8260 100644 --- a/pkgs/development/python-modules/bleak-esphome/default.nix +++ b/pkgs/development/python-modules/bleak-esphome/default.nix @@ -1,15 +1,16 @@ -{ lib -, aioesphomeapi -, bleak -, bluetooth-data-tools -, buildPythonPackage -, fetchFromGitHub -, habluetooth -, lru-dict -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aioesphomeapi, + bleak, + bluetooth-data-tools, + buildPythonPackage, + fetchFromGitHub, + habluetooth, + lru-dict, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace " --cov=bleak_esphome --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aioesphomeapi @@ -48,9 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "bleak_esphome" - ]; + pythonImportsCheck = [ "bleak_esphome" ]; meta = with lib; { description = "Bleak backend of ESPHome"; diff --git a/pkgs/development/python-modules/bleak/default.nix b/pkgs/development/python-modules/bleak/default.nix index 7fad7492d704..3d24c627fbb2 100644 --- a/pkgs/development/python-modules/bleak/default.nix +++ b/pkgs/development/python-modules/bleak/default.nix @@ -1,14 +1,15 @@ -{ lib -, async-timeout -, bluez -, buildPythonPackage -, dbus-fast -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + async-timeout, + bluez, + buildPythonPackage, + dbus-fast, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ async-timeout @@ -46,9 +45,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "bleak" - ]; + pythonImportsCheck = [ "bleak" ]; meta = with lib; { description = "Bluetooth Low Energy platform agnostic client"; diff --git a/pkgs/development/python-modules/blebox-uniapi/default.nix b/pkgs/development/python-modules/blebox-uniapi/default.nix index 3381c0d1ccf8..978d80cd9a84 100644 --- a/pkgs/development/python-modules/blebox-uniapi/default.nix +++ b/pkgs/development/python-modules/blebox-uniapi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, aiohttp -, semver -, deepmerge -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + semver, + deepmerge, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace-fail "pytest-runner" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -44,9 +43,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "blebox_uniapi" - ]; + pythonImportsCheck = [ "blebox_uniapi" ]; meta = with lib; { changelog = "https://github.com/blebox/blebox_uniapi/blob/v${version}/HISTORY.rst"; diff --git a/pkgs/development/python-modules/bless/default.nix b/pkgs/development/python-modules/bless/default.nix index 3f24aef8bf53..f4352cba1978 100644 --- a/pkgs/development/python-modules/bless/default.nix +++ b/pkgs/development/python-modules/bless/default.nix @@ -1,14 +1,15 @@ -{ lib -, aioconsole -, bleak -, buildPythonPackage -, dbus-next -, fetchFromGitHub -, numpy -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aioconsole, + bleak, + buildPythonPackage, + dbus-next, + fetchFromGitHub, + numpy, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { sed -i "/pysetupdi/d" setup.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bleak @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "bless" - ]; + pythonImportsCheck = [ "bless" ]; meta = with lib; { description = "Library for creating a BLE Generic Attribute Profile (GATT) server"; diff --git a/pkgs/development/python-modules/blessed/default.nix b/pkgs/development/python-modules/blessed/default.nix index 70762d0c524a..e78b9b097524 100644 --- a/pkgs/development/python-modules/blessed/default.nix +++ b/pkgs/development/python-modules/blessed/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, six -, wcwidth, pytest, mock, glibcLocales +{ + lib, + buildPythonPackage, + fetchPypi, + six, + wcwidth, + pytest, + mock, + glibcLocales, }: buildPythonPackage rec { @@ -12,7 +19,11 @@ buildPythonPackage rec { hash = "sha256-LN1n+HRuBI8A30eiiA9NasvNs5kDG2BONLqPcdV4doA="; }; - nativeCheckInputs = [ pytest mock glibcLocales ]; + nativeCheckInputs = [ + pytest + mock + glibcLocales + ]; # Default tox.ini parameters not needed checkPhase = '' @@ -20,7 +31,10 @@ buildPythonPackage rec { pytest ''; - propagatedBuildInputs = [ wcwidth six ]; + propagatedBuildInputs = [ + wcwidth + six + ]; meta = with lib; { homepage = "https://github.com/jquast/blessed"; diff --git a/pkgs/development/python-modules/blessings/default.nix b/pkgs/development/python-modules/blessings/default.nix index d8c97d1e0f50..51815bdeeb55 100644 --- a/pkgs/development/python-modules/blessings/default.nix +++ b/pkgs/development/python-modules/blessings/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + six, + nose, }: buildPythonPackage rec { @@ -31,5 +32,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/blinker/default.nix b/pkgs/development/python-modules/blinker/default.nix index 2e5707d15389..3c3556cc32f6 100644 --- a/pkgs/development/python-modules/blinker/default.nix +++ b/pkgs/development/python-modules/blinker/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, flit-core + # build-system + flit-core, -# tests -, pytestCheckHook -, pytest-asyncio + # tests + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-5oIP9vpOTR2OJ0fCKDdJw/VH5P7hErmFVc3NrjKZYYI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - pythonImportsCheck = [ - "blinker" - ]; + pythonImportsCheck = [ "blinker" ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/blinkpy/default.nix b/pkgs/development/python-modules/blinkpy/default.nix index 4df10e61970c..b2b7dc6dc9bb 100644 --- a/pkgs/development/python-modules/blinkpy/default.nix +++ b/pkgs/development/python-modules/blinkpy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiofiles -, aiohttp -, pytestCheckHook -, python-dateutil -, python-slugify -, pythonOlder -, requests -, setuptools -, sortedcontainers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiofiles, + aiohttp, + pytestCheckHook, + python-dateutil, + python-slugify, + pythonOlder, + requests, + setuptools, + sortedcontainers, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace "setuptools~=68.0" "setuptools" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiofiles @@ -45,9 +44,7 @@ buildPythonPackage rec { sortedcontainers ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "blinkpy" diff --git a/pkgs/development/python-modules/blinkstick/default.nix b/pkgs/development/python-modules/blinkstick/default.nix index da4e23e527b1..6e170382a01b 100644 --- a/pkgs/development/python-modules/blinkstick/default.nix +++ b/pkgs/development/python-modules/blinkstick/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pyusb }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyusb, +}: buildPythonPackage rec { pname = "blinkstick"; @@ -23,6 +28,9 @@ buildPythonPackage rec { mainProgram = "blinkstick"; homepage = "https://github.com/arvydas/blinkstick-python"; license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ np perstark ]; + maintainers = with lib.maintainers; [ + np + perstark + ]; }; } diff --git a/pkgs/development/python-modules/blis/default.nix b/pkgs/development/python-modules/blis/default.nix index 8b465bcebdc1..f6075a7e5bc6 100644 --- a/pkgs/development/python-modules/blis/default.nix +++ b/pkgs/development/python-modules/blis/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, cython_0 -, hypothesis -, numpy -, pytestCheckHook -, pythonOlder -, gitUpdater +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cython_0, + hypothesis, + numpy, + pytestCheckHook, + pythonOlder, + gitUpdater, }: buildPythonPackage rec { @@ -41,18 +42,14 @@ buildPythonPackage rec { cython_0 ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ hypothesis pytestCheckHook ]; - pythonImportsCheck = [ - "blis" - ]; + pythonImportsCheck = [ "blis" ]; passthru = { # Do not update to BLIS 0.9.x until the following issue is resolved: diff --git a/pkgs/development/python-modules/blobfile/default.nix b/pkgs/development/python-modules/blobfile/default.nix index 039468acca4a..3e4c1dc7da63 100644 --- a/pkgs/development/python-modules/blobfile/default.nix +++ b/pkgs/development/python-modules/blobfile/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, filelock -, lxml -, pycryptodomex -, pythonOlder -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + filelock, + lxml, + pycryptodomex, + pythonOlder, + urllib3, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # Tests require a running Docker instance doCheck = false; - pythonImportsCheck = [ - "blobfile" - ]; + pythonImportsCheck = [ "blobfile" ]; meta = with lib; { description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface"; diff --git a/pkgs/development/python-modules/block-io/default.nix b/pkgs/development/python-modules/block-io/default.nix index 6540ebe02eb8..65190dcca668 100644 --- a/pkgs/development/python-modules/block-io/default.nix +++ b/pkgs/development/python-modules/block-io/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, bitcoin-utils-fork-minimal -, buildPythonPackage -, base58 -, pycryptodome -, requests -, setuptools -, pythonOlder +{ + lib, + fetchPypi, + bitcoin-utils-fork-minimal, + buildPythonPackage, + base58, + pycryptodome, + requests, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18 doCheck = false; - pythonImportsCheck = [ - "block_io" - ]; + pythonImportsCheck = [ "block_io" ]; meta = with lib; { description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io"; diff --git a/pkgs/development/python-modules/blockchain/default.nix b/pkgs/development/python-modules/blockchain/default.nix index 96c6f4174179..445836cda78d 100644 --- a/pkgs/development/python-modules/blockchain/default.nix +++ b/pkgs/development/python-modules/blockchain/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future +{ + lib, + buildPythonPackage, + fetchPypi, + future, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "enum-compat" "" ''; - propagatedBuildInputs = [ - future - ]; + propagatedBuildInputs = [ future ]; # tests are interacting with the API and not mocking the calls doCheck = false; diff --git a/pkgs/development/python-modules/blockdiag/default.nix b/pkgs/development/python-modules/blockdiag/default.nix index 47b598b306cb..b1a7dc98b57d 100644 --- a/pkgs/development/python-modules/blockdiag/default.nix +++ b/pkgs/development/python-modules/blockdiag/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, docutils -, ephem -, fetchFromGitHub -, fetchpatch -, funcparserlib -, pillow -, pynose -, pytestCheckHook -, pythonOlder -, reportlab -, setuptools -, webcolors +{ + lib, + buildPythonPackage, + docutils, + ephem, + fetchFromGitHub, + fetchpatch, + funcparserlib, + pillow, + pynose, + pytestCheckHook, + pythonOlder, + reportlab, + setuptools, + webcolors, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ docutils @@ -55,18 +54,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "src/blockdiag/tests/" - ]; + pytestFlagsArray = [ "src/blockdiag/tests/" ]; disabledTests = [ # Test require network access "test_app_cleans_up_images" ]; - pythonImportsCheck = [ - "blockdiag" - ]; + pythonImportsCheck = [ "blockdiag" ]; meta = with lib; { description = "Generate block-diagram image from spec-text file (similar to Graphviz)"; diff --git a/pkgs/development/python-modules/blockfrost-python/default.nix b/pkgs/development/python-modules/blockfrost-python/default.nix index a8da8d6e45cb..7afc1b091952 100644 --- a/pkgs/development/python-modules/blockfrost-python/default.nix +++ b/pkgs/development/python-modules/blockfrost-python/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# Python deps -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # Python deps + requests, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/blocksat-cli/default.nix b/pkgs/development/python-modules/blocksat-cli/default.nix index bc260ee07ed1..1351b26698b8 100644 --- a/pkgs/development/python-modules/blocksat-cli/default.nix +++ b/pkgs/development/python-modules/blocksat-cli/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, distro -, fetchFromGitHub -, pyasyncore -, pysnmp -, pytestCheckHook -, python-gnupg -, pythonAtLeast -, pythonOlder -, qrcode -, requests -, setuptools +{ + lib, + buildPythonPackage, + distro, + fetchFromGitHub, + pyasyncore, + pysnmp, + pytestCheckHook, + python-gnupg, + pythonAtLeast, + pythonOlder, + qrcode, + requests, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-1gz2lAS/AHeY54AaVXGeofLC68KjAP7POsIaBL3v2EY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ distro @@ -37,13 +36,9 @@ buildPythonPackage rec { python-gnupg qrcode requests - ] ++ lib.optionals (pythonAtLeast "3.12") [ - pyasyncore - ]; + ] ++ lib.optionals (pythonAtLeast "3.12") [ pyasyncore ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ "test_monitor_get_stats" @@ -51,9 +46,7 @@ buildPythonPackage rec { "test_erasure_recovery" ]; - pythonImportsCheck = [ - "blocksatcli" - ]; + pythonImportsCheck = [ "blocksatcli" ]; meta = with lib; { description = "Blockstream Satellite CLI"; diff --git a/pkgs/development/python-modules/bloodhound-py/default.nix b/pkgs/development/python-modules/bloodhound-py/default.nix index bf8fd3f942de..f2e955550274 100644 --- a/pkgs/development/python-modules/bloodhound-py/default.nix +++ b/pkgs/development/python-modules/bloodhound-py/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchPypi -, impacket -, ldap3 -, pycryptodome -, setuptools +{ + lib, + buildPythonPackage, + dnspython, + fetchPypi, + impacket, + ldap3, + pycryptodome, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-USZU19dLppoq19+JMFtiojyJk6bj96nP2JQDq7JFkHM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dnspython @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "bloodhound" - ]; + pythonImportsCheck = [ "bloodhound" ]; meta = with lib; { description = "Python based ingestor for BloodHound, based on Impacket"; diff --git a/pkgs/development/python-modules/blosc2/default.nix b/pkgs/development/python-modules/blosc2/default.nix index efaec4ead713..db948e8098bc 100644 --- a/pkgs/development/python-modules/blosc2/default.nix +++ b/pkgs/development/python-modules/blosc2/default.nix @@ -1,31 +1,32 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cmake -, cython -, ninja -, oldest-supported-numpy -, pkg-config -, scikit-build -, setuptools -, wheel + # build-system + cmake, + cython, + ninja, + oldest-supported-numpy, + pkg-config, + scikit-build, + setuptools, + wheel, -# c library -, c-blosc2 + # c library + c-blosc2, -# propagates -, msgpack -, ndindex -, numpy -, py-cpuinfo -, rich + # propagates + msgpack, + ndindex, + numpy, + py-cpuinfo, + rich, -# tests -, psutil -, pytestCheckHook -, torch + # tests + psutil, + pytestCheckHook, + torch, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bluecurrent-api/default.nix b/pkgs/development/python-modules/bluecurrent-api/default.nix index 26c631706a17..a42998c1d318 100644 --- a/pkgs/development/python-modules/bluecurrent-api/default.nix +++ b/pkgs/development/python-modules/bluecurrent-api/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, pytz -, websockets -, pytest-asyncio -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + pytz, + websockets, + pytest-asyncio, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-mWRTSMS68+J1Z4PYOFF/UvofSqV1wv0gjiTACEWDfNg="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pytz diff --git a/pkgs/development/python-modules/bluemaestro-ble/default.nix b/pkgs/development/python-modules/bluemaestro-ble/default.nix index d6eb12166a8a..d1f8cbd91264 100644 --- a/pkgs/development/python-modules/bluemaestro-ble/default.nix +++ b/pkgs/development/python-modules/bluemaestro-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-mJ5JNGN4F9U3WMJQDwiZwuxE0zOirwo1sWF3/bVwXhY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -33,18 +32,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=bluemaestro_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "bluemaestro_ble" - ]; + pythonImportsCheck = [ "bluemaestro_ble" ]; meta = with lib; { description = "Library for bluemaestro BLE devices"; diff --git a/pkgs/development/python-modules/bluepy-devices/default.nix b/pkgs/development/python-modules/bluepy-devices/default.nix index 45aa2f95c3e8..85bce7b2c85d 100644 --- a/pkgs/development/python-modules/bluepy-devices/default.nix +++ b/pkgs/development/python-modules/bluepy-devices/default.nix @@ -1,7 +1,8 @@ -{ lib -, bluepy -, buildPythonPackage -, fetchPypi +{ + lib, + bluepy, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -11,7 +12,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "bluepy_devices"; - inherit version; + inherit version; sha256 = "02zzzivxq2vifgs65m2rm8pqlsbzsbc419c032irzvfxjx539mr8"; }; diff --git a/pkgs/development/python-modules/bluepy/default.nix b/pkgs/development/python-modules/bluepy/default.nix index c0053a111415..4a3256836c67 100644 --- a/pkgs/development/python-modules/bluepy/default.nix +++ b/pkgs/development/python-modules/bluepy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkg-config -, glib +{ + lib, + buildPythonPackage, + fetchPypi, + pkg-config, + glib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bluetooth-adapters/default.nix b/pkgs/development/python-modules/bluetooth-adapters/default.nix index c41d87173529..518b38000ca0 100644 --- a/pkgs/development/python-modules/bluetooth-adapters/default.nix +++ b/pkgs/development/python-modules/bluetooth-adapters/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, aiooui -, async-timeout -, bleak -, buildPythonPackage -, dbus-fast -, fetchFromGitHub -, mac-vendor-lookup -, myst-parser -, poetry-core -, pytestCheckHook -, pythonOlder -, sphinx-rtd-theme -, sphinxHook -, uart-devices -, usb-devices +{ + lib, + aiohttp, + aiooui, + async-timeout, + bleak, + buildPythonPackage, + dbus-fast, + fetchFromGitHub, + mac-vendor-lookup, + myst-parser, + poetry-core, + pytestCheckHook, + pythonOlder, + sphinx-rtd-theme, + sphinxHook, + uart-devices, + usb-devices, }: buildPythonPackage rec { @@ -59,13 +60,9 @@ buildPythonPackage rec { usb-devices ]; - pythonImportsCheck = [ - "bluetooth_adapters" - ]; + pythonImportsCheck = [ "bluetooth_adapters" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Tools to enumerate and find Bluetooth Adapters"; diff --git a/pkgs/development/python-modules/bluetooth-data-tools/default.nix b/pkgs/development/python-modules/bluetooth-data-tools/default.nix index fbaf458be3f3..4a68e748c9ce 100644 --- a/pkgs/development/python-modules/bluetooth-data-tools/default.nix +++ b/pkgs/development/python-modules/bluetooth-data-tools/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cryptography -, cython -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cryptography, + cython, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -33,22 +34,16 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=bluetooth_data_tools --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "bluetooth_data_tools" - ]; + pythonImportsCheck = [ "bluetooth_data_tools" ]; meta = with lib; { description = "Library for converting bluetooth data and packets"; diff --git a/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix b/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix index a74769d0ec57..c242f7d8d5cc 100644 --- a/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix +++ b/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -22,27 +23,21 @@ buildPythonPackage rec { hash = "sha256-NC0l3wbQKz4MVM0kHbXBAUol74ir7V/JQgeYCVuyRs4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ home-assistant-bluetooth sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "bluetooth_sensor_state_data" - ]; + pythonImportsCheck = [ "bluetooth_sensor_state_data" ]; meta = with lib; { description = "Models for storing and converting Bluetooth Sensor State Data"; diff --git a/pkgs/development/python-modules/blurhash-python/default.nix b/pkgs/development/python-modules/blurhash-python/default.nix index 2b0232a7e9b9..e8acda803941 100644 --- a/pkgs/development/python-modules/blurhash-python/default.nix +++ b/pkgs/development/python-modules/blurhash-python/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cffi -, pillow -, pytestCheckHook -, setuptools-scm -, six +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cffi, + pillow, + pytestCheckHook, + setuptools-scm, + six, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "blurhash" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Compact representation of a placeholder for an image"; diff --git a/pkgs/development/python-modules/blurhash/default.nix b/pkgs/development/python-modules/blurhash/default.nix index 08adb2b92b17..349687e30fe3 100644 --- a/pkgs/development/python-modules/blurhash/default.nix +++ b/pkgs/development/python-modules/blurhash/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pillow -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pillow, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bme280spi/default.nix b/pkgs/development/python-modules/bme280spi/default.nix index 7747925a2478..4fb429cd6d92 100644 --- a/pkgs/development/python-modules/bme280spi/default.nix +++ b/pkgs/development/python-modules/bme280spi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, spidev +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + spidev, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "51682acefda6f29eaaf9f37815edbfdd48ef0e9f1509419eceafe7b440eddc6e"; }; - propagatedBuildInputs = [ - spidev - ]; + propagatedBuildInputs = [ spidev ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/bme680/default.nix b/pkgs/development/python-modules/bme680/default.nix index 955eee09cdef..bed4b74b0344 100644 --- a/pkgs/development/python-modules/bme680/default.nix +++ b/pkgs/development/python-modules/bme680/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, smbus-cffi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + smbus-cffi, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-gmdRxMJ0DoCyNcb/bYp746PBi4HktHAAYOcSQJ0Uheg="; }; - propagatedBuildInputs = [ - smbus-cffi - ]; + propagatedBuildInputs = [ smbus-cffi ]; preBuild = '' cd library diff --git a/pkgs/development/python-modules/bnnumerizer/default.nix b/pkgs/development/python-modules/bnnumerizer/default.nix index c3beaa01cf12..f4303af27ed1 100644 --- a/pkgs/development/python-modules/bnnumerizer/default.nix +++ b/pkgs/development/python-modules/bnnumerizer/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bnunicodenormalizer/default.nix b/pkgs/development/python-modules/bnunicodenormalizer/default.nix index 19aa011d3782..96e6323c5e4a 100644 --- a/pkgs/development/python-modules/bnunicodenormalizer/default.nix +++ b/pkgs/development/python-modules/bnunicodenormalizer/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/boa-api/default.nix b/pkgs/development/python-modules/boa-api/default.nix index d96b64522622..2d6ea217cb95 100644 --- a/pkgs/development/python-modules/boa-api/default.nix +++ b/pkgs/development/python-modules/boa-api/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "boaapi" - ]; + pythonImportsCheck = [ "boaapi" ]; meta = { homepage = "https://github.com/boalang/api-python"; diff --git a/pkgs/development/python-modules/boilerpy3/default.nix b/pkgs/development/python-modules/boilerpy3/default.nix index ef2980959d0b..47afb1abe6b9 100644 --- a/pkgs/development/python-modules/boilerpy3/default.nix +++ b/pkgs/development/python-modules/boilerpy3/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: let @@ -27,7 +28,6 @@ buildPythonPackage { --replace '>=3.6.*' '>=3.6' ''; - pythonImportsCheck = [ "boilerpy3" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/bokeh/default.nix b/pkgs/development/python-modules/bokeh/default.nix index 8f052c4b5b17..faffe2d1749e 100644 --- a/pkgs/development/python-modules/bokeh/default.nix +++ b/pkgs/development/python-modules/bokeh/default.nix @@ -1,46 +1,47 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchFromGitHub -, pythonOlder -, substituteAll -, colorama -, contourpy -, jinja2 -, numpy -, nodejs -, packaging -, pandas -, pillow -, tornado -, pytestCheckHook -, pyyaml -, setuptools -, setuptools-git-versioning -, xyzservices -, beautifulsoup4 -, channels -, click -, colorcet -, coverage -, firefox -, geckodriver -, isort -, json5 -, nbconvert -, networkx -, psutil -, pygments -, pygraphviz -, pytest -, pytest-asyncio -, pytest-xdist -, pytest-timeout -, requests -, scipy -, selenium -, toml -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + fetchFromGitHub, + pythonOlder, + substituteAll, + colorama, + contourpy, + jinja2, + numpy, + nodejs, + packaging, + pandas, + pillow, + tornado, + pytestCheckHook, + pyyaml, + setuptools, + setuptools-git-versioning, + xyzservices, + beautifulsoup4, + channels, + click, + colorcet, + coverage, + firefox, + geckodriver, + isort, + json5, + nbconvert, + networkx, + psutil, + pygments, + pygraphviz, + pytest, + pytest-asyncio, + pytest-xdist, + pytest-timeout, + requests, + scipy, + selenium, + toml, + typing-extensions, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/boltons/default.nix b/pkgs/development/python-modules/boltons/default.nix index 2046daf9297f..06906435d850 100644 --- a/pkgs/development/python-modules/boltons/default.nix +++ b/pkgs/development/python-modules/boltons/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-Ie5CPT2u/2/hAIhDzXT6CPzJwmbgt3B6q3oxqKYb27o="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Tests bind to localhost __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "boltons" - ]; + pythonImportsCheck = [ "boltons" ]; meta = with lib; { description = "Constructs, recipes, and snippets extending the Python standard library"; diff --git a/pkgs/development/python-modules/boltztrap2/default.nix b/pkgs/development/python-modules/boltztrap2/default.nix index f53d49af8d51..7994a26618ee 100644 --- a/pkgs/development/python-modules/boltztrap2/default.nix +++ b/pkgs/development/python-modules/boltztrap2/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, spglib -, numpy -, scipy -, matplotlib -, ase -, netcdf4 -, pytest -, pythonOlder -, cython -, cmake +{ + lib, + buildPythonPackage, + fetchPypi, + spglib, + numpy, + scipy, + matplotlib, + ase, + netcdf4, + pytest, + pythonOlder, + cython, + cmake, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { # pypi release does no include files for tests doCheck = false; - pythonImportsCheck = [ - "BoltzTraP2" - ]; + pythonImportsCheck = [ "BoltzTraP2" ]; meta = with lib; { description = "Band-structure interpolator and transport coefficient calculator"; diff --git a/pkgs/development/python-modules/bond-api/default.nix b/pkgs/development/python-modules/bond-api/default.nix index e326688501e0..2131fa0bfb2d 100644 --- a/pkgs/development/python-modules/bond-api/default.nix +++ b/pkgs/development/python-modules/bond-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, aioresponses -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + aioresponses, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-+87/j94eHyW3EMMBK+aXaNTVoNxsixeLusyBsPWa9yM="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ aioresponses @@ -32,9 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "bond_api" - ]; + pythonImportsCheck = [ "bond_api" ]; meta = with lib; { description = "Asynchronous Python wrapper library over Bond Local API"; diff --git a/pkgs/development/python-modules/bond-async/default.nix b/pkgs/development/python-modules/bond-async/default.nix index 1278315d78cc..49e7cb351518 100644 --- a/pkgs/development/python-modules/bond-async/default.nix +++ b/pkgs/development/python-modules/bond-async/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, aioresponses -, orjson -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + aioresponses, + orjson, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "bond_async" - ]; + pythonImportsCheck = [ "bond_async" ]; meta = with lib; { description = "Asynchronous Python wrapper library over Bond Local API"; diff --git a/pkgs/development/python-modules/bonsai/default.nix b/pkgs/development/python-modules/bonsai/default.nix index 43c88c1c73a5..530f624987a1 100644 --- a/pkgs/development/python-modules/bonsai/default.nix +++ b/pkgs/development/python-modules/bonsai/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, cyrus_sasl -, openldap -, gevent -, tornado -, trio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + cyrus_sasl, + openldap, + gevent, + tornado, + trio, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-h/PbwQ69fDcmUCazMtxXP1iE0fE1on+WoK+wYgQ9jLs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ cyrus_sasl @@ -41,9 +40,7 @@ buildPythonPackage rec { trio = [ trio ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # requires running LDAP server diff --git a/pkgs/development/python-modules/boolean-py/default.nix b/pkgs/development/python-modules/boolean-py/default.nix index 47afe1ef02b6..8fd6b6031120 100644 --- a/pkgs/development/python-modules/boolean-py/default.nix +++ b/pkgs/development/python-modules/boolean-py/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-i6aNzGDhZip9YHXLiuh9crGm2qT2toBU2xze4PDLleg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "boolean" - ]; + pythonImportsCheck = [ "boolean" ]; meta = with lib; { description = "Implements boolean algebra in one module"; diff --git a/pkgs/development/python-modules/booleanoperations/default.nix b/pkgs/development/python-modules/booleanoperations/default.nix index 4d96bb7612ed..ca2518dbb4ea 100644 --- a/pkgs/development/python-modules/booleanoperations/default.nix +++ b/pkgs/development/python-modules/booleanoperations/default.nix @@ -1,6 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi -, fonttools, fs, pyclipper, defcon, fontpens -, setuptools-scm, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, + fs, + pyclipper, + defcon, + fontpens, + setuptools-scm, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/boost-histogram/default.nix b/pkgs/development/python-modules/boost-histogram/default.nix index 14eeb53c93f2..de4224d13ee7 100644 --- a/pkgs/development/python-modules/boost-histogram/default.nix +++ b/pkgs/development/python-modules/boost-histogram/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, boost -, numpy -, pytestCheckHook -, pytest-benchmark -, setuptools-scm +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + boost, + numpy, + pytestCheckHook, + pytest-benchmark, + setuptools-scm, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-lxRvc19GfVBpdqBH8/I3zlmECpUv0jH19DH4l/sAbN0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - boost - ]; + buildInputs = [ boost ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/bootstrap/build/default.nix b/pkgs/development/python-modules/bootstrap/build/default.nix index f4e49bd65605..2101ee06c6bb 100644 --- a/pkgs/development/python-modules/bootstrap/build/default.nix +++ b/pkgs/development/python-modules/bootstrap/build/default.nix @@ -1,46 +1,52 @@ -{ lib -, stdenv -, python -, build -, flit-core -, installer -, packaging -, pyproject-hooks -, tomli -, makeWrapper +{ + lib, + stdenv, + python, + build, + flit-core, + installer, + packaging, + pyproject-hooks, + tomli, + makeWrapper, }: let - buildBootstrapPythonModule = basePackage: attrs: stdenv.mkDerivation ({ - pname = "${python.libPrefix}-bootstrap-${basePackage.pname}"; - inherit (basePackage) version src meta; + buildBootstrapPythonModule = + basePackage: attrs: + stdenv.mkDerivation ( + { + pname = "${python.libPrefix}-bootstrap-${basePackage.pname}"; + inherit (basePackage) version src meta; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeWrapper ]; - buildPhase = '' - runHook preBuild + buildPhase = '' + runHook preBuild - PYTHONPATH="${flit-core}/${python.sitePackages}" \ - ${python.interpreter} -m flit_core.wheel + PYTHONPATH="${flit-core}/${python.sitePackages}" \ + ${python.interpreter} -m flit_core.wheel - runHook postBuild - ''; + runHook postBuild + ''; - installPhase = '' - runHook preInstall + installPhase = '' + runHook preInstall - PYTHONPATH="${installer}/${python.sitePackages}" \ - ${python.interpreter} -m installer \ - --destdir "$out" --prefix "" dist/*.whl + PYTHONPATH="${installer}/${python.sitePackages}" \ + ${python.interpreter} -m installer \ + --destdir "$out" --prefix "" dist/*.whl - runHook postInstall - ''; - } // attrs); + runHook postInstall + ''; + } + // attrs + ); - bootstrap-packaging = buildBootstrapPythonModule packaging {}; + bootstrap-packaging = buildBootstrapPythonModule packaging { }; - bootstrap-pyproject-hooks = buildBootstrapPythonModule pyproject-hooks {}; + bootstrap-pyproject-hooks = buildBootstrapPythonModule pyproject-hooks { }; - bootstrap-tomli = buildBootstrapPythonModule tomli {}; + bootstrap-tomli = buildBootstrapPythonModule tomli { }; sitePkgs = python.sitePackages; in diff --git a/pkgs/development/python-modules/bootstrap/flit-core/default.nix b/pkgs/development/python-modules/bootstrap/flit-core/default.nix index 43fec03901cd..d348b1f877c8 100644 --- a/pkgs/development/python-modules/bootstrap/flit-core/default.nix +++ b/pkgs/development/python-modules/bootstrap/flit-core/default.nix @@ -1,12 +1,18 @@ -{ lib -, stdenv -, python -, flit-core +{ + lib, + stdenv, + python, + flit-core, }: stdenv.mkDerivation rec { pname = "${python.libPrefix}-bootstrap-${flit-core.pname}"; - inherit (flit-core) version src patches meta; + inherit (flit-core) + version + src + patches + meta + ; sourceRoot = "${src.name}/flit_core"; diff --git a/pkgs/development/python-modules/bootstrap/installer/default.nix b/pkgs/development/python-modules/bootstrap/installer/default.nix index a3944ba39500..454ec2a239a1 100644 --- a/pkgs/development/python-modules/bootstrap/installer/default.nix +++ b/pkgs/development/python-modules/bootstrap/installer/default.nix @@ -1,13 +1,19 @@ -{ lib -, stdenv -, python -, flit-core -, installer +{ + lib, + stdenv, + python, + flit-core, + installer, }: stdenv.mkDerivation { pname = "${python.libPrefix}-bootstrap-${installer.pname}"; - inherit (installer) version src patches meta; + inherit (installer) + version + src + patches + meta + ; buildPhase = '' runHook preBuild diff --git a/pkgs/development/python-modules/bootstrap/packaging/default.nix b/pkgs/development/python-modules/bootstrap/packaging/default.nix index f8a10d4ddd12..8f429e5f5c65 100644 --- a/pkgs/development/python-modules/bootstrap/packaging/default.nix +++ b/pkgs/development/python-modules/bootstrap/packaging/default.nix @@ -1,8 +1,9 @@ -{ stdenv -, python -, flit-core -, installer -, packaging +{ + stdenv, + python, + flit-core, + installer, + packaging, }: stdenv.mkDerivation { diff --git a/pkgs/development/python-modules/bork/default.nix b/pkgs/development/python-modules/bork/default.nix index 578c218372b5..d3368634604d 100644 --- a/pkgs/development/python-modules/bork/default.nix +++ b/pkgs/development/python-modules/bork/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, build -, coloredlogs -, packaging -, pip -, readme-renderer -, toml -, twine +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + build, + coloredlogs, + packaging, + pip, + readme-renderer, + toml, + twine, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { pip readme-renderer twine - ] ++ lib.optionals (pythonOlder "3.11") [ - toml - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ toml ]; pythonImportsCheck = [ "bork" @@ -56,13 +55,9 @@ buildPythonPackage rec { "bork.cli" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-m 'not network'" - ]; + pytestFlagsArray = [ "-m 'not network'" ]; disabledTests = [ # tries to call python -m bork diff --git a/pkgs/development/python-modules/boschshcpy/default.nix b/pkgs/development/python-modules/boschshcpy/default.nix index 14e04b17f604..ba4c5d9e9e20 100644 --- a/pkgs/development/python-modules/boschshcpy/default.nix +++ b/pkgs/development/python-modules/boschshcpy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, getmac -, pythonOlder -, requests -, setuptools -, zeroconf +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + getmac, + pythonOlder, + requests, + setuptools, + zeroconf, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-lQDYJrla2iDk1MbLHjBGP3ZcZ1djD3bWhz15RaBFMgg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography @@ -37,9 +36,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "boschshcpy" - ]; + pythonImportsCheck = [ "boschshcpy" ]; meta = with lib; { description = "Python module to work with the Bosch Smart Home Controller API"; diff --git a/pkgs/development/python-modules/boto/default.nix b/pkgs/development/python-modules/boto/default.nix index b31d6d13c527..9d676c3612f6 100644 --- a/pkgs/development/python-modules/boto/default.nix +++ b/pkgs/development/python-modules/boto/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, python -, nose -, mock -, requests -, httpretty +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + python, + nose, + mock, + requests, + httpretty, }: buildPythonPackage rec { @@ -40,8 +41,14 @@ buildPythonPackage rec { ${python.interpreter} tests/test.py default ''; - nativeCheckInputs = [ nose mock ]; - propagatedBuildInputs = [ requests httpretty ]; + nativeCheckInputs = [ + nose + mock + ]; + propagatedBuildInputs = [ + requests + httpretty + ]; meta = with lib; { homepage = "https://github.com/boto/boto"; diff --git a/pkgs/development/python-modules/boto3/default.nix b/pkgs/development/python-modules/boto3/default.nix index e8ce2d73f11b..a98441952ed6 100644 --- a/pkgs/development/python-modules/boto3/default.nix +++ b/pkgs/development/python-modules/boto3/default.nix @@ -1,14 +1,15 @@ -{ lib -, botocore -, buildPythonPackage -, fetchFromGitHub -, jmespath -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, s3transfer -, setuptools +{ + lib, + botocore, + buildPythonPackage, + fetchFromGitHub, + jmespath, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + s3transfer, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { setuptools ]; - pythonRelaxDeps = [ - "s3transfer" - ]; + pythonRelaxDeps = [ "s3transfer" ]; propagatedBuildInputs = [ botocore @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "boto3" - ]; + pythonImportsCheck = [ "boto3" ]; disabledTestPaths = [ # Integration tests require networking @@ -55,9 +52,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - crt = [ - botocore.optional-dependencies.crt - ]; + crt = [ botocore.optional-dependencies.crt ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/botocore-stubs/default.nix b/pkgs/development/python-modules/botocore-stubs/default.nix index 4d1960ebe115..0528be59b90c 100644 --- a/pkgs/development/python-modules/botocore-stubs/default.nix +++ b/pkgs/development/python-modules/botocore-stubs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, pythonOlder -, types-awscrt -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + pythonOlder, + types-awscrt, + typing-extensions, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-ZNgKNGfjsZk56cJ1CvMzKLMIf49SSZjb337RaCJ/UH0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ types-awscrt typing-extensions ]; - pythonImportsCheck = [ - "botocore-stubs" - ]; + pythonImportsCheck = [ "botocore-stubs" ]; meta = with lib; { description = "Type annotations and code completion for botocore"; diff --git a/pkgs/development/python-modules/botocore/default.nix b/pkgs/development/python-modules/botocore/default.nix index 0c9dfaa7920a..4d2237c461f7 100644 --- a/pkgs/development/python-modules/botocore/default.nix +++ b/pkgs/development/python-modules/botocore/default.nix @@ -1,15 +1,16 @@ -{ lib -, awscrt -, buildPythonPackage -, fetchPypi -, jmespath -, jsonschema -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, urllib3 +{ + lib, + awscrt, + buildPythonPackage, + fetchPypi, + jmespath, + jsonschema, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-o6TYV/CUHZih5c6M1kw5BiJx/qC+TZ89DWr/bLWBI7k="; }; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -52,14 +51,10 @@ buildPythonPackage rec { "tests/functional" ]; - pythonImportsCheck = [ - "botocore" - ]; + pythonImportsCheck = [ "botocore" ]; passthru.optional-dependencies = { - crt = [ - awscrt - ]; + crt = [ awscrt ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/botorch/default.nix b/pkgs/development/python-modules/botorch/default.nix index bddf584fa91b..e35cb5261f7b 100644 --- a/pkgs/development/python-modules/botorch/default.nix +++ b/pkgs/development/python-modules/botorch/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gpytorch -, linear-operator -, multipledispatch -, pyro-ppl -, setuptools -, setuptools-scm -, wheel -, torch -, scipy -, pytestCheckHook -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gpytorch, + linear-operator, + multipledispatch, + pyro-ppl, + setuptools, + setuptools-scm, + wheel, + torch, + scipy, + pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { torch ]; - pythonRelaxDeps = [ - "linear-operator" - ]; + pythonRelaxDeps = [ "linear-operator" ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "botorch" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/bottle/default.nix b/pkgs/development/python-modules/bottle/default.nix index 8e89ce8d14cc..ece380e517e1 100644 --- a/pkgs/development/python-modules/bottle/default.nix +++ b/pkgs/development/python-modules/bottle/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -16,31 +17,29 @@ buildPythonPackage rec { hash = "sha256-4anJSXCubXELP7RSYpTf64byy0qB7/OkuY3ED7Dl4CE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' cd test ''; - disabledTests = [ - "test_delete_cookie" - "test_error" - "test_error_in_generator_callback" - # timing sensitive - "test_ims" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/bottlepy/bottle/issues/1422 - # ModuleNotFoundError: No module named 'bottle.ext' - "test_data_import" - "test_direkt_import" - "test_from_import" - ]; + disabledTests = + [ + "test_delete_cookie" + "test_error" + "test_error_in_generator_callback" + # timing sensitive + "test_ims" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/bottlepy/bottle/issues/1422 + # ModuleNotFoundError: No module named 'bottle.ext' + "test_data_import" + "test_direkt_import" + "test_from_import" + ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/bottleneck/default.nix b/pkgs/development/python-modules/bottleneck/default.nix index 677b4a990362..4a0456b936fd 100644 --- a/pkgs/development/python-modules/bottleneck/default.nix +++ b/pkgs/development/python-modules/bottleneck/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pytestCheckHook -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pytestCheckHook, + python, + pythonOlder, }: buildPythonPackage rec { @@ -20,25 +21,15 @@ buildPythonPackage rec { hash = "sha256-Z4DYlpabp/U8iZW6kMh8VIvrPbQ13JDGC5oQ7Rq02Gg="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "$out/${python.sitePackages}" - ]; + pytestFlagsArray = [ "$out/${python.sitePackages}" ]; - disabledTests = [ - "test_make_c_files" - ]; + disabledTests = [ "test_make_c_files" ]; - pythonImportsCheck = [ - "bottleneck" - ]; + pythonImportsCheck = [ "bottleneck" ]; meta = with lib; { description = "Fast NumPy array functions"; diff --git a/pkgs/development/python-modules/bottombar/default.nix b/pkgs/development/python-modules/bottombar/default.nix index ab7a9b06d64f..227e00d66e54 100644 --- a/pkgs/development/python-modules/bottombar/default.nix +++ b/pkgs/development/python-modules/bottombar/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, }: buildPythonPackage rec { @@ -16,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-W+Cbcgb664nVT/nsFdDruT688JWG2NZnF5hDDezTgnw="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # The package only has some "interactive" tests where a user must check for # the correct output and hit enter after every check doCheck = false; - pythonImportsCheck = [ - "bottombar" - ]; + pythonImportsCheck = [ "bottombar" ]; meta = with lib; { description = "Context manager that prints a status line at the bottom of a terminal window"; diff --git a/pkgs/development/python-modules/boxx/default.nix b/pkgs/development/python-modules/boxx/default.nix index 67d862941c8e..1a0821f7d5fb 100644 --- a/pkgs/development/python-modules/boxx/default.nix +++ b/pkgs/development/python-modules/boxx/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, xvfb-run -, matplotlib -, scikit-image -, numpy -, pandas -, imageio -, snakeviz -, fn -, pyopengl -, seaborn -, torch -, pythonOlder -, torchvision +{ + lib, + buildPythonPackage, + fetchPypi, + python, + xvfb-run, + matplotlib, + scikit-image, + numpy, + pandas, + imageio, + snakeviz, + fn, + pyopengl, + seaborn, + torch, + pythonOlder, + torchvision, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { torchvision ]; - pythonImportsCheck = [ - "boxx" - ]; + pythonImportsCheck = [ "boxx" ]; checkPhase = '' xvfb-run ${python.interpreter} -m unittest diff --git a/pkgs/development/python-modules/bpemb/default.nix b/pkgs/development/python-modules/bpemb/default.nix index ab6d5357e53b..03f4ae1cd216 100644 --- a/pkgs/development/python-modules/bpemb/default.nix +++ b/pkgs/development/python-modules/bpemb/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, setuptools + setuptools, -, gensim -, numpy -, requests -, sentencepiece -, tqdm + gensim, + numpy, + requests, + sentencepiece, + tqdm, }: buildPythonPackage { @@ -23,9 +24,7 @@ buildPythonPackage { hash = "sha256-nVaMXb5TBhO/vWE8AYAA3P9dSPI8O+rmzFvbEj8VEkE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ gensim @@ -38,9 +37,7 @@ buildPythonPackage { # need network connection for tests doCheck = false; - pythonImportsCheck = [ - "bpemb" - ]; + pythonImportsCheck = [ "bpemb" ]; meta = with lib; { description = "Byte-pair embeddings in 275 languages"; diff --git a/pkgs/development/python-modules/bpycv/default.nix b/pkgs/development/python-modules/bpycv/default.nix index b72261296b25..a04cb8c79de4 100644 --- a/pkgs/development/python-modules/bpycv/default.nix +++ b/pkgs/development/python-modules/bpycv/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, beautifulsoup4 -, blender -, boxx -, bpycv -, buildPythonPackage -, fetchFromGitHub -, fetchPypi -, minexr -, opencv4 -, python3Packages -, requests -, runCommand -, writeText -, zcs +{ + stdenv, + lib, + beautifulsoup4, + blender, + boxx, + bpycv, + buildPythonPackage, + fetchFromGitHub, + fetchPypi, + minexr, + opencv4, + python3Packages, + requests, + runCommand, + writeText, + zcs, }: buildPythonPackage rec { @@ -43,16 +44,19 @@ buildPythonPackage rec { doCheck = false; passthru.tests = { - render = runCommand "bpycv-render-test" { - BPY_EXAMPLE_DATA = fetchFromGitHub { - owner = "DIYer22"; - repo = "bpycv_example_data"; - hash = "sha256-dGb6KvbXTGTu5f4AqhA+i4AwTqBoR5SdXk0vsMEcD3Q="; - rev = "6ce0e65c107d572011394da16ffdf851e988dbb4"; - }; - } '' - ${blender.withPackages (ps: [ps.bpycv])}/bin/blender-wrapped -b -P ${./bpycv-test.py} - ''; + render = + runCommand "bpycv-render-test" + { + BPY_EXAMPLE_DATA = fetchFromGitHub { + owner = "DIYer22"; + repo = "bpycv_example_data"; + hash = "sha256-dGb6KvbXTGTu5f4AqhA+i4AwTqBoR5SdXk0vsMEcD3Q="; + rev = "6ce0e65c107d572011394da16ffdf851e988dbb4"; + }; + } + '' + ${blender.withPackages (ps: [ ps.bpycv ])}/bin/blender-wrapped -b -P ${./bpycv-test.py} + ''; }; meta = with lib; { diff --git a/pkgs/development/python-modules/bpython/default.nix b/pkgs/development/python-modules/bpython/default.nix index beb3d86cb70c..688f83ae24a1 100644 --- a/pkgs/development/python-modules/bpython/default.nix +++ b/pkgs/development/python-modules/bpython/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, curtsies -, cwcwidth -, greenlet -, jedi -, pygments -, pytestCheckHook -, pythonOlder -, pyperclip -, pyxdg -, requests -, substituteAll -, typing-extensions -, urwid -, watchdog +{ + lib, + buildPythonPackage, + fetchPypi, + curtsies, + cwcwidth, + greenlet, + jedi, + pygments, + pytestCheckHook, + pythonOlder, + pyperclip, + pyxdg, + requests, + substituteAll, + typing-extensions, + urwid, + watchdog, }: buildPythonPackage rec { @@ -48,13 +49,9 @@ buildPythonPackage rec { --replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "bpython" - ]; + pythonImportsCheck = [ "bpython" ]; disabledTests = [ # Check for syntax error ends with an AssertionError @@ -65,6 +62,9 @@ buildPythonPackage rec { description = "A fancy curses interface to the Python interactive interpreter"; homepage = "https://bpython-interpreter.org/"; license = licenses.mit; - maintainers = with maintainers; [ flokli dotlambda ]; + maintainers = with maintainers; [ + flokli + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/bqplot/default.nix b/pkgs/development/python-modules/bqplot/default.nix index a38d600f0f3b..cd8495a818e6 100644 --- a/pkgs/development/python-modules/bqplot/default.nix +++ b/pkgs/development/python-modules/bqplot/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, jupyter-packaging -, jupyterlab -, bqscales -, ipywidgets -, numpy -, pandas -, traitlets -, traittypes +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + jupyter-packaging, + jupyterlab, + bqscales, + ipywidgets, + numpy, + pandas, + traitlets, + traittypes, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bqscales/default.nix b/pkgs/development/python-modules/bqscales/default.nix index a5fae24a13eb..2f1a0b0241d0 100644 --- a/pkgs/development/python-modules/bqscales/default.nix +++ b/pkgs/development/python-modules/bqscales/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, hatchling -, hatch-jupyter-builder -, jupyterlab -, ipywidgets -, numpy -, traitlets -, traittypes +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatchling, + hatch-jupyter-builder, + jupyterlab, + ipywidgets, + numpy, + traitlets, + traittypes, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/braceexpand/default.nix b/pkgs/development/python-modules/braceexpand/default.nix index 76c339bb9ac3..0b32a37698be 100644 --- a/pkgs/development/python-modules/braceexpand/default.nix +++ b/pkgs/development/python-modules/braceexpand/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bracex/default.nix b/pkgs/development/python-modules/bracex/default.nix index d2b8bb06ff9b..7e341d4c1ce0 100644 --- a/pkgs/development/python-modules/bracex/default.nix +++ b/pkgs/development/python-modules/bracex/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-on6vHfQs9WH+1Yt6jz/fEp0eoWqB4frdHReYm8Y4S+s="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/braintree/default.nix b/pkgs/development/python-modules/braintree/default.nix index 40715bcdacc1..7791004c1b6a 100644 --- a/pkgs/development/python-modules/braintree/default.nix +++ b/pkgs/development/python-modules/braintree/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-qeqQX+qyy78sLe+46CA4D6VAxNHUVahS4LMYdGDzc2k="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ nose pytestCheckHook ]; - pythonImportsCheck = [ - "braintree" - ]; + pythonImportsCheck = [ "braintree" ]; disabledTestPaths = [ # Don't test integrations diff --git a/pkgs/development/python-modules/branca/default.nix b/pkgs/development/python-modules/branca/default.nix index 77f146896062..627939521ab3 100644 --- a/pkgs/development/python-modules/branca/default.nix +++ b/pkgs/development/python-modules/branca/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, pytestCheckHook -, pythonOlder -, setuptools-scm -, selenium +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + pytestCheckHook, + pythonOlder, + setuptools-scm, + selenium, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { rm setup.cfg ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - jinja2 - ]; + propagatedBuildInputs = [ jinja2 ]; nativeCheckInputs = [ pytestCheckHook selenium ]; - pythonImportsCheck = [ - "branca" - ]; + pythonImportsCheck = [ "branca" ]; disabledTestPaths = [ # Some tests require a browser diff --git a/pkgs/development/python-modules/bravado-core/default.nix b/pkgs/development/python-modules/bravado-core/default.nix index 9699e1cc04fb..e3832e5ed550 100644 --- a/pkgs/development/python-modules/bravado-core/default.nix +++ b/pkgs/development/python-modules/bravado-core/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, # build inputs -, jsonref -, jsonschema -, python-dateutil -, pyyaml -, requests -, simplejson -, six -, swagger-spec-validator -, pytz -, msgpack + jsonref, + jsonschema, + python-dateutil, + pyyaml, + requests, + simplejson, + six, + swagger-spec-validator, + pytz, + msgpack, # check inputs -, pytestCheckHook -, mock + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-kyHmZNPl5lLKmm5i3TSi8Tfi96mQHqaiyBfceBJcOdw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jsonref @@ -50,17 +49,11 @@ buildPythonPackage rec { msgpack ] ++ jsonschema.optional-dependencies.format-nongpl; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - mock - ]; + checkInputs = [ mock ]; - pythonImportsCheck = [ - "bravado_core" - ]; + pythonImportsCheck = [ "bravado_core" ]; disabledTestPaths = [ # skip benchmarks @@ -74,6 +67,9 @@ buildPythonPackage rec { homepage = "https://github.com/Yelp/bravado-core"; changelog = "https://github.com/Yelp/bravado-core/blob/v${version}/CHANGELOG.rst"; license = licenses.bsd3; - maintainers = with maintainers; [ vanschelven nickcao ]; + maintainers = with maintainers; [ + vanschelven + nickcao + ]; }; } diff --git a/pkgs/development/python-modules/bravia-tv/default.nix b/pkgs/development/python-modules/bravia-tv/default.nix index 391d10f20df0..31a7d6528bbd 100644 --- a/pkgs/development/python-modules/bravia-tv/default.nix +++ b/pkgs/development/python-modules/bravia-tv/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/breathe/default.nix b/pkgs/development/python-modules/breathe/default.nix index 35bc0b698675..d9033c4fd3ba 100644 --- a/pkgs/development/python-modules/breathe/default.nix +++ b/pkgs/development/python-modules/breathe/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, defusedxml -, docutils -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, sphinx +{ + lib, + buildPythonPackage, + defusedxml, + docutils, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + sphinx, }: buildPythonPackage rec { @@ -37,17 +38,11 @@ buildPythonPackage rec { sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - defusedxml - ]; + checkInputs = [ defusedxml ]; - pythonImportsCheck = [ - "breathe" - ]; + pythonImportsCheck = [ "breathe" ]; meta = with lib; { description = "Sphinx Doxygen renderer"; diff --git a/pkgs/development/python-modules/breezy/default.nix b/pkgs/development/python-modules/breezy/default.nix index 4972e82b3d07..de779d7f3e4c 100644 --- a/pkgs/development/python-modules/breezy/default.nix +++ b/pkgs/development/python-modules/breezy/default.nix @@ -1,30 +1,31 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, cargo -, configobj -, cython -, dulwich -, fastbencode -, fastimport -, pygithub -, libiconv -, merge3 -, patiencediff -, pyyaml -, tzlocal -, urllib3 -, breezy -, launchpadlib -, testtools -, pythonOlder -, installShellFiles -, rustPlatform -, rustc -, setuptools-gettext -, setuptools-rust -, testers +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + cargo, + configobj, + cython, + dulwich, + fastbencode, + fastimport, + pygithub, + libiconv, + merge3, + patiencediff, + pyyaml, + tzlocal, + urllib3, + breezy, + launchpadlib, + testtools, + pythonOlder, + installShellFiles, + rustPlatform, + rustc, + setuptools-gettext, + setuptools-rust, + testers, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { hash = "sha256-NSfMUyx6a/vb1vTNn/fFfNktrFdB2N940m0TR6EhB9k="; }; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; postPatch = '' ln -s ${./Cargo.lock} Cargo.lock @@ -61,22 +60,22 @@ buildPythonPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - propagatedBuildInputs = [ - configobj - dulwich - fastbencode - merge3 - patiencediff - pyyaml - tzlocal - urllib3 - ] ++ passthru.optional-dependencies.launchpad + propagatedBuildInputs = + [ + configobj + dulwich + fastbencode + merge3 + patiencediff + pyyaml + tzlocal + urllib3 + ] + ++ passthru.optional-dependencies.launchpad ++ passthru.optional-dependencies.fastimport ++ passthru.optional-dependencies.github; - nativeCheckInputs = [ - testtools - ]; + nativeCheckInputs = [ testtools ]; # multiple failures on sandbox doCheck = false; @@ -109,15 +108,9 @@ buildPythonPackage rec { command = "HOME=$TMPDIR brz --version"; }; optional-dependencies = { - launchpad = [ - launchpadlib - ]; - fastimport = [ - fastimport - ]; - github = [ - pygithub - ]; + launchpad = [ launchpadlib ]; + fastimport = [ fastimport ]; + github = [ pygithub ]; }; }; diff --git a/pkgs/development/python-modules/brelpy/default.nix b/pkgs/development/python-modules/brelpy/default.nix index 83d5946c54b8..96e0d4726545 100644 --- a/pkgs/development/python-modules/brelpy/default.nix +++ b/pkgs/development/python-modules/brelpy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pycryptodome -, pygithub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pycryptodome, + pygithub, + pythonOlder, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-MYWSKYd7emHZfY+W/UweQtTg62GSUMybpecL9BR8dhg="; }; - propagatedBuildInputs = [ - pycryptodome - ]; + propagatedBuildInputs = [ pycryptodome ]; # Source not tagged and PyPI releases don't contain tests doCheck = false; - pythonImportsCheck = [ - "brelpy" - ]; + pythonImportsCheck = [ "brelpy" ]; meta = with lib; { description = "Python to communicate with the Brel hubs"; diff --git a/pkgs/development/python-modules/brian2/default.nix b/pkgs/development/python-modules/brian2/default.nix index 59880be41293..00ad6e4f979c 100644 --- a/pkgs/development/python-modules/brian2/default.nix +++ b/pkgs/development/python-modules/brian2/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, jinja2 -, numpy -, pyparsing -, setuptools -, sympy -, pytest -, pytest-xdist -, python +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + jinja2, + numpy, + pyparsing, + setuptools, + sympy, + pytest, + pytest-xdist, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/broadbean/default.nix b/pkgs/development/python-modules/broadbean/default.nix index a5554b5d9ba2..50bc96bdea6d 100644 --- a/pkgs/development/python-modules/broadbean/default.nix +++ b/pkgs/development/python-modules/broadbean/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pythonOlder -, setuptools -, versioningit -, wheel -, numpy -, matplotlib -, schema -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pythonOlder, + setuptools, + versioningit, + wheel, + numpy, + matplotlib, + schema, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/brother-ql/default.nix b/pkgs/development/python-modules/brother-ql/default.nix index 4bdafe08b3d9..1aef851742c5 100644 --- a/pkgs/development/python-modules/brother-ql/default.nix +++ b/pkgs/development/python-modules/brother-ql/default.nix @@ -1,16 +1,17 @@ -{ stdenv -, fetchPypi -, fetchpatch -, buildPythonPackage -, future -, packbits -, pillow -, pyusb -, pytest -, mock -, click -, attrs -, lib +{ + stdenv, + fetchPypi, + fetchpatch, + buildPythonPackage, + future, + packbits, + pillow, + pyusb, + pytest, + mock, + click, + attrs, + lib, }: buildPythonPackage rec { @@ -24,7 +25,14 @@ buildPythonPackage rec { hash = "sha256-H1xXoDnwEsnCBDl/RwAB9267dINCHr3phdDLPGFOhmA="; }; - propagatedBuildInputs = [ future packbits pillow pyusb click attrs ]; + propagatedBuildInputs = [ + future + packbits + pillow + pyusb + click + attrs + ]; patches = [ (fetchpatch { diff --git a/pkgs/development/python-modules/brother/default.nix b/pkgs/development/python-modules/brother/default.nix index b4f163dd9928..e93d87728614 100644 --- a/pkgs/development/python-modules/brother/default.nix +++ b/pkgs/development/python-modules/brother/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, dacite -, pysnmp-lextudio -, pytest-asyncio -, pytest-error-for-skips -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dacite, + pysnmp-lextudio, + pytest-asyncio, + pytest-error-for-skips, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-W7bakj/94l0pL5fOb+CK+Z6k1cbv/CY9XjXGYZfLFY4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dacite @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "brother" - ]; + pythonImportsCheck = [ "brother" ]; meta = with lib; { description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP"; diff --git a/pkgs/development/python-modules/brotli-asgi/default.nix b/pkgs/development/python-modules/brotli-asgi/default.nix index 3bb6041422ae..b3ee25c383b1 100644 --- a/pkgs/development/python-modules/brotli-asgi/default.nix +++ b/pkgs/development/python-modules/brotli-asgi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, starlette -, brotli -# check inputs -, httpx -, requests -, mypy -, brotlipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + starlette, + brotli, + # check inputs + httpx, + requests, + mypy, + brotlipy, }: let pname = "brotli-asgi"; diff --git a/pkgs/development/python-modules/brotli/default.nix b/pkgs/development/python-modules/brotli/default.nix index 5fba7e847b01..afe4e9e3fd70 100644 --- a/pkgs/development/python-modules/brotli/default.nix +++ b/pkgs/development/python-modules/brotli/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { # only returns information how to really build dontConfigure = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "python/tests" - ]; + pytestFlagsArray = [ "python/tests" ]; meta = with lib; { homepage = "https://github.com/google/brotli"; diff --git a/pkgs/development/python-modules/brotlicffi/default.nix b/pkgs/development/python-modules/brotlicffi/default.nix index 9d246d3873b1..53c0280b56b3 100644 --- a/pkgs/development/python-modules/brotlicffi/default.nix +++ b/pkgs/development/python-modules/brotlicffi/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, cffi -, brotli +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + cffi, + brotli, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { sha256 = "sha256-oW4y1WBJ7+4XwNwwSSR0qUqN03cZYXUYQ6EAwce9dzI="; }; - buildInputs = [ - brotli - ]; + buildInputs = [ brotli ]; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; preBuild = '' export USE_SHARED_BROTLI=1 diff --git a/pkgs/development/python-modules/brotlipy/default.nix b/pkgs/development/python-modules/brotlipy/default.nix index 4fef96aa5d74..c72021871784 100644 --- a/pkgs/development/python-modules/brotlipy/default.nix +++ b/pkgs/development/python-modules/brotlipy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cffi -, enum34 -, construct -, pytest -, hypothesis +{ + lib, + buildPythonPackage, + fetchPypi, + cffi, + enum34, + construct, + pytest, + hypothesis, }: buildPythonPackage rec { @@ -18,11 +19,18 @@ buildPythonPackage rec { sha256 = "36def0b859beaf21910157b4c33eb3b06d8ce459c942102f16988cca6ea164df"; }; - propagatedBuildInputs = [ cffi enum34 construct ]; + propagatedBuildInputs = [ + cffi + enum34 + construct + ]; propagatedNativeBuildInputs = [ cffi ]; - nativeCheckInputs = [ pytest hypothesis ]; + nativeCheckInputs = [ + pytest + hypothesis + ]; checkPhase = '' py.test diff --git a/pkgs/development/python-modules/brottsplatskartan/default.nix b/pkgs/development/python-modules/brottsplatskartan/default.nix index 4c4a0dcbc8fb..71a8f3ce37aa 100644 --- a/pkgs/development/python-modules/brottsplatskartan/default.nix +++ b/pkgs/development/python-modules/brottsplatskartan/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-cov -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-cov, + pytestCheckHook, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/browser-cookie3/default.nix b/pkgs/development/python-modules/browser-cookie3/default.nix index f8616e0567a2..681067e3c17c 100644 --- a/pkgs/development/python-modules/browser-cookie3/default.nix +++ b/pkgs/development/python-modules/browser-cookie3/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, lz4 -, keyring -, pbkdf2 -, pycryptodomex -, pyaes +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + lz4, + keyring, + pbkdf2, + pycryptodomex, + pyaes, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # No tests implemented doCheck = false; - pythonImportsCheck = [ - "browser_cookie3" - ]; + pythonImportsCheck = [ "browser_cookie3" ]; meta = with lib; { description = "Loads cookies from your browser into a cookiejar object"; diff --git a/pkgs/development/python-modules/brunt/default.nix b/pkgs/development/python-modules/brunt/default.nix index 40b0f665cb97..232dae5cf1d3 100644 --- a/pkgs/development/python-modules/brunt/default.nix +++ b/pkgs/development/python-modules/brunt/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, aiohttp -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + aiohttp, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # tests require Brunt hardware doCheck = false; diff --git a/pkgs/development/python-modules/bsddb3/default.nix b/pkgs/development/python-modules/bsddb3/default.nix index 4e617c546985..fbf29c4f7eac 100644 --- a/pkgs/development/python-modules/bsddb3/default.nix +++ b/pkgs/development/python-modules/bsddb3/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pkgs -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pkgs, + python, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "70d05ec8dc568f42e70fc919a442e0daadc2a905a1cfb7ca77f549d49d6e7801"; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; buildInputs = [ pkgs.db ]; @@ -43,5 +42,4 @@ buildPythonPackage rec { license = with licenses; [ agpl3Only ]; # License changed from bsd3 to agpl3 since 6.x maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/bsdiff4/default.nix b/pkgs/development/python-modules/bsdiff4/default.nix index f65fe77af252..1ad855c1a11a 100644 --- a/pkgs/development/python-modules/bsdiff4/default.nix +++ b/pkgs/development/python-modules/bsdiff4/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-HXEpqBIYYHMejM4pAdMYPhSuxwJE9k6PdFYyddw4gGc="; }; - pythonImportsCheck = [ - "bsdiff4" - ]; + pythonImportsCheck = [ "bsdiff4" ]; checkPhase = '' mv bsdiff4 _bsdiff4 diff --git a/pkgs/development/python-modules/bson/default.nix b/pkgs/development/python-modules/bson/default.nix index afcb46f5d651..415f50ce0850 100644 --- a/pkgs/development/python-modules/bson/default.nix +++ b/pkgs/development/python-modules/bson/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, six +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bt-proximity/default.nix b/pkgs/development/python-modules/bt-proximity/default.nix index 97658726a494..548c69d4e14d 100644 --- a/pkgs/development/python-modules/bt-proximity/default.nix +++ b/pkgs/development/python-modules/bt-proximity/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pybluez +{ + lib, + buildPythonPackage, + fetchPypi, + pybluez, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "0xlif91vblbz065531yjf8nmlcahrl4q5pz52bc1jmzz7iv9hpgq"; }; - propagatedBuildInputs = [ - pybluez - ]; + propagatedBuildInputs = [ pybluez ]; # there are no tests doCheck = false; diff --git a/pkgs/development/python-modules/btchip-python/default.nix b/pkgs/development/python-modules/btchip-python/default.nix index 901a3b2cc954..66c22bafac3e 100644 --- a/pkgs/development/python-modules/btchip-python/default.nix +++ b/pkgs/development/python-modules/btchip-python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hidapi -, pyscard -, ecdsa - }: +{ + lib, + buildPythonPackage, + fetchPypi, + hidapi, + pyscard, + ecdsa, +}: buildPythonPackage rec { pname = "btchip-python"; @@ -27,16 +28,12 @@ buildPythonPackage rec { ecdsa ]; - passthru.optional-dependencies.smartcard = [ - pyscard - ]; + passthru.optional-dependencies.smartcard = [ pyscard ]; # tests requires hardware doCheck = false; - pythonImportsCheck = [ - "btchip.btchip" - ]; + pythonImportsCheck = [ "btchip.btchip" ]; meta = with lib; { description = "Python communication library for Ledger Hardware Wallet products"; diff --git a/pkgs/development/python-modules/btest/default.nix b/pkgs/development/python-modules/btest/default.nix index dc36b1981940..7dba4cc9c121 100644 --- a/pkgs/development/python-modules/btest/default.nix +++ b/pkgs/development/python-modules/btest/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/btrees/default.nix b/pkgs/development/python-modules/btrees/default.nix index bc61188b5902..e9cf59606e99 100644 --- a/pkgs/development/python-modules/btrees/default.nix +++ b/pkgs/development/python-modules/btrees/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, persistent -, zope-interface -, transaction -, zope-testrunner -, python -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + persistent, + zope-interface, + transaction, + zope-testrunner, + python, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/btrfs/default.nix b/pkgs/development/python-modules/btrfs/default.nix index 66a7a05676a9..18a68282c4bc 100644 --- a/pkgs/development/python-modules/btrfs/default.nix +++ b/pkgs/development/python-modules/btrfs/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -22,6 +23,9 @@ buildPythonPackage rec { homepage = "https://github.com/knorrie/python-btrfs"; license = licenses.lgpl3Plus; platforms = platforms.linux; - maintainers = with maintainers; [ evils Luflosi ]; + maintainers = with maintainers; [ + evils + Luflosi + ]; }; } diff --git a/pkgs/development/python-modules/btrfsutil/default.nix b/pkgs/development/python-modules/btrfsutil/default.nix index d529ec09c705..8638ea25a6e8 100644 --- a/pkgs/development/python-modules/btrfsutil/default.nix +++ b/pkgs/development/python-modules/btrfsutil/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, btrfs-progs +{ + lib, + buildPythonPackage, + btrfs-progs, }: buildPythonPackage { pname = "btrfsutil"; @@ -21,6 +22,9 @@ buildPythonPackage { description = "Library for managing Btrfs filesystems"; homepage = "https://btrfs.wiki.kernel.org/"; license = licenses.lgpl21Plus; - maintainers = with maintainers; [ raskin lopsided98 ]; + maintainers = with maintainers; [ + raskin + lopsided98 + ]; }; } diff --git a/pkgs/development/python-modules/btsmarthub-devicelist/default.nix b/pkgs/development/python-modules/btsmarthub-devicelist/default.nix index de5b3b6b6fa8..e55dd620e4e3 100644 --- a/pkgs/development/python-modules/btsmarthub-devicelist/default.nix +++ b/pkgs/development/python-modules/btsmarthub-devicelist/default.nix @@ -21,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-7ncxCpY+A2SuSFa3k21QchrmFs1dPRUMb1r1z/laa6M="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ responses @@ -31,14 +29,12 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - "test_btsmarthub2_detection_neither_router_present" - ]; + disabledTests = [ "test_btsmarthub2_detection_neither_router_present" ]; meta = with lib; { description = "Retrieve a list of devices from a bt smarthub or bt smarthub 2 on a local network"; homepage = "https://github.com/jxwolstenholme/btsmarthub_devicelist"; license = licenses.mit; - maintainers = with maintainers; [jamiemagee]; + maintainers = with maintainers; [ jamiemagee ]; }; } diff --git a/pkgs/development/python-modules/btsocket/default.nix b/pkgs/development/python-modules/btsocket/default.nix index e1c1f8a32887..6374188f7cc1 100644 --- a/pkgs/development/python-modules/btsocket/default.nix +++ b/pkgs/development/python-modules/btsocket/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-IqlbFYbEyJPlcmT3DIQIwsjQEAGeIGRtFNx4jWwNtjE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "btsocket" - ]; + pythonImportsCheck = [ "btsocket" ]; meta = with lib; { description = "Library to interact with the Bluez Bluetooth Management API"; diff --git a/pkgs/development/python-modules/bubop/default.nix b/pkgs/development/python-modules/bubop/default.nix index 72c9737ce7b5..9c6c39fd25d2 100644 --- a/pkgs/development/python-modules/bubop/default.nix +++ b/pkgs/development/python-modules/bubop/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, loguru -, python-dateutil -, pyyaml -, tqdm -, click +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + loguru, + python-dateutil, + pyyaml, + tqdm, + click, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail 'PyYAML = "~5.3.1"' 'PyYAML = "^6.0"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ loguru diff --git a/pkgs/development/python-modules/bucketstore/default.nix b/pkgs/development/python-modules/bucketstore/default.nix index c87345732981..46f29ff43e5e 100644 --- a/pkgs/development/python-modules/bucketstore/default.nix +++ b/pkgs/development/python-modules/bucketstore/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, boto3 -, moto +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + boto3, + moto, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { --replace "version=__version__," 'version="${version}",' ''; - propagatedBuildInputs = [ - boto3 - ]; + propagatedBuildInputs = [ boto3 ]; nativeCheckInputs = [ moto pytestCheckHook ]; - pythonImportsCheck = [ - "bucketstore" - ]; + pythonImportsCheck = [ "bucketstore" ]; meta = with lib; { description = "Library for interacting with Amazon S3"; diff --git a/pkgs/development/python-modules/bugsnag/default.nix b/pkgs/development/python-modules/bugsnag/default.nix index c4afcb6935b2..d6f2cc38be6e 100644 --- a/pkgs/development/python-modules/bugsnag/default.nix +++ b/pkgs/development/python-modules/bugsnag/default.nix @@ -1,10 +1,11 @@ -{ lib -, blinker -, buildPythonPackage -, fetchPypi -, flask -, pythonOlder -, webob +{ + lib, + blinker, + buildPythonPackage, + fetchPypi, + flask, + pythonOlder, + webob, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-+w0lI2goXYnfX2KB+DNFPXl6UCOhg5o17zggalyYXr8="; }; - propagatedBuildInputs = [ - webob - ]; + propagatedBuildInputs = [ webob ]; passthru.optional-dependencies = { flask = [ @@ -30,9 +29,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "bugsnag" - ]; + pythonImportsCheck = [ "bugsnag" ]; # Module ha no tests doCheck = false; diff --git a/pkgs/development/python-modules/bugwarrior/default.nix b/pkgs/development/python-modules/bugwarrior/default.nix index 3e66455de7b5..ada42fb4b4e3 100644 --- a/pkgs/development/python-modules/bugwarrior/default.nix +++ b/pkgs/development/python-modules/bugwarrior/default.nix @@ -1,6 +1,27 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools -, twiggy, requests, offtrac, bugzilla, taskw, python-dateutil, pytz, keyring, six -, jinja2, pycurl, dogpile-cache, lockfile, click, pyxdg, future, jira }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + twiggy, + requests, + offtrac, + bugzilla, + taskw, + python-dateutil, + pytz, + keyring, + six, + jinja2, + pycurl, + dogpile-cache, + lockfile, + click, + pyxdg, + future, + jira, +}: buildPythonPackage rec { pname = "bugwarrior"; @@ -15,8 +36,23 @@ buildPythonPackage rec { propagatedBuildInputs = [ setuptools - twiggy requests offtrac bugzilla taskw python-dateutil pytz keyring six - jinja2 pycurl dogpile-cache lockfile click pyxdg future jira + twiggy + requests + offtrac + bugzilla + taskw + python-dateutil + pytz + keyring + six + jinja2 + pycurl + dogpile-cache + lockfile + click + pyxdg + future + jira ]; # for the moment oauth2client <4.0.0 and megaplan>=1.4 are missing for running the test suite. diff --git a/pkgs/development/python-modules/bugz/default.nix b/pkgs/development/python-modules/bugz/default.nix index 894f2070c231..c44c9c5fdc73 100644 --- a/pkgs/development/python-modules/bugz/default.nix +++ b/pkgs/development/python-modules/bugz/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage { @@ -23,5 +24,4 @@ buildPythonPackage { license = licenses.gpl2; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/bugzilla/default.nix b/pkgs/development/python-modules/bugzilla/default.nix index e7b1db45a4ad..3125ed30624f 100644 --- a/pkgs/development/python-modules/bugzilla/default.nix +++ b/pkgs/development/python-modules/bugzilla/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, pytestCheckHook -, glibcLocalesUtf8 +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + pytestCheckHook, + glibcLocalesUtf8, }: buildPythonPackage rec { @@ -20,7 +21,8 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ - pytestCheckHook glibcLocalesUtf8 + pytestCheckHook + glibcLocalesUtf8 ]; preCheck = '' diff --git a/pkgs/development/python-modules/buienradar/default.nix b/pkgs/development/python-modules/buienradar/default.nix index 3a0c5fbd3dd1..7c65753d448f 100644 --- a/pkgs/development/python-modules/buienradar/default.nix +++ b/pkgs/development/python-modules/buienradar/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, docopt -, pytz -, requests -, setuptools -, vincenty -, xmltodict -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + docopt, + pytz, + requests, + setuptools, + vincenty, + xmltodict, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require network connection diff --git a/pkgs/development/python-modules/build/default.nix b/pkgs/development/python-modules/build/default.nix index 4f30c8f18629..b3a8c905bc8b 100644 --- a/pkgs/development/python-modules/build/default.nix +++ b/pkgs/development/python-modules/build/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, build -, buildPythonPackage -, fetchFromGitHub -, flit-core -, filelock -, packaging -, pyproject-hooks -, pytest-mock -, pytest-rerunfailures -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools -, tomli -, wheel +{ + lib, + stdenv, + build, + buildPythonPackage, + fetchFromGitHub, + flit-core, + filelock, + packaging, + pyproject-hooks, + pytest-mock, + pytest-rerunfailures, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, + tomli, + wheel, }: buildPythonPackage rec { @@ -36,16 +37,12 @@ buildPythonPackage rec { sed -i '/importlib-metadata >= 4.6/d' pyproject.toml ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ packaging pyproject-hooks - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; # We need to disable tests because this package is part of the bootstrap chain # and its test dependencies cannot be built yet when this is being built. @@ -78,25 +75,25 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - disabledTests = [ - # Tests often fail with StopIteration - "test_isolat" - "test_default_pip_is_never_too_old" - "test_build" - "test_with_get_requires" - "test_init" - "test_output" - "test_wheel_metadata" - ] ++ lib.optionals stdenv.isDarwin [ - # Expects Apple's Python and its quirks - "test_can_get_venv_paths_with_conflicting_default_scheme" - ]; + disabledTests = + [ + # Tests often fail with StopIteration + "test_isolat" + "test_default_pip_is_never_too_old" + "test_build" + "test_with_get_requires" + "test_init" + "test_output" + "test_wheel_metadata" + ] + ++ lib.optionals stdenv.isDarwin [ + # Expects Apple's Python and its quirks + "test_can_get_venv_paths_with_conflicting_default_scheme" + ]; }; }; - pythonImportsCheck = [ - "build" - ]; + pythonImportsCheck = [ "build" ]; meta = with lib; { mainProgram = "pyproject-build"; diff --git a/pkgs/development/python-modules/buildcatrust/default.nix b/pkgs/development/python-modules/buildcatrust/default.nix index 5fc3eab56039..cc2b5b5a2946 100644 --- a/pkgs/development/python-modules/buildcatrust/default.nix +++ b/pkgs/development/python-modules/buildcatrust/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-Ac10CZdihFBmr5LE6xFKx4+zr2n5nyR23px6N4vN05M="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Non-hermetic, needs internet access (e.g. attempts to retrieve NSS store). diff --git a/pkgs/development/python-modules/buildout/default.nix b/pkgs/development/python-modules/buildout/default.nix index 5a2f577d2b18..3c7a39db1910 100644 --- a/pkgs/development/python-modules/buildout/default.nix +++ b/pkgs/development/python-modules/buildout/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pip -, setuptools -, wheel +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pip, + setuptools, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/bumps/default.nix b/pkgs/development/python-modules/bumps/default.nix index 733494a8314a..23e14d3eada9 100644 --- a/pkgs/development/python-modules/bumps/default.nix +++ b/pkgs/development/python-modules/bumps/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "bumps" - ]; + pythonImportsCheck = [ "bumps" ]; meta = with lib; { description = "Data fitting with bayesian uncertainty analysis"; diff --git a/pkgs/development/python-modules/bunch/default.nix b/pkgs/development/python-modules/bunch/default.nix index 39c858ebb676..54659c611095 100644 --- a/pkgs/development/python-modules/bunch/default.nix +++ b/pkgs/development/python-modules/bunch/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # No real tests available doCheck = false; - pythonImportsCheck = [ - "bunch" - ]; + pythonImportsCheck = [ "bunch" ]; meta = with lib; { description = "Python dictionary that provides attribute-style access"; diff --git a/pkgs/development/python-modules/bundlewrap-keepass/default.nix b/pkgs/development/python-modules/bundlewrap-keepass/default.nix index 82c09dbc1080..7a51ef2e84cc 100644 --- a/pkgs/development/python-modules/bundlewrap-keepass/default.nix +++ b/pkgs/development/python-modules/bundlewrap-keepass/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, bundlewrap -, pykeepass +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + bundlewrap, + pykeepass, }: buildPythonPackage rec { @@ -18,14 +19,15 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ bundlewrap pykeepass ]; + propagatedBuildInputs = [ + bundlewrap + pykeepass + ]; # upstream has no checks doCheck = false; - pythonImportsCheck = [ - "bwkeepass" - ]; + pythonImportsCheck = [ "bwkeepass" ]; meta = with lib; { homepage = "https://pypi.org/project/bundlewrap-keepass"; diff --git a/pkgs/development/python-modules/bundlewrap-pass/default.nix b/pkgs/development/python-modules/bundlewrap-pass/default.nix index 0b8068a14948..1a6101c10a72 100644 --- a/pkgs/development/python-modules/bundlewrap-pass/default.nix +++ b/pkgs/development/python-modules/bundlewrap-pass/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, bundlewrap -, pass +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + bundlewrap, + pass, }: buildPythonPackage rec { @@ -18,14 +19,15 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ bundlewrap pass ]; + propagatedBuildInputs = [ + bundlewrap + pass + ]; # upstream has no checks doCheck = false; - pythonImportsCheck = [ - "bwpass" - ]; + pythonImportsCheck = [ "bwpass" ]; meta = with lib; { homepage = "https://pypi.org/project/bundlewrap-pass"; diff --git a/pkgs/development/python-modules/bundlewrap-teamvault/default.nix b/pkgs/development/python-modules/bundlewrap-teamvault/default.nix index ca6dd419de48..588bcd7e5a3a 100644 --- a/pkgs/development/python-modules/bundlewrap-teamvault/default.nix +++ b/pkgs/development/python-modules/bundlewrap-teamvault/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, bundlewrap -, passlib -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + bundlewrap, + passlib, + requests, }: buildPythonPackage rec { @@ -19,19 +20,21 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ bundlewrap passlib requests ]; + propagatedBuildInputs = [ + bundlewrap + passlib + requests + ]; # upstream has no checks doCheck = false; - pythonImportsCheck = [ - "bwtv" - ]; + pythonImportsCheck = [ "bwtv" ]; meta = with lib; { homepage = "https://github.com/trehn/bundlewrap-teamvault"; description = "Pull secrets from TeamVault into your BundleWrap repo"; - license = [ licenses.gpl3 ] ; + license = [ licenses.gpl3 ]; maintainers = with maintainers; [ hexchen ]; }; } diff --git a/pkgs/development/python-modules/bundlewrap/default.nix b/pkgs/development/python-modules/bundlewrap/default.nix index c3f3b1f53176..c77d8bfe7af1 100644 --- a/pkgs/development/python-modules/bundlewrap/default.nix +++ b/pkgs/development/python-modules/bundlewrap/default.nix @@ -1,19 +1,20 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, cryptography -, jinja2 -, mako -, passlib -, pytest -, pyyaml -, requests -, rtoml -, setuptools -, tomlkit -, librouteros -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + cryptography, + jinja2, + mako, + passlib, + pytest, + pyyaml, + requests, + rtoml, + setuptools, + tomlkit, + librouteros, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,7 +33,15 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ - setuptools cryptography jinja2 mako passlib pyyaml requests tomlkit librouteros + setuptools + cryptography + jinja2 + mako + passlib + pyyaml + requests + tomlkit + librouteros ] ++ lib.optionals (pythonOlder "3.11") [ rtoml ]; pythonImportsCheck = [ "bundlewrap" ]; @@ -48,7 +57,7 @@ buildPythonPackage rec { homepage = "https://bundlewrap.org/"; description = "Easy, Concise and Decentralized Config management with Python"; mainProgram = "bw"; - license = [ licenses.gpl3 ] ; + license = [ licenses.gpl3 ]; maintainers = with maintainers; [ wamserma ]; }; } diff --git a/pkgs/development/python-modules/busypie/default.nix b/pkgs/development/python-modules/busypie/default.nix index 9539d3f4371e..77882309148c 100644 --- a/pkgs/development/python-modules/busypie/default.nix +++ b/pkgs/development/python-modules/busypie/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "busypie" - ]; + pythonImportsCheck = [ "busypie" ]; meta = with lib; { description = "Expressive busy wait for Python"; diff --git a/pkgs/development/python-modules/bwapy/default.nix b/pkgs/development/python-modules/bwapy/default.nix index 4f7fd7c7b17b..19e37b1eaf68 100644 --- a/pkgs/development/python-modules/bwapy/default.nix +++ b/pkgs/development/python-modules/bwapy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, fetchPypi -, bwa -, cffi -, zlib +{ + lib, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + fetchPypi, + bwa, + cffi, + zlib, }: buildPythonPackage rec { @@ -29,7 +30,10 @@ buildPythonPackage rec { --replace 'setuptools>=49.2.0' 'setuptools' ''; - buildInputs = [ zlib bwa ]; + buildInputs = [ + zlib + bwa + ]; propagatedBuildInputs = [ cffi ]; diff --git a/pkgs/development/python-modules/bx-py-utils/default.nix b/pkgs/development/python-modules/bx-py-utils/default.nix index d66cfa62044d..c6cf1a32185f 100644 --- a/pkgs/development/python-modules/bx-py-utils/default.nix +++ b/pkgs/development/python-modules/bx-py-utils/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, beautifulsoup4 -, boto3 -, lxml -, pdoc -, pytestCheckHook -, requests-mock +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + beautifulsoup4, + boto3, + lxml, + pdoc, + pytestCheckHook, + requests-mock, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { rm bx_py_utils_tests/publish.py ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; pythonImportsCheck = [ "bx_py_utils.anonymize" @@ -71,13 +70,13 @@ buildPythonPackage rec { "test_assert_html_snapshot_by_css_selector" ]; - disabledTestPaths = [ - "bx_py_utils_tests/tests/test_project_setup.py" - ] ++ lib.optionals stdenv.isDarwin [ - # processify() doesn't work under darwin - # https://github.com/boxine/bx_py_utils/issues/80 - "bx_py_utils_tests/tests/test_processify.py" - ]; + disabledTestPaths = + [ "bx_py_utils_tests/tests/test_project_setup.py" ] + ++ lib.optionals stdenv.isDarwin [ + # processify() doesn't work under darwin + # https://github.com/boxine/bx_py_utils/issues/80 + "bx_py_utils_tests/tests/test_processify.py" + ]; meta = { description = "Various Python utility functions"; diff --git a/pkgs/development/python-modules/bx-python/default.nix b/pkgs/development/python-modules/bx-python/default.nix index c504c0cc77f3..2ea260df66f8 100644 --- a/pkgs/development/python-modules/bx-python/default.nix +++ b/pkgs/development/python-modules/bx-python/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, numpy -, cython -, zlib -, python-lzo -, nose +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + numpy, + cython, + zlib, + python-lzo, + nose, }: buildPythonPackage rec { @@ -23,22 +24,16 @@ buildPythonPackage rec { hash = "sha256-evhxh/cCZFSK6EgMu7fC9/ZrPd2S1fZz89ItGYrHQck="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - buildInputs = [ - zlib - ]; + buildInputs = [ zlib ]; propagatedBuildInputs = [ numpy python-lzo ]; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; postInstall = '' cp -r scripts/* $out/bin diff --git a/pkgs/development/python-modules/bytecode/default.nix b/pkgs/development/python-modules/bytecode/default.nix index 868279f4422c..7c7a86baca43 100644 --- a/pkgs/development/python-modules/bytecode/default.nix +++ b/pkgs/development/python-modules/bytecode/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-Jzsh0m00SiJjTP7hXMDmuR4XHmsCYdURuFDkVopGyIE="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "bytecode" ]; diff --git a/pkgs/development/python-modules/bytewax/default.nix b/pkgs/development/python-modules/bytewax/default.nix index ea0bfe9e32da..22d022c454be 100644 --- a/pkgs/development/python-modules/bytewax/default.nix +++ b/pkgs/development/python-modules/bytewax/default.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, cmake -, pkg-config -, rustPlatform + # build-system + cmake, + pkg-config, + rustPlatform, -# native dependencies -, cyrus_sasl -, openssl -, protobuf + # native dependencies + cyrus_sasl, + openssl, + protobuf, -# dependencies -, jsonpickle + # dependencies + jsonpickle, -# optional dependencies -, confluent-kafka + # optional dependencies + confluent-kafka, -# test -, myst-docutils -, pytestCheckHook + # test + myst-docutils, + pytestCheckHook, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { # Remove docs tests, myst-docutils in nixpkgs is not compatible with package requirements. # Package uses old version. - patches = [ - ./remove-docs-test.patch - ]; + patches = [ ./remove-docs-test.patch ]; cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; @@ -73,14 +72,10 @@ buildPythonPackage rec { protobuf ]; - propagatedBuildInputs = [ - jsonpickle - ]; + propagatedBuildInputs = [ jsonpickle ]; passthru.optional-dependencies = { - kafka = [ - confluent-kafka - ]; + kafka = [ confluent-kafka ]; }; preCheck = '' @@ -97,16 +92,17 @@ buildPythonPackage rec { "docs" ]; - pythonImportsCheck = [ - "bytewax" - ]; + pythonImportsCheck = [ "bytewax" ]; meta = with lib; { description = "Python Stream Processing"; homepage = "https://github.com/bytewax/bytewax"; changelog = "https://github.com/bytewax/bytewax/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ mslingsby kfollesdal ]; + maintainers = with maintainers; [ + mslingsby + kfollesdal + ]; # mismatched type expected u8, found i8 broken = stdenv.isAarch64; }; diff --git a/pkgs/development/python-modules/bz2file/default.nix b/pkgs/development/python-modules/bz2file/default.nix index ef6a9ef270b2..bd8b79a9a13e 100644 --- a/pkgs/development/python-modules/bz2file/default.nix +++ b/pkgs/development/python-modules/bz2file/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cachecontrol/default.nix b/pkgs/development/python-modules/cachecontrol/default.nix index 8cfaaa5fa9b0..fe81e6742449 100644 --- a/pkgs/development/python-modules/cachecontrol/default.nix +++ b/pkgs/development/python-modules/cachecontrol/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, cherrypy -, fetchFromGitHub -, flit-core -, filelock -, mock -, msgpack -, pytestCheckHook -, pythonOlder -, redis -, requests +{ + lib, + buildPythonPackage, + cherrypy, + fetchFromGitHub, + flit-core, + filelock, + mock, + msgpack, + pytestCheckHook, + pythonOlder, + redis, + requests, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-myyqiUGna+5S2GJGnwZTOfLh49NhjfHAvpUB49dQbgY="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ msgpack @@ -38,12 +37,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - filecache = [ - filelock - ]; - redis = [ - redis - ]; + filecache = [ filelock ]; + redis = [ redis ]; }; nativeCheckInputs = [ @@ -53,9 +48,7 @@ buildPythonPackage rec { requests ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "cachecontrol" - ]; + pythonImportsCheck = [ "cachecontrol" ]; meta = with lib; { description = "Httplib2 caching for requests"; diff --git a/pkgs/development/python-modules/cached-ipaddress/default.nix b/pkgs/development/python-modules/cached-ipaddress/default.nix index 5e4781ec7503..a16488b81d0d 100644 --- a/pkgs/development/python-modules/cached-ipaddress/default.nix +++ b/pkgs/development/python-modules/cached-ipaddress/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -36,13 +37,9 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cached_ipaddress" - ]; + pythonImportsCheck = [ "cached_ipaddress" ]; meta = with lib; { description = "Cache construction of ipaddress objects"; diff --git a/pkgs/development/python-modules/cached-property/default.nix b/pkgs/development/python-modules/cached-property/default.nix index 555b1ce006e7..ae72420da0ac 100644 --- a/pkgs/development/python-modules/cached-property/default.nix +++ b/pkgs/development/python-modules/cached-property/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, freezegun -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + freezegun, + pythonOlder, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { "test_threads_ttl_expiry" ]; - pythonImportsCheck = [ - "cached_property" - ]; + pythonImportsCheck = [ "cached_property" ]; meta = with lib; { description = "A decorator for caching properties in classes"; diff --git a/pkgs/development/python-modules/cachelib/default.nix b/pkgs/development/python-modules/cachelib/default.nix index 26b69651ffc3..12e9c4eb1465 100644 --- a/pkgs/development/python-modules/cachelib/default.nix +++ b/pkgs/development/python-modules/cachelib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-xprocess -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-xprocess, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cachetools/default.nix b/pkgs/development/python-modules/cachetools/default.nix index 8a2f5397d6e1..c5098463552f 100644 --- a/pkgs/development/python-modules/cachetools/default.nix +++ b/pkgs/development/python-modules/cachetools/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { hash = "sha256-CmyAW9uV63OV/zZsWwZkXOWbHfHAJdYFGJsRhpqQ1f4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cachetools" - ]; + pythonImportsCheck = [ "cachetools" ]; meta = with lib; { description = "Extensible memoizing collections and decorators"; diff --git a/pkgs/development/python-modules/cachey/default.nix b/pkgs/development/python-modules/cachey/default.nix index ac175fa0793a..a8cb498b2026 100644 --- a/pkgs/development/python-modules/cachey/default.nix +++ b/pkgs/development/python-modules/cachey/default.nix @@ -1,11 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, typing-extensions -, heapdict -, pytestCheckHook -, pythonOlder -}: buildPythonPackage rec { +{ + lib, + buildPythonPackage, + fetchFromGitHub, + typing-extensions, + heapdict, + pytestCheckHook, + pythonOlder, +}: +buildPythonPackage rec { pname = "cachey"; version = "0.2.1"; format = "setuptools"; @@ -16,11 +18,12 @@ rev = version; hash = "sha256-5USmuufrrWtmgibpfkjo9NtgN30hdl8plJfythmxM4s="; }; - propagatedBuildInputs = [ typing-extensions heapdict ]; - nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cachey" + propagatedBuildInputs = [ + typing-extensions + heapdict ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "cachey" ]; meta = with lib; { description = "Caching based on computation time and storage space"; homepage = "https://github.com/dask/cachey/"; diff --git a/pkgs/development/python-modules/cachier/default.nix b/pkgs/development/python-modules/cachier/default.nix index e8fe51d4ded7..189ae9d28196 100644 --- a/pkgs/development/python-modules/cachier/default.nix +++ b/pkgs/development/python-modules/cachier/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pythonRelaxDepsHook -, setuptools -, watchdog -, portalocker -, pytestCheckHook -, pymongo -, dnspython -, pymongo-inmemory -, pandas -, birch +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pythonRelaxDepsHook, + setuptools, + watchdog, + portalocker, + pytestCheckHook, + pymongo, + dnspython, + pymongo-inmemory, + pandas, + birch, }: buildPythonPackage rec { @@ -75,9 +76,7 @@ buildPythonPackage rec { export HOME="$(mktemp -d)" ''; - pythonImportsCheck = [ - "cachier" - ]; + pythonImportsCheck = [ "cachier" ]; meta = { homepage = "https://github.com/python-cachier/cachier"; diff --git a/pkgs/development/python-modules/cachy/default.nix b/pkgs/development/python-modules/cachy/default.nix index 8f16a45fe692..7a6caad1f20a 100644 --- a/pkgs/development/python-modules/cachy/default.nix +++ b/pkgs/development/python-modules/cachy/default.nix @@ -1,7 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, redis -, python-memcached -, msgpack +{ + lib, + buildPythonPackage, + fetchPypi, + redis, + python-memcached, + msgpack, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/caio/default.nix b/pkgs/development/python-modules/caio/default.nix index 3314e6242dce..f8c3df017a8a 100644 --- a/pkgs/development/python-modules/caio/default.nix +++ b/pkgs/development/python-modules/caio/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, aiomisc -, buildPythonPackage -, fetchFromGitHub -, pytest-aiohttp -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + aiomisc, + buildPythonPackage, + fetchFromGitHub, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,11 @@ buildPythonPackage rec { pytestCheckHook ]; - env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [ - "-Wno-error=implicit-function-declaration" - ]); + env.NIX_CFLAGS_COMPILE = toString ( + lib.optionals stdenv.cc.isClang [ "-Wno-error=implicit-function-declaration" ] + ); - pythonImportsCheck = [ - "caio" - ]; + pythonImportsCheck = [ "caio" ]; meta = with lib; { description = "File operations with asyncio support"; diff --git a/pkgs/development/python-modules/cairocffi/default.nix b/pkgs/development/python-modules/cairocffi/default.nix index fb0a81e202d9..dbbcbbbffed6 100644 --- a/pkgs/development/python-modules/cairocffi/default.nix +++ b/pkgs/development/python-modules/cairocffi/default.nix @@ -1,22 +1,23 @@ # FIXME: make gdk-pixbuf dependency optional -{ stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, lib -, substituteAll -, makeFontsConf -, freefont_ttf -, pikepdf -, pytestCheckHook -, cairo -, cffi -, flit-core -, numpy -, withXcffib ? false -, xcffib -, glib -, gdk-pixbuf +{ + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + lib, + substituteAll, + makeFontsConf, + freefont_ttf, + pikepdf, + pytestCheckHook, + cairo, + cffi, + flit-core, + numpy, + withXcffib ? false, + xcffib, + glib, + gdk-pixbuf, }: buildPythonPackage rec { @@ -43,12 +44,12 @@ buildPythonPackage rec { ./fix_test_scaled_font.patch ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ cairo cffi ] - ++ lib.optional withXcffib xcffib; + propagatedBuildInputs = [ + cairo + cffi + ] ++ lib.optional withXcffib xcffib; nativeCheckInputs = [ numpy @@ -56,9 +57,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "cairocffi" - ]; + pythonImportsCheck = [ "cairocffi" ]; meta = with lib; { changelog = "https://github.com/Kozea/cairocffi/blob/v${version}/NEWS.rst"; diff --git a/pkgs/development/python-modules/cairosvg/default.nix b/pkgs/development/python-modules/cairosvg/default.nix index ddabd2098824..de527486065d 100644 --- a/pkgs/development/python-modules/cairosvg/default.nix +++ b/pkgs/development/python-modules/cairosvg/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cairocffi -, cssselect2 -, defusedxml -, fetchPypi -, pillow -, pytestCheckHook -, setuptools -, tinycss2 +{ + lib, + buildPythonPackage, + cairocffi, + cssselect2, + defusedxml, + fetchPypi, + pillow, + pytestCheckHook, + setuptools, + tinycss2, }: buildPythonPackage rec { @@ -23,7 +24,13 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ]; + propagatedBuildInputs = [ + cairocffi + cssselect2 + defusedxml + pillow + tinycss2 + ]; propagatedNativeBuildInputs = [ cairocffi ]; @@ -39,9 +46,7 @@ buildPythonPackage rec { --replace "--isort" "" ''; - pytestFlagsArray = [ - "cairosvg/test_api.py" - ]; + pytestFlagsArray = [ "cairosvg/test_api.py" ]; pythonImportsCheck = [ "cairosvg" ]; diff --git a/pkgs/development/python-modules/caldav/default.nix b/pkgs/development/python-modules/caldav/default.nix index ad16084d0f1b..9813d9b581bc 100644 --- a/pkgs/development/python-modules/caldav/default.nix +++ b/pkgs/development/python-modules/caldav/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, icalendar -, lxml -, pytestCheckHook -, pythonOlder -, python -, pytz -, recurring-ical-events -, requests -, setuptools -, toPythonModule -, tzlocal -, vobject -, xandikos +{ + lib, + buildPythonPackage, + fetchFromGitHub, + icalendar, + lxml, + pytestCheckHook, + pythonOlder, + python, + pytz, + recurring-ical-events, + requests, + setuptools, + toPythonModule, + tzlocal, + vobject, + xandikos, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-R9zXwD0sZE4bg6MTHWWCWWlZ5wH0H6g650zA7AboAo8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ vobject @@ -56,6 +55,9 @@ buildPythonPackage rec { homepage = "https://github.com/python-caldav/caldav"; changelog = "https://github.com/python-caldav/caldav/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; - maintainers = with maintainers; [ marenz dotlambda ]; + maintainers = with maintainers; [ + marenz + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/callee/default.nix b/pkgs/development/python-modules/callee/default.nix index d7fb37706a59..e20a34f8cd43 100644 --- a/pkgs/development/python-modules/callee/default.nix +++ b/pkgs/development/python-modules/callee/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-dsXMY3bW/70CmTfCuy5KjxPa+NLCzxzWv5e1aV2NEWE="; }; - pythonImportsCheck = [ - "callee" - ]; + pythonImportsCheck = [ "callee" ]; doCheck = false; # missing dependency diff --git a/pkgs/development/python-modules/calmjs-parse/default.nix b/pkgs/development/python-modules/calmjs-parse/default.nix index 34a2c00ce33b..362cc368dc57 100644 --- a/pkgs/development/python-modules/calmjs-parse/default.nix +++ b/pkgs/development/python-modules/calmjs-parse/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, ply -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + ply, + python, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { --replace "env['PYTHONPATH'] = 'src'" "env['PYTHONPATH'] += ':src'" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ setuptools diff --git a/pkgs/development/python-modules/calmjs-types/default.nix b/pkgs/development/python-modules/calmjs-types/default.nix index 897ddaf79e0c..4d98b29c5800 100644 --- a/pkgs/development/python-modules/calmjs-types/default.nix +++ b/pkgs/development/python-modules/calmjs-types/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/calmjs/default.nix b/pkgs/development/python-modules/calmjs/default.nix index 031ebfb493f8..442528807dac 100644 --- a/pkgs/development/python-modules/calmjs/default.nix +++ b/pkgs/development/python-modules/calmjs/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, calmjs-types -, calmjs-parse -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + calmjs-types, + calmjs-parse, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { calmjs-types ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; # ModuleNotFoundError: No module named 'calmjs.types' # Not yet clear how to run these tests correctly diff --git a/pkgs/development/python-modules/calver/default.nix b/pkgs/development/python-modules/calver/default.nix index 4b400f218739..528632743605 100644 --- a/pkgs/development/python-modules/calver/default.nix +++ b/pkgs/development/python-modules/calver/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pretend -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pretend, + pytestCheckHook, }: let @@ -45,4 +46,4 @@ let }; }; in - self +self diff --git a/pkgs/development/python-modules/calysto-scheme/default.nix b/pkgs/development/python-modules/calysto-scheme/default.nix index 1e0dc0cd102d..884be17ae748 100644 --- a/pkgs/development/python-modules/calysto-scheme/default.nix +++ b/pkgs/development/python-modules/calysto-scheme/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, metakernel -, pytestCheckHook -, yasi +{ + lib, + buildPythonPackage, + fetchFromGitHub, + metakernel, + pytestCheckHook, + yasi, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { metakernel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "calysto_scheme" ]; diff --git a/pkgs/development/python-modules/calysto/default.nix b/pkgs/development/python-modules/calysto/default.nix index 54f7eb044b7f..04d428e9e6fc 100644 --- a/pkgs/development/python-modules/calysto/default.nix +++ b/pkgs/development/python-modules/calysto/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, metakernel -, svgwrite -, ipywidgets -, cairosvg -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + metakernel, + svgwrite, + ipywidgets, + cairosvg, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/camelot/default.nix b/pkgs/development/python-modules/camelot/default.nix index ae5a89e80166..4331d564b716 100644 --- a/pkgs/development/python-modules/camelot/default.nix +++ b/pkgs/development/python-modules/camelot/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, chardet -, openpyxl -, charset-normalizer -, fetchPypi -, fetchpatch -, pythonOlder -, pandas -, tabulate -, click -, pdfminer-six -, pypdf -, opencv4 -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + chardet, + openpyxl, + charset-normalizer, + fetchPypi, + fetchpatch, + pythonOlder, + pandas, + tabulate, + click, + pdfminer-six, + pypdf, + opencv4, + setuptools, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "camelot" - ]; + pythonImportsCheck = [ "camelot" ]; meta = with lib; { description = "A Python library to extract tabular data from PDFs"; diff --git a/pkgs/development/python-modules/can/default.nix b/pkgs/development/python-modules/can/default.nix index 28c401b667fe..2fe52ed11b86 100644 --- a/pkgs/development/python-modules/can/default.nix +++ b/pkgs/development/python-modules/can/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, future -, hypothesis -, packaging -, parameterized -, msgpack -, pyserial -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions -, wrapt -, uptime +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + future, + hypothesis, + packaging, + parameterized, + msgpack, + pyserial, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, + wrapt, + uptime, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace " --cov=can --cov-config=tox.ini --cov-report=lcov --cov-report=term" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ msgpack @@ -48,15 +47,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - serial = [ - pyserial - ]; - seeedstudio = [ - pyserial - ]; - pcan = [ - uptime - ]; + serial = [ pyserial ]; + seeedstudio = [ pyserial ]; + pcan = [ uptime ]; }; nativeCheckInputs = [ @@ -72,18 +65,20 @@ buildPythonPackage rec { "test/test_interface_canalystii.py" ]; - disabledTests = [ - # Tests require access socket - "BasicTestUdpMulticastBusIPv4" - "BasicTestUdpMulticastBusIPv6" - # pytest.approx is not supported in a boolean context (since pytest7) - "test_pack_unpack" - "test_receive" - ] ++ lib.optionals stdenv.isDarwin [ - # timing sensitive - "test_general" - "test_gap" - ]; + disabledTests = + [ + # Tests require access socket + "BasicTestUdpMulticastBusIPv4" + "BasicTestUdpMulticastBusIPv6" + # pytest.approx is not supported in a boolean context (since pytest7) + "test_pack_unpack" + "test_receive" + ] + ++ lib.optionals stdenv.isDarwin [ + # timing sensitive + "test_general" + "test_gap" + ]; preCheck = '' export PATH="$PATH:$out/bin"; @@ -91,15 +86,16 @@ buildPythonPackage rec { export CI=1 ''; - pythonImportsCheck = [ - "can" - ]; + pythonImportsCheck = [ "can" ]; meta = with lib; { description = "CAN support for Python"; homepage = "https://python-can.readthedocs.io"; changelog = "https://github.com/hardbyte/python-can/releases/tag/v${version}"; license = licenses.lgpl3Only; - maintainers = with maintainers; [ fab sorki ]; + maintainers = with maintainers; [ + fab + sorki + ]; }; } diff --git a/pkgs/development/python-modules/canals/default.nix b/pkgs/development/python-modules/canals/default.nix index 8494d6dfbd5d..3f358629c615 100644 --- a/pkgs/development/python-modules/canals/default.nix +++ b/pkgs/development/python-modules/canals/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, mkdocs-material -, mkdocs-mermaid2-plugin -, mkdocstrings -, networkx -, pytestCheckHook -, pythonOlder -, requests -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + mkdocs-material, + mkdocs-mermaid2-plugin, + mkdocstrings, + networkx, + pytestCheckHook, + pythonOlder, + requests, + typing-extensions, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-xoJqj/zPBPPCheBxA+8EFRJqUnlP+4aWLEh42q1X1mM="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ networkx @@ -58,9 +57,7 @@ buildPythonPackage rec { "test_draw_pygraphviz" ]; - pythonImportsCheck = [ - "canals" - ]; + pythonImportsCheck = [ "canals" ]; meta = with lib; { description = "A component orchestration engine"; diff --git a/pkgs/development/python-modules/canmatrix/default.nix b/pkgs/development/python-modules/canmatrix/default.nix index 287d14e60d67..40407492fd63 100644 --- a/pkgs/development/python-modules/canmatrix/default.nix +++ b/pkgs/development/python-modules/canmatrix/default.nix @@ -1,19 +1,20 @@ -{ lib -, attrs -, buildPythonPackage -, click -, fetchFromGitHub -, future -, importlib-metadata -, ldfparser -, lxml -, openpyxl -, pytestCheckHook -, pythonOlder -, pyyaml -, six -, xlrd -, xlwt +{ + lib, + attrs, + buildPythonPackage, + click, + fetchFromGitHub, + future, + importlib-metadata, + ldfparser, + lxml, + openpyxl, + pytestCheckHook, + pythonOlder, + pyyaml, + six, + xlrd, + xlwt, }: buildPythonPackage rec { @@ -40,36 +41,20 @@ buildPythonPackage rec { click future six - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; passthru.optional-dependencies = { - arxml = [ - lxml - ]; - fibex = [ - lxml - ]; - kcd = [ - lxml - ]; - ldf = [ - ldfparser - ]; - odx = [ - lxml - ]; + arxml = [ lxml ]; + fibex = [ lxml ]; + kcd = [ lxml ]; + ldf = [ ldfparser ]; + odx = [ lxml ]; xls = [ xlrd xlwt ]; - xlsx = [ - openpyxl - ]; - yaml = [ - pyyaml - ]; + xlsx = [ openpyxl ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ @@ -81,13 +66,9 @@ buildPythonPackage rec { "-s src/canmatrix" ]; - disabledTests = [ - "long_envvar_name_imports" - ]; + disabledTests = [ "long_envvar_name_imports" ]; - pythonImportsCheck = [ - "canmatrix" - ]; + pythonImportsCheck = [ "canmatrix" ]; meta = with lib; { description = "Support and convert several CAN (Controller Area Network) database formats"; diff --git a/pkgs/development/python-modules/canonicaljson/default.nix b/pkgs/development/python-modules/canonicaljson/default.nix index 0dd7a02a4aba..fa1130778b55 100644 --- a/pkgs/development/python-modules/canonicaljson/default.nix +++ b/pkgs/development/python-modules/canonicaljson/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, frozendict -, pytestCheckHook -, pythonOlder -, setuptools -, simplejson +{ + lib, + buildPythonPackage, + fetchPypi, + frozendict, + pytestCheckHook, + pythonOlder, + setuptools, + simplejson, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-4v2u8df63F2ctZvT0NQbBk3dppeAmsQyXc7XIdEvET8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - simplejson - ]; + propagatedBuildInputs = [ simplejson ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "canonicaljson" - ]; + pythonImportsCheck = [ "canonicaljson" ]; meta = with lib; { description = "Encodes objects and arrays as RFC 7159 JSON"; diff --git a/pkgs/development/python-modules/canopen/default.nix b/pkgs/development/python-modules/canopen/default.nix index 09a9f4366a0d..4a5bf0062193 100644 --- a/pkgs/development/python-modules/canopen/default.nix +++ b/pkgs/development/python-modules/canopen/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, can -, canmatrix -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + can, + canmatrix, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-XxhlG5325HabmILpafk0rnc+8kpFqrwzNLWGmCBI0Iw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ can canmatrix ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "canopen" - ]; + pythonImportsCheck = [ "canopen" ]; meta = with lib; { description = "CANopen stack implementation"; diff --git a/pkgs/development/python-modules/cantools/default.nix b/pkgs/development/python-modules/cantools/default.nix index 2b87d4de37ea..8aacef138db7 100644 --- a/pkgs/development/python-modules/cantools/default.nix +++ b/pkgs/development/python-modules/cantools/default.nix @@ -1,18 +1,19 @@ -{ lib -, argparse-addons -, bitstruct -, buildPythonPackage -, can -, crccheck -, diskcache -, fetchPypi -, matplotlib -, parameterized -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, textparser +{ + lib, + argparse-addons, + bitstruct, + buildPythonPackage, + can, + crccheck, + diskcache, + fetchPypi, + matplotlib, + parameterized, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + textparser, }: buildPythonPackage rec { @@ -41,18 +42,14 @@ buildPythonPackage rec { textparser ]; - passthru.optional-dependencies.plot = [ - matplotlib - ]; + passthru.optional-dependencies.plot = [ matplotlib ]; nativeCheckInputs = [ parameterized pytestCheckHook ] ++ passthru.optional-dependencies.plot; - pythonImportsCheck = [ - "cantools" - ]; + pythonImportsCheck = [ "cantools" ]; meta = with lib; { description = "Tools to work with CAN bus"; diff --git a/pkgs/development/python-modules/capstone/4.nix b/pkgs/development/python-modules/capstone/4.nix index 7c79cfe81942..2ecf1ce9347a 100644 --- a/pkgs/development/python-modules/capstone/4.nix +++ b/pkgs/development/python-modules/capstone/4.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, capstone_4 -, stdenv -, setuptools -, pythonAtLeast +{ + lib, + buildPythonPackage, + capstone_4, + stdenv, + setuptools, + pythonAtLeast, }: buildPythonPackage { @@ -20,7 +21,10 @@ buildPythonPackage { # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. - setupPyBuildFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "--plat-name" "macosx_11_0" ]; + setupPyBuildFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + "--plat-name" + "macosx_11_0" + ]; propagatedBuildInputs = [ setuptools ]; @@ -34,7 +38,10 @@ buildPythonPackage { homepage = "http://www.capstone-engine.org/"; license = licenses.bsdOriginal; description = "Python bindings for Capstone disassembly engine"; - maintainers = with maintainers; [ bennofs ris ]; + maintainers = with maintainers; [ + bennofs + ris + ]; broken = pythonAtLeast "3.12"; # uses distutils }; } diff --git a/pkgs/development/python-modules/capstone/default.nix b/pkgs/development/python-modules/capstone/default.nix index 405dbe767da6..ce7063adcd51 100644 --- a/pkgs/development/python-modules/capstone/default.nix +++ b/pkgs/development/python-modules/capstone/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, capstone -, stdenv -, setuptools -, pythonAtLeast +{ + lib, + buildPythonPackage, + capstone, + stdenv, + setuptools, + pythonAtLeast, }: buildPythonPackage rec { @@ -27,7 +28,10 @@ buildPythonPackage rec { # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. - setupPyBuildFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "--plat-name" "macosx_11_0" ]; + setupPyBuildFlags = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + "--plat-name" + "macosx_11_0" + ]; propagatedBuildInputs = [ setuptools ]; @@ -41,6 +45,9 @@ buildPythonPackage rec { homepage = "http://www.capstone-engine.org/"; license = licenses.bsdOriginal; description = "Python bindings for Capstone disassembly engine"; - maintainers = with maintainers; [ bennofs ris ]; + maintainers = with maintainers; [ + bennofs + ris + ]; }; } diff --git a/pkgs/development/python-modules/captcha/default.nix b/pkgs/development/python-modules/captcha/default.nix index 807272da5b1c..f0113c7920c9 100644 --- a/pkgs/development/python-modules/captcha/default.nix +++ b/pkgs/development/python-modules/captcha/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, pythonOlder -, buildPythonPackage -, pillow -, pytestCheckHook +{ + lib, + fetchFromGitHub, + pythonOlder, + buildPythonPackage, + pillow, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/capturer/default.nix b/pkgs/development/python-modules/capturer/default.nix index 51d5064aefa3..856da1f95369 100644 --- a/pkgs/development/python-modules/capturer/default.nix +++ b/pkgs/development/python-modules/capturer/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, fetchFromGitHub, humanfriendly, pytestCheckHook }: +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + humanfriendly, + pytestCheckHook, +}: buildPythonPackage rec { pname = "capturer"; diff --git a/pkgs/development/python-modules/carbon/default.nix b/pkgs/development/python-modules/carbon/default.nix index f6647abbc57e..3cfbf3c213f9 100644 --- a/pkgs/development/python-modules/carbon/default.nix +++ b/pkgs/development/python-modules/carbon/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, twisted, whisper, txamqp, cachetools, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + twisted, + whisper, + txamqp, + cachetools, + urllib3, }: buildPythonPackage rec { @@ -13,14 +21,23 @@ buildPythonPackage rec { # Carbon-s default installation is /opt/graphite. This env variable ensures # carbon is installed as a regular python module. - GRAPHITE_NO_PREFIX="True"; + GRAPHITE_NO_PREFIX = "True"; - propagatedBuildInputs = [ twisted whisper txamqp cachetools urllib3 ]; + propagatedBuildInputs = [ + twisted + whisper + txamqp + cachetools + urllib3 + ]; meta = with lib; { homepage = "http://graphiteapp.org/"; description = "Backend data caching and persistence daemon for Graphite"; - maintainers = with maintainers; [ offline basvandijk ]; + maintainers = with maintainers; [ + offline + basvandijk + ]; license = licenses.asl20; }; } diff --git a/pkgs/development/python-modules/cart/default.nix b/pkgs/development/python-modules/cart/default.nix index 7373ac0691cc..54b25617a0c7 100644 --- a/pkgs/development/python-modules/cart/default.nix +++ b/pkgs/development/python-modules/cart/default.nix @@ -1,9 +1,10 @@ -{ lib -, pycryptodome -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + pycryptodome, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-0dHdXb4v92681xL21FsrIkNgNQ9R5ULV1lnSCITZzP8="; }; - propagatedBuildInputs = [ - pycryptodome - ]; + propagatedBuildInputs = [ pycryptodome ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "unittests" - ]; + pytestFlagsArray = [ "unittests" ]; - pythonImportsCheck = [ - "cart" - ]; + pythonImportsCheck = [ "cart" ]; meta = with lib; { description = "Python module for the CaRT Neutering format"; diff --git a/pkgs/development/python-modules/cartopy/default.nix b/pkgs/development/python-modules/cartopy/default.nix index 17d6b014caef..9df147a45c5f 100644 --- a/pkgs/development/python-modules/cartopy/default.nix +++ b/pkgs/development/python-modules/cartopy/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch -, cython -, setuptools-scm -, geos -, proj -, matplotlib -, numpy -, pyproj -, pyshp -, shapely -, owslib -, pillow -, gdal -, scipy -, fontconfig -, pytest-mpl -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch, + cython, + setuptools-scm, + geos, + proj, + matplotlib, + numpy, + pyproj, + pyshp, + shapely, + owslib, + pillow, + gdal, + scipy, + fontconfig, + pytest-mpl, + pytestCheckHook, }: buildPythonPackage rec { @@ -56,8 +57,15 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - ows = [ owslib pillow ]; - plotting = [ gdal pillow scipy ]; + ows = [ + owslib + pillow + ]; + plotting = [ + gdal + pillow + scipy + ]; }; nativeCheckInputs = [ @@ -77,9 +85,7 @@ buildPythonPackage rec { "'not network and not natural_earth'" ]; - disabledTests = [ - "test_gridliner_labels_bbox_style" - ]; + disabledTests = [ "test_gridliner_labels_bbox_style" ]; meta = with lib; { description = "Process geospatial data to create maps and perform analyses"; diff --git a/pkgs/development/python-modules/casbin/default.nix b/pkgs/development/python-modules/casbin/default.nix index 30785002d47f..81c0dd3c24b6 100644 --- a/pkgs/development/python-modules/casbin/default.nix +++ b/pkgs/development/python-modules/casbin/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, simpleeval -, wcmatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + simpleeval, + wcmatch, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-MeTOxDrk6pvJ1L9ZOKzWhXK8WXo0jWXGKEKR7y0ejbQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ simpleeval wcmatch ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "casbin" - ]; + pythonImportsCheck = [ "casbin" ]; meta = with lib; { description = "Authorization library that supports access control models like ACL, RBAC and ABAC"; diff --git a/pkgs/development/python-modules/case/default.nix b/pkgs/development/python-modules/case/default.nix index 5a244096bcd5..3271bd8e0179 100644 --- a/pkgs/development/python-modules/case/default.nix +++ b/pkgs/development/python-modules/case/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pynose -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pynose, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + six, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { # No real unittests, only coverage doCheck = false; - pythonImportsCheck = [ - "case" - ]; + pythonImportsCheck = [ "case" ]; meta = with lib; { homepage = "https://github.com/celery/case"; diff --git a/pkgs/development/python-modules/cashaddress/default.nix b/pkgs/development/python-modules/cashaddress/default.nix index 8458f9b7fba6..ec7d20a9af68 100644 --- a/pkgs/development/python-modules/cashaddress/default.nix +++ b/pkgs/development/python-modules/cashaddress/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-4izWD2KZqy1F7CAgdbe1fpjMlMZC0clrkHKS9IIQuoc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cashaddress" - ]; + pythonImportsCheck = [ "cashaddress" ]; meta = with lib; { description = "Python tool for convert bitcoin cash legacy addresses"; diff --git a/pkgs/development/python-modules/cassandra-driver/default.nix b/pkgs/development/python-modules/cassandra-driver/default.nix index ad5364ccd385..678720e7d3f3 100644 --- a/pkgs/development/python-modules/cassandra-driver/default.nix +++ b/pkgs/development/python-modules/cassandra-driver/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, buildPythonPackage -, cryptography -, cython_0 -, eventlet -, fetchFromGitHub -, geomet -, gevent -, gremlinpython -, iana-etc -, libev -, libredirect -, mock -, nose -, pytestCheckHook -, pythonOlder -, pytz -, pyyaml -, scales -, six -, sure -, twisted +{ + lib, + stdenv, + buildPythonPackage, + cryptography, + cython_0, + eventlet, + fetchFromGitHub, + geomet, + gevent, + gremlinpython, + iana-etc, + libev, + libredirect, + mock, + nose, + pytestCheckHook, + pythonOlder, + pytz, + pyyaml, + scales, + six, + sure, + twisted, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { --replace 'geomet>=0.1,<0.3' 'geomet' ''; - nativeBuildInputs = [ - cython_0 - ]; + nativeBuildInputs = [ cython_0 ]; - buildInputs = [ - libev - ]; + buildInputs = [ libev ]; propagatedBuildInputs = [ six @@ -66,33 +63,31 @@ buildPythonPackage rec { # Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox, # also /etc/resolv.conf is referenced by some tests - preCheck = (lib.optionalString stdenv.isLinux '' - echo "nameserver 127.0.0.1" > resolv.conf - export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) - export LD_PRELOAD=${libredirect}/lib/libredirect.so - '') + '' - # increase tolerance for time-based test - substituteInPlace tests/unit/io/utils.py --replace 'delta=.15' 'delta=.3' + preCheck = + (lib.optionalString stdenv.isLinux '' + echo "nameserver 127.0.0.1" > resolv.conf + export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) + export LD_PRELOAD=${libredirect}/lib/libredirect.so + '') + + '' + # increase tolerance for time-based test + substituteInPlace tests/unit/io/utils.py --replace 'delta=.15' 'delta=.3' - export HOME=$(mktemp -d) - # cythonize this before we hide the source dir as it references - # one of its files - cythonize -i tests/unit/cython/types_testhelper.pyx + export HOME=$(mktemp -d) + # cythonize this before we hide the source dir as it references + # one of its files + cythonize -i tests/unit/cython/types_testhelper.pyx - mv cassandra .cassandra.hidden - ''; + mv cassandra .cassandra.hidden + ''; - pythonImportsCheck = [ - "cassandra" - ]; + pythonImportsCheck = [ "cassandra" ]; postCheck = '' unset NIX_REDIRECTS LD_PRELOAD ''; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; disabledTestPaths = [ # requires puresasl diff --git a/pkgs/development/python-modules/castepxbin/default.nix b/pkgs/development/python-modules/castepxbin/default.nix index 007a9543d6f1..04e1611e812c 100644 --- a/pkgs/development/python-modules/castepxbin/default.nix +++ b/pkgs/development/python-modules/castepxbin/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, flit-core -, numpy -, scipy -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + flit-core, + numpy, + scipy, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { hash = "sha256-6kumVnm4PLRxuKO6Uz0iHzfYuu21hFC7EPRsc3S1kxE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ numpy scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A collection of readers for CASTEP binary outputs"; diff --git a/pkgs/development/python-modules/casttube/default.nix b/pkgs/development/python-modules/casttube/default.nix index 4d836dc052fe..4b6e6b1c243c 100644 --- a/pkgs/development/python-modules/casttube/default.nix +++ b/pkgs/development/python-modules/casttube/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "casttube"; diff --git a/pkgs/development/python-modules/catalogue/default.nix b/pkgs/development/python-modules/catalogue/default.nix index b417dba120f6..8b864b6c2b49 100644 --- a/pkgs/development/python-modules/catalogue/default.nix +++ b/pkgs/development/python-modules/catalogue/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, typing-extensions -, zipp +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + typing-extensions, + zipp, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { hash = "sha256-T1baqUCRPT8J1YnBkcdOWm1Rdis6njfdU7dDev1s2hU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ typing-extensions zipp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "catalogue" - ]; + pythonImportsCheck = [ "catalogue" ]; meta = with lib; { description = "Tiny library for adding function or object registries"; diff --git a/pkgs/development/python-modules/catboost/default.nix b/pkgs/development/python-modules/catboost/default.nix index 6795655f4840..98e4f0869ccb 100644 --- a/pkgs/development/python-modules/catboost/default.nix +++ b/pkgs/development/python-modules/catboost/default.nix @@ -1,20 +1,26 @@ -{ lib -, buildPythonPackage -, catboost -, python -, graphviz -, matplotlib -, numpy -, pandas -, plotly -, scipy -, setuptools -, six -, wheel +{ + lib, + buildPythonPackage, + catboost, + python, + graphviz, + matplotlib, + numpy, + pandas, + plotly, + scipy, + setuptools, + six, + wheel, }: buildPythonPackage rec { - inherit (catboost) pname version src meta; + inherit (catboost) + pname + version + src + meta + ; format = "pyproject"; sourceRoot = "${src.name}/catboost/python-package"; diff --git a/pkgs/development/python-modules/catppuccin/default.nix b/pkgs/development/python-modules/catppuccin/default.nix index 72b0a4ff42fe..3256f83e3108 100644 --- a/pkgs/development/python-modules/catppuccin/default.nix +++ b/pkgs/development/python-modules/catppuccin/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, poetry-dynamic-versioning -, pygments -, rich -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + poetry-dynamic-versioning, + pygments, + rich, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,16 +32,17 @@ buildPythonPackage rec { rich = [ rich ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ lib.flatten (lib.attrValues optional-dependencies); + nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); pythonImportsCheck = [ "catppuccin" ]; meta = { description = "Soothing pastel theme for Python"; homepage = "https://github.com/catppuccin/python"; - maintainers = with lib.maintainers; [ fufexan tomasajt ]; + maintainers = with lib.maintainers; [ + fufexan + tomasajt + ]; license = lib.licenses.mit; }; } diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix index 304069b660d2..2e48750ccb1e 100644 --- a/pkgs/development/python-modules/cattrs/default.nix +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -1,23 +1,24 @@ -{ lib -, attrs -, buildPythonPackage -, cbor2 -, fetchFromGitHub -, exceptiongroup -, hatchling -, hatch-vcs -, hypothesis -, immutables -, motor -, msgpack -, orjson -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pyyaml -, tomlkit -, typing-extensions -, ujson +{ + lib, + attrs, + buildPythonPackage, + cbor2, + fetchFromGitHub, + exceptiongroup, + hatchling, + hatch-vcs, + hypothesis, + immutables, + motor, + msgpack, + orjson, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pyyaml, + tomlkit, + typing-extensions, + ujson, }: buildPythonPackage rec { @@ -39,12 +40,12 @@ buildPythonPackage rec { hatch-vcs ]; - propagatedBuildInputs = [ - attrs - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - typing-extensions - ]; + propagatedBuildInputs = + [ attrs ] + ++ lib.optionals (pythonOlder "3.11") [ + exceptiongroup + typing-extensions + ]; nativeCheckInputs = [ cbor2 @@ -61,7 +62,6 @@ buildPythonPackage rec { ujson ]; - postPatch = '' substituteInPlace pyproject.toml \ --replace "-l --benchmark-sort=fullname --benchmark-warmup=true --benchmark-warmup-iterations=5 --benchmark-group-by=fullname" "" @@ -89,9 +89,7 @@ buildPythonPackage rec { "test_tomlkit" ]; - pythonImportsCheck = [ - "cattr" - ]; + pythonImportsCheck = [ "cattr" ]; meta = with lib; { description = "Python custom class converters for attrs"; diff --git a/pkgs/development/python-modules/cbor/default.nix b/pkgs/development/python-modules/cbor/default.nix index 551a0567ce4b..63d9ddfc7009 100644 --- a/pkgs/development/python-modules/cbor/default.nix +++ b/pkgs/development/python-modules/cbor/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "cbor"; diff --git a/pkgs/development/python-modules/cbor2/default.nix b/pkgs/development/python-modules/cbor2/default.nix index c9d2ecbaca4f..ce8bf6257cfb 100644 --- a/pkgs/development/python-modules/cbor2/default.nix +++ b/pkgs/development/python-modules/cbor2/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# tests -, hypothesis -, pytestCheckHook + # tests + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { setuptools-scm ]; - pythonImportsCheck = [ - "cbor2" - ]; + pythonImportsCheck = [ "cbor2" ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/cccolutils/default.nix b/pkgs/development/python-modules/cccolutils/default.nix index 86aa9f6c8593..829ebd248c41 100644 --- a/pkgs/development/python-modules/cccolutils/default.nix +++ b/pkgs/development/python-modules/cccolutils/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, git -, gitpython -, krb5 -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + git, + gitpython, + krb5, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-YzKjG43biRbTZKtzSUHHhtzOfcZfzISHDFolqzrBjL8="; }; - buildInputs = [ - krb5 - ]; + buildInputs = [ krb5 ]; propagatedBuildInputs = [ git @@ -32,13 +31,9 @@ buildPythonPackage rec { mock ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cccolutils" - ]; + pythonImportsCheck = [ "cccolutils" ]; meta = with lib; { description = "Python Kerberos 5 Credential Cache Collection Utilities"; diff --git a/pkgs/development/python-modules/celery-redbeat/default.nix b/pkgs/development/python-modules/celery-redbeat/default.nix index 779dfb68c4c5..0e6d7f5b868f 100644 --- a/pkgs/development/python-modules/celery-redbeat/default.nix +++ b/pkgs/development/python-modules/celery-redbeat/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, python-dateutil -, celery -, redis -, tenacity -, pytestCheckHook -, pytz -, fakeredis -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + python-dateutil, + celery, + redis, + tenacity, + pytestCheckHook, + pytz, + fakeredis, + mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/celery-singleton/default.nix b/pkgs/development/python-modules/celery-singleton/default.nix index bb3ac446a600..10b1bfc05063 100644 --- a/pkgs/development/python-modules/celery-singleton/default.nix +++ b/pkgs/development/python-modules/celery-singleton/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchFromGitHub -, poetry-core -, celery -, redis -, pytestCheckHook -, pytest-celery +{ + lib, + buildPythonPackage, + fetchpatch, + fetchFromGitHub, + poetry-core, + celery, + redis, + pytestCheckHook, + pytest-celery, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ celery diff --git a/pkgs/development/python-modules/celery-types/default.nix b/pkgs/development/python-modules/celery-types/default.nix index fd39ab0901f4..53ed8e4f2512 100644 --- a/pkgs/development/python-modules/celery-types/default.nix +++ b/pkgs/development/python-modules/celery-types/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -19,14 +20,9 @@ buildPythonPackage rec { hash = "sha256-DsrS+lpu3tCh+Rnl4eOBzC/wY1/ksh21O0ZhtodtWzA="; }; + nativeBuildInputs = [ poetry-core ]; - nativeBuildInputs = [ - poetry-core - ]; - - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; doCheck = false; diff --git a/pkgs/development/python-modules/celery/default.nix b/pkgs/development/python-modules/celery/default.nix index f62840490908..9e52b75e59af 100644 --- a/pkgs/development/python-modules/celery/default.nix +++ b/pkgs/development/python-modules/celery/default.nix @@ -1,38 +1,39 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, billiard -, kombu -, vine -, click -, click-didyoumean -, click-repl -, click-plugins -, tzdata -, python-dateutil + # dependencies + billiard, + kombu, + vine, + click, + click-didyoumean, + click-repl, + click-plugins, + tzdata, + python-dateutil, -# optional-dependencies -, google-cloud-storage -, moto -, msgpack -, pymongo -, pyyaml + # optional-dependencies + google-cloud-storage, + moto, + msgpack, + pymongo, + pyyaml, -# tests -, pytest-celery -, pytest-click -, pytest-subtests -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, nixosTests + # tests + pytest-celery, + pytest-click, + pytest-subtests, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + nixosTests, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { hash = "sha256-UEoZFA6NMCnVrK2IMwxUHUw/ZMeJ2F+UdWdi2Lyn5wY="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ billiard @@ -70,20 +69,21 @@ buildPythonPackage rec { yaml = [ pyyaml ]; }; - nativeCheckInputs = [ - moto - pytest-celery - pytest-click - pytest-subtests - pytest-timeout - pytest-xdist - pytestCheckHook - ] - # based on https://github.com/celery/celery/blob/main/requirements/test.txt - ++ optional-dependencies.yaml - ++ optional-dependencies.msgpack - ++ optional-dependencies.mongodb - ++ optional-dependencies.gcs; + nativeCheckInputs = + [ + moto + pytest-celery + pytest-click + pytest-subtests + pytest-timeout + pytest-xdist + pytestCheckHook + ] + # based on https://github.com/celery/celery/blob/main/requirements/test.txt + ++ optional-dependencies.yaml + ++ optional-dependencies.msgpack + ++ optional-dependencies.mongodb + ++ optional-dependencies.gcs; disabledTestPaths = [ # test_eventlet touches network @@ -95,26 +95,26 @@ buildPythonPackage rec { "t/unit/backends/test_s3.py" ]; - disabledTests = [ - "msgpack" - "test_check_privileges_no_fchown" - # seems to only fail on higher core counts - # AssertionError: assert 3 == 0 - "test_setup_security_disabled_serializers" - # fails with pytest-xdist - "test_itercapture_limit" - "test_stamping_headers_in_options" - "test_stamping_with_replace" - ] ++ lib.optionals stdenv.isDarwin [ - # too many open files on hydra - "test_cleanup" - "test_with_autoscaler_file_descriptor_safety" - "test_with_file_descriptor_safety" - ]; + disabledTests = + [ + "msgpack" + "test_check_privileges_no_fchown" + # seems to only fail on higher core counts + # AssertionError: assert 3 == 0 + "test_setup_security_disabled_serializers" + # fails with pytest-xdist + "test_itercapture_limit" + "test_stamping_headers_in_options" + "test_stamping_with_replace" + ] + ++ lib.optionals stdenv.isDarwin [ + # too many open files on hydra + "test_cleanup" + "test_with_autoscaler_file_descriptor_safety" + "test_with_file_descriptor_safety" + ]; - pythonImportsCheck = [ - "celery" - ]; + pythonImportsCheck = [ "celery" ]; passthru.tests = { inherit (nixosTests) sourcehut; diff --git a/pkgs/development/python-modules/cement/default.nix b/pkgs/development/python-modules/cement/default.nix index cc71268dee0b..a3a131c8b8af 100644 --- a/pkgs/development/python-modules/cement/default.nix +++ b/pkgs/development/python-modules/cement/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { # 127.0.0.1:11211. doCheck = false; - pythonImportsCheck = [ - "cement" - ]; + pythonImportsCheck = [ "cement" ]; meta = with lib; { description = "CLI Application Framework for Python"; diff --git a/pkgs/development/python-modules/cemm/default.nix b/pkgs/development/python-modules/cemm/default.nix index 9f9ae3b16be5..2b93befacbbd 100644 --- a/pkgs/development/python-modules/cemm/default.nix +++ b/pkgs/development/python-modules/cemm/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { --replace 'addopts = "--cov"' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -57,9 +56,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "cemm" - ]; + pythonImportsCheck = [ "cemm" ]; meta = with lib; { description = "Module for interacting with CEMM devices"; diff --git a/pkgs/development/python-modules/censys/default.nix b/pkgs/development/python-modules/censys/default.nix index 70c7a6c4a0d2..a741b914c161 100644 --- a/pkgs/development/python-modules/censys/default.nix +++ b/pkgs/development/python-modules/censys/default.nix @@ -1,19 +1,20 @@ -{ lib -, argcomplete -, backoff -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, parameterized -, poetry-core -, pytest-mock -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, requests-mock -, responses -, rich +{ + lib, + argcomplete, + backoff, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + parameterized, + poetry-core, + pytest-mock, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + requests-mock, + responses, + rich, }: buildPythonPackage rec { @@ -68,9 +69,7 @@ buildPythonPackage rec { mkdir -p $HOME ''; - pythonImportsCheck = [ - "censys" - ]; + pythonImportsCheck = [ "censys" ]; meta = with lib; { description = "Python API wrapper for the Censys Search Engine (censys.io)"; diff --git a/pkgs/development/python-modules/cerberus/default.nix b/pkgs/development/python-modules/cerberus/default.nix index a60e80353599..566268bc06cb 100644 --- a/pkgs/development/python-modules/cerberus/default.nix +++ b/pkgs/development/python-modules/cerberus/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cerberus" - ]; + pythonImportsCheck = [ "cerberus" ]; disabledTestPaths = [ # We don't care about benchmarks diff --git a/pkgs/development/python-modules/cert-chain-resolver/default.nix b/pkgs/development/python-modules/cert-chain-resolver/default.nix index de89116b4c92..31ed14788dd6 100644 --- a/pkgs/development/python-modules/cert-chain-resolver/default.nix +++ b/pkgs/development/python-modules/cert-chain-resolver/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytestCheckHook -, pytest-mock -, pythonOlder -, six +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytestCheckHook, + pytest-mock, + pythonOlder, + six, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-2itpu/Ap5GNnqAiw3Cp+8rndreWlwfPd+WwM99G7U2E="; }; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; nativeCheckInputs = [ pytestCheckHook @@ -38,9 +37,7 @@ buildPythonPackage rec { "test_display_flag_is_properly_formatted" ]; - pythonImportsCheck = [ - "cert_chain_resolver" - ]; + pythonImportsCheck = [ "cert_chain_resolver" ]; meta = with lib; { description = "Resolve / obtain the certificate intermediates of a x509 certificate"; diff --git a/pkgs/development/python-modules/certauth/default.nix b/pkgs/development/python-modules/certauth/default.nix index efdd6c03b256..d68cbd3481c2 100644 --- a/pkgs/development/python-modules/certauth/default.nix +++ b/pkgs/development/python-modules/certauth/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pyopenssl -, tldextract -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pyopenssl, + tldextract, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,22 +29,16 @@ buildPythonPackage rec { --replace-fail "--cov certauth " "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyopenssl tldextract ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "certauth" - ]; + pythonImportsCheck = [ "certauth" ]; disabledTests = [ # https://github.com/ikreymer/certauth/issues/23 diff --git a/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix b/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix index 2b66de576d27..1d0a48549c16 100644 --- a/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix +++ b/pkgs/development/python-modules/certbot-dns-cloudflare/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, acme -, certbot -, cloudflare -, pytestCheckHook -, pythonOlder +{ + buildPythonPackage, + acme, + certbot, + cloudflare, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { cloudflare ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" diff --git a/pkgs/development/python-modules/certbot-dns-google/default.nix b/pkgs/development/python-modules/certbot-dns-google/default.nix index 6d5ab6954e9d..1717a573a9d0 100644 --- a/pkgs/development/python-modules/certbot-dns-google/default.nix +++ b/pkgs/development/python-modules/certbot-dns-google/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, acme -, certbot -, google-api-python-client -, oauth2client -, pytestCheckHook -, pythonOlder +{ + buildPythonPackage, + acme, + certbot, + google-api-python-client, + oauth2client, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { oauth2client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" diff --git a/pkgs/development/python-modules/certbot-dns-inwx/default.nix b/pkgs/development/python-modules/certbot-dns-inwx/default.nix index 7408bb2dc2e2..08c83c264bca 100644 --- a/pkgs/development/python-modules/certbot-dns-inwx/default.nix +++ b/pkgs/development/python-modules/certbot-dns-inwx/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, acme -, certbot +{ + lib, + fetchPypi, + buildPythonPackage, + acme, + certbot, }: buildPythonPackage rec { @@ -28,7 +29,10 @@ buildPythonPackage rec { meta = with lib; { description = "INWX DNS Authenticator plugin for Certbot"; homepage = "https://github.com/oGGy990/certbot-dns-inwx"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ onny ]; }; } diff --git a/pkgs/development/python-modules/certbot-dns-ovh/default.nix b/pkgs/development/python-modules/certbot-dns-ovh/default.nix index d9b554c7a86c..4858b5827969 100644 --- a/pkgs/development/python-modules/certbot-dns-ovh/default.nix +++ b/pkgs/development/python-modules/certbot-dns-ovh/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, acme -, certbot -, dns-lexicon -, pytestCheckHook -, pythonOlder +{ + buildPythonPackage, + acme, + certbot, + dns-lexicon, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { dns-lexicon ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" diff --git a/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix b/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix index 9278435e09f0..d4883bd2ad02 100644 --- a/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix +++ b/pkgs/development/python-modules/certbot-dns-rfc2136/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, acme -, certbot -, dnspython -, pytestCheckHook -, pythonOlder +{ + buildPythonPackage, + acme, + certbot, + dnspython, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { dnspython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" diff --git a/pkgs/development/python-modules/certbot-dns-route53/default.nix b/pkgs/development/python-modules/certbot-dns-route53/default.nix index 7637aec52b88..798631b0c79e 100644 --- a/pkgs/development/python-modules/certbot-dns-route53/default.nix +++ b/pkgs/development/python-modules/certbot-dns-route53/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, acme -, boto3 -, certbot -, pytestCheckHook -, pythonOlder +{ + buildPythonPackage, + acme, + boto3, + certbot, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { certbot ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index 8cda81ec6d30..e0e24ed03d27 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, python -, runCommand -, fetchFromGitHub -, configargparse -, acme -, configobj -, cryptography -, distro -, josepy -, parsedatetime -, pyrfc3339 -, pyopenssl -, pytz -, requests -, six -, zope-component -, zope-interface -, setuptools -, dialog -, gnureadline -, pytest-xdist -, pytestCheckHook -, python-dateutil +{ + lib, + buildPythonPackage, + python, + runCommand, + fetchFromGitHub, + configargparse, + acme, + configobj, + cryptography, + distro, + josepy, + parsedatetime, + pyrfc3339, + pyopenssl, + pytz, + requests, + six, + zope-component, + zope-interface, + setuptools, + dialog, + gnureadline, + pytest-xdist, + pytestCheckHook, + python-dateutil, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/${pname}"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ configargparse @@ -56,7 +55,10 @@ buildPythonPackage rec { setuptools # for pkg_resources ]; - buildInputs = [ dialog gnureadline ]; + buildInputs = [ + dialog + gnureadline + ]; nativeCheckInputs = [ python-dateutil @@ -64,22 +66,19 @@ buildPythonPackage rec { pytest-xdist ]; - pytestFlagsArray = [ - "-o cache_dir=$(mktemp -d)" - ]; + pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ]; makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ]; # certbot.withPlugins has a similar calling convention as python*.withPackages # it gets invoked with a lambda, and invokes that lambda with the python package set matching certbot's: # certbot.withPlugins (cp: [ cp.certbot-dns-foo ]) - passthru.withPlugins = f: + passthru.withPlugins = + f: let pythonEnv = python.withPackages f; - in - runCommand "certbot-with-plugins" - { } '' + runCommand "certbot-with-plugins" { } '' mkdir -p $out/bin cd $out/bin ln -s ${pythonEnv}/bin/certbot diff --git a/pkgs/development/python-modules/certifi/default.nix b/pkgs/development/python-modules/certifi/default.nix index 73492baa076a..81c083972298 100644 --- a/pkgs/development/python-modules/certifi/default.nix +++ b/pkgs/development/python-modules/certifi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cacert -, pythonOlder -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + cacert, + pythonOlder, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,22 +33,16 @@ buildPythonPackage rec { ln -snvf "${cacert}/etc/ssl/certs/ca-bundle.crt" "certifi/cacert.pem" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedNativeBuildInputs = [ # propagate cacerts setup-hook to set up `NIX_SSL_CERT_FILE` cacert ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "certifi" - ]; + pythonImportsCheck = [ "certifi" ]; meta = with lib; { homepage = "https://github.com/certifi/python-certifi"; diff --git a/pkgs/development/python-modules/certipy-ad/default.nix b/pkgs/development/python-modules/certipy-ad/default.nix index 794c35f4d75c..52cbbe19cbac 100644 --- a/pkgs/development/python-modules/certipy-ad/default.nix +++ b/pkgs/development/python-modules/certipy-ad/default.nix @@ -1,20 +1,21 @@ -{ lib -, asn1crypto -, buildPythonPackage -, cryptography -, dnspython -, dsinternals -, fetchFromGitHub -, impacket -, ldap3 -, pyasn1 -, pycryptodome -, pyopenssl -, pythonOlder -, requests -, requests-ntlm -, unicrypto -, setuptools +{ + lib, + asn1crypto, + buildPythonPackage, + cryptography, + dnspython, + dsinternals, + fetchFromGitHub, + impacket, + ldap3, + pyasn1, + pycryptodome, + pyopenssl, + pythonOlder, + requests, + requests-ntlm, + unicrypto, + setuptools, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace "pyasn1==0.4.8" "pyasn1" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asn1crypto @@ -60,9 +59,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "certipy" - ]; + pythonImportsCheck = [ "certipy" ]; meta = with lib; { description = "Library and CLI tool to enumerate and abuse misconfigurations in Active Directory Certificate Services"; diff --git a/pkgs/development/python-modules/certipy/default.nix b/pkgs/development/python-modules/certipy/default.nix index e0ee3b6319b7..908edc32db69 100644 --- a/pkgs/development/python-modules/certipy/default.nix +++ b/pkgs/development/python-modules/certipy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyopenssl +{ + lib, + buildPythonPackage, + fetchPypi, + pyopenssl, }: buildPythonPackage rec { @@ -16,7 +17,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyopenssl ]; - doCheck = false; #no tests were included + doCheck = false; # no tests were included meta = with lib; { homepage = "https://github.com/LLNL/certipy"; @@ -25,5 +26,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ isgy ]; }; - } diff --git a/pkgs/development/python-modules/certomancer/default.nix b/pkgs/development/python-modules/certomancer/default.nix index 4adb682f6dce..70735255db77 100644 --- a/pkgs/development/python-modules/certomancer/default.nix +++ b/pkgs/development/python-modules/certomancer/default.nix @@ -1,26 +1,27 @@ -{ lib -, asn1crypto -, buildPythonPackage -, click -, cryptography -, fetchFromGitHub -, freezegun -, jinja2 -, oscrypto -, pyhanko-certvalidator -, pytest-aiohttp -, pytestCheckHook -, python-dateutil -, python-pkcs11 -, pythonOlder -, pytz -, pyyaml -, requests -, requests-mock -, setuptools -, tzlocal -, werkzeug -, wheel +{ + lib, + asn1crypto, + buildPythonPackage, + click, + cryptography, + fetchFromGitHub, + freezegun, + jinja2, + oscrypto, + pyhanko-certvalidator, + pytest-aiohttp, + pytestCheckHook, + python-dateutil, + python-pkcs11, + pythonOlder, + pytz, + pyyaml, + requests, + requests-mock, + setuptools, + tzlocal, + werkzeug, + wheel, }: buildPythonPackage rec { @@ -57,19 +58,13 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - requests-mocker = [ - requests-mock - ]; + requests-mocker = [ requests-mock ]; web-api = [ jinja2 werkzeug ]; - pkcs12 = [ - cryptography - ]; - pkcs11 = [ - python-pkcs11 - ]; + pkcs12 = [ cryptography ]; + pkcs11 = [ python-pkcs11 ]; }; nativeCheckInputs = [ @@ -86,9 +81,7 @@ buildPythonPackage rec { "test_validate" ]; - pythonImportsCheck = [ - "certomancer" - ]; + pythonImportsCheck = [ "certomancer" ]; meta = with lib; { description = "Quickly construct, mock & deploy PKI test configurations using simple declarative configuration"; diff --git a/pkgs/development/python-modules/certvalidator/default.nix b/pkgs/development/python-modules/certvalidator/default.nix index f1f6126c69df..c59e2b6738e0 100644 --- a/pkgs/development/python-modules/certvalidator/default.nix +++ b/pkgs/development/python-modules/certvalidator/default.nix @@ -1,6 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, asn1crypto, oscrypto -, cacert +{ + lib, + buildPythonPackage, + fetchFromGitHub, + asn1crypto, + oscrypto, + cacert, }: buildPythonPackage rec { @@ -15,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-yVF7t4FuU3C9fDg67JeM7LWZZh/mv5F4EKmjlO4AuBY="; }; - propagatedBuildInputs = [ asn1crypto oscrypto ]; + propagatedBuildInputs = [ + asn1crypto + oscrypto + ]; nativeCheckInputs = [ cacert ]; checkPhase = '' diff --git a/pkgs/development/python-modules/cexprtk/default.nix b/pkgs/development/python-modules/cexprtk/default.nix index a805c98f73ec..7b680777e310 100644 --- a/pkgs/development/python-modules/cexprtk/default.nix +++ b/pkgs/development/python-modules/cexprtk/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cf-xarray/default.nix b/pkgs/development/python-modules/cf-xarray/default.nix index 9dd92914cb63..e2707a4d45f2 100644 --- a/pkgs/development/python-modules/cf-xarray/default.nix +++ b/pkgs/development/python-modules/cf-xarray/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, dask -, fetchFromGitHub -, matplotlib -, pint -, pooch -, pytestCheckHook -, pythonOlder -, regex -, rich -, scipy -, setuptools -, setuptools-scm -, shapely -, wheel -, xarray +{ + lib, + buildPythonPackage, + dask, + fetchFromGitHub, + matplotlib, + pint, + pooch, + pytestCheckHook, + pythonOlder, + regex, + rich, + scipy, + setuptools, + setuptools-scm, + shapely, + wheel, + xarray, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { xarray ]; - propagatedBuildInputs = [ - xarray - ]; + propagatedBuildInputs = [ xarray ]; passthru.optional-dependencies = { all = [ @@ -59,9 +58,7 @@ buildPythonPackage rec { scipy ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "cf_xarray" - ]; + pythonImportsCheck = [ "cf_xarray" ]; disabledTestPaths = [ # Tests require network access diff --git a/pkgs/development/python-modules/cffconvert/default.nix b/pkgs/development/python-modules/cffconvert/default.nix index 9ca8fb492e5e..fcf6f222984c 100644 --- a/pkgs/development/python-modules/cffconvert/default.nix +++ b/pkgs/development/python-modules/cffconvert/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, click -, requests -, ruamel-yaml -, pykwalify -, jsonschema -, pytestCheckHook -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + click, + requests, + ruamel-yaml, + pykwalify, + jsonschema, + pytestCheckHook, + pytest-cov, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-/2qhWVNylrqPSf1KmuZQahzq+YH860cohVSfJsDm1BE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ click @@ -35,9 +34,7 @@ buildPythonPackage rec { jsonschema ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ # addopts uses --no-cov @@ -49,9 +46,7 @@ buildPythonPackage rec { "tests/cli/test_rawify_url.py" ]; - pythonImportsCheckHook = [ - "cffconvert" - ]; + pythonImportsCheckHook = [ "cffconvert" ]; meta = { changelog = "https://github.com/citation-file-format/cffconvert/blob/${src.rev}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/cffi/default.nix b/pkgs/development/python-modules/cffi/default.nix index 7b2547afff1d..7d03ab82c7bc 100644 --- a/pkgs/development/python-modules/cffi/default.nix +++ b/pkgs/development/python-modules/cffi/default.nix @@ -1,83 +1,82 @@ -{ lib -, stdenv -, buildPythonPackage -, isPyPy -, fetchPypi -, setuptools -, pytestCheckHook -, libffi -, pkg-config -, pycparser -, pythonAtLeast +{ + lib, + stdenv, + buildPythonPackage, + isPyPy, + fetchPypi, + setuptools, + pytestCheckHook, + libffi, + pkg-config, + pycparser, + pythonAtLeast, }: -if isPyPy then null else buildPythonPackage rec { - pname = "cffi"; - version = "1.16.0"; - pyproject = true; +if isPyPy then + null +else + buildPythonPackage rec { + pname = "cffi"; + version = "1.16.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-vLPvQ+WGZbvaL7GYaY/K5ndkg+DEpjGqVkeAbCXgLMA="; - }; + src = fetchPypi { + inherit pname version; + hash = "sha256-vLPvQ+WGZbvaL7GYaY/K5ndkg+DEpjGqVkeAbCXgLMA="; + }; - patches = [ - # - # Trusts the libffi library inside of nixpkgs on Apple devices. - # - # Based on some analysis I did: - # - # https://groups.google.com/g/python-cffi/c/xU0Usa8dvhk - # - # I believe that libffi already contains the code from Apple's fork that is - # deemed safe to trust in cffi. - # - ./darwin-use-libffi-closures.diff - ] ++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion stdenv.cc) "13") [ - # -Wnull-pointer-subtraction is enabled with -Wextra. Suppress it to allow the following tests - # to run and pass when cffi is built with newer versions of clang: - # - testing/cffi1/test_verify1.py::test_enum_usage - # - testing/cffi1/test_verify1.py::test_named_pointer_as_argument - ./clang-pointer-substraction-warning.diff - ]; + patches = + [ + # + # Trusts the libffi library inside of nixpkgs on Apple devices. + # + # Based on some analysis I did: + # + # https://groups.google.com/g/python-cffi/c/xU0Usa8dvhk + # + # I believe that libffi already contains the code from Apple's fork that is + # deemed safe to trust in cffi. + # + ./darwin-use-libffi-closures.diff + ] + ++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast (lib.getVersion stdenv.cc) "13") [ + # -Wnull-pointer-subtraction is enabled with -Wextra. Suppress it to allow the following tests + # to run and pass when cffi is built with newer versions of clang: + # - testing/cffi1/test_verify1.py::test_enum_usage + # - testing/cffi1/test_verify1.py::test_named_pointer_as_argument + ./clang-pointer-substraction-warning.diff + ]; - postPatch = lib.optionalString stdenv.isDarwin '' - # Remove setup.py impurities - substituteInPlace setup.py \ - --replace "'-iwithsysroot/usr/include/ffi'" "" \ - --replace "'/usr/include/ffi'," "" \ - --replace '/usr/include/libffi' '${lib.getDev libffi}/include' - ''; + postPatch = lib.optionalString stdenv.isDarwin '' + # Remove setup.py impurities + substituteInPlace setup.py \ + --replace "'-iwithsysroot/usr/include/ffi'" "" \ + --replace "'/usr/include/ffi'," "" \ + --replace '/usr/include/libffi' '${lib.getDev libffi}/include' + ''; - nativeBuildInputs = [ - pkg-config - setuptools - ]; + nativeBuildInputs = [ + pkg-config + setuptools + ]; - buildInputs = [ - libffi - ]; + buildInputs = [ libffi ]; - propagatedBuildInputs = [ - pycparser - ]; + propagatedBuildInputs = [ pycparser ]; - # The tests use -Werror but with python3.6 clang detects some unreachable code. - env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang - "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing"; + # The tests use -Werror but with python3.6 clang detects some unreachable code. + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-unused-command-line-argument -Wno-unreachable-code -Wno-c++11-narrowing"; - doCheck = !stdenv.hostPlatform.isMusl; + doCheck = !stdenv.hostPlatform.isMusl; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - meta = with lib; { - changelog = "https://github.com/python-cffi/cffi/releases/tag/v${version}"; - description = "Foreign Function Interface for Python calling C code"; - downloadPage = "https://github.com/python-cffi/cffi"; - homepage = "https://cffi.readthedocs.org/"; - license = licenses.mit; - maintainers = teams.python.members; - }; -} + meta = with lib; { + changelog = "https://github.com/python-cffi/cffi/releases/tag/v${version}"; + description = "Foreign Function Interface for Python calling C code"; + downloadPage = "https://github.com/python-cffi/cffi"; + homepage = "https://cffi.readthedocs.org/"; + license = licenses.mit; + maintainers = teams.python.members; + }; + } diff --git a/pkgs/development/python-modules/cffsubr/default.nix b/pkgs/development/python-modules/cffsubr/default.nix index 324145639a3a..988af2d30245 100644 --- a/pkgs/development/python-modules/cffsubr/default.nix +++ b/pkgs/development/python-modules/cffsubr/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, fonttools -, pytestCheckHook -, setuptools-scm -, wheel +{ + stdenv, + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + fonttools, + pytestCheckHook, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - fonttools - ]; + propagatedBuildInputs = [ fonttools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "cffsubr" ]; diff --git a/pkgs/development/python-modules/cfgv/default.nix b/pkgs/development/python-modules/cfgv/default.nix index 0975d649a167..ecf28c56000d 100644 --- a/pkgs/development/python-modules/cfgv/default.nix +++ b/pkgs/development/python-modules/cfgv/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-P02j53dltwdrlUBG89AI+P2GkXYKTVrQNF15rZt58jw="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cfgv" - ]; + pythonImportsCheck = [ "cfgv" ]; meta = with lib; { description = "Validate configuration and produce human readable error messages"; diff --git a/pkgs/development/python-modules/cfn-flip/default.nix b/pkgs/development/python-modules/cfn-flip/default.nix index bca9fbd06fbb..e10440bd3d3e 100644 --- a/pkgs/development/python-modules/cfn-flip/default.nix +++ b/pkgs/development/python-modules/cfn-flip/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pyyaml -, six +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pyyaml, + six, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' sed -i "/--cov/d" tox.ini @@ -42,15 +41,16 @@ buildPythonPackage rec { "test_yaml_no_ordered_dict" ]; - pythonImportsCheck = [ - "cfn_flip" - ]; + pythonImportsCheck = [ "cfn_flip" ]; meta = with lib; { description = "Tool for converting AWS CloudFormation templates between JSON and YAML formats"; mainProgram = "cfn-flip"; homepage = "https://github.com/awslabs/aws-cfn-template-flip"; license = licenses.asl20; - maintainers = with maintainers; [ kamadorueda psyanticy ]; + maintainers = with maintainers; [ + kamadorueda + psyanticy + ]; }; } diff --git a/pkgs/development/python-modules/cfn-lint/default.nix b/pkgs/development/python-modules/cfn-lint/default.nix index e4561df27121..c2f90f4d52f2 100644 --- a/pkgs/development/python-modules/cfn-lint/default.nix +++ b/pkgs/development/python-modules/cfn-lint/default.nix @@ -1,21 +1,22 @@ -{ lib -, aws-sam-translator -, buildPythonPackage -, fetchFromGitHub -, jschema-to-python -, jsonpatch -, jsonschema -, junit-xml -, mock -, networkx -, pydot -, pytestCheckHook -, pythonOlder -, pyyaml -, regex -, sarif-om -, setuptools -, sympy +{ + lib, + aws-sam-translator, + buildPythonPackage, + fetchFromGitHub, + jschema-to-python, + jsonpatch, + jsonschema, + junit-xml, + mock, + networkx, + pydot, + pytestCheckHook, + pythonOlder, + pyyaml, + regex, + sarif-om, + setuptools, + sympy, }: buildPythonPackage rec { @@ -70,9 +71,7 @@ buildPythonPackage rec { "test_template_config" ]; - pythonImportsCheck = [ - "cfnlint" - ]; + pythonImportsCheck = [ "cfnlint" ]; meta = with lib; { description = "Checks cloudformation for practices and behaviour that could potentially be improved"; diff --git a/pkgs/development/python-modules/cfscrape/default.nix b/pkgs/development/python-modules/cfscrape/default.nix index 015250678703..9dba28f0cb37 100644 --- a/pkgs/development/python-modules/cfscrape/default.nix +++ b/pkgs/development/python-modules/cfscrape/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cftime/default.nix b/pkgs/development/python-modules/cftime/default.nix index 4291f805d2c0..f8689e4e6cef 100644 --- a/pkgs/development/python-modules/cftime/default.nix +++ b/pkgs/development/python-modules/cftime/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { numpy ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cftime" - ]; + pythonImportsCheck = [ "cftime" ]; meta = with lib; { description = "Time-handling functionality from netcdf4-python"; diff --git a/pkgs/development/python-modules/cgen/default.nix b/pkgs/development/python-modules/cgen/default.nix index d2a4878f240f..b0e85335e0b8 100644 --- a/pkgs/development/python-modules/cgen/default.nix +++ b/pkgs/development/python-modules/cgen/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytools -, numpy -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytools, + numpy, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cgroup-utils/default.nix b/pkgs/development/python-modules/cgroup-utils/default.nix index 4dfd3901ef7f..89b05b5f3408 100644 --- a/pkgs/development/python-modules/cgroup-utils/default.nix +++ b/pkgs/development/python-modules/cgroup-utils/default.nix @@ -1,11 +1,20 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pep8, nose }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pep8, + nose, +}: buildPythonPackage rec { version = "0.8"; format = "setuptools"; pname = "cgroup-utils"; - buildInputs = [ pep8 nose ]; + buildInputs = [ + pep8 + nose + ]; # Pep8 tests fail... doCheck = false; diff --git a/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix b/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix index 429467d65e30..2916b8e7d779 100644 --- a/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix +++ b/pkgs/development/python-modules/chacha20poly1305-reuseable/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, cython -, poetry-core -, setuptools + # build-system + cython, + poetry-core, + setuptools, -# propagates -, cryptography + # propagates + cryptography, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: let @@ -39,22 +40,16 @@ buildPythonPackage { setuptools ]; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; - pythonImportsCheck = [ - "chacha20poly1305_reuseable" - ]; + pythonImportsCheck = [ "chacha20poly1305_reuseable" ]; preCheck = '' substituteInPlace pyproject.toml \ --replace "--cov=chacha20poly1305_reuseable --cov-report=term-missing:skip-covered" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "ChaCha20Poly1305 that is reuseable for asyncio"; diff --git a/pkgs/development/python-modules/chacha20poly1305/default.nix b/pkgs/development/python-modules/chacha20poly1305/default.nix index d4f88b0a7349..5ced1c404532 100644 --- a/pkgs/development/python-modules/chacha20poly1305/default.nix +++ b/pkgs/development/python-modules/chacha20poly1305/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "chacha20poly1305" - ]; + pythonImportsCheck = [ "chacha20poly1305" ]; meta = with lib; { description = "Module that implements ChaCha20Poly1305"; diff --git a/pkgs/development/python-modules/chai/default.nix b/pkgs/development/python-modules/chai/default.nix index 7fb8e6d3489f..756a2ab0868b 100644 --- a/pkgs/development/python-modules/chai/default.nix +++ b/pkgs/development/python-modules/chai/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "chai"; diff --git a/pkgs/development/python-modules/chainer/default.nix b/pkgs/development/python-modules/chainer/default.nix index 1f5be76e2d21..1240d5ce2dc1 100644 --- a/pkgs/development/python-modules/chainer/default.nix +++ b/pkgs/development/python-modules/chainer/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, config -, cudaSupport ? config.cudaSupport -, cupy -, fetchFromGitHub -, filelock -, mock -, numpy -, protobuf -, pytestCheckHook -, pythonOlder -, six -, typing-extensions +{ + lib, + buildPythonPackage, + config, + cudaSupport ? config.cudaSupport, + cupy, + fetchFromGitHub, + filelock, + mock, + numpy, + protobuf, + pytestCheckHook, + pythonOlder, + six, + typing-extensions, }: buildPythonPackage rec { @@ -34,18 +35,14 @@ buildPythonPackage rec { protobuf six typing-extensions - ] ++ lib.optionals cudaSupport [ - cupy - ]; + ] ++ lib.optionals cudaSupport [ cupy ]; nativeCheckInputs = [ mock pytestCheckHook ]; - pytestFlagsArray = [ - "tests/chainer_tests/utils_tests" - ]; + pytestFlagsArray = [ "tests/chainer_tests/utils_tests" ]; preCheck = '' # cf. https://github.com/chainer/chainer/issues/8621 @@ -61,9 +58,7 @@ buildPythonPackage rec { "ideep" ]; - pythonImportsCheck = [ - "chainer" - ]; + pythonImportsCheck = [ "chainer" ]; meta = with lib; { description = "A flexible framework of neural networks for deep learning"; diff --git a/pkgs/development/python-modules/chainmap/default.nix b/pkgs/development/python-modules/chainmap/default.nix index 9b96d4bac94e..3babd3d41897 100644 --- a/pkgs/development/python-modules/chainmap/default.nix +++ b/pkgs/development/python-modules/chainmap/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "chainmap"; diff --git a/pkgs/development/python-modules/chainstream/default.nix b/pkgs/development/python-modules/chainstream/default.nix index 00c10a22e9ee..d5ee7775ac82 100644 --- a/pkgs/development/python-modules/chainstream/default.nix +++ b/pkgs/development/python-modules/chainstream/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, python3Packages }: +{ + lib, + fetchPypi, + python3Packages, +}: python3Packages.buildPythonPackage rec { pname = "chainstream"; @@ -13,9 +17,7 @@ python3Packages.buildPythonPackage rec { hash = "sha256-302P1BixEmkODm+qTLZwaWLktrlf9cEziQ/TIVfI07c="; }; - pythonImportsCheck = [ - "chainstream" - ]; + pythonImportsCheck = [ "chainstream" ]; meta = with lib; { description = "Chain I/O streams together into a single stream"; diff --git a/pkgs/development/python-modules/chalice/default.nix b/pkgs/development/python-modules/chalice/default.nix index 25b9998433a6..dec0cbca53cd 100644 --- a/pkgs/development/python-modules/chalice/default.nix +++ b/pkgs/development/python-modules/chalice/default.nix @@ -1,25 +1,26 @@ -{ lib -, attrs -, botocore -, buildPythonPackage -, click -, fetchFromGitHub -, hypothesis -, inquirer -, jmespath -, mock -, mypy-extensions -, pip -, pytest7CheckHook -, pythonOlder -, pyyaml -, requests -, setuptools -, six -, typing-extensions -, watchdog -, websocket-client -, wheel +{ + lib, + attrs, + botocore, + buildPythonPackage, + click, + fetchFromGitHub, + hypothesis, + inquirer, + jmespath, + mock, + mypy-extensions, + pip, + pytest7CheckHook, + pythonOlder, + pyyaml, + requests, + setuptools, + six, + typing-extensions, + watchdog, + websocket-client, + wheel, }: buildPythonPackage rec { @@ -96,9 +97,7 @@ buildPythonPackage rec { "test_both_tar_bz2" ]; - pythonImportsCheck = [ - "chalice" - ]; + pythonImportsCheck = [ "chalice" ]; meta = with lib; { description = "Python Serverless Microframework for AWS"; diff --git a/pkgs/development/python-modules/chameleon/default.nix b/pkgs/development/python-modules/chameleon/default.nix index 3c97002f5dcd..fda91a8259dd 100644 --- a/pkgs/development/python-modules/chameleon/default.nix +++ b/pkgs/development/python-modules/chameleon/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, importlib-metadata -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + importlib-metadata, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-SVLKT6JeFUpF7gYkq3B7Lm9b9SG2qa6Ekp8i8xM0Xh0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "chameleon" - ]; + pythonImportsCheck = [ "chameleon" ]; meta = with lib; { changelog = "https://github.com/malthe/chameleon/blob/${version}/CHANGES.rst"; @@ -43,5 +36,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/channels-redis/default.nix b/pkgs/development/python-modules/channels-redis/default.nix index a495b389603d..73538fcdce4c 100644 --- a/pkgs/development/python-modules/channels-redis/default.nix +++ b/pkgs/development/python-modules/channels-redis/default.nix @@ -1,14 +1,15 @@ -{ lib -, aioredis -, asgiref -, buildPythonPackage -, channels -, cryptography -, fetchFromGitHub -, hiredis -, msgpack -, pythonOlder -, redis +{ + lib, + aioredis, + asgiref, + buildPythonPackage, + channels, + cryptography, + fetchFromGitHub, + hiredis, + msgpack, + pythonOlder, + redis, }: buildPythonPackage rec { @@ -38,18 +39,14 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - cryptography = [ - cryptography - ]; + cryptography = [ cryptography ]; }; # Fails with : ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 6379) # (even with a local Redis instance running) doCheck = false; - pythonImportsCheck = [ - "channels_redis" - ]; + pythonImportsCheck = [ "channels_redis" ]; meta = with lib; { description = "Redis-backed ASGI channel layer implementation"; diff --git a/pkgs/development/python-modules/channels/default.nix b/pkgs/development/python-modules/channels/default.nix index 083a79284f24..f7a204f1f3e2 100644 --- a/pkgs/development/python-modules/channels/default.nix +++ b/pkgs/development/python-modules/channels/default.nix @@ -1,14 +1,15 @@ -{ lib -, asgiref -, buildPythonPackage -, daphne -, django -, fetchFromGitHub -, async-timeout -, pytest-asyncio -, pytest-django -, pytestCheckHook -, pythonOlder +{ + lib, + asgiref, + buildPythonPackage, + daphne, + django, + fetchFromGitHub, + async-timeout, + pytest-asyncio, + pytest-django, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - daphne = [ - daphne - ]; + daphne = [ daphne ]; }; nativeCheckInputs = [ @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.daphne; - pythonImportsCheck = [ - "channels" - ]; + pythonImportsCheck = [ "channels" ]; meta = with lib; { description = "Brings event-driven capabilities to Django with a channel system"; diff --git a/pkgs/development/python-modules/characteristic/default.nix b/pkgs/development/python-modules/characteristic/default.nix index d63c247b300b..93e18a068244 100644 --- a/pkgs/development/python-modules/characteristic/default.nix +++ b/pkgs/development/python-modules/characteristic/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchPypi -, pytest +{ + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/chardet/default.nix b/pkgs/development/python-modules/chardet/default.nix index f0170eb641e3..c4759f316d8e 100644 --- a/pkgs/development/python-modules/chardet/default.nix +++ b/pkgs/development/python-modules/chardet/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-Gztv9HmoxBS8P6LAhSmVaVxKAm3NbQYzst0JLKOcHPc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/charset-normalizer/default.nix b/pkgs/development/python-modules/charset-normalizer/default.nix index 2a6a13dc0bf8..90abf29a7df7 100644 --- a/pkgs/development/python-modules/charset-normalizer/default.nix +++ b/pkgs/development/python-modules/charset-normalizer/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,15 +27,13 @@ buildPythonPackage rec { --replace " --cov=charset_normalizer --cov-report=term-missing" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "charset_normalizer" - ]; + pythonImportsCheck = [ "charset_normalizer" ]; - passthru.tests = { inherit aiohttp requests; }; + passthru.tests = { + inherit aiohttp requests; + }; meta = with lib; { description = "Python module for encoding and language detection"; diff --git a/pkgs/development/python-modules/chart-studio/default.nix b/pkgs/development/python-modules/chart-studio/default.nix index b61091ca69a9..542de4e844ca 100644 --- a/pkgs/development/python-modules/chart-studio/default.nix +++ b/pkgs/development/python-modules/chart-studio/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, nose -, plotly -, pytest -, requests -, retrying -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + nose, + plotly, + pytest, + requests, + retrying, + setuptools, + six, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/packages/python/chart-studio"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ plotly @@ -37,7 +36,11 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ mock nose pytest ]; + nativeCheckInputs = [ + mock + nose + pytest + ]; # most tests talk to a service checkPhase = '' HOME=$TMPDIR pytest chart_studio/tests/test_core chart_studio/tests/test_plot_ly/test_api diff --git a/pkgs/development/python-modules/chat-downloader/default.nix b/pkgs/development/python-modules/chat-downloader/default.nix index 32bf0a40da34..fd694101a5ae 100644 --- a/pkgs/development/python-modules/chat-downloader/default.nix +++ b/pkgs/development/python-modules/chat-downloader/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, isodate -, docstring-parser -, colorlog -, websocket-client -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + isodate, + docstring-parser, + colorlog, + websocket-client, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/check-manifest/default.nix b/pkgs/development/python-modules/check-manifest/default.nix index 1533329d5572..533c05177689 100644 --- a/pkgs/development/python-modules/check-manifest/default.nix +++ b/pkgs/development/python-modules/check-manifest/default.nix @@ -1,13 +1,14 @@ -{ lib -, breezy -, build -, buildPythonPackage -, fetchPypi -, git -, pep517 -, pytestCheckHook -, tomli -, pythonOlder +{ + lib, + breezy, + build, + buildPythonPackage, + fetchPypi, + git, + pep517, + pytestCheckHook, + tomli, + pythonOlder, }: buildPythonPackage rec { @@ -25,27 +26,21 @@ buildPythonPackage rec { propagatedBuildInputs = [ build pep517 - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ git pytestCheckHook ]; - checkInputs = [ - breezy - ]; + checkInputs = [ breezy ]; disabledTests = [ # Test wants to setup a venv "test_build_sdist_pep517_isolated" ]; - pythonImportsCheck = [ - "check_manifest" - ]; + pythonImportsCheck = [ "check_manifest" ]; meta = with lib; { description = "Check MANIFEST.in in a Python source package for completeness"; diff --git a/pkgs/development/python-modules/checkdmarc/default.nix b/pkgs/development/python-modules/checkdmarc/default.nix index c39b70407931..d7eb7a9c9afb 100644 --- a/pkgs/development/python-modules/checkdmarc/default.nix +++ b/pkgs/development/python-modules/checkdmarc/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cryptography -, dnspython -, expiringdict -, fetchFromGitHub -, hatchling -, publicsuffixlist -, pyleri -, iana-etc -, pytestCheckHook -, pythonOlder -, requests -, timeout-decorator +{ + lib, + buildPythonPackage, + cryptography, + dnspython, + expiringdict, + fetchFromGitHub, + hatchling, + publicsuffixlist, + pyleri, + iana-etc, + pytestCheckHook, + pythonOlder, + requests, + timeout-decorator, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-NNB5dYQzzdNapjP4mtpCW08BzfZ+FFRESUtpxCOzrdk="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ cryptography @@ -42,17 +41,11 @@ buildPythonPackage rec { timeout-decorator ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "checkdmarc" - ]; + pythonImportsCheck = [ "checkdmarc" ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; disabledTests = [ # Tests require network access @@ -73,4 +66,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fab ]; }; } - diff --git a/pkgs/development/python-modules/checksumdir/default.nix b/pkgs/development/python-modules/checksumdir/default.nix index 78a24bb2950a..ae54695e8a54 100644 --- a/pkgs/development/python-modules/checksumdir/default.nix +++ b/pkgs/development/python-modules/checksumdir/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-PO8sRGFQ1Dt/UYJuFH6Y3EaQVaS+4DJlOQtvF8ZmBWQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = false; # Package does not contain tests pythonImportsCheck = [ "checksumdir" ]; diff --git a/pkgs/development/python-modules/cheetah3/default.nix b/pkgs/development/python-modules/cheetah3/default.nix index bb1a3da46cf5..780e8a5fa26e 100644 --- a/pkgs/development/python-modules/cheetah3/default.nix +++ b/pkgs/development/python-modules/cheetah3/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { doCheck = false; # Circular dependency - pythonImportsCheck = [ - "Cheetah" - ]; + pythonImportsCheck = [ "Cheetah" ]; meta = with lib; { description = "A template engine and code generation tool"; diff --git a/pkgs/development/python-modules/cheroot/default.nix b/pkgs/development/python-modules/cheroot/default.nix index 72a85ffab1c2..b4d7daab17aa 100644 --- a/pkgs/development/python-modules/cheroot/default.nix +++ b/pkgs/development/python-modules/cheroot/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, jaraco-functools -, jaraco-text -, more-itertools -, portend -, pypytools -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-toolbelt -, requests-unixsocket -, setuptools-scm -, six +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + jaraco-functools, + jaraco-text, + more-itertools, + portend, + pypytools, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-toolbelt, + requests-unixsocket, + setuptools-scm, + six, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { --replace "setuptools_scm_git_archive>=1.0" "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ jaraco-functools @@ -72,14 +71,16 @@ buildPythonPackage rec { rm pytest.ini ''; - disabledTests = [ - "tls" # touches network - "peercreds_unix_sock" # test urls no longer allowed - ] ++ lib.optionals stdenv.isDarwin [ - "http_over_https_error" - "bind_addr_unix" - "test_ssl_env" - ]; + disabledTests = + [ + "tls" # touches network + "peercreds_unix_sock" # test urls no longer allowed + ] + ++ lib.optionals stdenv.isDarwin [ + "http_over_https_error" + "bind_addr_unix" + "test_ssl_env" + ]; disabledTestPaths = [ # avoid attempting to use 3 packages not available on nixpkgs @@ -89,9 +90,7 @@ buildPythonPackage rec { "cheroot/test/test_ssl.py" ]; - pythonImportsCheck = [ - "cheroot" - ]; + pythonImportsCheck = [ "cheroot" ]; # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/cherrypy-cors/default.nix b/pkgs/development/python-modules/cherrypy-cors/default.nix index 72af66bbef75..a151c9d8fd15 100644 --- a/pkgs/development/python-modules/cherrypy-cors/default.nix +++ b/pkgs/development/python-modules/cherrypy-cors/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, setuptools-scm -, httpagentparser -, cherrypy -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + setuptools-scm, + httpagentparser, + cherrypy, + pytestCheckHook, }: buildPythonPackage rec { pname = "cherrypy-cors"; @@ -32,9 +33,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "cherrypy_cors" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "CORS support for CherryPy"; diff --git a/pkgs/development/python-modules/cherrypy/default.nix b/pkgs/development/python-modules/cherrypy/default.nix index 6d1fffbdedc9..ab0986a7dcab 100644 --- a/pkgs/development/python-modules/cherrypy/default.nix +++ b/pkgs/development/python-modules/cherrypy/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, buildPythonPackage -, cheroot -, fetchpatch -, fetchPypi -, jaraco-collections -, more-itertools -, objgraph -, path -, portend -, pyopenssl -, pytest-forked -, pytest-services -, pytestCheckHook -, python-memcached -, pythonAtLeast -, pythonOlder -, requests-toolbelt -, routes -, setuptools-scm -, simplejson -, zc-lockfile +{ + lib, + stdenv, + buildPythonPackage, + cheroot, + fetchpatch, + fetchPypi, + jaraco-collections, + more-itertools, + objgraph, + path, + portend, + pyopenssl, + pytest-forked, + pytest-services, + pytestCheckHook, + python-memcached, + pythonAtLeast, + pythonOlder, + requests-toolbelt, + routes, + setuptools-scm, + simplejson, + zc-lockfile, }: buildPythonPackage rec { @@ -56,9 +57,7 @@ buildPythonPackage rec { sed -i "/--cov/d" pytest.ini ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ cheroot @@ -86,45 +85,42 @@ buildPythonPackage rec { "ignore::DeprecationWarning" ]; - disabledTests = [ - # Keyboard interrupt ends test suite run - "KeyboardInterrupt" - # daemonize and autoreload tests have issue with sockets within sandbox - "daemonize" - "Autoreload" + disabledTests = + [ + # Keyboard interrupt ends test suite run + "KeyboardInterrupt" + # daemonize and autoreload tests have issue with sockets within sandbox + "daemonize" + "Autoreload" - "test_antistampede" - "test_file_stream" - "test_basic_request" - "test_3_Redirect" - "test_4_File_deletion" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - "testErrorHandling" - "testHookErrors" - "test_HTTP10_KeepAlive" - "test_No_Message_Body" - "test_HTTP11_Timeout" - "testGzip" - "test_malformed_header" - "test_no_content_length" - "test_post_filename_with_special_characters" - "test_post_multipart" - "test_iterator" - "test_1_Ram_Concurrency" - "test_2_File_Concurrency" - ] ++ lib.optionals stdenv.isDarwin [ - "test_block" - ]; + "test_antistampede" + "test_file_stream" + "test_basic_request" + "test_3_Redirect" + "test_4_File_deletion" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + "testErrorHandling" + "testHookErrors" + "test_HTTP10_KeepAlive" + "test_No_Message_Body" + "test_HTTP11_Timeout" + "testGzip" + "test_malformed_header" + "test_no_content_length" + "test_post_filename_with_special_characters" + "test_post_multipart" + "test_iterator" + "test_1_Ram_Concurrency" + "test_2_File_Concurrency" + ] + ++ lib.optionals stdenv.isDarwin [ "test_block" ]; - disabledTestPaths = lib.optionals stdenv.isDarwin [ - "cherrypy/test/test_config_server.py" - ]; + disabledTestPaths = lib.optionals stdenv.isDarwin [ "cherrypy/test/test_config_server.py" ]; __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "cherrypy" - ]; + pythonImportsCheck = [ "cherrypy" ]; passthru.optional-dependencies = { json = [ simplejson ]; @@ -132,7 +128,9 @@ buildPythonPackage rec { routes_dispatcher = [ routes ]; ssl = [ pyopenssl ]; # not packaged yet - xcgi = [ /* flup */ ]; + xcgi = [ + # flup + ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/chess/default.nix b/pkgs/development/python-modules/chess/default.nix index 5e32d74b4379..14b08683b2fd 100644 --- a/pkgs/development/python-modules/chess/default.nix +++ b/pkgs/development/python-modules/chess/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-jfPg1W9Qp0DlAbMXaFqZ6Ri2zMOW6EKUHwi7Azn/yl0="; }; - pythonImportsCheck = [ - "chess" - ]; + pythonImportsCheck = [ "chess" ]; checkPhase = '' ${python.interpreter} ./test.py -v diff --git a/pkgs/development/python-modules/chevron/default.nix b/pkgs/development/python-modules/chevron/default.nix index 6a122ecf31e3..442168ca1b84 100644 --- a/pkgs/development/python-modules/chevron/default.nix +++ b/pkgs/development/python-modules/chevron/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/chex/default.nix b/pkgs/development/python-modules/chex/default.nix index 08ce0916c25e..b9271d63d29a 100644 --- a/pkgs/development/python-modules/chex/default.nix +++ b/pkgs/development/python-modules/chex/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, absl-py -, cloudpickle -, dm-tree -, jax -, jaxlib -, numpy -, pytestCheckHook -, toolz -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + absl-py, + cloudpickle, + dm-tree, + jax, + jaxlib, + numpy, + pytestCheckHook, + toolz, + typing-extensions, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-Z5Ns4fG5pC99I4xdGjDMKX6YZpTtd1y0TWcIOtr7dug="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ absl-py @@ -41,9 +40,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "chex" - ]; + pythonImportsCheck = [ "chex" ]; nativeCheckInputs = [ cloudpickle diff --git a/pkgs/development/python-modules/chirpstack-api/default.nix b/pkgs/development/python-modules/chirpstack-api/default.nix index 141a5f349b70..38ea1d8739cf 100644 --- a/pkgs/development/python-modules/chirpstack-api/default.nix +++ b/pkgs/development/python-modules/chirpstack-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, google-api-core -, grpcio -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + google-api-core, + grpcio, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "chirpstack_api" - ]; + pythonImportsCheck = [ "chirpstack_api" ]; meta = with lib; { description = "ChirpStack gRPC API message and service wrappers for Python"; diff --git a/pkgs/development/python-modules/chispa/default.nix b/pkgs/development/python-modules/chispa/default.nix index 37e804c71894..980f02b4229d 100644 --- a/pkgs/development/python-modules/chispa/default.nix +++ b/pkgs/development/python-modules/chispa/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-r3/Uae/Bu/+ZpWt19jetfIRpew1hBB24WWQRJIcYqFs="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; # Tests require a spark installation doCheck = false; diff --git a/pkgs/development/python-modules/chroma-hnswlib/default.nix b/pkgs/development/python-modules/chroma-hnswlib/default.nix index 31f884e53ba8..845f2064f1cd 100644 --- a/pkgs/development/python-modules/chroma-hnswlib/default.nix +++ b/pkgs/development/python-modules/chroma-hnswlib/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pybind11 -, setuptools -, wheel -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pybind11, + setuptools, + wheel, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "hnswlib" - ]; + pythonImportsCheck = [ "hnswlib" ]; meta = with lib; { description = "Header-only C++/python library for fast approximate nearest neighbors"; diff --git a/pkgs/development/python-modules/chromaprint/default.nix b/pkgs/development/python-modules/chromaprint/default.nix index b439a4da79a5..bdf78d43b468 100644 --- a/pkgs/development/python-modules/chromaprint/default.nix +++ b/pkgs/development/python-modules/chromaprint/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, m2r +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + m2r, }: buildPythonPackage rec { @@ -28,6 +29,9 @@ buildPythonPackage rec { description = "Facilitate effortless color terminal output"; homepage = "https://pypi.org/project/${pname}/"; license = licenses.mit; - maintainers = with maintainers; [ dschrempf peterhoeg ]; + maintainers = with maintainers; [ + dschrempf + peterhoeg + ]; }; } diff --git a/pkgs/development/python-modules/ci-info/default.nix b/pkgs/development/python-modules/ci-info/default.nix index 8c2fc9c4ff3b..4c603940a144 100644 --- a/pkgs/development/python-modules/ci-info/default.nix +++ b/pkgs/development/python-modules/ci-info/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, isPy27, fetchPypi, pytest, pytestCheckHook }: +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + pytest, + pytestCheckHook, +}: buildPythonPackage rec { version = "0.3.0"; @@ -12,9 +19,12 @@ buildPythonPackage rec { hash = "sha256-H9UMvUAfKa3/7rGLBIniMtFqwadFisa8MW3qtq5TX7A="; }; - nativeCheckInputs = [ pytest pytestCheckHook ]; + nativeCheckInputs = [ + pytest + pytestCheckHook + ]; - doCheck = false; # both tests access network + doCheck = false; # both tests access network pythonImportsCheck = [ "ci_info" ]; diff --git a/pkgs/development/python-modules/ci-py/default.nix b/pkgs/development/python-modules/ci-py/default.nix index b7e6c5ff8060..9abd0d04b29b 100644 --- a/pkgs/development/python-modules/ci-py/default.nix +++ b/pkgs/development/python-modules/ci-py/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { --replace "'pytest-runner', " "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ci" - ]; + pythonImportsCheck = [ "ci" ]; meta = with lib; { description = "Library for working with Continuous Integration services"; diff --git a/pkgs/development/python-modules/cinemagoer/default.nix b/pkgs/development/python-modules/cinemagoer/default.nix index 403ee6dafb61..f9cfb30984c6 100644 --- a/pkgs/development/python-modules/cinemagoer/default.nix +++ b/pkgs/development/python-modules/cinemagoer/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + sqlalchemy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/circuit-webhook/default.nix b/pkgs/development/python-modules/circuit-webhook/default.nix index 895c6803142e..cca4277525b2 100644 --- a/pkgs/development/python-modules/circuit-webhook/default.nix +++ b/pkgs/development/python-modules/circuit-webhook/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "circuit_webhook" - ]; + pythonImportsCheck = [ "circuit_webhook" ]; meta = with lib; { description = "Module for Unify Circuit API webhooks"; diff --git a/pkgs/development/python-modules/circuitbreaker/default.nix b/pkgs/development/python-modules/circuitbreaker/default.nix index 9218d82847cc..da66b2b45108 100644 --- a/pkgs/development/python-modules/circuitbreaker/default.nix +++ b/pkgs/development/python-modules/circuitbreaker/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-asyncio -, pytest-mock -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-asyncio, + pytest-mock, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { pytest-mock ]; - pythonImportsCheck = [ - "circuitbreaker" - ]; + pythonImportsCheck = [ "circuitbreaker" ]; meta = with lib; { description = "Python Circuit Breaker implementation"; diff --git a/pkgs/development/python-modules/circus/default.nix b/pkgs/development/python-modules/circus/default.nix index 95d29a4401bc..7445dd1a6465 100644 --- a/pkgs/development/python-modules/circus/default.nix +++ b/pkgs/development/python-modules/circus/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, flit-core -, psutil -, pytestCheckHook -, pyyaml -, pyzmq -, tornado +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + flit-core, + psutil, + pytestCheckHook, + pyyaml, + pyzmq, + tornado, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-GTzoIk4GjO1mckz0gxBvtmdLUaV1g6waDn7Xp+6Mcas="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ psutil diff --git a/pkgs/development/python-modules/cirq-aqt/default.nix b/pkgs/development/python-modules/cirq-aqt/default.nix index bac507091feb..1bead28588e3 100644 --- a/pkgs/development/python-modules/cirq-aqt/default.nix +++ b/pkgs/development/python-modules/cirq-aqt/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, cirq-core -, requests -, pytestCheckHook +{ + buildPythonPackage, + cirq-core, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # cirq's importlib hook doesn't work here #pythonImportsCheck = [ "cirq_aqt" ]; diff --git a/pkgs/development/python-modules/cirq-core/default.nix b/pkgs/development/python-modules/cirq-core/default.nix index 0563c2f1a71c..5bc7a634de1a 100644 --- a/pkgs/development/python-modules/cirq-core/default.nix +++ b/pkgs/development/python-modules/cirq-core/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, duet -, matplotlib -, networkx -, numpy -, pandas -, requests -, scipy -, sortedcontainers -, sympy -, tqdm -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + duet, + matplotlib, + networkx, + numpy, + pandas, + requests, + scipy, + sortedcontainers, + sympy, + tqdm, + typing-extensions, # Contrib requirements -, withContribRequires ? false -, autoray ? null -, opt-einsum -, ply -, pylatex ? null -, pyquil ? null -, quimb ? null + withContribRequires ? false, + autoray ? null, + opt-einsum, + ply, + pylatex ? null, + pyquil ? null, + quimb ? null, # test inputs -, pytestCheckHook -, freezegun -, pytest-asyncio + pytestCheckHook, + freezegun, + pytest-asyncio, }: buildPythonPackage rec { @@ -47,28 +48,30 @@ buildPythonPackage rec { postPatch = '' substituteInPlace requirements.txt \ --replace "matplotlib~=3.0" "matplotlib" - ''; + ''; - propagatedBuildInputs = [ - duet - matplotlib - networkx - numpy - pandas - requests - scipy - sortedcontainers - sympy - tqdm - typing-extensions - ] ++ lib.optionals withContribRequires [ - autoray - opt-einsum - ply - pylatex - pyquil - quimb - ]; + propagatedBuildInputs = + [ + duet + matplotlib + networkx + numpy + pandas + requests + scipy + sortedcontainers + sympy + tqdm + typing-extensions + ] + ++ lib.optionals withContribRequires [ + autoray + opt-einsum + ply + pylatex + pyquil + quimb + ]; nativeCheckInputs = [ pytestCheckHook @@ -93,6 +96,9 @@ buildPythonPackage rec { homepage = "https://github.com/quantumlib/cirq"; changelog = "https://github.com/quantumlib/Cirq/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ drewrisinger fab ]; + maintainers = with maintainers; [ + drewrisinger + fab + ]; }; } diff --git a/pkgs/development/python-modules/cirq-ft/default.nix b/pkgs/development/python-modules/cirq-ft/default.nix index a0fbbc40da1f..6ee4c28c8879 100644 --- a/pkgs/development/python-modules/cirq-ft/default.nix +++ b/pkgs/development/python-modules/cirq-ft/default.nix @@ -1,13 +1,14 @@ -{ attrs -, buildPythonPackage -, cachetools -, cirq-core -, ipython -, ipywidgets -, nbconvert -, nbformat -, pytestCheckHook -, setuptools +{ + attrs, + buildPythonPackage, + cachetools, + cirq-core, + ipython, + ipywidgets, + nbconvert, + nbformat, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/${pname}"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs @@ -43,5 +42,4 @@ buildPythonPackage rec { # cirq's importlib hook doesn't work here #pythonImportsCheck = [ "cirq_ft" ]; - } diff --git a/pkgs/development/python-modules/cirq-google/default.nix b/pkgs/development/python-modules/cirq-google/default.nix index c2d36a4f796d..e8e0366b78d9 100644 --- a/pkgs/development/python-modules/cirq-google/default.nix +++ b/pkgs/development/python-modules/cirq-google/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, cirq-core -, freezegun -, google-api-core -, protobuf -, pytestCheckHook -, pythonRelaxDepsHook -, setuptools +{ + buildPythonPackage, + cirq-core, + freezegun, + google-api-core, + protobuf, + pytestCheckHook, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -47,5 +48,4 @@ buildPythonPackage rec { # Calibration issue "test_xeb_to_calibration_layer" ]; - } diff --git a/pkgs/development/python-modules/cirq-ionq/default.nix b/pkgs/development/python-modules/cirq-ionq/default.nix index fdad606eb069..b4fa84636623 100644 --- a/pkgs/development/python-modules/cirq-ionq/default.nix +++ b/pkgs/development/python-modules/cirq-ionq/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, cirq-core -, requests -, pytestCheckHook +{ + buildPythonPackage, + cirq-core, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # cirq's importlib hook doesn't work here #pythonImportsCheck = [ "cirq_ionq" ]; diff --git a/pkgs/development/python-modules/cirq-pasqal/default.nix b/pkgs/development/python-modules/cirq-pasqal/default.nix index 7be607fbd74d..ea13cb2cc4da 100644 --- a/pkgs/development/python-modules/cirq-pasqal/default.nix +++ b/pkgs/development/python-modules/cirq-pasqal/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, cirq-core -, requests -, pytestCheckHook +{ + buildPythonPackage, + cirq-core, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # cirq's importlib hook doesn't work here #pythonImportsCheck = [ "cirq_pasqal" ]; diff --git a/pkgs/development/python-modules/cirq-rigetti/default.nix b/pkgs/development/python-modules/cirq-rigetti/default.nix index 2189beb9f880..54f0907e7006 100644 --- a/pkgs/development/python-modules/cirq-rigetti/default.nix +++ b/pkgs/development/python-modules/cirq-rigetti/default.nix @@ -1,26 +1,27 @@ -{ buildPythonPackage -, cirq-core -, requests -, pytestCheckHook -, attrs -, certifi -, h11 -, httpcore -, idna -, httpx -, iso8601 -, pydantic -, pyjwt -, pyquil -, python-dateutil -, pythonOlder -, qcs-api-client -, retrying -, rfc3339 -, rfc3986 -, six -, sniffio -, toml +{ + buildPythonPackage, + cirq-core, + requests, + pytestCheckHook, + attrs, + certifi, + h11, + httpcore, + idna, + httpx, + iso8601, + pydantic, + pyjwt, + pyquil, + python-dateutil, + pythonOlder, + qcs-api-client, + retrying, + rfc3339, + rfc3986, + six, + sniffio, + toml, }: buildPythonPackage rec { @@ -74,9 +75,7 @@ buildPythonPackage rec { toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # No need to test the version number diff --git a/pkgs/development/python-modules/cirq-web/default.nix b/pkgs/development/python-modules/cirq-web/default.nix index 43f18ef282e1..95af99b1360b 100644 --- a/pkgs/development/python-modules/cirq-web/default.nix +++ b/pkgs/development/python-modules/cirq-web/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, cirq-core -, pytestCheckHook +{ + buildPythonPackage, + cirq-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -10,13 +11,9 @@ buildPythonPackage rec { sourceRoot = "${src.name}/${pname}"; - propagatedBuildInputs = [ - cirq-core - ]; + propagatedBuildInputs = [ cirq-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # cirq's importlib hook doesn't work here #pythonImportsCheck = [ "cirq_web" ]; diff --git a/pkgs/development/python-modules/cirq/default.nix b/pkgs/development/python-modules/cirq/default.nix index 200f19e39f6f..d640655c4cd8 100644 --- a/pkgs/development/python-modules/cirq/default.nix +++ b/pkgs/development/python-modules/cirq/default.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, cirq-aqt -, cirq-core -, cirq-ft -, cirq-google -, cirq-ionq -, cirq-pasqal -, cirq-rigetti -, cirq-web -, pytestCheckHook +{ + buildPythonPackage, + cirq-aqt, + cirq-core, + cirq-ft, + cirq-google, + cirq-ionq, + cirq-pasqal, + cirq-rigetti, + cirq-web, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { ]; # pythonImportsCheck = [ "cirq" "cirq.Circuit" ]; # cirq's importlib hook doesn't work here - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Don't run submodule or development tool tests disabledTestPaths = [ @@ -43,5 +42,4 @@ buildPythonPackage rec { "cirq-web" "dev_tools" ]; - } diff --git a/pkgs/development/python-modules/ciscoconfparse/default.nix b/pkgs/development/python-modules/ciscoconfparse/default.nix index 33bd43c7043b..991153a573ae 100644 --- a/pkgs/development/python-modules/ciscoconfparse/default.nix +++ b/pkgs/development/python-modules/ciscoconfparse/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, deprecat -, dnspython -, fetchFromGitHub -, loguru -, passlib -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, toml +{ + lib, + buildPythonPackage, + deprecat, + dnspython, + fetchFromGitHub, + loguru, + passlib, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + toml, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-vL/CQdYcOP356EyRToviWylP1EBtxmeov6qkhfQNZ2Y="; }; - pythonRelaxDeps = [ - "loguru" - ]; + pythonRelaxDeps = [ "loguru" ]; postPatch = '' # The line below is in the [build-system] section, which is invalid and @@ -55,13 +54,9 @@ buildPythonPackage rec { toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = [ - "tests/parse_test.py" - ]; + disabledTestPaths = [ "tests/parse_test.py" ]; disabledTests = [ # Tests require network access @@ -71,9 +66,7 @@ buildPythonPackage rec { "testParse_valid_filepath" ]; - pythonImportsCheck = [ - "ciscoconfparse" - ]; + pythonImportsCheck = [ "ciscoconfparse" ]; meta = with lib; { description = "Module to parse, audit, query, build, and modify Cisco IOS-style configurations"; diff --git a/pkgs/development/python-modules/ciscomobilityexpress/default.nix b/pkgs/development/python-modules/ciscomobilityexpress/default.nix index c24873bf3174..44d604e35132 100644 --- a/pkgs/development/python-modules/ciscomobilityexpress/default.nix +++ b/pkgs/development/python-modules/ciscomobilityexpress/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, python +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + python, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { ${python.interpreter} -m unittest ''; - pythonImportsCheck = [ - "ciscomobilityexpress" - ]; + pythonImportsCheck = [ "ciscomobilityexpress" ]; meta = with lib; { description = "Module to interact with Cisco Mobility Express APIs to fetch connected devices"; diff --git a/pkgs/development/python-modules/ciso8601/default.nix b/pkgs/development/python-modules/ciso8601/default.nix index e245e736ce28..e0ad1f091260 100644 --- a/pkgs/development/python-modules/ciso8601/default.nix +++ b/pkgs/development/python-modules/ciso8601/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pytz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { hash = "sha256-KkMa1Rr3Z+5VnZfj25LDYpTfRyKqWA9u0vq6dZpwEy0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook pytz ]; - pytestFlagsArray = [ - "tests/tests.py" - ]; + pytestFlagsArray = [ "tests/tests.py" ]; pythonImportsCheck = [ "ciso8601" ]; diff --git a/pkgs/development/python-modules/citeproc-py/default.nix b/pkgs/development/python-modules/citeproc-py/default.nix index 264b0f3b3481..3cdb2e6bafe2 100644 --- a/pkgs/development/python-modules/citeproc-py/default.nix +++ b/pkgs/development/python-modules/citeproc-py/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, git -, lxml -, rnc2rng +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + git, + lxml, + rnc2rng, }: buildPythonPackage rec { @@ -21,9 +22,12 @@ buildPythonPackage rec { propagatedBuildInputs = [ lxml ]; - nativeCheckInputs = [ nose git ]; + nativeCheckInputs = [ + nose + git + ]; checkPhase = "nosetests tests"; - doCheck = false; # seems to want a Git repository, but fetchgit with leaveDotGit also fails + doCheck = false; # seems to want a Git repository, but fetchgit with leaveDotGit also fails pythonImportsCheck = [ "citeproc" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/cjkwrap/default.nix b/pkgs/development/python-modules/cjkwrap/default.nix index 83f487a2af14..811e0f6eeca0 100644 --- a/pkgs/development/python-modules/cjkwrap/default.nix +++ b/pkgs/development/python-modules/cjkwrap/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "cjkwrap"; diff --git a/pkgs/development/python-modules/ckcc-protocol/default.nix b/pkgs/development/python-modules/ckcc-protocol/default.nix index 84f63752e2ae..a8563a9ce085 100644 --- a/pkgs/development/python-modules/ckcc-protocol/default.nix +++ b/pkgs/development/python-modules/ckcc-protocol/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, ecdsa -, hidapi -, fetchPypi -, pyaes -, pythonOlder +{ + lib, + buildPythonPackage, + click, + ecdsa, + hidapi, + fetchPypi, + pyaes, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "ckcc" - ]; + pythonImportsCheck = [ "ckcc" ]; meta = with lib; { description = "Communicate with your Coldcard using Python"; diff --git a/pkgs/development/python-modules/clarabel/default.nix b/pkgs/development/python-modules/clarabel/default.nix index 7e098000002d..7dbd7a352b08 100644 --- a/pkgs/development/python-modules/clarabel/default.nix +++ b/pkgs/development/python-modules/clarabel/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, rustPlatform -, libiconv -, numpy -, scipy -, nix-update-script +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + rustPlatform, + libiconv, + numpy, + scipy, + nix-update-script, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { scipy ]; - pythonImportsCheck = [ - "clarabel" - ]; + pythonImportsCheck = [ "clarabel" ]; # no tests but run the same examples as .github/workflows/pypi.yaml checkPhase = '' diff --git a/pkgs/development/python-modules/class-doc/default.nix b/pkgs/development/python-modules/class-doc/default.nix index 432df1f674ee..32d69f092760 100644 --- a/pkgs/development/python-modules/class-doc/default.nix +++ b/pkgs/development/python-modules/class-doc/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, more-itertools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + more-itertools, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,21 +29,13 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - more-itertools - ]; + propagatedBuildInputs = [ more-itertools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "class_doc" - ]; + pythonImportsCheck = [ "class_doc" ]; meta = with lib; { description = "Extract attributes docstrings defined in various ways"; diff --git a/pkgs/development/python-modules/classify-imports/default.nix b/pkgs/development/python-modules/classify-imports/default.nix index cdbc262af7dd..53eaf1745231 100644 --- a/pkgs/development/python-modules/classify-imports/default.nix +++ b/pkgs/development/python-modules/classify-imports/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-f5wZfisKz9WGdq6u0rd/zg2CfMwWvQeR8xZQNbD7KfU="; }; - pythonImportsCheck = [ - "classify_imports" - ]; + pythonImportsCheck = [ "classify_imports" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Utilities for refactoring imports in python-like syntax"; diff --git a/pkgs/development/python-modules/clean-fid/default.nix b/pkgs/development/python-modules/clean-fid/default.nix index 7a2f328185e4..d88bbcc7105e 100644 --- a/pkgs/development/python-modules/clean-fid/default.nix +++ b/pkgs/development/python-modules/clean-fid/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# dependencies -, numpy -, pillow -, requests -, scipy -, torch -, torchvision -, tqdm + # dependencies + numpy, + pillow, + requests, + scipy, + torch, + torchvision, + tqdm, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { tqdm ]; - pythonImportsCheck = [ - "cleanfid" - ]; + pythonImportsCheck = [ "cleanfid" ]; # no tests1 doCheck = false; diff --git a/pkgs/development/python-modules/cleanlab/default.nix b/pkgs/development/python-modules/cleanlab/default.nix index 073ac338fb0b..e90989967b11 100644 --- a/pkgs/development/python-modules/cleanlab/default.nix +++ b/pkgs/development/python-modules/cleanlab/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, scikit-learn -, termcolor -, tqdm -, pandas -, setuptools -# test dependencies -, pytestCheckHook -, pytest-lazy-fixture -, tensorflow -, torch -, datasets -, torchvision -, keras -, fasttext -, hypothesis -, wget -, matplotlib -, skorch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + scikit-learn, + termcolor, + tqdm, + pandas, + setuptools, + # test dependencies + pytestCheckHook, + pytest-lazy-fixture, + tensorflow, + torch, + datasets, + torchvision, + keras, + fasttext, + hypothesis, + wget, + matplotlib, + skorch, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cleo/default.nix b/pkgs/development/python-modules/cleo/default.nix index caa812c63a84..e29989fdb866 100644 --- a/pkgs/development/python-modules/cleo/default.nix +++ b/pkgs/development/python-modules/cleo/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, crashtest -, poetry-core -, pytest-mock -, pytestCheckHook -, pythonRelaxDepsHook -, rapidfuzz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + crashtest, + poetry-core, + pytest-mock, + pytestCheckHook, + pythonRelaxDepsHook, + rapidfuzz, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "rapidfuzz" - ]; + pythonRelaxDeps = [ "rapidfuzz" ]; propagatedBuildInputs = [ crashtest diff --git a/pkgs/development/python-modules/clevercsv/default.nix b/pkgs/development/python-modules/clevercsv/default.nix index fd8e4f61dceb..eb9c003c913f 100644 --- a/pkgs/development/python-modules/clevercsv/default.nix +++ b/pkgs/development/python-modules/clevercsv/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# propagates -, chardet -, regex -, packaging + # propagates + chardet, + regex, + packaging, -# optionals -, faust-cchardet -, pandas -, tabview -# TODO: , wilderness + # optionals + faust-cchardet, + pandas, + tabview, + # TODO: , wilderness -# tests -, python -, pytestCheckHook + # tests + python, + pytestCheckHook, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.full; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full; pythonImportsCheck = [ "clevercsv" @@ -61,9 +60,7 @@ buildPythonPackage rec { ''; # their ci only runs unit tests, there are also integration and fuzzing tests - pytestFlagsArray = [ - "./tests/test_unit" - ]; + pytestFlagsArray = [ "./tests/test_unit" ]; disabledTestPaths = [ # ModuleNotFoundError: No module named 'wilderness' diff --git a/pkgs/development/python-modules/clf/default.nix b/pkgs/development/python-modules/clf/default.nix index 0dd3609197f8..acf60cba7e1e 100644 --- a/pkgs/development/python-modules/clf/default.nix +++ b/pkgs/development/python-modules/clf/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, docopt, requests, pygments }: +{ + lib, + buildPythonPackage, + fetchPypi, + docopt, + requests, + pygments, +}: buildPythonPackage rec { pname = "clf"; @@ -15,7 +21,11 @@ buildPythonPackage rec { sed -i 's/==/>=/' requirements.txt ''; - propagatedBuildInputs = [ docopt requests pygments ]; + propagatedBuildInputs = [ + docopt + requests + pygments + ]; # Error when running tests: # No local packages or download links found for requests diff --git a/pkgs/development/python-modules/cli-helpers/default.nix b/pkgs/development/python-modules/cli-helpers/default.nix index 409f2c004c2c..106e4dac7c7c 100644 --- a/pkgs/development/python-modules/cli-helpers/default.nix +++ b/pkgs/development/python-modules/cli-helpers/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, configobj -, mock -, pytestCheckHook -, pygments -, tabulate -, terminaltables -, wcwidth +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + configobj, + mock, + pytestCheckHook, + pygments, + tabulate, + terminaltables, + wcwidth, }: buildPythonPackage rec { @@ -61,7 +62,7 @@ buildPythonPackage rec { Read the documentation at http://cli-helpers.rtfd.io ''; homepage = "https://cli-helpers.readthedocs.io/en/stable/"; - license = licenses.bsd3 ; + license = licenses.bsd3; maintainers = [ maintainers.kalbasit ]; }; } diff --git a/pkgs/development/python-modules/cliche/default.nix b/pkgs/development/python-modules/cliche/default.nix index b51801d8d2d3..596ea43962b1 100644 --- a/pkgs/development/python-modules/cliche/default.nix +++ b/pkgs/development/python-modules/cliche/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ipdb -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ipdb, + pytestCheckHook, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/click-aliases/default.nix b/pkgs/development/python-modules/click-aliases/default.nix index f216d1290996..51b5b40a140c 100644 --- a/pkgs/development/python-modules/click-aliases/default.nix +++ b/pkgs/development/python-modules/click-aliases/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, click -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + click, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-3/O5odibSjo5inlLCvUlotphhMVLBdaND/M2f40pMyM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "click_aliases" ]; diff --git a/pkgs/development/python-modules/click-command-tree/default.nix b/pkgs/development/python-modules/click-command-tree/default.nix index 53223c278c9c..8902c3f13fbe 100644 --- a/pkgs/development/python-modules/click-command-tree/default.nix +++ b/pkgs/development/python-modules/click-command-tree/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-oshAHCGe8p5BQ0W21bXSxrTCEFgIxZ6BmUEiWB1xAoI="; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; pythonImportsCheck = [ "click_command_tree" ]; diff --git a/pkgs/development/python-modules/click-completion/default.nix b/pkgs/development/python-modules/click-completion/default.nix index b2e0a57bbcc8..f79d92ecffc8 100644 --- a/pkgs/development/python-modules/click-completion/default.nix +++ b/pkgs/development/python-modules/click-completion/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, -# propagates -, click -, jinja2 -, shellingham -, six + # propagates + click, + jinja2, + shellingham, + six, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { six ]; - pythonImportsCheck = [ - "click_completion" - ]; + pythonImportsCheck = [ "click_completion" ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/click-configfile/default.nix b/pkgs/development/python-modules/click-configfile/default.nix index c1b0a0f09234..2d19a760e5fa 100644 --- a/pkgs/development/python-modules/click-configfile/default.nix +++ b/pkgs/development/python-modules/click-configfile/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, click -, six -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + click, + six, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,18 +25,14 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],' ''; - pythonImportsCheck = [ - "click_configfile" - ]; + pythonImportsCheck = [ "click_configfile" ]; disabledTests = [ "test_configfile__with_unbound_section" diff --git a/pkgs/development/python-modules/click-datetime/default.nix b/pkgs/development/python-modules/click-datetime/default.nix index 5e570130f030..54f531693588 100644 --- a/pkgs/development/python-modules/click-datetime/default.nix +++ b/pkgs/development/python-modules/click-datetime/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, click }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, +}: buildPythonPackage rec { pname = "click-datetime"; diff --git a/pkgs/development/python-modules/click-default-group/default.nix b/pkgs/development/python-modules/click-default-group/default.nix index 49422099ad78..0e6d589e20e1 100644 --- a/pkgs/development/python-modules/click-default-group/default.nix +++ b/pkgs/development/python-modules/click-default-group/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-9Vk4LdgLDAWG2YCQPLKR6PIVnULmpOoe7RtS8DgWARo="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "click_default_group" - ]; + pythonImportsCheck = [ "click_default_group" ]; meta = with lib; { description = "Group to invoke a command without explicit subcommand name"; diff --git a/pkgs/development/python-modules/click-didyoumean/default.nix b/pkgs/development/python-modules/click-didyoumean/default.nix index 110855c60a42..a781352f39ff 100644 --- a/pkgs/development/python-modules/click-didyoumean/default.nix +++ b/pkgs/development/python-modules/click-didyoumean/default.nix @@ -4,7 +4,7 @@ fetchFromGitHub, poetry-core, click, - pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/click-help-colors/default.nix b/pkgs/development/python-modules/click-help-colors/default.nix index 439a6241091c..819c4e148784 100644 --- a/pkgs/development/python-modules/click-help-colors/default.nix +++ b/pkgs/development/python-modules/click-help-colors/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, click -, pytestCheckHook -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + click, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-9Mq+Us9VApm4iI9PLuTF81msJ+M7z+TWHbR3haXMk2w="; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "click_help_colors" - ]; + pythonImportsCheck = [ "click_help_colors" ]; meta = with lib; { description = "Colorization of help messages in Click"; diff --git a/pkgs/development/python-modules/click-log/default.nix b/pkgs/development/python-modules/click-log/default.nix index 0b3622b9dc98..348620d9106c 100644 --- a/pkgs/development/python-modules/click-log/default.nix +++ b/pkgs/development/python-modules/click-log/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, click }: +{ + lib, + buildPythonPackage, + fetchPypi, + click, +}: buildPythonPackage rec { pname = "click-log"; diff --git a/pkgs/development/python-modules/click-odoo-contrib/default.nix b/pkgs/development/python-modules/click-odoo-contrib/default.nix index a01a3e88b197..ebb626aabf8c 100644 --- a/pkgs/development/python-modules/click-odoo-contrib/default.nix +++ b/pkgs/development/python-modules/click-odoo-contrib/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, click-odoo -, fetchPypi -, importlib-resources -, lib -, manifestoo-core -, nix-update-script -, pythonOlder -, setuptools-scm +{ + buildPythonPackage, + click-odoo, + fetchPypi, + importlib-resources, + lib, + manifestoo-core, + nix-update-script, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-3gusvy3d6kgmyBY+bmXB6lbWk7qxJIuHALZtug1WLzo="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ click-odoo diff --git a/pkgs/development/python-modules/click-odoo/default.nix b/pkgs/development/python-modules/click-odoo/default.nix index b4cd69ed978a..ff815b9f26d5 100644 --- a/pkgs/development/python-modules/click-odoo/default.nix +++ b/pkgs/development/python-modules/click-odoo/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, click -, fetchPypi -, lib -, nix-update-script -, setuptools-scm +{ + buildPythonPackage, + click, + fetchPypi, + lib, + nix-update-script, + setuptools-scm, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-zyfgsHzIoz4lnqANe63b2oqgD/oxBbTbJYEedfSHWQ8="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; passthru.updateScript = nix-update-script { }; diff --git a/pkgs/development/python-modules/click-option-group/default.nix b/pkgs/development/python-modules/click-option-group/default.nix index b1a2defe518f..6fa457d6f57b 100644 --- a/pkgs/development/python-modules/click-option-group/default.nix +++ b/pkgs/development/python-modules/click-option-group/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, click -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + click, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-uR5rIZPPT6pRk/jJEy2rZciOXrHWVWN6BfGroQ3znas="; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "click_option_group" - ]; + pythonImportsCheck = [ "click_option_group" ]; meta = with lib; { description = "Option groups missing in Click"; diff --git a/pkgs/development/python-modules/click-plugins/default.nix b/pkgs/development/python-modules/click-plugins/default.nix index f695f07f84b0..37804f1fdf18 100644 --- a/pkgs/development/python-modules/click-plugins/default.nix +++ b/pkgs/development/python-modules/click-plugins/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, - click, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + click, + pytest, }: buildPythonPackage rec { @@ -12,13 +16,9 @@ buildPythonPackage rec { sha256 = "46ab999744a9d831159c3411bb0c79346d94a444df9a3a3742e9ed63645f264b"; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; meta = with lib; { description = "An extension module for click to enable registering CLI commands"; diff --git a/pkgs/development/python-modules/click-repl/default.nix b/pkgs/development/python-modules/click-repl/default.nix index aa375423769b..bd2fad9f192f 100644 --- a/pkgs/development/python-modules/click-repl/default.nix +++ b/pkgs/development/python-modules/click-repl/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, click -, prompt-toolkit -, six + # dependencies + click, + prompt-toolkit, + six, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { sed -i '/--cov=/d' pyproject.toml ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ click @@ -40,9 +39,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/click-contrib/click-repl"; diff --git a/pkgs/development/python-modules/click-shell/default.nix b/pkgs/development/python-modules/click-shell/default.nix index 1b9a5ecf6211..79883b9dc3a1 100644 --- a/pkgs/development/python-modules/click-shell/default.nix +++ b/pkgs/development/python-modules/click-shell/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, pytestCheckHook -, pytest-click +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + pytestCheckHook, + pytest-click, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-4QpQzg0yFuOFymGiTI+A8o6LyX78iTJMqr0ernYbilI="; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; nativeCheckInputs = [ pytest-click pytestCheckHook ]; - pythonImportsCheck = [ - "click_shell" - ]; + pythonImportsCheck = [ "click_shell" ]; preCheck = "export HOME=$(mktemp -d)"; diff --git a/pkgs/development/python-modules/click-threading/default.nix b/pkgs/development/python-modules/click-threading/default.nix index 771678354ca0..b69c7f7c93aa 100644 --- a/pkgs/development/python-modules/click-threading/default.nix +++ b/pkgs/development/python-modules/click-threading/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, click -, isPy3k -, futures ? null +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + click, + isPy3k, + futures ? null, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/click/default.nix b/pkgs/development/python-modules/click/default.nix index eb32212cde23..3bda7fb00e70 100644 --- a/pkgs/development/python-modules/click/default.nix +++ b/pkgs/development/python-modules/click/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, importlib-metadata -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + importlib-metadata, + pytestCheckHook, # large-rebuild downstream dependencies and applications -, flask -, black -, magic-wormhole -, mitmproxy -, typer + flask, + black, + magic-wormhole, + mitmproxy, + typer, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { hash = "sha256-8YqIKRyw5MegnRwAO7YTCZateEFQFTH2PHpE8gTPTow="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # test fails with filename normalization on zfs @@ -41,7 +38,13 @@ buildPythonPackage rec { ]; passthru.tests = { - inherit black flask magic-wormhole mitmproxy typer; + inherit + black + flask + magic-wormhole + mitmproxy + typer + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/clickclick/default.nix b/pkgs/development/python-modules/clickclick/default.nix index 7822dbc8bcaf..a05570b39a33 100644 --- a/pkgs/development/python-modules/clickclick/default.nix +++ b/pkgs/development/python-modules/clickclick/default.nix @@ -1,4 +1,14 @@ -{ lib, buildPythonPackage, fetchFromGitHub, flake8, click, pyyaml, six, pytestCheckHook, pytest-cov }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flake8, + click, + pyyaml, + six, + pytestCheckHook, + pytest-cov, +}: buildPythonPackage rec { pname = "clickclick"; @@ -12,13 +22,19 @@ buildPythonPackage rec { sha256 = "1rij9ws9nhsmagiy1vclzliiqfkxi006rf65qvrw1k3sm2s8p5g0"; }; - nativeCheckInputs = [ pytestCheckHook pytest-cov ]; - propagatedBuildInputs = [ flake8 click pyyaml six ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov + ]; + propagatedBuildInputs = [ + flake8 + click + pyyaml + six + ]; # test_cli asserts on exact quoting style of output - disabledTests = [ - "test_cli" - ]; + disabledTests = [ "test_cli" ]; meta = with lib; { description = "Click command line utilities"; diff --git a/pkgs/development/python-modules/clickgen/default.nix b/pkgs/development/python-modules/clickgen/default.nix index b37c6382a821..b23f1d170b29 100644 --- a/pkgs/development/python-modules/clickgen/default.nix +++ b/pkgs/development/python-modules/clickgen/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, attrs -, pillow -, toml -, numpy -, pyyaml -, python -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + attrs, + pillow, + toml, + numpy, + pyyaml, + python, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postInstall = '' # Copying scripts directory needed by clickgen script at $out/bin/ diff --git a/pkgs/development/python-modules/clickhouse-cityhash/default.nix b/pkgs/development/python-modules/clickhouse-cityhash/default.nix index ecb3f3bf290e..87094e3f5244 100644 --- a/pkgs/development/python-modules/clickhouse-cityhash/default.nix +++ b/pkgs/development/python-modules/clickhouse-cityhash/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "clickhouse_cityhash" - ]; + pythonImportsCheck = [ "clickhouse_cityhash" ]; meta = with lib; { description = "Python-bindings for CityHash, a fast non-cryptographic hash algorithm"; diff --git a/pkgs/development/python-modules/clickhouse-cli/default.nix b/pkgs/development/python-modules/clickhouse-cli/default.nix index 170d15239303..76297631f590 100644 --- a/pkgs/development/python-modules/clickhouse-cli/default.nix +++ b/pkgs/development/python-modules/clickhouse-cli/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, setuptools -, click -, prompt-toolkit -, pygments -, requests -, sqlparse +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + setuptools, + click, + prompt-toolkit, + pygments, + requests, + sqlparse, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { setuptools ]; - pythonRelaxDeps = [ - "sqlparse" - ]; + pythonRelaxDeps = [ "sqlparse" ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/clickhouse-connect/default.nix b/pkgs/development/python-modules/clickhouse-connect/default.nix index e7bf0aa8e036..c0cefdb58431 100644 --- a/pkgs/development/python-modules/clickhouse-connect/default.nix +++ b/pkgs/development/python-modules/clickhouse-connect/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, # build_requires -, cython + cython, # install_requires -, certifi -, importlib-metadata -, urllib3 -, pytz -, zstandard -, lz4 + certifi, + importlib-metadata, + urllib3, + pytz, + zstandard, + lz4, # extras_require -, sqlalchemy -, numpy -, pandas -, pyarrow -, orjson + sqlalchemy, + numpy, + pandas, + pyarrow, + orjson, # not in tests_require, but should be -, pytest-dotenv + pytest-dotenv, }: buildPythonPackage rec { pname = "clickhouse-connect"; @@ -49,9 +50,10 @@ buildPythonPackage rec { lz4 ]; - nativeCheckInputs = [ pytestCheckHook pytest-dotenv ] - ++ passthru.optional-dependencies.sqlalchemy - ++ passthru.optional-dependencies.numpy; + nativeCheckInputs = [ + pytestCheckHook + pytest-dotenv + ] ++ passthru.optional-dependencies.sqlalchemy ++ passthru.optional-dependencies.numpy; # these tests require a running clickhouse instance disabledTestPaths = [ diff --git a/pkgs/development/python-modules/clickhouse-driver/default.nix b/pkgs/development/python-modules/clickhouse-driver/default.nix index 1ddaa5398d9d..342b6954958c 100644 --- a/pkgs/development/python-modules/clickhouse-driver/default.nix +++ b/pkgs/development/python-modules/clickhouse-driver/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, clickhouse-cityhash -, cython -, fetchFromGitHub -, freezegun -, lz4 -, mock -, nose -, pytestCheckHook -, pytest-xdist -, pytz -, setuptools -, tzlocal -, zstd +{ + lib, + buildPythonPackage, + clickhouse-cityhash, + cython, + fetchFromGitHub, + freezegun, + lz4, + mock, + nose, + pytestCheckHook, + pytest-xdist, + pytz, + setuptools, + tzlocal, + zstd, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cliff/default.nix b/pkgs/development/python-modules/cliff/default.nix index 5830b2ec1b8f..cca72fa51ef0 100644 --- a/pkgs/development/python-modules/cliff/default.nix +++ b/pkgs/development/python-modules/cliff/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, autopage -, cmd2 -, importlib-metadata -, installShellFiles -, openstackdocstheme -, pbr -, prettytable -, pyparsing -, pyyaml -, stevedore -, sphinx -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + autopage, + cmd2, + importlib-metadata, + installShellFiles, + openstackdocstheme, + pbr, + prettytable, + pyparsing, + pyyaml, + stevedore, + sphinx, + callPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cliff/tests.nix b/pkgs/development/python-modules/cliff/tests.nix index a2738cc590e8..135cccba658a 100644 --- a/pkgs/development/python-modules/cliff/tests.nix +++ b/pkgs/development/python-modules/cliff/tests.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, cliff -, docutils -, stestr -, testscenarios +{ + buildPythonPackage, + cliff, + docutils, + stestr, + testscenarios, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/clifford/default.nix b/pkgs/development/python-modules/clifford/default.nix index 6a590af483a7..7c19348d32f0 100644 --- a/pkgs/development/python-modules/clifford/default.nix +++ b/pkgs/development/python-modules/clifford/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, h5py -, ipython -, numba -, numpy -, pytestCheckHook -, setuptools -, scipy -, sparse +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + h5py, + ipython, + numba, + numpy, + pytestCheckHook, + setuptools, + scipy, + sparse, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-eVE8FrD0YHoRreY9CrNb8v4v4KrG83ZU0oFz+V+p+Q0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ h5py diff --git a/pkgs/development/python-modules/cligj/default.nix b/pkgs/development/python-modules/cligj/default.nix index 666a143e9620..2b22ba792ca4 100644 --- a/pkgs/development/python-modules/cligj/default.nix +++ b/pkgs/development/python-modules/cligj/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, click, pytest, glibcLocales +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + pytest, + glibcLocales, }: buildPythonPackage rec { @@ -14,11 +19,12 @@ buildPythonPackage rec { hash = "sha256-0f9+I6ozX93Vn0l7+WR0mpddDZymJQ3+Krovt6co22Y="; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ pytest glibcLocales ]; + nativeCheckInputs = [ + pytest + glibcLocales + ]; checkPhase = '' LC_ALL=en_US.utf-8 pytest tests diff --git a/pkgs/development/python-modules/clikit/default.nix b/pkgs/development/python-modules/clikit/default.nix index 48ed42ffb8e3..ec56458b06c7 100644 --- a/pkgs/development/python-modules/clikit/default.nix +++ b/pkgs/development/python-modules/clikit/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, pythonAtLeast -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + pythonAtLeast, + poetry-core, -# propagates -, pylev -, pastel + # propagates + pylev, + pastel, -# python36+ -, crashtest + # python36+ + crashtest, -# python2 -, typing -, enum34 + # python2 + typing, + enum34, -# tests -, pytest-mock -, pytestCheckHook + # tests + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -39,25 +40,25 @@ buildPythonPackage rec { 'crashtest = { version = "*", python = "^3.6" }' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pylev - pastel - ] - ++ lib.optionals (pythonAtLeast "3.6") [ crashtest ] - ++ lib.optionals isPy27 [ typing enum34 ]; + propagatedBuildInputs = + [ + pylev + pastel + ] + ++ lib.optionals (pythonAtLeast "3.6") [ crashtest ] + ++ lib.optionals isPy27 [ + typing + enum34 + ]; nativeCheckInputs = [ pytest-mock pytestCheckHook ]; - pythonImportsCheck = [ - "clikit" - ]; + pythonImportsCheck = [ "clikit" ]; meta = with lib; { homepage = "https://github.com/sdispater/clikit"; diff --git a/pkgs/development/python-modules/clint/default.nix b/pkgs/development/python-modules/clint/default.nix index deb62fbfcb46..33a676719c4a 100644 --- a/pkgs/development/python-modules/clint/default.nix +++ b/pkgs/development/python-modules/clint/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, mock -, blessings -, nose -, pillow -, args -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + python, + mock, + blessings, + nose, + pillow, + args, + pkgs, }: buildPythonPackage rec { @@ -20,15 +21,23 @@ buildPythonPackage rec { sha256 = "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"; }; - LC_ALL="en_US.UTF-8"; + LC_ALL = "en_US.UTF-8"; - propagatedBuildInputs = [ pillow blessings args ]; + propagatedBuildInputs = [ + pillow + blessings + args + ]; # nose-progressive and clint are not actively maintained # no longer compatible as behavior demand 2to3, which was removed # in setuptools>=58 - doCheck = false; - nativeCheckInputs = [ mock nose pkgs.glibcLocales ]; + doCheck = false; + nativeCheckInputs = [ + mock + nose + pkgs.glibcLocales + ]; checkPhase = '' ${python.interpreter} test_clint.py ''; @@ -41,5 +50,4 @@ buildPythonPackage rec { license = licenses.isc; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/clintermission/default.nix b/pkgs/development/python-modules/clintermission/default.nix index 9b439fa16084..5fed44529a85 100644 --- a/pkgs/development/python-modules/clintermission/default.nix +++ b/pkgs/development/python-modules/clintermission/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, prompt-toolkit +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + prompt-toolkit, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-e7C9IDr+mhVSfU8lMywjX1BYwFo/qegPNzabak7UPcY="; }; - propagatedBuildInputs = [ - prompt-toolkit - ]; + propagatedBuildInputs = [ prompt-toolkit ]; # repo contains no tests doCheck = false; - pythonImportsCheck = [ - "clintermission" - ]; + pythonImportsCheck = [ "clintermission" ]; meta = with lib; { description = "Non-fullscreen command-line selection menu"; diff --git a/pkgs/development/python-modules/clip-anytorch/default.nix b/pkgs/development/python-modules/clip-anytorch/default.nix index d17a1ad088fd..97070159ef64 100644 --- a/pkgs/development/python-modules/clip-anytorch/default.nix +++ b/pkgs/development/python-modules/clip-anytorch/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# dependencies -, ftfy -, regex -, tqdm -, torch -, torchvision + # dependencies + ftfy, + regex, + tqdm, + torch, + torchvision, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -33,16 +34,12 @@ buildPythonPackage rec { torchvision ]; - pythonImportsCheck = [ - "clip" - ]; + pythonImportsCheck = [ "clip" ]; # all tests require network access doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/clip/default.nix b/pkgs/development/python-modules/clip/default.nix index bf10f5be593f..e5b193c9caa1 100644 --- a/pkgs/development/python-modules/clip/default.nix +++ b/pkgs/development/python-modules/clip/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, ftfy -, lib -, regex -, torch -, torchvision -, tqdm +{ + buildPythonPackage, + fetchFromGitHub, + ftfy, + lib, + regex, + torch, + torchvision, + tqdm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/clize/default.nix b/pkgs/development/python-modules/clize/default.nix index d708cd93a4ae..f87471c62c44 100644 --- a/pkgs/development/python-modules/clize/default.nix +++ b/pkgs/development/python-modules/clize/default.nix @@ -1,16 +1,17 @@ -{ lib -, attrs -, buildPythonPackage -, docutils -, fetchPypi -, od -, pygments -, pytestCheckHook -, pythonOlder -, python-dateutil -, repeated-test -, setuptools-scm -, sigtools +{ + lib, + attrs, + buildPythonPackage, + docutils, + fetchPypi, + od, + pygments, + pytestCheckHook, + pythonOlder, + python-dateutil, + repeated-test, + setuptools-scm, + sigtools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-BH9aRHNgJxirG4VnKn4VMDOHF41agcJ13EKd+sHstRA="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -37,9 +36,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - datetime = [ - python-dateutil - ]; + datetime = [ python-dateutil ]; }; nativeCheckInputs = [ @@ -49,9 +46,7 @@ buildPythonPackage rec { repeated-test ]; - pythonImportsCheck = [ - "clize" - ]; + pythonImportsCheck = [ "clize" ]; meta = with lib; { description = "Command-line argument parsing for Python"; diff --git a/pkgs/development/python-modules/clldutils/default.nix b/pkgs/development/python-modules/clldutils/default.nix index f5b975f8467a..0018a2744d9c 100644 --- a/pkgs/development/python-modules/clldutils/default.nix +++ b/pkgs/development/python-modules/clldutils/default.nix @@ -1,21 +1,22 @@ -{ lib -, attrs -, buildPythonPackage -, colorlog -, fetchFromGitHub -, git -, lxml -, markdown -, markupsafe -, mock -, postgresql -, pylatexenc -, pytest-mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, setuptools -, tabulate +{ + lib, + attrs, + buildPythonPackage, + colorlog, + fetchFromGitHub, + git, + lxml, + markdown, + markupsafe, + mock, + postgresql, + pylatexenc, + pytest-mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, + tabulate, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace-fail "--cov" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs diff --git a/pkgs/development/python-modules/cloudevents/default.nix b/pkgs/development/python-modules/cloudevents/default.nix index d54b20975ca3..04184c4a177a 100644 --- a/pkgs/development/python-modules/cloudevents/default.nix +++ b/pkgs/development/python-modules/cloudevents/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, deprecation -, flask -, pydantic -, pytestCheckHook -, requests -, sanic -, sanic-testing +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + deprecation, + flask, + pydantic, + pytestCheckHook, + requests, + sanic, + sanic-testing, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { sanic-testing ]; - disabledTestPaths = [ - "samples/http-image-cloudevents/image_sample_test.py" - ]; + disabledTestPaths = [ "samples/http-image-cloudevents/image_sample_test.py" ]; meta = with lib; { description = "Python SDK for CloudEvents"; diff --git a/pkgs/development/python-modules/cloudflare/default.nix b/pkgs/development/python-modules/cloudflare/default.nix index 34ca3c05bdcd..8765dc9e39f0 100644 --- a/pkgs/development/python-modules/cloudflare/default.nix +++ b/pkgs/development/python-modules/cloudflare/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, requests -, pyyaml -, jsonlines -, pythonOlder -, pytestCheckHook -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + requests, + pyyaml, + jsonlines, + pythonOlder, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-Rq78Od+qI2XWObQjzsLNU1CuERU8ckfT6zVFvc8Bpoo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -35,9 +34,7 @@ buildPythonPackage rec { # tests require networking doCheck = false; - pythonImportsCheck = [ - "CloudFlare" - ]; + pythonImportsCheck = [ "CloudFlare" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/cloudpathlib/default.nix b/pkgs/development/python-modules/cloudpathlib/default.nix index 063ba6ce1056..3689a9d0dab4 100644 --- a/pkgs/development/python-modules/cloudpathlib/default.nix +++ b/pkgs/development/python-modules/cloudpathlib/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, flit-core -, importlib-metadata -, typing-extensions -, cloudpathlib -, azure-storage-blob -, google-cloud-storage -, boto3 -, psutil -, pydantic -, pytest7CheckHook -, pytest-cases -, pytest-cov -, pytest-xdist -, python-dotenv -, shortuuid +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + flit-core, + importlib-metadata, + typing-extensions, + cloudpathlib, + azure-storage-blob, + google-cloud-storage, + boto3, + psutil, + pydantic, + pytest7CheckHook, + pytest-cases, + pytest-cov, + pytest-xdist, + python-dotenv, + shortuuid, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-RrdRUqQ3QyMUpTi1FEsSXK6WS37r77SdPBH1oVVvSw0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ importlib-metadata @@ -43,18 +42,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - all = [ - cloudpathlib - ]; - azure = [ - azure-storage-blob - ]; - gs = [ - google-cloud-storage - ]; - s3 = [ - boto3 - ]; + all = [ cloudpathlib ]; + azure = [ azure-storage-blob ]; + gs = [ google-cloud-storage ]; + s3 = [ boto3 ]; }; pythonImportsCheck = [ "cloudpathlib" ]; diff --git a/pkgs/development/python-modules/cloudpickle/default.nix b/pkgs/development/python-modules/cloudpickle/default.nix index fc8f92f3fa8d..b957df2991d1 100644 --- a/pkgs/development/python-modules/cloudpickle/default.nix +++ b/pkgs/development/python-modules/cloudpickle/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, flit-core + # build-system + flit-core, -# tests -, psutil -, pytestCheckHook + # tests + psutil, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,18 +26,14 @@ buildPythonPackage rec { hash = "sha256-UeKVwzT0m4fhEVnG7TvQsFR99JsmwwoXmr+rWnTCeJU="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ psutil pytestCheckHook ]; - pythonImportsCheck = [ - "cloudpickle" - ]; + pythonImportsCheck = [ "cloudpickle" ]; disabledTestPaths = [ # ModuleNotFoundError: No module named 'psutil' diff --git a/pkgs/development/python-modules/cloudscraper/default.nix b/pkgs/development/python-modules/cloudscraper/default.nix index b5cb302765c6..8b20da7c7f45 100644 --- a/pkgs/development/python-modules/cloudscraper/default.nix +++ b/pkgs/development/python-modules/cloudscraper/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, requests -, requests-toolbelt -, pyparsing +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + requests, + requests-toolbelt, + pyparsing, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # nixpkgs yet, and also aren't included in the PyPI bundle. TODO. doCheck = false; - pythonImportsCheck = [ - "cloudscraper" - ]; + pythonImportsCheck = [ "cloudscraper" ]; meta = with lib; { description = "Python module to bypass Cloudflare's anti-bot page"; diff --git a/pkgs/development/python-modules/cloudsmith-api/default.nix b/pkgs/development/python-modules/cloudsmith-api/default.nix index e49a0eb5f92f..bb2499c258ba 100644 --- a/pkgs/development/python-modules/cloudsmith-api/default.nix +++ b/pkgs/development/python-modules/cloudsmith-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, certifi -, fetchPypi -, python-dateutil -, pythonOlder -, six -, urllib3 +{ + lib, + buildPythonPackage, + certifi, + fetchPypi, + python-dateutil, + pythonOlder, + six, + urllib3, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { # Wheels have no tests doCheck = false; - pythonImportsCheck = [ - "cloudsmith_api" - ]; + pythonImportsCheck = [ "cloudsmith_api" ]; meta = with lib; { description = "Cloudsmith API Client"; diff --git a/pkgs/development/python-modules/cloudsplaining/default.nix b/pkgs/development/python-modules/cloudsplaining/default.nix index 7c559db4337a..a2a472836f2f 100644 --- a/pkgs/development/python-modules/cloudsplaining/default.nix +++ b/pkgs/development/python-modules/cloudsplaining/default.nix @@ -1,18 +1,19 @@ -{ lib -, boto3 -, botocore -, buildPythonPackage -, cached-property -, click -, click-option-group -, fetchFromGitHub -, jinja2 -, markdown -, policy-sentry -, pytestCheckHook -, pythonOlder -, pyyaml -, schema +{ + lib, + boto3, + botocore, + buildPythonPackage, + cached-property, + click, + click-option-group, + fetchFromGitHub, + jinja2, + markdown, + policy-sentry, + pytestCheckHook, + pythonOlder, + pyyaml, + schema, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { schema ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' # Ignore pinned versions @@ -56,9 +55,7 @@ buildPythonPackage rec { "test_statement_details_for_allow_not_action" ]; - pythonImportsCheck = [ - "cloudsplaining" - ]; + pythonImportsCheck = [ "cloudsplaining" ]; meta = with lib; { description = "Python module for AWS IAM security assessment"; diff --git a/pkgs/development/python-modules/cloup/default.nix b/pkgs/development/python-modules/cloup/default.nix index ad66af8123bf..88ffe3d8b9fe 100644 --- a/pkgs/development/python-modules/cloup/default.nix +++ b/pkgs/development/python-modules/cloup/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, click -, setuptools-scm -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + click, + setuptools-scm, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -20,23 +21,13 @@ buildPythonPackage rec { hash = "sha256-ySsmHHu34TAEkw8/tLPtrY3i0fEplNzdvgW8IZkEQ8U="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - click - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = [ click ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cloup" - ]; + pythonImportsCheck = [ "cloup" ]; meta = with lib; { homepage = "https://github.com/janLuke/cloup"; diff --git a/pkgs/development/python-modules/clr-loader/default.nix b/pkgs/development/python-modules/clr-loader/default.nix index c0122a0d3d9d..270c68e0fa2f 100644 --- a/pkgs/development/python-modules/clr-loader/default.nix +++ b/pkgs/development/python-modules/clr-loader/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook -, dotnetCorePackages -, setuptools -, setuptools-scm -, wheel -, buildDotnetModule -, cffi +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, + dotnetCorePackages, + setuptools, + setuptools-scm, + wheel, + buildDotnetModule, + cffi, }: let @@ -23,7 +24,10 @@ let # build is done in `buildPythonPackage` below. dotnet-build = buildDotnetModule { inherit pname version src; - projectFile = [ "netfx_loader/ClrLoader.csproj" "example/example.csproj" ]; + projectFile = [ + "netfx_loader/ClrLoader.csproj" + "example/example.csproj" + ]; nugetDeps = ./deps.nix; }; in @@ -39,13 +43,9 @@ buildPythonPackage { dotnetCorePackages.sdk_6_0 ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # TODO: mono does not work due to https://github.com/NixOS/nixpkgs/issues/7307 diff --git a/pkgs/development/python-modules/clr-loader/deps.nix b/pkgs/development/python-modules/clr-loader/deps.nix index df303afaa791..10d5aa52f3e4 100644 --- a/pkgs/development/python-modules/clr-loader/deps.nix +++ b/pkgs/development/python-modules/clr-loader/deps.nix @@ -1,11 +1,36 @@ # This file was automatically generated by passthru.fetch-deps. # Please dont edit it manually, your changes might get overwritten! -{ fetchNuGet }: [ - (fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "1.1.0"; sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; }) - (fetchNuGet { pname = "Microsoft.NETFramework.ReferenceAssemblies"; version = "1.0.0"; sha256 = "0na724xhvqm63vq9y18fl9jw9q2v99bdwr353378s5fsi11qzxp9"; }) - (fetchNuGet { pname = "Microsoft.NETFramework.ReferenceAssemblies.net461"; version = "1.0.0"; sha256 = "00vkn4c6i0rn1l9pv912y0wgb9h6ks76qah8hvk441nari8fqbm1"; }) - (fetchNuGet { pname = "Microsoft.NETFramework.ReferenceAssemblies.net47"; version = "1.0.0"; sha256 = "00v56phfn01ahf4fq7zanz6hjyzpp00hkkk4a190l0dywrv387i6"; }) - (fetchNuGet { pname = "NETStandard.Library"; version = "2.0.3"; sha256 = "1fn9fxppfcg4jgypp2pmrpr6awl3qz1xmnri0cygpkwvyx27df1y"; }) - (fetchNuGet { pname = "NXPorts"; version = "1.0.0"; sha256 = "02zva596c3vsnlhi1b1391vbfl8a6142dvm61r8j1c70b07916lj"; }) +{ fetchNuGet }: +[ + (fetchNuGet { + pname = "Microsoft.NETCore.Platforms"; + version = "1.1.0"; + sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; + }) + (fetchNuGet { + pname = "Microsoft.NETFramework.ReferenceAssemblies"; + version = "1.0.0"; + sha256 = "0na724xhvqm63vq9y18fl9jw9q2v99bdwr353378s5fsi11qzxp9"; + }) + (fetchNuGet { + pname = "Microsoft.NETFramework.ReferenceAssemblies.net461"; + version = "1.0.0"; + sha256 = "00vkn4c6i0rn1l9pv912y0wgb9h6ks76qah8hvk441nari8fqbm1"; + }) + (fetchNuGet { + pname = "Microsoft.NETFramework.ReferenceAssemblies.net47"; + version = "1.0.0"; + sha256 = "00v56phfn01ahf4fq7zanz6hjyzpp00hkkk4a190l0dywrv387i6"; + }) + (fetchNuGet { + pname = "NETStandard.Library"; + version = "2.0.3"; + sha256 = "1fn9fxppfcg4jgypp2pmrpr6awl3qz1xmnri0cygpkwvyx27df1y"; + }) + (fetchNuGet { + pname = "NXPorts"; + version = "1.0.0"; + sha256 = "02zva596c3vsnlhi1b1391vbfl8a6142dvm61r8j1c70b07916lj"; + }) ] diff --git a/pkgs/development/python-modules/clustershell/default.nix b/pkgs/development/python-modules/clustershell/default.nix index c8fbbc7ad9d1..5617813d7443 100644 --- a/pkgs/development/python-modules/clustershell/default.nix +++ b/pkgs/development/python-modules/clustershell/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, pyyaml -, openssh -, nose -, bc -, hostname -, bash +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pyyaml, + openssh, + nose, + bc, + hostname, + bash, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cma/default.nix b/pkgs/development/python-modules/cma/default.nix index 82fdcf07153d..f5bec35c1c5b 100644 --- a/pkgs/development/python-modules/cma/default.nix +++ b/pkgs/development/python-modules/cma/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + python, + pythonOlder, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-+UJI3hDVbDMfRF4bkwHED3eJCHzxS2hO4YPUzJqcoQI="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; checkPhase = '' # At least one doctest fails, thus only limited amount of files is tested ${python.executable} -m cma.test interfaces.py purecma.py logger.py optimization_tools.py transformations.py ''; - pythonImportsCheck = [ - "cma" - ]; + pythonImportsCheck = [ "cma" ]; meta = with lib; { description = "Library for Covariance Matrix Adaptation Evolution Strategy for non-linear numerical optimization"; diff --git a/pkgs/development/python-modules/cmaes/default.nix b/pkgs/development/python-modules/cmaes/default.nix index 2e0afcf38162..4ed78fff19ae 100644 --- a/pkgs/development/python-modules/cmaes/default.nix +++ b/pkgs/development/python-modules/cmaes/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, hypothesis -, numpy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + hypothesis, + numpy, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-1mXulG/yqNwKQKDFGBh8uxIYOPSsm8+PNp++CSswc50="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ hypothesis pytestCheckHook ]; - pythonImportsCheck = [ - "cmaes" - ]; + pythonImportsCheck = [ "cmaes" ]; disabledTests = [ # Disable time-sensitive test diff --git a/pkgs/development/python-modules/cmake/default.nix b/pkgs/development/python-modules/cmake/default.nix index c9ee7d11c8fb..5a6afc13602b 100644 --- a/pkgs/development/python-modules/cmake/default.nix +++ b/pkgs/development/python-modules/cmake/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, flit-core -, cmake +{ + lib, + buildPythonPackage, + flit-core, + cmake, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { inherit (cmake) setupHooks; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - pythonImportsCheck = [ - "cmake" - ]; + pythonImportsCheck = [ "cmake" ]; meta = with lib; { description = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"; diff --git a/pkgs/development/python-modules/cmarkgfm/default.nix b/pkgs/development/python-modules/cmarkgfm/default.nix index 1c5e80961d54..23a38b8377e3 100644 --- a/pkgs/development/python-modules/cmarkgfm/default.nix +++ b/pkgs/development/python-modules/cmarkgfm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cffi -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cffi, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,21 +19,13 @@ buildPythonPackage rec { hash = "sha256-ogjBcm4SujhRJc7yxtN1xBxd6kzCZzp3r3ErHb8HTpA="; }; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cmarkgfm" - ]; + pythonImportsCheck = [ "cmarkgfm" ]; meta = with lib; { description = "Minimal bindings to GitHub's fork of cmark"; diff --git a/pkgs/development/python-modules/cmd2-ext-test/default.nix b/pkgs/development/python-modules/cmd2-ext-test/default.nix index 4cdf9ccf8dcd..3f061b7449be 100644 --- a/pkgs/development/python-modules/cmd2-ext-test/default.nix +++ b/pkgs/development/python-modules/cmd2-ext-test/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cmd2 -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + cmd2, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-uTc+onurLilwQe0trESR3JGa5WFT1fCt3rRA7rhRpaY="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - cmd2 - ]; + propagatedBuildInputs = [ cmd2 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cmd2_ext_test" - ]; + pythonImportsCheck = [ "cmd2_ext_test" ]; meta = with lib; { description = "Plugin supports testing of a cmd2 application"; diff --git a/pkgs/development/python-modules/cmd2/default.nix b/pkgs/development/python-modules/cmd2/default.nix index 996c11955b92..c78eda407871 100644 --- a/pkgs/development/python-modules/cmd2/default.nix +++ b/pkgs/development/python-modules/cmd2/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, attrs -, buildPythonPackage -, colorama -, fetchPypi -, glibcLocales -, importlib-metadata -, pyperclip -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools-scm -, typing-extensions -, wcwidth +{ + lib, + stdenv, + attrs, + buildPythonPackage, + colorama, + fetchPypi, + glibcLocales, + importlib-metadata, + pyperclip, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools-scm, + typing-extensions, + wcwidth, }: buildPythonPackage rec { @@ -29,19 +30,19 @@ buildPythonPackage rec { LC_ALL = "en_US.UTF-8"; - buildInputs = [ - setuptools-scm - ]; + buildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - attrs - colorama - pyperclip - wcwidth - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - importlib-metadata - ]; + propagatedBuildInputs = + [ + attrs + colorama + pyperclip + wcwidth + ] + ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + importlib-metadata + ]; nativeCheckInputs = [ pytestCheckHook @@ -55,22 +56,22 @@ buildPythonPackage rec { "test_transcript" ]; - postPatch = '' - sed -i "/--cov/d" setup.cfg - '' + lib.optionalString stdenv.isDarwin '' - # Fake the impure dependencies pbpaste and pbcopy - mkdir bin - echo '#!${stdenv.shell}' > bin/pbpaste - echo '#!${stdenv.shell}' > bin/pbcopy - chmod +x bin/{pbcopy,pbpaste} - export PATH=$(realpath bin):$PATH - ''; + postPatch = + '' + sed -i "/--cov/d" setup.cfg + '' + + lib.optionalString stdenv.isDarwin '' + # Fake the impure dependencies pbpaste and pbcopy + mkdir bin + echo '#!${stdenv.shell}' > bin/pbpaste + echo '#!${stdenv.shell}' > bin/pbcopy + chmod +x bin/{pbcopy,pbpaste} + export PATH=$(realpath bin):$PATH + ''; doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "cmd2" - ]; + pythonImportsCheck = [ "cmd2" ]; meta = with lib; { description = "Enhancements for standard library's cmd module"; diff --git a/pkgs/development/python-modules/cmdline/default.nix b/pkgs/development/python-modules/cmdline/default.nix index a5a03389b8db..82b901c1ce72 100644 --- a/pkgs/development/python-modules/cmdline/default.nix +++ b/pkgs/development/python-modules/cmdline/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pyyaml }: +{ + lib, + buildPythonPackage, + fetchPypi, + pyyaml, +}: buildPythonPackage rec { pname = "cmdline"; diff --git a/pkgs/development/python-modules/cmdstanpy/default.nix b/pkgs/development/python-modules/cmdstanpy/default.nix index 9ca60fe3c88e..dfa19b74fb62 100644 --- a/pkgs/development/python-modules/cmdstanpy/default.nix +++ b/pkgs/development/python-modules/cmdstanpy/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, cmdstan -, pythonRelaxDepsHook -, setuptools -, pandas -, numpy -, tqdm -, stanio -, xarray -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + cmdstan, + pythonRelaxDepsHook, + setuptools, + pandas, + numpy, + tqdm, + stanio, + xarray, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -60,9 +61,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.all; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.all; disabledTestPaths = [ # No need to test these when using Nix @@ -70,14 +69,16 @@ buildPythonPackage rec { "test/test_cxx_installation.py" ]; - disabledTests = [ - "test_serialization" # Pickle class mismatch errors - # These tests use the flag -DSTAN_THREADS which doesn't work in cmdstan (missing file) - "test_multi_proc_threads" - "test_compile_force" - ] ++ lib.optionals stdenv.isDarwin [ - "test_init_types" # CmdStan error: error during processing Operation not permitted - ]; + disabledTests = + [ + "test_serialization" # Pickle class mismatch errors + # These tests use the flag -DSTAN_THREADS which doesn't work in cmdstan (missing file) + "test_multi_proc_threads" + "test_compile_force" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_init_types" # CmdStan error: error during processing Operation not permitted + ]; pythonImportsCheck = [ "cmdstanpy" ]; diff --git a/pkgs/development/python-modules/cmigemo/default.nix b/pkgs/development/python-modules/cmigemo/default.nix index 9122954a62d8..ac2a0639f8b4 100644 --- a/pkgs/development/python-modules/cmigemo/default.nix +++ b/pkgs/development/python-modules/cmigemo/default.nix @@ -1,4 +1,12 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, six, cmigemo, pytestCheckHook }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + six, + cmigemo, + pytestCheckHook, +}: buildPythonPackage rec { pname = "cmigemo"; diff --git a/pkgs/development/python-modules/cmsis-pack-manager/default.nix b/pkgs/development/python-modules/cmsis-pack-manager/default.nix index 6043f1c15565..e3d3d9b0e004 100644 --- a/pkgs/development/python-modules/cmsis-pack-manager/default.nix +++ b/pkgs/development/python-modules/cmsis-pack-manager/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchFromGitHub -, rustPlatform -, cffi -, libiconv -, stdenv -, darwin -, buildPythonPackage -, appdirs -, pyyaml -, hypothesis -, jinja2 -, pytestCheckHook -, unzip +{ + lib, + fetchFromGitHub, + rustPlatform, + cffi, + libiconv, + stdenv, + darwin, + buildPythonPackage, + appdirs, + pyyaml, + hypothesis, + jinja2, + pytestCheckHook, + unzip, }: buildPythonPackage rec { @@ -31,12 +32,22 @@ buildPythonPackage rec { hash = "sha256-dO4qw5Jx0exwb4RuOhu6qvGxQZ+LayHtXDHZKADLTEI="; }; - nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook ]; + nativeBuildInputs = [ + rustPlatform.cargoSetupHook + rustPlatform.maturinBuildHook + ]; propagatedNativeBuildInputs = [ cffi ]; - buildInputs = [ libiconv ] - ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; - propagatedBuildInputs = [ appdirs pyyaml ]; - nativeCheckInputs = [ hypothesis jinja2 pytestCheckHook unzip ]; + buildInputs = [ libiconv ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; + propagatedBuildInputs = [ + appdirs + pyyaml + ]; + nativeCheckInputs = [ + hypothesis + jinja2 + pytestCheckHook + unzip + ]; # remove cmsis_pack_manager source directory so that binaries can be imported # from the installed wheel instead @@ -56,6 +67,9 @@ buildPythonPackage rec { description = "A Rust and Python module for handling CMSIS Pack files"; homepage = "https://github.com/pyocd/cmsis-pack-manager"; license = licenses.asl20; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/cmsis-svd/default.nix b/pkgs/development/python-modules/cmsis-svd/default.nix index 4d60d4039fe6..030b6d282276 100644 --- a/pkgs/development/python-modules/cmsis-svd/default.nix +++ b/pkgs/development/python-modules/cmsis-svd/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, six }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, +}: buildPythonPackage rec { pname = "cmsis-svd"; diff --git a/pkgs/development/python-modules/cnvkit/default.nix b/pkgs/development/python-modules/cnvkit/default.nix index f705cfbeff9f..4769bd2e57c6 100644 --- a/pkgs/development/python-modules/cnvkit/default.nix +++ b/pkgs/development/python-modules/cnvkit/default.nix @@ -1,23 +1,24 @@ -{ lib -, fetchFromGitHub -, fetchpatch -, rPackages -, buildPythonPackage -, biopython -, numpy -, scipy -, scikit-learn -, pandas -, matplotlib -, reportlab -, pysam -, future -, pillow -, pomegranate -, pyfaidx -, python -, pythonOlder -, R +{ + lib, + fetchFromGitHub, + fetchpatch, + rPackages, + buildPythonPackage, + biopython, + numpy, + scipy, + scikit-learn, + pandas, + matplotlib, + reportlab, + pysam, + future, + pillow, + pomegranate, + pyfaidx, + python, + pythonOlder, + R, }: buildPythonPackage rec { @@ -71,9 +72,7 @@ buildPythonPackage rec { popd # test/ ''; - pythonImportsCheck = [ - "cnvlib" - ]; + pythonImportsCheck = [ "cnvlib" ]; meta = with lib; { homepage = "https://cnvkit.readthedocs.io"; diff --git a/pkgs/development/python-modules/co2signal/default.nix b/pkgs/development/python-modules/co2signal/default.nix index 9af604c5dd84..637fe81a9f8d 100644 --- a/pkgs/development/python-modules/co2signal/default.nix +++ b/pkgs/development/python-modules/co2signal/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/coapthon3/default.nix b/pkgs/development/python-modules/coapthon3/default.nix index cba1de6aab46..8d175e419c5b 100644 --- a/pkgs/development/python-modules/coapthon3/default.nix +++ b/pkgs/development/python-modules/coapthon3/default.nix @@ -1,4 +1,10 @@ -{ buildPythonPackage, cachetools, fetchFromGitHub, isPy27, lib }: +{ + buildPythonPackage, + cachetools, + fetchFromGitHub, + isPy27, + lib, +}: buildPythonPackage rec { pname = "coapthon3"; diff --git a/pkgs/development/python-modules/cobs/default.nix b/pkgs/development/python-modules/cobs/default.nix index 6b7df1bd8dd6..89f9a40e1a90 100644 --- a/pkgs/development/python-modules/cobs/default.nix +++ b/pkgs/development/python-modules/cobs/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cock/default.nix b/pkgs/development/python-modules/cock/default.nix index 62d1b1548690..762521b0c867 100644 --- a/pkgs/development/python-modules/cock/default.nix +++ b/pkgs/development/python-modules/cock/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, click, sortedcontainers, pyyaml }: +{ + lib, + buildPythonPackage, + fetchPypi, + click, + sortedcontainers, + pyyaml, +}: buildPythonPackage rec { pname = "cock"; @@ -10,7 +17,11 @@ buildPythonPackage rec { hash = "sha256-Hi8aFxATsYcEO6qNzZnF73V8WLTQjb6Dw2xF4VgT2o4="; }; - propagatedBuildInputs = [ click sortedcontainers pyyaml ]; + propagatedBuildInputs = [ + click + sortedcontainers + pyyaml + ]; meta = with lib; { homepage = "https://github.com/pohmelie/cock"; diff --git a/pkgs/development/python-modules/coconut/default.nix b/pkgs/development/python-modules/coconut/default.nix index 5e56c2ef139d..0c2153af5710 100644 --- a/pkgs/development/python-modules/coconut/default.nix +++ b/pkgs/development/python-modules/coconut/default.nix @@ -1,18 +1,19 @@ -{ lib -, anyio -, async-generator -, buildPythonPackage -, fetchFromGitHub -, cpyparsing -, ipykernel -, mypy -, pexpect -, pygments -, pytestCheckHook -, prompt-toolkit -, setuptools -, tkinter -, watchdog +{ + lib, + anyio, + async-generator, + buildPythonPackage, + fetchFromGitHub, + cpyparsing, + ipykernel, + mypy, + pexpect, + pygments, + pytestCheckHook, + prompt-toolkit, + setuptools, + tkinter, + watchdog, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-xlA/yryUXZCU56gJ0y7M9JHgWkvXiB09ywyf0sP1o+4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ anyio @@ -50,13 +49,9 @@ buildPythonPackage rec { ]; # Currently most tests have performance issues - pytestFlagsArray = [ - "coconut/tests/constants_test.py" - ]; + pytestFlagsArray = [ "coconut/tests/constants_test.py" ]; - pythonImportsCheck = [ - "coconut" - ]; + pythonImportsCheck = [ "coconut" ]; meta = with lib; { description = "Simple, elegant, Pythonic functional programming"; diff --git a/pkgs/development/python-modules/cocotb-bus/default.nix b/pkgs/development/python-modules/cocotb-bus/default.nix index 40f2dc86c803..6e10559b3510 100644 --- a/pkgs/development/python-modules/cocotb-bus/default.nix +++ b/pkgs/development/python-modules/cocotb-bus/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cocotb/default.nix b/pkgs/development/python-modules/cocotb/default.nix index 8d996a4ebb04..f65b11c81ce2 100644 --- a/pkgs/development/python-modules/cocotb/default.nix +++ b/pkgs/development/python-modules/cocotb/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, cocotb-bus -, find-libpython -, pytestCheckHook -, swig -, verilog -, ghdl +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + cocotb-bus, + find-libpython, + pytestCheckHook, + swig, + verilog, + ghdl, }: buildPythonPackage rec { @@ -30,24 +31,26 @@ buildPythonPackage rec { buildInputs = [ setuptools ]; propagatedBuildInputs = [ find-libpython ]; - postPatch = '' - patchShebangs bin/*.py + postPatch = + '' + patchShebangs bin/*.py - # POSIX portability (TODO: upstream this) - for f in \ - cocotb/share/makefiles/Makefile.* \ - cocotb/share/makefiles/simulators/Makefile.* - do - substituteInPlace $f --replace 'shell which' 'shell command -v' - done + # POSIX portability (TODO: upstream this) + for f in \ + cocotb/share/makefiles/Makefile.* \ + cocotb/share/makefiles/simulators/Makefile.* + do + substituteInPlace $f --replace 'shell which' 'shell command -v' + done - # remove circular dependency cocotb-bus from setup.py - substituteInPlace setup.py --replace "'cocotb-bus<1.0'" "" - '' + lib.optionalString stdenv.isDarwin '' - # disable lto on darwin - # https://github.com/NixOS/nixpkgs/issues/19098 - substituteInPlace cocotb_build_libs.py --replace "-flto" "" - ''; + # remove circular dependency cocotb-bus from setup.py + substituteInPlace setup.py --replace "'cocotb-bus<1.0'" "" + '' + + lib.optionalString stdenv.isDarwin '' + # disable lto on darwin + # https://github.com/NixOS/nixpkgs/issues/19098 + substituteInPlace cocotb_build_libs.py --replace "-flto" "" + ''; patches = [ # Fix "can't link with bundle (MH_BUNDLE) only dylibs (MH_DYLIB) file" error @@ -58,7 +61,13 @@ buildPythonPackage rec { ./0002-Patch-remove-test_unicode_handle_assignment_deprecated-test.patch ]; - nativeCheckInputs = [ cocotb-bus pytestCheckHook swig verilog ghdl ]; + nativeCheckInputs = [ + cocotb-bus + pytestCheckHook + swig + verilog + ghdl + ]; preCheck = '' export PATH=$out/bin:$PATH mv cocotb cocotb.hidden @@ -72,6 +81,9 @@ buildPythonPackage rec { mainProgram = "cocotb-config"; homepage = "https://github.com/cocotb/cocotb"; license = licenses.bsd3; - maintainers = with maintainers; [ matthuszagh jleightcap ]; + maintainers = with maintainers; [ + matthuszagh + jleightcap + ]; }; } diff --git a/pkgs/development/python-modules/codecov/default.nix b/pkgs/development/python-modules/codecov/default.nix index ccc95b894f39..8bac2ebf313c 100644 --- a/pkgs/development/python-modules/codecov/default.nix +++ b/pkgs/development/python-modules/codecov/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, coverage -, ddt -, fetchFromGitHub -, mock -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + coverage, + ddt, + fetchFromGitHub, + mock, + pytestCheckHook, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/codepy/default.nix b/pkgs/development/python-modules/codepy/default.nix index 6f6c7d22bc9f..edcda2857bc3 100644 --- a/pkgs/development/python-modules/codepy/default.nix +++ b/pkgs/development/python-modules/codepy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytools -, appdirs -, six -, cgen +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytools, + appdirs, + six, + cgen, }: buildPythonPackage rec { @@ -19,7 +20,11 @@ buildPythonPackage rec { hash = "sha256-viMfB/nDrvDA/IGRZEX+yXylxbbmqbh/fgdYXBzK0zM="; }; - buildInputs = [ pytools six cgen ]; + buildInputs = [ + pytools + six + cgen + ]; propagatedBuildInputs = [ appdirs ]; pythonImportsCheck = [ "codepy" ]; diff --git a/pkgs/development/python-modules/coffea/default.nix b/pkgs/development/python-modules/coffea/default.nix index 2f390d3bab16..244b95ec38ec 100644 --- a/pkgs/development/python-modules/coffea/default.nix +++ b/pkgs/development/python-modules/coffea/default.nix @@ -1,35 +1,36 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, hatch-vcs -, aiohttp -, awkward -, cachetools -, cloudpickle -, correctionlib -, dask -, dask-awkward -, dask-histogram -, fsspec-xrootd -, hist -, lz4 -, matplotlib -, mplhep -, numba -, numpy -, packaging -, pandas -, pyarrow -, requests -, scipy -, toml -, tqdm -, uproot -, distributed -, pyinstrument -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + hatch-vcs, + aiohttp, + awkward, + cachetools, + cloudpickle, + correctionlib, + dask, + dask-awkward, + dask-histogram, + fsspec-xrootd, + hist, + lz4, + matplotlib, + mplhep, + numba, + numpy, + packaging, + pandas, + pyarrow, + requests, + scipy, + toml, + tqdm, + uproot, + distributed, + pyinstrument, + pytestCheckHook, }: buildPythonPackage rec { @@ -83,9 +84,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "coffea" - ]; + pythonImportsCheck = [ "coffea" ]; disabledTests = [ # Requires internet access diff --git a/pkgs/development/python-modules/cogapp/default.nix b/pkgs/development/python-modules/cogapp/default.nix index 7f039aa24faf..684c36c4ef2d 100644 --- a/pkgs/development/python-modules/cogapp/default.nix +++ b/pkgs/development/python-modules/cogapp/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "sha256-qAbV254xihotP86YgAgXkWjn2xPl5VsZt5dj+budKYI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # there are no tests doCheck = false; diff --git a/pkgs/development/python-modules/cohere/default.nix b/pkgs/development/python-modules/cohere/default.nix index 73af79e3c589..b71784091607 100644 --- a/pkgs/development/python-modules/cohere/default.nix +++ b/pkgs/development/python-modules/cohere/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, pythonOlder -, fastavro -, httpx -, httpx-sse -, pydantic -, requests -, tokenizers -, types-requests -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + pythonOlder, + fastavro, + httpx, + httpx-sse, + pydantic, + requests, + tokenizers, + types-requests, + typing-extensions, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-tFoshbAl3RU2fWm/knSN5KMOyCq7Swj6UwG3LokFH+I="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ fastavro @@ -43,9 +42,7 @@ buildPythonPackage rec { # tests require CO_API_KEY doCheck = false; - pythonImportsCheck = [ - "cohere" - ]; + pythonImportsCheck = [ "cohere" ]; meta = with lib; { description = "Simplify interfacing with the Cohere API"; diff --git a/pkgs/development/python-modules/coincurve/default.nix b/pkgs/development/python-modules/coincurve/default.nix index 2cdb2d8f4fe2..74ca443929b6 100644 --- a/pkgs/development/python-modules/coincurve/default.nix +++ b/pkgs/development/python-modules/coincurve/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, asn1crypto -, autoconf -, automake -, cffi -, libtool -, pkg-config -, pytestCheckHook -, python -, pythonOlder -, secp256k1 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + asn1crypto, + autoconf, + automake, + cffi, + libtool, + pkg-config, + pytestCheckHook, + python, + pythonOlder, + secp256k1, }: buildPythonPackage rec { @@ -56,18 +57,17 @@ buildPythonPackage rec { rm tests/test_bench.py ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "coincurve" - ]; + pythonImportsCheck = [ "coincurve" ]; meta = with lib; { description = "Cross-platform bindings for libsecp256k1"; homepage = "https://github.com/ofek/coincurve"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/coinmetrics-api-client/default.nix b/pkgs/development/python-modules/coinmetrics-api-client/default.nix index 421be646d19e..b7c9ef2a68d1 100644 --- a/pkgs/development/python-modules/coinmetrics-api-client/default.nix +++ b/pkgs/development/python-modules/coinmetrics-api-client/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, orjson -, pandas -, poetry-core -, pytest-mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, requests -, tqdm -, typer -, websocket-client +{ + lib, + buildPythonPackage, + fetchPypi, + orjson, + pandas, + poetry-core, + pytest-mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + requests, + tqdm, + typer, + websocket-client, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-rCj8nG7iQFJKs3Mic2wRZKBqx9T0lCPH5Po8k0nLppg="; }; - pythonRelaxDeps = [ - "typer" - ]; + pythonRelaxDeps = [ "typer" ]; nativeBuildInputs = [ poetry-core @@ -53,15 +52,11 @@ buildPythonPackage rec { pytest-mock ] ++ passthru.optional-dependencies.pandas; - pythonImportsCheck = [ - "coinmetrics.api_client" - ]; + pythonImportsCheck = [ "coinmetrics.api_client" ]; passthru = { optional-dependencies = { - pandas = [ - pandas - ]; + pandas = [ pandas ]; }; }; diff --git a/pkgs/development/python-modules/colander/default.nix b/pkgs/development/python-modules/colander/default.nix index 27111e1b267b..ed7cfe9d0241 100644 --- a/pkgs/development/python-modules/colander/default.nix +++ b/pkgs/development/python-modules/colander/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, babel -, translationstring -, iso8601 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + babel, + translationstring, + iso8601, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { iso8601 ]; - pythonImportsCheck = [ - "colander" - ]; + pythonImportsCheck = [ "colander" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A simple schema-based serialization and deserialization library"; diff --git a/pkgs/development/python-modules/colanderalchemy/default.nix b/pkgs/development/python-modules/colanderalchemy/default.nix index 1c45b6b619e2..ca1243078f35 100644 --- a/pkgs/development/python-modules/colanderalchemy/default.nix +++ b/pkgs/development/python-modules/colanderalchemy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, colander -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchPypi, + colander, + sqlalchemy, }: buildPythonPackage rec { @@ -14,7 +15,10 @@ buildPythonPackage rec { sha256 = "006wcfch2skwvma9bq3l06dyjnz309pa75h1rviq7i4pd9g463bl"; }; - propagatedBuildInputs = [ colander sqlalchemy ]; + propagatedBuildInputs = [ + colander + sqlalchemy + ]; # Tests are not included in Pypi doCheck = false; diff --git a/pkgs/development/python-modules/collections-extended/default.nix b/pkgs/development/python-modules/collections-extended/default.nix index d1545d36b376..72648a5268d4 100644 --- a/pkgs/development/python-modules/collections-extended/default.nix +++ b/pkgs/development/python-modules/collections-extended/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hypothesis -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hypothesis, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonAtLeast, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { hash = "sha256-cK13+CQUELKSiLpG747+C+RB5b6luu0mWLLXTT+uGH4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ hypothesis pytestCheckHook ]; - pythonImportsCheck = [ - "collections_extended" - ]; + pythonImportsCheck = [ "collections_extended" ]; meta = with lib; { description = "Extra Python Collections - bags (multisets), setlists (unique list/indexed set), RangeMap and IndexedDict"; diff --git a/pkgs/development/python-modules/collidoscope/default.nix b/pkgs/development/python-modules/collidoscope/default.nix index 2d446fc9505b..a8bec5c5cdcd 100644 --- a/pkgs/development/python-modules/collidoscope/default.nix +++ b/pkgs/development/python-modules/collidoscope/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, babelfont -, kurbopy -, fonttools -, skia-pathops -, tqdm -, uharfbuzz -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + babelfont, + kurbopy, + fonttools, + skia-pathops, + tqdm, + uharfbuzz, + unittestCheckHook, }: buildPythonPackage rec { @@ -30,10 +31,12 @@ buildPythonPackage rec { ]; doCheck = true; - nativeCheckInputs = [ - unittestCheckHook + nativeCheckInputs = [ unittestCheckHook ]; + unittestFlagsArray = [ + "-s" + "test" + "-v" ]; - unittestFlagsArray = [ "-s" "test" "-v" ]; meta = with lib; { description = "Python library to detect glyph collisions in fonts"; diff --git a/pkgs/development/python-modules/colorama/default.nix b/pkgs/development/python-modules/colorama/default.nix index 747823f2dd9e..d907499cafee 100644 --- a/pkgs/development/python-modules/colorama/default.nix +++ b/pkgs/development/python-modules/colorama/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, hatchling, pytestCheckHook }: +{ + lib, + fetchPypi, + buildPythonPackage, + hatchling, + pytestCheckHook, +}: buildPythonPackage rec { pname = "colorama"; diff --git a/pkgs/development/python-modules/colorcet/default.nix b/pkgs/development/python-modules/colorcet/default.nix index 08951a18fc49..dbffade58911 100644 --- a/pkgs/development/python-modules/colorcet/default.nix +++ b/pkgs/development/python-modules/colorcet/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, param -, pyct -, pytest-mpl -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + param, + pyct, + pytest-mpl, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,13 +42,9 @@ buildPythonPackage rec { ln -s $HOME/.config/matplotlib $HOME/.matplotlib ''; - disabledTests = [ - "matplotlib_default_colormap_plot" - ]; + disabledTests = [ "matplotlib_default_colormap_plot" ]; - pythonImportsCheck = [ - "colorcet" - ]; + pythonImportsCheck = [ "colorcet" ]; meta = with lib; { description = "Collection of perceptually uniform colormaps"; diff --git a/pkgs/development/python-modules/colorclass/default.nix b/pkgs/development/python-modules/colorclass/default.nix index e524ae49eb3d..016aaacc1355 100644 --- a/pkgs/development/python-modules/colorclass/default.nix +++ b/pkgs/development/python-modules/colorclass/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "colorclass"; diff --git a/pkgs/development/python-modules/colored-traceback/default.nix b/pkgs/development/python-modules/colored-traceback/default.nix index a2cdfea30b2c..b0447c66bc12 100644 --- a/pkgs/development/python-modules/colored-traceback/default.nix +++ b/pkgs/development/python-modules/colored-traceback/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pygments +{ + lib, + buildPythonPackage, + fetchPypi, + pygments, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/colored/default.nix b/pkgs/development/python-modules/colored/default.nix index af696f384f15..c9db3719d3f0 100644 --- a/pkgs/development/python-modules/colored/default.nix +++ b/pkgs/development/python-modules/colored/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, flit-core -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitLab, + flit-core, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,21 +18,13 @@ buildPythonPackage rec { hash = "sha256-4APFAIN+cmPPd6qbqVC9iU4YntNEjoPbJXZywG1hsBY="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "unittests" - ]; + unittestFlagsArray = [ "unittests" ]; - pythonImportsCheck = [ - "colored" - ]; + pythonImportsCheck = [ "colored" ]; meta = with lib; { description = "Simple library for color and formatting to terminal"; diff --git a/pkgs/development/python-modules/coloredlogs/default.nix b/pkgs/development/python-modules/coloredlogs/default.nix index 3f4dd4188040..348d4080498d 100644 --- a/pkgs/development/python-modules/coloredlogs/default.nix +++ b/pkgs/development/python-modules/coloredlogs/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, humanfriendly -, verboselogs -, capturer -, pytestCheckHook -, mock -, util-linux +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + humanfriendly, + verboselogs, + capturer, + pytestCheckHook, + mock, + util-linux, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-TodI2Wh8M0qMM2K5jzqlLmUKILa5+5qq4ByLttmAA7E="; }; - propagatedBuildInputs = [ - humanfriendly - ]; + propagatedBuildInputs = [ humanfriendly ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/colorful/default.nix b/pkgs/development/python-modules/colorful/default.nix index 9deae7c071fc..4a1a340136f4 100644 --- a/pkgs/development/python-modules/colorful/default.nix +++ b/pkgs/development/python-modules/colorful/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-8rHJIsHiyfjmjlGiEyrzvEwKgi1kP4Njm731mlFDMIU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "colorful" - ]; + pythonImportsCheck = [ "colorful" ]; meta = with lib; { description = "Library for terminal string styling"; diff --git a/pkgs/development/python-modules/colorlog/default.nix b/pkgs/development/python-modules/colorlog/default.nix index 1e8cfb0d0d03..8dfb12cf5f84 100644 --- a/pkgs/development/python-modules/colorlog/default.nix +++ b/pkgs/development/python-modules/colorlog/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,17 +16,11 @@ buildPythonPackage rec { hash = "sha256-Pj4HmkH+taG2T5eLXqT0YECpTxHw6Lu4Jh49u+ymTUQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "colorlog" - ]; + pythonImportsCheck = [ "colorlog" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Log formatting with colors"; diff --git a/pkgs/development/python-modules/colorlover/default.nix b/pkgs/development/python-modules/colorlover/default.nix index 1fda9111e6fa..0befe12cd88d 100644 --- a/pkgs/development/python-modules/colorlover/default.nix +++ b/pkgs/development/python-modules/colorlover/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/colorspacious/default.nix b/pkgs/development/python-modules/colorspacious/default.nix index d9a83e85ec35..00abd27fd897 100644 --- a/pkgs/development/python-modules/colorspacious/default.nix +++ b/pkgs/development/python-modules/colorspacious/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, }: buildPythonPackage rec { @@ -11,9 +15,7 @@ buildPythonPackage rec { sha256 = "065n24zbm9ymy2gvf03vx5cggk1258vcjdaw8jn9v26arpl7542y"; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; meta = { homepage = "https://github.com/njsmith/colorspacious"; diff --git a/pkgs/development/python-modules/colorthief/default.nix b/pkgs/development/python-modules/colorthief/default.nix index 4e0527cbc704..66fb4f9fe502 100644 --- a/pkgs/development/python-modules/colorthief/default.nix +++ b/pkgs/development/python-modules/colorthief/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "0lzpflal1iqbj4k7hayss5z024qf2sn8c3wxw03a0mgxg06ca2hm"; }; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/colorzero/default.nix b/pkgs/development/python-modules/colorzero/default.nix index e2383dddf4de..94a7ac695766 100644 --- a/pkgs/development/python-modules/colorzero/default.nix +++ b/pkgs/development/python-modules/colorzero/default.nix @@ -1,11 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pkginfo -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pkginfo, + pytestCheckHook, }: - buildPythonPackage rec { pname = "colorzero"; version = "2.0"; @@ -23,17 +23,11 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - pkginfo - ]; + nativeBuildInputs = [ pkginfo ]; - pythonImportsCheck = [ - "colorzero" - ]; + pythonImportsCheck = [ "colorzero" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Yet another Python color library"; diff --git a/pkgs/development/python-modules/colour/default.nix b/pkgs/development/python-modules/colour/default.nix index 2dd31a02bbe7..de2006bacb2d 100644 --- a/pkgs/development/python-modules/colour/default.nix +++ b/pkgs/development/python-modules/colour/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { ./remove-unmaintained-d2to1.diff ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "--doctest-glob=\"*.rst\"" "--doctest-modules" ]; - pythonImportsCheck = [ - "colour" - ]; + pythonImportsCheck = [ "colour" ]; meta = with lib; { description = "Converts and manipulates common color representation (RGB, HSV, web, ...)"; diff --git a/pkgs/development/python-modules/colout/default.nix b/pkgs/development/python-modules/colout/default.nix index 6325b6be5bda..412f7dd307fe 100644 --- a/pkgs/development/python-modules/colout/default.nix +++ b/pkgs/development/python-modules/colout/default.nix @@ -1,10 +1,11 @@ -{ lib -, babel -, buildPythonPackage -, fetchFromGitHub -, pygments -, pythonOlder -, setuptools-scm +{ + lib, + babel, + buildPythonPackage, + fetchFromGitHub, + pygments, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ babel pygments ]; - pythonImportsCheck = [ - "colout" - ]; + pythonImportsCheck = [ "colout" ]; # This project does not have a unit test doCheck = false; diff --git a/pkgs/development/python-modules/cometblue-lite/default.nix b/pkgs/development/python-modules/cometblue-lite/default.nix index 89af6333ae90..0c935e9392b8 100644 --- a/pkgs/development/python-modules/cometblue-lite/default.nix +++ b/pkgs/development/python-modules/cometblue-lite/default.nix @@ -1,9 +1,10 @@ -{ lib -, bleak -, bleak-retry-connector -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + bleak, + bleak-retry-connector, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "cometblue_lite" - ]; + pythonImportsCheck = [ "cometblue_lite" ]; meta = with lib; { description = "Module for Eurotronic Comet Blue thermostats"; diff --git a/pkgs/development/python-modules/comicon/default.nix b/pkgs/development/python-modules/comicon/default.nix index c13234b85d28..932d6810ea3f 100644 --- a/pkgs/development/python-modules/comicon/default.nix +++ b/pkgs/development/python-modules/comicon/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, pythonOlder -, ebooklib -, lxml -, pillow -, pypdf -, python-slugify +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + pythonOlder, + ebooklib, + lxml, + pillow, + pypdf, + python-slugify, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pypdf" - ]; + pythonRelaxDeps = [ "pypdf" ]; propagatedBuildInputs = [ ebooklib diff --git a/pkgs/development/python-modules/comm/default.nix b/pkgs/development/python-modules/comm/default.nix index 9ab4eb2c5008..130b6e908413 100644 --- a/pkgs/development/python-modules/comm/default.nix +++ b/pkgs/development/python-modules/comm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, traitlets -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + traitlets, + pytestCheckHook, }: let @@ -21,17 +22,11 @@ buildPythonPackage { hash = "sha256-51HSSULhbKb1NdLJ//b3Vh6sOLWp0B4KW469htpduqM="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - traitlets - ]; + propagatedBuildInputs = [ traitlets ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc"; @@ -40,4 +35,3 @@ buildPythonPackage { maintainers = with maintainers; [ ]; }; } - diff --git a/pkgs/development/python-modules/commandlines/default.nix b/pkgs/development/python-modules/commandlines/default.nix index d5eeadcf86de..b216858a584c 100644 --- a/pkgs/development/python-modules/commandlines/default.nix +++ b/pkgs/development/python-modules/commandlines/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { }; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python library for command line argument parsing"; @@ -29,4 +28,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/commandparse/default.nix b/pkgs/development/python-modules/commandparse/default.nix index e146649604f0..a7f28dab1563 100644 --- a/pkgs/development/python-modules/commandparse/default.nix +++ b/pkgs/development/python-modules/commandparse/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # tests only distributed upstream source, not PyPi doCheck = false; - pythonImportsCheck = [ - "commandparse" - ]; + pythonImportsCheck = [ "commandparse" ]; meta = with lib; { description = "Python module to parse command based CLI application"; diff --git a/pkgs/development/python-modules/commentjson/default.nix b/pkgs/development/python-modules/commentjson/default.nix index bd8d6f343358..defdc1aa3b05 100644 --- a/pkgs/development/python-modules/commentjson/default.nix +++ b/pkgs/development/python-modules/commentjson/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, six, lark, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + lark, + pytestCheckHook, +}: buildPythonPackage rec { pname = "commentjson"; @@ -20,7 +27,10 @@ buildPythonPackage rec { rm -r commentjson/tests/test_json ''; - propagatedBuildInputs = [ lark six ]; + propagatedBuildInputs = [ + lark + six + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/commoncode/default.nix b/pkgs/development/python-modules/commoncode/default.nix index 98c6492194c2..aa9203af4ba8 100644 --- a/pkgs/development/python-modules/commoncode/default.nix +++ b/pkgs/development/python-modules/commoncode/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, attrs -, beautifulsoup4 -, buildPythonPackage -, click -, fetchPypi -, pytest-xdist -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, requests -, saneyaml -, setuptools-scm -, text-unidecode +{ + lib, + stdenv, + attrs, + beautifulsoup4, + buildPythonPackage, + click, + fetchPypi, + pytest-xdist, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + requests, + saneyaml, + setuptools-scm, + text-unidecode, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -47,28 +46,28 @@ buildPythonPackage rec { pytest-xdist ]; - disabledTests = [ - # chinese character translates different into latin - "test_safe_path_posix_style_chinese_char" - # OSError: [Errno 84] Invalid or incomplete multibyte or wide character - "test_os_walk_can_walk_non_utf8_path_from_unicode_path" - "test_resource_iter_can_walk_non_utf8_path_from_unicode_path" - "test_walk_can_walk_non_utf8_path_from_unicode_path" - "test_resource_iter_can_walk_non_utf8_path_from_unicode_path_with_dirs" - ] ++ lib.optionals stdenv.isDarwin [ - # expected result is tailored towards the quirks of upstream's - # CI environment on darwin - "test_searchable_paths" - ]; + disabledTests = + [ + # chinese character translates different into latin + "test_safe_path_posix_style_chinese_char" + # OSError: [Errno 84] Invalid or incomplete multibyte or wide character + "test_os_walk_can_walk_non_utf8_path_from_unicode_path" + "test_resource_iter_can_walk_non_utf8_path_from_unicode_path" + "test_walk_can_walk_non_utf8_path_from_unicode_path" + "test_resource_iter_can_walk_non_utf8_path_from_unicode_path_with_dirs" + ] + ++ lib.optionals stdenv.isDarwin [ + # expected result is tailored towards the quirks of upstream's + # CI environment on darwin + "test_searchable_paths" + ]; disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [ # https://github.com/nexB/commoncode/issues/36 "src/commoncode/fetch.py" ]; - pythonImportsCheck = [ - "commoncode" - ]; + pythonImportsCheck = [ "commoncode" ]; meta = with lib; { description = "A set of common utilities, originally split from ScanCode"; diff --git a/pkgs/development/python-modules/commonmark/default.nix b/pkgs/development/python-modules/commonmark/default.nix index a6cf342ba04e..2d7b83782730 100644 --- a/pkgs/development/python-modules/commonmark/default.nix +++ b/pkgs/development/python-modules/commonmark/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, future }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + glibcLocales, + future, +}: buildPythonPackage rec { pname = "commonmark"; @@ -17,7 +24,7 @@ buildPythonPackage rec { # UnicodeEncodeError on Python 2 doCheck = isPy3k; - nativeCheckInputs = [ glibcLocales ]; + nativeCheckInputs = [ glibcLocales ]; propagatedBuildInputs = [ future ]; meta = with lib; { diff --git a/pkgs/development/python-modules/compiledb/default.nix b/pkgs/development/python-modules/compiledb/default.nix index a97db47ffdb7..984365481285 100644 --- a/pkgs/development/python-modules/compiledb/default.nix +++ b/pkgs/development/python-modules/compiledb/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, bashlex -, click -, shutilwhich -, gcc -, coreutils +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + bashlex, + click, + shutilwhich, + gcc, + coreutils, }: buildPythonPackage rec { @@ -27,8 +28,16 @@ buildPythonPackage rec { --replace /bin/echo ${coreutils}/bin/echo ''; - nativeCheckInputs = [ pytest gcc coreutils ]; - propagatedBuildInputs = [ click bashlex shutilwhich ]; + nativeCheckInputs = [ + pytest + gcc + coreutils + ]; + propagatedBuildInputs = [ + click + bashlex + shutilwhich + ]; checkPhase = '' pytest diff --git a/pkgs/development/python-modules/complycube/default.nix b/pkgs/development/python-modules/complycube/default.nix index ee99ae8d28bd..2ad68d938682 100644 --- a/pkgs/development/python-modules/complycube/default.nix +++ b/pkgs/development/python-modules/complycube/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyhumps -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pyhumps, + requests, + setuptools, }: buildPythonPackage rec { @@ -17,18 +18,14 @@ buildPythonPackage rec { hash = "sha256-hetcn5RX582CRVmtG5dAvr+NXD+7NKJjaqgOo8LlpqM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyhumps requests ]; - pythonImportsCheck = [ - "complycube" - ]; + pythonImportsCheck = [ "complycube" ]; meta = { homepage = "https://complycube.com"; diff --git a/pkgs/development/python-modules/compreffor/default.nix b/pkgs/development/python-modules/compreffor/default.nix index 9ab5590e4e3b..d318e031fb6d 100644 --- a/pkgs/development/python-modules/compreffor/default.nix +++ b/pkgs/development/python-modules/compreffor/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, fetchpatch -, fetchPypi -, setuptools-scm -, fonttools -, pytestCheckHook -, wheel +{ + lib, + buildPythonPackage, + cython, + fetchpatch, + fetchPypi, + setuptools-scm, + fonttools, + pytestCheckHook, + wheel, }: buildPythonPackage rec { @@ -34,20 +35,14 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - fonttools - ]; + propagatedBuildInputs = [ fonttools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Tests cannot seem to open the cpython module. doCheck = false; - pythonImportsCheck = [ - "compreffor" - ]; + pythonImportsCheck = [ "compreffor" ]; meta = with lib; { description = "CFF table subroutinizer for FontTools"; diff --git a/pkgs/development/python-modules/compressai/default.nix b/pkgs/development/python-modules/compressai/default.nix index 47487a6f633f..5baafb587fe4 100644 --- a/pkgs/development/python-modules/compressai/default.nix +++ b/pkgs/development/python-modules/compressai/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pybind11 -, setuptools -, wheel -, numpy -, matplotlib -, pytorch-msssim -, scipy -, torch -, torchvision -, ipywidgets -, jupyter -, plotly -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pybind11, + setuptools, + wheel, + numpy, + matplotlib, + pytorch-msssim, + scipy, + torch, + torchvision, + ipywidgets, + jupyter, + plotly, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/compressed-rtf/default.nix b/pkgs/development/python-modules/compressed-rtf/default.nix index 2f149d1aac1f..7788fe065635 100644 --- a/pkgs/development/python-modules/compressed-rtf/default.nix +++ b/pkgs/development/python-modules/compressed-rtf/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-ivvND+cOCAmRyO8yL0+WhFY/2OkrJ+E/o4xWWd7ivHA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "compressed_rtf" - ]; + pythonImportsCheck = [ "compressed_rtf" ]; - pytestFlagsArray = [ - "tests/tests.py" - ]; + pytestFlagsArray = [ "tests/tests.py" ]; meta = with lib; { description = "Compressed Rich Text Format (RTF) compression and decompression"; diff --git a/pkgs/development/python-modules/concurrent-log-handler/default.nix b/pkgs/development/python-modules/concurrent-log-handler/default.nix index 53586d9bb0c8..384beaff25db 100644 --- a/pkgs/development/python-modules/concurrent-log-handler/default.nix +++ b/pkgs/development/python-modules/concurrent-log-handler/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, portalocker +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + portalocker, }: buildPythonPackage rec { @@ -16,17 +17,11 @@ buildPythonPackage rec { hash = "sha256-HixvAhQU4hTT2sZhB4lIJ6PnjbYwGDBKTynlW6VJrCI="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - portalocker - ]; + dependencies = [ portalocker ]; - pythonImportsCheck = [ - "concurrent_log_handler" - ]; + pythonImportsCheck = [ "concurrent_log_handler" ]; doCheck = false; # upstream has no tests diff --git a/pkgs/development/python-modules/confection/default.nix b/pkgs/development/python-modules/confection/default.nix index 2e7b035de425..5093e543fd80 100644 --- a/pkgs/development/python-modules/confection/default.nix +++ b/pkgs/development/python-modules/confection/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pydantic -, pytestCheckHook -, pythonOlder -, srsly +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pydantic, + pytestCheckHook, + pythonOlder, + srsly, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { srsly ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "confection" - ]; + pythonImportsCheck = [ "confection" ]; meta = with lib; { description = "Library that offers a configuration system"; homepage = "https://github.com/explosion/confection"; - changelog = "https://github.com/explosion/confection/releases/tag/v${version}"; + changelog = "https://github.com/explosion/confection/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; }; diff --git a/pkgs/development/python-modules/configargparse/default.nix b/pkgs/development/python-modules/configargparse/default.nix index 489e6a34144c..c8eed8d5bedc 100644 --- a/pkgs/development/python-modules/configargparse/default.nix +++ b/pkgs/development/python-modules/configargparse/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pyyaml -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pyyaml, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { }; passthru.optional-dependencies = { - yaml = [ - pyyaml - ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ @@ -32,9 +31,7 @@ buildPythonPackage rec { mock ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "configargparse" - ]; + pythonImportsCheck = [ "configargparse" ]; meta = with lib; { description = "A drop-in replacement for argparse"; diff --git a/pkgs/development/python-modules/configclass/default.nix b/pkgs/development/python-modules/configclass/default.nix index bb56f3c745da..8de9b1d95e88 100644 --- a/pkgs/development/python-modules/configclass/default.nix +++ b/pkgs/development/python-modules/configclass/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, mergedict -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + mergedict, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/confight/default.nix b/pkgs/development/python-modules/confight/default.nix index 718b0614b111..d3e627b79bb2 100644 --- a/pkgs/development/python-modules/confight/default.nix +++ b/pkgs/development/python-modules/confight/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + toml, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-iodoexnh9tG4dgkjDXCUzWRFDhRlJ3HRgaNhxG2lwPY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - toml - ]; + propagatedBuildInputs = [ toml ]; pythonImportsCheck = [ "confight" ]; diff --git a/pkgs/development/python-modules/configobj/default.nix b/pkgs/development/python-modules/configobj/default.nix index 932e434d923d..ad3ce4673611 100644 --- a/pkgs/development/python-modules/configobj/default.nix +++ b/pkgs/development/python-modules/configobj/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-t3Q0FEBibkAM5PAG4fjXwNH/71RqSSDj/Mn27ri0iDU="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - mock - ]; + checkInputs = [ mock ]; - pythonImportsCheck = [ - "configobj" - ]; + pythonImportsCheck = [ "configobj" ]; meta = with lib; { description = "Config file reading, writing and validation"; diff --git a/pkgs/development/python-modules/configparser/default.nix b/pkgs/development/python-modules/configparser/default.nix index 4495401250a2..644f24a4573a 100644 --- a/pkgs/development/python-modules/configparser/default.nix +++ b/pkgs/development/python-modules/configparser/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools -, setuptools-scm +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/configshell/default.nix b/pkgs/development/python-modules/configshell/default.nix index 922b43ec729c..cc3c7002a4ec 100644 --- a/pkgs/development/python-modules/configshell/default.nix +++ b/pkgs/development/python-modules/configshell/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pyparsing -, six -, urwid +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pyparsing, + six, + urwid, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "configshell" - ]; + pythonImportsCheck = [ "configshell" ]; meta = with lib; { description = "Python library for building configuration shells"; diff --git a/pkgs/development/python-modules/configupdater/default.nix b/pkgs/development/python-modules/configupdater/default.nix index aed19b526715..9e052140d48f 100644 --- a/pkgs/development/python-modules/configupdater/default.nix +++ b/pkgs/development/python-modules/configupdater/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -25,14 +26,15 @@ buildPythonPackage rec { pythonImportsCheck = [ "configupdater" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Parser like ConfigParser but for updating configuration files"; homepage = "https://configupdater.readthedocs.io/en/latest/"; - license = with licenses; [ mit psfl ]; + license = with licenses; [ + mit + psfl + ]; maintainers = with maintainers; [ ris ]; }; } diff --git a/pkgs/development/python-modules/confluent-kafka/default.nix b/pkgs/development/python-modules/confluent-kafka/default.nix index b610f1d40590..2159735ed2eb 100644 --- a/pkgs/development/python-modules/confluent-kafka/default.nix +++ b/pkgs/development/python-modules/confluent-kafka/default.nix @@ -1,17 +1,18 @@ -{ lib -, avro -, buildPythonPackage -, fastavro -, fetchFromGitHub -, jsonschema -, protobuf -, pyflakes -, pyrsistent -, pytestCheckHook -, pythonOlder -, rdkafka -, requests -, requests-mock +{ + lib, + avro, + buildPythonPackage, + fastavro, + fetchFromGitHub, + jsonschema, + protobuf, + pyflakes, + pyrsistent, + pytestCheckHook, + pythonOlder, + rdkafka, + requests, + requests-mock, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { hash = "sha256-sPlLlp0niR45lQPCvVd6NPtGI1cFbmPeQpIF1RnnY0I="; }; - buildInputs = [ - rdkafka - ]; + buildInputs = [ rdkafka ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; passthru.optional-dependencies = { avro = [ @@ -45,9 +42,7 @@ buildPythonPackage rec { jsonschema pyrsistent ]; - protobuf = [ - protobuf - ]; + protobuf = [ protobuf ]; }; nativeCheckInputs = [ @@ -56,9 +51,7 @@ buildPythonPackage rec { requests-mock ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "confluent_kafka" - ]; + pythonImportsCheck = [ "confluent_kafka" ]; disabledTestPaths = [ "tests/integration/" diff --git a/pkgs/development/python-modules/confuse/default.nix b/pkgs/development/python-modules/confuse/default.nix index a3a979f68f87..59ba5a4b3faf 100644 --- a/pkgs/development/python-modules/confuse/default.nix +++ b/pkgs/development/python-modules/confuse/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pyyaml -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pyyaml, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-zdH5DNXnuAfYTuaG9EIKiXL2EbLSfzYjPSkC3G06bU8="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "confuse" - ]; + pythonImportsCheck = [ "confuse" ]; meta = with lib; { description = "Python configuration library for Python that uses YAML"; diff --git a/pkgs/development/python-modules/connect-box/default.nix b/pkgs/development/python-modules/connect-box/default.nix index 34ca8dbb01df..9a3a1519db78 100644 --- a/pkgs/development/python-modules/connect-box/default.nix +++ b/pkgs/development/python-modules/connect-box/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, attrs -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, pythonOlder -, pytest-asyncio -, pytestCheckHook -, setuptools -, pytest-vcr -, syrupy +{ + lib, + aiohttp, + attrs, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + pythonOlder, + pytest-asyncio, + pytestCheckHook, + setuptools, + pytest-vcr, + syrupy, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-zUvZRnxVzg9izvUbp7QVcyu6Bw3dUXHOr0kOQRWEZVc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -43,13 +42,9 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "connect_box" - ]; + pythonImportsCheck = [ "connect_box" ]; - pytestFlagsArray = [ - "--vcr-record=none" - ]; + pytestFlagsArray = [ "--vcr-record=none" ]; meta = with lib; { description = "Interact with a Compal CH7465LG cable modem/router"; diff --git a/pkgs/development/python-modules/connection-pool/default.nix b/pkgs/development/python-modules/connection-pool/default.nix index c6785a183f5e..b9767c7513ba 100644 --- a/pkgs/development/python-modules/connection-pool/default.nix +++ b/pkgs/development/python-modules/connection-pool/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/connexion/default.nix b/pkgs/development/python-modules/connexion/default.nix index 46524a80b43c..f48debb7582e 100644 --- a/pkgs/development/python-modules/connexion/default.nix +++ b/pkgs/development/python-modules/connexion/default.nix @@ -1,34 +1,35 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, asgiref -, httpx -, inflection -, jsonschema -, jinja2 -, python-multipart -, pyyaml -, requests -, starlette -, typing-extensions -, werkzeug + # dependencies + asgiref, + httpx, + inflection, + jsonschema, + jinja2, + python-multipart, + pyyaml, + requests, + starlette, + typing-extensions, + werkzeug, -# optional-dependencies -, a2wsgi -, flask -, swagger-ui-bundle -, uvicorn + # optional-dependencies + a2wsgi, + flask, + swagger-ui-bundle, + uvicorn, -# tests -, pytest-aiohttp -, pytestCheckHook -, testfixtures + # tests + pytest-aiohttp, + pytestCheckHook, + testfixtures, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { hash = "sha256-0EaJwxT80qLqlrxYk4H7Pf/UKq2pA/8HGL8OiqNA/2s="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ asgiref @@ -68,12 +67,8 @@ buildPythonPackage rec { a2wsgi flask ]; - swagger-ui = [ - swagger-ui-bundle - ]; - uvicorn = [ - uvicorn - ]; + swagger-ui = [ swagger-ui-bundle ]; + uvicorn = [ uvicorn ]; }; nativeCheckInputs = [ @@ -82,9 +77,7 @@ buildPythonPackage rec { testfixtures ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "connexion" - ]; + pythonImportsCheck = [ "connexion" ]; disabledTests = [ # AssertionError diff --git a/pkgs/development/python-modules/connio/default.nix b/pkgs/development/python-modules/connio/default.nix index 14574ab9da33..93fe3c0fa5dd 100644 --- a/pkgs/development/python-modules/connio/default.nix +++ b/pkgs/development/python-modules/connio/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, serialio -, sockio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + serialio, + sockio, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "connio" - ]; + pythonImportsCheck = [ "connio" ]; meta = with lib; { description = "Library for concurrency agnostic communication"; diff --git a/pkgs/development/python-modules/cons/default.nix b/pkgs/development/python-modules/cons/default.nix index d08f5deb3c96..2d516ac03f85 100644 --- a/pkgs/development/python-modules/cons/default.nix +++ b/pkgs/development/python-modules/cons/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, logical-unification -, py -, pytestCheckHook -, pytest-html -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + logical-unification, + py, + pytestCheckHook, + pytest-html, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-XssERKiv4A8x7dZhLeFSciN6RCEfGs0or3PAQiYSPII="; }; - propagatedBuildInputs = [ - logical-unification - ]; + propagatedBuildInputs = [ logical-unification ]; nativeCheckInputs = [ py diff --git a/pkgs/development/python-modules/consonance/default.nix b/pkgs/development/python-modules/consonance/default.nix index e13665cd5dc3..6b835fd44c56 100644 --- a/pkgs/development/python-modules/consonance/default.nix +++ b/pkgs/development/python-modules/consonance/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, dissononce -, python-axolotl-curve25519 -, transitions -, protobuf -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + dissononce, + python-axolotl-curve25519, + transitions, + protobuf, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -40,17 +41,11 @@ buildPythonPackage rec { protobuf ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/test_handshakes_offline.py" - ]; + pytestFlagsArray = [ "tests/test_handshakes_offline.py" ]; - pythonImportsCheck = [ - "consonance" - ]; + pythonImportsCheck = [ "consonance" ]; meta = with lib; { description = "WhatsApp's handshake implementation using Noise Protocol"; diff --git a/pkgs/development/python-modules/constantly/default.nix b/pkgs/development/python-modules/constantly/default.nix index a4bce3f399e4..0e0b19ecdd50 100644 --- a/pkgs/development/python-modules/constantly/default.nix +++ b/pkgs/development/python-modules/constantly/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools -, versioneer + # build-system + setuptools, + versioneer, -# tests -, twisted + # tests + twisted, }: let @@ -34,9 +35,7 @@ let # would create dependency loop with twisted doCheck = false; - nativeCheckInputs = [ - twisted - ]; + nativeCheckInputs = [ twisted ]; checkPhase = '' runHook preCheck @@ -44,9 +43,7 @@ let runHook postCheck ''; - pythonImportsCheck = [ - "constantly" - ]; + pythonImportsCheck = [ "constantly" ]; passthru.tests.constantly = self.overridePythonAttrs { doCheck = true; }; @@ -54,7 +51,7 @@ let description = "Module for symbolic constant support"; homepage = "https://github.com/twisted/constantly"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ ]; }; }; in diff --git a/pkgs/development/python-modules/construct-classes/default.nix b/pkgs/development/python-modules/construct-classes/default.nix index 386c386ef42f..e9daba610be8 100644 --- a/pkgs/development/python-modules/construct-classes/default.nix +++ b/pkgs/development/python-modules/construct-classes/default.nix @@ -1,32 +1,29 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, construct -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + construct, + pytestCheckHook, }: buildPythonPackage rec { - pname = "construct-classes"; + pname = "construct-classes"; version = "0.1.2"; format = "pyproject"; # no tests in PyPI tarball src = fetchFromGitHub { - owner = "matejcik"; - repo = "construct-classes"; - rev = "v${version}"; + owner = "matejcik"; + repo = "construct-classes"; + rev = "v${version}"; hash = "sha256-l4sVacKTuQbhXCw2lVHCl1OzpCiKmEAm9nSQ8pxFuTo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - construct - ]; + propagatedBuildInputs = [ construct ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/construct/default.nix b/pkgs/development/python-modules/construct/default.nix index 917a6f4f95db..729d6df5644d 100644 --- a/pkgs/development/python-modules/construct/default.nix +++ b/pkgs/development/python-modules/construct/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, arrow -, buildPythonPackage -, cloudpickle -, cryptography -, fetchFromGitHub -, lz4 -, numpy -, pytestCheckHook -, pythonOlder -, ruamel-yaml -, setuptools +{ + lib, + stdenv, + arrow, + buildPythonPackage, + cloudpickle, + cryptography, + fetchFromGitHub, + lz4, + numpy, + pytestCheckHook, + pythonOlder, + ruamel-yaml, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-5otjjIyje0+z/Y/C2ivmu08PNm0oJcSSvZkQfGxHDuQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ # Not an explicit dependency, but it's imported by an entrypoint @@ -50,15 +49,9 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "construct" - ]; + pythonImportsCheck = [ "construct" ]; - disabledTests = [ - "test_benchmarks" - ] ++ lib.optionals stdenv.isDarwin [ - "test_multiprocessing" - ]; + disabledTests = [ "test_benchmarks" ] ++ lib.optionals stdenv.isDarwin [ "test_multiprocessing" ]; meta = with lib; { description = "Powerful declarative parser (and builder) for binary data"; diff --git a/pkgs/development/python-modules/consul/default.nix b/pkgs/development/python-modules/consul/default.nix index a3b92ee72554..56d95aa87d90 100644 --- a/pkgs/development/python-modules/consul/default.nix +++ b/pkgs/development/python-modules/consul/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, requests, six, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + six, + pytest, +}: buildPythonPackage rec { pname = "python-consul"; @@ -10,7 +16,11 @@ buildPythonPackage rec { sha256 = "168f1fa53948047effe4f14d53fc1dab50192e2a2cf7855703f126f469ea11f4"; }; - buildInputs = [ requests six pytest ]; + buildInputs = [ + requests + six + pytest + ]; # No tests distributed. https://github.com/cablehead/python-consul/issues/133 doCheck = false; diff --git a/pkgs/development/python-modules/container-inspector/default.nix b/pkgs/development/python-modules/container-inspector/default.nix index 4a3f6918b9e8..8bfa583d7b42 100644 --- a/pkgs/development/python-modules/container-inspector/default.nix +++ b/pkgs/development/python-modules/container-inspector/default.nix @@ -1,13 +1,14 @@ -{ lib -, attrs -, buildPythonPackage -, click -, commoncode -, dockerfile-parse -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + attrs, + buildPythonPackage, + click, + commoncode, + dockerfile-parse, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace ">=3.7.*" ">=3.7" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -43,13 +42,9 @@ buildPythonPackage rec { commoncode ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "container_inspector" - ]; + pythonImportsCheck = [ "container_inspector" ]; meta = with lib; { description = "Suite of analysis utilities and command line tools for container images"; diff --git a/pkgs/development/python-modules/contexter/default.nix b/pkgs/development/python-modules/contexter/default.nix index da96829d482a..5ca090e91901 100644 --- a/pkgs/development/python-modules/contexter/default.nix +++ b/pkgs/development/python-modules/contexter/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "contexter"; @@ -10,6 +14,5 @@ buildPythonPackage rec { sha256 = "c730890b1a915051414a6350d8ea1cddca7d01d8f756badedb30b9bf305ea0a8"; }; - meta = with lib; { - }; + meta = with lib; { }; } diff --git a/pkgs/development/python-modules/contextlib2/default.nix b/pkgs/development/python-modules/contextlib2/default.nix index 19c26dbdd21c..18b18e917d61 100644 --- a/pkgs/development/python-modules/contextlib2/default.nix +++ b/pkgs/development/python-modules/contextlib2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, pythonAtLeast -, pythonOlder -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pythonAtLeast, + pythonOlder, + unittestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "contextlib2" - ]; + pythonImportsCheck = [ "contextlib2" ]; meta = with lib; { description = "Backports and enhancements for the contextlib module"; diff --git a/pkgs/development/python-modules/contexttimer/default.nix b/pkgs/development/python-modules/contexttimer/default.nix index 422ac17fb3de..de9917f0b568 100644 --- a/pkgs/development/python-modules/contexttimer/default.nix +++ b/pkgs/development/python-modules/contexttimer/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchFromGitHub -, mock -, fetchpatch -, python +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchFromGitHub, + mock, + fetchpatch, + python, }: buildPythonPackage rec { @@ -22,7 +23,7 @@ buildPythonPackage rec { }; patches = [ - # https://github.com/brouberol/contexttimer/pull/16 + # https://github.com/brouberol/contexttimer/pull/16 (fetchpatch { url = "https://github.com/brouberol/contexttimer/commit/dd65871f3f25a523a47a74f2f5306c57048592b0.patch"; hash = "sha256-vNBuFXvuvb6hWPzg4W4iyKbd4N+vofhxsKydEkc25E4="; diff --git a/pkgs/development/python-modules/contourpy/default.nix b/pkgs/development/python-modules/contourpy/default.nix index 1f606a932d2e..85c7d8539219 100644 --- a/pkgs/development/python-modules/contourpy/default.nix +++ b/pkgs/development/python-modules/contourpy/default.nix @@ -1,79 +1,84 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build -, meson -, meson-python -, ninja -, pybind11 + # build + meson, + meson-python, + ninja, + pybind11, -# propagates -, numpy + # propagates + numpy, -# optionals -, bokeh -, chromedriver -, selenium + # optionals + bokeh, + chromedriver, + selenium, -# tests -, matplotlib -, pillow -, pytestCheckHook + # tests + matplotlib, + pillow, + pytestCheckHook, }: -let contourpy = buildPythonPackage rec { - pname = "contourpy"; - version = "1.2.0"; - format = "pyproject"; +let + contourpy = buildPythonPackage rec { + pname = "contourpy"; + version = "1.2.0"; + format = "pyproject"; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.8"; - src = fetchFromGitHub { - owner = "contourpy"; - repo = "contourpy"; - rev = "refs/tags/v${version}"; - hash = "sha256-5yZrIwwe9dL5vtdSJnOhY9X4BdK/cdEY4DkVVjCq1uw="; + src = fetchFromGitHub { + owner = "contourpy"; + repo = "contourpy"; + rev = "refs/tags/v${version}"; + hash = "sha256-5yZrIwwe9dL5vtdSJnOhY9X4BdK/cdEY4DkVVjCq1uw="; + }; + + nativeBuildInputs = [ + meson + meson-python + ninja + pybind11 + ]; + + propagatedBuildInputs = [ numpy ]; + + passthru.optional-depdendencies = { + bokeh = [ + bokeh + chromedriver + selenium + ]; + }; + + doCheck = false; # infinite recursion with matplotlib, tests in passthru + + nativeCheckInputs = [ + matplotlib + pillow + pytestCheckHook + ]; + + passthru.tests = { + check = contourpy.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + pythonImportsCheck = [ "contourpy" ]; + + meta = with lib; { + changelog = "https://github.com/contourpy/contourpy/releases/tag/v${version}"; + description = "Python library for calculating contours in 2D quadrilateral grids"; + homepage = "https://github.com/contourpy/contourpy"; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; + }; }; - - nativeBuildInputs = [ - meson - meson-python - ninja - pybind11 - ]; - - propagatedBuildInputs = [ - numpy - ]; - - passthru.optional-depdendencies = { - bokeh = [ bokeh chromedriver selenium ]; - }; - - doCheck = false; # infinite recursion with matplotlib, tests in passthru - - nativeCheckInputs = [ - matplotlib - pillow - pytestCheckHook - ]; - - passthru.tests = { - check = contourpy.overridePythonAttrs (_: { doCheck = true; }); - }; - - pythonImportsCheck = [ - "contourpy" - ]; - - meta = with lib; { - changelog = "https://github.com/contourpy/contourpy/releases/tag/v${version}"; - description = "Python library for calculating contours in 2D quadrilateral grids"; - homepage = "https://github.com/contourpy/contourpy"; - license = licenses.bsd3; - maintainers = with maintainers; [ ]; - }; -}; -in contourpy +in +contourpy diff --git a/pkgs/development/python-modules/controku/default.nix b/pkgs/development/python-modules/controku/default.nix index 80c4505175f2..e41e38b8ccd4 100644 --- a/pkgs/development/python-modules/controku/default.nix +++ b/pkgs/development/python-modules/controku/default.nix @@ -1,15 +1,16 @@ -{ lib -, python3Packages -, fetchFromGitHub -, setuptools -, requests -, ssdpy -, appdirs -, pygobject3 -, gobject-introspection -, gtk3 -, wrapGAppsHook3 -, buildApplication ? false +{ + lib, + python3Packages, + fetchFromGitHub, + setuptools, + requests, + ssdpy, + appdirs, + pygobject3, + gobject-introspection, + gtk3, + wrapGAppsHook3, + buildApplication ? false, }: python3Packages.buildPythonPackage rec { @@ -24,21 +25,23 @@ python3Packages.buildPythonPackage rec { hash = "sha256-sye2GtL3a77pygllZc6ylaIP7faPb+NFbyKKyqJzIXw="; }; - nativeBuildInputs = [ - setuptools - ] ++ lib.optionals buildApplication [ - gobject-introspection - wrapGAppsHook3 - ]; + nativeBuildInputs = + [ setuptools ] + ++ lib.optionals buildApplication [ + gobject-introspection + wrapGAppsHook3 + ]; - propagatedBuildInputs = [ - requests - ssdpy - ] ++ lib.optionals buildApplication [ - gtk3 - appdirs - pygobject3 - ]; + propagatedBuildInputs = + [ + requests + ssdpy + ] + ++ lib.optionals buildApplication [ + gtk3 + appdirs + pygobject3 + ]; pythonImportsCheck = [ "controku" ]; diff --git a/pkgs/development/python-modules/convertdate/default.nix b/pkgs/development/python-modules/convertdate/default.nix index 39a935e5e850..e4c2e9bd8ec0 100644 --- a/pkgs/development/python-modules/convertdate/default.nix +++ b/pkgs/development/python-modules/convertdate/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pymeeus -, pytz -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pymeeus, + pytz, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "convertdate" - ]; + pythonImportsCheck = [ "convertdate" ]; meta = with lib; { description = "Utils for converting between date formats and calculating holidays"; diff --git a/pkgs/development/python-modules/conway-polynomials/default.nix b/pkgs/development/python-modules/conway-polynomials/default.nix index d5b57a10aa39..fdf3f76a122e 100644 --- a/pkgs/development/python-modules/conway-polynomials/default.nix +++ b/pkgs/development/python-modules/conway-polynomials/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cookiecutter/default.nix b/pkgs/development/python-modules/cookiecutter/default.nix index 6818f9021a44..80c38fda9aa3 100644 --- a/pkgs/development/python-modules/cookiecutter/default.nix +++ b/pkgs/development/python-modules/cookiecutter/default.nix @@ -1,11 +1,24 @@ -{ lib, buildPythonPackage, fetchPypi, isPyPy -, setuptools -, pytest, pytest-cov, pytest-mock, freezegun, safety, pre-commit -, jinja2, binaryornot, click, jinja2-time, requests -, python-slugify -, pyyaml -, arrow -, rich +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + setuptools, + pytest, + pytest-cov, + pytest-mock, + freezegun, + safety, + pre-commit, + jinja2, + binaryornot, + click, + jinja2-time, + requests, + python-slugify, + pyyaml, + arrow, + rich, }: buildPythonPackage rec { @@ -21,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-2yH4Fp6k9P3CQI1IykSFk0neJkf75JSp1sPt/AVCwhw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest diff --git a/pkgs/development/python-modules/cookies/default.nix b/pkgs/development/python-modules/cookies/default.nix index 3f0d64c0c22d..bd58002178d1 100644 --- a/pkgs/development/python-modules/cookies/default.nix +++ b/pkgs/development/python-modules/cookies/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - pytestCheckHook - ]; + nativeBuildInputs = [ pytestCheckHook ]; disabledTests = [ # https://gitlab.com/sashahart/cookies/-/issues/6 diff --git a/pkgs/development/python-modules/coqpit/default.nix b/pkgs/development/python-modules/coqpit/default.nix index 48954b7a9117..52487176f269 100644 --- a/pkgs/development/python-modules/coqpit/default.nix +++ b/pkgs/development/python-modules/coqpit/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-FY3PYd8dY5HFKkhD6kBzPt0k1eFugdqsO3yIN4oDk3E="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "coqpit" @@ -27,13 +26,9 @@ buildPythonPackage rec { ]; # https://github.com/coqui-ai/coqpit/issues/40 - disabledTests = lib.optionals (pythonAtLeast "3.11")[ - "test_init_argparse_list_and_nested" - ]; + disabledTests = lib.optionals (pythonAtLeast "3.11") [ "test_init_argparse_list_and_nested" ]; - disabledTestPaths = lib.optionals (pythonAtLeast "3.11")[ - "tests/test_nested_configs.py" - ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ "tests/test_nested_configs.py" ]; meta = with lib; { description = "Simple but maybe too simple config management through python data classes"; diff --git a/pkgs/development/python-modules/coredis/default.nix b/pkgs/development/python-modules/coredis/default.nix index 75626ecc07ad..753152f05ac8 100644 --- a/pkgs/development/python-modules/coredis/default.nix +++ b/pkgs/development/python-modules/coredis/default.nix @@ -1,14 +1,15 @@ -{ lib -, async-timeout -, buildPythonPackage -, deprecated -, fetchFromGitHub -, pympler -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, redis -, wrapt +{ + lib, + async-timeout, + buildPythonPackage, + deprecated, + fetchFromGitHub, + pympler, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + redis, + wrapt, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "coredis" - ]; + pythonImportsCheck = [ "coredis" ]; pytestFlagsArray = [ # All other tests require Docker diff --git a/pkgs/development/python-modules/cornice/default.nix b/pkgs/development/python-modules/cornice/default.nix index 6484e549daf7..639ddcacd487 100644 --- a/pkgs/development/python-modules/cornice/default.nix +++ b/pkgs/development/python-modules/cornice/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, pyramid -, pytestCheckHook -, pytest-cache -, webtest -, marshmallow -, colander +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + pyramid, + pytestCheckHook, + pytest-cache, + webtest, + marshmallow, + colander, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index 23a8bee16d21..1485a4232020 100644 --- a/pkgs/development/python-modules/correctionlib/default.nix +++ b/pkgs/development/python-modules/correctionlib/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cmake -, numpy -, scikit-build -, setuptools -, setuptools-scm -, wheel -, packaging -, pybind11 -, pydantic -, rich -, awkward -, pytestCheckHook -, scipy -, zlib +{ + lib, + buildPythonPackage, + fetchPypi, + cmake, + numpy, + scikit-build, + setuptools, + setuptools-scm, + wheel, + packaging, + pybind11, + pydantic, + rich, + awkward, + pytestCheckHook, + scipy, + zlib, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pybind11 ]; - buildInputs = [ - zlib - ]; + buildInputs = [ zlib ]; propagatedBuildInputs = [ numpy @@ -54,9 +53,7 @@ buildPythonPackage rec { scipy ]; - pythonImportsCheck = [ - "correctionlib" - ]; + pythonImportsCheck = [ "correctionlib" ]; meta = with lib; { description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis"; diff --git a/pkgs/development/python-modules/corsair-scan/default.nix b/pkgs/development/python-modules/corsair-scan/default.nix index 4d7190906b26..59d9bdbfb129 100644 --- a/pkgs/development/python-modules/corsair-scan/default.nix +++ b/pkgs/development/python-modules/corsair-scan/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder -, requests -, tldextract -, urllib3 -, validators +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, + requests, + tldextract, + urllib3, + validators, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "corsair_scan" - ]; + pythonImportsCheck = [ "corsair_scan" ]; disabledTests = [ # Tests want to download Public Suffix List diff --git a/pkgs/development/python-modules/cose/default.nix b/pkgs/development/python-modules/cose/default.nix index c591677b5316..3c0deed50fe3 100644 --- a/pkgs/development/python-modules/cose/default.nix +++ b/pkgs/development/python-modules/cose/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# Python deps -, attrs -, cbor2 -, certvalidator -, cryptography -, ecdsa -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # Python deps + attrs, + cbor2, + certvalidator, + cryptography, + ecdsa, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cot/default.nix b/pkgs/development/python-modules/cot/default.nix index e65bc8577e4b..a007283c43d6 100644 --- a/pkgs/development/python-modules/cot/default.nix +++ b/pkgs/development/python-modules/cot/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, colorlog -, pyvmomi -, requests -, verboselogs -, pyopenssl -, setuptools -, mock -, pytest-mock -, pytestCheckHook -, qemu +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + colorlog, + pyvmomi, + requests, + verboselogs, + pyopenssl, + setuptools, + mock, + pytest-mock, + pytestCheckHook, + qemu, }: buildPythonPackage rec { @@ -70,13 +71,9 @@ buildPythonPackage rec { "test_serial_fixup_stubbed" "test_serial_fixup_stubbed_create" "test_serial_fixup_stubbed_vm_not_found" - ] ++ lib.optionals stdenv.isDarwin [ - "test_serial_fixup_invalid_host" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_serial_fixup_invalid_host" ]; - pythonImportsCheck = [ - "COT" - ]; + pythonImportsCheck = [ "COT" ]; meta = with lib; { description = "Common OVF Tool"; diff --git a/pkgs/development/python-modules/coverage/default.nix b/pkgs/development/python-modules/coverage/default.nix index 43919f97fc2f..2c23c43fd65f 100644 --- a/pkgs/development/python-modules/coverage/default.nix +++ b/pkgs/development/python-modules/coverage/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-yQHfg9CXZJ4lfoA74iWSrt/VGC8Hs8yH1kC7ua/VD0k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # No tests in archive doCheck = false; diff --git a/pkgs/development/python-modules/coveralls/default.nix b/pkgs/development/python-modules/coveralls/default.nix index c1b144109bea..2e2e23e44d65 100644 --- a/pkgs/development/python-modules/coveralls/default.nix +++ b/pkgs/development/python-modules/coveralls/default.nix @@ -1,17 +1,18 @@ -{ buildPythonPackage -, lib -, fetchPypi -, isPy27 -, mock -, pytest -, pytest-runner -, sh -, coverage -, docopt -, requests -, urllib3 -, git -, isPy3k +{ + buildPythonPackage, + lib, + fetchPypi, + isPy27, + mock, + pytest, + pytest-runner, + sh, + coverage, + docopt, + requests, + urllib3, + git, + isPy3k, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { git ]; - buildInputs = [ - pytest-runner - ]; + buildInputs = [ pytest-runner ]; postPatch = '' sed -i "s/'coverage>=\([^,]\+\),.*',$/'coverage>=\1',/" setup.py @@ -61,5 +60,3 @@ buildPythonPackage rec { license = lib.licenses.mit; }; } - - diff --git a/pkgs/development/python-modules/cppe/default.nix b/pkgs/development/python-modules/cppe/default.nix index 64e88190dc82..e3b007d480e0 100644 --- a/pkgs/development/python-modules/cppe/default.nix +++ b/pkgs/development/python-modules/cppe/default.nix @@ -1,23 +1,29 @@ -{ buildPythonPackage -, lib -, stdenv -, cmake -, cppe -, eigen -, python -, pybind11 -, numpy -, h5py -, numba -, scipy -, pandas -, polarizationsolver -, pytest -, llvmPackages +{ + buildPythonPackage, + lib, + stdenv, + cmake, + cppe, + eigen, + python, + pybind11, + numpy, + h5py, + numba, + scipy, + pandas, + polarizationsolver, + pytest, + llvmPackages, }: buildPythonPackage rec { - inherit (cppe) pname version src meta; + inherit (cppe) + pname + version + src + meta + ; # The python interface requires eigen3, but builds from a checkout in tree. # Using the nixpkgs version instead. @@ -35,8 +41,7 @@ buildPythonPackage rec { format = "setuptools"; - buildInputs = [ pybind11 ] - ++ lib.optional stdenv.cc.isClang llvmPackages.openmp; + buildInputs = [ pybind11 ] ++ lib.optional stdenv.cc.isClang llvmPackages.openmp; NIX_CFLAGS_LINK = lib.optional stdenv.cc.isClang "-lomp"; diff --git a/pkgs/development/python-modules/cppheaderparser/default.nix b/pkgs/development/python-modules/cppheaderparser/default.nix index cb834b1d48a1..80aea1678ae7 100644 --- a/pkgs/development/python-modules/cppheaderparser/default.nix +++ b/pkgs/development/python-modules/cppheaderparser/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, ply -, lib +{ + buildPythonPackage, + fetchPypi, + ply, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cppy/default.nix b/pkgs/development/python-modules/cppy/default.nix index 230925a213e9..f2fd2f3012cc 100644 --- a/pkgs/development/python-modules/cppy/default.nix +++ b/pkgs/development/python-modules/cppy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-g7Q78XsQhawVxd69tCFU8Ti5KCNLIURzWJgfadDW/hs="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/cpufeature/default.nix b/pkgs/development/python-modules/cpufeature/default.nix index cade32a1955b..13f364fb00ee 100644 --- a/pkgs/development/python-modules/cpufeature/default.nix +++ b/pkgs/development/python-modules/cpufeature/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-dp569Tp8E5/avQpYvhPNPgS/A+q2e/ie+7BR7h2Ip+I="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "cpufeature" - ]; + pythonImportsCheck = [ "cpufeature" ]; preCheck = '' # Change into the test directory due to a relative resource path @@ -46,6 +39,9 @@ buildPythonPackage rec { homepage = "https://github.com/robbmcleod/cpufeature"; license = licenses.cc0; maintainers = with maintainers; [ fab ]; - platforms = [ "x86_64-linux" "x86_64-windows" ]; + platforms = [ + "x86_64-linux" + "x86_64-windows" + ]; }; } diff --git a/pkgs/development/python-modules/cpyparsing/default.nix b/pkgs/development/python-modules/cpyparsing/default.nix index e063e8847d43..37cbd74567ee 100644 --- a/pkgs/development/python-modules/cpyparsing/default.nix +++ b/pkgs/development/python-modules/cpyparsing/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, pexpect -, python -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + pexpect, + python, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,17 +28,13 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pexpect - ]; + nativeCheckInputs = [ pexpect ]; checkPhase = '' ${python.interpreter} tests/cPyparsing_test.py ''; - pythonImportsCheck = [ - "cPyparsing" - ]; + pythonImportsCheck = [ "cPyparsing" ]; meta = with lib; { description = "Cython PyParsing implementation"; diff --git a/pkgs/development/python-modules/craft-application-1/default.nix b/pkgs/development/python-modules/craft-application-1/default.nix index 50685f0c16ce..49e1685e35f3 100644 --- a/pkgs/development/python-modules/craft-application-1/default.nix +++ b/pkgs/development/python-modules/craft-application-1/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, craft-cli -, craft-parts -, craft-providers -, pydantic-yaml-0 -, pyyaml -, setuptools -, setuptools-scm -, pytestCheckHook -, pytest-check -, pytest-mock -, hypothesis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + craft-cli, + craft-parts, + craft-providers, + pydantic-yaml-0, + pyyaml, + setuptools, + setuptools-scm, + pytestCheckHook, + pytest-check, + pytest-mock, + hypothesis, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { pyyaml ]; - pythonImportsCheck = [ - "craft_application" - ]; + pythonImportsCheck = [ "craft_application" ]; nativeCheckInputs = [ hypothesis @@ -66,9 +65,7 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests/unit" ]; - disabledTests = [ - "test_to_yaml_file" - ]; + disabledTests = [ "test_to_yaml_file" ]; passthru.updateScript = nix-update-script { }; @@ -81,4 +78,3 @@ buildPythonPackage rec { platforms = lib.platforms.linux; }; } - diff --git a/pkgs/development/python-modules/craft-application/default.nix b/pkgs/development/python-modules/craft-application/default.nix index 998be770d518..61699d21d6ae 100644 --- a/pkgs/development/python-modules/craft-application/default.nix +++ b/pkgs/development/python-modules/craft-application/default.nix @@ -92,16 +92,18 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests/unit" ]; - disabledTests = [ - "test_to_yaml_file" - # Tests expecting pytest-time - "test_monitor_builds_success" - ] ++ lib.optionals stdenv.isAarch64 [ - # These tests have hardcoded "amd64" strings which fail on aarch64 - "test_process_grammar_build_for" - "test_process_grammar_platform" - "test_process_grammar_default" - ]; + disabledTests = + [ + "test_to_yaml_file" + # Tests expecting pytest-time + "test_monitor_builds_success" + ] + ++ lib.optionals stdenv.isAarch64 [ + # These tests have hardcoded "amd64" strings which fail on aarch64 + "test_process_grammar_build_for" + "test_process_grammar_platform" + "test_process_grammar_default" + ]; passthru.updateScript = nix-update-script { }; diff --git a/pkgs/development/python-modules/craft-archives/default.nix b/pkgs/development/python-modules/craft-archives/default.nix index 3fb3b0e9f0fa..1465d6d9957a 100644 --- a/pkgs/development/python-modules/craft-archives/default.nix +++ b/pkgs/development/python-modules/craft-archives/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, launchpadlib -, lazr-restfulclient -, overrides -, pydantic_1 -, setuptools -, setuptools-scm -, tabulate -, pytest-check -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + launchpadlib, + lazr-restfulclient, + overrides, + pydantic_1, + setuptools, + setuptools-scm, + tabulate, + pytest-check, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { tabulate ]; - pythonImportsCheck = [ - "craft_archives" - ]; + pythonImportsCheck = [ "craft_archives" ]; nativeCheckInputs = [ pytest-check @@ -71,4 +70,3 @@ buildPythonPackage rec { platforms = lib.platforms.linux; }; } - diff --git a/pkgs/development/python-modules/craft-cli/default.nix b/pkgs/development/python-modules/craft-cli/default.nix index 17537a0c9967..c8cd94a8be3c 100644 --- a/pkgs/development/python-modules/craft-cli/default.nix +++ b/pkgs/development/python-modules/craft-cli/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, platformdirs -, pydantic_1 -, pyyaml -, setuptools -, setuptools-scm -, pytest-check -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + platformdirs, + pydantic_1, + pyyaml, + setuptools, + setuptools-scm, + pytest-check, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { pyyaml ]; - pythonImportsCheck = [ - "craft_cli" - ]; + pythonImportsCheck = [ "craft_cli" ]; nativeCheckInputs = [ pytest-check diff --git a/pkgs/development/python-modules/craft-grammar/default.nix b/pkgs/development/python-modules/craft-grammar/default.nix index 61a07f4d7c06..82c0fef4b067 100644 --- a/pkgs/development/python-modules/craft-grammar/default.nix +++ b/pkgs/development/python-modules/craft-grammar/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, overrides -, setuptools -, pytest-check -, pytest-mock -, pytestCheckHook -, pydantic_1 -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + overrides, + setuptools, + pytest-check, + pytest-mock, + pytestCheckHook, + pydantic_1, + pyyaml, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { hash = "sha256-YQpxgdmUxYLkhAXDLlkLAK6VpjIEycLFY3nsE/M4o2g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - overrides - ]; + propagatedBuildInputs = [ overrides ]; - pythonImportsCheck = [ - "craft_grammar" - ]; + pythonImportsCheck = [ "craft_grammar" ]; nativeCheckInputs = [ pydantic_1 @@ -55,4 +50,3 @@ buildPythonPackage rec { platforms = lib.platforms.linux; }; } - diff --git a/pkgs/development/python-modules/craft-parts/default.nix b/pkgs/development/python-modules/craft-parts/default.nix index e2fe76251444..83fbd2f7bb02 100644 --- a/pkgs/development/python-modules/craft-parts/default.nix +++ b/pkgs/development/python-modules/craft-parts/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, overrides -, pydantic_1 -, pydantic-yaml-0 -, pyxdg -, pyyaml -, requests -, requests-unixsocket -, types-pyyaml -, urllib3 -, pytestCheckHook -, pytest-check -, pytest-mock -, pytest-subprocess -, requests-mock -, hypothesis -, git -, squashfsTools -, setuptools -, setuptools-scm -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + overrides, + pydantic_1, + pydantic-yaml-0, + pyxdg, + pyyaml, + requests, + requests-unixsocket, + types-pyyaml, + urllib3, + pytestCheckHook, + pytest-check, + pytest-mock, + pytest-subprocess, + requests-mock, + hypothesis, + git, + squashfsTools, + setuptools, + setuptools-scm, + stdenv, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-JEf5JYDBH4Pm5ke++7GkpimM8Ec0dFe1GGxruntjmVE="; }; - patches = [ - ./bash-path.patch - ]; + patches = [ ./bash-path.patch ]; postPatch = '' substituteInPlace setup.py \ @@ -64,9 +63,7 @@ buildPythonPackage rec { urllib3 ]; - pythonImportsCheck = [ - "craft_parts" - ]; + pythonImportsCheck = [ "craft_parts" ]; nativeCheckInputs = [ git @@ -93,22 +90,24 @@ buildPythonPackage rec { "test_get_build_packages" ]; - disabledTestPaths = [ - # Relies upon filesystem extended attributes, and suid/guid bits - "tests/unit/sources/test_base.py" - "tests/unit/packages/test_base.py" - "tests/unit/state_manager" - "tests/unit/test_xattrs.py" - "tests/unit/packages/test_normalize.py" - # Relies upon presence of apt/dpkg. - "tests/unit/packages/test_apt_cache.py" - "tests/unit/packages/test_deb.py" - "tests/unit/packages/test_chisel.py" - ] ++ lib.optionals stdenv.isAarch64 [ - # These tests have hardcoded "amd64" strings which fail on aarch64 - "tests/unit/executor/test_environment.py" - "tests/unit/features/overlay/test_executor_environment.py" - ]; + disabledTestPaths = + [ + # Relies upon filesystem extended attributes, and suid/guid bits + "tests/unit/sources/test_base.py" + "tests/unit/packages/test_base.py" + "tests/unit/state_manager" + "tests/unit/test_xattrs.py" + "tests/unit/packages/test_normalize.py" + # Relies upon presence of apt/dpkg. + "tests/unit/packages/test_apt_cache.py" + "tests/unit/packages/test_deb.py" + "tests/unit/packages/test_chisel.py" + ] + ++ lib.optionals stdenv.isAarch64 [ + # These tests have hardcoded "amd64" strings which fail on aarch64 + "tests/unit/executor/test_environment.py" + "tests/unit/features/overlay/test_executor_environment.py" + ]; passthru.updateScript = nix-update-script { }; @@ -121,4 +120,3 @@ buildPythonPackage rec { platforms = lib.platforms.linux; }; } - diff --git a/pkgs/development/python-modules/craft-providers/default.nix b/pkgs/development/python-modules/craft-providers/default.nix index 4f463e628bd6..e4927e69612b 100644 --- a/pkgs/development/python-modules/craft-providers/default.nix +++ b/pkgs/development/python-modules/craft-providers/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, packaging -, platformdirs -, pydantic_1 -, pyyaml -, requests-unixsocket -, setuptools -, setuptools-scm -, urllib3 -, pytest-check -, pytest-mock -, pytestCheckHook -, responses -, freezegun -, pytest-subprocess -, pytest-logdog +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + packaging, + platformdirs, + pydantic_1, + pyyaml, + requests-unixsocket, + setuptools, + setuptools-scm, + urllib3, + pytest-check, + pytest-mock, + pytestCheckHook, + responses, + freezegun, + pytest-subprocess, + pytest-logdog, }: buildPythonPackage rec { @@ -69,9 +70,7 @@ buildPythonPackage rec { urllib3 ]; - pythonImportsCheck = [ - "craft_providers" - ]; + pythonImportsCheck = [ "craft_providers" ]; nativeCheckInputs = [ freezegun diff --git a/pkgs/development/python-modules/cram/default.nix b/pkgs/development/python-modules/cram/default.nix index 4efc13b53038..b8e38ffb1dab 100644 --- a/pkgs/development/python-modules/cram/default.nix +++ b/pkgs/development/python-modules/cram/default.nix @@ -1,4 +1,11 @@ -{stdenv, lib, buildPythonPackage, fetchPypi, bash, which}: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + bash, + which, +}: buildPythonPackage rec { version = "0.7"; diff --git a/pkgs/development/python-modules/crashtest/default.nix b/pkgs/development/python-modules/crashtest/default.nix index 296c80eae54a..5b0df404ee77 100644 --- a/pkgs/development/python-modules/crashtest/default.nix +++ b/pkgs/development/python-modules/crashtest/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pythonAtLeast }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, +}: buildPythonPackage rec { pname = "crashtest"; diff --git a/pkgs/development/python-modules/crate/default.nix b/pkgs/development/python-modules/crate/default.nix index a7e03d3ecad4..c770de801680 100644 --- a/pkgs/development/python-modules/crate/default.nix +++ b/pkgs/development/python-modules/crate/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchPypi -, buildPythonPackage -, fetchpatch -, dask -, urllib3 -, geojson -, verlib2 -, pueblo -, pandas -, pythonOlder -, sqlalchemy -, pytestCheckHook -, pytz +{ + lib, + fetchPypi, + buildPythonPackage, + fetchpatch, + dask, + urllib3, + geojson, + verlib2, + pueblo, + pandas, + pythonOlder, + sqlalchemy, + pytestCheckHook, + pytz, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/crayons/default.nix b/pkgs/development/python-modules/crayons/default.nix index c52cede171a2..30810bb9d224 100644 --- a/pkgs/development/python-modules/crayons/default.nix +++ b/pkgs/development/python-modules/crayons/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, colorama }: +{ + lib, + fetchPypi, + buildPythonPackage, + colorama, +}: buildPythonPackage rec { pname = "crayons"; diff --git a/pkgs/development/python-modules/crc32c/default.nix b/pkgs/development/python-modules/crc32c/default.nix index 66d77756f780..a4cf7924c979 100644 --- a/pkgs/development/python-modules/crc32c/default.nix +++ b/pkgs/development/python-modules/crc32c/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, +}: buildPythonPackage rec { version = "2.3.post0"; diff --git a/pkgs/development/python-modules/crccheck/default.nix b/pkgs/development/python-modules/crccheck/default.nix index 0a9302b8841d..2bf31ea69c81 100644 --- a/pkgs/development/python-modules/crccheck/default.nix +++ b/pkgs/development/python-modules/crccheck/default.nix @@ -1,14 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + unittestCheckHook, }: let pname = "crccheck"; version = "1.3.0"; -in buildPythonPackage { +in +buildPythonPackage { inherit pname version; format = "setuptools"; @@ -21,9 +23,7 @@ in buildPythonPackage { hash = "sha256-nujt3RWupvCtk7gORejtSwqqVjW9VwztOVGXBHW9T+k="; }; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { description = "Python library for CRCs and checksums"; diff --git a/pkgs/development/python-modules/crcmod/default.nix b/pkgs/development/python-modules/crcmod/default.nix index 9bc2c6ac70e1..beff240c986e 100644 --- a/pkgs/development/python-modules/crcmod/default.nix +++ b/pkgs/development/python-modules/crcmod/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "crcmod"; diff --git a/pkgs/development/python-modules/criticality-score/default.nix b/pkgs/development/python-modules/criticality-score/default.nix index ffea5ad31dad..41b6b301f370 100644 --- a/pkgs/development/python-modules/criticality-score/default.nix +++ b/pkgs/development/python-modules/criticality-score/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pygithub, python-gitlab }: +{ + lib, + buildPythonPackage, + fetchPypi, + pygithub, + python-gitlab, +}: buildPythonPackage rec { pname = "criticality_score"; @@ -9,7 +15,10 @@ buildPythonPackage rec { hash = "sha256-5XkVT0blnLG158a01jDfQl1Rx9U1LMsqaMjTdN7Q4QQ="; }; - propagatedBuildInputs = [ pygithub python-gitlab ]; + propagatedBuildInputs = [ + pygithub + python-gitlab + ]; doCheck = false; diff --git a/pkgs/development/python-modules/cron-descriptor/default.nix b/pkgs/development/python-modules/cron-descriptor/default.nix index d4283b3af6ec..d98630e3a381 100644 --- a/pkgs/development/python-modules/cron-descriptor/default.nix +++ b/pkgs/development/python-modules/cron-descriptor/default.nix @@ -1,9 +1,10 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sed -i "/'pep8\|flake8\|pep8-naming',/d" setup.py ''; - checkInputs = [ - mock - ]; + checkInputs = [ mock ]; checkPhase = '' ${python.interpreter} setup.py test diff --git a/pkgs/development/python-modules/croniter/default.nix b/pkgs/development/python-modules/croniter/default.nix index 86786baa2ee8..b92c7cc2ecd3 100644 --- a/pkgs/development/python-modules/croniter/default.nix +++ b/pkgs/development/python-modules/croniter/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, tzlocal +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + tzlocal, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-8fjKCvZCEvvpmxvuEl7lobU6nBtDOWjYvKiBe3nSN/M="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ python-dateutil @@ -35,9 +34,7 @@ buildPythonPackage rec { tzlocal ]; - pythonImportsCheck = [ - "croniter" - ]; + pythonImportsCheck = [ "croniter" ]; meta = with lib; { description = "Library to iterate over datetime object with cron like format"; diff --git a/pkgs/development/python-modules/cronsim/default.nix b/pkgs/development/python-modules/cronsim/default.nix index 098dbe711d9d..2ecb45c3a73a 100644 --- a/pkgs/development/python-modules/cronsim/default.nix +++ b/pkgs/development/python-modules/cronsim/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-TSVFkMCMmrMXaPJPPNjIML+z98i1iIYuKH7hHiZnJkg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cronsim" - ]; + pythonImportsCheck = [ "cronsim" ]; meta = with lib; { description = "Cron expression parser and evaluator"; diff --git a/pkgs/development/python-modules/crontab/default.nix b/pkgs/development/python-modules/crontab/default.nix index fea3e9909b70..7bb780ab0157 100644 --- a/pkgs/development/python-modules/crontab/default.nix +++ b/pkgs/development/python-modules/crontab/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, python-dateutil -, pytz -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + python-dateutil, + pytz, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-8vMkgBU1jIluo9+hAvk2KNM+Wn0+PvJqFNwX+JLXD+w="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook @@ -32,9 +31,7 @@ buildPythonPackage rec { pytz ]; - pythonImportsCheck = [ - "crontab" - ]; + pythonImportsCheck = [ "crontab" ]; meta = with lib; { description = "Parse and use crontab schedules in Python"; diff --git a/pkgs/development/python-modules/crossplane/default.nix b/pkgs/development/python-modules/crossplane/default.nix index d69708b8e212..fba9c59aa326 100644 --- a/pkgs/development/python-modules/crossplane/default.nix +++ b/pkgs/development/python-modules/crossplane/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pytestCheckHook -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + pytestCheckHook, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-DfIF+JvjIREi7zd5ZQ7Co/CIKC5iUeOgR/VLDPmrtTQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "crossplane" - ]; + pythonImportsCheck = [ "crossplane" ]; meta = with lib; { description = "NGINX configuration file parser and builder"; diff --git a/pkgs/development/python-modules/crownstone-core/default.nix b/pkgs/development/python-modules/crownstone-core/default.nix index b03f76f8f853..7e297cce4f55 100644 --- a/pkgs/development/python-modules/crownstone-core/default.nix +++ b/pkgs/development/python-modules/crownstone-core/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyaes -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyaes, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-zrlCzx7N3aUcTUNa64jSzDdWgQneX+Hc5n8TTTcZ4ck="; }; - propagatedBuildInputs = [ - pyaes - ]; + propagatedBuildInputs = [ pyaes ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "crownstone_core" - ]; + pythonImportsCheck = [ "crownstone_core" ]; meta = with lib; { description = "Python module with shared classes, util functions and definition of Crownstone"; diff --git a/pkgs/development/python-modules/crownstone-uart/default.nix b/pkgs/development/python-modules/crownstone-uart/default.nix index edfd9dff59e9..177b319ca4cb 100644 --- a/pkgs/development/python-modules/crownstone-uart/default.nix +++ b/pkgs/development/python-modules/crownstone-uart/default.nix @@ -1,9 +1,10 @@ -{ lib -, crownstone-core -, buildPythonPackage -, pyserial -, fetchFromGitHub -, pythonOlder +{ + lib, + crownstone-core, + buildPythonPackage, + pyserial, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "crownstone_uart" - ]; + pythonImportsCheck = [ "crownstone_uart" ]; meta = with lib; { description = "Python module for communicating with Crownstone USB dongles"; diff --git a/pkgs/development/python-modules/cryptg/default.nix b/pkgs/development/python-modules/cryptg/default.nix index 52fec2afc231..43e5ac7e6163 100644 --- a/pkgs/development/python-modules/cryptg/default.nix +++ b/pkgs/development/python-modules/cryptg/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, cargo -, rustPlatform -, rustc -, setuptools-rust -, libiconv +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + cargo, + rustPlatform, + rustc, + setuptools-rust, + libiconv, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { cargo ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/cryptodatahub/default.nix b/pkgs/development/python-modules/cryptodatahub/default.nix index 0a42e56d405a..ae898e42b759 100644 --- a/pkgs/development/python-modules/cryptodatahub/default.nix +++ b/pkgs/development/python-modules/cryptodatahub/default.nix @@ -1,17 +1,18 @@ -{ lib -, asn1crypto -, attrs -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitLab -, pathlib2 -, pyfakefs -, python-dateutil -, pythonOlder -, setuptools -, six -, unittestCheckHook -, urllib3 +{ + lib, + asn1crypto, + attrs, + beautifulsoup4, + buildPythonPackage, + fetchFromGitLab, + pathlib2, + pyfakefs, + python-dateutil, + pythonOlder, + setuptools, + six, + unittestCheckHook, + urllib3, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace-fail "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ asn1crypto @@ -52,10 +51,7 @@ buildPythonPackage rec { unittestCheckHook ]; - pythonImportsCheck = [ - "cryptodatahub" - ]; - + pythonImportsCheck = [ "cryptodatahub" ]; preCheck = '' # failing tests diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 838ae389d38f..bd3de723a8a4 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, buildPythonPackage -, callPackage -, cargo -, certifi -, cffi -, cryptography-vectors ? (callPackage ./vectors.nix { }) -, fetchPypi -, fetchpatch2 -, isPyPy -, libiconv -, libxcrypt -, openssl -, pkg-config -, pretend -, pytest-xdist -, pytestCheckHook -, pythonOlder -, rustc -, rustPlatform -, Security -, setuptoolsRustBuildHook +{ + lib, + stdenv, + buildPythonPackage, + callPackage, + cargo, + certifi, + cffi, + cryptography-vectors ? (callPackage ./vectors.nix { }), + fetchPypi, + fetchpatch2, + isPyPy, + libiconv, + libxcrypt, + openssl, + pkg-config, + pretend, + pytest-xdist, + pytestCheckHook, + pythonOlder, + rustc, + rustPlatform, + Security, + setuptoolsRustBuildHook, }: buildPythonPackage rec { @@ -63,22 +64,17 @@ buildPythonPackage rec { cargo rustc pkg-config - ] ++ lib.optionals (!isPyPy) [ - cffi - ]; + ] ++ lib.optionals (!isPyPy) [ cffi ]; - buildInputs = [ - openssl - ] ++ lib.optionals stdenv.isDarwin [ - Security - libiconv - ] ++ lib.optionals (pythonOlder "3.9") [ - libxcrypt - ]; + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.isDarwin [ + Security + libiconv + ] + ++ lib.optionals (pythonOlder "3.9") [ libxcrypt ]; - propagatedBuildInputs = lib.optionals (!isPyPy) [ - cffi - ]; + propagatedBuildInputs = lib.optionals (!isPyPy) [ cffi ]; nativeCheckInputs = [ certifi @@ -88,9 +84,7 @@ buildPythonPackage rec { pytest-xdist ]; - pytestFlagsArray = [ - "--disable-pytest-warnings" - ]; + pytestFlagsArray = [ "--disable-pytest-warnings" ]; disabledTestPaths = [ # save compute time by not running benchmarks @@ -105,9 +99,13 @@ buildPythonPackage rec { digests, and key derivation functions. ''; homepage = "https://github.com/pyca/cryptography"; - changelog = "https://cryptography.io/en/latest/changelog/#v" - + replaceStrings [ "." ] [ "-" ] version; - license = with licenses; [ asl20 bsd3 psfl ]; + changelog = + "https://cryptography.io/en/latest/changelog/#v" + replaceStrings [ "." ] [ "-" ] version; + license = with licenses; [ + asl20 + bsd3 + psfl + ]; maintainers = with maintainers; [ SuperSandro2000 ]; }; } diff --git a/pkgs/development/python-modules/cryptography/vectors.nix b/pkgs/development/python-modules/cryptography/vectors.nix index a19ab7579d1f..85476ca49281 100644 --- a/pkgs/development/python-modules/cryptography/vectors.nix +++ b/pkgs/development/python-modules/cryptography/vectors.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cryptography -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, + flit-core, }: buildPythonPackage rec { @@ -17,22 +18,21 @@ buildPythonPackage rec { hash = "sha256-UFzV47DLMtoVJvBwQrf8OKS2w1ZxDLc9K192sDejjtE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # No tests included doCheck = false; - pythonImportsCheck = [ - "cryptography_vectors" - ]; + pythonImportsCheck = [ "cryptography_vectors" ]; meta = with lib; { description = "Test vectors for the cryptography package"; homepage = "https://cryptography.io/en/latest/development/test-vectors/"; downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors"; - license = with licenses; [ asl20 bsd3 ]; + license = with licenses; [ + asl20 + bsd3 + ]; maintainers = with maintainers; [ SuperSandro2000 ]; }; } diff --git a/pkgs/development/python-modules/cryptolyzer/default.nix b/pkgs/development/python-modules/cryptolyzer/default.nix index 755f141c7509..56af4ceb5901 100644 --- a/pkgs/development/python-modules/cryptolyzer/default.nix +++ b/pkgs/development/python-modules/cryptolyzer/default.nix @@ -1,19 +1,20 @@ -{ lib -, attrs -, beautifulsoup4 -, buildPythonPackage -, certvalidator -, colorama -, cryptoparser -, dnspython -, fetchPypi -, pathlib2 -, pyfakefs -, python-dateutil -, pythonOlder -, requests -, setuptools -, urllib3 +{ + lib, + attrs, + beautifulsoup4, + buildPythonPackage, + certvalidator, + colorama, + cryptoparser, + dnspython, + fetchPypi, + pathlib2, + pyfakefs, + python-dateutil, + pythonOlder, + requests, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { --replace-warn "bs4" "beautifulsoup4" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs @@ -56,9 +55,7 @@ buildPythonPackage rec { # Tests require networking doCheck = false; - pythonImportsCheck = [ - "cryptolyzer" - ]; + pythonImportsCheck = [ "cryptolyzer" ]; meta = with lib; { description = "Cryptographic protocol analyzer"; diff --git a/pkgs/development/python-modules/crysp/default.nix b/pkgs/development/python-modules/crysp/default.nix index dd8d43eac84b..d3a555a6d801 100644 --- a/pkgs/development/python-modules/crysp/default.nix +++ b/pkgs/development/python-modules/crysp/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, grandalf -, matplotlib -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + grandalf, + matplotlib, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { matplotlib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'," "" ''; - pythonImportsCheck = [ - "crysp" - ]; + pythonImportsCheck = [ "crysp" ]; meta = with lib; { description = "Module that provides crypto-related facilities"; diff --git a/pkgs/development/python-modules/crytic-compile/default.nix b/pkgs/development/python-modules/crytic-compile/default.nix index 2bcda1d7fd72..41a3d80a50ce 100644 --- a/pkgs/development/python-modules/crytic-compile/default.nix +++ b/pkgs/development/python-modules/crytic-compile/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cbor2 -, fetchFromGitHub -, pycryptodome -, pythonOlder -, setuptools -, solc-select -, toml +{ + lib, + buildPythonPackage, + cbor2, + fetchFromGitHub, + pycryptodome, + pythonOlder, + setuptools, + solc-select, + toml, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { # required for import check to work # PermissionError: [Errno 13] Permission denied: '/homeless-shelter' env.HOME = "/tmp"; - pythonImportsCheck = [ - "crytic_compile" - ]; + pythonImportsCheck = [ "crytic_compile" ]; meta = with lib; { description = "Abstraction layer for smart contract build systems"; @@ -47,6 +46,9 @@ buildPythonPackage rec { homepage = "https://github.com/crytic/crytic-compile"; changelog = "https://github.com/crytic/crytic-compile/releases/tag/${version}"; license = licenses.agpl3Plus; - maintainers = with maintainers; [ arturcygan hellwolf ]; + maintainers = with maintainers; [ + arturcygan + hellwolf + ]; }; } diff --git a/pkgs/development/python-modules/cson/default.nix b/pkgs/development/python-modules/cson/default.nix index b16ee0202b2d..93ecd41a3ae6 100644 --- a/pkgs/development/python-modules/cson/default.nix +++ b/pkgs/development/python-modules/cson/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, speg +{ + lib, + buildPythonPackage, + fetchPypi, + speg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/csrmesh/default.nix b/pkgs/development/python-modules/csrmesh/default.nix index 81f3a25b34e5..19302c709000 100644 --- a/pkgs/development/python-modules/csrmesh/default.nix +++ b/pkgs/development/python-modules/csrmesh/default.nix @@ -1,8 +1,9 @@ -{ lib -, bluepy -, buildPythonPackage -, fetchPypi -, pycryptodomex +{ + lib, + bluepy, + buildPythonPackage, + fetchPypi, + pycryptodomex, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/css-html-js-minify/default.nix b/pkgs/development/python-modules/css-html-js-minify/default.nix index f84dfbcaaecb..a1a26dd9eaa6 100644 --- a/pkgs/development/python-modules/css-html-js-minify/default.nix +++ b/pkgs/development/python-modules/css-html-js-minify/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -22,7 +23,11 @@ buildPythonPackage rec { description = "StandAlone Async cross-platform Minifier for the Web"; mainProgram = "css-html-js-minify"; homepage = "https://github.com/juancarlospaco/css-html-js-minify"; - license = with licenses; [ gpl3Plus lgpl3Plus mit ]; + license = with licenses; [ + gpl3Plus + lgpl3Plus + mit + ]; maintainers = with maintainers; [ FlorianFranzen ]; }; } diff --git a/pkgs/development/python-modules/css-inline/default.nix b/pkgs/development/python-modules/css-inline/default.nix index a265fcafeb97..b9faf71842b6 100644 --- a/pkgs/development/python-modules/css-inline/default.nix +++ b/pkgs/development/python-modules/css-inline/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, rustPlatform + # build-system + rustPlatform, -# native darwin dependencies -, libiconv -, Security -, SystemConfiguration + # native darwin dependencies + libiconv, + Security, + SystemConfiguration, -# tests -, pytestCheckHook -, hypothesis + # tests + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { @@ -56,23 +57,23 @@ buildPythonPackage rec { SystemConfiguration ]; - pythonImportsCheck = [ - "css_inline" - ]; + pythonImportsCheck = [ "css_inline" ]; nativeCheckInputs = [ hypothesis pytestCheckHook ]; - disabledTests = [ - # fails to connect to local server - "test_cache" - "test_remote_stylesheet" - ] ++ lib.optionals (stdenv.isDarwin) [ - # pyo3_runtime.PanicException: event loop thread panicked - "test_invalid_href" - ]; + disabledTests = + [ + # fails to connect to local server + "test_cache" + "test_remote_stylesheet" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # pyo3_runtime.PanicException: event loop thread panicked + "test_invalid_href" + ]; meta = with lib; { description = "Inline CSS into style attributes"; diff --git a/pkgs/development/python-modules/css-parser/default.nix b/pkgs/development/python-modules/css-parser/default.nix index bd2a3258d0b0..35ecc0c6bda3 100644 --- a/pkgs/development/python-modules/css-parser/default.nix +++ b/pkgs/development/python-modules/css-parser/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { # See https://github.com/ebook-utils/css-parser/pull/2 doCheck = false; - pythonImportsCheck = [ - "css_parser" - ]; + pythonImportsCheck = [ "css_parser" ]; meta = with lib; { description = "A CSS Cascading Style Sheets library for Python"; diff --git a/pkgs/development/python-modules/cssbeautifier/default.nix b/pkgs/development/python-modules/cssbeautifier/default.nix index 1fc1aeed8437..ebb76a8346d3 100644 --- a/pkgs/development/python-modules/cssbeautifier/default.nix +++ b/pkgs/development/python-modules/cssbeautifier/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, editorconfig -, fetchPypi -, jsbeautifier -, pythonOlder -, setuptools -, six +{ + lib, + buildPythonPackage, + editorconfig, + fetchPypi, + jsbeautifier, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-n3BkNirt1VnFXu7Pa2vtZeBfM0iNy+OQRPBAPCbhwAY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ editorconfig @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "cssbeautifier" - ]; + pythonImportsCheck = [ "cssbeautifier" ]; meta = with lib; { description = "CSS unobfuscator and beautifier"; diff --git a/pkgs/development/python-modules/csscompressor/default.nix b/pkgs/development/python-modules/csscompressor/default.nix index 01c649f222c1..3756c5a60706 100644 --- a/pkgs/development/python-modules/csscompressor/default.nix +++ b/pkgs/development/python-modules/csscompressor/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "csscompressor"; @@ -16,6 +20,6 @@ buildPythonPackage rec { description = "A python port of YUI CSS Compressor"; homepage = "https://pypi.python.org/pypi/csscompressor"; license = licenses.bsd3; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/cssmin/default.nix b/pkgs/development/python-modules/cssmin/default.nix index 6ab7f590f6d2..874eebd00b15 100644 --- a/pkgs/development/python-modules/cssmin/default.nix +++ b/pkgs/development/python-modules/cssmin/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "cssmin"; diff --git a/pkgs/development/python-modules/cssselect/default.nix b/pkgs/development/python-modules/cssselect/default.nix index 0accd8c6cbae..a85aa4345c54 100644 --- a/pkgs/development/python-modules/cssselect/default.nix +++ b/pkgs/development/python-modules/cssselect/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook -, lxml +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, + lxml, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { sha256 = "666b19839cfaddb9ce9d36bfe4c969132c647b92fc9088c4e23f786b30f1b3dc"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook lxml ]; - pythonImportsCheck = [ - "cssselect" - ]; + pythonImportsCheck = [ "cssselect" ]; meta = with lib; { description = "CSS Selectors for Python"; diff --git a/pkgs/development/python-modules/cssutils/default.nix b/pkgs/development/python-modules/cssutils/default.nix index 8b8a650defe6..5bf252586915 100644 --- a/pkgs/development/python-modules/cssutils/default.nix +++ b/pkgs/development/python-modules/cssutils/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, fetchFromGitHub -, setuptools-scm -, cssselect -, jaraco-test -, lxml -, mock -, pytestCheckHook -, importlib-resources +{ + lib, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + fetchFromGitHub, + setuptools-scm, + cssselect, + jaraco-test, + lxml, + mock, + pytestCheckHook, + importlib-resources, }: buildPythonPackage rec { @@ -19,7 +20,6 @@ buildPythonPackage rec { disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "jaraco"; repo = "cssutils"; @@ -27,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-1sAn6pFwWsnYS1eHQmyDNGTo6kdhL1vJBwUptADvHyo="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; nativeCheckInputs = [ cssselect @@ -37,9 +35,7 @@ buildPythonPackage rec { lxml mock pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; disabledTests = [ # access network diff --git a/pkgs/development/python-modules/cstruct/default.nix b/pkgs/development/python-modules/cstruct/default.nix index 5c0baaf88f20..cc92fa059f3c 100644 --- a/pkgs/development/python-modules/cstruct/default.nix +++ b/pkgs/development/python-modules/cstruct/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-VDJ0k3cOuHjckujf9yD1GVE+UM/Y9rjqhiq+MqGq2eM="; }; - pythonImportsCheck = [ - "cstruct" - ]; + pythonImportsCheck = [ "cstruct" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "C-style structs for Python"; diff --git a/pkgs/development/python-modules/csvw/default.nix b/pkgs/development/python-modules/csvw/default.nix index 4e7ad09b0926..d37d7819ec37 100644 --- a/pkgs/development/python-modules/csvw/default.nix +++ b/pkgs/development/python-modules/csvw/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, attrs -, isodate -, python-dateutil -, rfc3986 -, uritemplate -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + attrs, + isodate, + python-dateutil, + rfc3986, + uritemplate, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { @@ -44,20 +45,20 @@ buildPythonPackage rec { --replace "--cov" "" ''; - disabledTests = [ - # this test is flaky on darwin because it depends on the resolution of filesystem mtimes - # https://github.com/cldf/csvw/blob/45584ad63ff3002a9b3a8073607c1847c5cbac58/tests/test_db.py#L257 - "test_write_file_exists" - ] ++ lib.optionals (pythonAtLeast "3.10") [ - # https://github.com/cldf/csvw/issues/58 - "test_roundtrip_escapechar" - "test_escapequote_escapecharquotechar_final" - "test_doubleQuote" - ]; + disabledTests = + [ + # this test is flaky on darwin because it depends on the resolution of filesystem mtimes + # https://github.com/cldf/csvw/blob/45584ad63ff3002a9b3a8073607c1847c5cbac58/tests/test_db.py#L257 + "test_write_file_exists" + ] + ++ lib.optionals (pythonAtLeast "3.10") [ + # https://github.com/cldf/csvw/issues/58 + "test_roundtrip_escapechar" + "test_escapequote_escapecharquotechar_final" + "test_doubleQuote" + ]; - pythonImportsCheck = [ - "csvw" - ]; + pythonImportsCheck = [ "csvw" ]; meta = with lib; { description = "CSV on the Web"; diff --git a/pkgs/development/python-modules/ctap-keyring-device/default.nix b/pkgs/development/python-modules/ctap-keyring-device/default.nix index 072116769366..656e5f04456c 100644 --- a/pkgs/development/python-modules/ctap-keyring-device/default.nix +++ b/pkgs/development/python-modules/ctap-keyring-device/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, setuptools-scm -# install requirements -, fido2 -, keyring -, cryptography -# test requirements -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + setuptools-scm, + # install requirements + fido2, + keyring, + cryptography, + # test requirements + pytestCheckHook, }: let diff --git a/pkgs/development/python-modules/ctranslate2/default.nix b/pkgs/development/python-modules/ctranslate2/default.nix index a86516856fd4..976944c33780 100644 --- a/pkgs/development/python-modules/ctranslate2/default.nix +++ b/pkgs/development/python-modules/ctranslate2/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage +{ + lib, + buildPythonPackage, -# build-system -, pybind11 -, setuptools + # build-system + pybind11, + setuptools, -# dependencies -, ctranslate2-cpp -, numpy -, pyyaml + # dependencies + ctranslate2-cpp, + numpy, + pyyaml, -# tests -, pytestCheckHook -, tensorflow-bin -, torch -, transformers -, wurlitzer + # tests + pytestCheckHook, + tensorflow-bin, + torch, + transformers, + wurlitzer, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - ctranslate2-cpp - ]; + buildInputs = [ ctranslate2-cpp ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/cu2qu/default.nix b/pkgs/development/python-modules/cu2qu/default.nix index 67315205b706..8cc3b4a34bb5 100644 --- a/pkgs/development/python-modules/cu2qu/default.nix +++ b/pkgs/development/python-modules/cu2qu/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build -, cython -, setuptools-scm -, setuptools + # build + cython, + setuptools-scm, + setuptools, -# propagates -, defcon -, fonttools + # propagates + defcon, + fonttools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: let @@ -40,9 +41,7 @@ buildPythonPackage rec { fonttools ] ++ fonttools.optional-dependencies.ufo; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/googlefonts/cu2qu/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/cucumber-tag-expressions/default.nix b/pkgs/development/python-modules/cucumber-tag-expressions/default.nix index 74ec6c13a5ae..4d09eb485764 100644 --- a/pkgs/development/python-modules/cucumber-tag-expressions/default.nix +++ b/pkgs/development/python-modules/cucumber-tag-expressions/default.nix @@ -1,18 +1,19 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, pytest-html -, pyyaml -, setuptools - }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + pytest-html, + pyyaml, + setuptools, +}: buildPythonPackage rec { pname = "cucumber-tag-expressions"; version = "6.1.0"; pyproject = true; - src = fetchFromGitHub{ + src = fetchFromGitHub { owner = "cucumber"; repo = "tag-expressions"; rev = "refs/tags/v${version}"; @@ -21,9 +22,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/python"; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/cupy/default.nix b/pkgs/development/python-modules/cupy/default.nix index 842645597062..47f6f768b8d3 100644 --- a/pkgs/development/python-modules/cupy/default.nix +++ b/pkgs/development/python-modules/cupy/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, fastrlock -, numpy -, wheel -, pytestCheckHook -, mock -, setuptools -, cudaPackages -, addOpenGLRunpath -, pythonOlder -, symlinkJoin +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + fastrlock, + numpy, + wheel, + pytestCheckHook, + mock, + setuptools, + cudaPackages, + addOpenGLRunpath, + pythonOlder, + symlinkJoin, }: let diff --git a/pkgs/development/python-modules/curio/default.nix b/pkgs/development/python-modules/curio/default.nix index 27bcf024aa0b..03a5454f55ce 100644 --- a/pkgs/development/python-modules/curio/default.nix +++ b/pkgs/development/python-modules/curio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, isPy3k -, pytestCheckHook -, sphinx -, stdenv +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + isPy3k, + pytestCheckHook, + sphinx, + stdenv, }: buildPythonPackage rec { @@ -35,17 +36,19 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - disabledTests = [ - "test_aside_basic" # times out - "test_write_timeout" # flaky, does not always time out - "test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest - "test_ssl_outgoing" # touches network - "test_unix_echo" # socket bind error on hydra when built with other packages - "test_unix_ssl_server" # socket bind error on hydra when built with other packages - ] ++ lib.optionals stdenv.isDarwin [ - # connects to python.org:1, expects an OsError, hangs in the darwin sandbox - "test_create_bad_connection" - ]; + disabledTests = + [ + "test_aside_basic" # times out + "test_write_timeout" # flaky, does not always time out + "test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest + "test_ssl_outgoing" # touches network + "test_unix_echo" # socket bind error on hydra when built with other packages + "test_unix_ssl_server" # socket bind error on hydra when built with other packages + ] + ++ lib.optionals stdenv.isDarwin [ + # connects to python.org:1, expects an OsError, hangs in the darwin sandbox + "test_create_bad_connection" + ]; pythonImportsCheck = [ "curio" ]; diff --git a/pkgs/development/python-modules/curl-cffi/default.nix b/pkgs/development/python-modules/curl-cffi/default.nix index 00b87dff252e..de769f3bcf3e 100644 --- a/pkgs/development/python-modules/curl-cffi/default.nix +++ b/pkgs/development/python-modules/curl-cffi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, curl-impersonate-chrome -, cffi -, certifi +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + curl-impersonate-chrome, + cffi, + certifi, }: buildPythonPackage rec { @@ -18,21 +19,13 @@ buildPythonPackage rec { hash = "sha256-bNBpZAIdfub2osByo827RBw/gouCmNt8uVN0y1KdcUk="; }; - patches = [ - ./use-system-libs.patch - ]; - buildInputs = [ - curl-impersonate-chrome - ]; + patches = [ ./use-system-libs.patch ]; + buildInputs = [ curl-impersonate-chrome ]; format = "pyproject"; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - cffi - ]; + nativeBuildInputs = [ cffi ]; propagatedBuildInputs = [ cffi certifi diff --git a/pkgs/development/python-modules/curlify/default.nix b/pkgs/development/python-modules/curlify/default.nix index dbe335c71dec..8dfec8890269 100644 --- a/pkgs/development/python-modules/curlify/default.nix +++ b/pkgs/development/python-modules/curlify/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, +}: buildPythonPackage { pname = "curlify"; @@ -12,9 +17,7 @@ buildPythonPackage { hash = "sha256-yDHmH35TtQDJB0na1V98RtBuVHX5TmKC72hzzs1DQK8="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; meta = with lib; { description = "Convert python requests request object to cURL command"; diff --git a/pkgs/development/python-modules/curtsies/default.nix b/pkgs/development/python-modules/curtsies/default.nix index 2dd039f00ee2..b2467a02e09b 100644 --- a/pkgs/development/python-modules/curtsies/default.nix +++ b/pkgs/development/python-modules/curtsies/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, backports-cached-property -, blessed -, buildPythonPackage -, cwcwidth -, fetchPypi -, pyte -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + backports-cached-property, + blessed, + buildPythonPackage, + cwcwidth, + fetchPypi, + pyte, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,16 +24,12 @@ buildPythonPackage rec { hash = "sha256-br4zIVvXyShRpQYEnHIMykz1wZLBZlwdepigTEcCdg4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ blessed cwcwidth - ] ++ lib.optionals (pythonOlder "3.8") [ - backports-cached-property - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ backports-cached-property ]; nativeCheckInputs = [ pyte diff --git a/pkgs/development/python-modules/curve25519-donna/default.nix b/pkgs/development/python-modules/curve25519-donna/default.nix index d098d47e7190..10bd11bc849c 100644 --- a/pkgs/development/python-modules/curve25519-donna/default.nix +++ b/pkgs/development/python-modules/curve25519-donna/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "curve25519-donna"; diff --git a/pkgs/development/python-modules/cvss/default.nix b/pkgs/development/python-modules/cvss/default.nix index 640ad9720c74..c7364e5589a0 100644 --- a/pkgs/development/python-modules/cvss/default.nix +++ b/pkgs/development/python-modules/cvss/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jsonschema -, unittestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jsonschema, + unittestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-e/zwOfbt3YLlRiLFObjps3tFFk6BAWBKdanio6sus8c="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ jsonschema unittestCheckHook ]; - pythonImportsCheck = [ - "cvss" - ]; + pythonImportsCheck = [ "cvss" ]; preCheck = '' cd tests diff --git a/pkgs/development/python-modules/cvxopt/default.nix b/pkgs/development/python-modules/cvxopt/default.nix index 0ba23e151060..a33d19ff3135 100644 --- a/pkgs/development/python-modules/cvxopt/default.nix +++ b/pkgs/development/python-modules/cvxopt/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, isPyPy -, python -, blas -, lapack -, suitesparse -, unittestCheckHook -, glpk ? null -, gsl ? null -, fftw ? null -, withGlpk ? true -, withGsl ? true -, withFftw ? true +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + python, + blas, + lapack, + suitesparse, + unittestCheckHook, + glpk ? null, + gsl ? null, + fftw ? null, + withGlpk ? true, + withGsl ? true, + withFftw ? true, }: assert (!blas.isILP64) && (!lapack.isILP64); @@ -30,33 +31,43 @@ buildPythonPackage rec { hash = "sha256-NGH6QsGyJAuk2h2YXKc1A5FBV/xMd0FzJ+1tfYWs2+Y="; }; - buildInputs = [ blas lapack ]; + buildInputs = [ + blas + lapack + ]; # similar to Gsl, glpk, fftw there is also a dsdp interface # but dsdp is not yet packaged in nixpkgs - env = { - CVXOPT_BLAS_LIB = "blas"; - CVXOPT_LAPACK_LIB = "lapack"; - CVXOPT_BUILD_DSDP = "0"; - CVXOPT_SUITESPARSE_LIB_DIR = "${lib.getLib suitesparse}/lib"; - CVXOPT_SUITESPARSE_INC_DIR = "${lib.getDev suitesparse}/include"; - } // lib.optionalAttrs withGsl { - CVXOPT_BUILD_GSL = "1"; - CVXOPT_GSL_LIB_DIR= "${lib.getLib gsl}/lib"; - CVXOPT_GSL_INC_DIR= "${lib.getDev gsl}/include"; - } // lib.optionalAttrs withGlpk { - CVXOPT_BUILD_GLPK = "1"; - CVXOPT_GLPK_LIB_DIR = "${lib.getLib glpk}/lib"; - CVXOPT_GLPK_INC_DIR = "${lib.getDev glpk}/include"; - } // lib.optionalAttrs withFftw { - CVXOPT_BUILD_FFTW = "1"; - CVXOPT_FFTW_LIB_DIR = "${lib.getLib fftw}/lib"; - CVXOPT_FFTW_INC_DIR = "${lib.getDev fftw}/include"; - }; + env = + { + CVXOPT_BLAS_LIB = "blas"; + CVXOPT_LAPACK_LIB = "lapack"; + CVXOPT_BUILD_DSDP = "0"; + CVXOPT_SUITESPARSE_LIB_DIR = "${lib.getLib suitesparse}/lib"; + CVXOPT_SUITESPARSE_INC_DIR = "${lib.getDev suitesparse}/include"; + } + // lib.optionalAttrs withGsl { + CVXOPT_BUILD_GSL = "1"; + CVXOPT_GSL_LIB_DIR = "${lib.getLib gsl}/lib"; + CVXOPT_GSL_INC_DIR = "${lib.getDev gsl}/include"; + } + // lib.optionalAttrs withGlpk { + CVXOPT_BUILD_GLPK = "1"; + CVXOPT_GLPK_LIB_DIR = "${lib.getLib glpk}/lib"; + CVXOPT_GLPK_INC_DIR = "${lib.getDev glpk}/include"; + } + // lib.optionalAttrs withFftw { + CVXOPT_BUILD_FFTW = "1"; + CVXOPT_FFTW_LIB_DIR = "${lib.getLib fftw}/lib"; + CVXOPT_FFTW_INC_DIR = "${lib.getDev fftw}/include"; + }; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; meta = with lib; { homepage = "https://cvxopt.org/"; diff --git a/pkgs/development/python-modules/cvxpy/default.nix b/pkgs/development/python-modules/cvxpy/default.nix index d3b057401eb0..e172de7db811 100644 --- a/pkgs/development/python-modules/cvxpy/default.nix +++ b/pkgs/development/python-modules/cvxpy/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, clarabel -, cvxopt -, ecos -, fetchPypi -, numpy -, osqp -, pytestCheckHook -, pythonOlder -, scipy -, scs -, setuptools -, wheel -, pybind11 -, useOpenmp ? (!stdenv.isDarwin) +{ + lib, + stdenv, + buildPythonPackage, + clarabel, + cvxopt, + ecos, + fetchPypi, + numpy, + osqp, + pytestCheckHook, + pythonOlder, + scipy, + scs, + setuptools, + wheel, + pybind11, + useOpenmp ? (!stdenv.isDarwin), }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { scs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Required flags from https://github.com/cvxpy/cvxpy/releases/tag/v1.1.11 preBuild = lib.optionalString useOpenmp '' @@ -60,25 +59,23 @@ buildPythonPackage rec { export LDFLAGS="-lgomp" ''; - pytestFlagsArray = [ - "cvxpy" - ]; + pytestFlagsArray = [ "cvxpy" ]; - disabledTests = [ - # Disable the slowest benchmarking tests, cuts test time in half - "test_tv_inpainting" - "test_diffcp_sdp_example" - "test_huber" - "test_partial_problem" - # https://github.com/cvxpy/cvxpy/issues/2174 - "test_scipy_mi_time_limit_reached" - ] ++ lib.optionals stdenv.isAarch64 [ - "test_ecos_bb_mi_lp_2" # https://github.com/cvxpy/cvxpy/issues/1241#issuecomment-780912155 - ]; + disabledTests = + [ + # Disable the slowest benchmarking tests, cuts test time in half + "test_tv_inpainting" + "test_diffcp_sdp_example" + "test_huber" + "test_partial_problem" + # https://github.com/cvxpy/cvxpy/issues/2174 + "test_scipy_mi_time_limit_reached" + ] + ++ lib.optionals stdenv.isAarch64 [ + "test_ecos_bb_mi_lp_2" # https://github.com/cvxpy/cvxpy/issues/1241#issuecomment-780912155 + ]; - pythonImportsCheck = [ - "cvxpy" - ]; + pythonImportsCheck = [ "cvxpy" ]; meta = with lib; { description = "A domain-specific language for modeling convex optimization problems in Python"; diff --git a/pkgs/development/python-modules/cwcwidth/default.nix b/pkgs/development/python-modules/cwcwidth/default.nix index 85d20fc6f464..b01a4f724271 100644 --- a/pkgs/development/python-modules/cwcwidth/default.nix +++ b/pkgs/development/python-modules/cwcwidth/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, cython, pytestCheckHook, setuptools }: +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + pytestCheckHook, + setuptools, +}: buildPythonPackage rec { pname = "cwcwidth"; @@ -10,7 +17,10 @@ buildPythonPackage rec { hash = "sha256-8Z0RoBSNSoys0GTJbpO8qM40FaGGroIEA49F4Qjbdrg="; }; - nativeBuildInputs = [ cython setuptools ]; + nativeBuildInputs = [ + cython + setuptools + ]; nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' diff --git a/pkgs/development/python-modules/cwl-upgrader/default.nix b/pkgs/development/python-modules/cwl-upgrader/default.nix index d3f3978dc0b7..8e5e2d1c3d24 100644 --- a/pkgs/development/python-modules/cwl-upgrader/default.nix +++ b/pkgs/development/python-modules/cwl-upgrader/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mypy-extensions -, pytest-xdist -, pytestCheckHook -, pythonOlder -, ruamel-yaml -, schema-salad -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mypy-extensions, + pytest-xdist, + pytestCheckHook, + pythonOlder, + ruamel-yaml, + schema-salad, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace '"schema_salad",' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ mypy-extensions @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "cwlupgrader" - ]; + pythonImportsCheck = [ "cwlupgrader" ]; meta = with lib; { description = "Library to upgrade CWL syntax to a newer version"; diff --git a/pkgs/development/python-modules/cwlformat/default.nix b/pkgs/development/python-modules/cwlformat/default.nix index 0703175d0275..2433203eda22 100644 --- a/pkgs/development/python-modules/cwlformat/default.nix +++ b/pkgs/development/python-modules/cwlformat/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, ruamel-yaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + ruamel-yaml, }: buildPythonPackage rec { @@ -30,17 +31,11 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - ruamel-yaml - ]; + propagatedBuildInputs = [ ruamel-yaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "cwlformat" - ]; + pythonImportsCheck = [ "cwlformat" ]; meta = with lib; { description = "Code formatter for CWL"; diff --git a/pkgs/development/python-modules/cx-freeze/default.nix b/pkgs/development/python-modules/cx-freeze/default.nix index 1c147ddbb88b..1ff08634e50e 100644 --- a/pkgs/development/python-modules/cx-freeze/default.nix +++ b/pkgs/development/python-modules/cx-freeze/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, ncurses -, importlib-metadata -, setuptools -, wheel -, patchelf +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + ncurses, + importlib-metadata, + setuptools, + wheel, + patchelf, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/cx-oracle/default.nix b/pkgs/development/python-modules/cx-oracle/default.nix index 040f762c9f21..aa52a0695abb 100644 --- a/pkgs/development/python-modules/cx-oracle/default.nix +++ b/pkgs/development/python-modules/cx-oracle/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, odpic }: +{ + lib, + buildPythonPackage, + fetchPypi, + odpic, +}: buildPythonPackage rec { pname = "cx-oracle"; diff --git a/pkgs/development/python-modules/cxxfilt/default.nix b/pkgs/development/python-modules/cxxfilt/default.nix index 2bf02c564256..2d09a5006d4c 100644 --- a/pkgs/development/python-modules/cxxfilt/default.nix +++ b/pkgs/development/python-modules/cxxfilt/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, gcc-unwrapped +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + gcc-unwrapped, }: buildPythonPackage rec { pname = "cxxfilt"; @@ -14,19 +15,19 @@ buildPythonPackage rec { sha256 = "7df6464ba5e8efbf0d8974c0b2c78b32546676f06059a83515dbdfa559b34214"; }; - postPatch = let - libstdcpp = "${lib.getLib gcc-unwrapped}/lib/libstdc++${stdenv.hostPlatform.extensions.sharedLibrary}"; - in '' - substituteInPlace cxxfilt/__init__.py \ - --replace "find_any_library('stdc++', 'c++')" '"${libstdcpp}"' - ''; + postPatch = + let + libstdcpp = "${lib.getLib gcc-unwrapped}/lib/libstdc++${stdenv.hostPlatform.extensions.sharedLibrary}"; + in + '' + substituteInPlace cxxfilt/__init__.py \ + --replace "find_any_library('stdc++', 'c++')" '"${libstdcpp}"' + ''; # no tests doCheck = false; - pythonImportsCheck = [ - "cxxfilt" - ]; + pythonImportsCheck = [ "cxxfilt" ]; meta = with lib; { description = "Demangling C++ symbols in Python / interface to abi::__cxa_demangle "; diff --git a/pkgs/development/python-modules/cycler/default.nix b/pkgs/development/python-modules/cycler/default.nix index d7bfe3756273..fae2ae30b336 100644 --- a/pkgs/development/python-modules/cycler/default.nix +++ b/pkgs/development/python-modules/cycler/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytest-xdist -, pytestCheckHook + # tests + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-5L0APSi/mJ85SuKCVz+c6Fn8zZNpRm6vCeBO0fpGKxg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-xdist diff --git a/pkgs/development/python-modules/cymem/default.nix b/pkgs/development/python-modules/cymem/default.nix index 52e24928ec22..ef7db6848cbd 100644 --- a/pkgs/development/python-modules/cymem/default.nix +++ b/pkgs/development/python-modules/cymem/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, cython -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cython, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { cython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # remove src module, so tests use the installed module instead @@ -36,9 +35,7 @@ buildPythonPackage rec { rm -r ./cymem ''; - pythonImportsCheck = [ - "cymem" - ]; + pythonImportsCheck = [ "cymem" ]; meta = with lib; { description = "Cython memory pool for RAII-style memory management"; diff --git a/pkgs/development/python-modules/cypari2/default.nix b/pkgs/development/python-modules/cypari2/default.nix index 315492e38ee3..3910cdd34f25 100644 --- a/pkgs/development/python-modules/cypari2/default.nix +++ b/pkgs/development/python-modules/cypari2/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, python -, fetchpatch -, fetchPypi -, pari -, gmp -, cython -, cysignals +{ + lib, + buildPythonPackage, + python, + fetchpatch, + fetchPypi, + pari, + gmp, + cython, + cysignals, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -38,13 +39,9 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace ''; - nativeBuildInputs = [ - pari - ]; + nativeBuildInputs = [ pari ]; - buildInputs = [ - gmp - ]; + buildInputs = [ gmp ]; propagatedBuildInputs = [ cysignals @@ -56,7 +53,9 @@ buildPythonPackage rec { make check ''; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Cython bindings for PARI"; diff --git a/pkgs/development/python-modules/cypherpunkpay/default.nix b/pkgs/development/python-modules/cypherpunkpay/default.nix index 4f562c00a444..cb4233883d37 100644 --- a/pkgs/development/python-modules/cypherpunkpay/default.nix +++ b/pkgs/development/python-modules/cypherpunkpay/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, apscheduler -, bitstring -, buildPythonPackage -, cffi -, ecdsa -, fetchFromGitHub -, monero -, poetry-core -, pypng -, pyqrcode -, pyramid -, pyramid-jinja2 -, pysocks -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, tzlocal -, waitress -, webtest -, yoyo-migrations +{ + lib, + stdenv, + apscheduler, + bitstring, + buildPythonPackage, + cffi, + ecdsa, + fetchFromGitHub, + monero, + poetry-core, + pypng, + pyqrcode, + pyramid, + pyramid-jinja2, + pysocks, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + tzlocal, + waitress, + webtest, + yoyo-migrations, }: buildPythonPackage rec { @@ -103,15 +104,16 @@ buildPythonPackage rec { "tests/acceptance/views_dummystore" ]; - pythonImportsCheck = [ - "cypherpunkpay" - ]; + pythonImportsCheck = [ "cypherpunkpay" ]; meta = with lib; { description = "Modern self-hosted software for accepting Bitcoin"; homepage = "https://github.com/CypherpunkPay/CypherpunkPay"; changelog = "https://github.com/CypherpunkPay/CypherpunkPay/releases/tag/v${version}"; - license = with licenses; [ mit /* or */ unlicense ]; + license = with licenses; [ + mit # or + unlicense + ]; maintainers = with maintainers; [ prusnak ]; }; } diff --git a/pkgs/development/python-modules/cysignals/default.nix b/pkgs/development/python-modules/cysignals/default.nix index fc53c5c9f168..9e90eaf38f19 100644 --- a/pkgs/development/python-modules/cysignals/default.nix +++ b/pkgs/development/python-modules/cysignals/default.nix @@ -1,12 +1,14 @@ -{ lib -, autoreconfHook -, fetchPypi -, buildPythonPackage -, cython -, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler +{ + lib, + autoreconfHook, + fetchPypi, + buildPythonPackage, + cython, + pariSupport ? true, + pari, # for interfacing with the PARI/GP signal handler -# Reverse dependency -, sage + # Reverse dependency + sage, }: assert pariSupport -> pari != null; @@ -23,9 +25,7 @@ buildPythonPackage rec { # explicit check: # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE" - hardeningDisable = [ - "fortify" - ]; + hardeningDisable = [ "fortify" ]; # known failure: https://github.com/sagemath/cysignals/blob/582dbf6a7b0f9ade0abe7a7b8720b7fb32435c3c/testgdb.py#L5 doCheck = false; @@ -36,20 +36,22 @@ buildPythonPackage rec { export PATH="$out/bin:$PATH" ''; - propagatedBuildInputs = [ - cython - ] ++ lib.optionals pariSupport [ - # When cysignals is built with pari, including cysignals into the - # buildInputs of another python package will cause cython to link against - # pari. - pari - ]; + propagatedBuildInputs = + [ cython ] + ++ lib.optionals pariSupport [ + # When cysignals is built with pari, including cysignals into the + # buildInputs of another python package will cause cython to link against + # pari. + pari + ]; nativeBuildInputs = [ autoreconfHook ]; enableParallelBuilding = true; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Interrupt and signal handling for Cython"; diff --git a/pkgs/development/python-modules/cython-test-exception-raiser/default.nix b/pkgs/development/python-modules/cython-test-exception-raiser/default.nix index e6f3f8b451b3..66adf3668600 100644 --- a/pkgs/development/python-modules/cython-test-exception-raiser/default.nix +++ b/pkgs/development/python-modules/cython-test-exception-raiser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + setuptools, + wheel, }: buildPythonPackage rec { @@ -24,15 +25,16 @@ buildPythonPackage rec { wheel ]; - pythonImportsCheck = [ - "cython_test_exception_raiser" - ]; + pythonImportsCheck = [ "cython_test_exception_raiser" ]; meta = with lib; { description = "Testing only. A cython simple extension which is used as helper for twisted/twisted Failure tests"; homepage = "https://github.com/twisted/cython-test-exception-raiser"; changelog = "https://github.com/twisted/cython-test-exception-raiser/blob/${src.rev}/CHANGELOG.rst"; - license = with licenses; [ publicDomain mit ]; + license = with licenses; [ + publicDomain + mit + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/cython/0.nix b/pkgs/development/python-modules/cython/0.nix index e0b6c02d8acc..689c029086a7 100644 --- a/pkgs/development/python-modules/cython/0.nix +++ b/pkgs/development/python-modules/cython/0.nix @@ -1,29 +1,36 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, fetchpatch -, setuptools -, python -, pkg-config -, gdb -, numpy -, ncurses +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + fetchpatch, + setuptools, + python, + pkg-config, + gdb, + numpy, + ncurses, }: let - excludedTests = [ "reimport_from_subinterpreter" ] + excludedTests = + [ "reimport_from_subinterpreter" ] # cython's testsuite is not working very well with libc++ # We are however optimistic about things outside of testsuite still working - ++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ] + ++ lib.optionals (stdenv.cc.isClang or false) [ + "cpdef_extern_func" + "libcpp_algo" + ] # Some tests in the test suite isn't working on aarch64. Disable them for # now until upstream finds a workaround. # Upstream issue here: https://github.com/cython/cython/issues/2308 ++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ] - ++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ] - ; - -in buildPythonPackage rec { + ++ lib.optionals stdenv.isi686 [ + "future_division" + "overflow_check_longlong" + ]; +in +buildPythonPackage rec { pname = "cython"; version = "0.29.36"; pyproject = true; @@ -40,7 +47,9 @@ in buildPythonPackage rec { ]; nativeCheckInputs = [ - gdb numpy ncurses + gdb + numpy + ncurses ]; LC_ALL = "en_US.UTF-8"; @@ -68,8 +77,11 @@ in buildPythonPackage rec { export HOME="$NIX_BUILD_TOP" ${python.interpreter} runtests.py -j$NIX_BUILD_CORES \ --no-code-style \ - ${lib.optionalString (builtins.length excludedTests != 0) - ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''} + ${ + lib.optionalString ( + builtins.length excludedTests != 0 + ) ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"'' + } ''; # https://github.com/cython/cython/issues/2785 diff --git a/pkgs/development/python-modules/cython/default.nix b/pkgs/development/python-modules/cython/default.nix index fecb9cad26ce..fdf7cecbe0bf 100644 --- a/pkgs/development/python-modules/cython/default.nix +++ b/pkgs/development/python-modules/cython/default.nix @@ -1,31 +1,38 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, setuptools -, python -, pkg-config -, gdb -, numpy -, ncurses +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, + python, + pkg-config, + gdb, + numpy, + ncurses, -# Reverse dependency -, sage + # Reverse dependency + sage, }: let - excludedTests = [ "reimport_from_subinterpreter" ] + excludedTests = + [ "reimport_from_subinterpreter" ] # cython's testsuite is not working very well with libc++ # We are however optimistic about things outside of testsuite still working - ++ lib.optionals (stdenv.cc.isClang or false) [ "cpdef_extern_func" "libcpp_algo" ] + ++ lib.optionals (stdenv.cc.isClang or false) [ + "cpdef_extern_func" + "libcpp_algo" + ] # Some tests in the test suite isn't working on aarch64. Disable them for # now until upstream finds a workaround. # Upstream issue here: https://github.com/cython/cython/issues/2308 ++ lib.optionals stdenv.isAarch64 [ "numpy_memoryview" ] - ++ lib.optionals stdenv.isi686 [ "future_division" "overflow_check_longlong" ] - ; - -in buildPythonPackage rec { + ++ lib.optionals stdenv.isi686 [ + "future_division" + "overflow_check_longlong" + ]; +in +buildPythonPackage rec { pname = "cython"; version = "3.0.10"; pyproject = true; @@ -42,7 +49,9 @@ in buildPythonPackage rec { ]; nativeCheckInputs = [ - gdb numpy ncurses + gdb + numpy + ncurses ]; env.LC_ALL = "en_US.UTF-8"; @@ -51,8 +60,11 @@ in buildPythonPackage rec { export HOME="$NIX_BUILD_TOP" ${python.interpreter} runtests.py -j$NIX_BUILD_CORES \ --no-code-style \ - ${lib.optionalString (builtins.length excludedTests != 0) - ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"''} + ${ + lib.optionalString ( + builtins.length excludedTests != 0 + ) ''--exclude="(${builtins.concatStringsSep "|" excludedTests})"'' + } ''; # https://github.com/cython/cython/issues/2785 @@ -60,7 +72,9 @@ in buildPythonPackage rec { doCheck = false; # doCheck = !stdenv.isDarwin; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; # force regeneration of generated code in source distributions # https://github.com/cython/cython/issues/5089 diff --git a/pkgs/development/python-modules/cytoolz/default.nix b/pkgs/development/python-modules/cytoolz/default.nix index ddb7b7df0d5e..befb71963c79 100644 --- a/pkgs/development/python-modules/cytoolz/default.nix +++ b/pkgs/development/python-modules/cytoolz/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, pytestCheckHook -, cython -, setuptools -, toolz -, python -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + pytestCheckHook, + cython, + setuptools, + toolz, + python, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dacite/default.nix b/pkgs/development/python-modules/dacite/default.nix index fca71b11a0e0..c6c5e01df213 100644 --- a/pkgs/development/python-modules/dacite/default.nix +++ b/pkgs/development/python-modules/dacite/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { --replace "--benchmark-autosave --benchmark-json=benchmark.json" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dacite" - ]; + pythonImportsCheck = [ "dacite" ]; - disabledTestPaths = [ - "tests/performance" - ]; + disabledTestPaths = [ "tests/performance" ]; meta = with lib; { description = "Python helper to create data classes from dictionaries"; diff --git a/pkgs/development/python-modules/daemonize/default.nix b/pkgs/development/python-modules/daemonize/default.nix index bdff79e29aa7..c71b3be58701 100644 --- a/pkgs/development/python-modules/daemonize/default.nix +++ b/pkgs/development/python-modules/daemonize/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "https://github.com/thesharp/daemonize"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/daemonocle/default.nix b/pkgs/development/python-modules/daemonocle/default.nix index 5acec6393632..c9ea2009baeb 100644 --- a/pkgs/development/python-modules/daemonocle/default.nix +++ b/pkgs/development/python-modules/daemonocle/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, psutil -, pytestCheckHook -, lsof +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + psutil, + pytestCheckHook, + lsof, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { "test_exec_worker" ]; - pythonImportsCheck = [ - "daemonocle" - ]; + pythonImportsCheck = [ "daemonocle" ]; meta = with lib; { description = "A Python library for creating super fancy Unix daemons"; diff --git a/pkgs/development/python-modules/daff/default.nix b/pkgs/development/python-modules/daff/default.nix index 59c2e1bfc38b..2e4841e70c17 100644 --- a/pkgs/development/python-modules/daff/default.nix +++ b/pkgs/development/python-modules/daff/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { # there are no tests doCheck = false; - pythonImportsCheck = [ - "daff" - ]; + pythonImportsCheck = [ "daff" ]; meta = with lib; { description = "Library for comparing tables, producing a summary of their differences, and using such a summary as a patch file"; diff --git a/pkgs/development/python-modules/daiquiri/default.nix b/pkgs/development/python-modules/daiquiri/default.nix index c3e5436de969..735131d935f7 100644 --- a/pkgs/development/python-modules/daiquiri/default.nix +++ b/pkgs/development/python-modules/daiquiri/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, python-json-logger -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + python-json-logger, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - python-json-logger - ]; + propagatedBuildInputs = [ python-json-logger ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "daiquiri" ]; diff --git a/pkgs/development/python-modules/dalle-mini/default.nix b/pkgs/development/python-modules/dalle-mini/default.nix index 0c768ba5dbe1..2ea9b0c2d0c1 100644 --- a/pkgs/development/python-modules/dalle-mini/default.nix +++ b/pkgs/development/python-modules/dalle-mini/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, einops -, emoji -, flax -, ftfy -, jax -, jaxlib -, pillow -, transformers -, unidecode -, wandb +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + einops, + emoji, + flax, + ftfy, + jax, + jaxlib, + pillow, + transformers, + unidecode, + wandb, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/daphne/default.nix b/pkgs/development/python-modules/daphne/default.nix index 1cb0a1998493..a5699289f24b 100644 --- a/pkgs/development/python-modules/daphne/default.nix +++ b/pkgs/development/python-modules/daphne/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, asgiref -, autobahn -, buildPythonPackage -, django -, fetchFromGitHub -, hypothesis -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, twisted +{ + lib, + stdenv, + asgiref, + autobahn, + buildPythonPackage, + django, + fetchFromGitHub, + hypothesis, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + twisted, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { # Most tests fail on darwin doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "daphne" - ]; + pythonImportsCheck = [ "daphne" ]; meta = with lib; { description = "Django ASGI (HTTP/WebSocket) server"; diff --git a/pkgs/development/python-modules/daqp/default.nix b/pkgs/development/python-modules/daqp/default.nix index e5ae5e62be90..34bcdc4082e7 100644 --- a/pkgs/development/python-modules/daqp/default.nix +++ b/pkgs/development/python-modules/daqp/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, unittestCheckHook -, cython_0 -, setuptools -, wheel -, numpy +{ + lib, + fetchFromGitHub, + buildPythonPackage, + unittestCheckHook, + cython_0, + setuptools, + wheel, + numpy, }: buildPythonPackage rec { pname = "daqp"; @@ -28,7 +29,13 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "test" "-p" "'*.py'" "-v" ]; + unittestFlagsArray = [ + "-s" + "test" + "-p" + "'*.py'" + "-v" + ]; nativeBuildInputs = [ cython_0 @@ -36,9 +43,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "daqp" ]; diff --git a/pkgs/development/python-modules/darkdetect/default.nix b/pkgs/development/python-modules/darkdetect/default.nix index 28e3c141a1ee..e8dfaf086b96 100644 --- a/pkgs/development/python-modules/darkdetect/default.nix +++ b/pkgs/development/python-modules/darkdetect/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + stdenv, -, glib -, setuptools + glib, + setuptools, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-OOINgrgjSLr3L07E9zf1+mlTPr+7ZlgN3CfkWE8+LoE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "darkdetect" - ]; + pythonImportsCheck = [ "darkdetect" ]; postPatch = lib.optionalString (stdenv.isLinux) '' substituteInPlace darkdetect/_linux_detect.py \ diff --git a/pkgs/development/python-modules/dasbus/default.nix b/pkgs/development/python-modules/dasbus/default.nix index dceb2e74ca86..a1bcb4520254 100644 --- a/pkgs/development/python-modules/dasbus/default.nix +++ b/pkgs/development/python-modules/dasbus/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pygobject3, dbus, hatchling, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pygobject3, + dbus, + hatchling, + pytestCheckHook, +}: buildPythonPackage rec { pname = "dasbus"; @@ -14,7 +22,10 @@ buildPythonPackage rec { nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ pygobject3 ]; - nativeCheckInputs = [ dbus pytestCheckHook ]; + nativeCheckInputs = [ + dbus + pytestCheckHook + ]; meta = with lib; { homepage = "https://github.com/rhinstaller/dasbus"; diff --git a/pkgs/development/python-modules/dash-core-components/default.nix b/pkgs/development/python-modules/dash-core-components/default.nix index 109facaff4e5..c7bcc5c2ae1e 100644 --- a/pkgs/development/python-modules/dash-core-components/default.nix +++ b/pkgs/development/python-modules/dash-core-components/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dash-html-components/default.nix b/pkgs/development/python-modules/dash-html-components/default.nix index 9d7f7d4a54ba..968a6f5bd615 100644 --- a/pkgs/development/python-modules/dash-html-components/default.nix +++ b/pkgs/development/python-modules/dash-html-components/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dash-renderer/default.nix b/pkgs/development/python-modules/dash-renderer/default.nix index bc489ff8f96c..46936194b447 100644 --- a/pkgs/development/python-modules/dash-renderer/default.nix +++ b/pkgs/development/python-modules/dash-renderer/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dash-table/default.nix b/pkgs/development/python-modules/dash-table/default.nix index b40602585ae5..b4a59029afb6 100644 --- a/pkgs/development/python-modules/dash-table/default.nix +++ b/pkgs/development/python-modules/dash-table/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dash/default.nix b/pkgs/development/python-modules/dash/default.nix index 61fbeb9ae6b7..f6e9245d89bb 100644 --- a/pkgs/development/python-modules/dash/default.nix +++ b/pkgs/development/python-modules/dash/default.nix @@ -1,37 +1,38 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -, setuptools -, nodejs -, yarn -, fixup-yarn-lock -, fetchYarnDeps + setuptools, + nodejs, + yarn, + fixup-yarn-lock, + fetchYarnDeps, -, flask -, werkzeug -, plotly -, dash-html-components -, dash-core-components -, dash-table -, importlib-metadata -, typing-extensions -, requests -, retrying -, nest-asyncio + flask, + werkzeug, + plotly, + dash-html-components, + dash-core-components, + dash-table, + importlib-metadata, + typing-extensions, + requests, + retrying, + nest-asyncio, -, celery -, redis -, diskcache -, multiprocess -, psutil -, flask-compress + celery, + redis, + diskcache, + multiprocess, + psutil, + flask-compress, -, pytestCheckHook -, pytest-mock -, mock -, pyyaml + pytestCheckHook, + pytest-mock, + mock, + pyyaml, }: buildPythonPackage rec { @@ -102,9 +103,7 @@ buildPythonPackage rec { multiprocess psutil ]; - compress = [ - flask-compress - ]; + compress = [ flask-compress ]; }; nativeCheckInputs = [ @@ -127,6 +126,9 @@ buildPythonPackage rec { description = "Python framework for building analytical web applications"; homepage = "https://dash.plot.ly/"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ antoinerg tomasajt ]; + maintainers = with lib.maintainers; [ + antoinerg + tomasajt + ]; }; } diff --git a/pkgs/development/python-modules/dashing/default.nix b/pkgs/development/python-modules/dashing/default.nix index 9caa56a87649..7382adf521b5 100644 --- a/pkgs/development/python-modules/dashing/default.nix +++ b/pkgs/development/python-modules/dashing/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, blessed +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + blessed, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-JRRgjg8pp3Xb0bERFWEhnOg9U8+kuqL+QQH6uE/Vbxs="; }; - propagatedBuildInputs = [ - blessed - ]; + propagatedBuildInputs = [ blessed ]; meta = with lib; { homepage = "https://github.com/FedericoCeratto/dashing"; diff --git a/pkgs/development/python-modules/dask-awkward/default.nix b/pkgs/development/python-modules/dask-awkward/default.nix index 26f2c2bb5191..4663d25cffcf 100644 --- a/pkgs/development/python-modules/dask-awkward/default.nix +++ b/pkgs/development/python-modules/dask-awkward/default.nix @@ -1,21 +1,22 @@ -{ lib -, awkward -, buildPythonPackage -, cachetools -, dask -, dask-histogram -, distributed -, fetchFromGitHub -, hatch-vcs -, hatchling -, hist -, pandas -, pyarrow -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, typing-extensions -, uproot +{ + lib, + awkward, + buildPythonPackage, + cachetools, + dask, + dask-histogram, + distributed, + fetchFromGitHub, + hatch-vcs, + hatchling, + hist, + pandas, + pyarrow, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + typing-extensions, + uproot, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-Lkbp/XrDHOekMpT71pbxtuozgzU9iiGF2GJZ+tuV/yM="; }; - pythonRelaxDeps = [ - "awkward" - ]; + pythonRelaxDeps = [ "awkward" ]; nativeBuildInputs = [ hatch-vcs @@ -50,9 +49,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - io = [ - pyarrow - ]; + io = [ pyarrow ]; }; checkInputs = [ @@ -64,9 +61,7 @@ buildPythonPackage rec { uproot ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "dask_awkward" - ]; + pythonImportsCheck = [ "dask_awkward" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/dask-gateway-server/default.nix b/pkgs/development/python-modules/dask-gateway-server/default.nix index 98e955894f2c..86e3187ae9f9 100644 --- a/pkgs/development/python-modules/dask-gateway-server/default.nix +++ b/pkgs/development/python-modules/dask-gateway-server/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, buildPythonPackage -, colorlog -, cryptography -, fetchFromGitHub -, go -, pykerberos -, pythonOlder -, skein -, sqlalchemy -, traitlets +{ + lib, + aiohttp, + buildPythonPackage, + colorlog, + cryptography, + fetchFromGitHub, + go, + pykerberos, + pythonOlder, + skein, + sqlalchemy, + traitlets, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/${pname}"; - nativeBuildInputs = [ - go - ]; + nativeBuildInputs = [ go ]; propagatedBuildInputs = [ aiohttp @@ -40,15 +39,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - kerberos = [ - pykerberos - ]; - jobqueue = [ - sqlalchemy - ]; - local = [ - sqlalchemy - ]; + kerberos = [ pykerberos ]; + jobqueue = [ sqlalchemy ]; + local = [ sqlalchemy ]; yarn = [ skein sqlalchemy @@ -62,9 +55,7 @@ buildPythonPackage rec { # Tests requires cluster for testing doCheck = false; - pythonImportsCheck = [ - "dask_gateway_server" - ]; + pythonImportsCheck = [ "dask_gateway_server" ]; meta = with lib; { description = "A multi-tenant server for securely deploying and managing multiple Dask clusters"; diff --git a/pkgs/development/python-modules/dask-gateway/default.nix b/pkgs/development/python-modules/dask-gateway/default.nix index 270999b55070..56334adf6f01 100644 --- a/pkgs/development/python-modules/dask-gateway/default.nix +++ b/pkgs/development/python-modules/dask-gateway/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, dask -, distributed -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + dask, + distributed, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dask-glm/default.nix b/pkgs/development/python-modules/dask-glm/default.nix index 15a7df7fe029..ec4c90b5de91 100644 --- a/pkgs/development/python-modules/dask-glm/default.nix +++ b/pkgs/development/python-modules/dask-glm/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, cloudpickle -, dask -, distributed -, fetchPypi -, multipledispatch -, pytestCheckHook -, pythonOlder -, scikit-learn -, scipy -, setuptools-scm -, sparse +{ + lib, + buildPythonPackage, + cloudpickle, + dask, + distributed, + fetchPypi, + multipledispatch, + pytestCheckHook, + pythonOlder, + scikit-learn, + scipy, + setuptools-scm, + sparse, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-yUelZoZmmKAdeZeK5zIzy16DitXq1ghRQ1gsXpMLmko="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ cloudpickle @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "dask_glm" - ]; + pythonImportsCheck = [ "dask_glm" ]; disabledTestPaths = [ # Circular dependency with dask-ml diff --git a/pkgs/development/python-modules/dask-histogram/default.nix b/pkgs/development/python-modules/dask-histogram/default.nix index a1a7c6419717..26ca90ab020f 100644 --- a/pkgs/development/python-modules/dask-histogram/default.nix +++ b/pkgs/development/python-modules/dask-histogram/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, boost-histogram -, dask -, hatchling -, hatch-vcs -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + boost-histogram, + dask, + hatchling, + hatch-vcs, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { dask ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dask_histogram" - ]; + pythonImportsCheck = [ "dask_histogram" ]; meta = with lib; { description = "Histograms with task scheduling"; diff --git a/pkgs/development/python-modules/dask-image/default.nix b/pkgs/development/python-modules/dask-image/default.nix index c7f57622801f..2a181fa66c15 100644 --- a/pkgs/development/python-modules/dask-image/default.nix +++ b/pkgs/development/python-modules/dask-image/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, dask -, numpy -, scipy -, pandas -, pims -, pytestCheckHook -, scikit-image +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + dask, + numpy, + scipy, + pandas, + pims, + pytestCheckHook, + scikit-image, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { scikit-image ]; - pythonImportsCheck = [ - "dask_image" - ]; + pythonImportsCheck = [ "dask_image" ]; meta = { description = "Distributed image processing"; diff --git a/pkgs/development/python-modules/dask-jobqueue/default.nix b/pkgs/development/python-modules/dask-jobqueue/default.nix index 69ef4a56f962..de99d37cfb8f 100644 --- a/pkgs/development/python-modules/dask-jobqueue/default.nix +++ b/pkgs/development/python-modules/dask-jobqueue/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, buildPythonPackage -, cryptography -, dask -, distributed -, docrep -, fetchPypi -, pytest-asyncio -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + cryptography, + dask, + distributed, + docrep, + fetchPypi, + pytest-asyncio, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -75,9 +76,7 @@ buildPythonPackage rec { "test_wrong_parameter_error" ]; - pythonImportsCheck = [ - "dask_jobqueue" - ]; + pythonImportsCheck = [ "dask_jobqueue" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/dask-ml/default.nix b/pkgs/development/python-modules/dask-ml/default.nix index 9c19a072ee58..2f6ffeff4ecd 100644 --- a/pkgs/development/python-modules/dask-ml/default.nix +++ b/pkgs/development/python-modules/dask-ml/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatch-vcs -, hatchling -, setuptools-scm -, dask -, dask-expr -, dask-glm -, distributed -, multipledispatch -, numba -, numpy -, packaging -, pandas -, scikit-learn -, scipy -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatch-vcs, + hatchling, + setuptools-scm, + dask, + dask-expr, + dask-glm, + distributed, + multipledispatch, + numba, + numpy, + packaging, + pandas, + scikit-learn, + scipy, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -51,8 +52,7 @@ buildPythonPackage rec { pandas scikit-learn scipy - ] ++ dask.optional-dependencies.array - ++ dask.optional-dependencies.dataframe; + ] ++ dask.optional-dependencies.array ++ dask.optional-dependencies.dataframe; pythonImportsCheck = [ "dask_ml" diff --git a/pkgs/development/python-modules/dask-mpi/default.nix b/pkgs/development/python-modules/dask-mpi/default.nix index ea9ff170908c..2bd7d06003c9 100644 --- a/pkgs/development/python-modules/dask-mpi/default.nix +++ b/pkgs/development/python-modules/dask-mpi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, dask -, distributed -, mpi4py -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + dask, + distributed, + mpi4py, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { # Hardcoded mpirun path in tests doCheck = false; - pythonImportsCheck = [ - "dask_mpi" - ]; + pythonImportsCheck = [ "dask_mpi" ]; meta = with lib; { description = "Deploy Dask using mpi4py"; diff --git a/pkgs/development/python-modules/dask-yarn/default.nix b/pkgs/development/python-modules/dask-yarn/default.nix index c14f52aa43c9..8d60496d6a15 100644 --- a/pkgs/development/python-modules/dask-yarn/default.nix +++ b/pkgs/development/python-modules/dask-yarn/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, setuptools -, versioneer -, dask -, distributed -, grpcio -, skein -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + setuptools, + versioneer, + dask, + distributed, + grpcio, + skein, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -28,7 +29,8 @@ buildPythonPackage rec { }; patches = [ - (fetchpatch { # https://github.com/dask/dask-yarn/pull/150 + (fetchpatch { + # https://github.com/dask/dask-yarn/pull/150 name = "address-deprecations-introduced-in-distributed-2021-07-0"; url = "https://github.com/dask/dask-yarn/pull/150/commits/459848afcdc22568905ee98622c74e4071496423.patch"; hash = "sha256-LS46QBdiAmsp4jQq4DdYdmmk1qzx5JZNTQUlRcRwY5k="; @@ -51,17 +53,13 @@ buildPythonPackage rec { skein ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR ''; - pythonImportsCheck = [ - "dask_yarn" - ]; + pythonImportsCheck = [ "dask_yarn" ]; disabledTests = [ # skein.exceptions.DriverError: Failed to start java process @@ -77,10 +75,11 @@ buildPythonPackage rec { meta = with lib; { description = "Deploy dask on YARN clusters"; mainProgram = "dask-yarn"; - longDescription = ''Dask-Yarn deploys Dask on YARN clusters, - such as are found in traditional Hadoop installations. - Dask-Yarn provides an easy interface to quickly start, - stop, and scale Dask clusters natively from Python. + longDescription = '' + Dask-Yarn deploys Dask on YARN clusters, + such as are found in traditional Hadoop installations. + Dask-Yarn provides an easy interface to quickly start, + stop, and scale Dask clusters natively from Python. ''; homepage = "https://yarn.dask.org/"; license = licenses.bsd3; diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix index 7cbd6be946e0..c713c7f2dd64 100644 --- a/pkgs/development/python-modules/dask/default.nix +++ b/pkgs/development/python-modules/dask/default.nix @@ -1,196 +1,196 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools -, wheel + # build-system + setuptools, + wheel, -# dependencies -, click -, cloudpickle -, fsspec -, importlib-metadata -, packaging -, partd -, pyyaml -, toolz + # dependencies + click, + cloudpickle, + fsspec, + importlib-metadata, + packaging, + partd, + pyyaml, + toolz, -# optional-dependencies -, numpy -, pyarrow -, lz4 -, pandas -, distributed -, bokeh -, jinja2 + # optional-dependencies + numpy, + pyarrow, + lz4, + pandas, + distributed, + bokeh, + jinja2, -# tests -, arrow-cpp -, dask-expr -, hypothesis -, pytest-asyncio -, pytest-rerunfailures -, pytest-xdist -, pytestCheckHook -, pythonOlder + # tests + arrow-cpp, + dask-expr, + hypothesis, + pytest-asyncio, + pytest-rerunfailures, + pytest-xdist, + pytestCheckHook, + pythonOlder, }: -let self = buildPythonPackage rec { - pname = "dask"; - version = "2024.5.1"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "dask"; + version = "2024.5.1"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.9"; - src = fetchFromGitHub { - owner = "dask"; - repo = "dask"; - rev = "refs/tags/${version}"; - hash = "sha256-FzvzmQa9kJAZw67HY+d+3uC6Bd246vp5QsyXepGnKH8="; - }; + src = fetchFromGitHub { + owner = "dask"; + repo = "dask"; + rev = "refs/tags/${version}"; + hash = "sha256-FzvzmQa9kJAZw67HY+d+3uC6Bd246vp5QsyXepGnKH8="; + }; - build-system = [ - setuptools - wheel - ]; - - dependencies = [ - click - cloudpickle - fsspec - packaging - partd - pyyaml - importlib-metadata - toolz - ]; - - passthru.optional-dependencies = lib.fix (self: { - array = [ - numpy + build-system = [ + setuptools + wheel ]; - complete = [ - pyarrow - lz4 - ] - ++ self.array - ++ self.dataframe - ++ self.distributed - ++ self.diagnostics; - dataframe = [ - # dask-expr -> circular dependency with dask-expr - numpy - pandas + + dependencies = [ + click + cloudpickle + fsspec + packaging + partd + pyyaml + importlib-metadata + toolz ]; - distributed = [ - distributed - ]; - diagnostics = [ - bokeh - jinja2 - ]; - }); - nativeCheckInputs = [ - dask-expr - pytestCheckHook - pytest-rerunfailures - pytest-xdist - # from panda[test] - hypothesis - pytest-asyncio - ] - ++ passthru.optional-dependencies.array - ++ passthru.optional-dependencies.dataframe - ++ lib.optionals (!arrow-cpp.meta.broken) [ # support is sparse on aarch64 - pyarrow - ]; - - dontUseSetuptoolsCheck = true; - - postPatch = '' - # versioneer hack to set version of GitHub package - echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py - - substituteInPlace setup.py \ - --replace "import versioneer" "" \ - --replace "version=versioneer.get_version()," "version='${version}'," \ - --replace "cmdclass=versioneer.get_cmdclass()," "" - - substituteInPlace pyproject.toml \ - --replace ', "versioneer[toml]==0.29"' "" \ - --replace " --durations=10" "" \ - --replace " --cov-config=pyproject.toml" "" \ - --replace "\"-v" "\" " - ''; - - pytestFlagsArray = [ - # Rerun failed tests up to three times - "--reruns 3" - # Don't run tests that require network access - "-m 'not network'" - ]; - - disabledTests = lib.optionals stdenv.isDarwin [ - # Test requires features of python3Packages.psutil that are - # blocked in sandboxed-builds - "test_auto_blocksize_csv" - # AttributeError: 'str' object has no attribute 'decode' - "test_read_dir_nometa" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # concurrent.futures.process.BrokenProcessPool: A process in the process pool terminated abpruptly... - "test_foldby_tree_reduction" - "test_to_bag" - ] ++ [ - # https://github.com/dask/dask/issues/10347#issuecomment-1589683941 - "test_concat_categorical" - # AttributeError: 'ArrowStringArray' object has no attribute 'tobytes'. Did you mean: 'nbytes'? - "test_dot" - "test_dot_nan" - "test_merge_column_with_nulls" - # FileNotFoundError: [Errno 2] No such file or directory: '/build/tmp301jryv_/createme/0.part' - "test_to_csv_nodir" - "test_to_json_results" - # FutureWarning: Those tests should be working fine when pandas will have been upgraded to 2.1.1 - "test_apply" - "test_apply_infer_columns" - ]; - - __darwinAllowLocalNetworking = true; - - pythonImportsCheck = [ - "dask" - "dask.bag" - "dask.bytes" - "dask.diagnostics" - ]; - - doCheck = false; - - # Enable tests via passthru to avoid cyclic dependency with dask-expr. - passthru.tests = { - check = self.overridePythonAttrs (old: { - doCheck = true; - pythonImportsCheck = [ - # Requires the `dask.optional-dependencies.array` that are only in `nativeCheckInputs` - "dask.array" - # Requires the `dask.optional-dependencies.dataframe` that are only in `nativeCheckInputs` - "dask.dataframe" - "dask.dataframe.io" - "dask.dataframe.tseries" - ] ++ old.pythonImportsCheck; + passthru.optional-dependencies = lib.fix (self: { + array = [ numpy ]; + complete = [ + pyarrow + lz4 + ] ++ self.array ++ self.dataframe ++ self.distributed ++ self.diagnostics; + dataframe = [ + # dask-expr -> circular dependency with dask-expr + numpy + pandas + ]; + distributed = [ distributed ]; + diagnostics = [ + bokeh + jinja2 + ]; }); - }; + nativeCheckInputs = + [ + dask-expr + pytestCheckHook + pytest-rerunfailures + pytest-xdist + # from panda[test] + hypothesis + pytest-asyncio + ] + ++ passthru.optional-dependencies.array + ++ passthru.optional-dependencies.dataframe + ++ lib.optionals (!arrow-cpp.meta.broken) [ + # support is sparse on aarch64 + pyarrow + ]; - meta = { - description = "Minimal task scheduling abstraction"; - mainProgram = "dask"; - homepage = "https://dask.org/"; - changelog = "https://docs.dask.org/en/latest/changelog.html"; - license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ GaetanLepage ]; + dontUseSetuptoolsCheck = true; + + postPatch = '' + # versioneer hack to set version of GitHub package + echo "def get_versions(): return {'dirty': False, 'error': None, 'full-revisionid': None, 'version': '${version}'}" > dask/_version.py + + substituteInPlace setup.py \ + --replace "import versioneer" "" \ + --replace "version=versioneer.get_version()," "version='${version}'," \ + --replace "cmdclass=versioneer.get_cmdclass()," "" + + substituteInPlace pyproject.toml \ + --replace ', "versioneer[toml]==0.29"' "" \ + --replace " --durations=10" "" \ + --replace " --cov-config=pyproject.toml" "" \ + --replace "\"-v" "\" " + ''; + + pytestFlagsArray = [ + # Rerun failed tests up to three times + "--reruns 3" + # Don't run tests that require network access + "-m 'not network'" + ]; + + disabledTests = + lib.optionals stdenv.isDarwin [ + # Test requires features of python3Packages.psutil that are + # blocked in sandboxed-builds + "test_auto_blocksize_csv" + # AttributeError: 'str' object has no attribute 'decode' + "test_read_dir_nometa" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # concurrent.futures.process.BrokenProcessPool: A process in the process pool terminated abpruptly... + "test_foldby_tree_reduction" + "test_to_bag" + ] + ++ [ + # https://github.com/dask/dask/issues/10347#issuecomment-1589683941 + "test_concat_categorical" + # AttributeError: 'ArrowStringArray' object has no attribute 'tobytes'. Did you mean: 'nbytes'? + "test_dot" + "test_dot_nan" + "test_merge_column_with_nulls" + # FileNotFoundError: [Errno 2] No such file or directory: '/build/tmp301jryv_/createme/0.part' + "test_to_csv_nodir" + "test_to_json_results" + # FutureWarning: Those tests should be working fine when pandas will have been upgraded to 2.1.1 + "test_apply" + "test_apply_infer_columns" + ]; + + __darwinAllowLocalNetworking = true; + + pythonImportsCheck = [ + "dask" + "dask.bag" + "dask.bytes" + "dask.diagnostics" + ]; + + doCheck = false; + + # Enable tests via passthru to avoid cyclic dependency with dask-expr. + passthru.tests = { + check = self.overridePythonAttrs (old: { + doCheck = true; + pythonImportsCheck = [ + # Requires the `dask.optional-dependencies.array` that are only in `nativeCheckInputs` + "dask.array" + # Requires the `dask.optional-dependencies.dataframe` that are only in `nativeCheckInputs` + "dask.dataframe" + "dask.dataframe.io" + "dask.dataframe.tseries" + ] ++ old.pythonImportsCheck; + }); + }; + + meta = { + description = "Minimal task scheduling abstraction"; + mainProgram = "dask"; + homepage = "https://dask.org/"; + changelog = "https://docs.dask.org/en/latest/changelog.html"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; }; -}; in self +in +self diff --git a/pkgs/development/python-modules/databases/default.nix b/pkgs/development/python-modules/databases/default.nix index 7cd05be5b8e1..44e356bdf13f 100644 --- a/pkgs/development/python-modules/databases/default.nix +++ b/pkgs/development/python-modules/databases/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiomysql -, aiopg -, aiosqlite -, asyncmy -, asyncpg -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, sqlalchemy +{ + lib, + aiomysql, + aiopg, + aiosqlite, + asyncmy, + asyncpg, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + sqlalchemy, }: buildPythonPackage rec { @@ -26,44 +27,22 @@ buildPythonPackage rec { hash = "sha256-Zf9QqBgDhWAnHdNvzjXtri5rdT00BOjc4YTNzJALldM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sqlalchemy - ]; + propagatedBuildInputs = [ sqlalchemy ]; passthru.optional-dependencies = { - postgresql = [ - asyncpg - ]; - asyncpg = [ - asyncpg - ]; - aiopg = [ - aiopg - ]; - mysql = [ - aiomysql - ]; - aiomysql = [ - aiomysql - ]; - asyncmy = [ - asyncmy - ]; - sqlite = [ - aiosqlite - ]; - aiosqlite = [ - aiosqlite - ]; + postgresql = [ asyncpg ]; + asyncpg = [ asyncpg ]; + aiopg = [ aiopg ]; + mysql = [ aiomysql ]; + aiomysql = [ aiomysql ]; + asyncmy = [ asyncmy ]; + sqlite = [ aiosqlite ]; + aiosqlite = [ aiosqlite ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # circular dependency on starlette @@ -73,9 +52,7 @@ buildPythonPackage rec { "tests/test_connection_options.py" ]; - pythonImportsCheck = [ - "databases" - ]; + pythonImportsCheck = [ "databases" ]; meta = with lib; { description = "Async database support for Python"; diff --git a/pkgs/development/python-modules/databricks-cli/default.nix b/pkgs/development/python-modules/databricks-cli/default.nix index 92d6adf55a11..4aeaec10aa04 100644 --- a/pkgs/development/python-modules/databricks-cli/default.nix +++ b/pkgs/development/python-modules/databricks-cli/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, click -, configparser -, decorator -, fetchFromGitHub -, mock -, oauthlib -, pyjwt -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, six -, tabulate +{ + lib, + buildPythonPackage, + click, + configparser, + decorator, + fetchFromGitHub, + mock, + oauthlib, + pyjwt, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + six, + tabulate, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { "integration/workspace/test_integration.py" ]; - pythonImportsCheck = [ - "databricks_cli" - ]; + pythonImportsCheck = [ "databricks_cli" ]; meta = with lib; { description = "Command line interface for Databricks"; diff --git a/pkgs/development/python-modules/databricks-connect/default.nix b/pkgs/development/python-modules/databricks-connect/default.nix index 85e64fea7823..89e85bcd7b0b 100644 --- a/pkgs/development/python-modules/databricks-connect/default.nix +++ b/pkgs/development/python-modules/databricks-connect/default.nix @@ -1,10 +1,11 @@ -{ lib -, jdk8 -, buildPythonPackage -, fetchPypi -, six -, py4j -, pythonOlder +{ + lib, + jdk8, + buildPythonPackage, + fetchPypi, + six, + py4j, + pythonOlder, }: buildPythonPackage rec { @@ -21,7 +22,11 @@ buildPythonPackage rec { sourceRoot = "."; - propagatedBuildInputs = [ py4j six jdk8 ]; + propagatedBuildInputs = [ + py4j + six + jdk8 + ]; # requires network access doCheck = false; @@ -36,7 +41,11 @@ buildPythonPackage rec { --replace find_spark_home.py .find_spark_home.py-wrapped ''; - pythonImportsCheck = [ "pyspark" "six" "py4j" ]; + pythonImportsCheck = [ + "pyspark" + "six" + "py4j" + ]; meta = with lib; { description = "Client for connecting to remote Databricks clusters"; diff --git a/pkgs/development/python-modules/databricks-sql-connector/default.nix b/pkgs/development/python-modules/databricks-sql-connector/default.nix index b7cb1311b6b4..fdbee91fdae4 100644 --- a/pkgs/development/python-modules/databricks-sql-connector/default.nix +++ b/pkgs/development/python-modules/databricks-sql-connector/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, alembic -, lz4 -, numpy -, oauthlib -, openpyxl -, pandas -, poetry-core -, pyarrow -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, sqlalchemy -, thrift +{ + lib, + buildPythonPackage, + fetchFromGitHub, + alembic, + lz4, + numpy, + oauthlib, + openpyxl, + pandas, + poetry-core, + pyarrow, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + sqlalchemy, + thrift, }: buildPythonPackage rec { @@ -52,17 +53,11 @@ buildPythonPackage rec { thrift ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "databricks" - ]; + pythonImportsCheck = [ "databricks" ]; meta = with lib; { description = "Databricks SQL Connector for Python"; diff --git a/pkgs/development/python-modules/dataclass-factory/default.nix b/pkgs/development/python-modules/dataclass-factory/default.nix index b6ce77a51f00..83de3f721832 100644 --- a/pkgs/development/python-modules/dataclass-factory/default.nix +++ b/pkgs/development/python-modules/dataclass-factory/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose2 -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose2, + typing-extensions, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-0BIWgyAV1hJzFX4xYFqswvQi5F1Ce+V9FKSmNYuJfZM="; }; - nativeCheckInputs = [ - nose2 - ]; + nativeCheckInputs = [ nose2 ]; - checkInputs = [ - typing-extensions - ]; + checkInputs = [ typing-extensions ]; pythonImportsCheck = [ "dataclass_factory" ]; diff --git a/pkgs/development/python-modules/dataclass-wizard/default.nix b/pkgs/development/python-modules/dataclass-wizard/default.nix index 0cc0eed0f51f..546f710a4370 100644 --- a/pkgs/development/python-modules/dataclass-wizard/default.nix +++ b/pkgs/development/python-modules/dataclass-wizard/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pythonAtLeast -, pytimeparse -, pyyaml -, pytestCheckHook -, pytest-mock -, typing-extensions +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pythonAtLeast, + pytimeparse, + pyyaml, + pytestCheckHook, + pytest-mock, + typing-extensions, }: buildPythonPackage rec { @@ -22,36 +23,29 @@ buildPythonPackage rec { hash = "sha256-Ufi4lZc+UkM6NZr4bS2OibpOmMjyiBEoVKxmrqauW50="; }; - propagatedBuildInputs = [ - ] ++ lib.optionals (pythonOlder "3.9") [ - typing-extensions - ]; + propagatedBuildInputs = [ ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ]; passthru.optional-dependencies = { - timedelta = [ - pytimeparse - ]; - yaml = [ - pyyaml - ]; + timedelta = [ pytimeparse ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ pytestCheckHook pytest-mock - ] ++ passthru.optional-dependencies.timedelta - ++ passthru.optional-dependencies.yaml; + ] ++ passthru.optional-dependencies.timedelta ++ passthru.optional-dependencies.yaml; - disabledTests = [ - ] ++ lib.optionals (pythonAtLeast "3.11") [ - # Any/None internal changes, tests need adjusting upstream - "without_type_hinting" - "default_dict" - "test_frozenset" - "test_set" - "date_times_with_custom_pattern" - "from_dict_handles_identical_cased_json_keys" - ]; + disabledTests = + [ ] + ++ lib.optionals (pythonAtLeast "3.11") [ + # Any/None internal changes, tests need adjusting upstream + "without_type_hinting" + "default_dict" + "test_frozenset" + "test_set" + "date_times_with_custom_pattern" + "from_dict_handles_identical_cased_json_keys" + ]; pythonImportsCheck = [ "dataclass_wizard" ]; diff --git a/pkgs/development/python-modules/dataclasses-serialization/default.nix b/pkgs/development/python-modules/dataclasses-serialization/default.nix index a52135ddaf6f..b1e014f0c163 100644 --- a/pkgs/development/python-modules/dataclasses-serialization/default.nix +++ b/pkgs/development/python-modules/dataclasses-serialization/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, more-properties -, typing-inspect -, toolz -, toposort -, bson -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + more-properties, + typing-inspect, + toolz, + toposort, + bson, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/datadiff/default.nix b/pkgs/development/python-modules/datadiff/default.nix index a971509ca823..b020a279a0fc 100644 --- a/pkgs/development/python-modules/datadiff/default.nix +++ b/pkgs/development/python-modules/datadiff/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Tests are not part of the PyPI releases doCheck = false; - pythonImportsCheck = [ - "datadiff" - ]; + pythonImportsCheck = [ "datadiff" ]; meta = with lib; { description = "Library to provide human-readable diffs of Python data structures"; diff --git a/pkgs/development/python-modules/datadog/default.nix b/pkgs/development/python-modules/datadog/default.nix index 8b0b0956b89d..87fde9f88a24 100644 --- a/pkgs/development/python-modules/datadog/default.nix +++ b/pkgs/development/python-modules/datadog/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, freezegun -, hatchling -, mock -, pytest-vcr -, pytestCheckHook -, python-dateutil -, pythonAtLeast -, pythonOlder -, requests -, vcrpy +{ + lib, + buildPythonPackage, + click, + fetchPypi, + freezegun, + hatchling, + mock, + pytest-vcr, + pytestCheckHook, + python-dateutil, + pythonAtLeast, + pythonOlder, + requests, + vcrpy, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-TLenmRr2ytuGj+RQzUVkc+ZfEfxni3189hBE/xxgdNg="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; __darwinAllowLocalNetworking = true; @@ -58,9 +55,7 @@ buildPythonPackage rec { "TestDogshell" ]; - pythonImportsCheck = [ - "datadog" - ]; + pythonImportsCheck = [ "datadog" ]; meta = with lib; { description = "The Datadog Python library"; diff --git a/pkgs/development/python-modules/datafusion/default.nix b/pkgs/development/python-modules/datafusion/default.nix index baf905f11fa7..5210884325f4 100644 --- a/pkgs/development/python-modules/datafusion/default.nix +++ b/pkgs/development/python-modules/datafusion/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, rustPlatform -, pytestCheckHook -, libiconv -, numpy -, protobuf -, pyarrow -, Security -, SystemConfiguration +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + rustPlatform, + pytestCheckHook, + libiconv, + numpy, + protobuf, + pyarrow, + Security, + SystemConfiguration, }: let @@ -54,17 +55,25 @@ buildPythonPackage rec { maturinBuildHook ]; - buildInputs = [ protobuf ] ++ lib.optionals stdenv.isDarwin [ - libiconv - Security - SystemConfiguration - ]; + buildInputs = + [ protobuf ] + ++ lib.optionals stdenv.isDarwin [ + libiconv + Security + SystemConfiguration + ]; propagatedBuildInputs = [ pyarrow ]; - nativeCheckInputs = [ pytestCheckHook numpy ]; + nativeCheckInputs = [ + pytestCheckHook + numpy + ]; pythonImportsCheck = [ "datafusion" ]; - pytestFlagsArray = [ "--pyargs" pname ]; + pytestFlagsArray = [ + "--pyargs" + pname + ]; preCheck = '' pushd $TMPDIR diff --git a/pkgs/development/python-modules/datamodeldict/default.nix b/pkgs/development/python-modules/datamodeldict/default.nix index 380429809836..8ab7fd4c0bcc 100644 --- a/pkgs/development/python-modules/datamodeldict/default.nix +++ b/pkgs/development/python-modules/datamodeldict/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + xmltodict, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-DadBRsc8qEu9PWgMNllGS2ESKL7kgBLDhg4yDr87WRk="; }; - propagatedBuildInputs = [ - xmltodict - ]; + propagatedBuildInputs = [ xmltodict ]; # no tests doCheck = false; - pythonImportsCheck = [ - "DataModelDict" - ]; + pythonImportsCheck = [ "DataModelDict" ]; meta = with lib; { description = "Class allowing for data models equivalently represented as Python dictionaries, JSON, and XML"; diff --git a/pkgs/development/python-modules/datapoint/default.nix b/pkgs/development/python-modules/datapoint/default.nix index 9f9c0b55c235..aec91a0e548b 100644 --- a/pkgs/development/python-modules/datapoint/default.nix +++ b/pkgs/development/python-modules/datapoint/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, appdirs -, pytz -, requests -, pytestCheckHook -, requests-mock -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + appdirs, + pytz, + requests, + pytestCheckHook, + requests-mock, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ appdirs diff --git a/pkgs/development/python-modules/dataprep-ml/default.nix b/pkgs/development/python-modules/dataprep-ml/default.nix index eef2f7f4f6fa..a8e24c9bc2a1 100644 --- a/pkgs/development/python-modules/dataprep-ml/default.nix +++ b/pkgs/development/python-modules/dataprep-ml/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, colorlog -, dataclasses-json -, fetchPypi -, nltk-data -, numpy -, pandas -, poetry-core -, pydantic -, pydateinfer -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, scipy -, symlinkJoin -, type-infer +{ + lib, + buildPythonPackage, + colorlog, + dataclasses-json, + fetchPypi, + nltk-data, + numpy, + pandas, + poetry-core, + pydantic, + pydateinfer, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + scipy, + symlinkJoin, + type-infer, }: let testNltkData = symlinkJoin { @@ -39,9 +40,7 @@ buildPythonPackage rec { hash = "sha256-pZhHlNcQJLBww7ur2Z6Yb2IdbRsBtjzQAzfa4UzGKt4="; }; - pythonRelaxDeps = [ - "pydantic" - ]; + pythonRelaxDeps = [ "pydantic" ]; nativeBuildInputs = [ poetry-core diff --git a/pkgs/development/python-modules/dataproperty/default.nix b/pkgs/development/python-modules/dataproperty/default.nix index 539c3324204e..b82fa0900fbb 100644 --- a/pkgs/development/python-modules/dataproperty/default.nix +++ b/pkgs/development/python-modules/dataproperty/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, loguru -, mbstrdecoder -, pytestCheckHook -, pythonOlder -, tcolorpy -, termcolor -, typepy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + loguru, + mbstrdecoder, + pytestCheckHook, + pythonOlder, + tcolorpy, + termcolor, + typepy, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { ] ++ typepy.optional-dependencies.datetime; passthru.optional-dependencies = { - logging = [ - loguru - ]; + logging = [ loguru ]; }; nativeCheckInputs = [ @@ -41,9 +40,7 @@ buildPythonPackage rec { termcolor ]; - pythonImportsCheck = [ - "dataproperty" - ]; + pythonImportsCheck = [ "dataproperty" ]; meta = with lib; { description = "Library for extracting properties from data"; diff --git a/pkgs/development/python-modules/dataset/default.nix b/pkgs/development/python-modules/dataset/default.nix index 9446920d0b05..778082fc276f 100644 --- a/pkgs/development/python-modules/dataset/default.nix +++ b/pkgs/development/python-modules/dataset/default.nix @@ -1,10 +1,11 @@ -{ lib -, alembic -, banal -, buildPythonPackage -, fetchPypi -, pythonOlder -, sqlalchemy +{ + lib, + alembic, + banal, + buildPythonPackage, + fetchPypi, + pythonOlder, + sqlalchemy, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # checks attempt to import nonexistent module 'test.test' and fail doCheck = false; - pythonImportsCheck = [ - "dataset" - ]; + pythonImportsCheck = [ "dataset" ]; meta = with lib; { description = "Toolkit for Python-based database access"; diff --git a/pkgs/development/python-modules/datasets/default.nix b/pkgs/development/python-modules/datasets/default.nix index 0ff05992b016..4ba7b08c0fb0 100644 --- a/pkgs/development/python-modules/datasets/default.nix +++ b/pkgs/development/python-modules/datasets/default.nix @@ -1,22 +1,23 @@ -{ lib -, aiohttp -, buildPythonPackage -, dill -, fetchFromGitHub -, fetchpatch -, fsspec -, huggingface-hub -, importlib-metadata -, multiprocess -, numpy -, packaging -, pandas -, pyarrow -, pythonOlder -, requests -, responses -, tqdm -, xxhash +{ + lib, + aiohttp, + buildPythonPackage, + dill, + fetchFromGitHub, + fetchpatch, + fsspec, + huggingface-hub, + importlib-metadata, + multiprocess, + numpy, + packaging, + pandas, + pyarrow, + pythonOlder, + requests, + responses, + tqdm, + xxhash, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { responses tqdm xxhash - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # Tests require pervasive internet access doCheck = false; @@ -63,9 +62,7 @@ buildPythonPackage rec { # Module import will attempt to create a cache directory postFixup = "export HF_MODULES_CACHE=$TMPDIR"; - pythonImportsCheck = [ - "datasets" - ]; + pythonImportsCheck = [ "datasets" ]; meta = with lib; { description = "Open-access datasets and evaluation metrics for natural language processing"; diff --git a/pkgs/development/python-modules/datasette-publish-fly/default.nix b/pkgs/development/python-modules/datasette-publish-fly/default.nix index a9c04618ee31..9e20a5fd7849 100644 --- a/pkgs/development/python-modules/datasette-publish-fly/default.nix +++ b/pkgs/development/python-modules/datasette-publish-fly/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cogapp -, datasette -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cogapp, + datasette, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-diaxr+fNNgkJvLGkLo+lK0ThTsXYDePFsvTetMbDRMk="; }; - propagatedBuildInputs = [ - datasette - ]; + propagatedBuildInputs = [ datasette ]; nativeCheckInputs = [ cogapp @@ -32,9 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "datasette_publish_fly" - ]; + pythonImportsCheck = [ "datasette_publish_fly" ]; meta = with lib; { description = "Datasette plugin for publishing data using Fly"; diff --git a/pkgs/development/python-modules/datasette-template-sql/default.nix b/pkgs/development/python-modules/datasette-template-sql/default.nix index a4ba47add5cf..ca77a27ca6ce 100644 --- a/pkgs/development/python-modules/datasette-template-sql/default.nix +++ b/pkgs/development/python-modules/datasette-template-sql/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, datasette -, fetchFromGitHub -, pytest-asyncio -, pythonOlder +{ + lib, + buildPythonPackage, + datasette, + fetchFromGitHub, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -20,16 +21,12 @@ buildPythonPackage rec { hash = "sha256-VmdIEDk3iCBFrTPMm6ud00Z5CWqO0Wk707IQ4oVx5ak="; }; - propagatedBuildInputs = [ - datasette - ]; + propagatedBuildInputs = [ datasette ]; # Tests require a running datasette instance doCheck = false; - pythonImportsCheck = [ - "datasette_template_sql" - ]; + pythonImportsCheck = [ "datasette_template_sql" ]; meta = with lib; { description = "Datasette plugin for executing SQL queries from templates"; diff --git a/pkgs/development/python-modules/datasette/default.nix b/pkgs/development/python-modules/datasette/default.nix index a3c43a528aab..e56f31449f09 100644 --- a/pkgs/development/python-modules/datasette/default.nix +++ b/pkgs/development/python-modules/datasette/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiofiles -, asgi-csrf -, click -, click-default-group -, itsdangerous -, janus -, jinja2 -, hupper -, mergedeep -, pint -, pluggy -, python-baseconv -, pyyaml -, uvicorn -, httpx -, pytestCheckHook -, pytest-asyncio -, pytest-timeout -, aiohttp -, beautifulsoup4 -, asgiref -, setuptools -, trustme -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiofiles, + asgi-csrf, + click, + click-default-group, + itsdangerous, + janus, + jinja2, + hupper, + mergedeep, + pint, + pluggy, + python-baseconv, + pyyaml, + uvicorn, + httpx, + pytestCheckHook, + pytest-asyncio, + pytest-timeout, + aiohttp, + beautifulsoup4, + asgiref, + setuptools, + trustme, + pythonOlder, }: buildPythonPackage rec { @@ -78,9 +79,7 @@ buildPythonPackage rec { # takes 30-180 mins to run entire test suite, not worth the CPU resources, slows down reviews # with pytest-xdist, it still takes around 10 mins with 32 cores # just run the csv tests, as this should give some indictation of correctness - pytestFlagsArray = [ - "tests/test_csv.py" - ]; + pytestFlagsArray = [ "tests/test_csv.py" ]; disabledTests = [ "facet" diff --git a/pkgs/development/python-modules/datashader/default.nix b/pkgs/development/python-modules/datashader/default.nix index 87ac07e6a838..45f009df98ad 100644 --- a/pkgs/development/python-modules/datashader/default.nix +++ b/pkgs/development/python-modules/datashader/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, dask -, bokeh -, toolz -, datashape -, numba -, numpy -, pandas -, pillow -, xarray -, colorcet -, param -, pyct -, scipy -, pytestCheckHook -, pythonOlder -, nbsmoke -, fastparquet -, nbconvert -, pytest-xdist -, netcdf4 +{ + lib, + buildPythonPackage, + fetchPypi, + dask, + bokeh, + toolz, + datashape, + numba, + numpy, + pandas, + pillow, + xarray, + colorcet, + param, + pyct, + scipy, + pytestCheckHook, + pythonOlder, + nbsmoke, + fastparquet, + nbconvert, + pytest-xdist, + netcdf4, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pytestFlagsArray = [ - "datashader" - ]; + pytestFlagsArray = [ "datashader" ]; disabledTests = [ # Not compatible with current version of bokeh @@ -90,11 +89,9 @@ buildPythonPackage rec { "datashader/tests/test_datatypes.py" ]; - pythonImportsCheck = [ - "datashader" - ]; + pythonImportsCheck = [ "datashader" ]; - meta = with lib;{ + meta = with lib; { description = "Data visualization toolchain based on aggregating into a grid"; mainProgram = "datashader"; homepage = "https://datashader.org"; diff --git a/pkgs/development/python-modules/datashape/default.nix b/pkgs/development/python-modules/datashape/default.nix index 459fc548463d..6f6651a6c617 100644 --- a/pkgs/development/python-modules/datashape/default.nix +++ b/pkgs/development/python-modules/datashape/default.nix @@ -1,25 +1,32 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, mock -, numpy -, multipledispatch -, python-dateutil +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + mock, + numpy, + multipledispatch, + python-dateutil, }: let # Fetcher function looks similar to fetchPypi. # Allows for easier overriding, without having to know # how the source is actually fetched. - fetcher = {pname, version, sha256}: fetchFromGitHub { - owner = "blaze"; - repo = pname; - rev = version; - inherit sha256; - }; - -in buildPythonPackage rec { + fetcher = + { + pname, + version, + sha256, + }: + fetchFromGitHub { + owner = "blaze"; + repo = pname; + rev = version; + inherit sha256; + }; +in +buildPythonPackage rec { pname = "datashape"; version = "0.5.4"; format = "setuptools"; @@ -29,8 +36,15 @@ in buildPythonPackage rec { sha256 = "0rhlj2kjj1vx5m73wnc5518rd6cs1zsbgpsvzk893n516k69shcf"; }; - nativeCheckInputs = [ pytest mock ]; - propagatedBuildInputs = [ numpy multipledispatch python-dateutil ]; + nativeCheckInputs = [ + pytest + mock + ]; + propagatedBuildInputs = [ + numpy + multipledispatch + python-dateutil + ]; # Disable several tests # https://github.com/blaze/datashape/issues/232 diff --git a/pkgs/development/python-modules/datatable/default.nix b/pkgs/development/python-modules/datatable/default.nix index 599d2e6cec72..1ecc3d89e102 100644 --- a/pkgs/development/python-modules/datatable/default.nix +++ b/pkgs/development/python-modules/datatable/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pipInstallHook -, writeText -, blessed -, docutils -, libcxx -, llvm -, pytestCheckHook -, typesentry +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pipInstallHook, + writeText, + blessed, + docutils, + libcxx, + llvm, + pytestCheckHook, + typesentry, }: buildPythonPackage rec { @@ -39,9 +40,18 @@ buildPythonPackage rec { ''; DT_RELEASE = "1"; - propagatedBuildInputs = [ typesentry blessed ]; - buildInputs = [ llvm pipInstallHook ]; - nativeCheckInputs = [ docutils pytestCheckHook ]; + propagatedBuildInputs = [ + typesentry + blessed + ]; + buildInputs = [ + llvm + pipInstallHook + ]; + nativeCheckInputs = [ + docutils + pytestCheckHook + ]; LLVM = llvm; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-isystem ${lib.getDev libcxx}/include/c++/v1"; diff --git a/pkgs/development/python-modules/datefinder/default.nix b/pkgs/development/python-modules/datefinder/default.nix index 938f25ee1d70..ff7ebf54c699 100644 --- a/pkgs/development/python-modules/datefinder/default.nix +++ b/pkgs/development/python-modules/datefinder/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, python-dateutil -, pytz -, regex +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + python-dateutil, + pytz, + regex, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "datefinder" ]; diff --git a/pkgs/development/python-modules/dateparser/default.nix b/pkgs/development/python-modules/dateparser/default.nix index b97dabbc2d91..3f1fec78aeb3 100644 --- a/pkgs/development/python-modules/dateparser/default.nix +++ b/pkgs/development/python-modules/dateparser/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, python-dateutil -, pytz -, regex -, tzlocal -, hijri-converter -, convertdate -, fasttext -, langdetect -, parameterized -, pytestCheckHook -, gitpython -, parsel -, requests -, ruamel-yaml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + python-dateutil, + pytz, + regex, + tzlocal, + hijri-converter, + convertdate, + fasttext, + langdetect, + parameterized, + pytestCheckHook, + gitpython, + parsel, + requests, + ruamel-yaml, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-mnL44hojebOwP6qtEBHs5QM4uRmLuGlVNr+sM3jZEKE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ python-dateutil @@ -46,7 +45,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - calendars = [ hijri-converter convertdate ]; + calendars = [ + hijri-converter + convertdate + ]; fasttext = [ fasttext ]; langdetect = [ langdetect ]; }; diff --git a/pkgs/development/python-modules/datetime/default.nix b/pkgs/development/python-modules/datetime/default.nix index 332babd307de..b782b923dff2 100644 --- a/pkgs/development/python-modules/datetime/default.nix +++ b/pkgs/development/python-modules/datetime/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytz -, zope-interface +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytz, + zope-interface, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { zope-interface ]; - pythonImportsCheck = [ - "DateTime" - ]; + pythonImportsCheck = [ "DateTime" ]; meta = with lib; { description = "DateTime data type, as known from Zope"; diff --git a/pkgs/development/python-modules/dateutils/default.nix b/pkgs/development/python-modules/dateutils/default.nix index f9efbb47eb05..00fdccfffe8b 100644 --- a/pkgs/development/python-modules/dateutils/default.nix +++ b/pkgs/development/python-modules/dateutils/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, python-dateutil, pytz }: +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + pytz, +}: buildPythonPackage rec { pname = "dateutils"; diff --git a/pkgs/development/python-modules/datrie/default.nix b/pkgs/development/python-modules/datrie/default.nix index 73f4764d742d..4c6de5beccd9 100644 --- a/pkgs/development/python-modules/datrie/default.nix +++ b/pkgs/development/python-modules/datrie/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, cython -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + cython, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dawg-python/default.nix b/pkgs/development/python-modules/dawg-python/default.nix index 015e6a1d5c34..639b8baa2157 100644 --- a/pkgs/development/python-modules/dawg-python/default.nix +++ b/pkgs/development/python-modules/dawg-python/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dazl/default.nix b/pkgs/development/python-modules/dazl/default.nix index 8e26c9194f9b..70cd5116c585 100644 --- a/pkgs/development/python-modules/dazl/default.nix +++ b/pkgs/development/python-modules/dazl/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, -, poetry-core + poetry-core, -, aiohttp -, googleapis-common-protos -, grpcio -, protobuf -, requests -, semver -, toposort + aiohttp, + googleapis-common-protos, + grpcio, + protobuf, + requests, + semver, + toposort, -#, async_exit_stack -#, dataclasses -, google-auth -, oauthlib -, prometheus-client -, pygments -, pyopenssl -, typing-extensions + #, async_exit_stack + #, dataclasses + google-auth, + oauthlib, + prometheus-client, + pygments, + pyopenssl, + typing-extensions, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { format = "pyproject"; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/db-dtypes/default.nix b/pkgs/development/python-modules/db-dtypes/default.nix index 528134f7349b..0b6eb890fb60 100644 --- a/pkgs/development/python-modules/db-dtypes/default.nix +++ b/pkgs/development/python-modules/db-dtypes/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, packaging -, pandas -, pyarrow -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + packaging, + pandas, + pyarrow, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-FVRqh30mYVfC8zuhPteuvqGYGTp3PW+pi1bquUjYFAg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -35,13 +34,9 @@ buildPythonPackage rec { pyarrow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "db_dtypes" - ]; + pythonImportsCheck = [ "db_dtypes" ]; meta = with lib; { description = "Pandas Data Types for SQL systems (BigQuery, Spanner)"; diff --git a/pkgs/development/python-modules/dbf/default.nix b/pkgs/development/python-modules/dbf/default.nix index eb64e3795937..ebe64fa28a50 100644 --- a/pkgs/development/python-modules/dbf/default.nix +++ b/pkgs/development/python-modules/dbf/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, aenum -, pythonOlder -, python +{ + lib, + fetchPypi, + buildPythonPackage, + aenum, + pythonOlder, + python, }: buildPythonPackage rec { @@ -18,17 +19,13 @@ buildPythonPackage rec { hash = "sha256-MFEi1U0RNvrfDtV4HpvPgKTCibAh76z7Gnmj32IubYw="; }; - propagatedBuildInputs = [ - aenum - ]; + propagatedBuildInputs = [ aenum ]; checkPhase = '' ${python.interpreter} -m dbf.test ''; - pythonImportsCheck = [ - "dbf" - ]; + pythonImportsCheck = [ "dbf" ]; meta = with lib; { description = "Module for reading/writing dBase, FoxPro, and Visual FoxPro .dbf files"; diff --git a/pkgs/development/python-modules/dbfread/default.nix b/pkgs/development/python-modules/dbfread/default.nix index 2e7f12e0f061..029ca35d7785 100644 --- a/pkgs/development/python-modules/dbfread/default.nix +++ b/pkgs/development/python-modules/dbfread/default.nix @@ -1,19 +1,23 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { - pname = "dbfread"; - version = "2.0.7"; - format = "setuptools"; + pname = "dbfread"; + version = "2.0.7"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "07c8a9af06ffad3f6f03e8fe91ad7d2733e31a26d2b72c4dd4cfbae07ee3b73d"; - }; + src = fetchPypi { + inherit pname version; + sha256 = "07c8a9af06ffad3f6f03e8fe91ad7d2733e31a26d2b72c4dd4cfbae07ee3b73d"; + }; - meta = with lib; { - description = "Read DBF Files with Python"; - homepage = "https://dbfread.readthedocs.org/"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ vrthra ]; - }; + meta = with lib; { + description = "Read DBF Files with Python"; + homepage = "https://dbfread.readthedocs.org/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ vrthra ]; + }; } diff --git a/pkgs/development/python-modules/dbglib/default.nix b/pkgs/development/python-modules/dbglib/default.nix index c928e5bb71e0..706d5018e233 100644 --- a/pkgs/development/python-modules/dbglib/default.nix +++ b/pkgs/development/python-modules/dbglib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -14,12 +15,8 @@ buildPythonPackage rec { inherit pname version; sha256 = "7b4fd5c4949af435a7ab558f87b406acd5ddf9dc7f01fc3b3e99ebcec9a4674c"; }; - propagatedBuildInputs = [ - poetry-core - ]; - pythonImportsCheck = [ - "dbglib" - ]; + propagatedBuildInputs = [ poetry-core ]; + pythonImportsCheck = [ "dbglib" ]; meta = with lib; { homepage = "https://github.com/savioxavier/dbglib/"; license = licenses.mit; diff --git a/pkgs/development/python-modules/dbt-bigquery/default.nix b/pkgs/development/python-modules/dbt-bigquery/default.nix index 2ad6e8b1a42e..6de783f936a6 100644 --- a/pkgs/development/python-modules/dbt-bigquery/default.nix +++ b/pkgs/development/python-modules/dbt-bigquery/default.nix @@ -1,16 +1,17 @@ -{ lib -, agate -, buildPythonPackage -, dbt-core -, fetchFromGitHub -, google-cloud-bigquery -, google-cloud-dataproc -, google-cloud-storage -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, urllib3 +{ + lib, + agate, + buildPythonPackage, + dbt-core, + fetchFromGitHub, + google-cloud-bigquery, + google-cloud-dataproc, + google-cloud-storage, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-Uc842hkrCYDR92ACDtNW+Iqq5l54CSp40D1tOL7wt8o="; }; - pythonRelaxDeps = [ - "agate" - ]; + pythonRelaxDeps = [ "agate" ]; build-system = [ pythonRelaxDepsHook @@ -44,17 +43,11 @@ buildPythonPackage rec { google-cloud-dataproc ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "dbt.adapters.bigquery" - ]; + pythonImportsCheck = [ "dbt.adapters.bigquery" ]; meta = with lib; { description = "Plugin enabling dbt to operate on a BigQuery database"; diff --git a/pkgs/development/python-modules/dbt-core/default.nix b/pkgs/development/python-modules/dbt-core/default.nix index db61698ebfaa..aa510105bd5e 100644 --- a/pkgs/development/python-modules/dbt-core/default.nix +++ b/pkgs/development/python-modules/dbt-core/default.nix @@ -1,34 +1,35 @@ -{ lib -, agate -, buildPythonPackage -, cffi -, click -, colorama -, dbt-extractor -, dbt-semantic-interfaces -, fetchFromGitHub -, hologram -, idna -, isodate -, jinja2 -, logbook -, mashumaro -, minimal-snowplow-tracker -, networkx -, packaging -, pathspec -, protobuf -, python3 -, pythonOlder -, pythonRelaxDepsHook -, pytz -, pyyaml -, requests -, setuptools -, sqlparse -, typing-extensions -, urllib3 -, werkzeug +{ + lib, + agate, + buildPythonPackage, + cffi, + click, + colorama, + dbt-extractor, + dbt-semantic-interfaces, + fetchFromGitHub, + hologram, + idna, + isodate, + jinja2, + logbook, + mashumaro, + minimal-snowplow-tracker, + networkx, + packaging, + pathspec, + protobuf, + python3, + pythonOlder, + pythonRelaxDepsHook, + pytz, + pyyaml, + requests, + setuptools, + sqlparse, + typing-extensions, + urllib3, + werkzeug, }: buildPythonPackage rec { @@ -117,7 +118,10 @@ buildPythonPackage rec { homepage = "https://github.com/dbt-labs/dbt-core"; changelog = "https://github.com/dbt-labs/dbt-core/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; - maintainers = with maintainers; [ mausch tjni ]; + maintainers = with maintainers; [ + mausch + tjni + ]; mainProgram = "dbt"; }; } diff --git a/pkgs/development/python-modules/dbt-core/with-adapters.nix b/pkgs/development/python-modules/dbt-core/with-adapters.nix index 006f4a96b853..92bd22dd2f9f 100644 --- a/pkgs/development/python-modules/dbt-core/with-adapters.nix +++ b/pkgs/development/python-modules/dbt-core/with-adapters.nix @@ -1,18 +1,24 @@ -{ python3 -, dbt-bigquery -, dbt-core -, dbt-postgres -, dbt-redshift -, dbt-snowflake +{ + python3, + dbt-bigquery, + dbt-core, + dbt-postgres, + dbt-redshift, + dbt-snowflake, }: let adapters = { - inherit dbt-bigquery dbt-postgres dbt-redshift dbt-snowflake; + inherit + dbt-bigquery + dbt-postgres + dbt-redshift + dbt-snowflake + ; }; in -adapterFun: (python3.buildEnv.override { +adapterFun: +(python3.buildEnv.override { extraLibs = [ dbt-core ] ++ (adapterFun adapters); ignoreCollisions = true; -}).overrideAttrs { - meta.mainProgram = dbt-core.meta.mainProgram; -} +}).overrideAttrs + { meta.mainProgram = dbt-core.meta.mainProgram; } diff --git a/pkgs/development/python-modules/dbt-extractor/default.nix b/pkgs/development/python-modules/dbt-extractor/default.nix index 74b1bb4d3d24..aa0cd12b86a0 100644 --- a/pkgs/development/python-modules/dbt-extractor/default.nix +++ b/pkgs/development/python-modules/dbt-extractor/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, libiconv -, pythonOlder -, rustPlatform +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + libiconv, + pythonOlder, + rustPlatform, }: buildPythonPackage rec { @@ -32,22 +33,21 @@ buildPythonPackage rec { rustPlatform.maturinBuildHook ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; # no python tests exist doCheck = false; - pythonImportsCheck = [ - "dbt_extractor" - ]; + pythonImportsCheck = [ "dbt_extractor" ]; meta = with lib; { description = "A tool that processes the most common jinja value templates in dbt model files"; homepage = "https://github.com/dbt-labs/dbt-extractor"; changelog = "https://github.com/dbt-labs/dbt-extractor/blob/main/CHANGELOG.md"; license = licenses.asl20; - maintainers = with maintainers; [ mausch tjni ]; + maintainers = with maintainers; [ + mausch + tjni + ]; }; } diff --git a/pkgs/development/python-modules/dbt-postgres/default.nix b/pkgs/development/python-modules/dbt-postgres/default.nix index d2669cb2357e..8cca80c11285 100644 --- a/pkgs/development/python-modules/dbt-postgres/default.nix +++ b/pkgs/development/python-modules/dbt-postgres/default.nix @@ -1,10 +1,11 @@ -{ lib -, agate -, buildPythonPackage -, dbt-core -, psycopg2 -, pythonOlder -, setuptools +{ + lib, + agate, + buildPythonPackage, + dbt-core, + psycopg2, + pythonOlder, + setuptools, }: buildPythonPackage { @@ -19,9 +20,7 @@ buildPythonPackage { env.DBT_PSYCOPG2_NAME = "psycopg2"; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ agate @@ -32,9 +31,7 @@ buildPythonPackage { # tests exist for the dbt tool but not for this package specifically doCheck = false; - pythonImportsCheck = [ - "dbt.adapters.postgres" - ]; + pythonImportsCheck = [ "dbt.adapters.postgres" ]; meta = with lib; { description = "Plugin enabling dbt to work with a Postgres database"; diff --git a/pkgs/development/python-modules/dbt-redshift/default.nix b/pkgs/development/python-modules/dbt-redshift/default.nix index ea543b6ee4af..b30c787a9324 100644 --- a/pkgs/development/python-modules/dbt-redshift/default.nix +++ b/pkgs/development/python-modules/dbt-redshift/default.nix @@ -1,15 +1,16 @@ -{ lib -, agate -, boto3 -, buildPythonPackage -, dbt-core -, dbt-postgres -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, redshift-connector -, setuptools +{ + lib, + agate, + boto3, + buildPythonPackage, + dbt-core, + dbt-postgres, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + redshift-connector, + setuptools, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { "redshift-connector" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ agate @@ -47,17 +44,11 @@ buildPythonPackage rec { redshift-connector ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "dbt.adapters.redshift" - ]; + pythonImportsCheck = [ "dbt.adapters.redshift" ]; meta = with lib; { description = "Plugin enabling dbt to work with Amazon Redshift"; diff --git a/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix b/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix index d63a0cee0447..1abaa554e9a2 100644 --- a/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix +++ b/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, click -, dateutils -, dbt-postgres -, fetchFromGitHub -, hatchling -, pythonRelaxDepsHook -, hypothesis -, importlib-metadata -, jinja2 -, jsonschema -, more-itertools -, pydantic -, pytestCheckHook -, pythonOlder -, pyyaml -, typing-extensions +{ + lib, + buildPythonPackage, + click, + dateutils, + dbt-postgres, + fetchFromGitHub, + hatchling, + pythonRelaxDepsHook, + hypothesis, + importlib-metadata, + jinja2, + jsonschema, + more-itertools, + pydantic, + pytestCheckHook, + pythonOlder, + pyyaml, + typing-extensions, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-uvwcnOKjwxEmA+/QRGSRofpoE4jZzmE02mGSDLINrJw="; }; - pythonRelaxDeps = [ - "importlib-metadata" - ]; + pythonRelaxDeps = [ "importlib-metadata" ]; build-system = [ hatchling @@ -58,9 +57,7 @@ buildPythonPackage rec { hypothesis ]; - pythonImportsCheck = [ - "dbt_semantic_interfaces" - ]; + pythonImportsCheck = [ "dbt_semantic_interfaces" ]; meta = with lib; { description = "Shared interfaces used by dbt-core and MetricFlow projects"; diff --git a/pkgs/development/python-modules/dbt-snowflake/default.nix b/pkgs/development/python-modules/dbt-snowflake/default.nix index a25ffaba5581..5f46ad88e038 100644 --- a/pkgs/development/python-modules/dbt-snowflake/default.nix +++ b/pkgs/development/python-modules/dbt-snowflake/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dbt-core -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, snowflake-connector-python +{ + lib, + buildPythonPackage, + dbt-core, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + snowflake-connector-python, }: buildPythonPackage rec { @@ -22,26 +23,18 @@ buildPythonPackage rec { hash = "sha256-ksnLQdoXR8KVtYTFdlaWT8UYjAsLNyEVVap/QHtm+j8="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ dbt-core snowflake-connector-python ] ++ snowflake-connector-python.optional-dependencies.secure-local-storage; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "dbt.adapters.snowflake" - ]; + pythonImportsCheck = [ "dbt.adapters.snowflake" ]; meta = with lib; { description = "Plugin enabling dbt to work with Snowflake"; diff --git a/pkgs/development/python-modules/dbus-client-gen/default.nix b/pkgs/development/python-modules/dbus-client-gen/default.nix index fdc173258e50..c95327a52373 100644 --- a/pkgs/development/python-modules/dbus-client-gen/default.nix +++ b/pkgs/development/python-modules/dbus-client-gen/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dbus-deviation/default.nix b/pkgs/development/python-modules/dbus-deviation/default.nix index 739c9ba43aca..22cd4273fbc2 100644 --- a/pkgs/development/python-modules/dbus-deviation/default.nix +++ b/pkgs/development/python-modules/dbus-deviation/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, setuptools -, setuptools-git +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + setuptools, + setuptools-git, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { setuptools-git ]; - propagatedBuildInputs = [ - lxml - ]; + propagatedBuildInputs = [ lxml ]; pythonImportsCheck = [ "dbusdeviation" ]; diff --git a/pkgs/development/python-modules/dbus-next/default.nix b/pkgs/development/python-modules/dbus-next/default.nix index 06af9630188b..c27dad1f3c1f 100644 --- a/pkgs/development/python-modules/dbus-next/default.nix +++ b/pkgs/development/python-modules/dbus-next/default.nix @@ -1,10 +1,15 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, python -, setuptools -, dbus, pytest, pytest-cov, pytest-asyncio, pytest-timeout +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + python, + setuptools, + dbus, + pytest, + pytest-cov, + pytest-asyncio, + pytest-timeout, }: buildPythonPackage rec { @@ -19,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-EKEQZFRUe+E65Z6DNCJFL5uCI5kbXrN7Tzd4O0X5Cqo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ dbus diff --git a/pkgs/development/python-modules/dbus-python-client-gen/default.nix b/pkgs/development/python-modules/dbus-python-client-gen/default.nix index 15b696f62bdb..af38a76b0e1c 100644 --- a/pkgs/development/python-modules/dbus-python-client-gen/default.nix +++ b/pkgs/development/python-modules/dbus-python-client-gen/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, into-dbus-python -, dbus-python -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + into-dbus-python, + dbus-python, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { dbus-python ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "dbus_python_client_gen" ]; diff --git a/pkgs/development/python-modules/dbus-python/default.nix b/pkgs/development/python-modules/dbus-python/default.nix index 22025ce6d7cb..937ec9511ef5 100644 --- a/pkgs/development/python-modules/dbus-python/default.nix +++ b/pkgs/development/python-modules/dbus-python/default.nix @@ -1,106 +1,106 @@ -{ lib -, fetchPypi -, buildPythonPackage -, fetchpatch -, isPyPy -, python +{ + lib, + fetchPypi, + buildPythonPackage, + fetchpatch, + isPyPy, + python, -# build-system -, meson -, meson-python -, pkg-config + # build-system + meson, + meson-python, + pkg-config, -# native dependencies -, dbus -, dbus-glib + # native dependencies + dbus, + dbus-glib, }: -lib.fix (finalPackage: buildPythonPackage rec { - pname = "dbus-python"; - version = "1.3.2"; - pyproject = true; +lib.fix ( + finalPackage: + buildPythonPackage rec { + pname = "dbus-python"; + version = "1.3.2"; + pyproject = true; - disabled = isPyPy; + disabled = isPyPy; - outputs = [ - "out" - "dev" - ]; + outputs = [ + "out" + "dev" + ]; - src = fetchPypi { - inherit pname version; - hash = "sha256-rWeBkwhhi1BpU3viN/jmjKHH/Mle5KEh/mhFsUGCSPg="; - }; + src = fetchPypi { + inherit pname version; + hash = "sha256-rWeBkwhhi1BpU3viN/jmjKHH/Mle5KEh/mhFsUGCSPg="; + }; - patches = [ - # reduce required dependencies - # https://gitlab.freedesktop.org/dbus/dbus-python/-/merge_requests/23 - (fetchpatch { - url = "https://gitlab.freedesktop.org/dbus/dbus-python/-/commit/d5e19698a8d6e1485f05b67a5b2daa2392819aaf.patch"; - hash = "sha256-Rmj/ByRLiLnIF3JsMBElJugxsG8IARcBdixLhoWgIYU="; - }) - ]; + patches = [ + # reduce required dependencies + # https://gitlab.freedesktop.org/dbus/dbus-python/-/merge_requests/23 + (fetchpatch { + url = "https://gitlab.freedesktop.org/dbus/dbus-python/-/commit/d5e19698a8d6e1485f05b67a5b2daa2392819aaf.patch"; + hash = "sha256-Rmj/ByRLiLnIF3JsMBElJugxsG8IARcBdixLhoWgIYU="; + }) + ]; - postPatch = '' - # we provide patchelf natively, not through the python package - sed -i '/patchelf/d' pyproject.toml + postPatch = '' + # we provide patchelf natively, not through the python package + sed -i '/patchelf/d' pyproject.toml - # dont run autotols configure phase - rm configure.ac configure + # dont run autotols configure phase + rm configure.ac configure - patchShebangs test/*.sh - ''; + patchShebangs test/*.sh + ''; - nativeBuildInputs = [ - dbus # build systems checks for `dbus-run-session` in PATH - meson - meson-python - pkg-config - ]; + nativeBuildInputs = [ + dbus # build systems checks for `dbus-run-session` in PATH + meson + meson-python + pkg-config + ]; - buildInputs = [ - dbus - dbus-glib - ]; + buildInputs = [ + dbus + dbus-glib + ]; - pypaBuildFlags = [ - # Don't discard meson build directory, still needed for tests! - "-Cbuild-dir=_meson-build" - ]; + pypaBuildFlags = [ + # Don't discard meson build directory, still needed for tests! + "-Cbuild-dir=_meson-build" + ]; - mesonFlags = [ - (lib.mesonBool "tests" finalPackage.doInstallCheck) - ]; + mesonFlags = [ (lib.mesonBool "tests" finalPackage.doInstallCheck) ]; - # workaround bug in meson-python - # https://github.com/mesonbuild/meson-python/issues/240 - postInstall = '' - mkdir -p $dev/lib - mv $out/${python.sitePackages}/.dbus_python.mesonpy.libs/pkgconfig/ $dev/lib - ''; + # workaround bug in meson-python + # https://github.com/mesonbuild/meson-python/issues/240 + postInstall = '' + mkdir -p $dev/lib + mv $out/${python.sitePackages}/.dbus_python.mesonpy.libs/pkgconfig/ $dev/lib + ''; - # make sure the Cflags in the pkgconfig file are correct and make the structure backwards compatible - postFixup = '' - ln -s $dev/include/*/dbus_python/dbus-1.0/ $dev/include/dbus-1.0 - ''; + # make sure the Cflags in the pkgconfig file are correct and make the structure backwards compatible + postFixup = '' + ln -s $dev/include/*/dbus_python/dbus-1.0/ $dev/include/dbus-1.0 + ''; - nativeCheckInputs = [ - dbus.out - ]; + nativeCheckInputs = [ dbus.out ]; - checkPhase = '' - runHook preCheck + checkPhase = '' + runHook preCheck - meson test -C _meson-build --no-rebuild --print-errorlogs + meson test -C _meson-build --no-rebuild --print-errorlogs - runHook postCheck - ''; + runHook postCheck + ''; - meta = with lib; { - description = "Python DBus bindings"; - homepage = "https://gitlab.freedesktop.org/dbus/dbus-python"; - license = licenses.mit; - platforms = dbus.meta.platforms; - maintainers = with maintainers; [ ]; - }; -}) + meta = with lib; { + description = "Python DBus bindings"; + homepage = "https://gitlab.freedesktop.org/dbus/dbus-python"; + license = licenses.mit; + platforms = dbus.meta.platforms; + maintainers = with maintainers; [ ]; + }; + } +) diff --git a/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix b/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix index 083a4d7dc7dc..2110bcebec72 100644 --- a/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix +++ b/pkgs/development/python-modules/dbus-signature-pyparsing/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyparsing -, pytestCheckHook -, hypothesis -, hs-dbus-signature +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyparsing, + pytestCheckHook, + hypothesis, + hs-dbus-signature, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dbutils/default.nix b/pkgs/development/python-modules/dbutils/default.nix index 49d3d00c110a..2995db09d4a6 100644 --- a/pkgs/development/python-modules/dbutils/default.nix +++ b/pkgs/development/python-modules/dbutils/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-6lKLoRBjJA7qgjRevG98yTJMBuQulCCwC80kWpW/zCQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dbutils" - ]; + pythonImportsCheck = [ "dbutils" ]; meta = { description = "Database connections for multi-threaded environments"; diff --git a/pkgs/development/python-modules/dctorch/default.nix b/pkgs/development/python-modules/dctorch/default.nix index d44d00629cff..90bfbceae4c2 100644 --- a/pkgs/development/python-modules/dctorch/default.nix +++ b/pkgs/development/python-modules/dctorch/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, numpy -, scipy -, torch +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + numpy, + scipy, + torch, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-TmfLAkiofrQNWYBhIlY4zafbZPgFftISCGloO/rlEG4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ numpy @@ -27,9 +26,7 @@ buildPythonPackage rec { torch ]; - pythonImportsCheck = [ - "dctorch" - ]; + pythonImportsCheck = [ "dctorch" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/ddt/default.nix b/pkgs/development/python-modules/ddt/default.nix index 1923fb5733c1..cbe145187507 100644 --- a/pkgs/development/python-modules/ddt/default.nix +++ b/pkgs/development/python-modules/ddt/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# tests -, aiounittest -, mock -, pytestCheckHook -, pyyaml -, six + # tests + aiounittest, + mock, + pytestCheckHook, + pyyaml, + six, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-0hXWsIOWMBPEoZseTc1qlugOQ6t3UZWXpqz88umj4Es="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # aiounittest is not compatible with Python 3.12. doCheck = pythonOlder "3.12"; diff --git a/pkgs/development/python-modules/deal-solver/default.nix b/pkgs/development/python-modules/deal-solver/default.nix index c47d5d1c92b4..4657d0f21d9a 100644 --- a/pkgs/development/python-modules/deal-solver/default.nix +++ b/pkgs/development/python-modules/deal-solver/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, flit-core -, z3-solver -, astroid -, pytestCheckHook -, hypothesis -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + flit-core, + z3-solver, + astroid, + pytestCheckHook, + hypothesis, + pythonRelaxDepsHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/deal/default.nix b/pkgs/development/python-modules/deal/default.nix index 7c75c5b0f608..2af4c31acca7 100644 --- a/pkgs/development/python-modules/deal/default.nix +++ b/pkgs/development/python-modules/deal/default.nix @@ -1,19 +1,20 @@ -{ lib -, astroid -, buildPythonPackage -, deal-solver -, docstring-parser -, fetchFromGitHub -, flit-core -, hypothesis -, marshmallow -, pygments -, pytestCheckHook -, pythonOlder -, sphinx -, typeguard -, urllib3 -, vaa +{ + lib, + astroid, + buildPythonPackage, + deal-solver, + docstring-parser, + fetchFromGitHub, + flit-core, + hypothesis, + marshmallow, + pygments, + pytestCheckHook, + pythonOlder, + sphinx, + typeguard, + urllib3, + vaa, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { --replace-fail '"--cov-report=term-missing:skip-covered",' "" ''; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; dependencies = [ astroid @@ -89,9 +88,7 @@ buildPythonPackage rec { "tests/test_testing.py" ]; - pythonImportsCheck = [ - "deal" - ]; + pythonImportsCheck = [ "deal" ]; meta = with lib; { description = "Library for design by contract (DbC) and checking values, exceptions, and side-effects"; diff --git a/pkgs/development/python-modules/deap/default.nix b/pkgs/development/python-modules/deap/default.nix index aa581062c5f9..3f9ba5b0fba2 100644 --- a/pkgs/development/python-modules/deap/default.nix +++ b/pkgs/development/python-modules/deap/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, matplotlib -, numpy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + matplotlib, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,19 @@ buildPythonPackage rec { hash = "sha256-zAHemJLfp9G8mAPasoiS/q0XfwGCyB20c2CiQOrXeP8="; }; - propagatedBuildInputs = [ matplotlib numpy ]; + propagatedBuildInputs = [ + matplotlib + numpy + ]; nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A novel evolutionary computation framework for rapid prototyping and testing of ideas"; homepage = "https://github.com/DEAP/deap"; license = licenses.lgpl3Plus; - maintainers = with maintainers; [ getpsyched psyanticy ]; + maintainers = with maintainers; [ + getpsyched + psyanticy + ]; }; } diff --git a/pkgs/development/python-modules/debian-inspector/default.nix b/pkgs/development/python-modules/debian-inspector/default.nix index 0add3d134ec7..571040b89fa0 100644 --- a/pkgs/development/python-modules/debian-inspector/default.nix +++ b/pkgs/development/python-modules/debian-inspector/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, chardet -, attrs -, commoncode -, pytestCheckHook -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + chardet, + attrs, + commoncode, + pytestCheckHook, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ chardet @@ -34,18 +33,18 @@ buildPythonPackage rec { commoncode ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "debian_inspector" - ]; + pythonImportsCheck = [ "debian_inspector" ]; meta = with lib; { description = "Utilities to parse Debian package, copyright and control files"; homepage = "https://github.com/nexB/debian-inspector"; - license = with licenses; [ asl20 bsd3 mit ]; + license = with licenses; [ + asl20 + bsd3 + mit + ]; maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/debian/default.nix b/pkgs/development/python-modules/debian/default.nix index 70b33cfa7a3b..f20370b86498 100644 --- a/pkgs/development/python-modules/debian/default.nix +++ b/pkgs/development/python-modules/debian/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, chardet +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + chardet, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-jPZ3ow28tL56mVNsF+ETCKgnpNIgKNxZpn9sbdPw9Yw="; }; - propagatedBuildInputs = [ - chardet - ]; + propagatedBuildInputs = [ chardet ]; # No tests in archive doCheck = false; - pythonImportsCheck = [ - "debian" - ]; + pythonImportsCheck = [ "debian" ]; meta = with lib; { description = "Debian package related modules"; diff --git a/pkgs/development/python-modules/debianbts/default.nix b/pkgs/development/python-modules/debianbts/default.nix index 013f8724067c..3131f9077d10 100644 --- a/pkgs/development/python-modules/debianbts/default.nix +++ b/pkgs/development/python-modules/debianbts/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pysimplesoap -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pysimplesoap, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,20 +23,14 @@ buildPythonPackage rec { sed -i "/--cov/d" pyproject.toml ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pysimplesoap - ]; + propagatedBuildInputs = [ pysimplesoap ]; # Most tests require network access doCheck = false; - pythonImportsCheck = [ - "debianbts" - ]; + pythonImportsCheck = [ "debianbts" ]; meta = with lib; { description = "Python interface to Debian's Bug Tracking System"; diff --git a/pkgs/development/python-modules/debtcollector/default.nix b/pkgs/development/python-modules/debtcollector/default.nix index 14fdff4243ca..573f41d0b1f5 100644 --- a/pkgs/development/python-modules/debtcollector/default.nix +++ b/pkgs/development/python-modules/debtcollector/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, pbr, six, wrapt, callPackage }: +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + six, + wrapt, + callPackage, +}: buildPythonPackage rec { pname = "debtcollector"; @@ -12,7 +20,10 @@ buildPythonPackage rec { nativeBuildInputs = [ pbr ]; - propagatedBuildInputs = [ six wrapt ]; + propagatedBuildInputs = [ + six + wrapt + ]; # check in passthru.tests.pytest to escape infinite recursion with other oslo components doCheck = false; diff --git a/pkgs/development/python-modules/debtcollector/tests.nix b/pkgs/development/python-modules/debtcollector/tests.nix index 19386cdb53b8..846db4f0bf69 100644 --- a/pkgs/development/python-modules/debtcollector/tests.nix +++ b/pkgs/development/python-modules/debtcollector/tests.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, debtcollector -, stestr +{ + buildPythonPackage, + debtcollector, + stestr, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/debts/default.nix b/pkgs/development/python-modules/debts/default.nix index c82a65500451..b02e8924ed35 100644 --- a/pkgs/development/python-modules/debts/default.nix +++ b/pkgs/development/python-modules/debts/default.nix @@ -1,10 +1,11 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitLab -, isPy27 -, jinja2 -, pytest +{ + lib, + python, + buildPythonPackage, + fetchFromGitLab, + isPy27, + jinja2, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/debuglater/default.nix b/pkgs/development/python-modules/debuglater/default.nix index 8eabbacf7c86..503dc862497b 100644 --- a/pkgs/development/python-modules/debuglater/default.nix +++ b/pkgs/development/python-modules/debuglater/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, colorama -, dill -, fetchFromGitHub -, numpy -, pandas -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + colorama, + dill, + fetchFromGitHub, + numpy, + pandas, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,14 +24,10 @@ buildPythonPackage rec { hash = "sha256-o9IAk3EN8ghEft7Y7Xx+sEjWMNgoyiZ0eiBqnCyXkm8="; }; - propagatedBuildInputs = [ - colorama - ]; + propagatedBuildInputs = [ colorama ]; passthru.optional-dependencies = { - all = [ - dill - ]; + all = [ dill ]; }; nativeCheckInputs = [ @@ -39,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.all; - pythonImportsCheck = [ - "debuglater" - ]; + pythonImportsCheck = [ "debuglater" ]; meta = with lib; { description = "Module for post-mortem debugging of Python programs"; diff --git a/pkgs/development/python-modules/debugpy/default.nix b/pkgs/development/python-modules/debugpy/default.nix index 4ba770e251c6..6a78092a0832 100644 --- a/pkgs/development/python-modules/debugpy/default.nix +++ b/pkgs/development/python-modules/debugpy/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, substituteAll -, gdb -, lldb -, pytestCheckHook -, pytest-xdist -, pytest-timeout -, importlib-metadata -, psutil -, django -, requests -, gevent -, numpy -, flask +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + gdb, + lldb, + pytestCheckHook, + pytest-xdist, + pytest-timeout, + importlib-metadata, + psutil, + django, + requests, + gevent, + numpy, + flask, }: buildPythonPackage rec { @@ -32,57 +33,64 @@ buildPythonPackage rec { hash = "sha256-2TkieSQYxnlUroSD9wNKNaHUTLRksFWL/6XmSNGTCA4="; }; - patches = [ - # Use nixpkgs version instead of versioneer - (substituteAll { - src = ./hardcode-version.patch; - inherit version; - }) + patches = + [ + # Use nixpkgs version instead of versioneer + (substituteAll { + src = ./hardcode-version.patch; + inherit version; + }) - # Fix importing debugpy in: - # - test_nodebug[module-launch(externalTerminal)] - # - test_nodebug[module-launch(integratedTerminal)] - # - # NOTE: The import failures seen in these tests without the patch - # will be seen if a user "installs" debugpy by adding it to PYTHONPATH. - # To avoid this issue, debugpy should be installed using python.withPackages: - # python.withPackages (ps: with ps; [ debugpy ]) - ./fix-test-pythonpath.patch + # Fix importing debugpy in: + # - test_nodebug[module-launch(externalTerminal)] + # - test_nodebug[module-launch(integratedTerminal)] + # + # NOTE: The import failures seen in these tests without the patch + # will be seen if a user "installs" debugpy by adding it to PYTHONPATH. + # To avoid this issue, debugpy should be installed using python.withPackages: + # python.withPackages (ps: with ps; [ debugpy ]) + ./fix-test-pythonpath.patch - # Attach pid tests are disabled by default on windows & macos, - # but are also flaky on linux: - # - https://github.com/NixOS/nixpkgs/issues/262000 - # - https://github.com/NixOS/nixpkgs/issues/251045 - ./skip-attach-pid-tests.patch - ] ++ lib.optionals stdenv.isLinux [ - # Hard code GDB path (used to attach to process) - (substituteAll { - src = ./hardcode-gdb.patch; - inherit gdb; - }) - ] ++ lib.optionals stdenv.isDarwin [ - # Hard code LLDB path (used to attach to process) - (substituteAll { - src = ./hardcode-lldb.patch; - inherit lldb; - }) - ]; + # Attach pid tests are disabled by default on windows & macos, + # but are also flaky on linux: + # - https://github.com/NixOS/nixpkgs/issues/262000 + # - https://github.com/NixOS/nixpkgs/issues/251045 + ./skip-attach-pid-tests.patch + ] + ++ lib.optionals stdenv.isLinux [ + # Hard code GDB path (used to attach to process) + (substituteAll { + src = ./hardcode-gdb.patch; + inherit gdb; + }) + ] + ++ lib.optionals stdenv.isDarwin [ + # Hard code LLDB path (used to attach to process) + (substituteAll { + src = ./hardcode-lldb.patch; + inherit lldb; + }) + ]; # Remove pre-compiled "attach" libraries and recompile for host platform # Compile flags taken from linux_and_mac/compile_linux.sh & linux_and_mac/compile_mac.sh - preBuild = ''( - set -x - cd src/debugpy/_vendored/pydevd/pydevd_attach_to_process - rm *.so *.dylib *.dll *.exe *.pdb - $CXX linux_and_mac/attach.cpp -Ilinux_and_mac -std=c++11 -fPIC -nostartfiles ${{ - "x86_64-linux" = "-shared -o attach_linux_amd64.so"; - "i686-linux" = "-shared -o attach_linux_x86.so"; - "aarch64-linux" = "-shared -o attach_linux_arm64.so"; - "x86_64-darwin" = "-D_REENTRANT -dynamiclib -lc -o attach_x86_64.dylib"; - "i686-darwin" = "-D_REENTRANT -dynamiclib -lc -o attach_x86.dylib"; - "aarch64-darwin" = "-D_REENTRANT -dynamiclib -lc -o attach_arm64.dylib"; - }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}")} - )''; + preBuild = '' + ( + set -x + cd src/debugpy/_vendored/pydevd/pydevd_attach_to_process + rm *.so *.dylib *.dll *.exe *.pdb + $CXX linux_and_mac/attach.cpp -Ilinux_and_mac -std=c++11 -fPIC -nostartfiles ${ + { + "x86_64-linux" = "-shared -o attach_linux_amd64.so"; + "i686-linux" = "-shared -o attach_linux_x86.so"; + "aarch64-linux" = "-shared -o attach_linux_arm64.so"; + "x86_64-darwin" = "-D_REENTRANT -dynamiclib -lc -o attach_x86_64.dylib"; + "i686-darwin" = "-D_REENTRANT -dynamiclib -lc -o attach_x86.dylib"; + "aarch64-darwin" = "-D_REENTRANT -dynamiclib -lc -o attach_arm64.dylib"; + } + .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}") + } + )''; nativeCheckInputs = [ ## Used to run the tests: @@ -102,29 +110,27 @@ buildPythonPackage rec { requests ]; - preCheck = '' - export DEBUGPY_PROCESS_SPAWN_TIMEOUT=0 - export DEBUGPY_PROCESS_EXIT_TIMEOUT=0 - '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' - # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 - export no_proxy='*'; - ''; + preCheck = + '' + export DEBUGPY_PROCESS_SPAWN_TIMEOUT=0 + export DEBUGPY_PROCESS_EXIT_TIMEOUT=0 + '' + + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' + # https://github.com/python/cpython/issues/74570#issuecomment-1093748531 + export no_proxy='*'; + ''; postCheck = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' unset no_proxy ''; # Override default arguments in pytest.ini - pytestFlagsArray = [ - "--timeout=0" - ]; + pytestFlagsArray = [ "--timeout=0" ]; # Fixes hanging tests on Darwin __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "debugpy" - ]; + pythonImportsCheck = [ "debugpy" ]; meta = with lib; { description = "An implementation of the Debug Adapter Protocol for Python"; @@ -132,6 +138,13 @@ buildPythonPackage rec { changelog = "https://github.com/microsoft/debugpy/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ kira-bruneau ]; - platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" "x86_64-darwin" "i686-darwin" "aarch64-darwin" ]; + platforms = [ + "x86_64-linux" + "i686-linux" + "aarch64-linux" + "x86_64-darwin" + "i686-darwin" + "aarch64-darwin" + ]; }; } diff --git a/pkgs/development/python-modules/decli/default.nix b/pkgs/development/python-modules/decli/default.nix index a1d6e0db2ead..0298d04cf247 100644 --- a/pkgs/development/python-modules/decli/default.nix +++ b/pkgs/development/python-modules/decli/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-FZYKNKkQExx/YBn5y/W0+0aMlenuwEctYTL7LAXMZGE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "decli" - ]; + pythonImportsCheck = [ "decli" ]; meta = with lib; { description = "Minimal, easy to use, declarative command line interface tool"; diff --git a/pkgs/development/python-modules/decopatch/default.nix b/pkgs/development/python-modules/decopatch/default.nix index 71e302a8b538..ec263a48aa09 100644 --- a/pkgs/development/python-modules/decopatch/default.nix +++ b/pkgs/development/python-modules/decopatch/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, makefun -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + makefun, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -18,22 +19,16 @@ buildPythonPackage rec { hash = "sha256-lX9JyT9BUBgsI/j7UdE7syE+DxenngnIzKcFdZi1VyA="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - makefun - ]; + propagatedBuildInputs = [ makefun ]; postPatch = '' substituteInPlace setup.cfg \ --replace "pytest-runner" "" ''; - pythonImportsCheck = [ - "decopatch" - ]; + pythonImportsCheck = [ "decopatch" ]; # Tests would introduce multiple cirucular dependencies # Affected: makefun, pytest-cases diff --git a/pkgs/development/python-modules/decorator/default.nix b/pkgs/development/python-modules/decorator/default.nix index c86721f9c736..0836e284a908 100644 --- a/pkgs/development/python-modules/decorator/default.nix +++ b/pkgs/development/python-modules/decorator/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,17 +15,11 @@ buildPythonPackage rec { hash = "sha256-Y3mWIRA2tjhe+RQ15PriKYlHL51XH6uoknuoJTrLwzA="; }; - pythonImportsCheck = [ - "decorator" - ]; + pythonImportsCheck = [ "decorator" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "src/tests/test.py" - ]; + pytestFlagsArray = [ "src/tests/test.py" ]; meta = with lib; { homepage = "https://github.com/micheles/decorator"; diff --git a/pkgs/development/python-modules/deemix/default.nix b/pkgs/development/python-modules/deemix/default.nix index d9eaddb7bf4a..6e2c89df3a19 100644 --- a/pkgs/development/python-modules/deemix/default.nix +++ b/pkgs/development/python-modules/deemix/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, spotipy -, click -, pycryptodomex -, mutagen -, requests -, deezer-py -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + spotipy, + click, + pycryptodomex, + mutagen, + requests, + deezer-py, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "deezer" - ]; + pythonImportsCheck = [ "deezer" ]; meta = with lib; { description = "Deezer downloader built from the ashes of Deezloader Remix"; diff --git a/pkgs/development/python-modules/deep-chainmap/default.nix b/pkgs/development/python-modules/deep-chainmap/default.nix index 9a6d7eaee693..dbfec0b3bb97 100644 --- a/pkgs/development/python-modules/deep-chainmap/default.nix +++ b/pkgs/development/python-modules/deep-chainmap/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/deep-translator/default.nix b/pkgs/development/python-modules/deep-translator/default.nix index 614affcc3fcb..0d9bb2e0c71a 100644 --- a/pkgs/development/python-modules/deep-translator/default.nix +++ b/pkgs/development/python-modules/deep-translator/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beautifulsoup4 -, requests -, click -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + fetchPypi, + beautifulsoup4, + requests, + click, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-gBJgxpIxE4cH6oiglV5ITbfUDiEMngrg93Ny/9pfS/U="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ beautifulsoup4 diff --git a/pkgs/development/python-modules/deepdiff/default.nix b/pkgs/development/python-modules/deepdiff/default.nix index 350ce76eca49..dc82f8271832 100644 --- a/pkgs/development/python-modules/deepdiff/default.nix +++ b/pkgs/development/python-modules/deepdiff/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, ordered-set -, orjson -, clevercsv -, jsonpickle -, numpy -, pytestCheckHook -, python-dateutil -, pyyaml -, toml -, tomli-w -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + ordered-set, + orjson, + clevercsv, + jsonpickle, + numpy, + pytestCheckHook, + python-dateutil, + pyyaml, + toml, + tomli-w, + pythonOlder, }: buildPythonPackage rec { @@ -62,9 +63,7 @@ buildPythonPackage rec { "test_pydantic2" ]; - pythonImportsCheck = [ - "deepdiff" - ]; + pythonImportsCheck = [ "deepdiff" ]; meta = with lib; { description = "Deep Difference and Search of any Python object/data"; diff --git a/pkgs/development/python-modules/deepdish/default.nix b/pkgs/development/python-modules/deepdish/default.nix index 7033e2f9f851..419a338d31cf 100644 --- a/pkgs/development/python-modules/deepdish/default.nix +++ b/pkgs/development/python-modules/deepdish/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, numpy -, scipy -, tables +{ + lib, + fetchPypi, + buildPythonPackage, + numpy, + scipy, + tables, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { tables ]; - pythonImportsCheck = [ - "deepdish" - ]; + pythonImportsCheck = [ "deepdish" ]; # nativeCheckInputs = [ # pandas diff --git a/pkgs/development/python-modules/deepl/default.nix b/pkgs/development/python-modules/deepl/default.nix index cf934f75b70f..0377a8f5f28f 100644 --- a/pkgs/development/python-modules/deepl/default.nix +++ b/pkgs/development/python-modules/deepl/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, poetry-core -, keyring +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + poetry-core, + keyring, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-WuQXY5OUQe28p2QP00QoDL7kfUkGQc41IGkQqLAed44="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests @@ -28,9 +27,7 @@ buildPythonPackage rec { # Requires internet access and an API key doCheck = false; - pythonImportsCheck = [ - "deepl" - ]; + pythonImportsCheck = [ "deepl" ]; meta = with lib; { description = "A language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations"; diff --git a/pkgs/development/python-modules/deepmerge/default.nix b/pkgs/development/python-modules/deepmerge/default.nix index 0a22573e2dfa..eb6016517840 100644 --- a/pkgs/development/python-modules/deepmerge/default.nix +++ b/pkgs/development/python-modules/deepmerge/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "deepmerge" - ]; + pythonImportsCheck = [ "deepmerge" ]; meta = with lib; { changelog = "https://github.com/toumorokoshi/deepmerge/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/deeptoolsintervals/default.nix b/pkgs/development/python-modules/deeptoolsintervals/default.nix index 7f78a92877a7..d3003ee0dc2b 100644 --- a/pkgs/development/python-modules/deeptoolsintervals/default.nix +++ b/pkgs/development/python-modules/deeptoolsintervals/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, zlib -, xz +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + zlib, + xz, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { sha256 = "1xnl80nblysj6dylj4683wgrfa425rkx4dp5k65hvwdns9pw753x"; }; - buildInputs = [ zlib xz ]; + buildInputs = [ + zlib + xz + ]; nativeCheckInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/deepwave/default.nix b/pkgs/development/python-modules/deepwave/default.nix index 6f3018aba432..56b9765686e8 100644 --- a/pkgs/development/python-modules/deepwave/default.nix +++ b/pkgs/development/python-modules/deepwave/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, torch -, ninja -, scipy -, which -, pybind11 -, pytest-xdist -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + torch, + ninja, + scipy, + which, + pybind11, + pytest-xdist, + pytestCheckHook, }: let @@ -48,7 +49,10 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - propagatedBuildInputs = [ torch pybind11 ]; + propagatedBuildInputs = [ + torch + pybind11 + ]; nativeCheckInputs = [ which diff --git a/pkgs/development/python-modules/deezer-py/default.nix b/pkgs/development/python-modules/deezer-py/default.nix index 109f873138c6..af28e5f5b9a5 100644 --- a/pkgs/development/python-modules/deezer-py/default.nix +++ b/pkgs/development/python-modules/deezer-py/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/deezer-python/default.nix b/pkgs/development/python-modules/deezer-python/default.nix index 84c7972ccd12..812f9eba2469 100644 --- a/pkgs/development/python-modules/deezer-python/default.nix +++ b/pkgs/development/python-modules/deezer-python/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, environs -, fetchFromGitHub -, poetry-core -, pytest-mock -, pytest-vcr -, pytestCheckHook -, pythonOlder -, requests -, tornado +{ + lib, + buildPythonPackage, + environs, + fetchFromGitHub, + poetry-core, + pytest-mock, + pytest-vcr, + pytestCheckHook, + pythonOlder, + requests, + tornado, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace " --cov=deezer" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ environs @@ -46,9 +45,7 @@ buildPythonPackage rec { tornado ]; - pythonImportsCheck = [ - "deezer" - ]; + pythonImportsCheck = [ "deezer" ]; disabledTests = [ # JSONDecodeError issue diff --git a/pkgs/development/python-modules/defang/default.nix b/pkgs/development/python-modules/defang/default.nix index d51573c0dc4f..ea9bfe22478c 100644 --- a/pkgs/development/python-modules/defang/default.nix +++ b/pkgs/development/python-modules/defang/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromBitbucket -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromBitbucket, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-OJfayJeVf2H1/jg7/fu2NiHhRHNCaLGI29SY8BnJyxI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "defang" - ]; + pythonImportsCheck = [ "defang" ]; meta = with lib; { description = "Module to defang and refang malicious URLs"; diff --git a/pkgs/development/python-modules/defcon/default.nix b/pkgs/development/python-modules/defcon/default.nix index 3203f0bb973e..d6298043cb00 100644 --- a/pkgs/development/python-modules/defcon/default.nix +++ b/pkgs/development/python-modules/defcon/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools-scm -, fonttools -, fontpens -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools-scm, + fonttools, + fontpens, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,23 +22,15 @@ buildPythonPackage rec { extension = "zip"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ fonttools - ] - ++ fonttools.optional-dependencies.ufo - ++ fonttools.optional-dependencies.unicode; + ] ++ fonttools.optional-dependencies.ufo ++ fonttools.optional-dependencies.unicode; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "defcon" - ]; + pythonImportsCheck = [ "defcon" ]; passthru.optional-dependencies = { pens = [ fontpens ]; diff --git a/pkgs/development/python-modules/deform/default.nix b/pkgs/development/python-modules/deform/default.nix index b094b46c663a..c30add3f1edc 100644 --- a/pkgs/development/python-modules/deform/default.nix +++ b/pkgs/development/python-modules/deform/default.nix @@ -1,6 +1,20 @@ -{ lib, buildPythonPackage, fetchPypi -, chameleon, colander, iso8601, peppercorn, translationstring, zope-deprecation -, nose, coverage, beautifulsoup4, flaky, pyramid, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + chameleon, + colander, + iso8601, + peppercorn, + translationstring, + zope-deprecation, + nose, + coverage, + beautifulsoup4, + flaky, + pyramid, + pytestCheckHook, +}: buildPythonPackage rec { pname = "deform"; diff --git a/pkgs/development/python-modules/defusedcsv/default.nix b/pkgs/development/python-modules/defusedcsv/default.nix index 5e44ce731748..bb62a9a7f997 100644 --- a/pkgs/development/python-modules/defusedcsv/default.nix +++ b/pkgs/development/python-modules/defusedcsv/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { pname = "defusedcsv"; - version = "2.0.0"; + version = "2.0.0"; format = "setuptools"; src = fetchFromGitHub { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-y8qLVfdkxRrDjtrTOLK5Zvi/1Vyv8eOnCueUkaRp4sQ="; }; - pythonImportsCheck = [ - "defusedcsv.csv" - ]; + pythonImportsCheck = [ "defusedcsv.csv" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python library to protect your users from Excel injections in CSV-format exports, drop-in replacement for standard library's csv module"; diff --git a/pkgs/development/python-modules/defusedxml/default.nix b/pkgs/development/python-modules/defusedxml/default.nix index e2e7de205c8c..ee23d66e59d7 100644 --- a/pkgs/development/python-modules/defusedxml/default.nix +++ b/pkgs/development/python-modules/defusedxml/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python +{ + lib, + buildPythonPackage, + fetchPypi, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dehinter/default.nix b/pkgs/development/python-modules/dehinter/default.nix index 276959b84b32..e621b2979bcc 100644 --- a/pkgs/development/python-modules/dehinter/default.nix +++ b/pkgs/development/python-modules/dehinter/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fonttools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fonttools, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,14 +19,10 @@ buildPythonPackage rec { hash = "sha256-l988SW6OWKXzJK0WGAJZR/QDFvgnSir+5TwMMvFcOxg="; }; - propagatedBuildInputs = [ - fonttools - ]; + propagatedBuildInputs = [ fonttools ]; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Utility for removing hinting data from TrueType and OpenType fonts"; @@ -35,4 +32,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/deid/default.nix b/pkgs/development/python-modules/deid/default.nix index 5edfd4afc341..180b7a8e2947 100644 --- a/pkgs/development/python-modules/deid/default.nix +++ b/pkgs/development/python-modules/deid/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, matplotlib -, pydicom -, python-dateutil -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + matplotlib, + pydicom, + python-dateutil, + setuptools, }: let @@ -61,9 +62,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "deid" - ]; + pythonImportsCheck = [ "deid" ]; meta = with lib; { description = "Best-effort anonymization for medical images"; diff --git a/pkgs/development/python-modules/dek/default.nix b/pkgs/development/python-modules/dek/default.nix index 147cc40e316b..23d7ce5bd1c1 100644 --- a/pkgs/development/python-modules/dek/default.nix +++ b/pkgs/development/python-modules/dek/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, xmod -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + xmod, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,21 +19,13 @@ buildPythonPackage rec { hash = "sha256-DYODdImTRCukGmGbkZ+9TQeI9DYaeRd/EHS6VND5IDs="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - xmod - ]; + dependencies = [ xmod ]; - nativeBuildInputs = [ - pytestCheckHook - ]; + nativeBuildInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dek" - ]; + pythonImportsCheck = [ "dek" ]; meta = with lib; { description = "The decorator-decorator"; diff --git a/pkgs/development/python-modules/delegator-py/default.nix b/pkgs/development/python-modules/delegator-py/default.nix index 89cbd991a663..4cb4ea6f4cf8 100644 --- a/pkgs/development/python-modules/delegator-py/default.nix +++ b/pkgs/development/python-modules/delegator-py/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, pexpect +{ + buildPythonPackage, + lib, + fetchFromGitHub, + pexpect, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/delorean/default.nix b/pkgs/development/python-modules/delorean/default.nix index 81f1a1e44469..f056cde2a6e8 100644 --- a/pkgs/development/python-modules/delorean/default.nix +++ b/pkgs/development/python-modules/delorean/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, babel -, humanize -, python-dateutil -, pytz -, tzlocal +{ + lib, + buildPythonPackage, + fetchPypi, + babel, + humanize, + python-dateutil, + pytz, + tzlocal, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { tzlocal ]; - pythonImportsCheck = [ - "delorean" - ]; + pythonImportsCheck = [ "delorean" ]; # test data not included doCheck = false; diff --git a/pkgs/development/python-modules/deltachat/default.nix b/pkgs/development/python-modules/deltachat/default.nix index 4b5b0d8f7362..2ea42160a892 100644 --- a/pkgs/development/python-modules/deltachat/default.nix +++ b/pkgs/development/python-modules/deltachat/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, pkg-config -, pkgconfig -, setuptools-scm -, libdeltachat -, cffi -, imap-tools -, requests -, pluggy -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + pkg-config, + pkgconfig, + setuptools-scm, + libdeltachat, + cffi, + imap-tools, + requests, + pluggy, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - libdeltachat - ]; + buildInputs = [ libdeltachat ]; propagatedBuildInputs = [ cffi @@ -38,9 +37,7 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "deltachat" diff --git a/pkgs/development/python-modules/deluge-client/default.nix b/pkgs/development/python-modules/deluge-client/default.nix index 219ebf5143b5..f03a347450d2 100644 --- a/pkgs/development/python-modules/deluge-client/default.nix +++ b/pkgs/development/python-modules/deluge-client/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-OIGu48Tgyp3YpWtxAEe4N+HQh6g+QhY2oHR3H5Kp8bU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # it will try to connect to a running instance doCheck = false; - pythonImportsCheck = [ - "deluge_client" - ]; + pythonImportsCheck = [ "deluge_client" ]; meta = with lib; { description = "Lightweight pure-python rpc client for deluge"; diff --git a/pkgs/development/python-modules/demes/default.nix b/pkgs/development/python-modules/demes/default.nix index 522b075d2a6e..658acdb8156f 100644 --- a/pkgs/development/python-modules/demes/default.nix +++ b/pkgs/development/python-modules/demes/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, ruamel-yaml -, attrs -, pythonOlder -, pytest7CheckHook -, pytest-xdist -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + ruamel-yaml, + attrs, + pythonOlder, + pytest7CheckHook, + pytest-xdist, + numpy, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-nmE7ZbR126J3vKdR3h83qJ/V602Fa6J3M6IJnIqCNhc="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ ruamel-yaml @@ -41,13 +40,9 @@ buildPythonPackage rec { numpy ]; - disabledTestPaths = [ - "tests/test_spec.py" - ]; + disabledTestPaths = [ "tests/test_spec.py" ]; - pythonImportsCheck = [ - "demes" - ]; + pythonImportsCheck = [ "demes" ]; meta = with lib; { description = "Tools for describing and manipulating demographic models"; diff --git a/pkgs/development/python-modules/demesdraw/default.nix b/pkgs/development/python-modules/demesdraw/default.nix index 2672f8714685..d4fe828315d3 100644 --- a/pkgs/development/python-modules/demesdraw/default.nix +++ b/pkgs/development/python-modules/demesdraw/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, setuptools-scm -, demes -, matplotlib -, numpy -, scipy -, pythonOlder -, pytestCheckHook -, pytest-xdist -, mpmath +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools-scm, + demes, + matplotlib, + numpy, + scipy, + pythonOlder, + pytestCheckHook, + pytest-xdist, + mpmath, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-n7dz+kYf2yyr66TBx452W6z4qT6bT81u0J4aMAYuGCc="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ demes @@ -50,9 +49,7 @@ buildPythonPackage rec { mpmath ]; - pythonImportsCheck = [ - "demesdraw" - ]; + pythonImportsCheck = [ "demesdraw" ]; meta = with lib; { description = "Drawing functions for Demes demographic models"; diff --git a/pkgs/development/python-modules/demetriek/default.nix b/pkgs/development/python-modules/demetriek/default.nix index 68f2660f6bb7..b51e463c67f0 100644 --- a/pkgs/development/python-modules/demetriek/default.nix +++ b/pkgs/development/python-modules/demetriek/default.nix @@ -1,18 +1,19 @@ -{ lib -, aiohttp -, aresponses -, awesomeversion -, backoff -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pydantic -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, yarl +{ + lib, + aiohttp, + aresponses, + awesomeversion, + backoff, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pydantic, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + yarl, }: buildPythonPackage rec { @@ -34,7 +35,10 @@ buildPythonPackage rec { (fetchpatch { name = "pydantic_2-compatibility.patch"; url = "https://github.com/frenck/python-demetriek/commit/e677fe5b735b6b28572e3e5fd6aab56fc056f5e6.patch"; - excludes = [ "pyproject.toml" "poetry.lock" ]; + excludes = [ + "pyproject.toml" + "poetry.lock" + ]; hash = "sha256-oMVR45KHDhcPId/0X9obJXCPE8s1gk5IgsGsgZesdZw="; }) ]; @@ -46,9 +50,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - pythonRelaxDeps = [ - "pydantic" - ]; + pythonRelaxDeps = [ "pydantic" ]; nativeBuildInputs = [ poetry-core @@ -69,9 +71,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "demetriek" - ]; + pythonImportsCheck = [ "demetriek" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/demjson3/default.nix b/pkgs/development/python-modules/demjson3/default.nix index 6e83b001e6e1..091a80cf8184 100644 --- a/pkgs/development/python-modules/demjson3/default.nix +++ b/pkgs/development/python-modules/demjson3/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, python +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + python, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { ${python.interpreter} test/test_demjson3.py ''; - pythonImportsCheck = [ - "demjson3" - ]; + pythonImportsCheck = [ "demjson3" ]; meta = with lib; { description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)"; diff --git a/pkgs/development/python-modules/demoji/default.nix b/pkgs/development/python-modules/demoji/default.nix index f8ce40a77de1..4538f6c9c8be 100644 --- a/pkgs/development/python-modules/demoji/default.nix +++ b/pkgs/development/python-modules/demoji/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, pytestCheckHook -, ujson +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + pytestCheckHook, + ujson, }: buildPythonPackage rec { @@ -26,23 +27,15 @@ buildPythonPackage rec { --replace-fail "pytest-runner" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; passthru.optional-dependencies = { - ujson = [ - ujson - ]; + ujson = [ ujson ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "demoji" - ]; + pythonImportsCheck = [ "demoji" ]; meta = with lib; { description = "Module to find/replace/remove emojis in text strings"; diff --git a/pkgs/development/python-modules/dendropy/default.nix b/pkgs/development/python-modules/dendropy/default.nix index d37d188a257a..f17acbdc4b95 100644 --- a/pkgs/development/python-modules/dendropy/default.nix +++ b/pkgs/development/python-modules/dendropy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-FP0+fJkkFtSysPxoHXjyMgF8pPin7aRyzmHe9bH8LlM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # FileNotFoundError: [Errno 2] No such file or directory: 'paup' @@ -35,9 +34,7 @@ buildPythonPackage rec { "test_findall_multiple" ]; - pythonImportsCheck = [ - "dendropy" - ]; + pythonImportsCheck = [ "dendropy" ]; meta = with lib; { description = "Python library for phylogenetic computing"; diff --git a/pkgs/development/python-modules/denonavr/default.nix b/pkgs/development/python-modules/denonavr/default.nix index 61930b92818c..2cd72f29655b 100644 --- a/pkgs/development/python-modules/denonavr/default.nix +++ b/pkgs/development/python-modules/denonavr/default.nix @@ -1,19 +1,20 @@ -{ lib -, async-timeout -, asyncstdlib -, attrs -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, ftfy -, httpx -, netifaces -, pytest-asyncio -, pytestCheckHook -, pytest-httpx -, pytest-timeout -, pythonOlder -, setuptools +{ + lib, + async-timeout, + asyncstdlib, + attrs, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + ftfy, + httpx, + netifaces, + pytest-asyncio, + pytestCheckHook, + pytest-httpx, + pytest-timeout, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-VxoRK1qeGrIunsiCzeZJUHxW/sxk+PFpntInL+G/yI8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asyncstdlib @@ -41,9 +40,7 @@ buildPythonPackage rec { ftfy httpx netifaces - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ pytest-asyncio @@ -52,9 +49,7 @@ buildPythonPackage rec { pytest-timeout ]; - pythonImportsCheck = [ - "denonavr" - ]; + pythonImportsCheck = [ "denonavr" ]; meta = with lib; { description = "Automation Library for Denon AVR receivers"; diff --git a/pkgs/development/python-modules/dep-logic/default.nix b/pkgs/development/python-modules/dep-logic/default.nix index b8c27334a868..19c85bddc858 100644 --- a/pkgs/development/python-modules/dep-logic/default.nix +++ b/pkgs/development/python-modules/dep-logic/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pdm-backend -, packaging -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pdm-backend, + packaging, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-NB0TR7fCtjSm4cAl+Fy+6c+z1ZBDiRw7nXux/s6ON/c="; }; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dep_logic" - ]; + pythonImportsCheck = [ "dep_logic" ]; meta = { changelog = "https://github.com/pdm-project/dep-logic/releases/tag/${src.rev}"; diff --git a/pkgs/development/python-modules/dependency-injector/default.nix b/pkgs/development/python-modules/dependency-injector/default.nix index 0b575412e854..be655a971dd4 100644 --- a/pkgs/development/python-modules/dependency-injector/default.nix +++ b/pkgs/development/python-modules/dependency-injector/default.nix @@ -1,19 +1,20 @@ -{ lib -, aiohttp -, buildPythonPackage -, fastapi -, fetchFromGitHub -, flask -, httpx -, mypy-boto3-s3 -, numpy -, pydantic -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pyyaml -, scipy -, six +{ + lib, + aiohttp, + buildPythonPackage, + fastapi, + fetchFromGitHub, + flask, + httpx, + mypy-boto3-s3, + numpy, + pydantic, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pyyaml, + scipy, + six, }: buildPythonPackage rec { @@ -30,41 +31,31 @@ buildPythonPackage rec { hash = "sha256-U3U/L8UuYrfpm4KwVNmViTbam7QdZd2vp1p+ENtOJlw="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; passthru.optional-dependencies = { - aiohttp = [ - aiohttp - ]; - pydantic = [ - pydantic - ]; - flask = [ - flask - ]; - yaml = [ - pyyaml - ]; + aiohttp = [ aiohttp ]; + pydantic = [ pydantic ]; + flask = [ flask ]; + yaml = [ pyyaml ]; }; - nativeCheckInputs = [ - fastapi - httpx - mypy-boto3-s3 - numpy - pytest-asyncio - pytestCheckHook - scipy - ] ++ passthru.optional-dependencies.aiohttp - ++ passthru.optional-dependencies.pydantic - ++ passthru.optional-dependencies.yaml - ++ passthru.optional-dependencies.flask; + nativeCheckInputs = + [ + fastapi + httpx + mypy-boto3-s3 + numpy + pytest-asyncio + pytestCheckHook + scipy + ] + ++ passthru.optional-dependencies.aiohttp + ++ passthru.optional-dependencies.pydantic + ++ passthru.optional-dependencies.yaml + ++ passthru.optional-dependencies.flask; - pythonImportsCheck = [ - "dependency_injector" - ]; + pythonImportsCheck = [ "dependency_injector" ]; disabledTestPaths = [ # Exclude tests for EOL Python releases diff --git a/pkgs/development/python-modules/deploykit/default.nix b/pkgs/development/python-modules/deploykit/default.nix index 9668ec25c359..01183b27a8d7 100644 --- a/pkgs/development/python-modules/deploykit/default.nix +++ b/pkgs/development/python-modules/deploykit/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, bash -, openssh -, pytestCheckHook -, pythonOlder -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + bash, + openssh, + pytestCheckHook, + pythonOlder, + stdenv, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-7PiXq1bQJ1jswLHNqCDSYZabgfp8HRuRt5YPGzd5Ej0="; }; - buildInputs = [ - setuptools - ]; + buildInputs = [ setuptools ]; nativeCheckInputs = [ bash @@ -38,16 +37,17 @@ buildPythonPackage rec { # don't swallow stdout/stderr pytestFlagsArray = [ "-s" ]; - pythonImportsCheck = [ - "deploykit" - ]; + pythonImportsCheck = [ "deploykit" ]; meta = with lib; { description = "Execute commands remote via ssh and locally in parallel with python"; homepage = "https://github.com/numtide/deploykit"; changelog = "https://github.com/numtide/deploykit/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ mic92 zowoq ]; + maintainers = with maintainers; [ + mic92 + zowoq + ]; platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/deprecat/default.nix b/pkgs/development/python-modules/deprecat/default.nix index a87394dea289..62c05168c2cb 100644 --- a/pkgs/development/python-modules/deprecat/default.nix +++ b/pkgs/development/python-modules/deprecat/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools-scm -, wrapt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools-scm, + wrapt, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-uAabZAtZDhcX6TfiM0LnrAzxxS64ys+vdodmxO//0x8="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; - dependencies = [ - wrapt - ]; + dependencies = [ wrapt ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "deprecat" - ]; + pythonImportsCheck = [ "deprecat" ]; disabledTestPaths = [ # https://github.com/mjhajharia/deprecat/issues/13 diff --git a/pkgs/development/python-modules/deprecated/default.nix b/pkgs/development/python-modules/deprecated/default.nix index 09664f977a05..e32aab6be8a2 100644 --- a/pkgs/development/python-modules/deprecated/default.nix +++ b/pkgs/development/python-modules/deprecated/default.nix @@ -1,16 +1,20 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, wrapt -, pytestCheckHook -, sphinxHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + wrapt, + pytestCheckHook, + sphinxHook, }: buildPythonPackage rec { pname = "deprecated"; version = "1.2.14"; format = "setuptools"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "tantale"; @@ -19,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-H5Gp2F/ChMeEH4fSYXIB34syDIzDymfN949ksJnS0k4="; }; - nativeBuildInputs = [ - sphinxHook - ]; + nativeBuildInputs = [ sphinxHook ]; - propagatedBuildInputs = [ - wrapt - ]; + propagatedBuildInputs = [ wrapt ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "deprecated" ]; diff --git a/pkgs/development/python-modules/deprecation/default.nix b/pkgs/development/python-modules/deprecation/default.nix index 3fccbde6e8b6..58b72b23f324 100644 --- a/pkgs/development/python-modules/deprecation/default.nix +++ b/pkgs/development/python-modules/deprecation/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, packaging -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + packaging, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/derpconf/default.nix b/pkgs/development/python-modules/derpconf/default.nix index b3a4dd9d35d8..c7e67c6eaaf5 100644 --- a/pkgs/development/python-modules/derpconf/default.nix +++ b/pkgs/development/python-modules/derpconf/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-66MOqcWIiqJrORJDgAH5iUblHyqJvuf9DIBN56XjKwU="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ - "derpconf" - ]; + pythonImportsCheck = [ "derpconf" ]; meta = with lib; { description = "Module to abstract loading configuration files for your app"; diff --git a/pkgs/development/python-modules/desktop-entry-lib/default.nix b/pkgs/development/python-modules/desktop-entry-lib/default.nix index 5a6d3c00e7f0..6582d0fd283a 100644 --- a/pkgs/development/python-modules/desktop-entry-lib/default.nix +++ b/pkgs/development/python-modules/desktop-entry-lib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, fetchFromGitea -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + fetchFromGitea, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/desktop-notifier/default.nix b/pkgs/development/python-modules/desktop-notifier/default.nix index f406bcd4cc5b..a614a4feb935 100644 --- a/pkgs/development/python-modules/desktop-notifier/default.nix +++ b/pkgs/development/python-modules/desktop-notifier/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, stdenv -, packaging -, setuptools -, dbus-next -, rubicon-objc +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + stdenv, + packaging, + setuptools, + dbus-next, + rubicon-objc, }: buildPythonPackage rec { @@ -23,24 +24,17 @@ buildPythonPackage rec { hash = "sha256-6FtxfY0vjCbCueeXdAXOy6XSjne4I7brQ5OvJ+Q1KsQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - packaging - ] ++ lib.optionals stdenv.isLinux [ - dbus-next - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - rubicon-objc - ]; + dependencies = + [ packaging ] + ++ lib.optionals stdenv.isLinux [ dbus-next ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ rubicon-objc ]; # no tests available, do the imports check instead doCheck = false; - pythonImportsCheck = [ - "desktop_notifier" - ]; + pythonImportsCheck = [ "desktop_notifier" ]; meta = with lib; { description = "Python library for cross-platform desktop notifications"; diff --git a/pkgs/development/python-modules/detect-secrets/default.nix b/pkgs/development/python-modules/detect-secrets/default.nix index ae0e2c4cda2d..a3a366d28be5 100644 --- a/pkgs/development/python-modules/detect-secrets/default.nix +++ b/pkgs/development/python-modules/detect-secrets/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gibberish-detector -, mock -, pkgs -, pyahocorasick -, pytest7CheckHook -, pythonOlder -, pyyaml -, requests -, responses -, unidiff +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gibberish-detector, + mock, + pkgs, + pyahocorasick, + pytest7CheckHook, + pythonOlder, + pyyaml, + requests, + responses, + unidiff, }: buildPythonPackage rec { @@ -60,9 +61,7 @@ buildPythonPackage rec { "test_start_halfway" ]; - pythonImportsCheck = [ - "detect_secrets" - ]; + pythonImportsCheck = [ "detect_secrets" ]; meta = with lib; { description = "An enterprise friendly way of detecting and preventing secrets in code"; diff --git a/pkgs/development/python-modules/detectron2/default.nix b/pkgs/development/python-modules/detectron2/default.nix index badf5bb08771..944ff80850cf 100644 --- a/pkgs/development/python-modules/detectron2/default.nix +++ b/pkgs/development/python-modules/detectron2/default.nix @@ -1,42 +1,43 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, ninja -, which -# build inputs -, pillow -, matplotlib -, pycocotools -, termcolor -, yacs -, tabulate -, cloudpickle -, tqdm -, tensorboard -, fvcore -, iopath -, omegaconf -, hydra-core -, packaging -, torch -, pydot -, black -# optional dependencies -, fairscale -, timm -, scipy -, shapely -, pygments -, psutil -# check inputs -, pytestCheckHook -, torchvision -, av -, opencv4 -, pytest-mock -, pybind11 +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + ninja, + which, + # build inputs + pillow, + matplotlib, + pycocotools, + termcolor, + yacs, + tabulate, + cloudpickle, + tqdm, + tensorboard, + fvcore, + iopath, + omegaconf, + hydra-core, + packaging, + torch, + pydot, + black, + # optional dependencies + fairscale, + timm, + scipy, + shapely, + pygments, + psutil, + # check inputs + pytestCheckHook, + torchvision, + av, + opencv4, + pytest-mock, + pybind11, }: let @@ -78,9 +79,7 @@ buildPythonPackage { buildInputs = [ pybind11 ]; - pythonRelaxDeps = [ - "black" - ]; + pythonRelaxDeps = [ "black" ]; propagatedBuildInputs = [ pillow @@ -136,40 +135,42 @@ buildPythonPackage { "tests/data/test_coco_evaluation.py" ]; - disabledTests = [ - # fails for some reason - "test_checkpoint_resume" - "test_map_style" - # requires shapely - "test_resize_and_crop" - # require caffe2 - "test_predict_boxes_tracing" - "test_predict_probs_tracing" - "testMaskRCNN" - "testRetinaNet" - # require coco dataset - "test_default_trainer" - "test_unknown_category" - "test_build_dataloader_train" - "test_build_iterable_dataloader_train" - # require network access - "test_opencv_exif_orientation" - "test_read_exif_orientation" - # use deprecated api, numpy.bool - "test_BWmode_nomask" - "test_draw_binary_mask" - "test_draw_empty_mask_predictions" - "test_draw_instance_predictions" - "test_draw_no_metadata" - "test_overlay_instances" - "test_overlay_instances_no_boxes" - "test_get_bounding_box" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - "test_build_batch_dataloader_inference" - "test_build_dataloader_inference" - "test_build_iterable_dataloader_inference" - "test_to_iterable" - ]; + disabledTests = + [ + # fails for some reason + "test_checkpoint_resume" + "test_map_style" + # requires shapely + "test_resize_and_crop" + # require caffe2 + "test_predict_boxes_tracing" + "test_predict_probs_tracing" + "testMaskRCNN" + "testRetinaNet" + # require coco dataset + "test_default_trainer" + "test_unknown_category" + "test_build_dataloader_train" + "test_build_iterable_dataloader_train" + # require network access + "test_opencv_exif_orientation" + "test_read_exif_orientation" + # use deprecated api, numpy.bool + "test_BWmode_nomask" + "test_draw_binary_mask" + "test_draw_empty_mask_predictions" + "test_draw_instance_predictions" + "test_draw_no_metadata" + "test_overlay_instances" + "test_overlay_instances_no_boxes" + "test_get_bounding_box" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + "test_build_batch_dataloader_inference" + "test_build_dataloader_inference" + "test_build_iterable_dataloader_inference" + "test_to_iterable" + ]; pythonImportsCheck = [ "detectron2" ]; diff --git a/pkgs/development/python-modules/devialet/default.nix b/pkgs/development/python-modules/devialet/default.nix index 60f57090f40b..a9490581ce34 100644 --- a/pkgs/development/python-modules/devialet/default.nix +++ b/pkgs/development/python-modules/devialet/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-oGa5tRCJAWBg/877UmmXnX7fkFLoxhyuG6gpXmyhRKo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "devialet" - ]; + pythonImportsCheck = [ "devialet" ]; meta = with lib; { description = "Library to interact with the Devialet API"; diff --git a/pkgs/development/python-modules/devito/default.nix b/pkgs/development/python-modules/devito/default.nix index 719bdf3aafb0..c8b2bae7cea6 100644 --- a/pkgs/development/python-modules/devito/default.nix +++ b/pkgs/development/python-modules/devito/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, anytree -, buildPythonPackage -, cached-property -, cgen -, click -, codepy -, distributed -, fetchFromGitHub -, gcc -, llvmPackages -, matplotlib -, multidict -, nbval -, psutil -, py-cpuinfo -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, scipy -, sympy +{ + lib, + stdenv, + anytree, + buildPythonPackage, + cached-property, + cgen, + click, + codepy, + distributed, + fetchFromGitHub, + gcc, + llvmPackages, + matplotlib, + multidict, + nbval, + psutil, + py-cpuinfo, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + scipy, + sympy, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { pythonRelaxDeps = true; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ anytree @@ -63,9 +62,7 @@ buildPythonPackage rec { py-cpuinfo scipy sympy - ] ++ lib.optionals stdenv.cc.isClang [ - llvmPackages.openmp - ]; + ] ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]; nativeCheckInputs = [ gcc @@ -78,56 +75,58 @@ buildPythonPackage rec { # I've had to disable the following tests since they fail while using nix-build, but they do pass # outside the build. They mostly related to the usage of MPI in a sandboxed environment. - disabledTests = [ - "test_assign_parallel" - "test_cache_blocking_structure_distributed" - "test_codegen_quality0" - "test_coefficients_w_xreplace" - "test_docstrings" - "test_docstrings[finite_differences.coefficients]" - "test_gs_parallel" - "test_if_halo_mpi" - "test_if_parallel" - "test_init_omp_env_w_mpi" - "test_loop_bounds_forward" - "test_mpi_nocomms" - "test_mpi" - "test_index_derivative" - "test_new_distributor" - "test_setupWOverQ" - "test_shortcuts" - "test_subdomainset_mpi" - "test_subdomains_mpi" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # FAILED tests/test_unexpansion.py::Test2Pass::test_v0 - assert False - "test_v0" - ] ++ lib.optionals stdenv.isDarwin [ - # FAILED tests/test_caching.py::TestCaching::test_special_symbols - ValueError: not enough values to unpack (expected 3, got 2) - "test_special_symbols" + disabledTests = + [ + "test_assign_parallel" + "test_cache_blocking_structure_distributed" + "test_codegen_quality0" + "test_coefficients_w_xreplace" + "test_docstrings" + "test_docstrings[finite_differences.coefficients]" + "test_gs_parallel" + "test_if_halo_mpi" + "test_if_parallel" + "test_init_omp_env_w_mpi" + "test_loop_bounds_forward" + "test_mpi_nocomms" + "test_mpi" + "test_index_derivative" + "test_new_distributor" + "test_setupWOverQ" + "test_shortcuts" + "test_subdomainset_mpi" + "test_subdomains_mpi" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # FAILED tests/test_unexpansion.py::Test2Pass::test_v0 - assert False + "test_v0" + ] + ++ lib.optionals stdenv.isDarwin [ + # FAILED tests/test_caching.py::TestCaching::test_special_symbols - ValueError: not enough values to unpack (expected 3, got 2) + "test_special_symbols" - # FAILED tests/test_unexpansion.py::Test2Pass::test_v0 - codepy.CompileError: module compilation failed - "test_v0" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # Numerical tests - "test_lm_fb" - "test_lm_ds" - ]; + # FAILED tests/test_unexpansion.py::Test2Pass::test_v0 - codepy.CompileError: module compilation failed + "test_v0" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # Numerical tests + "test_lm_fb" + "test_lm_ds" + ]; - disabledTestPaths = [ - "tests/test_pickle.py" - "tests/test_benchmark.py" - "tests/test_mpi.py" - "tests/test_autotuner.py" - "tests/test_data.py" - "tests/test_dse.py" - "tests/test_gradient.py" - ] ++ lib.optionals ((stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin) [ - "tests/test_dle.py" - ]; + disabledTestPaths = + [ + "tests/test_pickle.py" + "tests/test_benchmark.py" + "tests/test_mpi.py" + "tests/test_autotuner.py" + "tests/test_data.py" + "tests/test_dse.py" + "tests/test_gradient.py" + ] + ++ lib.optionals ((stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin) [ "tests/test_dle.py" ]; - pythonImportsCheck = [ - "devito" - ]; + pythonImportsCheck = [ "devito" ]; meta = with lib; { description = "Code generation framework for automated finite difference computation"; diff --git a/pkgs/development/python-modules/devolo-home-control-api/default.nix b/pkgs/development/python-modules/devolo-home-control-api/default.nix index 8d06b409d578..b4f3ea395e0f 100644 --- a/pkgs/development/python-modules/devolo-home-control-api/default.nix +++ b/pkgs/development/python-modules/devolo-home-control-api/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, setuptools-scm -, websocket-client -, zeroconf +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + setuptools-scm, + websocket-client, + zeroconf, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-4AyC1DDYtKl8SwJf75BbzoOAhbZXmBZ05ma9YmLzksM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ requests diff --git a/pkgs/development/python-modules/devolo-plc-api/default.nix b/pkgs/development/python-modules/devolo-plc-api/default.nix index ad34b49280f6..da12ca39dbd0 100644 --- a/pkgs/development/python-modules/devolo-plc-api/default.nix +++ b/pkgs/development/python-modules/devolo-plc-api/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, protobuf -, pytest-asyncio -, pytest-httpx -, pytest-mock -, pytestCheckHook -, pythonOlder -, segno -, setuptools-scm -, syrupy -, zeroconf +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + protobuf, + pytest-asyncio, + pytest-httpx, + pytest-mock, + pytestCheckHook, + pythonOlder, + segno, + setuptools-scm, + syrupy, + zeroconf, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "protobuf>=4.22.0" "protobuf" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ httpx @@ -54,9 +53,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "devolo_plc_api" - ]; + pythonImportsCheck = [ "devolo_plc_api" ]; meta = with lib; { description = "Module to interact with Devolo PLC devices"; diff --git a/pkgs/development/python-modules/devpi-common/default.nix b/pkgs/development/python-modules/devpi-common/default.nix index 19b6b43f311f..7f5ab1ef7422 100644 --- a/pkgs/development/python-modules/devpi-common/default.nix +++ b/pkgs/development/python-modules/devpi-common/default.nix @@ -1,11 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi -, pythonOlder -, setuptools -, setuptools-changelog-shortener -, requests -, tomli -, pytestCheckHook -, lazy +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + setuptools-changelog-shortener, + requests, + tomli, + pytestCheckHook, + lazy, }: buildPythonPackage rec { @@ -31,19 +34,18 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "devpi_common" - ]; + pythonImportsCheck = [ "devpi_common" ]; meta = with lib; { homepage = "https://github.com/devpi/devpi"; description = "Utilities jointly used by devpi-server and devpi-client"; changelog = "https://github.com/devpi/devpi/blob/common-${version}/common/CHANGELOG"; license = licenses.mit; - maintainers = with maintainers; [ lewo makefu ]; + maintainers = with maintainers; [ + lewo + makefu + ]; }; } diff --git a/pkgs/development/python-modules/devtools/default.nix b/pkgs/development/python-modules/devtools/default.nix index a36da40bece4..03cec87fef30 100644 --- a/pkgs/development/python-modules/devtools/default.nix +++ b/pkgs/development/python-modules/devtools/default.nix @@ -1,13 +1,14 @@ -{ lib -, asttokens -, buildPythonPackage -, executing -, hatchling -, fetchFromGitHub -, pygments -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + asttokens, + buildPythonPackage, + executing, + hatchling, + fetchFromGitHub, + pygments, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-1HFbNswdKa/9cQX0Gf6lLW1V5Kt/N4X6/5kQDdzp1Wo="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ asttokens @@ -53,9 +52,7 @@ buildPythonPackage rec { "tests/test_insert_assert.py" ]; - pythonImportsCheck = [ - "devtools" - ]; + pythonImportsCheck = [ "devtools" ]; meta = with lib; { description = "Python's missing debug print command and other development tools"; diff --git a/pkgs/development/python-modules/dfdiskcache/default.nix b/pkgs/development/python-modules/dfdiskcache/default.nix index d7a7de367a28..600818090024 100644 --- a/pkgs/development/python-modules/dfdiskcache/default.nix +++ b/pkgs/development/python-modules/dfdiskcache/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pandas -, setuptools -, simplesqlite -, typing-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pandas, + setuptools, + simplesqlite, + typing-extensions, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/diagrams/default.nix b/pkgs/development/python-modules/diagrams/default.nix index 963161e7c77e..85eafa12893b 100644 --- a/pkgs/development/python-modules/diagrams/default.nix +++ b/pkgs/development/python-modules/diagrams/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, jinja2 -, poetry-core -, round -, graphviz -, inkscape -, imagemagick -, pytestCheckHook -, typed-ast +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + jinja2, + poetry-core, + round, + graphviz, + inkscape, + imagemagick, + pytestCheckHook, + typed-ast, }: buildPythonPackage rec { @@ -45,7 +46,8 @@ buildPythonPackage rec { # Despite living in 'tool.poetry.dependencies', # these are only used at build time to process the image resource files nativeBuildInputs = [ - inkscape imagemagick + inkscape + imagemagick jinja2 poetry-core round @@ -56,13 +58,9 @@ buildPythonPackage rec { typed-ast ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "diagrams" - ]; + pythonImportsCheck = [ "diagrams" ]; meta = with lib; { description = "Diagram as Code"; diff --git a/pkgs/development/python-modules/diceware/default.nix b/pkgs/development/python-modules/diceware/default.nix index 4f4094e2cf9c..7780fd5327bd 100644 --- a/pkgs/development/python-modules/diceware/default.nix +++ b/pkgs/development/python-modules/diceware/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,22 +24,16 @@ buildPythonPackage rec { --replace "'pytest_runner'," "" ''; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ # see https://github.com/ulif/diceware/commit/a7d844df76cd4b95a717f21ef5aa6167477b6733 "-m 'not packaging'" ]; - pythonImportsCheck = [ - "diceware" - ]; + pythonImportsCheck = [ "diceware" ]; meta = with lib; { description = "Generates passphrases by concatenating words randomly picked from wordlists"; diff --git a/pkgs/development/python-modules/dicom-numpy/default.nix b/pkgs/development/python-modules/dicom-numpy/default.nix index 84ec407606b6..aeb867e0a019 100644 --- a/pkgs/development/python-modules/dicom-numpy/default.nix +++ b/pkgs/development/python-modules/dicom-numpy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, numpy -, pydicom +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + numpy, + pydicom, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { pydicom ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dicom_numpy" - ]; + pythonImportsCheck = [ "dicom_numpy" ]; meta = with lib; { description = "Read DICOM files into Numpy arrays"; diff --git a/pkgs/development/python-modules/dicom2nifti/default.nix b/pkgs/development/python-modules/dicom2nifti/default.nix index f6dc8cd20a68..e2d8c01e9874 100644 --- a/pkgs/development/python-modules/dicom2nifti/default.nix +++ b/pkgs/development/python-modules/dicom2nifti/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, gdcm -, nibabel -, numpy -, pydicom -, scipy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + gdcm, + nibabel, + numpy, + pydicom, + scipy, + setuptools, }: buildPythonPackage rec { @@ -25,7 +26,14 @@ buildPythonPackage rec { hash = "sha256-2Pspxdeu3pHwXpbjS6bQQnvdeMuITRwYarPuLlmNcv8"; }; - propagatedBuildInputs = [ gdcm nibabel numpy pydicom scipy setuptools ]; + propagatedBuildInputs = [ + gdcm + nibabel + numpy + pydicom + scipy + setuptools + ]; # python-gdcm just builds the python interface provided by the "gdcm" package, so # we should be able to replace "python-gdcm" with "gdcm" but this doesn't work diff --git a/pkgs/development/python-modules/dicomweb-client/default.nix b/pkgs/development/python-modules/dicomweb-client/default.nix index 1a4f528ec11e..c5624deaf46e 100644 --- a/pkgs/development/python-modules/dicomweb-client/default.nix +++ b/pkgs/development/python-modules/dicomweb-client/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pytest-localserver -, numpy -, pillow -, pydicom -, requests -, retrying +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + pytest-localserver, + numpy, + pillow, + pydicom, + requests, + retrying, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { pytest-localserver ]; - pythonImportsCheck = [ - "dicomweb_client" - ]; + pythonImportsCheck = [ "dicomweb_client" ]; meta = with lib; { description = "Python client for DICOMweb RESTful services"; diff --git a/pkgs/development/python-modules/dict2xml/default.nix b/pkgs/development/python-modules/dict2xml/default.nix index 6a68a695fbbb..6887f8a13ac7 100644 --- a/pkgs/development/python-modules/dict2xml/default.nix +++ b/pkgs/development/python-modules/dict2xml/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hatchling +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatchling, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-GNvG1VFz/qkkTrKleMrq8n6kcIYtfhUlQMyCqH9uQzw="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; # Tests are inplemented in a custom DSL (RSpec) doCheck = false; - pythonImportsCheck = [ - "dict2xml" - ]; + pythonImportsCheck = [ "dict2xml" ]; meta = with lib; { description = "Library to convert a Python dictionary into an XML string"; diff --git a/pkgs/development/python-modules/dictdiffer/default.nix b/pkgs/development/python-modules/dictdiffer/default.nix index acbc3996fbc6..496c3d51af71 100644 --- a/pkgs/development/python-modules/dictdiffer/default.nix +++ b/pkgs/development/python-modules/dictdiffer/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-lQyPs3lQWtsvNPuvvwJUTDzrFaOX5uwGuRHe3yWUheU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ @@ -35,9 +32,7 @@ buildPythonPackage rec { --replace ' --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=dictdiffer --cov-report=term-missing' "" ''; - pythonImportsCheck = [ - "dictdiffer" - ]; + pythonImportsCheck = [ "dictdiffer" ]; meta = with lib; { description = "Module to diff and patch dictionaries"; diff --git a/pkgs/development/python-modules/dictionaries/default.nix b/pkgs/development/python-modules/dictionaries/default.nix index 0395c7796d9f..1574d2e9e7e7 100644 --- a/pkgs/development/python-modules/dictionaries/default.nix +++ b/pkgs/development/python-modules/dictionaries/default.nix @@ -1,4 +1,9 @@ -{ buildPythonPackage, fetchPypi, lib, six }: +{ + buildPythonPackage, + fetchPypi, + lib, + six, +}: buildPythonPackage rec { pname = "dictionaries"; diff --git a/pkgs/development/python-modules/dicttoxml/default.nix b/pkgs/development/python-modules/dicttoxml/default.nix index d205aa0cd471..43ef9df09820 100644 --- a/pkgs/development/python-modules/dicttoxml/default.nix +++ b/pkgs/development/python-modules/dicttoxml/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dicttoxml2/default.nix b/pkgs/development/python-modules/dicttoxml2/default.nix index 873063498535..d056efe69919 100644 --- a/pkgs/development/python-modules/dicttoxml2/default.nix +++ b/pkgs/development/python-modules/dicttoxml2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,11 +20,9 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "dicttoxml2" - ]; + pythonImportsCheck = [ "dicttoxml2" ]; - meta = with lib;{ + meta = with lib; { description = "Converts a Python dictionary or other native data type into a valid XML string"; homepage = "https://pypi.org/project/dicttoxml2/"; license = licenses.gpl2Only; diff --git a/pkgs/development/python-modules/diff-cover/default.nix b/pkgs/development/python-modules/diff-cover/default.nix index 9ca63fd2b533..ff1ef2e64b42 100644 --- a/pkgs/development/python-modules/diff-cover/default.nix +++ b/pkgs/development/python-modules/diff-cover/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, chardet -, fetchPypi -, jinja2 -, jinja2-pluralize -, pluggy -, poetry-core -, pycodestyle -, pyflakes -, pygments -, pylint -, pytest-datadir -, pytest-mock -, pytestCheckHook -, pythonOlder -, tomli +{ + lib, + buildPythonPackage, + chardet, + fetchPypi, + jinja2, + jinja2-pluralize, + pluggy, + poetry-core, + pycodestyle, + pyflakes, + pygments, + pylint, + pytest-datadir, + pytest-mock, + pytestCheckHook, + pythonOlder, + tomli, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-HchR0/PzIMBI0DYY5MDZhh+koVBrQl0tCaVksgyVZ0o="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ chardet @@ -59,9 +58,7 @@ buildPythonPackage rec { "console" ]; - pythonImportsCheck = [ - "diff_cover" - ]; + pythonImportsCheck = [ "diff_cover" ]; meta = with lib; { description = "Automatically find diff lines that need test coverage"; diff --git a/pkgs/development/python-modules/diff-match-patch/default.nix b/pkgs/development/python-modules/diff-match-patch/default.nix index 93d9e3288dda..93ce2b7de138 100644 --- a/pkgs/development/python-modules/diff-match-patch/default.nix +++ b/pkgs/development/python-modules/diff-match-patch/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + unittestCheckHook, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-lTAZzbnJ0snke1sSvP889HRvxFmOtAYHb6H8J+ah8Vw="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { homepage = "https://github.com/diff-match-patch-python/diff-match-patch"; diff --git a/pkgs/development/python-modules/diffimg/default.nix b/pkgs/development/python-modules/diffimg/default.nix index c1769d118f90..4136041f7d82 100644 --- a/pkgs/development/python-modules/diffimg/default.nix +++ b/pkgs/development/python-modules/diffimg/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, unittestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + unittestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -20,23 +21,21 @@ buildPythonPackage rec { # it imports the wrong diff, # fix offered to upstream https://github.com/nicolashahn/diffimg/pull/6 - postPatch = '' - substituteInPlace diffimg/test.py \ - --replace-warn "from diff import diff" "from diffimg.diff import diff" - '' + lib.optionalString (pythonAtLeast "3.12") '' - substituteInPlace diffimg/test.py \ - --replace-warn "3503192421617232" "3503192421617233" - ''; + postPatch = + '' + substituteInPlace diffimg/test.py \ + --replace-warn "from diff import diff" "from diffimg.diff import diff" + '' + + lib.optionalString (pythonAtLeast "3.12") '' + substituteInPlace diffimg/test.py \ + --replace-warn "3503192421617232" "3503192421617233" + ''; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; pythonImportsCheck = [ "diffimg" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { description = "Differentiate images in python - get a ratio or percentage difference, and generate a diff image"; diff --git a/pkgs/development/python-modules/diffsync/default.nix b/pkgs/development/python-modules/diffsync/default.nix index ff96650b920f..f5ffb2dfbd06 100644 --- a/pkgs/development/python-modules/diffsync/default.nix +++ b/pkgs/development/python-modules/diffsync/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, packaging -, poetry-core -, pydantic -, pythonRelaxDepsHook -, redis -, structlog +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + packaging, + poetry-core, + pydantic, + pythonRelaxDepsHook, + redis, + structlog, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { structlog ]; - pythonImportsCheck = [ - "diffsync" - ]; + pythonImportsCheck = [ "diffsync" ]; meta = with lib; { description = "Utility library for comparing and synchronizing different datasets"; diff --git a/pkgs/development/python-modules/diffusers/default.nix b/pkgs/development/python-modules/diffusers/default.nix index 19fe676abb64..8762022b0651 100644 --- a/pkgs/development/python-modules/diffusers/default.nix +++ b/pkgs/development/python-modules/diffusers/default.nix @@ -1,42 +1,43 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, writeText -, setuptools -, wheel -, filelock -, huggingface-hub -, importlib-metadata -, numpy -, pillow -, regex -, requests -, safetensors -# optional dependencies -, accelerate -, datasets -, flax -, jax -, jaxlib -, jinja2 -, peft -, protobuf -, tensorboard -, torch -# test dependencies -, parameterized -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, requests-mock -, scipy -, sentencepiece -, torchsde -, transformers -, pythonAtLeast +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + writeText, + setuptools, + wheel, + filelock, + huggingface-hub, + importlib-metadata, + numpy, + pillow, + regex, + requests, + safetensors, + # optional dependencies + accelerate, + datasets, + flax, + jax, + jaxlib, + jinja2, + peft, + protobuf, + tensorboard, + torch, + # test dependencies + parameterized, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + requests-mock, + scipy, + sentencepiece, + torchsde, + transformers, + pythonAtLeast, }: buildPythonPackage rec { @@ -55,12 +56,14 @@ buildPythonPackage rec { patches = [ # fix python3.12 build - (fetchpatch { # https://github.com/huggingface/diffusers/pull/7455 + (fetchpatch { + # https://github.com/huggingface/diffusers/pull/7455 name = "001-remove-distutils.patch"; url = "https://github.com/huggingface/diffusers/compare/363699044e365ef977a7646b500402fa585e1b6b...3c67864c5acb30413911730b1ed4a9ad47c0a15c.patch"; hash = "sha256-Qyvyp1GyTVXN+A+lA1r2hf887ubTtaUknbKd4r46NZQ="; }) - (fetchpatch { # https://github.com/huggingface/diffusers/pull/7461 + (fetchpatch { + # https://github.com/huggingface/diffusers/pull/7461 name = "002-fix-removed-distutils.patch"; url = "https://github.com/huggingface/diffusers/commit/efbbbc38e436a1abb1df41a6eccfd6f9f0333f97.patch"; hash = "sha256-scdtpX1RYFFEDHcaMb+gDZSsPafkvnIO/wQlpzrQhLA="; @@ -103,9 +106,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "diffusers" - ]; + pythonImportsCheck = [ "diffusers" ]; # tests crash due to torch segmentation fault doCheck = !(stdenv.isLinux && stdenv.isAarch64); @@ -122,48 +123,50 @@ buildPythonPackage rec { transformers ] ++ passthru.optional-dependencies.torch; - preCheck = let - # This pytest hook mocks and catches attempts at accessing the network - # tests that try to access the network will raise, get caught, be marked as skipped and tagged as xfailed. - # cf. python3Packages.shap - conftestSkipNetworkErrors = writeText "conftest.py" '' - from _pytest.runner import pytest_runtest_makereport as orig_pytest_runtest_makereport - import urllib3 + preCheck = + let + # This pytest hook mocks and catches attempts at accessing the network + # tests that try to access the network will raise, get caught, be marked as skipped and tagged as xfailed. + # cf. python3Packages.shap + conftestSkipNetworkErrors = writeText "conftest.py" '' + from _pytest.runner import pytest_runtest_makereport as orig_pytest_runtest_makereport + import urllib3 - class NetworkAccessDeniedError(RuntimeError): pass - def deny_network_access(*a, **kw): - raise NetworkAccessDeniedError + class NetworkAccessDeniedError(RuntimeError): pass + def deny_network_access(*a, **kw): + raise NetworkAccessDeniedError - urllib3.connection.HTTPSConnection._new_conn = deny_network_access + urllib3.connection.HTTPSConnection._new_conn = deny_network_access - def pytest_runtest_makereport(item, call): - tr = orig_pytest_runtest_makereport(item, call) - if call.excinfo is not None and call.excinfo.type is NetworkAccessDeniedError: - tr.outcome = 'skipped' - tr.wasxfail = "reason: Requires network access." - return tr + def pytest_runtest_makereport(item, call): + tr = orig_pytest_runtest_makereport(item, call) + if call.excinfo is not None and call.excinfo.type is NetworkAccessDeniedError: + tr.outcome = 'skipped' + tr.wasxfail = "reason: Requires network access." + return tr + ''; + in + '' + export HOME=$TMPDIR + cat ${conftestSkipNetworkErrors} >> tests/conftest.py ''; - in '' - export HOME=$TMPDIR - cat ${conftestSkipNetworkErrors} >> tests/conftest.py - ''; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; - disabledTests = [ - # depends on current working directory - "test_deprecate_stacklevel" - # fails due to precision of floating point numbers - "test_model_cpu_offload_forward_pass" - # tries to run ruff which we have intentionally removed from nativeCheckInputs - "test_is_copy_consistent" - ] ++ lib.optionals (pythonAtLeast "3.12") [ + disabledTests = + [ + # depends on current working directory + "test_deprecate_stacklevel" + # fails due to precision of floating point numbers + "test_model_cpu_offload_forward_pass" + # tries to run ruff which we have intentionally removed from nativeCheckInputs + "test_is_copy_consistent" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ - # RuntimeError: Dynamo is not supported on Python 3.12+ - "test_from_save_pretrained_dynamo" - ]; + # RuntimeError: Dynamo is not supported on Python 3.12+ + "test_from_save_pretrained_dynamo" + ]; meta = with lib; { description = "State-of-the-art diffusion models for image and audio generation in PyTorch"; diff --git a/pkgs/development/python-modules/digi-xbee/default.nix b/pkgs/development/python-modules/digi-xbee/default.nix index 7514ba8609d0..8ba90f4d8ac5 100644 --- a/pkgs/development/python-modules/digi-xbee/default.nix +++ b/pkgs/development/python-modules/digi-xbee/default.nix @@ -1,4 +1,11 @@ -{ buildPythonPackage, fetchPypi, isPy27, pyserial, srp, lib }: +{ + buildPythonPackage, + fetchPypi, + isPy27, + pyserial, + srp, + lib, +}: buildPythonPackage rec { pname = "digi-xbee"; @@ -11,7 +18,10 @@ buildPythonPackage rec { sha256 = "3b10e749431f406d80c189d872f4673b8d3cd510f7b411f817780a0e72499cd2"; }; - propagatedBuildInputs = [ pyserial srp ]; + propagatedBuildInputs = [ + pyserial + srp + ]; # Upstream doesn't contain unit tests, only functional tests which require specific hardware doCheck = false; diff --git a/pkgs/development/python-modules/dill/default.nix b/pkgs/development/python-modules/dill/default.nix index cdfdb401e94d..790cb9ce0cd6 100644 --- a/pkgs/development/python-modules/dill/default.nix +++ b/pkgs/development/python-modules/dill/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, + setuptools, -# passthru tests -, apache-beam -, datasets + # passthru tests + apache-beam, + datasets, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-r65JgQH+5raiRX8NYELUB9B0zLy4z606EkFJaNpapNc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/dinghy/default.nix b/pkgs/development/python-modules/dinghy/default.nix index f7f099b3bb1a..c207574ee36c 100644 --- a/pkgs/development/python-modules/dinghy/default.nix +++ b/pkgs/development/python-modules/dinghy/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, aiofiles -, aiohttp -, backports-datetime-fromisoformat -, click -, click-log -, emoji -, glom -, jinja2 -, pyyaml -, freezegun -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + aiofiles, + aiohttp, + backports-datetime-fromisoformat, + click, + click-log, + emoji, + glom, + jinja2, + pyyaml, + freezegun, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-0U08QHQuNm7qaxhU8sNxeN0fZ4S8N0RYRsWjFUqhZSU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiofiles @@ -51,9 +50,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "dinghy.cli" - ]; + pythonImportsCheck = [ "dinghy.cli" ]; meta = with lib; { description = "A GitHub activity digest tool"; @@ -61,6 +58,9 @@ buildPythonPackage rec { homepage = "https://github.com/nedbat/dinghy"; changelog = "https://github.com/nedbat/dinghy/blob/${version}/CHANGELOG.rst"; license = licenses.asl20; - maintainers = with maintainers; [ trundle veehaitch ]; + maintainers = with maintainers; [ + trundle + veehaitch + ]; }; } diff --git a/pkgs/development/python-modules/dingz/default.nix b/pkgs/development/python-modules/dingz/default.nix index 10354264861e..9f8d8a4a551f 100644 --- a/pkgs/development/python-modules/dingz/default.nix +++ b/pkgs/development/python-modules/dingz/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, click -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + click, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "dingz" - ]; + pythonImportsCheck = [ "dingz" ]; meta = with lib; { description = "Python API for interacting with Dingz devices"; diff --git a/pkgs/development/python-modules/diofant/default.nix b/pkgs/development/python-modules/diofant/default.nix index 303d00bbff29..8dc4118beda4 100644 --- a/pkgs/development/python-modules/diofant/default.nix +++ b/pkgs/development/python-modules/diofant/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, cython -, fetchpatch -, fetchPypi -, gmpy2 -, mpmath -, numpy -, pythonOlder -, scipy -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + cython, + fetchpatch, + fetchPypi, + gmpy2, + mpmath, + numpy, + pythonOlder, + scipy, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - mpmath - ]; + propagatedBuildInputs = [ mpmath ]; passthru.optional-dependencies = { exports = [ @@ -47,9 +46,7 @@ buildPythonPackage rec { numpy scipy ]; - gmpy = [ - gmpy2 - ]; + gmpy = [ gmpy2 ]; }; # tests take ~1h diff --git a/pkgs/development/python-modules/dipy/default.nix b/pkgs/development/python-modules/dipy/default.nix index 22290b692240..d1f9fdd4209c 100644 --- a/pkgs/development/python-modules/dipy/default.nix +++ b/pkgs/development/python-modules/dipy/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, packaging -, cython -, numpy -, scipy -, h5py -, nibabel -, tqdm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + packaging, + cython, + numpy, + scipy, + h5py, + nibabel, + tqdm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/directv/default.nix b/pkgs/development/python-modules/directv/default.nix index d8aaa9b7df67..66526a2d0975 100644 --- a/pkgs/development/python-modules/directv/default.nix +++ b/pkgs/development/python-modules/directv/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dirty-equals/default.nix b/pkgs/development/python-modules/dirty-equals/default.nix index 8ef625976167..aa3434a05089 100644 --- a/pkgs/development/python-modules/dirty-equals/default.nix +++ b/pkgs/development/python-modules/dirty-equals/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pydantic -, pytest-examples -, pytestCheckHook -, pythonOlder -, pytz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pydantic, + pytest-examples, + pytestCheckHook, + pythonOlder, + pytz, }: let @@ -24,13 +25,9 @@ let hash = "sha256-U6DNluthDgxzh6IOaKrN/JhX4u+ztY/jVp9IKh0iP34="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - pytz - ]; + propagatedBuildInputs = [ pytz ]; doCheck = false; passthru.tests.pytest = dirty-equals.overrideAttrs { doCheck = true; }; @@ -41,9 +38,7 @@ let pytestCheckHook ]; - pythonImportsCheck = [ - "dirty_equals" - ]; + pythonImportsCheck = [ "dirty_equals" ]; meta = with lib; { description = "Module for doing dirty (but extremely useful) things with equals"; @@ -53,4 +48,5 @@ let maintainers = with maintainers; [ fab ]; }; }; -in dirty-equals +in +dirty-equals diff --git a/pkgs/development/python-modules/dirtyjson/default.nix b/pkgs/development/python-modules/dirtyjson/default.nix index 7cd4fce0e650..3519d8ff4a56 100644 --- a/pkgs/development/python-modules/dirtyjson/default.nix +++ b/pkgs/development/python-modules/dirtyjson/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,22 +19,19 @@ buildPythonPackage rec { hash = "sha256-kMpKGPP/MM6EnRANz0oAOVPHnTojSO8Fbx2cIiMaJf0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dirtyjson" - ]; + pythonImportsCheck = [ "dirtyjson" ]; meta = with lib; { description = "JSON decoder for Python that can extract data from the muck"; homepage = "https://github.com/codecobblers/dirtyjson"; - license = with licenses; [ afl21 /* and */ mit]; + license = with licenses; [ + afl21 # and + mit + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/discid/default.nix b/pkgs/development/python-modules/discid/default.nix index ec921be17ddb..83cc31223521 100644 --- a/pkgs/development/python-modules/discid/default.nix +++ b/pkgs/development/python-modules/discid/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, libdiscid, buildPythonPackage, fetchPypi }: +{ + lib, + stdenv, + libdiscid, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "discid"; @@ -11,7 +17,9 @@ buildPythonPackage rec { }; patchPhase = - let extension = stdenv.hostPlatform.extensions.sharedLibrary; in + let + extension = stdenv.hostPlatform.extensions.sharedLibrary; + in '' substituteInPlace discid/libdiscid.py \ --replace "_open_library(_LIB_NAME)" \ @@ -20,7 +28,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python binding of libdiscid"; - homepage = "https://python-discid.readthedocs.org/"; - license = licenses.lgpl3Plus; + homepage = "https://python-discid.readthedocs.org/"; + license = licenses.lgpl3Plus; }; } diff --git a/pkgs/development/python-modules/discogs-client/default.nix b/pkgs/development/python-modules/discogs-client/default.nix index ad4268b8f712..cf7e28c54c3a 100644 --- a/pkgs/development/python-modules/discogs-client/default.nix +++ b/pkgs/development/python-modules/discogs-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, oauthlib -, python-dateutil -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + oauthlib, + python-dateutil, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "discogs_client" - ]; + pythonImportsCheck = [ "discogs_client" ]; meta = with lib; { description = "Unofficial Python API client for Discogs"; diff --git a/pkgs/development/python-modules/discordpy/default.nix b/pkgs/development/python-modules/discordpy/default.nix index a13eba26b7e1..ff9771798860 100644 --- a/pkgs/development/python-modules/discordpy/default.nix +++ b/pkgs/development/python-modules/discordpy/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, libopus -, pynacl -, pythonOlder -, withVoice ? true -, ffmpeg +{ + lib, + stdenv, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + libopus, + pynacl, + pythonOlder, + withVoice ? true, + ffmpeg, }: buildPythonPackage rec { @@ -24,21 +25,23 @@ buildPythonPackage rec { hash = "sha256-bZoYdDpk34x+Vw1pAZ3EcTFp2JJ/Ow0Jfof/XjqeRmY="; }; - propagatedBuildInputs = [ - aiohttp - ] ++ lib.optionals withVoice [ - libopus - pynacl - ffmpeg - ]; + propagatedBuildInputs = + [ aiohttp ] + ++ lib.optionals withVoice [ + libopus + pynacl + ffmpeg + ]; - patchPhase = '' - substituteInPlace "discord/opus.py" \ - --replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'" - '' + lib.optionalString withVoice '' - substituteInPlace "discord/player.py" \ - --replace "executable='ffmpeg'" "executable='${ffmpeg}/bin/ffmpeg'" - ''; + patchPhase = + '' + substituteInPlace "discord/opus.py" \ + --replace "ctypes.util.find_library('opus')" "'${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}'" + '' + + lib.optionalString withVoice '' + substituteInPlace "discord/player.py" \ + --replace "executable='ffmpeg'" "executable='${ffmpeg}/bin/ffmpeg'" + ''; # Only have integration tests with discord doCheck = false; diff --git a/pkgs/development/python-modules/discovery30303/default.nix b/pkgs/development/python-modules/discovery30303/default.nix index fb3904046b8b..823207a087af 100644 --- a/pkgs/development/python-modules/discovery30303/default.nix +++ b/pkgs/development/python-modules/discovery30303/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,27 +23,21 @@ buildPythonPackage rec { hash = "sha256-WSVMhiJxASxAkxs6RGuAVvEFS8TPxDKE9M99Rp8HKGM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=discovery30303" "" ''; - pythonImportsCheck = [ - "discovery30303" - ]; + pythonImportsCheck = [ "discovery30303" ]; meta = with lib; { description = "Module to discover devices that respond on port 30303"; diff --git a/pkgs/development/python-modules/diskcache/default.nix b/pkgs/development/python-modules/diskcache/default.nix index 328777370782..4fe4bad03abc 100644 --- a/pkgs/development/python-modules/diskcache/default.nix +++ b/pkgs/development/python-modules/diskcache/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytest-django -, pytest-xdist -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytest-django, + pytest-xdist, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { "test_cache_write_unpicklable_object" ]; - pythonImportsCheck = [ - "diskcache" - ]; + pythonImportsCheck = [ "diskcache" ]; meta = with lib; { description = "Disk and file backed persistent cache"; diff --git a/pkgs/development/python-modules/dissect-btrfs/default.nix b/pkgs/development/python-modules/dissect-btrfs/default.nix index 72f5fd96695b..02271c9bf43b 100644 --- a/pkgs/development/python-modules/dissect-btrfs/default.nix +++ b/pkgs/development/python-modules/dissect-btrfs/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, google-crc32c -, python-lzo -, pythonOlder -, setuptools -, setuptools-scm -, zstandard +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + google-crc32c, + python-lzo, + pythonOlder, + setuptools, + setuptools-scm, + zstandard, }: buildPythonPackage rec { @@ -40,17 +41,13 @@ buildPythonPackage rec { python-lzo zstandard ]; - gcrc32 = [ - google-crc32c - ]; + gcrc32 = [ google-crc32c ]; }; # Issue with the test file handling doCheck = false; - pythonImportsCheck = [ - "dissect.btrfs" - ]; + pythonImportsCheck = [ "dissect.btrfs" ]; meta = with lib; { description = "Dissect module implementing a parser for the BTRFS file system"; diff --git a/pkgs/development/python-modules/dissect-esedb/default.nix b/pkgs/development/python-modules/dissect-esedb/default.nix index 5784939b2ca2..f2cf84f2c834 100644 --- a/pkgs/development/python-modules/dissect-esedb/default.nix +++ b/pkgs/development/python-modules/dissect-esedb/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.esedb" - ]; + pythonImportsCheck = [ "dissect.esedb" ]; meta = with lib; { description = "Dissect module implementing a parser for Microsofts Extensible Storage Engine Database (ESEDB)"; diff --git a/pkgs/development/python-modules/dissect-eventlog/default.nix b/pkgs/development/python-modules/dissect-eventlog/default.nix index a57ddd56cc91..1752640a6504 100644 --- a/pkgs/development/python-modules/dissect-eventlog/default.nix +++ b/pkgs/development/python-modules/dissect-eventlog/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.eventlog" - ]; + pythonImportsCheck = [ "dissect.eventlog" ]; meta = with lib; { description = "Dissect module implementing parsers for the Windows EVT, EVTX and WEVT log file formats"; diff --git a/pkgs/development/python-modules/dissect-extfs/default.nix b/pkgs/development/python-modules/dissect-extfs/default.nix index 95d31f8f7a34..a0697189f1a3 100644 --- a/pkgs/development/python-modules/dissect-extfs/default.nix +++ b/pkgs/development/python-modules/dissect-extfs/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.extfs" - ]; + pythonImportsCheck = [ "dissect.extfs" ]; # Archive files seems to be corrupt doCheck = false; diff --git a/pkgs/development/python-modules/dissect-jffs/default.nix b/pkgs/development/python-modules/dissect-jffs/default.nix index 31edb777123c..ecaab632fafa 100644 --- a/pkgs/development/python-modules/dissect-jffs/default.nix +++ b/pkgs/development/python-modules/dissect-jffs/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # Test file handling fails doCheck = true; - pythonImportsCheck = [ - "dissect.jffs" - ]; + pythonImportsCheck = [ "dissect.jffs" ]; meta = with lib; { description = "Dissect module implementing a parser for the JFFS2 file system"; diff --git a/pkgs/development/python-modules/dissect-ntfs/default.nix b/pkgs/development/python-modules/dissect-ntfs/default.nix index 19c414c74d3c..046eec0aa74e 100644 --- a/pkgs/development/python-modules/dissect-ntfs/default.nix +++ b/pkgs/development/python-modules/dissect-ntfs/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.ntfs" - ]; + pythonImportsCheck = [ "dissect.ntfs" ]; disabledTestPaths = [ # Test is very time consuming diff --git a/pkgs/development/python-modules/dissect-regf/default.nix b/pkgs/development/python-modules/dissect-regf/default.nix index 4e09bfb4067a..4705900e19ca 100644 --- a/pkgs/development/python-modules/dissect-regf/default.nix +++ b/pkgs/development/python-modules/dissect-regf/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.regf" - ]; + pythonImportsCheck = [ "dissect.regf" ]; meta = with lib; { description = "Dissect module implementing a parser for Windows registry file format"; diff --git a/pkgs/development/python-modules/dissect-target/default.nix b/pkgs/development/python-modules/dissect-target/default.nix index a8fdd93b879f..593e82139465 100644 --- a/pkgs/development/python-modules/dissect-target/default.nix +++ b/pkgs/development/python-modules/dissect-target/default.nix @@ -1,44 +1,45 @@ -{ lib -, stdenv -, asn1crypto -, buildPythonPackage -, defusedxml -, dissect-btrfs -, dissect-cim -, dissect-clfs -, dissect-cstruct -, dissect-esedb -, dissect-etl -, dissect-eventlog -, dissect-evidence -, dissect-extfs -, dissect-fat -, dissect-ffs -, dissect-hypervisor -, dissect-ntfs -, dissect-regf -, dissect-shellitem -, dissect-sql -, dissect-thumbcache -, dissect-util -, dissect-volume -, dissect-xfs -, fetchFromGitHub -, flow-record -, fusepy -, impacket -, ipython -, paho-mqtt -, pycryptodome -, pytestCheckHook -, pythonOlder -, ruamel-yaml -, setuptools -, setuptools-scm -, structlog -, tomli -, yara-python -, zstandard +{ + lib, + stdenv, + asn1crypto, + buildPythonPackage, + defusedxml, + dissect-btrfs, + dissect-cim, + dissect-clfs, + dissect-cstruct, + dissect-esedb, + dissect-etl, + dissect-eventlog, + dissect-evidence, + dissect-extfs, + dissect-fat, + dissect-ffs, + dissect-hypervisor, + dissect-ntfs, + dissect-regf, + dissect-shellitem, + dissect-sql, + dissect-thumbcache, + dissect-util, + dissect-volume, + dissect-xfs, + fetchFromGitHub, + flow-record, + fusepy, + impacket, + ipython, + paho-mqtt, + pycryptodome, + pytestCheckHook, + pythonOlder, + ruamel-yaml, + setuptools, + setuptools-scm, + structlog, + tomli, + yara-python, + zstandard, }: buildPythonPackage rec { @@ -101,54 +102,46 @@ buildPythonPackage rec { yara-python zstandard ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - yara = [ - yara-python - ] ++ passthru.optional-dependencies.full; - smb = [ - impacket - ] ++ passthru.optional-dependencies.full; - mqtt = [ - paho-mqtt - ] ++ passthru.optional-dependencies.full; + yara = [ yara-python ] ++ passthru.optional-dependencies.full; + smb = [ impacket ] ++ passthru.optional-dependencies.full; + mqtt = [ paho-mqtt ] ++ passthru.optional-dependencies.full; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.full; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full; - pythonImportsCheck = [ - "dissect.target" - ]; + pythonImportsCheck = [ "dissect.target" ]; - disabledTests = [ - "test_cpio" - # Test requires rdump - "test_exec_target_command" - # Issue with tar file - "test_dpapi_decrypt_blob" - "test_md" - "test_nested_md_lvm" - "test_notifications_appdb" - "test_notifications_wpndatabase" - "test_tar_anonymous_filesystems" - "test_tar_sensitive_drive_letter" - # Tests compare dates and times - "yum" - # Filesystem access, windows defender tests - "test_config_tree_plugin" - "test_defender_quarantine_recovery" - "test_execute_pipeline" - "test_keychain_register_keychain_file" - "test_plugins_child_docker" - "test_plugins_child_wsl" - "test_reg_output" - "test_regflex" - "test_systemd_basic_syntax" - "test_target_cli_unicode_argparse" - "test_target_query" - ] ++ - # test is broken on Darwin - lib.optional stdenv.hostPlatform.isDarwin "test_fs_attrs_no_os_listxattr"; + disabledTests = + [ + "test_cpio" + # Test requires rdump + "test_exec_target_command" + # Issue with tar file + "test_dpapi_decrypt_blob" + "test_md" + "test_nested_md_lvm" + "test_notifications_appdb" + "test_notifications_wpndatabase" + "test_tar_anonymous_filesystems" + "test_tar_sensitive_drive_letter" + # Tests compare dates and times + "yum" + # Filesystem access, windows defender tests + "test_config_tree_plugin" + "test_defender_quarantine_recovery" + "test_execute_pipeline" + "test_keychain_register_keychain_file" + "test_plugins_child_docker" + "test_plugins_child_wsl" + "test_reg_output" + "test_regflex" + "test_systemd_basic_syntax" + "test_target_cli_unicode_argparse" + "test_target_query" + ] + ++ + # test is broken on Darwin + lib.optional stdenv.hostPlatform.isDarwin "test_fs_attrs_no_os_listxattr"; disabledTestPaths = [ # Tests are using Windows paths, missing test files diff --git a/pkgs/development/python-modules/dissect-util/default.nix b/pkgs/development/python-modules/dissect-util/default.nix index 9210cc6ca774..b7ae3a54ae1c 100644 --- a/pkgs/development/python-modules/dissect-util/default.nix +++ b/pkgs/development/python-modules/dissect-util/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.util" - ]; + pythonImportsCheck = [ "dissect.util" ]; meta = with lib; { description = "Dissect module implementing various utility functions for the other Dissect modules"; diff --git a/pkgs/development/python-modules/dissect-vmfs/default.nix b/pkgs/development/python-modules/dissect-vmfs/default.nix index 95775fb18ce2..ba7d93b74778 100644 --- a/pkgs/development/python-modules/dissect-vmfs/default.nix +++ b/pkgs/development/python-modules/dissect-vmfs/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.vmfs" - ]; + pythonImportsCheck = [ "dissect.vmfs" ]; meta = with lib; { description = "Dissect module implementing a parser for the VMFS file system"; diff --git a/pkgs/development/python-modules/dissect-volume/default.nix b/pkgs/development/python-modules/dissect-volume/default.nix index a312667bb620..811793f6a695 100644 --- a/pkgs/development/python-modules/dissect-volume/default.nix +++ b/pkgs/development/python-modules/dissect-volume/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dissect-cstruct -, dissect-util -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dissect-cstruct, + dissect-util, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { dissect-util ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dissect.volume" - ]; + pythonImportsCheck = [ "dissect.volume" ]; disabledTests = [ # gzip.BadGzipFile: Not a gzipped file diff --git a/pkgs/development/python-modules/dissononce/default.nix b/pkgs/development/python-modules/dissononce/default.nix index da783408efd8..feff6a7f6bb0 100644 --- a/pkgs/development/python-modules/dissononce/default.nix +++ b/pkgs/development/python-modules/dissononce/default.nix @@ -1,4 +1,11 @@ -{ buildPythonPackage, fetchFromGitHub, lib, pytest, cryptography, transitions }: +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytest, + cryptography, + transitions, +}: buildPythonPackage rec { pname = "dissononce"; @@ -17,7 +24,10 @@ buildPythonPackage rec { HOME=$(mktemp -d) py.test tests/ ''; - propagatedBuildInputs = [ cryptography transitions ]; + propagatedBuildInputs = [ + cryptography + transitions + ]; meta = with lib; { homepage = "https://pypi.org/project/dissononce/"; diff --git a/pkgs/development/python-modules/distlib/default.nix b/pkgs/development/python-modules/distlib/default.nix index 1f2d17395065..f9da72b61c3f 100644 --- a/pkgs/development/python-modules/distlib/default.nix +++ b/pkgs/development/python-modules/distlib/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-FTDqE+NQAxtjEthYDdtrJ6EEJ1oxEGUjuPEjeH9JT2Q="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postFixup = lib.optionalString (!stdenv.hostPlatform.isWindows) '' find $out -name '*.exe' -delete diff --git a/pkgs/development/python-modules/distorm3/default.nix b/pkgs/development/python-modules/distorm3/default.nix index e6f3eb616337..d069c9470ced 100644 --- a/pkgs/development/python-modules/distorm3/default.nix +++ b/pkgs/development/python-modules/distorm3/default.nix @@ -24,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-Fhvxag2UN5wXEySP1n1pCahMQR/SfssywikeLmiASwQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook @@ -38,9 +36,7 @@ buildPythonPackage rec { "test_dummy" ]; - pythonImportsCheck = [ - "distorm3" - ]; + pythonImportsCheck = [ "distorm3" ]; meta = with lib; { description = "Disassembler library for x86/AMD64"; diff --git a/pkgs/development/python-modules/distrax/default.nix b/pkgs/development/python-modules/distrax/default.nix index bdd443356a8c..83a4a16d650e 100644 --- a/pkgs/development/python-modules/distrax/default.nix +++ b/pkgs/development/python-modules/distrax/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, chex -, jaxlib -, numpy -, tensorflow-probability -, dm-haiku -, pytest-xdist -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + chex, + jaxlib, + numpy, + tensorflow-probability, + dm-haiku, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "distrax" - ]; + pythonImportsCheck = [ "distrax" ]; disabledTests = [ # AssertionError on numerical values diff --git a/pkgs/development/python-modules/distributed/default.nix b/pkgs/development/python-modules/distributed/default.nix index 35c1df57422a..3cad3562be1a 100644 --- a/pkgs/development/python-modules/distributed/default.nix +++ b/pkgs/development/python-modules/distributed/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, click -, cloudpickle -, dask -, fetchFromGitHub -, jinja2 -, locket -, msgpack -, packaging -, psutil -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, setuptools -, setuptools-scm -, sortedcontainers -, tblib -, toolz -, tornado -, urllib3 -, versioneer -, zict +{ + lib, + buildPythonPackage, + click, + cloudpickle, + dask, + fetchFromGitHub, + jinja2, + locket, + msgpack, + packaging, + psutil, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + setuptools, + setuptools-scm, + sortedcontainers, + tblib, + toolz, + tornado, + urllib3, + versioneer, + zict, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { versioneer ] ++ versioneer.optional-dependencies.toml; - pythonRelaxDeps = [ - "dask" - ]; + pythonRelaxDeps = [ "dask" ]; dependencies = [ click @@ -75,9 +74,7 @@ buildPythonPackage rec { # When tested random tests would fail and not repeatably doCheck = false; - pythonImportsCheck = [ - "distributed" - ]; + pythonImportsCheck = [ "distributed" ]; meta = with lib; { description = "Distributed computation in Python"; diff --git a/pkgs/development/python-modules/distro/default.nix b/pkgs/development/python-modules/distro/default.nix index 9aab5f47e430..d32e5cac5d12 100644 --- a/pkgs/development/python-modules/distro/default.nix +++ b/pkgs/development/python-modules/distro/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-L6d8b9iUDxFu4da5Si+QsTteqNAZuYvIuv3KvN2b2+0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # tests are very targeted at individual linux distributions doCheck = false; diff --git a/pkgs/development/python-modules/distutils-cfg/default.nix b/pkgs/development/python-modules/distutils-cfg/default.nix index fb616c65d036..89bd84156060 100644 --- a/pkgs/development/python-modules/distutils-cfg/default.nix +++ b/pkgs/development/python-modules/distutils-cfg/default.nix @@ -1,22 +1,32 @@ # global distutils configuration, see http://docs.python.org/2/install/index.html#distutils-configuration-files -{ stdenv, python, writeText, extraCfg ? "", overrideCfg ? "" }: - +{ + stdenv, + python, + writeText, + extraCfg ? "", + overrideCfg ? "", +}: let distutilsCfg = writeText "distutils.cfg" ( - if overrideCfg != "" then overrideCfg else '' - [easy_install] + if overrideCfg != "" then + overrideCfg + else + '' + [easy_install] - # don't allow network connections during build to ensure purity - allow-hosts = None + # don't allow network connections during build to ensure purity + allow-hosts = None - # make sure we always unzip installed packages otherwise setup hooks won't work - zip_ok = 0 + # make sure we always unzip installed packages otherwise setup hooks won't work + zip_ok = 0 - ${extraCfg} - ''); -in stdenv.mkDerivation { + ${extraCfg} + '' + ); +in +stdenv.mkDerivation { name = "${python.libPrefix}-distutils.cfg"; buildInputs = [ python ]; diff --git a/pkgs/development/python-modules/distutils-extra/default.nix b/pkgs/development/python-modules/distutils-extra/default.nix index 37ef77947b3f..013ab75d37c3 100644 --- a/pkgs/development/python-modules/distutils-extra/default.nix +++ b/pkgs/development/python-modules/distutils-extra/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchurl +{ + lib, + buildPythonPackage, + fetchurl, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Tests are out-dated as the last upstream release is from 2016 doCheck = false; - pythonImportsCheck = [ - "DistUtilsExtra" - ]; + pythonImportsCheck = [ "DistUtilsExtra" ]; meta = with lib; { description = "Enhancements to Python's distutils"; diff --git a/pkgs/development/python-modules/dj-database-url/default.nix b/pkgs/development/python-modules/dj-database-url/default.nix index 6ac924227f1a..cbf1502bfde9 100644 --- a/pkgs/development/python-modules/dj-database-url/default.nix +++ b/pkgs/development/python-modules/dj-database-url/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-8gQs7+EIblOcnaOfrVrX9hFzv3lmXmm/fk3lX6iLE18="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # Tests access a DB via network doCheck = false; - pythonImportsCheck = [ - "dj_database_url" - ]; + pythonImportsCheck = [ "dj_database_url" ]; meta = with lib; { description = "Use Database URLs in your Django Application"; diff --git a/pkgs/development/python-modules/dj-email-url/default.nix b/pkgs/development/python-modules/dj-email-url/default.nix index 5f043f008e16..e557c9992717 100644 --- a/pkgs/development/python-modules/dj-email-url/default.nix +++ b/pkgs/development/python-modules/dj-email-url/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dj-search-url/default.nix b/pkgs/development/python-modules/dj-search-url/default.nix index 057d2c6acdac..e57e66be59b8 100644 --- a/pkgs/development/python-modules/dj-search-url/default.nix +++ b/pkgs/development/python-modules/dj-search-url/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/dj-static/default.nix b/pkgs/development/python-modules/dj-static/default.nix index 167fbf88bd51..83e07a45bc04 100644 --- a/pkgs/development/python-modules/dj-static/default.nix +++ b/pkgs/development/python-modules/dj-static/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, static3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + static3, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-B6TydlezbDkmfFgJjdFniZIYo/JjzPvFj43co+HYCdc="; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; - propagatedBuildInputs = [ - static3 - ]; + propagatedBuildInputs = [ static3 ]; - pythonImportsCheck = [ - "dj_static" - ]; + pythonImportsCheck = [ "dj_static" ]; doCheck = false; diff --git a/pkgs/development/python-modules/django-admin-datta/default.nix b/pkgs/development/python-modules/django-admin-datta/default.nix index 44be722da51a..8b12a79aea2e 100644 --- a/pkgs/development/python-modules/django-admin-datta/default.nix +++ b/pkgs/development/python-modules/django-admin-datta/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + django, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-VV7mb3501aZVuXUqzVqQYUttvkYa4pAECYWn7HksOmI="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # no tests doCheck = false; - pythonImportsCheck = [ - "admin_datta" - ]; + pythonImportsCheck = [ "admin_datta" ]; meta = with lib; { description = "Modern template for Django that covers Admin Section"; diff --git a/pkgs/development/python-modules/django-admin-sortable2/default.nix b/pkgs/development/python-modules/django-admin-sortable2/default.nix index d9987f5b5dec..ae9b84536f93 100644 --- a/pkgs/development/python-modules/django-admin-sortable2/default.nix +++ b/pkgs/development/python-modules/django-admin-sortable2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, django_4 -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + django_4, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-N1awLH0JxbN+/mV3GNWq4rdfRv0Bu/4cOdTmBlEBnXk="; }; - propagatedBuildInputs = [ - django_4 - ]; + propagatedBuildInputs = [ django_4 ]; - pythonImportsCheck = [ - "adminsortable2" - ]; + pythonImportsCheck = [ "adminsortable2" ]; # Tests are very slow (end-to-end with playwright) doCheck = false; diff --git a/pkgs/development/python-modules/django-allauth-2fa/default.nix b/pkgs/development/python-modules/django-allauth-2fa/default.nix index 60a2d61bac27..b04d760d39b3 100644 --- a/pkgs/development/python-modules/django-allauth-2fa/default.nix +++ b/pkgs/development/python-modules/django-allauth-2fa/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, django -, django-allauth -, django-otp -, fetchFromGitHub -, pythonOlder -, qrcode -, hatchling +{ + lib, + buildPythonPackage, + django, + django-allauth, + django-otp, + fetchFromGitHub, + pythonOlder, + qrcode, + hatchling, }: buildPythonPackage rec { @@ -23,10 +24,7 @@ buildPythonPackage rec { hash = "sha256-bm2RwhvX2nfhYs74MM0iZl9U2gHgm0lLlh2tuRRcGso="; }; - - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ django @@ -35,9 +33,7 @@ buildPythonPackage rec { qrcode ]; - pythonImportsCheck = [ - "allauth_2fa" - ]; + pythonImportsCheck = [ "allauth_2fa" ]; meta = with lib; { description = "django-allauth-2fa adds two-factor authentication to django-allauth"; diff --git a/pkgs/development/python-modules/django-allauth/default.nix b/pkgs/development/python-modules/django-allauth/default.nix index 6046f1964d8f..fb7eb5ffac84 100644 --- a/pkgs/development/python-modules/django-allauth/default.nix +++ b/pkgs/development/python-modules/django-allauth/default.nix @@ -1,33 +1,34 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + python, -# build-system -, setuptools + # build-system + setuptools, -# build-time dependencies -, gettext + # build-time dependencies + gettext, -# dependencies -, django -, python3-openid -, requests -, requests-oauthlib -, pyjwt + # dependencies + django, + python3-openid, + requests, + requests-oauthlib, + pyjwt, -# optional-dependencies -, python3-saml -, qrcode + # optional-dependencies + python3-saml, + qrcode, -# tests -, pillow -, pytestCheckHook -, pytest-django + # tests + pillow, + pytestCheckHook, + pytest-django, -# passthru tests -, dj-rest-auth + # passthru tests + dj-rest-auth, }: buildPythonPackage rec { @@ -60,17 +61,11 @@ buildPythonPackage rec { preBuild = "${python.interpreter} -m django compilemessages"; passthru.optional-dependencies = { - saml = [ - python3-saml - ]; - mfa = [ - qrcode - ]; + saml = [ python3-saml ]; + mfa = [ qrcode ]; }; - pythonImportsCheck = [ - "allauth" - ]; + pythonImportsCheck = [ "allauth" ]; nativeCheckInputs = [ pillow diff --git a/pkgs/development/python-modules/django-annoying/default.nix b/pkgs/development/python-modules/django-annoying/default.nix index 5259a974d648..5e07a6f47f88 100644 --- a/pkgs/development/python-modules/django-annoying/default.nix +++ b/pkgs/development/python-modules/django-annoying/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, django -, six -, pytest-django -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + django, + six, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-anymail/default.nix b/pkgs/development/python-modules/django-anymail/default.nix index 1e619035bd05..7b0c77164829 100644 --- a/pkgs/development/python-modules/django-anymail/default.nix +++ b/pkgs/development/python-modules/django-anymail/default.nix @@ -1,15 +1,16 @@ -{ lib -, boto3 -, buildPythonPackage -, django -, fetchFromGitHub -, hatchling -, mock -, python -, pythonOlder -, requests -, responses -, urllib3 +{ + lib, + boto3, + buildPythonPackage, + django, + fetchFromGitHub, + hatchling, + mock, + python, + pythonOlder, + requests, + responses, + urllib3, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-5uSpPeXpMkpuzMXzsGE6uQJWP/Dt/oqakB8Xb5G1eZY="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ django @@ -42,9 +41,7 @@ buildPythonPackage rec { ] ++ passthru.optional-dependencies.amazon-ses; passthru.optional-dependencies = { - amazon-ses = [ - boto3 - ]; + amazon-ses = [ boto3 ]; }; checkPhase = '' @@ -53,9 +50,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "anymail" - ]; + pythonImportsCheck = [ "anymail" ]; meta = with lib; { description = "Django email backends and webhooks for Mailgun"; diff --git a/pkgs/development/python-modules/django-appconf/default.nix b/pkgs/development/python-modules/django-appconf/default.nix index 66eef9d47288..47a10b51a142 100644 --- a/pkgs/development/python-modules/django-appconf/default.nix +++ b/pkgs/development/python-modules/django-appconf/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, django -, six -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + django, + six, + python, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-nS4Hwp/NYg1XGvZO1tiE9mzJA7WFifyvgAjyp3YpqS4="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; preCheck = '' # prove we're running tests against installed package, not build dir diff --git a/pkgs/development/python-modules/django-auditlog/default.nix b/pkgs/development/python-modules/django-auditlog/default.nix index ef7fbb133f47..d9b3cd5b3c56 100644 --- a/pkgs/development/python-modules/django-auditlog/default.nix +++ b/pkgs/development/python-modules/django-auditlog/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, django -, python-dateutil -, freezegun -, psycopg2 -, postgresql -, postgresqlTestHook -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + django, + python-dateutil, + freezegun, + psycopg2, + postgresql, + postgresqlTestHook, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-auth-ldap/default.nix b/pkgs/development/python-modules/django-auth-ldap/default.nix index b2f5fa74b41c..0abd5d344e41 100644 --- a/pkgs/development/python-modules/django-auth-ldap/default.nix +++ b/pkgs/development/python-modules/django-auth-ldap/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, -# buildtime -, setuptools-scm + # buildtime + setuptools-scm, -# runtime -, django -, python-ldap + # runtime + django, + python-ldap, -# tests -, python -, pkgs + # tests + python, + pkgs, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-YEJQk43cn9phnyR8elmwsvBuU6fT9GoVbyiqMN1xpzg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ django diff --git a/pkgs/development/python-modules/django-autocomplete-light/default.nix b/pkgs/development/python-modules/django-autocomplete-light/default.nix index 08390b00efd0..3efc86bd3a7f 100644 --- a/pkgs/development/python-modules/django-autocomplete-light/default.nix +++ b/pkgs/development/python-modules/django-autocomplete-light/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, six -, pytestCheckHook -, django-debug-toolbar -, django-extensions -, django-taggit -, django-tagging -, mock -, pytest-django -, selenium -, splinter -, sqlparse -, tenacity -, whitenoise +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + six, + pytestCheckHook, + django-debug-toolbar, + django-extensions, + django-taggit, + django-tagging, + mock, + pytest-django, + selenium, + splinter, + sqlparse, + tenacity, + whitenoise, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-bootstrap3/default.nix b/pkgs/development/python-modules/django-bootstrap3/default.nix index 4ac4695bd16c..a20b282c6450 100644 --- a/pkgs/development/python-modules/django-bootstrap3/default.nix +++ b/pkgs/development/python-modules/django-bootstrap3/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# non-propagates -, django + # non-propagates + django, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - django - ]; + buildInputs = [ django ]; - pythonImportsCheck = [ - "bootstrap3" - ]; + pythonImportsCheck = [ "bootstrap3" ]; nativeCheckInputs = [ pytest-django @@ -54,5 +51,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ hexa ]; }; } - - diff --git a/pkgs/development/python-modules/django-bootstrap4/default.nix b/pkgs/development/python-modules/django-bootstrap4/default.nix index d148162b9ab0..e34ce0f4b624 100644 --- a/pkgs/development/python-modules/django-bootstrap4/default.nix +++ b/pkgs/development/python-modules/django-bootstrap4/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# non-propagates -, django + # non-propagates + django, -# dependencies -, beautifulsoup4 + # dependencies + beautifulsoup4, -# tests -, python + # tests + python, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - beautifulsoup4 - ]; + propagatedBuildInputs = [ beautifulsoup4 ]; - pythonImportsCheck = [ - "bootstrap4" - ]; + pythonImportsCheck = [ "bootstrap4" ]; - nativeCheckInputs = [ - (django.override { withGdal = true; }) - ]; + nativeCheckInputs = [ (django.override { withGdal = true; }) ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-bootstrap5/default.nix b/pkgs/development/python-modules/django-bootstrap5/default.nix index ac983c5ac5e4..b35c586efa36 100644 --- a/pkgs/development/python-modules/django-bootstrap5/default.nix +++ b/pkgs/development/python-modules/django-bootstrap5/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, django + # dependencies + django, -# tests -, beautifulsoup4 -, pillow -, pytest-django -, pytestCheckHook + # tests + beautifulsoup4, + pillow, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { "test_get_bootstrap_setting" ]; - pythonImportsCheck = [ - "django_bootstrap5" - ]; + pythonImportsCheck = [ "django_bootstrap5" ]; meta = with lib; { description = "Bootstrap 5 integration with Django"; diff --git a/pkgs/development/python-modules/django-cachalot/default.nix b/pkgs/development/python-modules/django-cachalot/default.nix index eca0cff7c8d3..9632291b2a10 100644 --- a/pkgs/development/python-modules/django-cachalot/default.nix +++ b/pkgs/development/python-modules/django-cachalot/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-debug-toolbar -, psycopg2 -, beautifulsoup4 -, python -, pytz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-debug-toolbar, + psycopg2, + beautifulsoup4, + python, + pytz, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { ./disable-unsupported-tests.patch ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; checkInputs = [ beautifulsoup4 diff --git a/pkgs/development/python-modules/django-cache-url/default.nix b/pkgs/development/python-modules/django-cache-url/default.nix index d2167350874c..89fdb9df9d83 100644 --- a/pkgs/development/python-modules/django-cache-url/default.nix +++ b/pkgs/development/python-modules/django-cache-url/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-cacheops/default.nix b/pkgs/development/python-modules/django-cacheops/default.nix index 5416cf359f35..297542f9ff0b 100644 --- a/pkgs/development/python-modules/django-cacheops/default.nix +++ b/pkgs/development/python-modules/django-cacheops/default.nix @@ -1,21 +1,22 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, django -, funcy -, redis -, six -, pytestCheckHook -, pytest-django -, mock -, dill -, jinja2 -, before-after -, pythonOlder -, nettools -, pkgs +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + django, + funcy, + redis, + six, + pytestCheckHook, + pytest-django, + mock, + dill, + jinja2, + before-after, + pythonOlder, + nettools, + pkgs, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-d6N8c9f6z8cpk2XtZqEr56SH3XRd2GwdM8ouv9OzKHg="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "funcy" ]; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/django-celery-beat/default.nix b/pkgs/development/python-modules/django-celery-beat/default.nix index 2ed27afb27ad..f46ce7c36b9d 100644 --- a/pkgs/development/python-modules/django-celery-beat/default.nix +++ b/pkgs/development/python-modules/django-celery-beat/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, case -, celery -, cron-descriptor -, django-timezone-field -, ephem -, fetchPypi -, pytest-django -, pytest-timeout -, pytestCheckHook -, python-crontab -, pythonOlder -, setuptools -, tzdata +{ + lib, + buildPythonPackage, + case, + celery, + cron-descriptor, + django-timezone-field, + ephem, + fetchPypi, + pytest-django, + pytest-timeout, + pytestCheckHook, + python-crontab, + pythonOlder, + setuptools, + tzdata, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-91stEpcx8SFL6Dg+GPrmv+rNtV3/shFs6EkiLAEG+a0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cron-descriptor @@ -52,9 +51,7 @@ buildPythonPackage rec { "t/unit/test_schedulers.py" ]; - pythonImportsCheck = [ - "django_celery_beat" - ]; + pythonImportsCheck = [ "django_celery_beat" ]; meta = with lib; { description = "Celery Periodic Tasks backed by the Django ORM"; diff --git a/pkgs/development/python-modules/django-celery-email/default.nix b/pkgs/development/python-modules/django-celery-email/default.nix index d403ee8d4103..ea7608ffca47 100644 --- a/pkgs/development/python-modules/django-celery-email/default.nix +++ b/pkgs/development/python-modules/django-celery-email/default.nix @@ -1,12 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-appconf -, celery -, pytest-django -, pytestCheckHook -, python }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-appconf, + celery, + pytest-django, + pytestCheckHook, + python, +}: buildPythonPackage rec { pname = "django-celery-email"; diff --git a/pkgs/development/python-modules/django-celery-results/default.nix b/pkgs/development/python-modules/django-celery-results/default.nix index 080d63b75bff..b1c69ae1080c 100644 --- a/pkgs/development/python-modules/django-celery-results/default.nix +++ b/pkgs/development/python-modules/django-celery-results/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, celery -, django -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + celery, + django, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-ckeditor/default.nix b/pkgs/development/python-modules/django-ckeditor/default.nix index 530efc2a5614..4b7a5ee3303b 100644 --- a/pkgs/development/python-modules/django-ckeditor/default.nix +++ b/pkgs/development/python-modules/django-ckeditor/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, django -, django-extensions -, django-js-asset -, fetchFromGitHub -, pillow -, python -, pythonOlder -, selenium -, setuptools-scm +{ + lib, + buildPythonPackage, + django, + django-extensions, + django-js-asset, + fetchFromGitHub, + pillow, + python, + pythonOlder, + selenium, + setuptools-scm, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-mZQ5s3YbumYmT0zRWPFIvzt2TbtDLvVcJjZVAwn31E8="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ django @@ -48,9 +47,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "ckeditor" - ]; + pythonImportsCheck = [ "ckeditor" ]; meta = with lib; { description = " Django admin CKEditor integration"; diff --git a/pkgs/development/python-modules/django-classy-tags/default.nix b/pkgs/development/python-modules/django-classy-tags/default.nix index a4d363f8bc57..3f4fd07ae08b 100644 --- a/pkgs/development/python-modules/django-classy-tags/default.nix +++ b/pkgs/development/python-modules/django-classy-tags/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-yNnRqi+m5xxNhm303RHSOmm40lu7dQskkKF7Fhd07lk="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # pypi version doesn't include runtest.py, needed to run tests doCheck = false; - pythonImportsCheck = [ - "classytags" - ]; + pythonImportsCheck = [ "classytags" ]; meta = with lib; { description = "Class based template tags for Django"; diff --git a/pkgs/development/python-modules/django-cleanup/default.nix b/pkgs/development/python-modules/django-cleanup/default.nix index a465ffefc6a6..b2a5a737f3bf 100644 --- a/pkgs/development/python-modules/django-cleanup/default.nix +++ b/pkgs/development/python-modules/django-cleanup/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-cN+QUHakTnoRGzEZgZmvYz3uCIduGZ5tzjbKjda4sQ8="; }; - nativeCheckInputs = [ - django - ]; + nativeCheckInputs = [ django ]; meta = with lib; { description = "Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion"; diff --git a/pkgs/development/python-modules/django-colorful/default.nix b/pkgs/development/python-modules/django-colorful/default.nix index 093be1ab607e..6318cc8d99bd 100644 --- a/pkgs/development/python-modules/django-colorful/default.nix +++ b/pkgs/development/python-modules/django-colorful/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django +{ + lib, + buildPythonPackage, + fetchPypi, + django, }: buildPythonPackage rec { @@ -25,5 +26,4 @@ buildPythonPackage rec { homepage = "https://github.com/charettes/django-colorful"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/django-compression-middleware/default.nix b/pkgs/development/python-modules/django-compression-middleware/default.nix index c26ee8434dd8..ca893d0f9223 100644 --- a/pkgs/development/python-modules/django-compression-middleware/default.nix +++ b/pkgs/development/python-modules/django-compression-middleware/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, django -, zstandard -, brotli +{ + lib, + fetchPypi, + buildPythonPackage, + django, + zstandard, + brotli, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-compressor/default.nix b/pkgs/development/python-modules/django-compressor/default.nix index 543c483023df..086987f4dabc 100644 --- a/pkgs/development/python-modules/django-compressor/default.nix +++ b/pkgs/development/python-modules/django-compressor/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, calmjs -, django-appconf -, jinja2 -, rcssmin -, rjsmin + # dependencies + calmjs, + django-appconf, + jinja2, + rcssmin, + rjsmin, -# tests -, beautifulsoup4 -, brotli -, csscompressor -, django-sekizai -, pytestCheckHook -, pytest-django + # tests + beautifulsoup4, + brotli, + csscompressor, + django-sekizai, + pytestCheckHook, + pytest-django, }: @@ -67,9 +68,7 @@ buildPythonPackage rec { # Getting error: compressor.exceptions.OfflineGenerationError: You have # offline compression enabled but key "..." is missing from offline manifest. # You may need to run "python manage.py compress" - disabledTestPaths = [ - "compressor/tests/test_offline.py" - ]; + disabledTestPaths = [ "compressor/tests/test_offline.py" ]; pythonImportsCheck = [ "compressor" ]; diff --git a/pkgs/development/python-modules/django-configurations/default.nix b/pkgs/development/python-modules/django-configurations/default.nix index 53d75bed9bfa..be220e0dc898 100644 --- a/pkgs/development/python-modules/django-configurations/default.nix +++ b/pkgs/development/python-modules/django-configurations/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, dj-database-url -, dj-email-url -, dj-search-url -, django -, django-cache-url -, fetchPypi -, importlib-metadata -, mock -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + dj-database-url, + dj-email-url, + dj-search-url, + django, + django-cache-url, + fetchPypi, + importlib-metadata, + mock, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -24,15 +25,9 @@ buildPythonPackage rec { hash = "sha256-blCDdX4rvfm7eFBWdTa5apNRX2sXUD10ko/2KNsuDpQ="; }; - buildInputs = [ - setuptools-scm - ]; + buildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - django - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ django ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ mock @@ -52,9 +47,7 @@ buildPythonPackage rec { # django.core.exceptions.ImproperlyConfigured: django-configurations settings importer wasn't correctly installed doCheck = false; - pythonImportsCheck = [ - "configurations" - ]; + pythonImportsCheck = [ "configurations" ]; meta = with lib; { description = "A helper for organizing Django settings"; diff --git a/pkgs/development/python-modules/django-context-decorator/default.nix b/pkgs/development/python-modules/django-context-decorator/default.nix index 00f4a80e9526..e1c6d17259fb 100644 --- a/pkgs/development/python-modules/django-context-decorator/default.nix +++ b/pkgs/development/python-modules/django-context-decorator/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, django -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + django, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-lNmZDsguOu2+gtMVjbwr709sbLCQOQ1sAePN7UJQbcw="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; - pythonImportsCheck = [ - "django_context_decorator" - ]; + pythonImportsCheck = [ "django_context_decorator" ]; nativeCheckInputs = [ django diff --git a/pkgs/development/python-modules/django-contrib-comments/default.nix b/pkgs/development/python-modules/django-contrib-comments/default.nix index fe0ce82b52a0..05ce09663aa9 100644 --- a/pkgs/development/python-modules/django-contrib-comments/default.nix +++ b/pkgs/development/python-modules/django-contrib-comments/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django +{ + lib, + buildPythonPackage, + fetchPypi, + django, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { description = "The code formerly known as django.contrib.comments"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/django-cors-headers/default.nix b/pkgs/development/python-modules/django-cors-headers/default.nix index a3b79ca10a3f..a198b7dfff03 100644 --- a/pkgs/development/python-modules/django-cors-headers/default.nix +++ b/pkgs/development/python-modules/django-cors-headers/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, django -, pytest-django -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + django, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-pIyf4poW8/slxj4PVvmXpuYp//v5w00yU0Vz6Jiy2yM="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; nativeCheckInputs = [ pytest-django diff --git a/pkgs/development/python-modules/django-countries/default.nix b/pkgs/development/python-modules/django-countries/default.nix index 69262c084062..761d9edc8fc7 100644 --- a/pkgs/development/python-modules/django-countries/default.nix +++ b/pkgs/development/python-modules/django-countries/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, asgiref -, typing-extensions + # dependencies + asgiref, + typing-extensions, -# tests -, django -, djangorestframework -, graphene-django -, pytestCheckHook -, pytest-django + # tests + django, + djangorestframework, + graphene-django, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-IR9cJbDVkZrcF3Ti70mV8VeXINQDK8OpwUTWVjD4Zn0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ asgiref diff --git a/pkgs/development/python-modules/django-crispy-bootstrap4/default.nix b/pkgs/development/python-modules/django-crispy-bootstrap4/default.nix index d1a66ed8f704..7db68ffc9ccd 100644 --- a/pkgs/development/python-modules/django-crispy-bootstrap4/default.nix +++ b/pkgs/development/python-modules/django-crispy-bootstrap4/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, setuptools -, pytestCheckHook -, pytest-django -, django-crispy-forms +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + setuptools, + pytestCheckHook, + pytest-django, + django-crispy-forms, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-crispy-bootstrap5/default.nix b/pkgs/development/python-modules/django-crispy-bootstrap5/default.nix index 4d14ce5129a7..6fc014bcb38a 100644 --- a/pkgs/development/python-modules/django-crispy-bootstrap5/default.nix +++ b/pkgs/development/python-modules/django-crispy-bootstrap5/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, setuptools -, pytestCheckHook -, pytest-django -, django-crispy-forms +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + setuptools, + pytestCheckHook, + pytest-django, + django-crispy-forms, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-crispy-forms/default.nix b/pkgs/development/python-modules/django-crispy-forms/default.nix index 81aecd208ae8..8fbda6206e7c 100644 --- a/pkgs/development/python-modules/django-crispy-forms/default.nix +++ b/pkgs/development/python-modules/django-crispy-forms/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, setuptools -, pytestCheckHook -, pytest-django +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + setuptools, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-crontab/default.nix b/pkgs/development/python-modules/django-crontab/default.nix index 27ecce4a1ddb..9322697eb3f8 100644 --- a/pkgs/development/python-modules/django-crontab/default.nix +++ b/pkgs/development/python-modules/django-crontab/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, setuptools -, pytestCheckHook -, pytest-django -, mock -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + setuptools, + pytestCheckHook, + pytest-django, + mock, + nose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-cryptography/default.nix b/pkgs/development/python-modules/django-cryptography/default.nix index a49a51939403..74ede8be539e 100644 --- a/pkgs/development/python-modules/django-cryptography/default.nix +++ b/pkgs/development/python-modules/django-cryptography/default.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, cryptography -, django -, django-appconf -, fetchFromGitHub -, fetchpatch -, lib -, python -, pythonOlder -, setuptools +{ + buildPythonPackage, + cryptography, + django, + django-appconf, + fetchFromGitHub, + fetchpatch, + lib, + python, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-C3E2iT9JdLvF+1g+xhZ8dPDjjh25JUxLAtTMnalIxPk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography diff --git a/pkgs/development/python-modules/django-csp/default.nix b/pkgs/development/python-modules/django-csp/default.nix index e8f04f188a54..5c5920404fbc 100644 --- a/pkgs/development/python-modules/django-csp/default.nix +++ b/pkgs/development/python-modules/django-csp/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, django + # dependencies + django, -# tests -, jinja2 -, pytest-django -, pytestCheckHook + # tests + jinja2, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { sed -i "/addopts =/d" pyproject.toml ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - django - ]; + dependencies = [ django ]; nativeCheckInputs = [ jinja2 diff --git a/pkgs/development/python-modules/django-currentuser/default.nix b/pkgs/development/python-modules/django-currentuser/default.nix index 1b1c5a3f33de..7325793966c4 100644 --- a/pkgs/development/python-modules/django-currentuser/default.nix +++ b/pkgs/development/python-modules/django-currentuser/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python3 -, pythonOlder -, django -, hatchling -, pyhamcrest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python3, + pythonOlder, + django, + hatchling, + pyhamcrest, }: let version = "0.6.1"; diff --git a/pkgs/development/python-modules/django-debug-toolbar/default.nix b/pkgs/development/python-modules/django-debug-toolbar/default.nix index ee1a557b8eb0..20e4c5d7e1eb 100644 --- a/pkgs/development/python-modules/django-debug-toolbar/default.nix +++ b/pkgs/development/python-modules/django-debug-toolbar/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, pythonOlder -, buildPythonPackage -, python -, hatchling -, django -, jinja2 -, sqlparse -, html5lib +{ + lib, + fetchFromGitHub, + pythonOlder, + buildPythonPackage, + python, + hatchling, + django, + jinja2, + sqlparse, + html5lib, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-8rwEM+YSO9TtkC1UWS4JrzFH+TlGOHzL+WmxNwMJIWQ="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ django @@ -39,9 +38,7 @@ buildPythonPackage rec { TEST_ARGS = "tests"; DJANGO_SETTINGS_MODULE = "tests.settings"; - nativeCheckInputs = [ - html5lib - ]; + nativeCheckInputs = [ html5lib ]; checkPhase = '' runHook preCheck @@ -49,9 +46,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "debug_toolbar" - ]; + pythonImportsCheck = [ "debug_toolbar" ]; meta = with lib; { description = "Configurable set of panels that display debug information about the current request/response"; diff --git a/pkgs/development/python-modules/django-dynamic-preferences/default.nix b/pkgs/development/python-modules/django-dynamic-preferences/default.nix index bdb6c1d8229c..3b97a3ad8367 100644 --- a/pkgs/development/python-modules/django-dynamic-preferences/default.nix +++ b/pkgs/development/python-modules/django-dynamic-preferences/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# dependencies -, django -, persisting-theory -, six + # dependencies + django, + persisting-theory, + six, -# tests -, djangorestframework -, pytest-django -, pytestCheckHook + # tests + djangorestframework, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-S0PAlSrMOQ68mX548pZzARfau/lytXWC4S5uVO1rUmo="; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; propagatedBuildInputs = [ six diff --git a/pkgs/development/python-modules/django-encrypted-model-fields/default.nix b/pkgs/development/python-modules/django-encrypted-model-fields/default.nix index 242d173db68a..b08eb39fe281 100644 --- a/pkgs/development/python-modules/django-encrypted-model-fields/default.nix +++ b/pkgs/development/python-modules/django-encrypted-model-fields/default.nix @@ -1,10 +1,12 @@ -{ buildPythonPackage -, cryptography -, django -, fetchPypi -, lib -, poetry-core -, pythonOlder }: +{ + buildPythonPackage, + cryptography, + django, + fetchPypi, + lib, + poetry-core, + pythonOlder, +}: buildPythonPackage rec { pname = "django-encrypted-model-fields"; version = "0.6.5"; @@ -16,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-i9IcVWXA1k7E29N1rTT+potNotuHHew/px/nteQiHJk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ cryptography diff --git a/pkgs/development/python-modules/django-environ/default.nix b/pkgs/development/python-modules/django-environ/default.nix index c9c6b9971744..4820a064658e 100644 --- a/pkgs/development/python-modules/django-environ/default.nix +++ b/pkgs/development/python-modules/django-environ/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, six +{ + lib, + buildPythonPackage, + fetchPypi, + django, + six, }: buildPythonPackage rec { @@ -17,12 +18,14 @@ buildPythonPackage rec { # The testsuite fails to modify the base environment doCheck = false; - propagatedBuildInputs = [ django six ]; + propagatedBuildInputs = [ + django + six + ]; meta = with lib; { description = "Utilize environment variables to configure your Django application"; homepage = "https://github.com/joke2k/django-environ/"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/django-extensions/default.nix b/pkgs/development/python-modules/django-extensions/default.nix index 6581fcfbb8d6..e95945db87a6 100644 --- a/pkgs/development/python-modules/django-extensions/default.nix +++ b/pkgs/development/python-modules/django-extensions/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, django + # dependencies + django, -# tests -, factory-boy -, mock -, pip -, pygments -, pytestCheckHook -, pytest-django -, shortuuid -, vobject -, werkzeug + # tests + factory-boy, + mock, + pip, + pygments, + pytestCheckHook, + pytest-django, + shortuuid, + vobject, + werkzeug, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { --replace "--cov=django_extensions --cov-report html --cov-report term" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - django - ]; + dependencies = [ django ]; __darwinAllowLocalNetworking = true; @@ -69,7 +66,6 @@ buildPythonPackage rec { "tests/management/commands/test_pipchecker.py" # django.db.utils.OperationalError: no such table: django_extensions_permmodel "tests/test_dumpscript.py" - ]; meta = with lib; { diff --git a/pkgs/development/python-modules/django-filter/default.nix b/pkgs/development/python-modules/django-filter/default.nix index 926851b7fe00..27ba6d8cf68f 100644 --- a/pkgs/development/python-modules/django-filter/default.nix +++ b/pkgs/development/python-modules/django-filter/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, django -, djangorestframework -, pytestCheckHook -, pytest-django +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + django, + djangorestframework, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { dependencies = [ django ]; - pythonImportsCheck = [ - "django_filters" - ]; + pythonImportsCheck = [ "django_filters" ]; nativeCheckInputs = [ djangorestframework diff --git a/pkgs/development/python-modules/django-formset-js-improved/default.nix b/pkgs/development/python-modules/django-formset-js-improved/default.nix index b14306f06f78..b053510f4afe 100644 --- a/pkgs/development/python-modules/django-formset-js-improved/default.nix +++ b/pkgs/development/python-modules/django-formset-js-improved/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-jquery-js +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-jquery-js, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-bOM24ldXk9WeV0jl6LIJB3BJ5hVWLA1PJTBBnJBoprU="; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; - propagatedBuildInputs = [ - django-jquery-js - ]; + propagatedBuildInputs = [ django-jquery-js ]; - pythonImportsCheck = [ - "djangoformsetjs" - ]; + pythonImportsCheck = [ "djangoformsetjs" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/django-formtools/default.nix b/pkgs/development/python-modules/django-formtools/default.nix index 94dd9f370882..266c710c6828 100644 --- a/pkgs/development/python-modules/django-formtools/default.nix +++ b/pkgs/development/python-modules/django-formtools/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, python -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + django, + fetchPypi, + python, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-R8s0VSxu/KCIhj1pMoTQT8NuqvNQ6yHhodk14N9SPJM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; checkPhase = '' runHook preCheck @@ -35,15 +32,16 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "formtools" - ]; + pythonImportsCheck = [ "formtools" ]; meta = with lib; { description = "A set of high-level abstractions for Django forms"; homepage = "https://github.com/jazzband/django-formtools"; changelog = "https://github.com/jazzband/django-formtools/blob/master/docs/changelog.rst"; license = licenses.bsd3; - maintainers = with maintainers; [ greizgh schmittlauch ]; + maintainers = with maintainers; [ + greizgh + schmittlauch + ]; }; } diff --git a/pkgs/development/python-modules/django-google-analytics-app/default.nix b/pkgs/development/python-modules/django-google-analytics-app/default.nix index ad9262f844a5..8dd5cda3ee74 100644 --- a/pkgs/development/python-modules/django-google-analytics-app/default.nix +++ b/pkgs/development/python-modules/django-google-analytics-app/default.nix @@ -1,14 +1,15 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, celery -, django -, fetchFromGitHub -, importlib-metadata -, python -, pythonOlder -, requests -, structlog +{ + lib, + beautifulsoup4, + buildPythonPackage, + celery, + django, + fetchFromGitHub, + importlib-metadata, + python, + pythonOlder, + requests, + structlog, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "google_analytics" - ]; + pythonImportsCheck = [ "google_analytics" ]; meta = with lib; { description = "Django Google Analytics brings the power of server side/non-js Google Analytics to your Django projects"; diff --git a/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix b/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix index 26a82254a7a6..60a3ed0de63e 100644 --- a/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix +++ b/pkgs/development/python-modules/django-graphiql-debug-toolbar/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, django -, django-debug-toolbar -, graphene-django -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + django, + django-debug-toolbar, + graphene-django, + python, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sha256 = "0fikr7xl786jqfkjdifymqpqnxy4qj8g3nlkgfm24wwq0za719dw"; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ django @@ -32,9 +31,7 @@ buildPythonPackage rec { graphene-django ]; - pythonImportsCheck = [ - "graphiql_debug_toolbar" - ]; + pythonImportsCheck = [ "graphiql_debug_toolbar" ]; DB_BACKEND = "sqlite"; DB_NAME = ":memory:"; diff --git a/pkgs/development/python-modules/django-gravatar2/default.nix b/pkgs/development/python-modules/django-gravatar2/default.nix index d43748448c51..214a5ed4ddd0 100644 --- a/pkgs/development/python-modules/django-gravatar2/default.nix +++ b/pkgs/development/python-modules/django-gravatar2/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "django-gravatar2"; diff --git a/pkgs/development/python-modules/django-guardian/default.nix b/pkgs/development/python-modules/django-guardian/default.nix index 968e82b5849d..c9111e8be76c 100644 --- a/pkgs/development/python-modules/django-guardian/default.nix +++ b/pkgs/development/python-modules/django-guardian/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django-environ -, mock -, django -, pytestCheckHook -, pytest-django +{ + lib, + buildPythonPackage, + fetchPypi, + django-environ, + mock, + django, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { @@ -32,7 +33,10 @@ buildPythonPackage rec { meta = with lib; { description = "Per object permissions for Django"; homepage = "https://github.com/django-guardian/django-guardian"; - license = with licenses; [ mit bsd2 ]; + license = with licenses; [ + mit + bsd2 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/django-haystack/default.nix b/pkgs/development/python-modules/django-haystack/default.nix index d9d6fb8ecd6f..32839d246c33 100644 --- a/pkgs/development/python-modules/django-haystack/default.nix +++ b/pkgs/development/python-modules/django-haystack/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, -# build dependencies -, setuptools -, setuptools-scm + # build dependencies + setuptools, + setuptools-scm, -# dependencies -, django + # dependencies + django, -# tests -, elasticsearch -, geopy -, nose -, pysolr -, python-dateutil -, requests -, whoosh + # tests + elasticsearch, + geopy, + nose, + pysolr, + python-dateutil, + requests, + whoosh, }: buildPythonPackage rec { @@ -42,14 +43,10 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - django - ]; + buildInputs = [ django ]; passthru.optional-dependencies = { - elasticsearch = [ - elasticsearch - ]; + elasticsearch = [ elasticsearch ]; }; doCheck = lib.versionOlder django.version "4"; @@ -61,8 +58,7 @@ buildPythonPackage rec { python-dateutil requests whoosh - ] - ++ passthru.optional-dependencies.elasticsearch; + ] ++ passthru.optional-dependencies.elasticsearch; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-hcaptcha/default.nix b/pkgs/development/python-modules/django-hcaptcha/default.nix index 9daf8330331c..7f0eff237700 100644 --- a/pkgs/development/python-modules/django-hcaptcha/default.nix +++ b/pkgs/development/python-modules/django-hcaptcha/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django +{ + lib, + buildPythonPackage, + fetchPypi, + django, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-slGerwzJeGWscvglMBEixc9h4eSFLWiVmUFgIirLbBo="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # No tests doCheck = false; diff --git a/pkgs/development/python-modules/django-health-check/default.nix b/pkgs/development/python-modules/django-health-check/default.nix index 6716c1f003a2..76641bd9cbc8 100644 --- a/pkgs/development/python-modules/django-health-check/default.nix +++ b/pkgs/development/python-modules/django-health-check/default.nix @@ -1,15 +1,17 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, sphinx -, setuptools-scm -, django -, redis -, celery -, pytest-django -, pytestCheckHook -, mock -, gitMinimal }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + sphinx, + setuptools-scm, + django, + redis, + celery, + pytest-django, + pytestCheckHook, + mock, + gitMinimal, +}: buildPythonPackage rec { pname = "django-health-check"; diff --git a/pkgs/development/python-modules/django-hierarkey/default.nix b/pkgs/development/python-modules/django-hierarkey/default.nix index 7f78dd604047..488783094f54 100644 --- a/pkgs/development/python-modules/django-hierarkey/default.nix +++ b/pkgs/development/python-modules/django-hierarkey/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# propagates -, python-dateutil + # propagates + python-dateutil, -# tests -, django-extensions -, pytest-django -, pytestCheckHook + # tests + django-extensions, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { hash = "sha256-1LSH9GwoNF3NrDVNUIHDAVsktyKIprDgB5XlIHeM3fM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - python-dateutil - ]; + dependencies = [ python-dateutil ]; - pythonImportsCheck = [ - "hierarkey" - ]; + pythonImportsCheck = [ "hierarkey" ]; nativeCheckInputs = [ django-extensions @@ -46,9 +41,7 @@ buildPythonPackage rec { DJANGO_SETTINGS_MODULE = "tests.settings"; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; meta = with lib; { description = "Flexible and powerful hierarchical key-value store for your Django models"; diff --git a/pkgs/development/python-modules/django-hijack/default.nix b/pkgs/development/python-modules/django-hijack/default.nix index 427a8e231139..8ca641ad75e5 100644 --- a/pkgs/development/python-modules/django-hijack/default.nix +++ b/pkgs/development/python-modules/django-hijack/default.nix @@ -1,21 +1,22 @@ -{ lib -, fetchFromGitHub -, fetchNpmDeps -, buildPythonPackage -, nix-update-script +{ + lib, + fetchFromGitHub, + fetchNpmDeps, + buildPythonPackage, + nix-update-script, -# build-system -, gettext -, nodejs -, npmHooks -, setuptools-scm + # build-system + gettext, + nodejs, + npmHooks, + setuptools-scm, -# dependencies -, django + # dependencies + django, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; nativeCheckInputs = [ pytestCheckHook @@ -62,8 +61,10 @@ buildPythonPackage rec { env.DJANGO_SETTINGS_MODULE = "hijack.tests.test_app.settings"; pytestFlagsArray = [ - "--pyargs" "hijack" - "-W" "ignore::DeprecationWarning" + "--pyargs" + "hijack" + "-W" + "ignore::DeprecationWarning" ]; # needed for npmDeps update diff --git a/pkgs/development/python-modules/django-i18nfield/default.nix b/pkgs/development/python-modules/django-i18nfield/default.nix index 62d0770a693a..0e9d10971293 100644 --- a/pkgs/development/python-modules/django-i18nfield/default.nix +++ b/pkgs/development/python-modules/django-i18nfield/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# tests -, djangorestframework -, html5lib -, lxml -, pytest-django -, pytestCheckHook -, pyyaml + # tests + djangorestframework, + html5lib, + lxml, + pytest-django, + pytestCheckHook, + pyyaml, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/django-ipware/default.nix b/pkgs/development/python-modules/django-ipware/default.nix index 1f5c23aa1a31..148620f78e2e 100644 --- a/pkgs/development/python-modules/django-ipware/default.nix +++ b/pkgs/development/python-modules/django-ipware/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-jinja2/default.nix b/pkgs/development/python-modules/django-jinja2/default.nix index 77d50b65ce6f..69168c6e8057 100644 --- a/pkgs/development/python-modules/django-jinja2/default.nix +++ b/pkgs/development/python-modules/django-jinja2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, django -, jinja2 -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + django, + jinja2, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-jquery-js/default.nix b/pkgs/development/python-modules/django-jquery-js/default.nix index 2487dc61e0fc..ed2441f31282 100644 --- a/pkgs/development/python-modules/django-jquery-js/default.nix +++ b/pkgs/development/python-modules/django-jquery-js/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromBitbucket -, django +{ + lib, + buildPythonPackage, + fetchFromBitbucket, + django, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-TzMo31jFhcvlrmq2TJgQyds9n8eATaChnyhnQ7bwdzs="; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; - pythonImportsCheck = [ - "jquery" - ]; + pythonImportsCheck = [ "jquery" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/django-js-asset/default.nix b/pkgs/development/python-modules/django-js-asset/default.nix index 54c4c4b90eb4..7b1390ffbcbf 100644 --- a/pkgs/development/python-modules/django-js-asset/default.nix +++ b/pkgs/development/python-modules/django-js-asset/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, django -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + django, + python, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-qAkE5ubzfTNO1LuMQXMW2Sot1cn/bhuXlWa/J/wD5SI="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; - pythonImportsCheck = [ - "js_asset" - ]; + pythonImportsCheck = [ "js_asset" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-js-reverse/default.nix b/pkgs/development/python-modules/django-js-reverse/default.nix index a30330fcd9e4..9fedef235c11 100644 --- a/pkgs/development/python-modules/django-js-reverse/default.nix +++ b/pkgs/development/python-modules/django-js-reverse/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchpatch -, fetchFromGitHub -, python -, django -, packaging -, nodejs -, js2py -, six +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchpatch, + fetchFromGitHub, + python, + django, + packaging, + nodejs, + js2py, + six, }: buildPythonPackage rec { @@ -23,11 +24,7 @@ buildPythonPackage rec { hash = "sha256-i78UsxVwxyDAc8LrOVEXLG0tdidoQhvUx7GvPDaH0KY="; }; - propagatedBuildInputs = [ - django - ] ++ lib.optionals (pythonAtLeast "3.7") [ - packaging - ]; + propagatedBuildInputs = [ django ] ++ lib.optionals (pythonAtLeast "3.7") [ packaging ]; nativeCheckInputs = [ nodejs diff --git a/pkgs/development/python-modules/django-leaflet/default.nix b/pkgs/development/python-modules/django-leaflet/default.nix index aeb37f5aa99a..f39a19584440 100644 --- a/pkgs/development/python-modules/django-leaflet/default.nix +++ b/pkgs/development/python-modules/django-leaflet/default.nix @@ -1,8 +1,9 @@ -{ pkgs -, buildPythonPackage -, django -, fetchPypi -, pythonOlder +{ + pkgs, + buildPythonPackage, + django, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-ECtocPJHYR1DsFLeVMVdtlia4UNOJyNMsU1CrX1aVsQ="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # The tests seem to be impure. # They are throwing a error about unset configs: diff --git a/pkgs/development/python-modules/django-libsass/default.nix b/pkgs/development/python-modules/django-libsass/default.nix index 181abfafd148..ada5f9e496f2 100644 --- a/pkgs/development/python-modules/django-libsass/default.nix +++ b/pkgs/development/python-modules/django-libsass/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# dependencies -, django-compressor -, libsass + # dependencies + django-compressor, + libsass, -# tests -, django -, python + # tests + django, + python, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { libsass ]; - nativeCheckInputs = [ - django - ]; + nativeCheckInputs = [ django ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-localflavor/default.nix b/pkgs/development/python-modules/django-localflavor/default.nix index 5f63532ad96e..0a2575d87a36 100644 --- a/pkgs/development/python-modules/django-localflavor/default.nix +++ b/pkgs/development/python-modules/django-localflavor/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# bring your own -, django + # bring your own + django, -# propagates -, python-stdnum + # propagates + python-stdnum, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-UWp3ei1VlEsEfjbJIE+MpffSzYF4X1HEQw+z+5kZoP0="; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; - propagatedBuildInputs = [ - python-stdnum - ]; + propagatedBuildInputs = [ python-stdnum ]; pythonImportsCheck = [ # samples diff --git a/pkgs/development/python-modules/django-logentry-admin/default.nix b/pkgs/development/python-modules/django-logentry-admin/default.nix index af208427a63a..8a8f7a8effe9 100644 --- a/pkgs/development/python-modules/django-logentry-admin/default.nix +++ b/pkgs/development/python-modules/django-logentry-admin/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchFromGitHub, buildPythonPackage, django, pytest, pytest-django }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + django, + pytest, + pytest-django, +}: buildPythonPackage rec { pname = "django-logentry-admin"; @@ -12,7 +19,10 @@ buildPythonPackage rec { sha256 = "1bndxgvisw8kk52zfdifvly6dl4833wqilxf77pg473172yaf5gq"; }; - nativeCheckInputs = [ pytest pytest-django ]; + nativeCheckInputs = [ + pytest + pytest-django + ]; checkPhase = '' rm -r logentry_admin __init__.py pytest @@ -27,4 +37,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ mrmebelman ]; }; } - diff --git a/pkgs/development/python-modules/django-login-required-middleware/default.nix b/pkgs/development/python-modules/django-login-required-middleware/default.nix index b288e7929059..7dbbbcd9a411 100644 --- a/pkgs/development/python-modules/django-login-required-middleware/default.nix +++ b/pkgs/development/python-modules/django-login-required-middleware/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, django -, djangorestframework -, fetchFromGitHub -, python -, setuptools-scm +{ + lib, + buildPythonPackage, + django, + djangorestframework, + fetchFromGitHub, + python, + setuptools-scm, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-WFQ/JvKh6gkUxPV27QBd2TzwFS8hfQGmcTInTnmh6iA="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; - checkInputs = [ - djangorestframework - ]; + checkInputs = [ djangorestframework ]; - pythonImportsCheck = [ - "login_required" - ]; + pythonImportsCheck = [ "login_required" ]; checkPhase = '' ${python.interpreter} -m django test --settings tests.settings diff --git a/pkgs/development/python-modules/django-mailman3/default.nix b/pkgs/development/python-modules/django-mailman3/default.nix index 094ca8a6d91d..d139e4666842 100644 --- a/pkgs/development/python-modules/django-mailman3/default.nix +++ b/pkgs/development/python-modules/django-mailman3/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, pdm-backend + # build-system + pdm-backend, -# dependencies -, django-gravatar2 -, django-allauth -, mailmanclient -, pytz + # dependencies + django-gravatar2, + django-allauth, + mailmanclient, + pytz, -# tests -, django -, pytest-django -, pytestCheckHook -, nixosTests + # tests + django, + pytest-django, + pytestCheckHook, + nixosTests, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-MnQlT5ElNnStLUKyOXnI7ZDDaBwfp+h9tbOC+cwB0es="; }; - build-system = [ - pdm-backend - ]; + build-system = [ pdm-backend ]; dependencies = [ django-allauth @@ -50,11 +49,11 @@ buildPythonPackage rec { export DJANGO_SETTINGS_MODULE=django_mailman3.tests.settings_test ''; - pythonImportsCheck = [ - "django_mailman3" - ]; + pythonImportsCheck = [ "django_mailman3" ]; - passthru.tests = { inherit (nixosTests) mailman; }; + passthru.tests = { + inherit (nixosTests) mailman; + }; meta = with lib; { description = "Django library for Mailman UIs"; diff --git a/pkgs/development/python-modules/django-maintenance-mode/default.nix b/pkgs/development/python-modules/django-maintenance-mode/default.nix index 6b0dbb8d3b9d..8e278b607ae2 100644 --- a/pkgs/development/python-modules/django-maintenance-mode/default.nix +++ b/pkgs/development/python-modules/django-maintenance-mode/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, python -, python-fsutil -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + python, + python-fsutil, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-rZo0yru+y5TkdULBQDMGAVb494PSLtbnNX/7cuphKNk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ django @@ -39,9 +38,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "maintenance_mode" - ]; + pythonImportsCheck = [ "maintenance_mode" ]; meta = with lib; { description = "Shows a 503 error page when maintenance-mode is on"; diff --git a/pkgs/development/python-modules/django-markdownx/default.nix b/pkgs/development/python-modules/django-markdownx/default.nix index e6275ee50441..a40aa21c5915 100644 --- a/pkgs/development/python-modules/django-markdownx/default.nix +++ b/pkgs/development/python-modules/django-markdownx/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, markdown -, pillow -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + markdown, + pillow, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-FZPUlogVd3FMGeH1vfKHA3tXVps0ET+UCQJflpiV2lE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ django @@ -35,9 +34,7 @@ buildPythonPackage rec { # tests only executeable in vagrant doCheck = false; - pythonImportsCheck = [ - "markdownx" - ]; + pythonImportsCheck = [ "markdownx" ]; meta = with lib; { description = "Comprehensive Markdown plugin built for Django"; diff --git a/pkgs/development/python-modules/django-markup/default.nix b/pkgs/development/python-modules/django-markup/default.nix index ed33d0937236..c67cab8ad47a 100644 --- a/pkgs/development/python-modules/django-markup/default.nix +++ b/pkgs/development/python-modules/django-markup/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, django +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + django, -# optionals -, bleach -, docutils -, markdown -, pygments -, python-creole -, smartypants -, textile + # optionals + bleach, + docutils, + markdown, + pygments, + python-creole, + smartypants, + textile, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { sed -i "/--cov/d" pyproject.toml ''; - buildInputs = [ - django - ]; + buildInputs = [ django ]; passthru.optional-dependencies = { all_filter_dependencies = [ @@ -52,9 +51,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "django_markup" - ]; + pythonImportsCheck = [ "django_markup" ]; nativeCheckInputs = [ pytest-django diff --git a/pkgs/development/python-modules/django-mdeditor/default.nix b/pkgs/development/python-modules/django-mdeditor/default.nix index dc58e3cd665d..96b5c93bae2d 100644 --- a/pkgs/development/python-modules/django-mdeditor/default.nix +++ b/pkgs/development/python-modules/django-mdeditor/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, }: let version = "0.1.20"; diff --git a/pkgs/development/python-modules/django-model-utils/default.nix b/pkgs/development/python-modules/django-model-utils/default.nix index 38d03dca2010..14b53943eb90 100644 --- a/pkgs/development/python-modules/django-model-utils/default.nix +++ b/pkgs/development/python-modules/django-model-utils/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-GaBTCrEwEkJyVeY5YVptPioYcmivyQtBKjs+TgC9IqA="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; - dependencies = [ - django - ]; + dependencies = [ django ]; # Test requires postgres database doCheck = false; - pythonImportsCheck = [ - "model_utils" - ]; + pythonImportsCheck = [ "model_utils" ]; meta = with lib; { homepage = "https://github.com/jazzband/django-model-utils"; diff --git a/pkgs/development/python-modules/django-modelcluster/default.nix b/pkgs/development/python-modules/django-modelcluster/default.nix index 6d8776a9528f..a7efa70261fb 100644 --- a/pkgs/development/python-modules/django-modelcluster/default.nix +++ b/pkgs/development/python-modules/django-modelcluster/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# dependencies -, django -, pytz + # dependencies + django, + pytz, -# optionals -, django-taggit + # optionals + django-taggit, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytz ]; - passthru.optional-dependencies.taggit = [ - django-taggit - ]; + passthru.optional-dependencies.taggit = [ django-taggit ]; env.DJANGO_SETTINGS_MODULE = "tests.settings"; @@ -56,5 +55,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ desiderius ]; }; - } diff --git a/pkgs/development/python-modules/django-modeltranslation/default.nix b/pkgs/development/python-modules/django-modeltranslation/default.nix index f57dc25640e0..3f7fd5abd6d1 100644 --- a/pkgs/development/python-modules/django-modeltranslation/default.nix +++ b/pkgs/development/python-modules/django-modeltranslation/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, django -, pytestCheckHook -, pytest-django -, parameterized +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + django, + pytestCheckHook, + pytest-django, + parameterized, }: let # 0.18.12 was yanked from PyPI, it refers to this issue: @@ -35,7 +36,11 @@ buildPythonPackage { propagatedBuildInputs = [ django ]; - nativeCheckInputs = [ pytestCheckHook pytest-django parameterized ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-django + parameterized + ]; meta = with lib; { description = "Translates Django models using a registration approach"; diff --git a/pkgs/development/python-modules/django-mptt/default.nix b/pkgs/development/python-modules/django-mptt/default.nix index 53dac2a781f4..419bb9c8eebc 100644 --- a/pkgs/development/python-modules/django-mptt/default.nix +++ b/pkgs/development/python-modules/django-mptt/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-js-asset -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-js-asset, + python, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { django-js-asset ]; - pythonImportsCheck = [ - "mptt" - ]; + pythonImportsCheck = [ "mptt" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-multiselectfield/default.nix b/pkgs/development/python-modules/django-multiselectfield/default.nix index 6864d0c8f9f1..9e7da31291a7 100644 --- a/pkgs/development/python-modules/django-multiselectfield/default.nix +++ b/pkgs/development/python-modules/django-multiselectfield/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django +{ + lib, + buildPythonPackage, + fetchPypi, + django, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-mysql/default.nix b/pkgs/development/python-modules/django-mysql/default.nix index a363bad3b00c..9cb828f9b247 100644 --- a/pkgs/development/python-modules/django-mysql/default.nix +++ b/pkgs/development/python-modules/django-mysql/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, django + # dependencies + django, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-hIvkLLv9R23u+JC6t/zwbMvmgLMstYp0ytuSqNiohJg="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - django - ]; + dependencies = [ django ]; doCheck = false; # requires mysql/mariadb server @@ -42,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "django_mysql" - ]; + pythonImportsCheck = [ "django_mysql" ]; meta = with lib; { changelog = "https://github.com/adamchainz/django-mysql/blob/${version}/docs/changelog.rst"; diff --git a/pkgs/development/python-modules/django-ninja/default.nix b/pkgs/development/python-modules/django-ninja/default.nix index a39fc1742903..cc6d7ce15388 100644 --- a/pkgs/development/python-modules/django-ninja/default.nix +++ b/pkgs/development/python-modules/django-ninja/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, flit-core -, psycopg2 -, pydantic -, pytest-asyncio -, pytest-django -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + flit-core, + psycopg2, + pydantic, + pytest-asyncio, + pytest-django, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,7 +26,10 @@ buildPythonPackage rec { hash = "sha256-pvpYDuUZi0Gr5RbBWc91LzgmRLhihrhsKaD/AWN5+Bo="; }; - propagatedBuildInputs = [ django pydantic ]; + propagatedBuildInputs = [ + django + pydantic + ]; nativeBuildInputs = [ flit-core ]; diff --git a/pkgs/development/python-modules/django-nose/default.nix b/pkgs/development/python-modules/django-nose/default.nix index 86aa7b3a4e4a..2f3d1da6fdf6 100644 --- a/pkgs/development/python-modules/django-nose/default.nix +++ b/pkgs/development/python-modules/django-nose/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, django +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + django, }: buildPythonPackage rec { @@ -18,12 +19,14 @@ buildPythonPackage rec { # vast dependency list doCheck = false; - propagatedBuildInputs = [ django nose ]; + propagatedBuildInputs = [ + django + nose + ]; meta = with lib; { description = "Provides all the goodness of nose in your Django tests"; homepage = "https://github.com/django-nose/django-nose"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/django-oauth-toolkit/default.nix b/pkgs/development/python-modules/django-oauth-toolkit/default.nix index ce03a1330f5f..01b81de8aa24 100644 --- a/pkgs/development/python-modules/django-oauth-toolkit/default.nix +++ b/pkgs/development/python-modules/django-oauth-toolkit/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, -# propagates -, django -, jwcrypto -, requests -, oauthlib + # propagates + django, + jwcrypto, + requests, + oauthlib, -# tests -, djangorestframework -, pytest-django -, pytest-xdist -, pytest-mock -, pytestCheckHook + # tests + djangorestframework, + pytest-django, + pytest-xdist, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { ]; nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "django" - ]; + pythonRelaxDeps = [ "django" ]; DJANGO_SETTINGS_MODULE = "tests.settings"; diff --git a/pkgs/development/python-modules/django-otp/default.nix b/pkgs/development/python-modules/django-otp/default.nix index dc73a461b793..67395fa588e8 100644 --- a/pkgs/development/python-modules/django-otp/default.nix +++ b/pkgs/development/python-modules/django-otp/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, django -, freezegun -, qrcode -, pytest -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + django, + freezegun, + qrcode, + pytest, + python, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-c0Yr41S1LFBzcDIK2etOP3rYcCPaThDs+XGiw4WP/ks="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ django @@ -47,13 +46,9 @@ buildPythonPackage rec { runHook postCheck ''; - pytestFlagsArray = [ - "src/django_otp/test.py" - ]; + pytestFlagsArray = [ "src/django_otp/test.py" ]; - pythonImportsCheck = [ - "django_otp" - ]; + pythonImportsCheck = [ "django_otp" ]; meta = with lib; { homepage = "https://github.com/django-otp/django-otp"; diff --git a/pkgs/development/python-modules/django-paintstore/default.nix b/pkgs/development/python-modules/django-paintstore/default.nix index edafdf164911..6d4dd2d36535 100644 --- a/pkgs/development/python-modules/django-paintstore/default.nix +++ b/pkgs/development/python-modules/django-paintstore/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "django-paintstore"; diff --git a/pkgs/development/python-modules/django-parler/default.nix b/pkgs/development/python-modules/django-parler/default.nix index 3afaa8ae262c..8f444bd88fb3 100644 --- a/pkgs/development/python-modules/django-parler/default.nix +++ b/pkgs/development/python-modules/django-parler/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, pytest -, pytest-django -, pythonOlder -, python +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + pytest, + pytest-django, + pythonOlder, + python, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-tRGifFPCXF3aa3PQWKw3tl1H1TY+lgcChUP1VdwG1cE="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-pattern-library/default.nix b/pkgs/development/python-modules/django-pattern-library/default.nix index 12a229ce9da8..79fb13d7fa18 100644 --- a/pkgs/development/python-modules/django-pattern-library/default.nix +++ b/pkgs/development/python-modules/django-pattern-library/default.nix @@ -1,20 +1,21 @@ -{ buildPythonPackage -, fetchFromGitHub -, fetchpatch -, lib +{ + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + lib, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, django -, markdown -, pyyaml + # dependencies + django, + markdown, + pyyaml, -# tests -, beautifulsoup4 -, pytestCheckHook -, pytest-django + # tests + beautifulsoup4, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-hrdJYVioY6y9D29DuKPMZjdWj92GcbHXANWiEHadimI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ django diff --git a/pkgs/development/python-modules/django-payments/default.nix b/pkgs/development/python-modules/django-payments/default.nix index d470bb57a2e5..da8d85d1a322 100644 --- a/pkgs/development/python-modules/django-payments/default.nix +++ b/pkgs/development/python-modules/django-payments/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, braintree -, cryptography -, django -, django-phonenumber-field -, fetchFromGitHub -, mercadopago -, pythonOlder -, requests -, setuptools-scm -, sphinx-rtd-theme -, stripe -, xmltodict +{ + lib, + buildPythonPackage, + braintree, + cryptography, + django, + django-phonenumber-field, + fetchFromGitHub, + mercadopago, + pythonOlder, + requests, + setuptools-scm, + sphinx-rtd-theme, + stripe, + xmltodict, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "django-phonenumber-field[phonenumberslite]" "django-phonenumber-field" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ django @@ -46,14 +45,20 @@ buildPythonPackage rec { # require internet connection doCheck = false; - pythonImportsCheck = [ - "payments" - ]; + pythonImportsCheck = [ "payments" ]; passthru.optional-dependencies = { - all = [ braintree /* suds-community */ mercadopago cryptography xmltodict stripe ]; + all = [ + braintree # suds-community + mercadopago + cryptography + xmltodict + stripe + ]; braintree = [ braintree ]; - cybersource = [ /* suds-community */ ]; + cybersource = [ + # suds-community + ]; docs = [ sphinx-rtd-theme ]; mercadopago = [ mercadopago ]; sagepay = [ cryptography ]; diff --git a/pkgs/development/python-modules/django-pglocks/default.nix b/pkgs/development/python-modules/django-pglocks/default.nix index dae4fd2ad0ec..4bea47219412 100644 --- a/pkgs/development/python-modules/django-pglocks/default.nix +++ b/pkgs/development/python-modules/django-pglocks/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, django, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + django, + six, +}: buildPythonPackage rec { pname = "django-pglocks"; @@ -17,7 +23,10 @@ buildPythonPackage rec { }; buildInputs = [ django ]; - propagatedBuildInputs = [ django six ]; + propagatedBuildInputs = [ + django + six + ]; # tests need a postgres database doCheck = false; diff --git a/pkgs/development/python-modules/django-phonenumber-field/default.nix b/pkgs/development/python-modules/django-phonenumber-field/default.nix index 6f952c9865a9..1d43f30bf3c3 100644 --- a/pkgs/development/python-modules/django-phonenumber-field/default.nix +++ b/pkgs/development/python-modules/django-phonenumber-field/default.nix @@ -1,13 +1,14 @@ -{ lib -, babel -, buildPythonPackage -, django -, djangorestframework -, fetchPypi -, phonenumbers -, python -, pythonOlder -, setuptools-scm +{ + lib, + babel, + buildPythonPackage, + django, + djangorestframework, + fetchPypi, + phonenumbers, + python, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-+c2z3ghfmcJJMoKTo7k9Tl+kQMDI47mesND1R0hil5c="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - django - ] ++ passthru.optional-dependencies.phonenumbers; + propagatedBuildInputs = [ django ] ++ passthru.optional-dependencies.phonenumbers; nativeCheckInputs = [ babel djangorestframework ]; - pythonImportsCheck = [ - "phonenumber_field" - ]; + pythonImportsCheck = [ "phonenumber_field" ]; checkPhase = '' ${python.interpreter} -m django test --settings tests.settings diff --git a/pkgs/development/python-modules/django-picklefield/default.nix b/pkgs/development/python-modules/django-picklefield/default.nix index b1dab2e73c91..fdd45ed5de82 100644 --- a/pkgs/development/python-modules/django-picklefield/default.nix +++ b/pkgs/development/python-modules/django-picklefield/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, django, pytest, pytest-django, python }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + pytest, + pytest-django, + python, +}: buildPythonPackage rec { pname = "django-picklefield"; diff --git a/pkgs/development/python-modules/django-polymorphic/default.nix b/pkgs/development/python-modules/django-polymorphic/default.nix index 4df2a1406ef7..9030630a784a 100644 --- a/pkgs/development/python-modules/django-polymorphic/default.nix +++ b/pkgs/development/python-modules/django-polymorphic/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, django, dj-database-url }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + django, + dj-database-url, +}: buildPythonPackage rec { pname = "django-polymorphic"; diff --git a/pkgs/development/python-modules/django-postgresql-netfields/default.nix b/pkgs/development/python-modules/django-postgresql-netfields/default.nix index 1f0600b68a84..e1282e8802d0 100644 --- a/pkgs/development/python-modules/django-postgresql-netfields/default.nix +++ b/pkgs/development/python-modules/django-postgresql-netfields/default.nix @@ -1,18 +1,19 @@ -{ stdenv -, lib -, buildPythonPackage -, django -, netaddr -, six -, fetchFromGitHub -, pythonOlder -, djangorestframework -# required for tests -, postgresql -, postgresqlTestHook -, psycopg2 -, pytestCheckHook -, pytest-django +{ + stdenv, + lib, + buildPythonPackage, + django, + netaddr, + six, + fetchFromGitHub, + pythonOlder, + djangorestframework, + # required for tests + postgresql, + postgresqlTestHook, + psycopg2, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-prometheus/default.nix b/pkgs/development/python-modules/django-prometheus/default.nix index 40bdf4e57ff7..e15174d56ae4 100644 --- a/pkgs/development/python-modules/django-prometheus/default.nix +++ b/pkgs/development/python-modules/django-prometheus/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, prometheus-client -, pytest-django -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + prometheus-client, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-JiLH+4mmNdb9BN81J5YFiMPna/3gaKUK6ARjmCa3fE8="; }; - patches = [ - ./drop-untestable-database-backends.patch - ]; + patches = [ ./drop-untestable-database-backends.patch ]; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner"' "" ''; - propagatedBuildInputs = [ - prometheus-client - ]; + propagatedBuildInputs = [ prometheus-client ]; - pythonImportsCheck = [ - "django_prometheus" - ]; + pythonImportsCheck = [ "django_prometheus" ]; nativeCheckInputs = [ pytest-django diff --git a/pkgs/development/python-modules/django-pwa/default.nix b/pkgs/development/python-modules/django-pwa/default.nix index 91a216f0ac5c..a0d4ba872c95 100644 --- a/pkgs/development/python-modules/django-pwa/default.nix +++ b/pkgs/development/python-modules/django-pwa/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, python -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + python, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { hash = "sha256-tP1+Jm9hdvN/ZliuVHN8tqy24/tOK1LUUiJv1xUqRrY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; - pyImportCheck = [ - "pwa" - ]; + pyImportCheck = [ "pwa" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-q/default.nix b/pkgs/development/python-modules/django-q/default.nix index 7ce4d4b6b7d9..4f06fba1afc7 100644 --- a/pkgs/development/python-modules/django-q/default.nix +++ b/pkgs/development/python-modules/django-q/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, arrow -, blessed -, buildPythonPackage -, croniter -, django -, django-picklefield -, django-redis -, fetchFromGitHub -, future -, pkgs -, poetry-core -, pytest-django -, pytest-mock -, pytestCheckHook -, pythonOlder -, redis -, setuptools +{ + lib, + stdenv, + arrow, + blessed, + buildPythonPackage, + croniter, + django, + django-picklefield, + django-redis, + fetchFromGitHub, + future, + pkgs, + poetry-core, + pytest-django, + pytest-mock, + pytestCheckHook, + pythonOlder, + redis, + setuptools, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # fixes empty version string # analog to https://github.com/NixOS/nixpkgs/pull/171200 - patches = [ - ./pep-621.patch - ]; + patches = [ ./pep-621.patch ]; nativeBuildInputs = [ poetry-core @@ -60,9 +59,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ django-redis.optional-dependencies.hiredis; - pythonImportsCheck = [ - "django_q" - ]; + pythonImportsCheck = [ "django_q" ]; preCheck = '' ${pkgs.redis}/bin/redis-server & diff --git a/pkgs/development/python-modules/django-ranged-response/default.nix b/pkgs/development/python-modules/django-ranged-response/default.nix index 35f4bb2a7e83..7932cf7da818 100644 --- a/pkgs/development/python-modules/django-ranged-response/default.nix +++ b/pkgs/development/python-modules/django-ranged-response/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, django }: +{ + lib, + fetchPypi, + buildPythonPackage, + django, +}: buildPythonPackage rec { pname = "django-ranged-response"; diff --git a/pkgs/development/python-modules/django-raster/default.nix b/pkgs/development/python-modules/django-raster/default.nix index d5a01cd195da..fc59c21893e7 100644 --- a/pkgs/development/python-modules/django-raster/default.nix +++ b/pkgs/development/python-modules/django-raster/default.nix @@ -1,6 +1,17 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, - numpy, django-colorful, pillow, psycopg2, - pyparsing, django, celery, boto3, importlib-metadata +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + numpy, + django-colorful, + pillow, + psycopg2, + pyparsing, + django, + celery, + boto3, + importlib-metadata, }: buildPythonPackage rec { @@ -18,8 +29,17 @@ buildPythonPackage rec { # Tests require a postgresql + postgis server doCheck = false; - propagatedBuildInputs = [ numpy django-colorful pillow psycopg2 - pyparsing django celery boto3 importlib-metadata ]; + propagatedBuildInputs = [ + numpy + django-colorful + pillow + psycopg2 + pyparsing + django + celery + boto3 + importlib-metadata + ]; meta = with lib; { description = "Basic raster data integration for Django"; diff --git a/pkgs/development/python-modules/django-redis/default.nix b/pkgs/development/python-modules/django-redis/default.nix index eeb845d09563..95996d0afa6a 100644 --- a/pkgs/development/python-modules/django-redis/default.nix +++ b/pkgs/development/python-modules/django-redis/default.nix @@ -1,21 +1,22 @@ -{ lib -, fetchFromGitHub -, pythonOlder -, buildPythonPackage -, setuptools +{ + lib, + fetchFromGitHub, + pythonOlder, + buildPythonPackage, + setuptools, -# propagated -, django -, hiredis -, lz4 -, msgpack -, redis + # propagated + django, + hiredis, + lz4, + msgpack, + redis, -# testing -, pkgs -, pytest-django -, pytest-mock -, pytestCheckHook + # testing + pkgs, + pytest-django, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { sed -i '/-cov/d' setup.cfg ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ django @@ -48,14 +47,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - hiredis = [ - redis - ] ++ redis.optional-dependencies.hiredis; + hiredis = [ redis ] ++ redis.optional-dependencies.hiredis; }; - pythonImportsCheck = [ - "django_redis" - ]; + pythonImportsCheck = [ "django_redis" ]; DJANGO_SETTINGS_MODULE = "tests.settings.sqlite"; diff --git a/pkgs/development/python-modules/django-rest-auth/default.nix b/pkgs/development/python-modules/django-rest-auth/default.nix index eb14a6a3c316..3757f96c672b 100644 --- a/pkgs/development/python-modules/django-rest-auth/default.nix +++ b/pkgs/development/python-modules/django-rest-auth/default.nix @@ -1,12 +1,13 @@ -{ lib - , buildPythonPackage -, fetchFromGitHub -, django -, django-allauth -, djangorestframework -, drf-jwt -, responses -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-allauth, + djangorestframework, + drf-jwt, + responses, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/django-rest-polymorphic/default.nix b/pkgs/development/python-modules/django-rest-polymorphic/default.nix index 5cf6f84ad554..843016194822 100644 --- a/pkgs/development/python-modules/django-rest-polymorphic/default.nix +++ b/pkgs/development/python-modules/django-rest-polymorphic/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-polymorphic -, djangorestframework -, pytest-django -, pytest-mock -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-polymorphic, + djangorestframework, + pytest-django, + pytest-mock, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -18,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "apirobot"; repo = "django-rest-polymorphic"; - # https://github.com/denisorehovsky/django-rest-polymorphic/issues/42 + # https://github.com/denisorehovsky/django-rest-polymorphic/issues/42 rev = "9d920eb91ef13144094426f9ebc0ca80247c0fe3"; hash = "sha256-k7Cl2QYkaGOZaTo8v5Wg9Wqh8x0WC5i9Sggqj8eeECY="; }; diff --git a/pkgs/development/python-modules/django-rest-registration/default.nix b/pkgs/development/python-modules/django-rest-registration/default.nix index 7c5f0b455c6d..eb6fcafac1d0 100644 --- a/pkgs/development/python-modules/django-rest-registration/default.nix +++ b/pkgs/development/python-modules/django-rest-registration/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, djangorestframework -, fetchFromGitHub -, pytest-django -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + django, + djangorestframework, + fetchFromGitHub, + pytest-django, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytest-django ]; - pythonImportsCheck = [ - "rest_registration" - ]; + pythonImportsCheck = [ "rest_registration" ]; disabledTests = [ # This test fails on Python 3.10 diff --git a/pkgs/development/python-modules/django-reversion/default.nix b/pkgs/development/python-modules/django-reversion/default.nix index 35d54194f07d..43921c13b025 100644 --- a/pkgs/development/python-modules/django-reversion/default.nix +++ b/pkgs/development/python-modules/django-reversion/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -13,25 +14,19 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; -src = fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-wEfMmanxukqubbicOsJDR41t6Y7Ipgxwc/zIddicXNs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # Tests assume the availability of a mysql/postgresql database doCheck = false; - pythonImportsCheck = [ - "reversion" - ]; + pythonImportsCheck = [ "reversion" ]; meta = with lib; { description = "An extension to the Django web framework that provides comprehensive version control facilities"; diff --git a/pkgs/development/python-modules/django-rosetta/default.nix b/pkgs/development/python-modules/django-rosetta/default.nix index d9337081ba3e..a2ae0c0b34ae 100644 --- a/pkgs/development/python-modules/django-rosetta/default.nix +++ b/pkgs/development/python-modules/django-rosetta/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, polib -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + polib, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # require internet connection doCheck = false; - pythonImportsCheck = [ - "rosetta" - ]; + pythonImportsCheck = [ "rosetta" ]; meta = with lib; { description = "Rosetta is a Django application that facilitates the translation process of your Django projects"; @@ -42,4 +41,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ derdennisop ]; }; } - diff --git a/pkgs/development/python-modules/django-rq/default.nix b/pkgs/development/python-modules/django-rq/default.nix index 4d4a63aeb624..3e37822ed5cc 100644 --- a/pkgs/development/python-modules/django-rq/default.nix +++ b/pkgs/development/python-modules/django-rq/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub -, django -, redis -, rq -, sentry-sdk +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, + django, + redis, + rq, + sentry-sdk, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { sentry-sdk ]; - pythonImportsCheck = [ - "django_rq" - ]; + pythonImportsCheck = [ "django_rq" ]; doCheck = false; # require redis-server diff --git a/pkgs/development/python-modules/django-scheduler/default.nix b/pkgs/development/python-modules/django-scheduler/default.nix index d8db8c596173..78177e56e46c 100644 --- a/pkgs/development/python-modules/django-scheduler/default.nix +++ b/pkgs/development/python-modules/django-scheduler/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, icalendar -, pytest -, pytest-django -, python -, python-dateutil -, pythonOlder -, pytz +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + icalendar, + pytest, + pytest-django, + python, + python-dateutil, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "schedule" - ]; + pythonImportsCheck = [ "schedule" ]; meta = with lib; { description = "A calendar app for Django"; diff --git a/pkgs/development/python-modules/django-scim2/default.nix b/pkgs/development/python-modules/django-scim2/default.nix index d4eab102d719..9b8276af2dc3 100644 --- a/pkgs/development/python-modules/django-scim2/default.nix +++ b/pkgs/development/python-modules/django-scim2/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, django -, scim2-filter-parser + # propagates + django, + scim2-filter-parser, -# tests -, mock -, pytest-django -, pytestCheckHook + # tests + mock, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,18 +35,14 @@ buildPythonPackage rec { --replace "poetry.masonry.api" "poetry.core.masonry.api" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ django scim2-filter-parser ]; - pythonImportsCheck = [ - "django_scim" - ]; + pythonImportsCheck = [ "django_scim" ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/django-scopes/default.nix b/pkgs/development/python-modules/django-scopes/default.nix index df4cd3599fac..108d95a81534 100644 --- a/pkgs/development/python-modules/django-scopes/default.nix +++ b/pkgs/development/python-modules/django-scopes/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, pytestCheckHook -, pytest-django +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; nativeCheckInputs = [ pytest-django diff --git a/pkgs/development/python-modules/django-sekizai/default.nix b/pkgs/development/python-modules/django-sekizai/default.nix index 5c040ee026ba..0cfe0fae0222 100644 --- a/pkgs/development/python-modules/django-sekizai/default.nix +++ b/pkgs/development/python-modules/django-sekizai/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, django-classy-tags -, pytestCheckHook -, pytest-django +{ + lib, + fetchPypi, + buildPythonPackage, + django-classy-tags, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "sha256-Kso2y64LXAzv7ZVlQW7EQjNXZ/sxRb/xHlhiL8ZTza0="; }; - propagatedBuildInputs = [ - django-classy-tags - ]; + propagatedBuildInputs = [ django-classy-tags ]; checkInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/django-sesame/default.nix b/pkgs/development/python-modules/django-sesame/default.nix index a8953369304a..71ee75a9f6b9 100644 --- a/pkgs/development/python-modules/django-sesame/default.nix +++ b/pkgs/development/python-modules/django-sesame/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, poetry-core -, python -, pythonOlder -, ua-parser +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + poetry-core, + python, + pythonOlder, + ua-parser, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-8jbYhD/PfPnutJZonmdrqLIQdXiUHF12w0M9tuyyDz0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ django ua-parser ]; - pythonImportsCheck = [ - "sesame" - ]; + pythonImportsCheck = [ "sesame" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-shortuuidfield/default.nix b/pkgs/development/python-modules/django-shortuuidfield/default.nix index dd999963a115..fe2580e20503 100644 --- a/pkgs/development/python-modules/django-shortuuidfield/default.nix +++ b/pkgs/development/python-modules/django-shortuuidfield/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, shortuuid -, six +{ + lib, + buildPythonPackage, + django, + fetchPypi, + shortuuid, + six, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "shortuuidfield" - ]; + pythonImportsCheck = [ "shortuuidfield" ]; meta = with lib; { description = "Short UUIDField for Django. Good for use in urls & file names"; diff --git a/pkgs/development/python-modules/django-silk/default.nix b/pkgs/development/python-modules/django-silk/default.nix index 5cb38385284c..a5cbf8e8aa2a 100644 --- a/pkgs/development/python-modules/django-silk/default.nix +++ b/pkgs/development/python-modules/django-silk/default.nix @@ -1,26 +1,27 @@ -{ lib -, autopep8 -, buildPythonPackage -, django -, factory-boy -, fetchFromGitHub -, fetchpatch -, freezegun -, gprof2dot -, jinja2 -, mock -, networkx -, pillow -, pydot -, pygments -, python -, python-dateutil -, pythonOlder -, pytz -, requests -, setuptools-scm -, simplejson -, sqlparse +{ + lib, + autopep8, + buildPythonPackage, + django, + factory-boy, + fetchFromGitHub, + fetchpatch, + freezegun, + gprof2dot, + jinja2, + mock, + networkx, + pillow, + pydot, + pygments, + python, + python-dateutil, + pythonOlder, + pytz, + requests, + setuptools-scm, + simplejson, + sqlparse, }: buildPythonPackage rec { @@ -47,13 +48,9 @@ buildPythonPackage rec { --replace 'use_scm_version=True' 'version="${version}"' ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - mock - ]; + buildInputs = [ mock ]; propagatedBuildInputs = [ autopep8 @@ -76,9 +73,7 @@ buildPythonPackage rec { factory-boy ]; - pythonImportsCheck = [ - "silk" - ]; + pythonImportsCheck = [ "silk" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-simple-captcha/default.nix b/pkgs/development/python-modules/django-simple-captcha/default.nix index 11c3e862804a..2e6d9b8727f3 100644 --- a/pkgs/development/python-modules/django-simple-captcha/default.nix +++ b/pkgs/development/python-modules/django-simple-captcha/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, testfixtures -, django -, django-ranged-response -, pillow -, withTTS ? true -, flite +{ + lib, + buildPythonPackage, + fetchPypi, + python, + testfixtures, + django, + django-ranged-response, + pillow, + withTTS ? true, + flite, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-0YhRbTJvrdLVrQduuJZJ1VwCyrr+P9zCFUrBjp9tS5c="; }; - nativeCheckInputs = [ - testfixtures - ]; + nativeCheckInputs = [ testfixtures ]; checkPhase = '' cd testproject @@ -40,6 +39,9 @@ buildPythonPackage rec { homepage = "https://github.com/mbi/django-simple-captcha"; changelog = "https://github.com/mbi/django-simple-captcha/blob/v${version}/CHANGES"; license = licenses.mit; - maintainers = with maintainers; [ mrmebelman schmittlauch ]; + maintainers = with maintainers; [ + mrmebelman + schmittlauch + ]; }; } diff --git a/pkgs/development/python-modules/django-simple-history/default.nix b/pkgs/development/python-modules/django-simple-history/default.nix index 4c31b8725763..3714914bc95a 100644 --- a/pkgs/development/python-modules/django-simple-history/default.nix +++ b/pkgs/development/python-modules/django-simple-history/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, pytest-django -, python -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + pytest-django, + python, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -22,21 +23,15 @@ buildPythonPackage rec { hash = "sha256-BW/F+RBf1KvwGRY9IK00+n69Jtx/ndEuvpHSi8/odSE="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; checkPhase = '' ${python.interpreter} runtests.py ''; - pythonImportsCheck = [ - "simple_history" - ]; + pythonImportsCheck = [ "simple_history" ]; meta = with lib; { description = "django-simple-history stores Django model state on every create/update/delete"; diff --git a/pkgs/development/python-modules/django-sites/default.nix b/pkgs/development/python-modules/django-sites/default.nix index 52c78b8f5e3d..e83ab1239f45 100644 --- a/pkgs/development/python-modules/django-sites/default.nix +++ b/pkgs/development/python-modules/django-sites/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-jinja -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-jinja, + python, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-MQtQC+9DyS1ICXXovbqPpkKIQ5wpuJDgq3Lcd/1kORU="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; - nativeCheckInputs = [ - django-jinja - ]; + nativeCheckInputs = [ django-jinja ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/django-sr/default.nix b/pkgs/development/python-modules/django-sr/default.nix index d14935d414bd..9d051f30695d 100644 --- a/pkgs/development/python-modules/django-sr/default.nix +++ b/pkgs/development/python-modules/django-sr/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, django, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + django, + nose, +}: buildPythonPackage rec { pname = "django-sr"; @@ -16,6 +22,9 @@ buildPythonPackage rec { sha256 = "0d3yqppi1q3crcn9nxx58wzm4yw61d5m7435g6rb9wcamr9bi1im"; }; - buildInputs = [ django nose ]; + buildInputs = [ + django + nose + ]; propagatedBuildInputs = [ django ]; } diff --git a/pkgs/development/python-modules/django-statici18n/default.nix b/pkgs/development/python-modules/django-statici18n/default.nix index 5638443a2eea..88f4994c91b6 100644 --- a/pkgs/development/python-modules/django-statici18n/default.nix +++ b/pkgs/development/python-modules/django-statici18n/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, django -, django-appconf + # dependencies + django, + django-appconf, -# tests -, pytest-django -, pytestCheckHook + # tests + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { hash = "sha256-n6HqHcXvz2ihwN+gJr5P+/Yt4RpuOu2yAjo9fiNZB54="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ django django-appconf ]; - pythonImportsCheck = [ - "statici18n" - ]; + pythonImportsCheck = [ "statici18n" ]; env.DJANGO_SETTINGS_MODULE = "tests.test_project.project.settings"; @@ -50,6 +47,9 @@ buildPythonPackage rec { description = "Helper for generating Javascript catalog to static files"; homepage = "https://github.com/zyegfryed/django-statici18n"; license = licenses.bsd3; - maintainers = with maintainers; [ greizgh schmittlauch ]; + maintainers = with maintainers; [ + greizgh + schmittlauch + ]; }; } diff --git a/pkgs/development/python-modules/django-storages/default.nix b/pkgs/development/python-modules/django-storages/default.nix index b835a6fb0766..f7524810f4a1 100644 --- a/pkgs/development/python-modules/django-storages/default.nix +++ b/pkgs/development/python-modules/django-storages/default.nix @@ -1,19 +1,20 @@ -{ lib -, azure-storage-blob -, boto3 -, buildPythonPackage -, cryptography -, django -, dropbox -, fetchFromGitHub -, google-cloud-storage -, libcloud -, moto -, paramiko -, pytestCheckHook -, pythonOlder -, rsa -, setuptools +{ + lib, + azure-storage-blob, + boto3, + buildPythonPackage, + cryptography, + django, + dropbox, + fetchFromGitHub, + google-cloud-storage, + libcloud, + moto, + paramiko, + pytestCheckHook, + pythonOlder, + rsa, + setuptools, }: buildPythonPackage rec { @@ -30,36 +31,18 @@ buildPythonPackage rec { hash = "sha256-V0uFZvnBi0B31b/j/u3Co6dd9XcdVefiSkl3XmCTJG4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; passthru.optional-dependencies = { - azure = [ - azure-storage-blob - ]; - boto3 = [ - boto3 - ]; - dropbox = [ - dropbox - ]; - google = [ - google-cloud-storage - ]; - libcloud = [ - libcloud - ]; - s3 = [ - boto3 - ]; - sftp = [ - paramiko - ]; + azure = [ azure-storage-blob ]; + boto3 = [ boto3 ]; + dropbox = [ dropbox ]; + google = [ google-cloud-storage ]; + libcloud = [ libcloud ]; + s3 = [ boto3 ]; + sftp = [ paramiko ]; }; nativeCheckInputs = [ @@ -69,9 +52,7 @@ buildPythonPackage rec { rsa ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "storages" - ]; + pythonImportsCheck = [ "storages" ]; env.DJANGO_SETTINGS_MODULE = "tests.settings"; diff --git a/pkgs/development/python-modules/django-stubs-ext/default.nix b/pkgs/development/python-modules/django-stubs-ext/default.nix index e863e3ebc47b..cfedb113a1c8 100644 --- a/pkgs/development/python-modules/django-stubs-ext/default.nix +++ b/pkgs/development/python-modules/django-stubs-ext/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + django, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-UZNCrAhJzaFVl0bJpWPwP/mfY2sOvnwUt16BagDf3cM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ django typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "django_stubs_ext" - ]; + pythonImportsCheck = [ "django_stubs_ext" ]; meta = with lib; { description = "Extensions and monkey-patching for django-stubs"; diff --git a/pkgs/development/python-modules/django-stubs/default.nix b/pkgs/development/python-modules/django-stubs/default.nix index a0b8d8128a76..dfae4891d542 100644 --- a/pkgs/development/python-modules/django-stubs/default.nix +++ b/pkgs/development/python-modules/django-stubs/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, django -, django-stubs-ext -, fetchPypi -, mypy -, pytestCheckHook -, pythonOlder -, setuptools -, tomli -, types-pytz -, types-pyyaml -, typing-extensions +{ + lib, + buildPythonPackage, + django, + django-stubs-ext, + fetchPypi, + mypy, + pytestCheckHook, + pythonOlder, + setuptools, + tomli, + types-pytz, + types-pyyaml, + typing-extensions, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-jM0v9O5a3yK547expRbS4cIZHp2U5nLDXMK8PdYeD2s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ django @@ -35,23 +34,17 @@ buildPythonPackage rec { types-pytz types-pyyaml typing-extensions - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; passthru.optional-dependencies = { - compatible-mypy = [ - mypy - ]; + compatible-mypy = [ mypy ]; }; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "django-stubs" - ]; + pythonImportsCheck = [ "django-stubs" ]; meta = with lib; { description = "PEP-484 stubs for Django"; diff --git a/pkgs/development/python-modules/django-tables2/default.nix b/pkgs/development/python-modules/django-tables2/default.nix index a6a873bee00e..cb1f2307d527 100644 --- a/pkgs/development/python-modules/django-tables2/default.nix +++ b/pkgs/development/python-modules/django-tables2/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, django -, tablib + # dependencies + django, + tablib, -# tests -, lxml -, openpyxl -, psycopg2 -, pytz -, pyyaml -, pytest-django -, pytestCheckHook + # tests + lxml, + openpyxl, + psycopg2, + pytz, + pyyaml, + pytest-django, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,20 +35,12 @@ buildPythonPackage rec { hash = "sha256-VB7xmcBncTUYllzKS4o7G7u+KoivMiiEQGZ4x+Rnces="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; passthru.optional-dependencies = { - tablib = [ - tablib - ] - ++ tablib.optional-dependencies.xls - ++ tablib.optional-dependencies.yaml; + tablib = [ tablib ] ++ tablib.optional-dependencies.xls ++ tablib.optional-dependencies.yaml; }; env.DJANGO_SETTINGS_MODULE = "tests.app.settings"; diff --git a/pkgs/development/python-modules/django-tagging/default.nix b/pkgs/development/python-modules/django-tagging/default.nix index ba62d65825e3..9d18f03fe4e7 100644 --- a/pkgs/development/python-modules/django-tagging/default.nix +++ b/pkgs/development/python-modules/django-tagging/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, django }: +{ + buildPythonPackage, + fetchPypi, + django, +}: buildPythonPackage rec { pname = "django-tagging"; diff --git a/pkgs/development/python-modules/django-taggit/default.nix b/pkgs/development/python-modules/django-taggit/default.nix index eb1f4a994e12..20f65e36f465 100644 --- a/pkgs/development/python-modules/django-taggit/default.nix +++ b/pkgs/development/python-modules/django-taggit/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, django -, djangorestframework -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + django, + djangorestframework, + python, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-7c19seDzXDBOCCovYx3awuFu9SlgKVJOt5KvdDDKtMw="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; - pythonImportsCheck = [ - "taggit" - ]; + pythonImportsCheck = [ "taggit" ]; - nativeCheckInputs = [ - djangorestframework - ]; + nativeCheckInputs = [ djangorestframework ]; checkPhase = '' # prove we're running tests against installed package, not build dir diff --git a/pkgs/development/python-modules/django-timezone-field/default.nix b/pkgs/development/python-modules/django-timezone-field/default.nix index cfca863be096..c111c4aff6d4 100644 --- a/pkgs/development/python-modules/django-timezone-field/default.nix +++ b/pkgs/development/python-modules/django-timezone-field/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, django -, djangorestframework -, pytz -, pytest -, pytest-lazy-fixture -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + django, + djangorestframework, + pytz, + pytest, + pytest-lazy-fixture, + python, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-FAYO8OEE/h4rsbC4Oc57ylWV7TqQ6DOd6/2M+mb/AsM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ django @@ -34,9 +33,7 @@ buildPythonPackage rec { pytz ]; - pythonImportsCheck = [ - "timezone_field" - ]; + pythonImportsCheck = [ "timezone_field" ]; # Uses pytest.lazy_fixture directly which is broken in pytest-lazy-fixture # https://github.com/TvoroG/pytest-lazy-fixture/issues/22 diff --git a/pkgs/development/python-modules/django-treebeard/default.nix b/pkgs/development/python-modules/django-treebeard/default.nix index 6b26ece7dd50..fa687c99549f 100644 --- a/pkgs/development/python-modules/django-treebeard/default.nix +++ b/pkgs/development/python-modules/django-treebeard/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, pytest-django -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + django, + fetchPypi, + pytest-django, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-hG5GKQS0NxVfduBJB7pOSEgHFoVfiLiY30Eivc+9bpg="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; nativeCheckInputs = [ pytest-django pytestCheckHook ]; - pythonImportsCheck = [ - "treebeard" - ]; + pythonImportsCheck = [ "treebeard" ]; meta = with lib; { description = "Efficient tree implementations for Django"; diff --git a/pkgs/development/python-modules/django-two-factor-auth/default.nix b/pkgs/development/python-modules/django-two-factor-auth/default.nix index dfb726a55b01..f14b4a0d0c85 100644 --- a/pkgs/development/python-modules/django-two-factor-auth/default.nix +++ b/pkgs/development/python-modules/django-two-factor-auth/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, django -, django-formtools -, django-otp -, django-phonenumber-field -, fetchFromGitHub -, phonenumbers -, pydantic -, pythonOlder -, pythonRelaxDepsHook -, qrcode -, setuptools-scm -, twilio -, webauthn +{ + lib, + buildPythonPackage, + django, + django-formtools, + django-otp, + django-phonenumber-field, + fetchFromGitHub, + phonenumbers, + pydantic, + pythonOlder, + pythonRelaxDepsHook, + qrcode, + setuptools-scm, + twilio, + webauthn, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { setuptools-scm ]; - pythonRelaxDeps = [ - "django-phonenumber-field" - ]; + pythonRelaxDeps = [ "django-phonenumber-field" ]; propagatedBuildInputs = [ django @@ -47,12 +46,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - call = [ - twilio - ]; - sms = [ - twilio - ]; + call = [ twilio ]; + sms = [ twilio ]; webauthn = [ pydantic webauthn @@ -60,9 +55,7 @@ buildPythonPackage rec { # yubikey = [ # django-otp-yubikey # ]; - phonenumbers = [ - phonenumbers - ]; + phonenumbers = [ phonenumbers ]; # phonenumberslite = [ # phonenumberslite # ]; @@ -71,9 +64,7 @@ buildPythonPackage rec { # Tests require internet connection doCheck = false; - pythonImportsCheck = [ - "two_factor" - ]; + pythonImportsCheck = [ "two_factor" ]; meta = with lib; { description = "Complete Two-Factor Authentication for Django"; diff --git a/pkgs/development/python-modules/django-types/default.nix b/pkgs/development/python-modules/django-types/default.nix index 908fb1bd0ed1..e2520f4026fa 100644 --- a/pkgs/development/python-modules/django-types/default.nix +++ b/pkgs/development/python-modules/django-types/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, types-psycopg2 +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + types-psycopg2, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-WueYhhLPb7w1ewGLvDs6h4tl4EJ1zEbg011mpwja/xI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - types-psycopg2 - ]; + propagatedBuildInputs = [ types-psycopg2 ]; meta = with lib; { description = "Type stubs for Django"; diff --git a/pkgs/development/python-modules/django-versatileimagefield/default.nix b/pkgs/development/python-modules/django-versatileimagefield/default.nix index 89fd6e85c954..3545f011407c 100644 --- a/pkgs/development/python-modules/django-versatileimagefield/default.nix +++ b/pkgs/development/python-modules/django-versatileimagefield/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pillow -, python-magic +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pillow, + python-magic, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { inherit pname version; hash = "sha256-M5DiAEgJjol78pmwNgdj0QzQiWZbeu+OupAO7Lrq0Ng="; }; - propagatedBuildInputs = [ pillow python-magic ]; + propagatedBuildInputs = [ + pillow + python-magic + ]; nativeCheckInputs = [ django ]; @@ -31,4 +35,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ mmai ]; }; } - diff --git a/pkgs/development/python-modules/django-vite/default.nix b/pkgs/development/python-modules/django-vite/default.nix index b3527b9176b8..236d1f60935a 100644 --- a/pkgs/development/python-modules/django-vite/default.nix +++ b/pkgs/development/python-modules/django-vite/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, django -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + django, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-rIT4WA45v353vSV56fBOa0euiuwnXWmhbxniAWPAkMo="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # Package doesn’t have any tests doCheck = false; - pythonImportsCheck = [ - "django_vite" - ]; + pythonImportsCheck = [ "django_vite" ]; meta = with lib; { description = "Integration of ViteJS in a Django project"; diff --git a/pkgs/development/python-modules/django-webpush/default.nix b/pkgs/development/python-modules/django-webpush/default.nix index 5f04dccb1ca6..25d406e348c4 100644 --- a/pkgs/development/python-modules/django-webpush/default.nix +++ b/pkgs/development/python-modules/django-webpush/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, pywebpush -, setuptools-scm +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + pywebpush, + setuptools-scm, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-Mwp53apdPpBcn7VfDbyDlvLAVAG65UUBhT0w9OKjKbU="; }; - pythonRelaxDeps = [ - "pywebpush" - ]; + pythonRelaxDeps = [ "pywebpush" ]; build-system = [ pythonRelaxDepsHook @@ -39,9 +38,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "webpush" - ]; + pythonImportsCheck = [ "webpush" ]; meta = with lib; { description = "Module for integrating and sending Web Push Notification in Django Application"; diff --git a/pkgs/development/python-modules/django-widget-tweaks/default.nix b/pkgs/development/python-modules/django-widget-tweaks/default.nix index 547df7c7fdfb..36fff55d31ce 100644 --- a/pkgs/development/python-modules/django-widget-tweaks/default.nix +++ b/pkgs/development/python-modules/django-widget-tweaks/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, django -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + django, + python, + pythonOlder, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-/3UIsg75X3R9YGv9cEcoPw3IN2vkhUb+HCy68813d2E="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; checkPhase = '' ${python.interpreter} -m django test --settings=tests.settings diff --git a/pkgs/development/python-modules/django/3.nix b/pkgs/development/python-modules/django/3.nix index decfbfd6f096..6fc23f3ede7a 100644 --- a/pkgs/development/python-modules/django/3.nix +++ b/pkgs/development/python-modules/django/3.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, substituteAll -, geos_3_9 -, gdal -, asgiref -, pytz -, sqlparse -, tzdata -, pythonOlder -, withGdal ? false +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + substituteAll, + geos_3_9, + gdal, + asgiref, + pytz, + sqlparse, + tzdata, + pythonOlder, + withGdal ? false, }: buildPythonPackage rec { @@ -25,13 +26,14 @@ buildPythonPackage rec { hash = "sha256-fKOKeGVK7nI3hZTWPlFjbAS44oV09VBd/2MIlbVHJ3c="; }; - patches = [ - (substituteAll { - src = ./django_3_set_zoneinfo_dir.patch; - zoneinfo = tzdata + "/share/zoneinfo"; - }) - ] ++ lib.optional withGdal - (substituteAll { + patches = + [ + (substituteAll { + src = ./django_3_set_zoneinfo_dir.patch; + zoneinfo = tzdata + "/share/zoneinfo"; + }) + ] + ++ lib.optional withGdal (substituteAll { src = ./django_3_set_geos_gdal_lib.patch; inherit geos_3_9; inherit gdal; diff --git a/pkgs/development/python-modules/django/4.nix b/pkgs/development/python-modules/django/4.nix index 4ee0ab76175e..11a2c7821c63 100644 --- a/pkgs/development/python-modules/django/4.nix +++ b/pkgs/development/python-modules/django/4.nix @@ -1,44 +1,45 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + substituteAll, -# build -, setuptools + # build + setuptools, -# patched in -, geos -, gdal -, withGdal ? false + # patched in + geos, + gdal, + withGdal ? false, -# propagates -, asgiref -, sqlparse + # propagates + asgiref, + sqlparse, -# extras -, argon2-cffi -, bcrypt + # extras + argon2-cffi, + bcrypt, -# tests -, aiosmtpd -, docutils -, geoip2 -, jinja2 -, numpy -, pillow -, pylibmc -, pymemcache -, python -, pywatchman -, pyyaml -, pytz -, redis -, selenium -, tblib -, tzdata + # tests + aiosmtpd, + docutils, + geoip2, + jinja2, + numpy, + pillow, + pylibmc, + pymemcache, + python, + pywatchman, + pyyaml, + pytz, + redis, + selenium, + tblib, + tzdata, }: buildPythonPackage rec { @@ -55,37 +56,38 @@ buildPythonPackage rec { hash = "sha256-n6esWUpZpCP4J4bNckNKJ9E61qFjTPS7XF+WgxNS2JE="; }; - patches = [ - (substituteAll { - src = ./django_4_set_zoneinfo_dir.patch; - zoneinfo = tzdata + "/share/zoneinfo"; - }) - # make sure the tests don't remove packages from our pythonpath - # and disable failing tests - ./django_4_tests.patch + patches = + [ + (substituteAll { + src = ./django_4_set_zoneinfo_dir.patch; + zoneinfo = tzdata + "/share/zoneinfo"; + }) + # make sure the tests don't remove packages from our pythonpath + # and disable failing tests + ./django_4_tests.patch + ] + ++ lib.optionals withGdal [ + (substituteAll { + src = ./django_4_set_geos_gdal_lib.patch; + geos = geos; + gdal = gdal; + extension = stdenv.hostPlatform.extensions.sharedLibrary; + }) + ]; - ] ++ lib.optionals withGdal [ - (substituteAll { - src = ./django_4_set_geos_gdal_lib.patch; - geos = geos; - gdal = gdal; - extension = stdenv.hostPlatform.extensions.sharedLibrary; - }) - ]; + postPatch = + '' + substituteInPlace tests/utils_tests/test_autoreload.py \ + --replace "/usr/bin/python" "${python.interpreter}" + '' + + lib.optionalString (pythonAtLeast "3.12" && stdenv.hostPlatform.system == "aarch64-linux") '' + # Test regression after xz was reverted from 5.6.0 to 5.4.6 + # https://hydra.nixos.org/build/254630990 + substituteInPlace tests/view_tests/tests/test_debug.py \ + --replace-fail "test_files" "dont_test_files" + ''; - postPatch = '' - substituteInPlace tests/utils_tests/test_autoreload.py \ - --replace "/usr/bin/python" "${python.interpreter}" - '' + lib.optionalString (pythonAtLeast "3.12" && stdenv.hostPlatform.system == "aarch64-linux") '' - # Test regression after xz was reverted from 5.6.0 to 5.4.6 - # https://hydra.nixos.org/build/254630990 - substituteInPlace tests/view_tests/tests/test_debug.py \ - --replace-fail "test_files" "dont_test_files" - ''; - - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asgiref @@ -93,12 +95,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - argon2 = [ - argon2-cffi - ]; - bcrypt = [ - bcrypt - ]; + argon2 = [ argon2-cffi ]; + bcrypt = [ bcrypt ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/django/5.nix b/pkgs/development/python-modules/django/5.nix index 637bbb652869..ba599684fd71 100644 --- a/pkgs/development/python-modules/django/5.nix +++ b/pkgs/development/python-modules/django/5.nix @@ -1,45 +1,46 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, pythonAtLeast -, pythonOlder -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + pythonAtLeast, + pythonOlder, + substituteAll, -# build-system -, setuptools + # build-system + setuptools, -# patched in -, geos -, gdal -, withGdal ? false + # patched in + geos, + gdal, + withGdal ? false, -# dependencies -, asgiref -, sqlparse + # dependencies + asgiref, + sqlparse, -# optional-dependencies -, argon2-cffi -, bcrypt + # optional-dependencies + argon2-cffi, + bcrypt, -# tests -, aiosmtpd -, docutils -, geoip2 -, jinja2 -, numpy -, pillow -, pylibmc -, pymemcache -, python -, pywatchman -, pyyaml -, pytz -, redis -, selenium -, tblib -, tzdata + # tests + aiosmtpd, + docutils, + geoip2, + jinja2, + numpy, + pillow, + pylibmc, + pymemcache, + python, + pywatchman, + pyyaml, + pytz, + redis, + selenium, + tblib, + tzdata, }: buildPythonPackage rec { @@ -56,38 +57,39 @@ buildPythonPackage rec { hash = "sha256-0/AbPmTl38E9BpHVKs0r79fISjEa1d4XO/se1pA7zxg="; }; - patches = [ - (substituteAll { - src = ./django_5_set_zoneinfo_dir.patch; - zoneinfo = tzdata + "/share/zoneinfo"; - }) - # prevent tests from messing with our pythonpath - ./django_5_tests_pythonpath.patch - # disable test that excpects timezone issues - ./django_5_disable_failing_tests.patch + patches = + [ + (substituteAll { + src = ./django_5_set_zoneinfo_dir.patch; + zoneinfo = tzdata + "/share/zoneinfo"; + }) + # prevent tests from messing with our pythonpath + ./django_5_tests_pythonpath.patch + # disable test that excpects timezone issues + ./django_5_disable_failing_tests.patch + ] + ++ lib.optionals withGdal [ + (substituteAll { + src = ./django_5_set_geos_gdal_lib.patch; + geos = geos; + gdal = gdal; + extension = stdenv.hostPlatform.extensions.sharedLibrary; + }) + ]; - ] ++ lib.optionals withGdal [ - (substituteAll { - src = ./django_5_set_geos_gdal_lib.patch; - geos = geos; - gdal = gdal; - extension = stdenv.hostPlatform.extensions.sharedLibrary; - }) - ]; + postPatch = + '' + substituteInPlace tests/utils_tests/test_autoreload.py \ + --replace "/usr/bin/python" "${python.interpreter}" + '' + + lib.optionalString (pythonAtLeast "3.12" && stdenv.hostPlatform.system == "aarch64-linux") '' + # Test regression after xz was reverted from 5.6.0 to 5.4.6 + # https://hydra.nixos.org/build/254532197 + substituteInPlace tests/view_tests/tests/test_debug.py \ + --replace-fail "test_files" "dont_test_files" + ''; - postPatch = '' - substituteInPlace tests/utils_tests/test_autoreload.py \ - --replace "/usr/bin/python" "${python.interpreter}" - '' + lib.optionalString (pythonAtLeast "3.12" && stdenv.hostPlatform.system == "aarch64-linux") '' - # Test regression after xz was reverted from 5.6.0 to 5.4.6 - # https://hydra.nixos.org/build/254532197 - substituteInPlace tests/view_tests/tests/test_debug.py \ - --replace-fail "test_files" "dont_test_files" - ''; - - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ asgiref @@ -95,12 +97,8 @@ buildPythonPackage rec { ]; optional-dependencies = { - argon2 = [ - argon2-cffi - ]; - bcrypt = [ - bcrypt - ]; + argon2 = [ argon2-cffi ]; + bcrypt = [ bcrypt ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/djangoql/default.nix b/pkgs/development/python-modules/djangoql/default.nix index 52316ee4444e..198dea2ec53b 100644 --- a/pkgs/development/python-modules/djangoql/default.nix +++ b/pkgs/development/python-modules/djangoql/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, python -, django, ply }: +{ + lib, + buildPythonPackage, + fetchPypi, + python, + django, + ply, +}: buildPythonPackage rec { pname = "djangoql"; diff --git a/pkgs/development/python-modules/djangorestframework-camel-case/default.nix b/pkgs/development/python-modules/djangorestframework-camel-case/default.nix index c9bfc512b738..3e036dfe98a9 100644 --- a/pkgs/development/python-modules/djangorestframework-camel-case/default.nix +++ b/pkgs/development/python-modules/djangorestframework-camel-case/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, djangorestframework -, six +{ + lib, + buildPythonPackage, + fetchPypi, + djangorestframework, + six, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-za51hGZIq7ZYXHRwY5odL7Bk3EX46LYqqlC+fxp6YfQ="; }; - propagatedBuildInputs = [ - djangorestframework - ]; + propagatedBuildInputs = [ djangorestframework ]; - nativeCheckInputs = [ - six - ]; + nativeCheckInputs = [ six ]; # tests are only on GitHub but there are no tags # https://github.com/vbabiy/djangorestframework-camel-case/issues/116 diff --git a/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix b/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix index 69dc84e0c199..51c169ab929c 100644 --- a/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix +++ b/pkgs/development/python-modules/djangorestframework-dataclasses/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, djangorestframework -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + djangorestframework, + setuptools, }: buildPythonPackage rec { @@ -17,20 +18,16 @@ buildPythonPackage rec { hash = "sha256-12EdSaGpsX0qDXgJ2QWYj6qAUbsrITQjWowk+gJFwwY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postPatch = '' patchShebangs manage.py ''; - propagatedBuildInputs = [ - djangorestframework - ]; + propagatedBuildInputs = [ djangorestframework ]; checkPhase = '' - ./manage.py test + ./manage.py test ''; pythonImportsCheck = [ "rest_framework_dataclasses" ]; diff --git a/pkgs/development/python-modules/djangorestframework-guardian/default.nix b/pkgs/development/python-modules/djangorestframework-guardian/default.nix index 4e8a941d411f..d04cd24f54f9 100644 --- a/pkgs/development/python-modules/djangorestframework-guardian/default.nix +++ b/pkgs/development/python-modules/djangorestframework-guardian/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, django-guardian -, djangorestframework +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + django-guardian, + djangorestframework, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/djangorestframework-guardian2/default.nix b/pkgs/development/python-modules/djangorestframework-guardian2/default.nix index d2e7ea08af8a..4356d8226235 100644 --- a/pkgs/development/python-modules/djangorestframework-guardian2/default.nix +++ b/pkgs/development/python-modules/djangorestframework-guardian2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django-guardian -, djangorestframework +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django-guardian, + djangorestframework, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/djangorestframework-recursive/default.nix b/pkgs/development/python-modules/djangorestframework-recursive/default.nix index e51fa173a803..909a1d167d29 100644 --- a/pkgs/development/python-modules/djangorestframework-recursive/default.nix +++ b/pkgs/development/python-modules/djangorestframework-recursive/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, django -, djangorestframework -, fetchFromGitHub +{ + lib, + buildPythonPackage, + django, + djangorestframework, + fetchFromGitHub, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # incompatible with newer django versions doCheck = false; - pythonImportsCheck = [ - "rest_framework_recursive" - ]; + pythonImportsCheck = [ "rest_framework_recursive" ]; meta = with lib; { description = " Recursive Serialization for Django REST framework "; diff --git a/pkgs/development/python-modules/djangorestframework-simplejwt/default.nix b/pkgs/development/python-modules/djangorestframework-simplejwt/default.nix index 043731f0054c..abf6c29ed81b 100644 --- a/pkgs/development/python-modules/djangorestframework-simplejwt/default.nix +++ b/pkgs/development/python-modules/djangorestframework-simplejwt/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cryptography -, django -, djangorestframework -, fetchPypi -, pyjwt -, python-jose -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + cryptography, + django, + djangorestframework, + fetchPypi, + pyjwt, + python-jose, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-bEvTdTdEC8Q5Vk6/fWCF50xUEUhRlwc/UI69+jS8n64="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ django @@ -34,20 +33,14 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - python-jose = [ - python-jose - ]; - crypto = [ - cryptography - ]; + python-jose = [ python-jose ]; + crypto = [ cryptography ]; }; # Test raises django.core.exceptions.ImproperlyConfigured doCheck = false; - pythonImportsCheck = [ - "rest_framework_simplejwt" - ]; + pythonImportsCheck = [ "rest_framework_simplejwt" ]; meta = with lib; { description = "JSON Web Token authentication plugin for Django REST Framework"; diff --git a/pkgs/development/python-modules/djangorestframework-stubs/default.nix b/pkgs/development/python-modules/djangorestframework-stubs/default.nix index 6cb2e76e857c..70c672cdc25a 100644 --- a/pkgs/development/python-modules/djangorestframework-stubs/default.nix +++ b/pkgs/development/python-modules/djangorestframework-stubs/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, django-stubs -, fetchFromGitHub -, mypy -, py -, coreapi -, pytest-mypy-plugins -, pytestCheckHook -, pythonOlder -, requests -, types-pyyaml -, setuptools -, types-markdown -, types-requests -, typing-extensions +{ + lib, + buildPythonPackage, + django-stubs, + fetchFromGitHub, + mypy, + py, + coreapi, + pytest-mypy-plugins, + pytestCheckHook, + pythonOlder, + requests, + types-pyyaml, + setuptools, + types-markdown, + types-requests, + typing-extensions, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-AOhNlhTZ6Upevb/7Z1sUQoIkIlwYlIcf1CC+Ag7H4bg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ django-stubs @@ -43,15 +42,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - compatible-mypy = [ - mypy - ] ++ django-stubs.optional-dependencies.compatible-mypy; - coreapi = [ - coreapi - ]; - markdown = [ - types-markdown - ]; + compatible-mypy = [ mypy ] ++ django-stubs.optional-dependencies.compatible-mypy; + coreapi = [ coreapi ]; + markdown = [ types-markdown ]; }; nativeCheckInputs = [ @@ -63,9 +56,7 @@ buildPythonPackage rec { # Upstream recommends mypy > 1.7 which we don't have yet, thus all testsare failing with 3.14.5 and below doCheck = false; - pythonImportsCheck = [ - "rest_framework-stubs" - ]; + pythonImportsCheck = [ "rest_framework-stubs" ]; meta = with lib; { description = "PEP-484 stubs for Django REST Framework"; @@ -75,4 +66,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ elohmeier ]; }; } - diff --git a/pkgs/development/python-modules/djangorestframework/default.nix b/pkgs/development/python-modules/djangorestframework/default.nix index 8bec94e66519..6b969183d46f 100644 --- a/pkgs/development/python-modules/djangorestframework/default.nix +++ b/pkgs/development/python-modules/djangorestframework/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, coreapi -, django -, django-guardian -, pythonOlder -, pytest-django -, pytest7CheckHook -, pytz -, pyyaml -, uritemplate +{ + lib, + buildPythonPackage, + fetchFromGitHub, + coreapi, + django, + django-guardian, + pythonOlder, + pytest-django, + pytest7CheckHook, + pytz, + pyyaml, + uritemplate, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/djmail/default.nix b/pkgs/development/python-modules/djmail/default.nix index 28e9b88d3c32..432e09e41aee 100644 --- a/pkgs/development/python-modules/djmail/default.nix +++ b/pkgs/development/python-modules/djmail/default.nix @@ -1,6 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, glibcLocales -, celery, django, psycopg2 +{ + lib, + buildPythonPackage, + fetchPypi, + glibcLocales, + celery, + django, + psycopg2, }: buildPythonPackage rec { @@ -23,7 +28,11 @@ buildPythonPackage rec { LC_ALL = "en_US.UTF-8"; - propagatedBuildInputs = [ celery django psycopg2 ]; + propagatedBuildInputs = [ + celery + django + psycopg2 + ]; # django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. doCheck = false; diff --git a/pkgs/development/python-modules/dkimpy/default.nix b/pkgs/development/python-modules/dkimpy/default.nix index 541c3bef56e9..b061554987c4 100644 --- a/pkgs/development/python-modules/dkimpy/default.nix +++ b/pkgs/development/python-modules/dkimpy/default.nix @@ -1,5 +1,14 @@ -{ lib, fetchPypi, openssl, buildPythonPackage -, pytest, dnspython, pynacl, authres, python }: +{ + lib, + fetchPypi, + openssl, + buildPythonPackage, + pytest, + dnspython, + pynacl, + authres, + python, +}: buildPythonPackage rec { pname = "dkimpy"; @@ -9,10 +18,15 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; hash = "sha256-DOctlh9EPo+fBWlLNUVC3uU04I4rjFtgxi1drKfB2g8="; -}; + }; nativeCheckInputs = [ pytest ]; - propagatedBuildInputs = [ openssl dnspython pynacl authres ]; + propagatedBuildInputs = [ + openssl + dnspython + pynacl + authres + ]; patchPhase = '' substituteInPlace dkim/dknewkey.py --replace \ diff --git a/pkgs/development/python-modules/dlib/default.nix b/pkgs/development/python-modules/dlib/default.nix index 224c8ccd4e15..f66fe4bf484f 100644 --- a/pkgs/development/python-modules/dlib/default.nix +++ b/pkgs/development/python-modules/dlib/default.nix @@ -1,18 +1,32 @@ -{ stdenv, buildPythonPackage, dlib, python, pytest, more-itertools -, sse4Support ? stdenv.hostPlatform.sse4_1Support -, avxSupport ? stdenv.hostPlatform.avxSupport +{ + stdenv, + buildPythonPackage, + dlib, + python, + pytest, + more-itertools, + sse4Support ? stdenv.hostPlatform.sse4_1Support, + avxSupport ? stdenv.hostPlatform.avxSupport, }: buildPythonPackage { - inherit (dlib) pname version src nativeBuildInputs buildInputs meta; + inherit (dlib) + pname + version + src + nativeBuildInputs + buildInputs + meta + ; format = "setuptools"; - patches = [ - ./build-cores.patch - ]; + patches = [ ./build-cores.patch ]; - nativeCheckInputs = [ pytest more-itertools ]; + nativeCheckInputs = [ + pytest + more-itertools + ]; postPatch = '' substituteInPlace setup.py \ diff --git a/pkgs/development/python-modules/dlinfo/default.nix b/pkgs/development/python-modules/dlinfo/default.nix index b51c71913f5f..bb9c849592dd 100644 --- a/pkgs/development/python-modules/dlinfo/default.nix +++ b/pkgs/development/python-modules/dlinfo/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { sha256 = "5f6f43b47f3aa5fe12bd347cf536dc8fca6068c61a0a260e408bec7f6eb4bd38"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "dlinfo" ]; diff --git a/pkgs/development/python-modules/dllogger/default.nix b/pkgs/development/python-modules/dllogger/default.nix index 2ae7bd683e01..8b8dace69c56 100644 --- a/pkgs/development/python-modules/dllogger/default.nix +++ b/pkgs/development/python-modules/dllogger/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dlms-cosem/default.nix b/pkgs/development/python-modules/dlms-cosem/default.nix index a285a538fa08..18a1031abb63 100644 --- a/pkgs/development/python-modules/dlms-cosem/default.nix +++ b/pkgs/development/python-modules/dlms-cosem/default.nix @@ -1,16 +1,17 @@ -{ lib -, asn1crypto -, attrs -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pyserial -, pytestCheckHook -, python-dateutil -, pythonOlder -, setuptools -, structlog -, typing-extensions +{ + lib, + asn1crypto, + attrs, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pyserial, + pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, + structlog, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-NeTaU8i18Zb39Y2JnYzr87Ozt7Rj074xusL4xaNe0q0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asn1crypto @@ -41,13 +40,9 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dlms_cosem" - ]; + pythonImportsCheck = [ "dlms_cosem" ]; meta = with lib; { description = "Python module to parse DLMS/COSEM"; diff --git a/pkgs/development/python-modules/dlx/default.nix b/pkgs/development/python-modules/dlx/default.nix index c8f89b7db7c1..3917dd4540cc 100644 --- a/pkgs/development/python-modules/dlx/default.nix +++ b/pkgs/development/python-modules/dlx/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dm-control/default.nix b/pkgs/development/python-modules/dm-control/default.nix index 6418163b6bc7..0d9c9d3f1c9a 100644 --- a/pkgs/development/python-modules/dm-control/default.nix +++ b/pkgs/development/python-modules/dm-control/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, absl-py -, mujoco -, pyparsing -, pythonRelaxDepsHook -, setuptools -, wheel -, dm-env -, dm-tree -, fsspec -, glfw -, h5py -, lxml -, mock -, nose -, nose-xunitmp -, numpy -, pillow -, protobuf -, pyopengl -, requests -, scipy -, tqdm -, etils +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + absl-py, + mujoco, + pyparsing, + pythonRelaxDepsHook, + setuptools, + wheel, + dm-env, + dm-tree, + fsspec, + glfw, + h5py, + lxml, + mock, + nose, + nose-xunitmp, + numpy, + pillow, + protobuf, + pyopengl, + requests, + scipy, + tqdm, + etils, }: buildPythonPackage rec { @@ -78,9 +79,7 @@ buildPythonPackage rec { tqdm ] ++ etils.optional-dependencies.epath; - pythonImportsCheck = [ - "dm_control" - ]; + pythonImportsCheck = [ "dm_control" ]; # The installed library clashes with the `dm_control` directory remaining in the source path. # Usually, we get around this by `rm -rf` the python source files to ensure that the installed package is used. diff --git a/pkgs/development/python-modules/dm-env/default.nix b/pkgs/development/python-modules/dm-env/default.nix index a11d35495575..2b751b345cf8 100644 --- a/pkgs/development/python-modules/dm-env/default.nix +++ b/pkgs/development/python-modules/dm-env/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, dm-tree -, numpy -, absl-py -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + dm-tree, + numpy, + absl-py, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dm_env" - ]; + pythonImportsCheck = [ "dm_env" ]; meta = with lib; { description = "Pure Python client for Apache Kafka"; diff --git a/pkgs/development/python-modules/dm-haiku/default.nix b/pkgs/development/python-modules/dm-haiku/default.nix index e35baffb4066..21afa6fda3d7 100644 --- a/pkgs/development/python-modules/dm-haiku/default.nix +++ b/pkgs/development/python-modules/dm-haiku/default.nix @@ -1,116 +1,117 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, absl-py -, flax -, jaxlib -, jmp -, numpy -, tabulate -, pytest-xdist -, pytestCheckHook -, bsuite -, chex -, cloudpickle -, dill -, dm-env -, dm-tree -, optax -, rlax -, tensorflow +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + absl-py, + flax, + jaxlib, + jmp, + numpy, + tabulate, + pytest-xdist, + pytestCheckHook, + bsuite, + chex, + cloudpickle, + dill, + dm-env, + dm-tree, + optax, + rlax, + tensorflow, }: -let dm-haiku = buildPythonPackage rec { - pname = "dm-haiku"; - version = "0.0.12"; - format = "setuptools"; +let + dm-haiku = buildPythonPackage rec { + pname = "dm-haiku"; + version = "0.0.12"; + format = "setuptools"; - src = fetchFromGitHub { - owner = "deepmind"; - repo = "dm-haiku"; - rev = "refs/tags/v${version}"; - hash = "sha256-aJRXlMq4CNMH3ZSTDP8MgnVltdSc8l5raw4//KccL48="; + src = fetchFromGitHub { + owner = "deepmind"; + repo = "dm-haiku"; + rev = "refs/tags/v${version}"; + hash = "sha256-aJRXlMq4CNMH3ZSTDP8MgnVltdSc8l5raw4//KccL48="; + }; + + patches = [ + # https://github.com/deepmind/dm-haiku/pull/672 + (fetchpatch { + name = "fix-find-namespace-packages.patch"; + url = "https://github.com/deepmind/dm-haiku/commit/728031721f77d9aaa260bba0eddd9200d107ba5d.patch"; + hash = "sha256-qV94TdJnphlnpbq+B0G3KTx5CFGPno+8FvHyu/aZeQE="; + }) + ]; + + propagatedBuildInputs = [ + absl-py + flax + jaxlib + jmp + numpy + tabulate + ]; + + pythonImportsCheck = [ "haiku" ]; + + nativeCheckInputs = [ + bsuite + chex + cloudpickle + dill + dm-env + dm-haiku + dm-tree + jaxlib + optax + pytest-xdist + pytestCheckHook + rlax + tensorflow + ]; + + disabledTests = [ + # See https://github.com/deepmind/dm-haiku/issues/366. + "test_jit_Recurrent" + + # Assertion errors + "testShapeChecking0" + "testShapeChecking1" + + # This test requires a more recent version of tensorflow. The current one (2.13) is not enough. + "test_reshape_convert" + + # This test requires JAX support for double precision (64bit), but enabling this causes several + # other tests to fail. + # https://jax.readthedocs.io/en/latest/notebooks/Common_Gotchas_in_JAX.html#double-64bit-precision + "test_doctest_haiku.experimental" + ]; + + disabledTestPaths = [ + # Those tests requires a more recent version of tensorflow. The current one (2.13) is not enough. + "haiku/_src/integration/jax2tf_test.py" + ]; + + doCheck = false; + + # check in passthru.tests.pytest to escape infinite recursion with bsuite + passthru.tests.pytest = dm-haiku.overridePythonAttrs (_: { + pname = "${pname}-tests"; + doCheck = true; + + # We don't have to install because the only purpose + # of this passthru test is to, well, test. + # This fixes having to set `catchConflicts` to false. + dontInstall = true; + }); + + meta = with lib; { + description = "Haiku is a simple neural network library for JAX developed by some of the authors of Sonnet."; + homepage = "https://github.com/deepmind/dm-haiku"; + license = licenses.asl20; + maintainers = with maintainers; [ ndl ]; + }; }; - - patches = [ - # https://github.com/deepmind/dm-haiku/pull/672 - (fetchpatch { - name = "fix-find-namespace-packages.patch"; - url = "https://github.com/deepmind/dm-haiku/commit/728031721f77d9aaa260bba0eddd9200d107ba5d.patch"; - hash = "sha256-qV94TdJnphlnpbq+B0G3KTx5CFGPno+8FvHyu/aZeQE="; - }) - ]; - - propagatedBuildInputs = [ - absl-py - flax - jaxlib - jmp - numpy - tabulate - ]; - - pythonImportsCheck = [ - "haiku" - ]; - - nativeCheckInputs = [ - bsuite - chex - cloudpickle - dill - dm-env - dm-haiku - dm-tree - jaxlib - optax - pytest-xdist - pytestCheckHook - rlax - tensorflow - ]; - - disabledTests = [ - # See https://github.com/deepmind/dm-haiku/issues/366. - "test_jit_Recurrent" - - # Assertion errors - "testShapeChecking0" - "testShapeChecking1" - - # This test requires a more recent version of tensorflow. The current one (2.13) is not enough. - "test_reshape_convert" - - # This test requires JAX support for double precision (64bit), but enabling this causes several - # other tests to fail. - # https://jax.readthedocs.io/en/latest/notebooks/Common_Gotchas_in_JAX.html#double-64bit-precision - "test_doctest_haiku.experimental" - ]; - - disabledTestPaths = [ - # Those tests requires a more recent version of tensorflow. The current one (2.13) is not enough. - "haiku/_src/integration/jax2tf_test.py" - ]; - - doCheck = false; - - # check in passthru.tests.pytest to escape infinite recursion with bsuite - passthru.tests.pytest = dm-haiku.overridePythonAttrs (_: { - pname = "${pname}-tests"; - doCheck = true; - - # We don't have to install because the only purpose - # of this passthru test is to, well, test. - # This fixes having to set `catchConflicts` to false. - dontInstall = true; - }); - - meta = with lib; { - description = "Haiku is a simple neural network library for JAX developed by some of the authors of Sonnet."; - homepage = "https://github.com/deepmind/dm-haiku"; - license = licenses.asl20; - maintainers = with maintainers; [ ndl ]; - }; -}; -in dm-haiku +in +dm-haiku diff --git a/pkgs/development/python-modules/dm-sonnet/default.nix b/pkgs/development/python-modules/dm-sonnet/default.nix index 457ad4de643d..7290b31b7f37 100644 --- a/pkgs/development/python-modules/dm-sonnet/default.nix +++ b/pkgs/development/python-modules/dm-sonnet/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, click -, dm-tree -, docutils -, etils -, fetchFromGitHub -, fetchpatch -, numpy -, pythonOlder -, tabulate -, tensorflow -, tensorflow-datasets -, wrapt +{ + lib, + buildPythonPackage, + click, + dm-tree, + docutils, + etils, + fetchFromGitHub, + fetchpatch, + numpy, + pythonOlder, + tabulate, + tensorflow, + tensorflow-datasets, + wrapt, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { ] ++ etils.optional-dependencies.epath; passthru.optional-dependencies = { - tensorflow = [ - tensorflow - ]; + tensorflow = [ tensorflow ]; }; nativeCheckInputs = [ @@ -57,9 +56,7 @@ buildPythonPackage rec { tensorflow-datasets ]; - pythonImportsCheck = [ - "sonnet" - ]; + pythonImportsCheck = [ "sonnet" ]; meta = with lib; { description = "Library for building neural networks in TensorFlow"; diff --git a/pkgs/development/python-modules/dm-tree/default.nix b/pkgs/development/python-modules/dm-tree/default.nix index 071a0fee432e..27befa4f7726 100644 --- a/pkgs/development/python-modules/dm-tree/default.nix +++ b/pkgs/development/python-modules/dm-tree/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, abseil-cpp -, absl-py -, attrs -, buildPythonPackage -, cmake -, fetchFromGitHub -, lib -, numpy -, pybind11 -, wrapt +{ + stdenv, + abseil-cpp, + absl-py, + attrs, + buildPythonPackage, + cmake, + fetchFromGitHub, + lib, + numpy, + pybind11, + wrapt, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-VvSJTuEYjIz/4TTibSLkbg65YmcYqHImTHOomeorMJc="; }; - patches = [ - ./cmake.patch - ]; + patches = [ ./cmake.patch ]; dontUseCmakeConfigure = true; @@ -53,6 +52,9 @@ buildPythonPackage rec { description = "Tree is a library for working with nested data structures."; homepage = "https://github.com/deepmind/tree"; license = licenses.asl20; - maintainers = with maintainers; [ samuela ndl ]; + maintainers = with maintainers; [ + samuela + ndl + ]; }; } diff --git a/pkgs/development/python-modules/dmenu/default.nix b/pkgs/development/python-modules/dmenu/default.nix index 130110173eed..1e5900870bbd 100644 --- a/pkgs/development/python-modules/dmenu/default.nix +++ b/pkgs/development/python-modules/dmenu/default.nix @@ -1,4 +1,9 @@ -{ buildPythonPackage, lib, fetchPypi, dmenu }: +{ + buildPythonPackage, + lib, + fetchPypi, + dmenu, +}: buildPythonPackage rec { pname = "dmenu-python"; diff --git a/pkgs/development/python-modules/dnachisel/default.nix b/pkgs/development/python-modules/dnachisel/default.nix index 5a70ae1c16df..c931f25fcf98 100644 --- a/pkgs/development/python-modules/dnachisel/default.nix +++ b/pkgs/development/python-modules/dnachisel/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, biopython -, docopt -, flametree -, numpy -, proglog -, pytestCheckHook -, pythonOlder -, python-codon-tables -, primer3 -, genome-collector -, matplotlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + biopython, + docopt, + flametree, + numpy, + proglog, + pytestCheckHook, + pythonOlder, + python-codon-tables, + primer3, + genome-collector, + matplotlib, }: buildPythonPackage rec { @@ -56,9 +57,7 @@ buildPythonPackage rec { "test_avoid_matches_with_phage" ]; - pythonImportsCheck = [ - "dnachisel" - ]; + pythonImportsCheck = [ "dnachisel" ]; meta = with lib; { homepage = "https://github.com/Edinburgh-Genome-Foundry/DnaChisel"; diff --git a/pkgs/development/python-modules/dnf-plugins-core/default.nix b/pkgs/development/python-modules/dnf-plugins-core/default.nix index 3a9c06267925..4ad92ba66406 100644 --- a/pkgs/development/python-modules/dnf-plugins-core/default.nix +++ b/pkgs/development/python-modules/dnf-plugins-core/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, # dependencies -, cmake -, python-dateutil -, dbus-python -, dnf4 -, gettext -, libcomps -, libdnf -, python -, rpm -, sphinx -, systemd + cmake, + python-dateutil, + dbus-python, + dnf4, + gettext, + libcomps, + libdnf, + python, + rpm, + sphinx, + systemd, }: let @@ -25,7 +26,10 @@ buildPythonPackage rec { version = "4.7.0"; format = "other"; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; src = fetchFromGitHub { owner = "rpm-software-management"; @@ -34,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-AQnnXjkUajztbyoKzKhxiKxZsb2o2+7C15fsrxGkWcM="; }; - patches = [ - ./fix-python-install-dir.patch - ]; + patches = [ ./fix-python-install-dir.patch ]; postPatch = '' substituteInPlace CMakeLists.txt \ @@ -108,9 +110,7 @@ buildPythonPackage rec { done ''; - makeWrapperArgs = [ - ''--add-flags "--setopt=pluginpath=$out/${python.sitePackages}/dnf-plugins"'' - ]; + makeWrapperArgs = [ ''--add-flags "--setopt=pluginpath=$out/${python.sitePackages}/dnf-plugins"'' ]; meta = with lib; { description = "Core plugins to use with DNF package manager"; diff --git a/pkgs/development/python-modules/dnf4/default.nix b/pkgs/development/python-modules/dnf4/default.nix index 31d617d61344..bafa31d9d025 100644 --- a/pkgs/development/python-modules/dnf4/default.nix +++ b/pkgs/development/python-modules/dnf4/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cmake -, fetchFromGitHub -, gettext -, libcomps -, libdnf -, python -, rpm -, sphinx -, nix-update-script +{ + lib, + buildPythonPackage, + cmake, + fetchFromGitHub, + gettext, + libcomps, + libdnf, + python, + rpm, + sphinx, + nix-update-script, }: let @@ -20,7 +21,11 @@ buildPythonPackage rec { version = "4.20.0"; format = "other"; - outputs = [ "out" "man" "py" ]; + outputs = [ + "out" + "man" + "py" + ]; src = fetchFromGitHub { owner = "rpm-software-management"; @@ -29,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-0BwnUb0ZORjJmB70Jca/CnyysIOGB7azVzUUIGplmso="; }; - patches = [ - ./fix-python-install-dir.patch - ]; + patches = [ ./fix-python-install-dir.patch ]; postPatch = '' substituteInPlace CMakeLists.txt \ @@ -59,9 +62,7 @@ buildPythonPackage rec { rpm ]; - cmakeFlags = [ - "-DPYTHON_DESIRED=${pyMajor}" - ]; + cmakeFlags = [ "-DPYTHON_DESIRED=${pyMajor}" ]; dontWrapPythonPrograms = true; diff --git a/pkgs/development/python-modules/dnf4/wrapper.nix b/pkgs/development/python-modules/dnf4/wrapper.nix index 254bd7f27d2a..79a3fd835912 100644 --- a/pkgs/development/python-modules/dnf4/wrapper.nix +++ b/pkgs/development/python-modules/dnf4/wrapper.nix @@ -1,9 +1,10 @@ -{ lib -, wrapPython -, python3 -, stdenv -, dnf-plugins-core -, plugins ? [ dnf-plugins-core ] +{ + lib, + wrapPython, + python3, + stdenv, + dnf-plugins-core, + plugins ? [ dnf-plugins-core ], }: let pluginPaths = map (p: "${p}/${python3.sitePackages}/dnf-plugins") plugins; @@ -15,19 +16,21 @@ stdenv.mkDerivation { pname = "dnf4"; inherit (dnf4-unwrapped) version; - outputs = [ "out" "man" "py" ]; + outputs = [ + "out" + "man" + "py" + ]; dontUnpack = true; - nativeBuildInputs = [ - wrapPython - ]; + nativeBuildInputs = [ wrapPython ]; - propagatedBuildInputs = [ - dnf4-unwrapped - ] ++ plugins; + propagatedBuildInputs = [ dnf4-unwrapped ] ++ plugins; - makeWrapperArgs = lib.optional (plugins != [ ]) ''--add-flags "--setopt=pluginpath=${lib.concatStringsSep "," pluginPaths}"''; + makeWrapperArgs = lib.optional ( + plugins != [ ] + ) ''--add-flags "--setopt=pluginpath=${lib.concatStringsSep "," pluginPaths}"''; installPhase = '' runHook preInstall diff --git a/pkgs/development/python-modules/dnfile/default.nix b/pkgs/development/python-modules/dnfile/default.nix index 950f1bb45672..e9bff0525de3 100644 --- a/pkgs/development/python-modules/dnfile/default.nix +++ b/pkgs/development/python-modules/dnfile/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pefile -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pefile, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,21 +23,13 @@ buildPythonPackage rec { fetchSubmodules = true; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pefile - ]; + dependencies = [ pefile ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dnfile" - ]; + pythonImportsCheck = [ "dnfile" ]; meta = with lib; { description = "Module to parse .NET executable files"; diff --git a/pkgs/development/python-modules/dns-lexicon/default.nix b/pkgs/development/python-modules/dns-lexicon/default.nix index b9647c5ed804..225a04ee5342 100644 --- a/pkgs/development/python-modules/dns-lexicon/default.nix +++ b/pkgs/development/python-modules/dns-lexicon/default.nix @@ -1,23 +1,24 @@ -{ lib -, beautifulsoup4 -, boto3 -, buildPythonPackage -, cryptography -, dnspython -, fetchFromGitHub -, importlib-metadata -, localzone -, oci -, poetry-core -, pyotp -, pytest-vcr -, pytestCheckHook -, pythonOlder -, pyyaml -, requests -, softlayer -, tldextract -, zeep +{ + lib, + beautifulsoup4, + boto3, + buildPythonPackage, + cryptography, + dnspython, + fetchFromGitHub, + importlib-metadata, + localzone, + oci, + poetry-core, + pyotp, + pytest-vcr, + pytestCheckHook, + pythonOlder, + pyyaml, + requests, + softlayer, + tldextract, + zeep, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-79/zz0TOCpx26TEo6gi9JDBQeVW2azWnxAjWr/FGRLA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ beautifulsoup4 @@ -45,29 +44,15 @@ buildPythonPackage rec { pyyaml requests tldextract - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; passthru.optional-dependencies = { - route53 = [ - boto3 - ]; - localzone = [ - localzone - ]; - softlayer = [ - softlayer - ]; - ddns = [ - dnspython - ]; - duckdns = [ - dnspython - ]; - oci = [ - oci - ]; + route53 = [ boto3 ]; + localzone = [ localzone ]; + softlayer = [ softlayer ]; + ddns = [ dnspython ]; + duckdns = [ dnspython ]; + oci = [ oci ]; full = [ boto3 dnspython @@ -83,9 +68,7 @@ buildPythonPackage rec { pytest-vcr ] ++ passthru.optional-dependencies.full; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; disabledTestPaths = [ # Needs network access @@ -104,9 +87,7 @@ buildPythonPackage rec { "action_is_correctly" ]; - pythonImportsCheck = [ - "lexicon" - ]; + pythonImportsCheck = [ "lexicon" ]; meta = with lib; { description = "Manipulate DNS records on various DNS providers in a standardized way"; diff --git a/pkgs/development/python-modules/dnslib/default.nix b/pkgs/development/python-modules/dnslib/default.nix index 63bf4634cf09..7153ea8fd4a2 100644 --- a/pkgs/development/python-modules/dnslib/default.nix +++ b/pkgs/development/python-modules/dnslib/default.nix @@ -1,8 +1,9 @@ -{ lib -, python -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + python, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { VERSIONS=${python.interpreter} ./run_tests.sh ''; - pythonImportsCheck = [ - "dnslib" - ]; + pythonImportsCheck = [ "dnslib" ]; meta = with lib; { description = "Simple library to encode/decode DNS wire-format packets"; diff --git a/pkgs/development/python-modules/dnspython/default.nix b/pkgs/development/python-modules/dnspython/default.nix index 5c359635ba5a..745fd7c7a65d 100644 --- a/pkgs/development/python-modules/dnspython/default.nix +++ b/pkgs/development/python-modules/dnspython/default.nix @@ -1,21 +1,22 @@ -{ lib -, aioquic -, buildPythonPackage -, cacert -, cryptography -, curio -, fetchPypi -, h2 -, httpcore -, httpx -, idna -, hatchling -, pytestCheckHook -, pythonOlder -, requests -, requests-toolbelt -, sniffio -, trio +{ + lib, + aioquic, + buildPythonPackage, + cacert, + cryptography, + curio, + fetchPypi, + h2, + httpcore, + httpx, + idna, + hatchling, + pytestCheckHook, + pythonOlder, + requests, + requests-toolbelt, + sniffio, + trio, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-6PD5wjp7fLmd7WTmw6bz5wHXj1DFXgArg53qciXP98w="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; passthru.optional-dependencies = { DOH = [ @@ -42,40 +41,26 @@ buildPythonPackage rec { requests-toolbelt httpcore ]; - IDNA = [ - idna - ]; - DNSSEC = [ - cryptography - ]; - trio = [ - trio - ]; + IDNA = [ idna ]; + DNSSEC = [ cryptography ]; + trio = [ trio ]; curio = [ curio sniffio ]; - DOQ = [ - aioquic - ]; + DOQ = [ aioquic ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - cacert - ] ++ passthru.optional-dependencies.DNSSEC; + checkInputs = [ cacert ] ++ passthru.optional-dependencies.DNSSEC; disabledTests = [ # dns.exception.SyntaxError: protocol not found "test_misc_good_WKS_text" ]; - pythonImportsCheck = [ - "dns" - ]; + pythonImportsCheck = [ "dns" ]; meta = with lib; { description = "A DNS toolkit for Python"; diff --git a/pkgs/development/python-modules/doc8/default.nix b/pkgs/development/python-modules/doc8/default.nix index 48c00b0d5cc3..bd47412044f6 100644 --- a/pkgs/development/python-modules/doc8/default.nix +++ b/pkgs/development/python-modules/doc8/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, chardet -, docutils -, fetchpatch -, fetchPypi -, pbr -, pygments -, pytestCheckHook -, pythonOlder -, restructuredtext-lint -, setuptools-scm -, stevedore -, wheel +{ + lib, + buildPythonPackage, + chardet, + docutils, + fetchpatch, + fetchPypi, + pbr, + pygments, + pytestCheckHook, + pythonOlder, + restructuredtext-lint, + setuptools-scm, + stevedore, + wheel, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - pbr - ]; + buildInputs = [ pbr ]; propagatedBuildInputs = [ docutils @@ -52,13 +51,9 @@ buildPythonPackage rec { pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "doc8" - ]; + pythonImportsCheck = [ "doc8" ]; meta = with lib; { description = "Style checker for Sphinx (or other) RST documentation"; diff --git a/pkgs/development/python-modules/docformatter/default.nix b/pkgs/development/python-modules/docformatter/default.nix index 02b2108541e4..d6cd2f308ec0 100644 --- a/pkgs/development/python-modules/docformatter/default.nix +++ b/pkgs/development/python-modules/docformatter/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, charset-normalizer -, tomli -, untokenize -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + charset-normalizer, + tomli, + untokenize, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-QUjeG84KwI5Y3MU1wrmjHBXU2tEJ0CuiR3Y/S+dX7Gs="; }; - patches = [ - ./test-path.patch - ]; + patches = [ ./test-path.patch ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -36,9 +35,7 @@ buildPythonPackage rec { --subst-var-by docformatter $out/bin/docformatter ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ charset-normalizer diff --git a/pkgs/development/python-modules/docker-py/default.nix b/pkgs/development/python-modules/docker-py/default.nix index 392e4767e8c3..159722a7a756 100644 --- a/pkgs/development/python-modules/docker-py/default.nix +++ b/pkgs/development/python-modules/docker-py/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, six, requests, websocket-client, docker-pycreds }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + requests, + websocket-client, + docker-pycreds, +}: buildPythonPackage rec { version = "1.10.6"; diff --git a/pkgs/development/python-modules/docker-pycreds/default.nix b/pkgs/development/python-modules/docker-pycreds/default.nix index 2c6c0ad2038d..ba6789aae7f5 100644 --- a/pkgs/development/python-modules/docker-pycreds/default.nix +++ b/pkgs/development/python-modules/docker-pycreds/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, +}: buildPythonPackage rec { pname = "docker-pycreds"; diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix index 579584c53104..38b3ab00e068 100644 --- a/pkgs/development/python-modules/docker/default.nix +++ b/pkgs/development/python-modules/docker/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, packaging -, requests -, urllib3 + # dependencies + packaging, + requests, + urllib3, -# optional-dependenices -, paramiko -, websocket-client + # optional-dependenices + paramiko, + websocket-client, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -45,25 +46,17 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - ssh = [ - paramiko - ]; - websockets = [ - websocket-client - ]; + ssh = [ paramiko ]; + websockets = [ websocket-client ]; }; - pythonImportsCheck = [ - "docker" - ]; + pythonImportsCheck = [ "docker" ]; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; # Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket disabledTests = lib.optionals stdenv.isDarwin [ diff --git a/pkgs/development/python-modules/dockerfile-parse/default.nix b/pkgs/development/python-modules/dockerfile-parse/default.nix index 88a568ed258b..ae829a65e71d 100644 --- a/pkgs/development/python-modules/dockerfile-parse/default.nix +++ b/pkgs/development/python-modules/dockerfile-parse/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-MYTM3FEyIZg+UDrADhqlBKKqj4Tl3mc8RrC27umex7w="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dockerfile_parse" - ]; + pythonImportsCheck = [ "dockerfile_parse" ]; disabledTests = [ # python-dockerfile-parse.spec is not present diff --git a/pkgs/development/python-modules/dockerpty/default.nix b/pkgs/development/python-modules/dockerpty/default.nix index 1dc5ff6a8316..0e4fe12546df 100644 --- a/pkgs/development/python-modules/dockerpty/default.nix +++ b/pkgs/development/python-modules/dockerpty/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, +}: buildPythonPackage rec { pname = "dockerpty"; diff --git a/pkgs/development/python-modules/dockerspawner/default.nix b/pkgs/development/python-modules/dockerspawner/default.nix index 44f269d50c64..bf3424578609 100644 --- a/pkgs/development/python-modules/dockerspawner/default.nix +++ b/pkgs/development/python-modules/dockerspawner/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, jupyterhub -, escapism -, docker +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + jupyterhub, + escapism, + docker, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-POlTZ9luS9wQ/vt9w8VMfTEqGzg/DhfB45ePfvnyito="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jupyterhub @@ -30,9 +29,7 @@ buildPythonPackage rec { # tests require docker doCheck = false; - pythonImportsCheck = [ - "dockerspawner" - ]; + pythonImportsCheck = [ "dockerspawner" ]; meta = with lib; { description = "A custom spawner for Jupyterhub"; diff --git a/pkgs/development/python-modules/docloud/default.nix b/pkgs/development/python-modules/docloud/default.nix index 9e30ea389954..3d6888a0c0c3 100644 --- a/pkgs/development/python-modules/docloud/default.nix +++ b/pkgs/development/python-modules/docloud/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, six +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/docopt-ng/default.nix b/pkgs/development/python-modules/docopt-ng/default.nix index cdeda778e0dc..5fde32a380bb 100644 --- a/pkgs/development/python-modules/docopt-ng/default.nix +++ b/pkgs/development/python-modules/docopt-ng/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pdm-backend +{ + lib, + buildPythonPackage, + fetchPypi, + pdm-backend, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-kcbaELW7by6eJTRYKfuCeMeK8Bn2/ECIetSbBgSDsdc="; }; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; pythonImportsCheck = [ "docopt" ]; doCheck = false; # no tests in the package diff --git a/pkgs/development/python-modules/docopt/default.nix b/pkgs/development/python-modules/docopt/default.nix index d909162d7f18..3f7c7c7a0ece 100644 --- a/pkgs/development/python-modules/docopt/default.nix +++ b/pkgs/development/python-modules/docopt/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "docopt"; diff --git a/pkgs/development/python-modules/docplex/default.nix b/pkgs/development/python-modules/docplex/default.nix index dde6772864b3..464552809ddb 100644 --- a/pkgs/development/python-modules/docplex/default.nix +++ b/pkgs/development/python-modules/docplex/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, setuptools -, futures ? null -, docloud -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + setuptools, + futures ? null, + docloud, + requests, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { --replace-fail "setuptools~=68.2.2" "setuptools>=68.2.2" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ docloud diff --git a/pkgs/development/python-modules/docrep/default.nix b/pkgs/development/python-modules/docrep/default.nix index e507b8d022b4..20b77a521e41 100644 --- a/pkgs/development/python-modules/docrep/default.nix +++ b/pkgs/development/python-modules/docrep/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/docstr-coverage/default.nix b/pkgs/development/python-modules/docstr-coverage/default.nix index 603e826908b9..2310ac6ffab7 100644 --- a/pkgs/development/python-modules/docstr-coverage/default.nix +++ b/pkgs/development/python-modules/docstr-coverage/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, pyyaml -, tqdm -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + pyyaml, + tqdm, + pytestCheckHook, + pytest-mock, }: let version = "2.3.2"; @@ -21,9 +22,16 @@ buildPythonPackage { hash = "sha256-k1ny4fWS+CmgLNWPlYPsscjei2UZ6h8QJrZSay5abck="; }; - propagatedBuildInputs = [ click pyyaml tqdm ]; + propagatedBuildInputs = [ + click + pyyaml + tqdm + ]; - nativeCheckInputs = [ pytestCheckHook pytest-mock ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-mock + ]; disabledTests = [ # AssertionError: assert 'docstr_coverage' in '/build/source/tests' diff --git a/pkgs/development/python-modules/docstring-parser/default.nix b/pkgs/development/python-modules/docstring-parser/default.nix index e3e47d1c9079..d1a06935e0fd 100644 --- a/pkgs/development/python-modules/docstring-parser/default.nix +++ b/pkgs/development/python-modules/docstring-parser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-rnDitZn/xI0I9KMQv6gxzVYevWUymDgyFETjAnRlEHw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "docstring_parser" - ]; + pythonImportsCheck = [ "docstring_parser" ]; meta = with lib; { description = "Parse Python docstrings in various flavors"; diff --git a/pkgs/development/python-modules/docstring-to-markdown/default.nix b/pkgs/development/python-modules/docstring-to-markdown/default.nix index 5a720d1954dd..2595c6d6d154 100644 --- a/pkgs/development/python-modules/docstring-to-markdown/default.nix +++ b/pkgs/development/python-modules/docstring-to-markdown/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { sed -i -E '/--(cov|flake8)/d' setup.cfg ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "docstring_to_markdown" - ]; + pythonImportsCheck = [ "docstring_to_markdown" ]; meta = with lib; { homepage = "https://github.com/python-lsp/docstring-to-markdown"; diff --git a/pkgs/development/python-modules/docutils/default.nix b/pkgs/development/python-modules/docutils/default.nix index fdf766f37f05..cdfb53572213 100644 --- a/pkgs/development/python-modules/docutils/default.nix +++ b/pkgs/development/python-modules/docutils/default.nix @@ -1,57 +1,65 @@ -{ stdenv -, lib -, fetchFromRepoOrCz -, buildPythonPackage -, flit-core -, pillow -, python -, pythonOlder +{ + stdenv, + lib, + fetchFromRepoOrCz, + buildPythonPackage, + flit-core, + pillow, + python, + pythonOlder, }: # Note: this package is used to build LLVM’s documentation, which is part of the Darwin stdenv. # It cannot use `fetchgit` because that would pull curl into the bootstrap, which is disallowed. -let self = buildPythonPackage rec { - pname = "docutils"; - version = "0.21.2"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "docutils"; + version = "0.21.2"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.7"; - src = fetchFromRepoOrCz { - repo = "docutils"; - rev = "docutils-${version}"; - hash = "sha256-Q+9yW+BYUEvPYV504368JsAoKKoaTZTeKh4tVeiNv5Y="; + src = fetchFromRepoOrCz { + repo = "docutils"; + rev = "docutils-${version}"; + hash = "sha256-Q+9yW+BYUEvPYV504368JsAoKKoaTZTeKh4tVeiNv5Y="; + }; + + build-system = [ flit-core ]; + + # infinite recursion via sphinx and pillow + doCheck = false; + passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; }; + + nativeCheckInputs = [ pillow ]; + + # Only Darwin needs LANG, but we could set it in general. + # It's done here conditionally to prevent mass-rebuilds. + checkPhase = + lib.optionalString stdenv.isDarwin ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + + '' + ${python.interpreter} test/alltests.py + ''; + + # Create symlinks lacking a ".py" suffix, many programs depend on these names + postFixup = '' + for f in $out/bin/*.py; do + ln -s $(basename $f) $out/bin/$(basename $f .py) + done + ''; + + meta = with lib; { + description = "Python Documentation Utilities"; + homepage = "http://docutils.sourceforge.net/"; + license = with licenses; [ + publicDomain + bsd2 + psfl + gpl3Plus + ]; + maintainers = with maintainers; [ AndersonTorres ]; + }; }; - - build-system = [ flit-core ]; - - # infinite recursion via sphinx and pillow - doCheck = false; - passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; }; - - nativeCheckInputs = [ - pillow - ]; - - # Only Darwin needs LANG, but we could set it in general. - # It's done here conditionally to prevent mass-rebuilds. - checkPhase = lib.optionalString stdenv.isDarwin ''LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" '' + '' - ${python.interpreter} test/alltests.py - ''; - - # Create symlinks lacking a ".py" suffix, many programs depend on these names - postFixup = '' - for f in $out/bin/*.py; do - ln -s $(basename $f) $out/bin/$(basename $f .py) - done - ''; - - meta = with lib; { - description = "Python Documentation Utilities"; - homepage = "http://docutils.sourceforge.net/"; - license = with licenses; [ publicDomain bsd2 psfl gpl3Plus ]; - maintainers = with maintainers; [ AndersonTorres ]; - }; -}; -in self +in +self diff --git a/pkgs/development/python-modules/docx2python/default.nix b/pkgs/development/python-modules/docx2python/default.nix index f65f4f7c9075..4a646d45026b 100644 --- a/pkgs/development/python-modules/docx2python/default.nix +++ b/pkgs/development/python-modules/docx2python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, lxml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + lxml, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-SavRYnNbESRQh9Elk8qCt/qdI2x+sYZJFMYy+Gojg2k="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - lxml - ]; + propagatedBuildInputs = [ lxml ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/docx2txt/default.nix b/pkgs/development/python-modules/docx2txt/default.nix index 97c7f2b77692..aaab023678c9 100644 --- a/pkgs/development/python-modules/docx2txt/default.nix +++ b/pkgs/development/python-modules/docx2txt/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -13,9 +14,7 @@ buildPythonPackage rec { hash = "sha256-LAbZjXz+LTlH5XYKV9kk4/8HdFs3nIc3cjki5wCSNuU="; }; - pythonImportsCheck = [ - "docx2txt" - ]; + pythonImportsCheck = [ "docx2txt" ]; meta = with lib; { description = "A pure python-based utility to extract text and images from docx files"; diff --git a/pkgs/development/python-modules/dodgy/default.nix b/pkgs/development/python-modules/dodgy/default.nix index ada91ac3181e..2e08bfc61341 100644 --- a/pkgs/development/python-modules/dodgy/default.nix +++ b/pkgs/development/python-modules/dodgy/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, isPy3k -, lib +{ + buildPythonPackage, + fetchFromGitHub, + isPy3k, + lib, -# pythonPackages -, mock -, nose + # pythonPackages + mock, + nose, }: buildPythonPackage rec { @@ -35,8 +36,6 @@ buildPythonPackage rec { mainProgram = "dodgy"; homepage = "https://github.com/landscapeio/dodgy"; license = licenses.mit; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/dogpile-cache/default.nix b/pkgs/development/python-modules/dogpile-cache/default.nix index e03a72626a97..c31498f7f48a 100644 --- a/pkgs/development/python-modules/dogpile-cache/default.nix +++ b/pkgs/development/python-modules/dogpile-cache/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook -, mako -, decorator -, stevedore -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, + mako, + decorator, + stevedore, + typing-extensions, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-+EuO0LD7KX0VEFVEf6jcr3uuVm1Nve/s3MHzdmKrWIs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ decorator diff --git a/pkgs/development/python-modules/dogtag-pki/default.nix b/pkgs/development/python-modules/dogtag-pki/default.nix index 53e49e7d7608..690e97fcb3d8 100644 --- a/pkgs/development/python-modules/dogtag-pki/default.nix +++ b/pkgs/development/python-modules/dogtag-pki/default.nix @@ -1,5 +1,13 @@ -{ stdenv, lib, fetchPypi, buildPythonPackage, cryptography, -python-ldap, requests, six }: +{ + stdenv, + lib, + fetchPypi, + buildPythonPackage, + cryptography, + python-ldap, + requests, + six, +}: buildPythonPackage rec { pname = "dogtag-pki"; @@ -11,14 +19,20 @@ buildPythonPackage rec { sha256 = "sha256-rQSnQPNYr5SyeNbKoFAbnGb2X/8utrfWLa8gu93hy2w="; }; - buildInputs = [ cryptography python-ldap ]; + buildInputs = [ + cryptography + python-ldap + ]; pythonImportsCheck = [ "pki" ]; - propagatedBuildInputs = [ requests six ]; + propagatedBuildInputs = [ + requests + six + ]; meta = with lib; { description = "An enterprise-class Certificate Authority"; - homepage = "https://github.com/dogtagpki/pki"; - license = licenses.gpl2; + homepage = "https://github.com/dogtagpki/pki"; + license = licenses.gpl2; maintainers = with maintainers; [ s1341 ]; }; } diff --git a/pkgs/development/python-modules/dogtail/default.nix b/pkgs/development/python-modules/dogtail/default.nix index 5186d9567058..ae4babf0c222 100644 --- a/pkgs/development/python-modules/dogtail/default.nix +++ b/pkgs/development/python-modules/dogtail/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, python -, pygobject3 -, pyatspi -, pycairo -, at-spi2-core -, gobject-introspection -, gtk3 -, gsettings-desktop-schemas -, fetchurl -, dbus -, xvfb-run -, wrapGAppsHook3 +{ + lib, + buildPythonPackage, + python, + pygobject3, + pyatspi, + pycairo, + at-spi2-core, + gobject-introspection, + gtk3, + gsettings-desktop-schemas, + fetchurl, + dbus, + xvfb-run, + wrapGAppsHook3, # , fetchPypi }: @@ -20,7 +21,10 @@ buildPythonPackage { version = "0.9.11"; format = "setuptools"; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; # https://gitlab.com/dogtail/dogtail/issues/1 # src = fetchPypi { @@ -32,12 +36,21 @@ buildPythonPackage { sha256 = "EGyxYopupfXPYtTL9mm9ujZorvh8AGaNXVKBPWsGy3c="; }; - patches = [ - ./nix-support.patch - ]; + patches = [ ./nix-support.patch ]; - nativeBuildInputs = [ gobject-introspection dbus xvfb-run wrapGAppsHook3 ]; # for setup hooks - propagatedBuildInputs = [ at-spi2-core gtk3 pygobject3 pyatspi pycairo ]; + nativeBuildInputs = [ + gobject-introspection + dbus + xvfb-run + wrapGAppsHook3 + ]; # for setup hooks + propagatedBuildInputs = [ + at-spi2-core + gtk3 + pygobject3 + pyatspi + pycairo + ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/doit-py/default.nix b/pkgs/development/python-modules/doit-py/default.nix index ee10af6396e7..8ebaadbcf2e7 100644 --- a/pkgs/development/python-modules/doit-py/default.nix +++ b/pkgs/development/python-modules/doit-py/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, doit -, configclass -, mergedict -, pytestCheckHook -, hunspell -, hunspellDicts +{ + lib, + fetchFromGitHub, + buildPythonPackage, + doit, + configclass, + mergedict, + pytestCheckHook, + hunspell, + hunspellDicts, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/doit/default.nix b/pkgs/development/python-modules/doit/default.nix index f855de38ffa2..78dbfe2e7bf4 100644 --- a/pkgs/development/python-modules/doit/default.nix +++ b/pkgs/development/python-modules/doit/default.nix @@ -1,72 +1,76 @@ -{ lib -, stdenv -, fetchPypi -, buildPythonPackage -, importlib-metadata -, isPy3k -, mock -, pytestCheckHook -, cloudpickle -, pyinotify -, macfsevents -, toml -, doit-py -, pyflakes -, configclass -, mergedict +{ + lib, + stdenv, + fetchPypi, + buildPythonPackage, + importlib-metadata, + isPy3k, + mock, + pytestCheckHook, + cloudpickle, + pyinotify, + macfsevents, + toml, + doit-py, + pyflakes, + configclass, + mergedict, }: -let doit = buildPythonPackage rec { - pname = "doit"; - version = "0.36.0"; - format = "setuptools"; +let + doit = buildPythonPackage rec { + pname = "doit"; + version = "0.36.0"; + format = "setuptools"; - disabled = !isPy3k; + disabled = !isPy3k; - src = fetchPypi { - inherit pname version; - hash = "sha256-cdB8zJUUyyL+WdmJmVd2ZeqrV+FvZE0EM2rgtLriNLw="; + src = fetchPypi { + inherit pname version; + hash = "sha256-cdB8zJUUyyL+WdmJmVd2ZeqrV+FvZE0EM2rgtLriNLw="; + }; + + propagatedBuildInputs = [ + cloudpickle + importlib-metadata + toml + ] ++ lib.optional stdenv.isLinux pyinotify ++ lib.optional stdenv.isDarwin macfsevents; + + nativeCheckInputs = [ + configclass + doit-py + mergedict + mock + pyflakes + pytestCheckHook + ]; + + # escape infinite recursion with doit-py + doCheck = false; + + passthru.tests = { + # hangs on darwin + check = doit.overridePythonAttrs (_: { + doCheck = !stdenv.isDarwin; + }); + }; + + pythonImportsCheck = [ "doit" ]; + + meta = with lib; { + homepage = "https://pydoit.org/"; + description = "A task management & automation tool"; + mainProgram = "doit"; + license = licenses.mit; + longDescription = '' + doit is a modern open-source build-tool written in python + designed to be simple to use and flexible to deal with complex + work-flows. It is specially suitable for building and managing + custom work-flows where there is no out-of-the-box solution + available. + ''; + maintainers = with maintainers; [ pSub ]; + }; }; - - propagatedBuildInputs = [ - cloudpickle - importlib-metadata - toml - ] ++ lib.optional stdenv.isLinux pyinotify - ++ lib.optional stdenv.isDarwin macfsevents; - - nativeCheckInputs = [ - configclass - doit-py - mergedict - mock - pyflakes - pytestCheckHook - ]; - - # escape infinite recursion with doit-py - doCheck = false; - - passthru.tests = { - # hangs on darwin - check = doit.overridePythonAttrs (_: { doCheck = !stdenv.isDarwin; }); - }; - - pythonImportsCheck = [ "doit" ]; - - meta = with lib; { - homepage = "https://pydoit.org/"; - description = "A task management & automation tool"; - mainProgram = "doit"; - license = licenses.mit; - longDescription = '' - doit is a modern open-source build-tool written in python - designed to be simple to use and flexible to deal with complex - work-flows. It is specially suitable for building and managing - custom work-flows where there is no out-of-the-box solution - available. - ''; - maintainers = with maintainers; [ pSub ]; - }; - -}; in doit +in +doit diff --git a/pkgs/development/python-modules/dokuwiki/default.nix b/pkgs/development/python-modules/dokuwiki/default.nix index 0d221c3b73b0..64ad7b1d9478 100644 --- a/pkgs/development/python-modules/dokuwiki/default.nix +++ b/pkgs/development/python-modules/dokuwiki/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { @@ -13,9 +14,7 @@ buildPythonPackage rec { hash = "sha256-gtTyO6jmjQT0ZwmxvH+RAe1v5aruNStfP1qz1+AqYXs="; }; - pythonImportsCheck = [ - "dokuwiki" - ]; + pythonImportsCheck = [ "dokuwiki" ]; meta = with lib; { homepage = "https://github.com/fmenabe/python-dokuwiki"; diff --git a/pkgs/development/python-modules/domeneshop/default.nix b/pkgs/development/python-modules/domeneshop/default.nix index c48d7603a045..a099301f5226 100644 --- a/pkgs/development/python-modules/domeneshop/default.nix +++ b/pkgs/development/python-modules/domeneshop/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, urllib3 -, certifi +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + urllib3, + certifi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-UCxIDnhIAkxZ1oQXYRyAMdGgUsUZ6AlYXwsxL49TFAg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ certifi diff --git a/pkgs/development/python-modules/dominate/default.nix b/pkgs/development/python-modules/dominate/default.nix index 2e1f9b7b3559..5e1db9ff7559 100644 --- a/pkgs/development/python-modules/dominate/default.nix +++ b/pkgs/development/python-modules/dominate/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-VYKEaH2biq4ZBOPWBRrRMt1KjAz1UbN+pOfkKjHRncQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dominate" - ]; + pythonImportsCheck = [ "dominate" ]; meta = with lib; { description = "Library for creating and manipulating HTML documents using an elegant DOM API"; diff --git a/pkgs/development/python-modules/doorbirdpy/default.nix b/pkgs/development/python-modules/doorbirdpy/default.nix index c06ab09a4d6f..b673e19ca483 100644 --- a/pkgs/development/python-modules/doorbirdpy/default.nix +++ b/pkgs/development/python-modules/doorbirdpy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, requests -, pytestCheckHook -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitLab, + requests, + pytestCheckHook, + requests-mock, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { hash = "sha256-pgL4JegD1gANefp7jLYb74N9wgpkDgQc/Fe+NyLBrkA="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook requests-mock ]; - pythonImportsCheck = [ - "doorbirdpy" - ]; + pythonImportsCheck = [ "doorbirdpy" ]; meta = with lib; { description = "Python wrapper for the DoorBird LAN API"; diff --git a/pkgs/development/python-modules/dopy/default.nix b/pkgs/development/python-modules/dopy/default.nix index 036a7658fa38..684f4c17ad45 100644 --- a/pkgs/development/python-modules/dopy/default.nix +++ b/pkgs/development/python-modules/dopy/default.nix @@ -1,7 +1,8 @@ -{ pkgs -, buildPythonPackage -, requests -, six +{ + pkgs, + buildPythonPackage, + requests, + six, }: buildPythonPackage { @@ -16,7 +17,10 @@ buildPythonPackage { sha256 = "0ams289qcgna96aak96jbz6wybs6qb95h2gn8lb4lmx2p5sq4q56"; }; - propagatedBuildInputs = [ requests six ]; + propagatedBuildInputs = [ + requests + six + ]; # contains no tests doCheck = false; diff --git a/pkgs/development/python-modules/dot2tex/default.nix b/pkgs/development/python-modules/dot2tex/default.nix index fdf7705469ee..5fbe44c98d55 100644 --- a/pkgs/development/python-modules/dot2tex/default.nix +++ b/pkgs/development/python-modules/dot2tex/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, substituteAll -, pyparsing -, graphviz -, pytestCheckHook -, texliveSmall +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + substituteAll, + pyparsing, + graphviz, + pytestCheckHook, + texliveSmall, }: buildPythonPackage rec { @@ -30,13 +31,16 @@ buildPythonPackage rec { ./remove-duplicate-script.patch ]; - propagatedBuildInputs = [ - pyparsing - ]; + propagatedBuildInputs = [ pyparsing ]; nativeCheckInputs = [ pytestCheckHook - (texliveSmall.withPackages (ps: with ps; [ preview pstricks ])) + (texliveSmall.withPackages ( + ps: with ps; [ + preview + pstricks + ] + )) ]; meta = with lib; { diff --git a/pkgs/development/python-modules/dotmap/default.nix b/pkgs/development/python-modules/dotmap/default.nix index 2300ac013a24..dcac1f08ae5a 100644 --- a/pkgs/development/python-modules/dotmap/default.nix +++ b/pkgs/development/python-modules/dotmap/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-WCGnkz8HX7R1Y0F8DpLgt8AxFYtMmmp+VhY0ebZYs2g="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "dotmap/test.py" - ]; + pytestFlagsArray = [ "dotmap/test.py" ]; - pythonImportsCheck = [ - "dotmap" - ]; + pythonImportsCheck = [ "dotmap" ]; meta = with lib; { description = "Python for dot-access dictionaries"; diff --git a/pkgs/development/python-modules/dotty-dict/default.nix b/pkgs/development/python-modules/dotty-dict/default.nix index 69da618a5a49..166f3cac9705 100644 --- a/pkgs/development/python-modules/dotty-dict/default.nix +++ b/pkgs/development/python-modules/dotty-dict/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools-scm +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dotwiz/default.nix b/pkgs/development/python-modules/dotwiz/default.nix index f7fcd7847b76..2c6b588cbb93 100644 --- a/pkgs/development/python-modules/dotwiz/default.nix +++ b/pkgs/development/python-modules/dotwiz/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyheck -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyheck, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-ABmkwpJ40JceNJieW5bhg0gqWNrR6Wxj84nLCjKU11A="; }; - propagatedBuildInputs = [ - pyheck - ]; + propagatedBuildInputs = [ pyheck ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dotwiz" - ]; + pythonImportsCheck = [ "dotwiz" ]; pytestFlagsArray = [ "--ignore=benchmarks" diff --git a/pkgs/development/python-modules/downloader-cli/default.nix b/pkgs/development/python-modules/downloader-cli/default.nix index 248bafca3967..719d84d00888 100644 --- a/pkgs/development/python-modules/downloader-cli/default.nix +++ b/pkgs/development/python-modules/downloader-cli/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, urllib3 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + urllib3, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-E2K3n9qCQofm4gXu1l7/0iMoJsniuzhsBUplr4aZ39s="; }; - propagatedBuildInputs = [ - urllib3 - ]; + propagatedBuildInputs = [ urllib3 ]; # Disable checks due to networking (Errno 101) doCheck = false; - pythonImportsCheck = [ - "downloader_cli" - ]; + pythonImportsCheck = [ "downloader_cli" ]; meta = with lib; { description = "Downloader with an awesome customizable progressbar"; diff --git a/pkgs/development/python-modules/dparse/default.nix b/pkgs/development/python-modules/dparse/default.nix index 44649dd0e991..82d49a3aabc1 100644 --- a/pkgs/development/python-modules/dparse/default.nix +++ b/pkgs/development/python-modules/dparse/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch2 -, setuptools -, packaging -, tomli -, pyyaml -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch2, + setuptools, + packaging, + tomli, + pyyaml, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,15 +31,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; passthru.optional-dependencies = { # FIXME pipenv = [ pipenv ]; @@ -49,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "dparse" - ]; + pythonImportsCheck = [ "dparse" ]; disabledTests = [ # requires unpackaged dependency pipenv diff --git a/pkgs/development/python-modules/dparse2/default.nix b/pkgs/development/python-modules/dparse2/default.nix index 9d6cb9b085f2..5b5848d28a75 100644 --- a/pkgs/development/python-modules/dparse2/default.nix +++ b/pkgs/development/python-modules/dparse2/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, toml -, pyyaml -, packvers -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + toml, + pyyaml, + packvers, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,18 +29,14 @@ buildPythonPackage rec { packvers ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Requries pipenv "tests/test_parse.py" ]; - pythonImportsCheck = [ - "dparse2" - ]; + pythonImportsCheck = [ "dparse2" ]; meta = with lib; { description = "Module to parse Python dependency files"; diff --git a/pkgs/development/python-modules/dpath/default.nix b/pkgs/development/python-modules/dpath/default.nix index 7ef15b2379c6..2a9409aa260a 100644 --- a/pkgs/development/python-modules/dpath/default.nix +++ b/pkgs/development/python-modules/dpath/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pythonOlder -, mock -, nose2 -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pythonOlder, + mock, + nose2, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-8eB8cuhgXGqegLZLyPQnFN4Ip4nH3kF+ScP4ehlpLkc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ hypothesis @@ -32,9 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "dpath" - ]; + pythonImportsCheck = [ "dpath" ]; meta = with lib; { description = "Python library for accessing and searching dictionaries via /slashed/paths ala xpath"; diff --git a/pkgs/development/python-modules/dpcontracts/default.nix b/pkgs/development/python-modules/dpcontracts/default.nix index 5a6491b7ee09..df423a46d478 100644 --- a/pkgs/development/python-modules/dpcontracts/default.nix +++ b/pkgs/development/python-modules/dpcontracts/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dpkt/default.nix b/pkgs/development/python-modules/dpkt/default.nix index 0e339ac00c9f..564a1aade892 100644 --- a/pkgs/development/python-modules/dpkt/default.nix +++ b/pkgs/development/python-modules/dpkt/default.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/draftjs-exporter/default.nix b/pkgs/development/python-modules/draftjs-exporter/default.nix index dd03080277b5..29205e3d5dd4 100644 --- a/pkgs/development/python-modules/draftjs-exporter/default.nix +++ b/pkgs/development/python-modules/draftjs-exporter/default.nix @@ -1,10 +1,11 @@ -{ beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, html5lib -, lib -, lxml -, python +{ + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + html5lib, + lib, + lxml, + python, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { passthru.optional-dependencies = { lxml = [ lxml ]; - html5lib = [ beautifulsoup4 html5lib ]; + html5lib = [ + beautifulsoup4 + html5lib + ]; }; checkInputs = passthru.optional-dependencies.lxml ++ passthru.optional-dependencies.html5lib; diff --git a/pkgs/development/python-modules/dragonfly/default.nix b/pkgs/development/python-modules/dragonfly/default.nix index 57b10f4a7c9d..1940c43ed06d 100644 --- a/pkgs/development/python-modules/dragonfly/default.nix +++ b/pkgs/development/python-modules/dragonfly/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, decorator -, packaging -, pynput -, regex -, lark -, enum34 -, pyperclip -, six -, requests -, psutil -, json-rpc -, werkzeug -, kaldi-active-grammar -, sounddevice -, webrtcvad -, setuptools -, xdotool -, wmctrl -, xorg +{ + lib, + buildPythonPackage, + fetchFromGitHub, + decorator, + packaging, + pynput, + regex, + lark, + enum34, + pyperclip, + six, + requests, + psutil, + json-rpc, + werkzeug, + kaldi-active-grammar, + sounddevice, + webrtcvad, + setuptools, + xdotool, + wmctrl, + xorg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dramatiq/default.nix b/pkgs/development/python-modules/dramatiq/default.nix index fb434bf0e8b4..b44873e99f9a 100644 --- a/pkgs/development/python-modules/dramatiq/default.nix +++ b/pkgs/development/python-modules/dramatiq/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, gevent -, pika -, prometheus-client -, pylibmc -, pytestCheckHook -, redis -, watchdog -, watchdog-gevent +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + gevent, + pika, + prometheus-client, + pylibmc, + pytestCheckHook, + redis, + watchdog, + watchdog-gevent, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-xKHTBo2AirxDXe/CLSqo++3AgxP4pVkGTNdgS5CCZ3c="; }; - propagatedBuildInputs = [ - prometheus-client - ]; + propagatedBuildInputs = [ prometheus-client ]; passthru.optional-dependencies = { all = [ @@ -40,25 +39,22 @@ buildPythonPackage rec { watchdog watchdog-gevent ]; - gevent = [ - gevent - ]; - memcached = [ - pylibmc - ]; - rabbitmq = [ - pika - ]; - redis = [ - redis - ]; + gevent = [ gevent ]; + memcached = [ pylibmc ]; + rabbitmq = [ pika ]; + redis = [ redis ]; watch = [ watchdog watchdog-gevent ]; }; - nativeCheckInputs = [ pytestCheckHook pika redis pylibmc ]; + nativeCheckInputs = [ + pytestCheckHook + pika + redis + pylibmc + ]; postPatch = '' sed -i ./setup.cfg \ @@ -68,32 +64,34 @@ buildPythonPackage rec { -e 's:--benchmark-compare::' \ ''; - disabledTests = [ - # Requires a running redis - "test_after_process_boot_call_has_no_blocked_signals" - "test_cli_can_be_reloaded_on_sighup" - "test_cli_can_watch_for_source_code_changes" - "test_cli_fork_functions_have_no_blocked_signals" - "test_consumer_threads_have_no_blocked_signals" - "test_middleware_fork_functions_have_no_blocked_signals" - "test_redis_broker_can_connect_via_client" - "test_redis_broker_can_connect_via_url" - "test_redis_process_100k_messages_with_cli" - "test_redis_process_10k_fib_with_cli" - "test_redis_process_1k_latency_with_cli" - "test_worker_threads_have_no_blocked_signals" - # Requires a running rabbitmq - "test_rabbitmq_broker_can_be_passed_a_list_of_parameters_for_failover" - "test_rabbitmq_broker_can_be_passed_a_list_of_uri_for_failover" - "test_rabbitmq_broker_can_be_passed_a_semicolon_separated_list_of_uris" - "test_rabbitmq_broker_connections_are_lazy" - "test_rabbitmq_process_100k_messages_with_cli" - "test_rabbitmq_process_10k_fib_with_cli" - "test_rabbitmq_process_1k_latency_with_cli" - ] ++ lib.optionals stdenv.isDarwin [ - # Takes too long for darwin ofborg - "test_retry_exceptions_can_specify_a_delay" - ]; + disabledTests = + [ + # Requires a running redis + "test_after_process_boot_call_has_no_blocked_signals" + "test_cli_can_be_reloaded_on_sighup" + "test_cli_can_watch_for_source_code_changes" + "test_cli_fork_functions_have_no_blocked_signals" + "test_consumer_threads_have_no_blocked_signals" + "test_middleware_fork_functions_have_no_blocked_signals" + "test_redis_broker_can_connect_via_client" + "test_redis_broker_can_connect_via_url" + "test_redis_process_100k_messages_with_cli" + "test_redis_process_10k_fib_with_cli" + "test_redis_process_1k_latency_with_cli" + "test_worker_threads_have_no_blocked_signals" + # Requires a running rabbitmq + "test_rabbitmq_broker_can_be_passed_a_list_of_parameters_for_failover" + "test_rabbitmq_broker_can_be_passed_a_list_of_uri_for_failover" + "test_rabbitmq_broker_can_be_passed_a_semicolon_separated_list_of_uris" + "test_rabbitmq_broker_connections_are_lazy" + "test_rabbitmq_process_100k_messages_with_cli" + "test_rabbitmq_process_10k_fib_with_cli" + "test_rabbitmq_process_1k_latency_with_cli" + ] + ++ lib.optionals stdenv.isDarwin [ + # Takes too long for darwin ofborg + "test_retry_exceptions_can_specify_a_delay" + ]; pythonImportsCheck = [ "dramatiq" ]; diff --git a/pkgs/development/python-modules/drawille/default.nix b/pkgs/development/python-modules/drawille/default.nix index a00b0b16892b..dbb88dc6fe37 100644 --- a/pkgs/development/python-modules/drawille/default.nix +++ b/pkgs/development/python-modules/drawille/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { doCheck = false; # pypi package has no tests, git has no tags - pythonImportsCheck = [ - "drawille" - ]; + pythonImportsCheck = [ "drawille" ]; meta = with lib; { description = "Drawing in terminal with unicode braille characters"; diff --git a/pkgs/development/python-modules/drawilleplot/default.nix b/pkgs/development/python-modules/drawilleplot/default.nix index 1ed452c1d109..b1efda476945 100644 --- a/pkgs/development/python-modules/drawilleplot/default.nix +++ b/pkgs/development/python-modules/drawilleplot/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, drawille -, matplotlib +{ + lib, + buildPythonPackage, + fetchPypi, + drawille, + matplotlib, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { matplotlib ]; - pythonImportsCheck = [ - "drawilleplot" - ]; + pythonImportsCheck = [ "drawilleplot" ]; meta = with lib; { description = "matplotlib backend for graph output in unicode terminals using drawille"; diff --git a/pkgs/development/python-modules/dremel3dpy/default.nix b/pkgs/development/python-modules/dremel3dpy/default.nix index 628b76576860..d2bcddbe180b 100644 --- a/pkgs/development/python-modules/dremel3dpy/default.nix +++ b/pkgs/development/python-modules/dremel3dpy/default.nix @@ -1,16 +1,17 @@ -{ lib -, async-timeout -, buildPythonPackage -, decorator -, fetchPypi -, imageio -, imutils -, pythonOlder -, requests -, urllib3 -, tqdm -, validators -, yarl +{ + lib, + async-timeout, + buildPythonPackage, + decorator, + fetchPypi, + imageio, + imutils, + pythonOlder, + requests, + urllib3, + tqdm, + validators, + yarl, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "dremel3dpy" - ]; + pythonImportsCheck = [ "dremel3dpy" ]; meta = with lib; { description = "Module for interacting with Dremel 3D printers"; diff --git a/pkgs/development/python-modules/drf-jwt/default.nix b/pkgs/development/python-modules/drf-jwt/default.nix index f4d70949c67a..5e4960385803 100644 --- a/pkgs/development/python-modules/drf-jwt/default.nix +++ b/pkgs/development/python-modules/drf-jwt/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyjwt -, djangorestframework +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyjwt, + djangorestframework, }: buildPythonPackage rec { @@ -20,8 +21,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyjwt djangorestframework - ] - ++ pyjwt.optional-dependencies.crypto; + ] ++ pyjwt.optional-dependencies.crypto; # requires setting up a django instance doCheck = false; diff --git a/pkgs/development/python-modules/drf-nested-routers/default.nix b/pkgs/development/python-modules/drf-nested-routers/default.nix index 849fe8bb130c..0cdf185fac68 100644 --- a/pkgs/development/python-modules/drf-nested-routers/default.nix +++ b/pkgs/development/python-modules/drf-nested-routers/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, django -, djangorestframework -, pytestCheckHook -, pytest-django -, ipdb +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + django, + djangorestframework, + pytestCheckHook, + pytest-django, + ipdb, }: buildPythonPackage rec { @@ -37,13 +38,9 @@ buildPythonPackage rec { }) ]; - buildInputs = [ - django - ]; + buildInputs = [ django ]; - propagatedBuildInputs = [ - djangorestframework - ]; + propagatedBuildInputs = [ djangorestframework ]; nativeCheckInputs = [ ipdb diff --git a/pkgs/development/python-modules/drf-spectacular-sidecar/default.nix b/pkgs/development/python-modules/drf-spectacular-sidecar/default.nix index 2ce7b3e92074..af9246717692 100644 --- a/pkgs/development/python-modules/drf-spectacular-sidecar/default.nix +++ b/pkgs/development/python-modules/drf-spectacular-sidecar/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-EoQKbxzXEuKC50/W1/tBB2wASJZmNNwg9r1qhIB4Ws8="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/drf-ujson2/default.nix b/pkgs/development/python-modules/drf-ujson2/default.nix index 58277fca7ed6..bf500258a025 100644 --- a/pkgs/development/python-modules/drf-ujson2/default.nix +++ b/pkgs/development/python-modules/drf-ujson2/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# dependencies -, django -, djangorestframework -, ujson + # dependencies + django, + djangorestframework, + ujson, -# tests -, pytest-django -, pytest-mock -, pytestCheckHook + # tests + pytest-django, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { sed -i '/--cov/d' setup.cfg ''; - buildInputs = [ - django - ]; + buildInputs = [ django ]; propagatedBuildInputs = [ djangorestframework diff --git a/pkgs/development/python-modules/drf-writable-nested/default.nix b/pkgs/development/python-modules/drf-writable-nested/default.nix index 2368c584a457..2211073b3235 100644 --- a/pkgs/development/python-modules/drf-writable-nested/default.nix +++ b/pkgs/development/python-modules/drf-writable-nested/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, djangorestframework -, pytestCheckHook -, pytest-django +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + djangorestframework, + pytestCheckHook, + pytest-django, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/drf-yasg/default.nix b/pkgs/development/python-modules/drf-yasg/default.nix index a8665ecc126f..d6692b1f78b5 100644 --- a/pkgs/development/python-modules/drf-yasg/default.nix +++ b/pkgs/development/python-modules/drf-yasg/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, inflection -, ruamel-yaml -, setuptools-scm -, six -, coreapi -, djangorestframework -, pytestCheckHook -, pytest-django -, datadiff +{ + lib, + buildPythonPackage, + fetchPypi, + inflection, + ruamel-yaml, + setuptools-scm, + six, + coreapi, + djangorestframework, + pytestCheckHook, + pytest-django, + datadiff, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { sed -i "/packaging/d" requirements/base.txt ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ six diff --git a/pkgs/development/python-modules/drivelib/default.nix b/pkgs/development/python-modules/drivelib/default.nix index 5125be5a418d..ff378520cdde 100644 --- a/pkgs/development/python-modules/drivelib/default.nix +++ b/pkgs/development/python-modules/drivelib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, expiringdict -, google-auth-httplib2 -, google-auth-oauthlib -, google-api-python-client +{ + lib, + buildPythonPackage, + fetchPypi, + expiringdict, + google-auth-httplib2, + google-auth-oauthlib, + google-api-python-client, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/drms/default.nix b/pkgs/development/python-modules/drms/default.nix index 8615edf31338..3ab19124eb8a 100644 --- a/pkgs/development/python-modules/drms/default.nix +++ b/pkgs/development/python-modules/drms/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pandas -, six -, astropy -, oldest-supported-numpy -, pytestCheckHook -, pytest-doctestplus -, pythonOlder -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pandas, + six, + astropy, + oldest-supported-numpy, + pytestCheckHook, + pytest-doctestplus, + pythonOlder, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -43,13 +44,9 @@ buildPythonPackage rec { pytest-doctestplus ]; - disabledTests = [ - "test_query_hexadecimal_strings" - ]; + disabledTests = [ "test_query_hexadecimal_strings" ]; - disabledTestPaths = [ - "docs/tutorial.rst" - ]; + disabledTestPaths = [ "docs/tutorial.rst" ]; pythonImportsCheck = [ "drms" ]; diff --git a/pkgs/development/python-modules/dronecan/default.nix b/pkgs/development/python-modules/dronecan/default.nix index fc051d105bf6..fc0c3e5e15f1 100644 --- a/pkgs/development/python-modules/dronecan/default.nix +++ b/pkgs/development/python-modules/dronecan/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-D2odxa9ADswrg6rgKLTyQulHpGec1r0lWRUZDV5YvyE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dronecan" - ]; + pythonImportsCheck = [ "dronecan" ]; meta = with lib; { description = "Python implementation of the DroneCAN v1 protocol stack"; diff --git a/pkgs/development/python-modules/dropbox/default.nix b/pkgs/development/python-modules/dropbox/default.nix index fd2813fe9e54..7f6d7c08e166 100644 --- a/pkgs/development/python-modules/dropbox/default.nix +++ b/pkgs/development/python-modules/dropbox/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, requests -, six -, stone -, urllib3 -, mock -, pytest-mock -, pytestCheckHook -, sphinxHook -, sphinx-rtd-theme -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + requests, + six, + stone, + urllib3, + mock, + pytest-mock, + pytestCheckHook, + sphinxHook, + sphinx-rtd-theme, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -22,7 +23,10 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - outputs = ["out" "doc"]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "dropbox"; @@ -31,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-0MDm6NB+0vkN8QRSHvuDYEyYhYQWQD4jsctyd5fLdwE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ requests @@ -55,9 +57,7 @@ buildPythonPackage rec { doCheck = true; - pythonImportsCheck = [ - "dropbox" - ]; + pythonImportsCheck = [ "dropbox" ]; nativeBuildInputs = [ sphinxHook diff --git a/pkgs/development/python-modules/ds-store/default.nix b/pkgs/development/python-modules/ds-store/default.nix index 70fc1198916d..0e2986b3a8a6 100644 --- a/pkgs/development/python-modules/ds-store/default.nix +++ b/pkgs/development/python-modules/ds-store/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mac-alias -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mac-alias, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-45lmkE61uXVCBUMyVVzowTJoALY1m9JI68s7Yb0vCks="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - mac-alias - ]; + propagatedBuildInputs = [ mac-alias ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ds_store" - ]; + pythonImportsCheck = [ "ds_store" ]; meta = with lib; { homepage = "https://github.com/al45tair/ds_store"; diff --git a/pkgs/development/python-modules/ds4drv/default.nix b/pkgs/development/python-modules/ds4drv/default.nix index ab08f7b9c2ed..0eca163928fa 100644 --- a/pkgs/development/python-modules/ds4drv/default.nix +++ b/pkgs/development/python-modules/ds4drv/default.nix @@ -1,6 +1,10 @@ -{ lib, fetchFromGitHub, buildPythonPackage -, evdev, pyudev -, bluez +{ + lib, + fetchFromGitHub, + buildPythonPackage, + evdev, + pyudev, + bluez, }: buildPythonPackage rec { @@ -16,7 +20,10 @@ buildPythonPackage rec { sha256 = "0vinpla0apizzykcyfis79mrm1i6fhns83nkzw85svypdhkx2g8v"; }; - propagatedBuildInputs = [ evdev pyudev ]; + propagatedBuildInputs = [ + evdev + pyudev + ]; buildInputs = [ bluez ]; diff --git a/pkgs/development/python-modules/dsinternals/default.nix b/pkgs/development/python-modules/dsinternals/default.nix index 93b600c04484..ef827f13ba15 100644 --- a/pkgs/development/python-modules/dsinternals/default.nix +++ b/pkgs/development/python-modules/dsinternals/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodomex -, pyopenssl -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodomex, + pyopenssl, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { pycryptodomex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "dsinternals" - ]; + pythonImportsCheck = [ "dsinternals" ]; - pytestFlagsArray = [ - "tests/*.py" - ]; + pytestFlagsArray = [ "tests/*.py" ]; meta = with lib; { description = "Module to interact with Windows Active Directory"; diff --git a/pkgs/development/python-modules/dsl2html/default.nix b/pkgs/development/python-modules/dsl2html/default.nix index c3c2621ca2a9..258f7a389a94 100644 --- a/pkgs/development/python-modules/dsl2html/default.nix +++ b/pkgs/development/python-modules/dsl2html/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, setuptools + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-LUtTMqQuwahIeMm9QvMe6rdHEw5LEjMQdyZFZvf/HRU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; pythonImportsCheck = [ "dsl" ]; diff --git a/pkgs/development/python-modules/dsmr-parser/default.nix b/pkgs/development/python-modules/dsmr-parser/default.nix index 22e76d6036cb..a5a91f975c78 100644 --- a/pkgs/development/python-modules/dsmr-parser/default.nix +++ b/pkgs/development/python-modules/dsmr-parser/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, dlms-cosem -, fetchFromGitHub -, pyserial -, pyserial-asyncio -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, pytz -, tailer +{ + lib, + buildPythonPackage, + dlms-cosem, + fetchFromGitHub, + pyserial, + pyserial-asyncio, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + pytz, + tailer, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { tailer ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ - "test_receive_packet" - ]; + disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_receive_packet" ]; - pythonImportsCheck = [ - "dsmr_parser" - ]; + pythonImportsCheck = [ "dsmr_parser" ]; meta = with lib; { description = "Python module to parse Dutch Smart Meter Requirements (DSMR)"; diff --git a/pkgs/development/python-modules/dtlssocket/default.nix b/pkgs/development/python-modules/dtlssocket/default.nix index 16b60266c6a7..589785da7bc3 100644 --- a/pkgs/development/python-modules/dtlssocket/default.nix +++ b/pkgs/development/python-modules/dtlssocket/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, autoconf -, cython_0 -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + autoconf, + cython_0, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dtschema/default.nix b/pkgs/development/python-modules/dtschema/default.nix index 4647dbbb3002..d4875e0da8aa 100644 --- a/pkgs/development/python-modules/dtschema/default.nix +++ b/pkgs/development/python-modules/dtschema/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, jsonschema -, pythonOlder -, rfc3987 -, ruamel-yaml -, setuptools-scm -, libfdt +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + jsonschema, + pythonOlder, + rfc3987, + ruamel-yaml, + setuptools-scm, + libfdt, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { ./fix_libfdt_name.patch ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ jsonschema @@ -43,24 +42,25 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "dtschema" - ]; + pythonImportsCheck = [ "dtschema" ]; meta = with lib; { description = "Tooling for devicetree validation using YAML and jsonschema"; homepage = "https://github.com/devicetree-org/dt-schema/"; changelog = "https://github.com/devicetree-org/dt-schema/releases/tag/v${version}"; - license = with licenses; [ bsd2 /* or */ gpl2Only ]; + license = with licenses; [ + bsd2 # or + gpl2Only + ]; maintainers = with maintainers; [ sorki ]; broken = ( # Library not loaded: @rpath/libfdt.1.dylib - stdenv.isDarwin || + stdenv.isDarwin + || - # see https://github.com/devicetree-org/dt-schema/issues/108 - versionAtLeast jsonschema.version "4.18" + # see https://github.com/devicetree-org/dt-schema/issues/108 + versionAtLeast jsonschema.version "4.18" ); }; } - diff --git a/pkgs/development/python-modules/dtw-python/default.nix b/pkgs/development/python-modules/dtw-python/default.nix index 02e4176e9b97..99567f3fd0c2 100644 --- a/pkgs/development/python-modules/dtw-python/default.nix +++ b/pkgs/development/python-modules/dtw-python/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, oldest-supported-numpy -, setuptools -, wheel -, scipy -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + oldest-supported-numpy, + setuptools, + wheel, + scipy, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { preCheck = "cd $out"; nativeCheckInputs = [ pytestCheckHook ]; # tests/ are not included to output package, so we have to set path explicitly - pytestFlagsArray = [ - "$src/tests" - ]; + pytestFlagsArray = [ "$src/tests" ]; pythonImportsCheck = [ "dtw" ]; diff --git a/pkgs/development/python-modules/duckdb-engine/default.nix b/pkgs/development/python-modules/duckdb-engine/default.nix index be851c7e16fa..eb596f7413ec 100644 --- a/pkgs/development/python-modules/duckdb-engine/default.nix +++ b/pkgs/development/python-modules/duckdb-engine/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, duckdb -, hypothesis -, ipython-sql -, pandas -, poetry-core -, pytest-remotedata -, snapshottest -, sqlalchemy -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + duckdb, + hypothesis, + ipython-sql, + pandas, + poetry-core, + pytest-remotedata, + snapshottest, + sqlalchemy, + typing-extensions, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-cm0vbz0VZ2Ws6FDWJO16q4KZW2obs0CBNrfY9jmR+6A="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ duckdb @@ -46,9 +45,7 @@ buildPythonPackage rec { "test_commit" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ hypothesis @@ -60,12 +57,11 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-m" "'not remote_data'" + "-m" + "'not remote_data'" ]; - pythonImportsCheck = [ - "duckdb_engine" - ]; + pythonImportsCheck = [ "duckdb_engine" ]; meta = with lib; { description = "SQLAlchemy driver for duckdb"; diff --git a/pkgs/development/python-modules/duckdb/default.nix b/pkgs/development/python-modules/duckdb/default.nix index 242502ab1bf6..132f72d70ee5 100644 --- a/pkgs/development/python-modules/duckdb/default.nix +++ b/pkgs/development/python-modules/duckdb/default.nix @@ -1,37 +1,46 @@ -{ lib -, stdenv -, buildPythonPackage -, duckdb -, fsspec -, google-cloud-storage -, numpy -, openssl -, pandas -, psutil -, pybind11 -, setuptools-scm -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + duckdb, + fsspec, + google-cloud-storage, + numpy, + openssl, + pandas, + psutil, + pybind11, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { - inherit (duckdb) patches pname rev src version; + inherit (duckdb) + patches + pname + rev + src + version + ; pyproject = true; - postPatch = (duckdb.postPatch or "") + '' - # we can't use sourceRoot otherwise patches don't apply, because the patches apply to the C++ library - cd tools/pythonpkg + postPatch = + (duckdb.postPatch or "") + + '' + # we can't use sourceRoot otherwise patches don't apply, because the patches apply to the C++ library + cd tools/pythonpkg - # 1. let nix control build cores - # 2. default to extension autoload & autoinstall disabled - substituteInPlace setup.py \ - --replace-fail "ParallelCompile()" 'ParallelCompile("NIX_BUILD_CORES")' \ - --replace-fail "define_macros.extend([('DUCKDB_EXTENSION_AUTOLOAD_DEFAULT', '1'), ('DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT', '1')])" "pass" - ''; + # 1. let nix control build cores + # 2. default to extension autoload & autoinstall disabled + substituteInPlace setup.py \ + --replace-fail "ParallelCompile()" 'ParallelCompile("NIX_BUILD_CORES")' \ + --replace-fail "define_macros.extend([('DUCKDB_EXTENSION_AUTOLOAD_DEFAULT', '1'), ('DUCKDB_EXTENSION_AUTOINSTALL_DEFAULT', '1')])" "pass" + ''; env = { BUILD_HTTPFS = 1; DUCKDB_BUILD_UNITY = 1; - OVERRIDE_GIT_DESCRIBE="v${version}-0-g${rev}"; + OVERRIDE_GIT_DESCRIBE = "v${version}-0-g${rev}"; }; nativeBuildInputs = [ @@ -54,11 +63,7 @@ buildPythonPackage rec { ]; # test flags from .github/workflows/Python.yml - pytestFlagsArray = [ - "--verbose" - ] ++ lib.optionals stdenv.isDarwin [ - "tests/fast" - ]; + pytestFlagsArray = [ "--verbose" ] ++ lib.optionals stdenv.isDarwin [ "tests/fast" ]; disabledTestPaths = [ # avoid dependency on mypy @@ -85,9 +90,7 @@ buildPythonPackage rec { rm -rf duckdb ''; - pythonImportsCheck = [ - "duckdb" - ]; + pythonImportsCheck = [ "duckdb" ]; meta = with lib; { description = "Python binding for DuckDB"; diff --git a/pkgs/development/python-modules/duct-py/default.nix b/pkgs/development/python-modules/duct-py/default.nix index 6a79305e90b5..d12eaec3d70d 100644 --- a/pkgs/development/python-modules/duct-py/default.nix +++ b/pkgs/development/python-modules/duct-py/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "duct" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # This test completely empties the environment then tries to run a Python command. diff --git a/pkgs/development/python-modules/duden/default.nix b/pkgs/development/python-modules/duden/default.nix index 6381da7271ee..a4da49d62f17 100644 --- a/pkgs/development/python-modules/duden/default.nix +++ b/pkgs/development/python-modules/duden/default.nix @@ -1,13 +1,14 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, crayons -, fetchFromGitHub -, poetry-core -, pyxdg -, pyyaml -, requests -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + crayons, + fetchFromGitHub, + poetry-core, + pyxdg, + pyyaml, + requests, + setuptools, }: let @@ -23,9 +24,7 @@ let hash = "sha256-c6IItrjFVbsdYg3sDrExcxv7aRcKhd/M5hiZD+wBZ2Y="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ beautifulsoup4 @@ -49,7 +48,10 @@ let ''; license = with lib.licenses; [ mit ]; mainProgram = "duden"; - maintainers = with lib.maintainers; [ AndersonTorres linuxissuper ]; + maintainers = with lib.maintainers; [ + AndersonTorres + linuxissuper + ]; }; }; in diff --git a/pkgs/development/python-modules/duecredit/default.nix b/pkgs/development/python-modules/duecredit/default.nix index b9f3b94ec513..4952d45e8ef8 100644 --- a/pkgs/development/python-modules/duecredit/default.nix +++ b/pkgs/development/python-modules/duecredit/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook -, vcrpy -, citeproc-py -, looseversion -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, + vcrpy, + citeproc-py, + looseversion, + requests, }: buildPythonPackage rec { @@ -39,7 +40,7 @@ buildPythonPackage rec { pytestCheckHook vcrpy ]; - disabledTests = [ "test_import_doi" ]; # tries to access network + disabledTests = [ "test_import_doi" ]; # tries to access network preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/duet/default.nix b/pkgs/development/python-modules/duet/default.nix index 1bde4c0f65fc..5fcf6e85c8b0 100644 --- a/pkgs/development/python-modules/duet/default.nix +++ b/pkgs/development/python-modules/duet/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + typing-extensions, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dufte/default.nix b/pkgs/development/python-modules/dufte/default.nix index b112e481a9cc..53ef911b8814 100644 --- a/pkgs/development/python-modules/dufte/default.nix +++ b/pkgs/development/python-modules/dufte/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, importlib-metadata -, matplotlib -, numpy -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + importlib-metadata, + matplotlib, + numpy, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -22,16 +23,12 @@ buildPythonPackage rec { hash = "sha256:0ccsmpj160xj6w503a948aw8icj55mw9414xnmijmmjvlwhm0p48"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ matplotlib numpy - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; preCheck = '' export HOME=$(mktemp -d) @@ -40,9 +37,7 @@ buildPythonPackage rec { ln -s $HOME/.config/matplotlib $HOME/.matplotlib ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "dufte" ]; diff --git a/pkgs/development/python-modules/dugong/default.nix b/pkgs/development/python-modules/dugong/default.nix index e66763b23d5e..95939d5ad8e5 100644 --- a/pkgs/development/python-modules/dugong/default.nix +++ b/pkgs/development/python-modules/dugong/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "1063c1779idc5nrjzfv5w1xqvyy3crapb2a2xll9y6xphxclnkjc"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Lots of tests hang during teardown with: # ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) @@ -30,7 +29,10 @@ buildPythonPackage rec { meta = with lib; { description = "HTTP 1.1 client designed for REST-ful APIs"; homepage = "https://github.com/python-dugong/python-dugong/"; - license = with licenses; [ psfl asl20 ]; + license = with licenses; [ + psfl + asl20 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/dulwich/default.nix b/pkgs/development/python-modules/dulwich/default.nix index 65a4eb19d88d..2a7ca19802b7 100644 --- a/pkgs/development/python-modules/dulwich/default.nix +++ b/pkgs/development/python-modules/dulwich/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, certifi -, fastimport -, fetchFromGitHub -, gevent -, geventhttpclient -, git -, glibcLocales -, gnupg -, gpgme -, paramiko -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-rust -, urllib3 +{ + lib, + stdenv, + buildPythonPackage, + certifi, + fastimport, + fetchFromGitHub, + gevent, + geventhttpclient, + git, + glibcLocales, + gnupg, + gpgme, + paramiko, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-rust, + urllib3, }: buildPythonPackage rec { @@ -44,28 +45,26 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - fastimport = [ - fastimport - ]; + fastimport = [ fastimport ]; pgp = [ gpgme gnupg ]; - paramiko = [ - paramiko - ]; + paramiko = [ paramiko ]; }; - nativeCheckInputs = [ - gevent - geventhttpclient - git - glibcLocales - pytest-xdist - pytestCheckHook - ] ++ passthru.optional-dependencies.fastimport - ++ passthru.optional-dependencies.pgp - ++ passthru.optional-dependencies.paramiko; + nativeCheckInputs = + [ + gevent + geventhttpclient + git + glibcLocales + pytest-xdist + pytestCheckHook + ] + ++ passthru.optional-dependencies.fastimport + ++ passthru.optional-dependencies.pgp + ++ passthru.optional-dependencies.paramiko; doCheck = !stdenv.isDarwin; @@ -87,9 +86,7 @@ buildPythonPackage rec { "dulwich/tests/compat/test_client.py" ]; - pythonImportsCheck = [ - "dulwich" - ]; + pythonImportsCheck = [ "dulwich" ]; meta = with lib; { description = "Implementation of the Git file formats and protocols"; @@ -99,7 +96,10 @@ buildPythonPackage rec { ''; homepage = "https://www.dulwich.io/"; changelog = "https://github.com/jelmer/dulwich/blob/dulwich-${version}/NEWS"; - license = with licenses; [ asl20 gpl2Plus ]; + license = with licenses; [ + asl20 + gpl2Plus + ]; maintainers = with maintainers; [ koral ]; }; } diff --git a/pkgs/development/python-modules/dunamai/default.nix b/pkgs/development/python-modules/dunamai/default.nix index f4929849869e..6631ac27fda1 100644 --- a/pkgs/development/python-modules/dunamai/default.nix +++ b/pkgs/development/python-modules/dunamai/default.nix @@ -1,12 +1,13 @@ -{ lib -, poetry-core -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, importlib-metadata -, packaging -, pytestCheckHook -, git +{ + lib, + poetry-core, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + importlib-metadata, + packaging, + pytestCheckHook, + git, }: buildPythonPackage rec { @@ -23,15 +24,9 @@ buildPythonPackage rec { hash = "sha256-oLJlBytdp9uVdKEdYDMz/IYnPP7XVnCUcThKO3IiW10="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # needs to be able to run dunami from PATH preCheck = '' @@ -52,9 +47,7 @@ buildPythonPackage rec { "test__version__from_git__shallow" ]; - pythonImportsCheck = [ - "dunamai" - ]; + pythonImportsCheck = [ "dunamai" ]; meta = with lib; { description = "Dynamic version generation"; diff --git a/pkgs/development/python-modules/dungeon-eos/default.nix b/pkgs/development/python-modules/dungeon-eos/default.nix index 9f357168b0b5..25ab02f7be55 100644 --- a/pkgs/development/python-modules/dungeon-eos/default.nix +++ b/pkgs/development/python-modules/dungeon-eos/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "dungeon-eos"; diff --git a/pkgs/development/python-modules/duo-client/default.nix b/pkgs/development/python-modules/duo-client/default.nix index 38b83c7b131f..1c71b925e99c 100644 --- a/pkgs/development/python-modules/duo-client/default.nix +++ b/pkgs/development/python-modules/duo-client/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, freezegun -, mock -, pytestCheckHook -, pythonOlder -, pytz -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + freezegun, + mock, + pytestCheckHook, + pythonOlder, + pytz, + setuptools, + six, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { --replace-fail "flake8" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - six - ]; + dependencies = [ six ]; nativeCheckInputs = [ freezegun @@ -45,9 +42,7 @@ buildPythonPackage rec { pytz ]; - pythonImportsCheck = [ - "duo_client" - ]; + pythonImportsCheck = [ "duo_client" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/durus/default.nix b/pkgs/development/python-modules/durus/default.nix index 43884551c731..3c7fd696fa99 100644 --- a/pkgs/development/python-modules/durus/default.nix +++ b/pkgs/development/python-modules/durus/default.nix @@ -1,4 +1,9 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "durus"; diff --git a/pkgs/development/python-modules/dvc-azure/default.nix b/pkgs/development/python-modules/dvc-azure/default.nix index dc166c55027e..f212889f2085 100644 --- a/pkgs/development/python-modules/dvc-azure/default.nix +++ b/pkgs/development/python-modules/dvc-azure/default.nix @@ -1,12 +1,13 @@ -{ lib -, adlfs -, azure-identity -, buildPythonPackage -, dvc-objects -, fetchPypi -, knack -, pythonRelaxDepsHook -, setuptools-scm +{ + lib, + adlfs, + azure-identity, + buildPythonPackage, + dvc-objects, + fetchPypi, + knack, + pythonRelaxDepsHook, + setuptools-scm, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { }; # Prevent circular dependency - pythonRemoveDeps = [ - "dvc" - ]; + pythonRemoveDeps = [ "dvc" ]; nativeBuildInputs = [ setuptools-scm diff --git a/pkgs/development/python-modules/dvc-data/default.nix b/pkgs/development/python-modules/dvc-data/default.nix index d4a9573f9a9b..6cbd0b1b71d8 100644 --- a/pkgs/development/python-modules/dvc-data/default.nix +++ b/pkgs/development/python-modules/dvc-data/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, dictdiffer -, diskcache -, dvc-objects -, fetchFromGitHub -, funcy -, pygtrie -, pythonOlder -, setuptools-scm -, shortuuid -, sqltrie +{ + lib, + buildPythonPackage, + dictdiffer, + diskcache, + dvc-objects, + fetchFromGitHub, + funcy, + pygtrie, + pythonOlder, + setuptools-scm, + shortuuid, + sqltrie, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-pr5RtVlGKKtpcmmCNGqcLiBFzJcajpqtPjBbzeCCHF8="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ dictdiffer @@ -43,9 +42,7 @@ buildPythonPackage rec { # Tests depend on upath which is unmaintained and only available as wheel doCheck = false; - pythonImportsCheck = [ - "dvc_data" - ]; + pythonImportsCheck = [ "dvc_data" ]; meta = with lib; { description = "DVC's data management subsystem"; diff --git a/pkgs/development/python-modules/dvc-gdrive/default.nix b/pkgs/development/python-modules/dvc-gdrive/default.nix index e7b2b0d7c499..1cecf014856d 100644 --- a/pkgs/development/python-modules/dvc-gdrive/default.nix +++ b/pkgs/development/python-modules/dvc-gdrive/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dvc -, fetchFromGitHub -, pydrive2 -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + dvc, + fetchFromGitHub, + pydrive2, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # Circular dependency with dvc doCheck = false; - pythonImportsCheck = [ - "dvc_gdrive" - ]; + pythonImportsCheck = [ "dvc_gdrive" ]; meta = with lib; { description = "Google Drive plugin for DVC"; diff --git a/pkgs/development/python-modules/dvc-gs/default.nix b/pkgs/development/python-modules/dvc-gs/default.nix index fa01c64c8daf..235c6a8e5f8e 100644 --- a/pkgs/development/python-modules/dvc-gs/default.nix +++ b/pkgs/development/python-modules/dvc-gs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, dvc-objects -, fetchPypi -, gcsfs -, pythonRelaxDepsHook -, setuptools-scm +{ + lib, + buildPythonPackage, + dvc-objects, + fetchPypi, + gcsfs, + pythonRelaxDepsHook, + setuptools-scm, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { }; # Prevent circular dependency - pythonRemoveDeps = [ - "dvc" - ]; + pythonRemoveDeps = [ "dvc" ]; nativeBuildInputs = [ setuptools-scm diff --git a/pkgs/development/python-modules/dvc-hdfs/default.nix b/pkgs/development/python-modules/dvc-hdfs/default.nix index b532941e42ba..7047f832c045 100644 --- a/pkgs/development/python-modules/dvc-hdfs/default.nix +++ b/pkgs/development/python-modules/dvc-hdfs/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dvc -, fetchFromGitHub -, fsspec -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + dvc, + fetchFromGitHub, + fsspec, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # Circular dependency with dvc doCheck = false; - pythonImportsCheck = [ - "dvc_hdfs" - ]; + pythonImportsCheck = [ "dvc_hdfs" ]; meta = with lib; { description = "HDFS/WebHDFS plugin for dvc"; diff --git a/pkgs/development/python-modules/dvc-http/default.nix b/pkgs/development/python-modules/dvc-http/default.nix index 48fb723cbc54..e9eb01b5379e 100644 --- a/pkgs/development/python-modules/dvc-http/default.nix +++ b/pkgs/development/python-modules/dvc-http/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp-retry -, buildPythonPackage -, fetchFromGitHub -, dvc-objects -, fsspec -, funcy -, pythonOlder -, pythonRelaxDepsHook -, setuptools-scm +{ + lib, + aiohttp-retry, + buildPythonPackage, + fetchFromGitHub, + dvc-objects, + fsspec, + funcy, + pythonOlder, + pythonRelaxDepsHook, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-ru/hOFv/RcS/7SBpTJU8xFxdllmaiH4dV1ouS6GGKkY="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ aiohttp-retry @@ -39,9 +38,7 @@ buildPythonPackage rec { # ModuleNotFoundError: No module named 'dvc.testing' doCheck = false; - pythonImportsCheck = [ - "dvc_http" - ]; + pythonImportsCheck = [ "dvc_http" ]; meta = with lib; { description = "HTTP plugin for dvc"; diff --git a/pkgs/development/python-modules/dvc-objects/default.nix b/pkgs/development/python-modules/dvc-objects/default.nix index 7911c1c411ad..91e2ca8b7807 100644 --- a/pkgs/development/python-modules/dvc-objects/default.nix +++ b/pkgs/development/python-modules/dvc-objects/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fsspec -, funcy -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, reflink -, setuptools-scm -, shortuuid +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fsspec, + funcy, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + reflink, + setuptools-scm, + shortuuid, }: buildPythonPackage rec { @@ -31,15 +32,9 @@ buildPythonPackage rec { --replace " --benchmark-skip" "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - fsspec - ] ++ lib.optionals (pythonOlder "3.12") [ - funcy - ]; + propagatedBuildInputs = [ fsspec ] ++ lib.optionals (pythonOlder "3.12") [ funcy ]; nativeCheckInputs = [ pytest-asyncio @@ -49,9 +44,7 @@ buildPythonPackage rec { shortuuid ]; - pythonImportsCheck = [ - "dvc_objects" - ]; + pythonImportsCheck = [ "dvc_objects" ]; disabledTestPaths = [ # Disable benchmarking diff --git a/pkgs/development/python-modules/dvc-s3/default.nix b/pkgs/development/python-modules/dvc-s3/default.nix index e112eca578c7..e6a18d59f272 100644 --- a/pkgs/development/python-modules/dvc-s3/default.nix +++ b/pkgs/development/python-modules/dvc-s3/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiobotocore -, boto3 -, buildPythonPackage -, dvc-objects -, fetchPypi -, flatten-dict -, pythonRelaxDepsHook -, s3fs -, setuptools-scm +{ + lib, + aiobotocore, + boto3, + buildPythonPackage, + dvc-objects, + fetchPypi, + flatten-dict, + pythonRelaxDepsHook, + s3fs, + setuptools-scm, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { }; # Prevent circular dependency - pythonRemoveDeps = [ - "dvc" - ]; + pythonRemoveDeps = [ "dvc" ]; # dvc-s3 uses boto3 directly, we add in propagatedBuildInputs postPatch = '' @@ -39,7 +38,8 @@ buildPythonPackage rec { aiobotocore boto3 dvc-objects - flatten-dict s3fs + flatten-dict + s3fs ]; # Network access is needed for tests diff --git a/pkgs/development/python-modules/dvc-ssh/default.nix b/pkgs/development/python-modules/dvc-ssh/default.nix index 3a1ef111c0cd..cba3ae243d17 100644 --- a/pkgs/development/python-modules/dvc-ssh/default.nix +++ b/pkgs/development/python-modules/dvc-ssh/default.nix @@ -1,11 +1,12 @@ -{ lib -, bcrypt -, buildPythonPackage -, dvc-objects -, fetchPypi -, pythonRelaxDepsHook -, setuptools-scm -, sshfs +{ + lib, + bcrypt, + buildPythonPackage, + dvc-objects, + fetchPypi, + pythonRelaxDepsHook, + setuptools-scm, + sshfs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/dvc-studio-client/default.nix b/pkgs/development/python-modules/dvc-studio-client/default.nix index c336f5a3cc74..63187c72342c 100644 --- a/pkgs/development/python-modules/dvc-studio-client/default.nix +++ b/pkgs/development/python-modules/dvc-studio-client/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dulwich -, fetchFromGitHub -, gitpython -, pythonOlder -, requests -, setuptools-scm -, voluptuous +{ + lib, + buildPythonPackage, + dulwich, + fetchFromGitHub, + gitpython, + pythonOlder, + requests, + setuptools-scm, + voluptuous, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-JLrsbgifoUnN1Mwml9tO3/SkA6miE14AGjxrFwEcRks="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ dulwich @@ -34,9 +33,7 @@ buildPythonPackage rec { voluptuous ]; - pythonImportsCheck = [ - "dvc_studio_client" - ]; + pythonImportsCheck = [ "dvc_studio_client" ]; # Tests try to access network doCheck = false; diff --git a/pkgs/development/python-modules/dvc-task/default.nix b/pkgs/development/python-modules/dvc-task/default.nix index b84a19b494ac..cbdc82063390 100644 --- a/pkgs/development/python-modules/dvc-task/default.nix +++ b/pkgs/development/python-modules/dvc-task/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools-scm -, kombu -, shortuuid -, celery -, funcy -, pytest-celery -, pytest-mock -, pytest-test-utils -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools-scm, + kombu, + shortuuid, + celery, + funcy, + pytest-celery, + pytest-mock, + pytest-test-utils, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-zSPv+eMGSsGXKtgi9r4EiGY1ZURXeJXWBKvR2GnfP8I="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ kombu @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "dvc_task" - ]; + pythonImportsCheck = [ "dvc_task" ]; meta = with lib; { description = "Celery task queue used in DVC"; diff --git a/pkgs/development/python-modules/dvclive/default.nix b/pkgs/development/python-modules/dvclive/default.nix index fd78c6ca873d..33adbdf07a08 100644 --- a/pkgs/development/python-modules/dvclive/default.nix +++ b/pkgs/development/python-modules/dvclive/default.nix @@ -1,33 +1,34 @@ -{ lib -, buildPythonPackage -, datasets -, dvc -, dvc-render -, dvc-studio-client -, fastai -, fetchFromGitHub -, funcy -, gto -, jsonargparse -, lightgbm -, lightning -, matplotlib -, mmcv -, numpy -, optuna -, pandas -, pillow -, psutil -, pynvml -, pythonOlder -, ruamel-yaml -, scikit-learn -, scmrepo -, setuptools-scm -, tensorflow -, torch -, transformers -, xgboost +{ + lib, + buildPythonPackage, + datasets, + dvc, + dvc-render, + dvc-studio-client, + fastai, + fetchFromGitHub, + funcy, + gto, + jsonargparse, + lightgbm, + lightning, + matplotlib, + mmcv, + numpy, + optuna, + pandas, + pillow, + psutil, + pynvml, + pythonOlder, + ruamel-yaml, + scikit-learn, + scmrepo, + setuptools-scm, + tensorflow, + torch, + transformers, + xgboost, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { hash = "sha256-yIViKlkCdoG2vSZdScL38fZd9musLRKzBd9wSR6lJdk="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ dvc @@ -81,29 +80,17 @@ buildPythonPackage rec { numpy pillow ]; - sklearn = [ - scikit-learn - ]; + sklearn = [ scikit-learn ]; plots = [ pandas scikit-learn numpy ]; - markdown = [ - matplotlib - ]; - mmcv = [ - mmcv - ]; - tf = [ - tensorflow - ]; - xgb = [ - xgboost - ]; - lgbm = [ - lightgbm - ]; + markdown = [ matplotlib ]; + mmcv = [ mmcv ]; + tf = [ tensorflow ]; + xgb = [ xgboost ]; + lgbm = [ lightgbm ]; huggingface = [ datasets transformers @@ -111,25 +98,19 @@ buildPythonPackage rec { # catalyst = [ # catalyst # ]; - fastai = [ - fastai - ]; + fastai = [ fastai ]; lightning = [ lightning torch jsonargparse ] ++ jsonargparse.optional-dependencies.signatures; - optuna = [ - optuna - ]; + optuna = [ optuna ]; }; # Circular dependency with dvc doCheck = false; - pythonImportsCheck = [ - "dvclive" - ]; + pythonImportsCheck = [ "dvclive" ]; meta = with lib; { description = "Library for logging machine learning metrics and other metadata in simple file formats"; diff --git a/pkgs/development/python-modules/dwdwfsapi/default.nix b/pkgs/development/python-modules/dwdwfsapi/default.nix index 824d23cbe23e..f903f7502147 100644 --- a/pkgs/development/python-modules/dwdwfsapi/default.nix +++ b/pkgs/development/python-modules/dwdwfsapi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, requests -, ciso8601 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + requests, + ciso8601, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-7dIVD+4MiYtsjAM5j67MlbiUN2Q5DpK6bUU0ZuHN2rk="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ requests @@ -31,9 +30,7 @@ buildPythonPackage rec { # All tests require network access doCheck = false; - pythonImportsCheck = [ - "dwdwfsapi" - ]; + pythonImportsCheck = [ "dwdwfsapi" ]; meta = with lib; { description = "Python client to retrieve data provided by DWD via their geoserver WFS API"; diff --git a/pkgs/development/python-modules/dynalite-devices/default.nix b/pkgs/development/python-modules/dynalite-devices/default.nix index e07190f98104..26cb2f39d932 100644 --- a/pkgs/development/python-modules/dynalite-devices/default.nix +++ b/pkgs/development/python-modules/dynalite-devices/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,22 +26,16 @@ buildPythonPackage rec { sed -i '/^addopts/d' setup.cfg ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; - pythonImportsCheck = [ - "dynalite_devices_lib" - ]; + pythonImportsCheck = [ "dynalite_devices_lib" ]; # it would use the erroneous tag v0.47 passthru.skipBulkUpdate = true; diff --git a/pkgs/development/python-modules/dynalite-panel/default.nix b/pkgs/development/python-modules/dynalite-panel/default.nix index 960f5544d30e..8b0f711a571a 100644 --- a/pkgs/development/python-modules/dynalite-panel/default.nix +++ b/pkgs/development/python-modules/dynalite-panel/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { --replace "~=" ">=" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "dynalite_panel" ]; diff --git a/pkgs/development/python-modules/dynd/default.nix b/pkgs/development/python-modules/dynd/default.nix index ff9364207c76..b60e57b34c9c 100644 --- a/pkgs/development/python-modules/dynd/default.nix +++ b/pkgs/development/python-modules/dynd/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, numpy -, libdynd -, fetchpatch -, cmake -, fetchFromGitHub -, pythonAtLeast +{ + lib, + buildPythonPackage, + cython, + numpy, + libdynd, + fetchpatch, + cmake, + fetchFromGitHub, + pythonAtLeast, }: buildPythonPackage rec { @@ -65,5 +66,4 @@ buildPythonPackage rec { description = "Python exposure of dynd"; maintainers = with maintainers; [ teh ]; }; - } diff --git a/pkgs/development/python-modules/e3-core/default.nix b/pkgs/development/python-modules/e3-core/default.nix index ef0b31b177ab..fbcc39e88325 100644 --- a/pkgs/development/python-modules/e3-core/default.nix +++ b/pkgs/development/python-modules/e3-core/default.nix @@ -1,28 +1,29 @@ -{ autoPatchelfHook -, buildPythonPackage -, colorama -, coverage -, distro -, fetchFromGitHub -, httpretty -, lib -, mock -, packaging -, psutil -, pytest -, pytest-socket -, python-dateutil -, pyyaml -, requests -, requests-cache -, requests-toolbelt -, stdenv -, setuptools -, stevedore -, tomlkit -, tox -, tqdm -, typeguard +{ + autoPatchelfHook, + buildPythonPackage, + colorama, + coverage, + distro, + fetchFromGitHub, + httpretty, + lib, + mock, + packaging, + psutil, + pytest, + pytest-socket, + python-dateutil, + pyyaml, + requests, + requests-cache, + requests-toolbelt, + stdenv, + setuptools, + stevedore, + tomlkit, + tox, + tqdm, + typeguard, }: buildPythonPackage rec { @@ -37,31 +38,31 @@ buildPythonPackage rec { hash = "sha256-dgEk2/qRfAYwUz+e5TWKUy/aPLpmyWZ32OV1i7QM9Fs="; }; - patches = [ - ./0001-use-distro-over-ld.patch - ]; + patches = [ ./0001-use-distro-over-ld.patch ]; nativeBuildInputs = [ autoPatchelfHook setuptools ]; - propagatedBuildInputs = [ - colorama - packaging - pyyaml - python-dateutil - requests - requests-cache - requests-toolbelt - tqdm - stevedore - ] ++ lib.optional stdenv.isLinux [ - # See setup.py:24. These are required only on Linux. Darwin has its own set - # of requirements. - psutil - distro - ]; + propagatedBuildInputs = + [ + colorama + packaging + pyyaml + python-dateutil + requests + requests-cache + requests-toolbelt + tqdm + stevedore + ] + ++ lib.optional stdenv.isLinux [ + # See setup.py:24. These are required only on Linux. Darwin has its own set + # of requirements. + psutil + distro + ]; pythonImportsCheck = [ "e3" ]; diff --git a/pkgs/development/python-modules/e3-testsuite/default.nix b/pkgs/development/python-modules/e3-testsuite/default.nix index 6c13bbb5a08e..c0f3f2af57cd 100644 --- a/pkgs/development/python-modules/e3-testsuite/default.nix +++ b/pkgs/development/python-modules/e3-testsuite/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, e3-core -, fetchFromGitHub -, lib -, setuptools -, stdenv +{ + buildPythonPackage, + e3-core, + fetchFromGitHub, + lib, + setuptools, + stdenv, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-V20tX0zi2DRHO42udUcW/CDMyBxh1uSTgac0zZGubsI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - e3-core - ]; + propagatedBuildInputs = [ e3-core ]; pythonImportsCheck = [ "e3" ]; diff --git a/pkgs/development/python-modules/eagle100/default.nix b/pkgs/development/python-modules/eagle100/default.nix index 9d5e5d795028..6d1bf6b34938 100644 --- a/pkgs/development/python-modules/eagle100/default.nix +++ b/pkgs/development/python-modules/eagle100/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-eyYY1x8IjIfUx5OiaOomiWunsO1++seFwXlI/iKDDLw="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "eagle100" - ]; + pythonImportsCheck = [ "eagle100" ]; meta = with lib; { description = "Python library for interacting with Rainforest EAGLE devices"; diff --git a/pkgs/development/python-modules/easy-thumbnails/default.nix b/pkgs/development/python-modules/easy-thumbnails/default.nix index 97afb19058f1..4fa457481c75 100644 --- a/pkgs/development/python-modules/easy-thumbnails/default.nix +++ b/pkgs/development/python-modules/easy-thumbnails/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, pillow -, pytestCheckHook -, pythonOlder -, reportlab -, svglib +{ + lib, + buildPythonPackage, + django, + fetchPypi, + pillow, + pytestCheckHook, + pythonOlder, + reportlab, + svglib, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { # Tests require a Django instance which is setup doCheck = false; - pythonImportsCheck = [ - "easy_thumbnails" - ]; + pythonImportsCheck = [ "easy_thumbnails" ]; meta = with lib; { description = "Easy thumbnails for Django"; diff --git a/pkgs/development/python-modules/easydict/default.nix b/pkgs/development/python-modules/easydict/default.nix index 14aae92ef5c4..2194fcf11246 100644 --- a/pkgs/development/python-modules/easydict/default.nix +++ b/pkgs/development/python-modules/easydict/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { doCheck = false; # No tests in archive - pythonImportsCheck = [ - "easydict" - ]; + pythonImportsCheck = [ "easydict" ]; meta = with lib; { homepage = "https://github.com/makinacorpus/easydict"; diff --git a/pkgs/development/python-modules/easyenergy/default.nix b/pkgs/development/python-modules/easyenergy/default.nix index 5e3cc6b94f5c..654227e0e059 100644 --- a/pkgs/development/python-modules/easyenergy/default.nix +++ b/pkgs/development/python-modules/easyenergy/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytest-freezer -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-freezer, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'addopts = "--cov"' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -47,9 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "easyenergy" - ]; + pythonImportsCheck = [ "easyenergy" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/easygui/default.nix b/pkgs/development/python-modules/easygui/default.nix index 96b1dbb16a24..18e720fbc20e 100644 --- a/pkgs/development/python-modules/easygui/default.nix +++ b/pkgs/development/python-modules/easygui/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, tkinter }: +{ + lib, + fetchPypi, + buildPythonPackage, + tkinter, +}: buildPythonPackage rec { pname = "easygui"; @@ -10,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-1lP/ee4fQvY7WgkPL5jOAjNdhq2JY7POJmGAXK/pmgQ="; }; - propagatedBuildInputs = [ - tkinter - ]; + propagatedBuildInputs = [ tkinter ]; doCheck = false; # No tests available diff --git a/pkgs/development/python-modules/easyocr/default.nix b/pkgs/development/python-modules/easyocr/default.nix index 18d76f8e6766..170ff96c35c8 100644 --- a/pkgs/development/python-modules/easyocr/default.nix +++ b/pkgs/development/python-modules/easyocr/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hdf5 -, numpy -, onnx -, opencv4 -, pillow -, pyaml -, pyclipper -, python-bidi -, pythonOlder -, scikit-image -, scipy -, shapely -, torch -, torchvision +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hdf5, + numpy, + onnx, + opencv4, + pillow, + pyaml, + pyclipper, + python-bidi, + pythonOlder, + scikit-image, + scipy, + shapely, + torch, + torchvision, }: buildPythonPackage rec { @@ -52,13 +53,9 @@ buildPythonPackage rec { torchvision ]; - nativeCheckInputs = [ - onnx - ]; + nativeCheckInputs = [ onnx ]; - pythonImportsCheck = [ - "easyocr" - ]; + pythonImportsCheck = [ "easyocr" ]; meta = with lib; { description = "Ready-to-use OCR with 80+ supported languages and all popular writing scripts"; diff --git a/pkgs/development/python-modules/easyprocess/default.nix b/pkgs/development/python-modules/easyprocess/default.nix index 7a82d78a1dbd..17d20b2b65dc 100644 --- a/pkgs/development/python-modules/easyprocess/default.nix +++ b/pkgs/development/python-modules/easyprocess/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "easyprocess"; diff --git a/pkgs/development/python-modules/easywatch/default.nix b/pkgs/development/python-modules/easywatch/default.nix index ecc7cc068ff7..b51b4c5e8d78 100644 --- a/pkgs/development/python-modules/easywatch/default.nix +++ b/pkgs/development/python-modules/easywatch/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, watchdog +{ + lib, + fetchPypi, + buildPythonPackage, + watchdog, }: buildPythonPackage rec { @@ -27,4 +28,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fgaz ]; }; } - diff --git a/pkgs/development/python-modules/ebaysdk/default.nix b/pkgs/development/python-modules/ebaysdk/default.nix index 27b3f8a29fbb..dcaa761e8d23 100644 --- a/pkgs/development/python-modules/ebaysdk/default.nix +++ b/pkgs/development/python-modules/ebaysdk/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ebcdic/default.nix b/pkgs/development/python-modules/ebcdic/default.nix index 430ebfe24c58..8bf1308939f2 100644 --- a/pkgs/development/python-modules/ebcdic/default.nix +++ b/pkgs/development/python-modules/ebcdic/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { sourceRoot = "${src.name}/${pname}"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/roskakori/CodecMapper/issues/18 @@ -38,9 +35,7 @@ buildPythonPackage rec { "test_has_ignored_codec_names" ]; - pythonImportsCheck = [ - "ebcdic" - ]; + pythonImportsCheck = [ "ebcdic" ]; meta = with lib; { description = "Additional EBCDIC codecs"; diff --git a/pkgs/development/python-modules/ebooklib/default.nix b/pkgs/development/python-modules/ebooklib/default.nix index 63ea0b4d06d2..67e00275f3b9 100644 --- a/pkgs/development/python-modules/ebooklib/default.nix +++ b/pkgs/development/python-modules/ebooklib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ecdsa/default.nix b/pkgs/development/python-modules/ecdsa/default.nix index 3380d0f09616..85eee5a8a953 100644 --- a/pkgs/development/python-modules/ecdsa/default.nix +++ b/pkgs/development/python-modules/ecdsa/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, + six, }: buildPythonPackage rec { @@ -24,5 +25,4 @@ buildPythonPackage rec { homepage = "https://github.com/warner/python-ecdsa"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/echo/default.nix b/pkgs/development/python-modules/echo/default.nix index abf6c957b047..b72a85ea9b03 100644 --- a/pkgs/development/python-modules/echo/default.nix +++ b/pkgs/development/python-modules/echo/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, setuptools-scm -, libxcrypt -, numpy -, qt6 -, qtpy -, pyqt6 -, pytestCheckHook -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + setuptools-scm, + libxcrypt, + numpy, + qt6, + qtpy, + pyqt6, + pytestCheckHook, + pytest-cov, }: buildPythonPackage rec { @@ -27,12 +28,14 @@ buildPythonPackage rec { sha256 = "sha256-0FmUA7kOFSRZXwbj8d7asujBPOjE2pFhu6TDNSGD4r0="; }; - nativeBuildInputs = [ setuptools setuptools-scm qt6.wrapQtAppsHook ]; - - buildInputs = lib.optionals (pythonOlder "3.9") [ - libxcrypt + nativeBuildInputs = [ + setuptools + setuptools-scm + qt6.wrapQtAppsHook ]; + buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; + propagatedBuildInputs = [ qt6.qtconnectivity qt6.qtbase diff --git a/pkgs/development/python-modules/ecoaliface/default.nix b/pkgs/development/python-modules/ecoaliface/default.nix index 1764eceeaf46..590645509304 100644 --- a/pkgs/development/python-modules/ecoaliface/default.nix +++ b/pkgs/development/python-modules/ecoaliface/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "f17b3452cfd31bb8c3509d59b846889c81db5fb85082c061c32703162cbe9083"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/ecos/default.nix b/pkgs/development/python-modules/ecos/default.nix index 0327845506b8..defeaeb95cb6 100644 --- a/pkgs/development/python-modules/ecos/default.nix +++ b/pkgs/development/python-modules/ecos/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, numpy -, pythonOlder -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + numpy, + pythonOlder, + scipy, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; checkPhase = '' cd ./src nosetests test_interface.py test_interface_bb.py ''; - pythonImportsCheck = [ - "ecos" - ]; + pythonImportsCheck = [ "ecos" ]; meta = with lib; { description = "Python interface for ECOS"; diff --git a/pkgs/development/python-modules/ecpy/default.nix b/pkgs/development/python-modules/ecpy/default.nix index 5f18e814cfe7..208ff118c83b 100644 --- a/pkgs/development/python-modules/ecpy/default.nix +++ b/pkgs/development/python-modules/ecpy/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, isPy3k, future }: +{ + lib, + fetchPypi, + buildPythonPackage, + isPy3k, + future, +}: buildPythonPackage rec { pname = "ecpy"; diff --git a/pkgs/development/python-modules/ecs-logging/default.nix b/pkgs/development/python-modules/ecs-logging/default.nix index cd55d1c4c2b9..86caf047fa80 100644 --- a/pkgs/development/python-modules/ecs-logging/default.nix +++ b/pkgs/development/python-modules/ecs-logging/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,16 +21,12 @@ buildPythonPackage rec { hash = "sha256-Gf44bT3/gmHy+yaQ1+bhCFB33ym2G14tzNqTQyC3BJU="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Circular dependency elastic-apm doCheck = false; - pythonImportsCheck = [ - "ecs_logging" - ]; + pythonImportsCheck = [ "ecs_logging" ]; meta = with lib; { description = "Logging formatters for the Elastic Common Schema (ECS) in Python"; diff --git a/pkgs/development/python-modules/ed25519-blake2b/default.nix b/pkgs/development/python-modules/ed25519-blake2b/default.nix index 1260261adf46..a034bbb6424b 100644 --- a/pkgs/development/python-modules/ed25519-blake2b/default.nix +++ b/pkgs/development/python-modules/ed25519-blake2b/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-cx6fk80awaZGSVdfNRmpn/4LseTPe/X18L5ROjnfc2M="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "ed25519_blake2b" - ]; + pythonImportsCheck = [ "ed25519_blake2b" ]; meta = with lib; { description = "Ed25519 public-key signatures (BLAKE2b fork)"; @@ -31,6 +28,9 @@ buildPythonPackage rec { homepage = "https://github.com/Matoking/python-ed25519-blake2b"; changelog = "https://github.com/Matoking/python-ed25519-blake2b/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ onny stargate01 ]; + maintainers = with maintainers; [ + onny + stargate01 + ]; }; } diff --git a/pkgs/development/python-modules/ed25519/default.nix b/pkgs/development/python-modules/ed25519/default.nix index 80e405313cbc..ca34e5dcfeb9 100644 --- a/pkgs/development/python-modules/ed25519/default.nix +++ b/pkgs/development/python-modules/ed25519/default.nix @@ -31,9 +31,7 @@ buildPythonPackage rec { versioneer ]; - pythonImportsCheck = [ - "ed25519" - ]; + pythonImportsCheck = [ "ed25519" ]; meta = with lib; { description = "Ed25519 public-key signatures"; diff --git a/pkgs/development/python-modules/edalize/default.nix b/pkgs/development/python-modules/edalize/default.nix index 33cf25b0305a..e710689aaa26 100644 --- a/pkgs/development/python-modules/edalize/default.nix +++ b/pkgs/development/python-modules/edalize/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, coreutils -, jinja2 -, pandas -, pyparsing -, pytestCheckHook -, pythonOlder -, which -, yosys +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + coreutils, + jinja2, + pandas, + pyparsing, + pytestCheckHook, + pythonOlder, + which, + yosys, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - jinja2 - ]; + propagatedBuildInputs = [ jinja2 ]; passthru.optional-dependencies = { reporting = [ @@ -55,9 +54,7 @@ buildPythonPackage rec { yosys ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "edalize" - ]; + pythonImportsCheck = [ "edalize" ]; disabledTests = [ # disable failures related to pandas 2.1.0 apply(...,errors="ignore") diff --git a/pkgs/development/python-modules/editables/default.nix b/pkgs/development/python-modules/editables/default.nix index f3db3a96d26f..06b93554322d 100644 --- a/pkgs/development/python-modules/editables/default.nix +++ b/pkgs/development/python-modules/editables/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-MJYn2bXErcDmaNjG+nusG6fIxdQVwtJ/YPCB+OgNHeI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Tests not included in archive. doCheck = false; diff --git a/pkgs/development/python-modules/editdistance-s/default.nix b/pkgs/development/python-modules/editdistance-s/default.nix index b6eca2e0242c..e0ae8a91703d 100644 --- a/pkgs/development/python-modules/editdistance-s/default.nix +++ b/pkgs/development/python-modules/editdistance-s/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, cffi +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + cffi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/editdistance/default.nix b/pkgs/development/python-modules/editdistance/default.nix index b4f62dd6e823..acfc12fb1ff8 100644 --- a/pkgs/development/python-modules/editdistance/default.nix +++ b/pkgs/development/python-modules/editdistance/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, cython -, pdm-backend -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + cython, + pdm-backend, + setuptools, + pythonOlder, }: buildPythonPackage rec { pname = "editdistance"; version = "0.8.1"; - pyproject =true; + pyproject = true; disabled = pythonOlder "3.7"; @@ -28,13 +29,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "editdistance" - ]; + pythonImportsCheck = [ "editdistance" ]; meta = with lib; { description = "Python implementation of the edit distance (Levenshtein distance)"; diff --git a/pkgs/development/python-modules/editdistpy/default.nix b/pkgs/development/python-modules/editdistpy/default.nix index 5a53b3e86800..f6b18b372149 100644 --- a/pkgs/development/python-modules/editdistpy/default.nix +++ b/pkgs/development/python-modules/editdistpy/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, pytestCheckHook + pytestCheckHook, -, pythonOlder + pythonOlder, -, setuptools -, cython + setuptools, + cython, -, symspellpy -, numpy -, editdistpy + symspellpy, + numpy, + editdistpy, }: buildPythonPackage rec { @@ -47,23 +48,18 @@ buildPythonPackage rec { ''; passthru.tests = { - check = editdistpy.overridePythonAttrs ( - _: { - doCheck = true; - } - ); + check = editdistpy.overridePythonAttrs (_: { + doCheck = true; + }); }; - pythonImportsCheck = [ - "editdistpy" - ]; + pythonImportsCheck = [ "editdistpy" ]; - meta = with lib; - { - description = "Fast Levenshtein and Damerau optimal string alignment algorithms"; - homepage = "https://github.com/mammothb/editdistpy"; - changelog = "https://github.com/mammothb/editdistpy/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ vizid ]; - }; + meta = with lib; { + description = "Fast Levenshtein and Damerau optimal string alignment algorithms"; + homepage = "https://github.com/mammothb/editdistpy"; + changelog = "https://github.com/mammothb/editdistpy/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ vizid ]; + }; } diff --git a/pkgs/development/python-modules/editor/default.nix b/pkgs/development/python-modules/editor/default.nix index 3cbc44cc5dff..d2256da39545 100644 --- a/pkgs/development/python-modules/editor/default.nix +++ b/pkgs/development/python-modules/editor/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, runs -, xmod -, pytestCheckHook -, tdir +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + runs, + xmod, + pytestCheckHook, + tdir, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-FVtat3gUsK5Lv6XSkVXj0hY6NkMGw6LxRWMJrZ/cIis="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ runs @@ -34,9 +33,7 @@ buildPythonPackage rec { tdir ]; - pythonImportsCheck = [ - "editor" - ]; + pythonImportsCheck = [ "editor" ]; meta = with lib; { description = "Open the default text editor"; diff --git a/pkgs/development/python-modules/editorconfig/default.nix b/pkgs/development/python-modules/editorconfig/default.nix index f074fcc4634a..d31b0717f09b 100644 --- a/pkgs/development/python-modules/editorconfig/default.nix +++ b/pkgs/development/python-modules/editorconfig/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, cmake +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cmake, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { fetchSubmodules = true; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - cmake - ]; + nativeCheckInputs = [ cmake ]; dontUseCmakeConfigure = true; diff --git a/pkgs/development/python-modules/edk2-pytool-library/default.nix b/pkgs/development/python-modules/edk2-pytool-library/default.nix index 20e417950b12..02803adea5e1 100644 --- a/pkgs/development/python-modules/edk2-pytool-library/default.nix +++ b/pkgs/development/python-modules/edk2-pytool-library/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, pyasn1 -, pyasn1-modules -, cryptography -, joblib -, gitpython -, sqlalchemy -, pygount -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + pyasn1, + pyasn1-modules, + cryptography, + joblib, + gitpython, + sqlalchemy, + pygount, + pytestCheckHook, }: buildPythonPackage rec { @@ -43,18 +44,14 @@ buildPythonPackage rec { pygount ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # requires network access "test_basic_parse" ]; - pythonImportsCheck = [ - "edk2toollib" - ]; + pythonImportsCheck = [ "edk2toollib" ]; meta = with lib; { description = "Python library package that supports UEFI development"; diff --git a/pkgs/development/python-modules/edlib/default.nix b/pkgs/development/python-modules/edlib/default.nix index b451480d3be1..50a773d15118 100644 --- a/pkgs/development/python-modules/edlib/default.nix +++ b/pkgs/development/python-modules/edlib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, edlib -, cython -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + edlib, + cython, + python, }: buildPythonPackage { @@ -33,5 +34,4 @@ buildPythonPackage { ''; pythonImportsCheck = [ "edlib" ]; - } diff --git a/pkgs/development/python-modules/eduvpn-common/default.nix b/pkgs/development/python-modules/eduvpn-common/default.nix index 5ecdbf12fcdb..8c17edcf2df6 100644 --- a/pkgs/development/python-modules/eduvpn-common/default.nix +++ b/pkgs/development/python-modules/eduvpn-common/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, callPackage -, libeduvpn-common -, selenium -, setuptools +{ + lib, + buildPythonPackage, + callPackage, + libeduvpn-common, + selenium, + setuptools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - selenium - ]; + nativeCheckInputs = [ selenium ]; pythonImportsCheck = [ "eduvpn_common" ]; diff --git a/pkgs/development/python-modules/edward/default.nix b/pkgs/development/python-modules/edward/default.nix index 1343bbc51d73..84a0b03b16e8 100644 --- a/pkgs/development/python-modules/edward/default.nix +++ b/pkgs/development/python-modules/edward/default.nix @@ -1,5 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, pythonAtLeast -, keras, numpy, scipy, six, tensorflow }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + pythonAtLeast, + keras, + numpy, + scipy, + six, + tensorflow, +}: buildPythonPackage rec { pname = "edward"; @@ -16,7 +26,13 @@ buildPythonPackage rec { # disabled for now due to Tensorflow trying to create files in $HOME: doCheck = false; - propagatedBuildInputs = [ keras numpy scipy six tensorflow ]; + propagatedBuildInputs = [ + keras + numpy + scipy + six + tensorflow + ]; meta = with lib; { description = "Probabilistic programming language using Tensorflow"; diff --git a/pkgs/development/python-modules/effdet/default.nix b/pkgs/development/python-modules/effdet/default.nix index e6a7945ae0be..73e8892b7a41 100644 --- a/pkgs/development/python-modules/effdet/default.nix +++ b/pkgs/development/python-modules/effdet/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -# build inputs -, torch -, torchvision -, timm -, pycocotools -, omegaconf +{ + lib, + buildPythonPackage, + fetchPypi, + # build inputs + torch, + torchvision, + timm, + pycocotools, + omegaconf, }: let pname = "effdet"; diff --git a/pkgs/development/python-modules/effect/default.nix b/pkgs/development/python-modules/effect/default.nix index b9c49e30a560..8de9fda50367 100644 --- a/pkgs/development/python-modules/effect/default.nix +++ b/pkgs/development/python-modules/effect/default.nix @@ -1,11 +1,12 @@ -{ lib -, attrs -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, six -, testtools +{ + lib, + attrs, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + six, + testtools, }: buildPythonPackage rec { @@ -30,17 +31,11 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - testtools - ]; + checkInputs = [ testtools ]; - pythonImportsCheck = [ - "effect" - ]; + pythonImportsCheck = [ "effect" ]; meta = with lib; { description = "Pure effects for Python"; diff --git a/pkgs/development/python-modules/eggdeps/default.nix b/pkgs/development/python-modules/eggdeps/default.nix index 5ce1552c519c..3ea2c4cccf04 100644 --- a/pkgs/development/python-modules/eggdeps/default.nix +++ b/pkgs/development/python-modules/eggdeps/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-interface -, zope-testing +{ + lib, + buildPythonPackage, + fetchPypi, + zope-interface, + zope-testing, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "a094ed7961a3dd38fcaaa69cf7a58670038acdff186360166d9e3d964b7a7323"; }; - propagatedBuildInputs = [ zope-interface zope-testing ]; + propagatedBuildInputs = [ + zope-interface + zope-testing + ]; # tests fail, see https://hydra.nixos.org/build/4316603/log/raw doCheck = false; @@ -26,5 +30,4 @@ buildPythonPackage rec { homepage = "http://thomas-lotze.de/en/software/eggdeps/"; license = licenses.zpl20; }; - } diff --git a/pkgs/development/python-modules/einops/default.nix b/pkgs/development/python-modules/einops/default.nix index dc775fcd6d11..e212894380ca 100644 --- a/pkgs/development/python-modules/einops/default.nix +++ b/pkgs/development/python-modules/einops/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, jupyter -, nbconvert -, numpy -, parameterized -, pillow -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + jupyter, + nbconvert, + numpy, + parameterized, + pillow, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d); ''; - pythonImportsCheck = [ - "einops" - ]; + pythonImportsCheck = [ "einops" ]; disabledTests = [ # Tests are failing as mxnet is not pulled-in @@ -54,9 +53,7 @@ buildPythonPackage rec { "test_backends_installed" ]; - disabledTestPaths = [ - "tests/test_layers.py" - ]; + disabledTestPaths = [ "tests/test_layers.py" ]; meta = with lib; { description = "Flexible and powerful tensor operations for readable and reliable code"; @@ -65,4 +62,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ yl3dy ]; }; } - diff --git a/pkgs/development/python-modules/eiswarnung/default.nix b/pkgs/development/python-modules/eiswarnung/default.nix index c4a3cf9339cb..0806d423a4b8 100644 --- a/pkgs/development/python-modules/eiswarnung/default.nix +++ b/pkgs/development/python-modules/eiswarnung/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pytz -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pytz, + yarl, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace 'pytz = ">=2022.7.1,<2024.0.0"' 'pytz = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "eiswarnung" - ]; + pythonImportsCheck = [ "eiswarnung" ]; meta = with lib; { description = "Module for getting Eiswarning API forecasts"; diff --git a/pkgs/development/python-modules/elastic-transport/default.nix b/pkgs/development/python-modules/elastic-transport/default.nix index c4f6b0435e84..dac3236e6c7e 100644 --- a/pkgs/development/python-modules/elastic-transport/default.nix +++ b/pkgs/development/python-modules/elastic-transport/default.nix @@ -1,21 +1,22 @@ -{ lib -, aiohttp -, buildPythonPackage -, certifi -, fetchFromGitHub -, mock -, opentelemetry-api -, opentelemetry-sdk -, orjson -, pytest-asyncio -, pytest-httpserver -, pytestCheckHook -, pythonOlder -, requests -, respx -, setuptools -, trustme -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + certifi, + fetchFromGitHub, + mock, + opentelemetry-api, + opentelemetry-sdk, + orjson, + pytest-asyncio, + pytest-httpserver, + pytestCheckHook, + pythonOlder, + requests, + respx, + setuptools, + trustme, + urllib3, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace " --cov-report=term-missing --cov=elastic_transport" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ urllib3 @@ -60,9 +59,7 @@ buildPythonPackage rec { trustme ]; - pythonImportsCheck = [ - "elastic_transport" - ]; + pythonImportsCheck = [ "elastic_transport" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/elasticsearch-dsl/default.nix b/pkgs/development/python-modules/elasticsearch-dsl/default.nix index 53778ce0b4e1..a74a4b5e5a99 100644 --- a/pkgs/development/python-modules/elasticsearch-dsl/default.nix +++ b/pkgs/development/python-modules/elasticsearch-dsl/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, elasticsearch -, python-dateutil -, six +{ + lib, + buildPythonPackage, + fetchPypi, + elasticsearch, + python-dateutil, + six, }: buildPythonPackage rec { @@ -16,7 +17,11 @@ buildPythonPackage rec { sha256 = "sha256-cy/IEae7B2O8P7WJLk6nzwbTG7o1XoezM1PpLfrNebQ="; }; - propagatedBuildInputs = [ elasticsearch python-dateutil six ]; + propagatedBuildInputs = [ + elasticsearch + python-dateutil + six + ]; # ImportError: No module named test_elasticsearch_dsl # Tests require a local instance of elasticsearch diff --git a/pkgs/development/python-modules/elasticsearch/default.nix b/pkgs/development/python-modules/elasticsearch/default.nix index 12aac19267e8..905a2e2daf44 100644 --- a/pkgs/development/python-modules/elasticsearch/default.nix +++ b/pkgs/development/python-modules/elasticsearch/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, certifi -, elastic-transport -, fetchPypi -, pythonOlder -, requests -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + certifi, + elastic-transport, + fetchPypi, + pythonOlder, + requests, + urllib3, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { sha256 = "sha256-5Ovrsi0J8O+DnCa2qpjhnM1ja8t38IwStWKwLKzV50Q="; }; - nativeBuildInputs = [ - elastic-transport - ]; + nativeBuildInputs = [ elastic-transport ]; propagatedBuildInputs = [ urllib3 @@ -31,17 +30,11 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - requests = [ - requests - ]; - async = [ - aiohttp - ]; + requests = [ requests ]; + async = [ aiohttp ]; }; - pythonImportsCheck = [ - "elasticsearch" - ]; + pythonImportsCheck = [ "elasticsearch" ]; # Check is disabled because running them destroy the content of the local cluster! # https://github.com/elasticsearch/elasticsearch-py/tree/master/test_elasticsearch diff --git a/pkgs/development/python-modules/elasticsearch8/default.nix b/pkgs/development/python-modules/elasticsearch8/default.nix index c1fa2c91372c..9b9f77d177b0 100644 --- a/pkgs/development/python-modules/elasticsearch8/default.nix +++ b/pkgs/development/python-modules/elasticsearch8/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, elastic-transport -, fetchPypi -, pythonOlder -, requests -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + elastic-transport, + fetchPypi, + pythonOlder, + requests, + urllib3, }: buildPythonPackage rec { @@ -20,27 +21,19 @@ buildPythonPackage rec { hash = "sha256-NWg+/dr8jXCCLeXBAXY1yL6/2CB0xCO5tswY4y/5erw="; }; - nativeBuildInputs = [ - elastic-transport - ]; + nativeBuildInputs = [ elastic-transport ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; passthru.optional-dependencies = { - async = [ - aiohttp - ]; + async = [ aiohttp ]; }; # Check is disabled because running them destroy the content of the local cluster! # https://github.com/elasticsearch/elasticsearch-py/tree/main/test_elasticsearch doCheck = false; - pythonImportsCheck = [ - "elasticsearch8" - ]; + pythonImportsCheck = [ "elasticsearch8" ]; meta = with lib; { description = "Official low-level client for Elasticsearch"; diff --git a/pkgs/development/python-modules/elegy/default.nix b/pkgs/development/python-modules/elegy/default.nix index 14b87970537c..966b8731f242 100644 --- a/pkgs/development/python-modules/elegy/default.nix +++ b/pkgs/development/python-modules/elegy/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, cloudpickle -, deepdish -, deepmerge -, dm-haiku -, fetchFromGitHub -, fetchpatch -, jaxlib -, poetry-core -, pytestCheckHook -, pythonOlder -, pyyaml -, sh -, tables -, tabulate -, tensorboardx -, tensorflow -, toolz -, torch -, treex -, typing-extensions +{ + lib, + buildPythonPackage, + cloudpickle, + deepdish, + deepmerge, + dm-haiku, + fetchFromGitHub, + fetchpatch, + jaxlib, + poetry-core, + pytestCheckHook, + pythonOlder, + pyyaml, + sh, + tables, + tabulate, + tensorboardx, + tensorflow, + toolz, + torch, + treex, + typing-extensions, }: buildPythonPackage rec { @@ -54,13 +55,9 @@ buildPythonPackage rec { --replace 'wandb = { version = "^0.12.10", optional = true }' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - jaxlib - ]; + buildInputs = [ jaxlib ]; propagatedBuildInputs = [ cloudpickle @@ -76,9 +73,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "elegy" - ]; + pythonImportsCheck = [ "elegy" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/elevate/default.nix b/pkgs/development/python-modules/elevate/default.nix index 4a8bf40e30fc..0db78266d320 100644 --- a/pkgs/development/python-modules/elevate/default.nix +++ b/pkgs/development/python-modules/elevate/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, fetchpatch, setuptools-scm }: +{ + lib, + fetchPypi, + buildPythonPackage, + fetchpatch, + setuptools-scm, +}: buildPythonPackage rec { pname = "elevate"; @@ -12,15 +18,13 @@ buildPythonPackage rec { patches = [ (fetchpatch { - # This is for not calling shell wrappers through Python, which fails. - url = "https://github.com/rkitover/elevate/commit/148b2bf698203ea39c9fe5d635ecd03cd94051af.patch"; - sha256 = "1ky3z1jxl1g28wbwbx8qq8jgx8sa8pr8s3fdcpdhdx1blw28cv61"; + # This is for not calling shell wrappers through Python, which fails. + url = "https://github.com/rkitover/elevate/commit/148b2bf698203ea39c9fe5d635ecd03cd94051af.patch"; + sha256 = "1ky3z1jxl1g28wbwbx8qq8jgx8sa8pr8s3fdcpdhdx1blw28cv61"; }) ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # No tests included doCheck = false; diff --git a/pkgs/development/python-modules/elgato/default.nix b/pkgs/development/python-modules/elgato/default.nix index f17b502826ce..40dc9b740c79 100644 --- a/pkgs/development/python-modules/elgato/default.nix +++ b/pkgs/development/python-modules/elgato/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "elgato" - ]; + pythonImportsCheck = [ "elgato" ]; meta = with lib; { description = "Python client for Elgato Key Lights"; diff --git a/pkgs/development/python-modules/eliot/default.nix b/pkgs/development/python-modules/eliot/default.nix index 4bf4f45a29cb..6c522d941387 100644 --- a/pkgs/development/python-modules/eliot/default.nix +++ b/pkgs/development/python-modules/eliot/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, aiocontextvars -, boltons -, hypothesis -, pyrsistent -, pytestCheckHook -, setuptools -, six -, testtools -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + aiocontextvars, + boltons, + hypothesis, + pyrsistent, + pytestCheckHook, + setuptools, + six, + testtools, + zope-interface, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { testtools ]; - pythonImportsCheck = [ - "eliot" - ]; + pythonImportsCheck = [ "eliot" ]; # Tests run eliot-prettyprint in out/bin. preCheck = '' diff --git a/pkgs/development/python-modules/eliqonline/default.nix b/pkgs/development/python-modules/eliqonline/default.nix index 3d3261071bbc..2b9b0e53c0bf 100644 --- a/pkgs/development/python-modules/eliqonline/default.nix +++ b/pkgs/development/python-modules/eliqonline/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, docopt -, fetchPypi -, pythonOlder -, pyyaml +{ + lib, + aiohttp, + buildPythonPackage, + docopt, + fetchPypi, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "eliqonline" - ]; + pythonImportsCheck = [ "eliqonline" ]; meta = with lib; { description = "Python client to the Eliq Online API"; diff --git a/pkgs/development/python-modules/elmax-api/default.nix b/pkgs/development/python-modules/elmax-api/default.nix index b3e94cca5f02..ad963e7e3d3f 100644 --- a/pkgs/development/python-modules/elmax-api/default.nix +++ b/pkgs/development/python-modules/elmax-api/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pyjwt -, pythonOlder -, yarl +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pyjwt, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Test require network access doCheck = false; - pythonImportsCheck = [ - "elmax_api" - ]; + pythonImportsCheck = [ "elmax_api" ]; meta = with lib; { description = "Python library for interacting with the Elmax cloud"; diff --git a/pkgs/development/python-modules/elmax/default.nix b/pkgs/development/python-modules/elmax/default.nix index a538be01ae9d..30bcb15c2106 100644 --- a/pkgs/development/python-modules/elmax/default.nix +++ b/pkgs/development/python-modules/elmax/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, poetry-core -, pythonOlder -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, yarl +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + poetry-core, + pythonOlder, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + yarl, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/email-validator/default.nix b/pkgs/development/python-modules/email-validator/default.nix index eea86196c229..3d073bb1e030 100644 --- a/pkgs/development/python-modules/email-validator/default.nix +++ b/pkgs/development/python-modules/email-validator/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchPypi -, idna -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dnspython, + fetchPypi, + idna, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { idna ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # dns.resolver.NoResolverConfiguration: cannot open /etc/resolv.conf @@ -35,9 +34,7 @@ buildPythonPackage rec { "tests/test_main.py" ]; - pythonImportsCheck = [ - "email_validator" - ]; + pythonImportsCheck = [ "email_validator" ]; meta = with lib; { description = "Email syntax and deliverability validation library"; diff --git a/pkgs/development/python-modules/emailthreads/default.nix b/pkgs/development/python-modules/emailthreads/default.nix index 236ab931f939..44ea2d3aa87e 100644 --- a/pkgs/development/python-modules/emailthreads/default.nix +++ b/pkgs/development/python-modules/emailthreads/default.nix @@ -1,5 +1,11 @@ -{ lib, fetchFromGitHub, buildPythonPackage -, python, isPy3k, unittestCheckHook }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python, + isPy3k, + unittestCheckHook, +}: buildPythonPackage rec { pname = "emailthreads"; diff --git a/pkgs/development/python-modules/embedding-reader/default.nix b/pkgs/development/python-modules/embedding-reader/default.nix index 9a1a8a0b1dfc..c49f6026d7e4 100644 --- a/pkgs/development/python-modules/embedding-reader/default.nix +++ b/pkgs/development/python-modules/embedding-reader/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, fetchFromGitHub -, fsspec -, lib -, numpy -, pandas -, pyarrow -, pytestCheckHook -, pythonRelaxDepsHook +{ + buildPythonPackage, + fetchFromGitHub, + fsspec, + lib, + numpy, + pandas, + pyarrow, + pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -25,7 +26,12 @@ buildPythonPackage rec { pythonRelaxDeps = [ "pyarrow" ]; - propagatedBuildInputs = [ fsspec numpy pandas pyarrow ]; + propagatedBuildInputs = [ + fsspec + numpy + pandas + pyarrow + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/emborg/default.nix b/pkgs/development/python-modules/emborg/default.nix index d20a7ea6e246..572c73fb786a 100644 --- a/pkgs/development/python-modules/emborg/default.nix +++ b/pkgs/development/python-modules/emborg/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, flit-core -, pytestCheckHook -, pythonOlder -, borgbackup -, appdirs -, arrow -, docopt -, inform -, nestedtext -, parametrize-from-file -, quantiphy -, requests -, shlib -, voluptuous +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + flit-core, + pytestCheckHook, + pythonOlder, + borgbackup, + appdirs, + arrow, + docopt, + inform, + nestedtext, + parametrize-from-file, + quantiphy, + requests, + shlib, + voluptuous, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-dK/6y1cjegomiy3fta2grUm4T0ZrylmstXfkJo4mDCE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ appdirs @@ -69,9 +68,7 @@ buildPythonPackage rec { }) ]; - pythonImportsCheck = [ - "emborg" - ]; + pythonImportsCheck = [ "emborg" ]; meta = with lib; { description = "Interactive command line interface to Borg Backup"; diff --git a/pkgs/development/python-modules/embrace/default.nix b/pkgs/development/python-modules/embrace/default.nix index 3c51a01ca816..7572e77728b2 100644 --- a/pkgs/development/python-modules/embrace/default.nix +++ b/pkgs/development/python-modules/embrace/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromSourcehut -, pytestCheckHook -, pythonOlder -, sqlparse -, wrapt +{ + lib, + stdenv, + buildPythonPackage, + fetchFromSourcehut, + pytestCheckHook, + pythonOlder, + sqlparse, + wrapt, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { wrapt ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "embrace" - ]; + pythonImportsCheck = [ "embrace" ]; # Some test for hot-reload fails on Darwin, but the rest of the library # should remain usable. (https://todo.sr.ht/~olly/embrace-sql/4) diff --git a/pkgs/development/python-modules/emcee/default.nix b/pkgs/development/python-modules/emcee/default.nix index 624faffed8ef..2ef1bdcd2ed6 100644 --- a/pkgs/development/python-modules/emcee/default.nix +++ b/pkgs/development/python-modules/emcee/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-83v7O/eo8LQux75IkLWU8moj3rYiyRjZdNeAwtjrJ60="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "emcee" - ]; + pythonImportsCheck = [ "emcee" ]; meta = with lib; { description = "Kick ass affine-invariant ensemble MCMC sampling"; diff --git a/pkgs/development/python-modules/emoji/default.nix b/pkgs/development/python-modules/emoji/default.nix index f2c036f7be02..994c90467bee 100644 --- a/pkgs/development/python-modules/emoji/default.nix +++ b/pkgs/development/python-modules/emoji/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-cCYZ+0IFHIR9++RfUbFTRMKYB9nC5dBaPMH6dSiAXK0="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_emojize_name_only" - ]; + disabledTests = [ "test_emojize_name_only" ]; - pythonImportsCheck = [ - "emoji" - ]; + pythonImportsCheck = [ "emoji" ]; meta = with lib; { description = "Emoji for Python"; diff --git a/pkgs/development/python-modules/empty-files/default.nix b/pkgs/development/python-modules/empty-files/default.nix index 264e4543a20f..249cbf6d8358 100644 --- a/pkgs/development/python-modules/empty-files/default.nix +++ b/pkgs/development/python-modules/empty-files/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-P/woyAN9cYdxryX1iM36C53c9dL6lo4eoTzBWT2cd3A="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # cyclic dependency with approvaltests doCheck = false; diff --git a/pkgs/development/python-modules/empy/default.nix b/pkgs/development/python-modules/empy/default.nix index 0d49b0a8a21a..de755cd5ac73 100644 --- a/pkgs/development/python-modules/empy/default.nix +++ b/pkgs/development/python-modules/empy/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { pname = "empy"; diff --git a/pkgs/development/python-modules/emulated-roku/default.nix b/pkgs/development/python-modules/emulated-roku/default.nix index 90807521cde8..1e29bead57fb 100644 --- a/pkgs/development/python-modules/emulated-roku/default.nix +++ b/pkgs/development/python-modules/emulated-roku/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, aiohttp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-7DbJl1e1ESWPCNuQX7m/ggXNDyPYZ5eNGwSz+jnxZj0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/enaml/default.nix b/pkgs/development/python-modules/enaml/default.nix index 4479f5065927..d08c69cee9e5 100644 --- a/pkgs/development/python-modules/enaml/default.nix +++ b/pkgs/development/python-modules/enaml/default.nix @@ -1,17 +1,18 @@ -{ lib -, atom -, buildPythonPackage -, bytecode -, cppy -, fetchFromGitHub -, kiwisolver -, pegen -, ply -, qtpy -, setuptools -, setuptools-scm -, pythonOlder -, sip +{ + lib, + atom, + buildPythonPackage, + bytecode, + cppy, + fetchFromGitHub, + kiwisolver, + pegen, + ply, + qtpy, + setuptools, + setuptools-scm, + pythonOlder, + sip, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/enamlx/default.nix b/pkgs/development/python-modules/enamlx/default.nix index 7c90d8a4b971..2cc2522c0d9d 100644 --- a/pkgs/development/python-modules/enamlx/default.nix +++ b/pkgs/development/python-modules/enamlx/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, enaml -, pyqtgraph -, pythonocc-core -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + enaml, + pyqtgraph, + pythonocc-core, + typing-extensions, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/encodec/default.nix b/pkgs/development/python-modules/encodec/default.nix index 179ab69aa9ff..6c8c363e75ec 100644 --- a/pkgs/development/python-modules/encodec/default.nix +++ b/pkgs/development/python-modules/encodec/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# dependencies -, einops -, numpy -, torch-bin -, torchaudio-bin + # dependencies + einops, + numpy, + torch-bin, + torchaudio-bin, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/energyflip-client/default.nix b/pkgs/development/python-modules/energyflip-client/default.nix index 50cb9e1884e8..ae25755ec26d 100644 --- a/pkgs/development/python-modules/energyflip-client/default.nix +++ b/pkgs/development/python-modules/energyflip-client/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "energyflip" - ]; + pythonImportsCheck = [ "energyflip" ]; meta = with lib; { description = "Library to communicate with the API behind EnergyFlip"; diff --git a/pkgs/development/python-modules/energyflow/default.nix b/pkgs/development/python-modules/energyflow/default.nix index 7308d0289023..4c6ce4df58dd 100644 --- a/pkgs/development/python-modules/energyflow/default.nix +++ b/pkgs/development/python-modules/energyflow/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, h5py -, numpy -, six -, wasserstein -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + h5py, + numpy, + six, + wasserstein, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,12 +33,8 @@ buildPythonPackage rec { wasserstein ]; - nativeCheckInputs = [ - pytestCheckHook - ]; - pytestFlagsArray = [ - "energyflow/tests" - ]; + nativeCheckInputs = [ pytestCheckHook ]; + pytestFlagsArray = [ "energyflow/tests" ]; disabledTestPaths = [ "energyflow/tests/test_archs.py" # requires tensorflow "energyflow/tests/test_emd.py" # requires "ot" diff --git a/pkgs/development/python-modules/energyzero/default.nix b/pkgs/development/python-modules/energyzero/default.nix index 0c99ced94a13..a5ebbbf93678 100644 --- a/pkgs/development/python-modules/energyzero/default.nix +++ b/pkgs/development/python-modules/energyzero/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytest-freezer -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-freezer, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'addopts = "--cov"' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -47,9 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "energyzero" - ]; + pythonImportsCheck = [ "energyzero" ]; meta = with lib; { description = "Module for getting the dynamic prices from EnergyZero"; diff --git a/pkgs/development/python-modules/enlighten/default.nix b/pkgs/development/python-modules/enlighten/default.nix index 713370bbb786..826e9fbe7805 100644 --- a/pkgs/development/python-modules/enlighten/default.nix +++ b/pkgs/development/python-modules/enlighten/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, blessed -, prefixed -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + blessed, + prefixed, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,24 +26,22 @@ buildPythonPackage rec { prefixed ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "enlighten" - ]; + pythonImportsCheck = [ "enlighten" ]; - disabledTests = [ - # AssertionError: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> is not... - "test_init" - # AssertionError: Invalid format specifier (deprecated since prefixed 0.4.0) - "test_floats_prefixed" - "test_subcounter_prefixed" - ] ++ lib.optionals stdenv.isDarwin [ - # https://github.com/Rockhopper-Technologies/enlighten/issues/44 - "test_autorefresh" - ]; + disabledTests = + [ + # AssertionError: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> is not... + "test_init" + # AssertionError: Invalid format specifier (deprecated since prefixed 0.4.0) + "test_floats_prefixed" + "test_subcounter_prefixed" + ] + ++ lib.optionals stdenv.isDarwin [ + # https://github.com/Rockhopper-Technologies/enlighten/issues/44 + "test_autorefresh" + ]; meta = with lib; { description = "Enlighten Progress Bar for Python Console Apps"; diff --git a/pkgs/development/python-modules/enocean/default.nix b/pkgs/development/python-modules/enocean/default.nix index 925c87ed3f8e..61c2ca0e1b20 100644 --- a/pkgs/development/python-modules/enocean/default.nix +++ b/pkgs/development/python-modules/enocean/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, beautifulsoup4 -, enum-compat -, pyserial -, pynose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + enum-compat, + pyserial, + pynose, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { pyserial ]; - nativeCheckInputs = [ - pynose - ]; + nativeCheckInputs = [ pynose ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/enochecker-core/default.nix b/pkgs/development/python-modules/enochecker-core/default.nix index 806bd4a14e9f..eb4971e7a88f 100644 --- a/pkgs/development/python-modules/enochecker-core/default.nix +++ b/pkgs/development/python-modules/enochecker-core/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,10 +18,7 @@ buildPythonPackage rec { hash = "sha256-N41p2XRCp55rcPXLpA4rPIARsva/dQzK8qafjzXtavI="; }; - - pythonImportsCheck = [ - "enochecker_core" - ]; + pythonImportsCheck = [ "enochecker_core" ]; # no tests upstream doCheck = false; diff --git a/pkgs/development/python-modules/enrich/default.nix b/pkgs/development/python-modules/enrich/default.nix index 71e1cd1b2e59..4210283b3e25 100644 --- a/pkgs/development/python-modules/enrich/default.nix +++ b/pkgs/development/python-modules/enrich/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, setuptools-scm, rich, pytest-mock }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools-scm, + rich, + pytest-mock, +}: buildPythonPackage rec { pname = "enrich"; @@ -14,7 +22,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ rich ]; - nativeCheckInputs = [ pytestCheckHook pytest-mock ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-mock + ]; disabledTests = [ # console output order is racy diff --git a/pkgs/development/python-modules/enterpriseattack/default.nix b/pkgs/development/python-modules/enterpriseattack/default.nix index 745cc331c604..96ebfdf12f57 100644 --- a/pkgs/development/python-modules/enterpriseattack/default.nix +++ b/pkgs/development/python-modules/enterpriseattack/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools -, ujson +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, + ujson, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-cxbGc9iQe94Th6MSUldI17oVCclFhUM78h1w+6KXzm4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ requests @@ -33,9 +32,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "enterpriseattack" - ]; + pythonImportsCheck = [ "enterpriseattack" ]; meta = with lib; { description = "Module to interact with the Mitre Att&ck Enterprise dataset"; diff --git a/pkgs/development/python-modules/entrance/default.nix b/pkgs/development/python-modules/entrance/default.nix index aa6c06e5bf5e..a9e66690e659 100644 --- a/pkgs/development/python-modules/entrance/default.nix +++ b/pkgs/development/python-modules/entrance/default.nix @@ -1,19 +1,36 @@ -{ lib, fetchPypi, buildPythonPackage, pythonOlder, routerFeatures -, janus, ncclient, paramiko, pyyaml, sanic }: +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + routerFeatures, + janus, + ncclient, + paramiko, + pyyaml, + sanic, +}: let # The `routerFeatures` flag optionally brings in some somewhat heavy # dependencies, in order to enable interacting with routers - opts = if routerFeatures then { - prePatch = '' - substituteInPlace ./setup.py --replace "extra_deps = []" "extra_deps = router_feature_deps" - ''; - extraBuildInputs = [ janus ncclient paramiko ]; - } else { - prePatch = ""; - extraBuildInputs = []; - }; - + opts = + if routerFeatures then + { + prePatch = '' + substituteInPlace ./setup.py --replace "extra_deps = []" "extra_deps = router_feature_deps" + ''; + extraBuildInputs = [ + janus + ncclient + paramiko + ]; + } + else + { + prePatch = ""; + extraBuildInputs = [ ]; + }; in buildPythonPackage rec { @@ -32,7 +49,10 @@ buildPythonPackage rec { # No useful tests doCheck = false; - propagatedBuildInputs = [ pyyaml sanic ] ++ opts.extraBuildInputs; + propagatedBuildInputs = [ + pyyaml + sanic + ] ++ opts.extraBuildInputs; prePatch = opts.prePatch; @@ -43,4 +63,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ simonchatts ]; }; } - diff --git a/pkgs/development/python-modules/entry-points-txt/default.nix b/pkgs/development/python-modules/entry-points-txt/default.nix index cac8c41f16f2..5d921495e731 100644 --- a/pkgs/development/python-modules/entry-points-txt/default.nix +++ b/pkgs/development/python-modules/entry-points-txt/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-klFSt3Od7xYgenpMP4DBFoZeQanGrmtJxDm5qeZ1Psc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace tox.ini \ --replace " --cov=entry_points_txt --no-cov-on-fail" "" ''; - pythonImportsCheck = [ - "entry_points_txt" - ]; + pythonImportsCheck = [ "entry_points_txt" ]; meta = with lib; { description = "Read & write entry_points.txt files"; diff --git a/pkgs/development/python-modules/entrypoint2/default.nix b/pkgs/development/python-modules/entrypoint2/default.nix index 6e81b70f5991..2e6ecc1a0bbd 100644 --- a/pkgs/development/python-modules/entrypoint2/default.nix +++ b/pkgs/development/python-modules/entrypoint2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, easyprocess -, path -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + easyprocess, + path, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "entrypoint2" - ]; + pythonImportsCheck = [ "entrypoint2" ]; meta = with lib; { description = "Easy to use command-line interface for python modules"; diff --git a/pkgs/development/python-modules/entrypoints/default.nix b/pkgs/development/python-modules/entrypoints/default.nix index fe83e797d97a..20b44c5fbd88 100644 --- a/pkgs/development/python-modules/entrypoints/default.nix +++ b/pkgs/development/python-modules/entrypoints/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, configparser -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + configparser, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-twbt2qkhihnrzWe1aBjwW7J1ibHKno15e3Sv+tTMrNQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Discover and load entry points from installed packages"; diff --git a/pkgs/development/python-modules/enturclient/default.nix b/pkgs/development/python-modules/enturclient/default.nix index 7140ded8bc4a..1b62fc88ef50 100644 --- a/pkgs/development/python-modules/enturclient/default.nix +++ b/pkgs/development/python-modules/enturclient/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Y2sBPikCAxumylP1LUy8XgjBRCWaNryn5XHSrRjJIIo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -38,9 +37,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "enturclient" - ]; + pythonImportsCheck = [ "enturclient" ]; meta = with lib; { description = "Python library for interacting with the Entur.org API"; diff --git a/pkgs/development/python-modules/enum-compat/default.nix b/pkgs/development/python-modules/enum-compat/default.nix index a8409353d489..fcf14cf94e72 100644 --- a/pkgs/development/python-modules/enum-compat/default.nix +++ b/pkgs/development/python-modules/enum-compat/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, enum34 }: +{ + lib, + buildPythonPackage, + fetchPypi, + enum34, +}: buildPythonPackage rec { pname = "enum-compat"; diff --git a/pkgs/development/python-modules/enum34/default.nix b/pkgs/development/python-modules/enum34/default.nix index 8ec22fc1cd73..940fe7af28d3 100644 --- a/pkgs/development/python-modules/enum34/default.nix +++ b/pkgs/development/python-modules/enum34/default.nix @@ -1,25 +1,28 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + unittestCheckHook, }: -if pythonAtLeast "3.4" then null else buildPythonPackage rec { - pname = "enum34"; - version = "1.1.10"; +if pythonAtLeast "3.4" then + null +else + buildPythonPackage rec { + pname = "enum34"; + version = "1.1.10"; - src = fetchPypi { - inherit pname version; - sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248"; - }; + src = fetchPypi { + inherit pname version; + sha256 = "cce6a7477ed816bd2542d03d53db9f0db935dd013b70f336a95c73979289f248"; + }; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ unittestCheckHook ]; - meta = with lib; { - homepage = "https://pypi.python.org/pypi/enum34"; - description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"; - license = licenses.bsd0; - }; - -} + meta = with lib; { + homepage = "https://pypi.python.org/pypi/enum34"; + description = "Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4"; + license = licenses.bsd0; + }; + } diff --git a/pkgs/development/python-modules/env-canada/default.nix b/pkgs/development/python-modules/env-canada/default.nix index 4b0fab97e95f..af882a3640e3 100644 --- a/pkgs/development/python-modules/env-canada/default.nix +++ b/pkgs/development/python-modules/env-canada/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, geopy -, imageio -, lxml -, pandas -, pillow -, pytestCheckHook -, python-dateutil -, pythonOlder -, setuptools -, voluptuous +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + geopy, + imageio, + lxml, + pandas, + pillow, + pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, + voluptuous, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-2lrZpjOdijE/udGRzUXT63xI+f9yI+04arfWdt6fMSA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -43,9 +42,7 @@ buildPythonPackage rec { voluptuous ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Tests require network access @@ -60,9 +57,7 @@ buildPythonPackage rec { "test_ecradar" ]; - pythonImportsCheck = [ - "env_canada" - ]; + pythonImportsCheck = [ "env_canada" ]; meta = with lib; { description = "Python library to get Environment Canada weather data"; diff --git a/pkgs/development/python-modules/environmental-override/default.nix b/pkgs/development/python-modules/environmental-override/default.nix index 3418f4169666..c61823ff7a19 100644 --- a/pkgs/development/python-modules/environmental-override/default.nix +++ b/pkgs/development/python-modules/environmental-override/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/environs/default.nix b/pkgs/development/python-modules/environs/default.nix index 67bca70171e4..34620e3b52f1 100644 --- a/pkgs/development/python-modules/environs/default.nix +++ b/pkgs/development/python-modules/environs/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, dj-database-url -, dj-email-url -, django-cache-url -, fetchFromGitHub -, flit-core -, marshmallow -, pytestCheckHook -, python-dotenv -, pythonOlder +{ + lib, + buildPythonPackage, + dj-database-url, + dj-email-url, + django-cache-url, + fetchFromGitHub, + flit-core, + marshmallow, + pytestCheckHook, + python-dotenv, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-9BqIlA2HcUlBiyTB7zxaLO0CzBRkx5mKMMdhvdr2Uqg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ marshmallow @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "environs" - ]; + pythonImportsCheck = [ "environs" ]; meta = with lib; { description = "Python modle for environment variable parsing"; diff --git a/pkgs/development/python-modules/envisage/default.nix b/pkgs/development/python-modules/envisage/default.nix index 74f70ee4979b..5eab0a1a3dda 100644 --- a/pkgs/development/python-modules/envisage/default.nix +++ b/pkgs/development/python-modules/envisage/default.nix @@ -1,14 +1,15 @@ -{ lib -, apptools -, buildPythonPackage -, fetchPypi -, fetchpatch -, ipython -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, traits +{ + lib, + apptools, + buildPythonPackage, + fetchPypi, + fetchpatch, + ipython, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + traits, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { "envisage/tests/test_egg_plugin_manager.py" ]; - pythonImportsCheck = [ - "envisage" - ]; + pythonImportsCheck = [ "envisage" ]; meta = with lib; { description = "Framework for building applications whose functionalities can be extended by adding plug-ins"; diff --git a/pkgs/development/python-modules/envoy-reader/default.nix b/pkgs/development/python-modules/envoy-reader/default.nix index 15603b59d23d..53d67fba4506 100644 --- a/pkgs/development/python-modules/envoy-reader/default.nix +++ b/pkgs/development/python-modules/envoy-reader/default.nix @@ -1,16 +1,17 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, envoy-utils -, fetchFromGitHub -, fetchpatch -, httpx -, pyjwt -, pytest-asyncio -, pytestCheckHook -, pytest-raises -, pythonOlder -, respx +{ + lib, + beautifulsoup4, + buildPythonPackage, + envoy-utils, + fetchFromGitHub, + fetchpatch, + httpx, + pyjwt, + pytest-asyncio, + pytestCheckHook, + pytest-raises, + pythonOlder, + respx, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { --replace "pyjwt==2.1.0" "pyjwt>=2.1.0" ''; - pythonImportsCheck = [ - "envoy_reader" - ]; + pythonImportsCheck = [ "envoy_reader" ]; meta = with lib; { description = "Python module to read from Enphase Envoy units"; diff --git a/pkgs/development/python-modules/envoy-utils/default.nix b/pkgs/development/python-modules/envoy-utils/default.nix index ff795aa62e3d..6827f9727182 100644 --- a/pkgs/development/python-modules/envoy-utils/default.nix +++ b/pkgs/development/python-modules/envoy-utils/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, zeroconf +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + zeroconf, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "13zn0d6k2a4nls9vp8cs0w07bgg4138vz18cadjadhm8p6r3bi0c"; }; - propagatedBuildInputs = [ - zeroconf - ]; + propagatedBuildInputs = [ zeroconf ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/envs/default.nix b/pkgs/development/python-modules/envs/default.nix index b22660efb6f6..3d113a4f2dfd 100644 --- a/pkgs/development/python-modules/envs/default.nix +++ b/pkgs/development/python-modules/envs/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, jinja2 -, mock -, pynose -, poetry-core -, pythonOlder -, terminaltables +{ + lib, + buildPythonPackage, + click, + fetchPypi, + jinja2, + mock, + pynose, + poetry-core, + pythonOlder, + terminaltables, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-nYQ1xphdHN1oKZ4ExY4r24rmz2ayWWqAeeb5qT8qA5g="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ click @@ -45,9 +44,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "envs" - ]; + pythonImportsCheck = [ "envs" ]; meta = with lib; { description = "Easy access to environment variables from Python"; diff --git a/pkgs/development/python-modules/enzyme/default.nix b/pkgs/development/python-modules/enzyme/default.nix index 9e043782585f..47c2abb01ed2 100644 --- a/pkgs/development/python-modules/enzyme/default.nix +++ b/pkgs/development/python-modules/enzyme/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { pname = "enzyme"; diff --git a/pkgs/development/python-modules/epc/default.nix b/pkgs/development/python-modules/epc/default.nix index b9d96558bb6f..81864a3de9f1 100644 --- a/pkgs/development/python-modules/epc/default.nix +++ b/pkgs/development/python-modules/epc/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sexpdata +{ + lib, + buildPythonPackage, + fetchPypi, + sexpdata, }: buildPythonPackage rec { @@ -22,5 +23,4 @@ buildPythonPackage rec { homepage = "https://github.com/tkf/python-epc"; license = licenses.gpl3; }; - } diff --git a/pkgs/development/python-modules/ephem/default.nix b/pkgs/development/python-modules/ephem/default.nix index 3b9f4fba9f50..6b0b760b978f 100644 --- a/pkgs/development/python-modules/ephem/default.nix +++ b/pkgs/development/python-modules/ephem/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, glibcLocales -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + glibcLocales, + pytest, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { LC_ALL="en_US.UTF-8" pytest --pyargs ephem.tests -k "not JPLTest" ''; - pythonImportsCheck = [ - "ephem" - ]; + pythonImportsCheck = [ "ephem" ]; meta = with lib; { description = "Compute positions of the planets and stars"; diff --git a/pkgs/development/python-modules/ephemeral-port-reserve/default.nix b/pkgs/development/python-modules/ephemeral-port-reserve/default.nix index 09db4df764d6..2a7e328f978b 100644 --- a/pkgs/development/python-modules/ephemeral-port-reserve/default.nix +++ b/pkgs/development/python-modules/ephemeral-port-reserve/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: let @@ -20,9 +21,7 @@ buildPythonPackage { hash = "sha256-R6NRpfaT05PO/cTWgCakiGfCuCyucjVOXbAezn5x1cU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals stdenv.isDarwin [ # can't find hostname in our darwin build environment @@ -31,9 +30,7 @@ buildPythonPackage { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "ephemeral_port_reserve" - ]; + pythonImportsCheck = [ "ephemeral_port_reserve" ]; meta = with lib; { description = "Find an unused port, reliably"; diff --git a/pkgs/development/python-modules/epion/default.nix b/pkgs/development/python-modules/epion/default.nix index 69afe290652a..293917b954da 100644 --- a/pkgs/development/python-modules/epion/default.nix +++ b/pkgs/development/python-modules/epion/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, pythonOlder -, pytz -, requests -, setuptools +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + pythonOlder, + pytz, + requests, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-9tE/SqR+GHZXeE+bOtXkLu+4jy1vO8WoiLjb6MJazxQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ docopt @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "epion" - ]; + pythonImportsCheck = [ "epion" ]; meta = with lib; { description = "Module to access Epion sensor data"; diff --git a/pkgs/development/python-modules/epson-projector/default.nix b/pkgs/development/python-modules/epson-projector/default.nix index 30e021842e76..93afde3804c5 100644 --- a/pkgs/development/python-modules/epson-projector/default.nix +++ b/pkgs/development/python-modules/epson-projector/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, async-timeout -, pyserial-asyncio +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + async-timeout, + pyserial-asyncio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/equinox/default.nix b/pkgs/development/python-modules/equinox/default.nix index cd4f60e8bad4..2ea869cee340 100644 --- a/pkgs/development/python-modules/equinox/default.nix +++ b/pkgs/development/python-modules/equinox/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, jax -, jaxlib -, jaxtyping -, typing-extensions -, beartype -, optax -, pytest-xdist -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + jax, + jaxlib, + jaxtyping, + typing-extensions, + beartype, + optax, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-3OwHND1YEdg/SppqiB7pCdp6v+lYwTbtX07tmyEMWDo="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ jax diff --git a/pkgs/development/python-modules/eradicate/default.nix b/pkgs/development/python-modules/eradicate/default.nix index 10fed495d6ea..b3586d07432d 100644 --- a/pkgs/development/python-modules/eradicate/default.nix +++ b/pkgs/development/python-modules/eradicate/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-ikiqNe1a+OeRraNBbtAx6v3LsTajWlgxm4wR2Tcbmjk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "eradicate" - ]; + pythonImportsCheck = [ "eradicate" ]; - pytestFlagsArray = [ - "test_eradicate.py" - ]; + pytestFlagsArray = [ "test_eradicate.py" ]; meta = with lib; { description = "Library to remove commented-out code from Python files"; diff --git a/pkgs/development/python-modules/escapism/default.nix b/pkgs/development/python-modules/escapism/default.nix index 484a608ba910..1146c3cb67d9 100644 --- a/pkgs/development/python-modules/escapism/default.nix +++ b/pkgs/development/python-modules/escapism/default.nix @@ -1,6 +1,7 @@ -{ pkgs -, buildPythonPackage -, fetchPypi +{ + pkgs, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/esig/default.nix b/pkgs/development/python-modules/esig/default.nix index f0183917c2c6..68af34c82e3a 100644 --- a/pkgs/development/python-modules/esig/default.nix +++ b/pkgs/development/python-modules/esig/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cmake -, ninja -, oldest-supported-numpy -, scikit-build -, setuptools -, numpy -, iisignature -, boost +{ + lib, + buildPythonPackage, + fetchPypi, + cmake, + ninja, + oldest-supported-numpy, + scikit-build, + setuptools, + numpy, + iisignature, + boost, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-BGZaJSrpNSwZMHBYFDmDVPZOtgam/EVyh5Y5FAB8e1o="; }; - buildInputs = [ - boost - ]; + buildInputs = [ boost ]; dontUseCmakeConfigure = true; @@ -35,14 +34,10 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; passthru.optional-dependencies = { - iisignature = [ - iisignature - ]; + iisignature = [ iisignature ]; }; # PyPI tarball has no tests diff --git a/pkgs/development/python-modules/espeak-phonemizer/default.nix b/pkgs/development/python-modules/espeak-phonemizer/default.nix index 5b9352905374..ff25558aee93 100644 --- a/pkgs/development/python-modules/espeak-phonemizer/default.nix +++ b/pkgs/development/python-modules/espeak-phonemizer/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, espeak-ng -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + espeak-ng, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/rhasspy/espeak-phonemizer/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/esper/default.nix b/pkgs/development/python-modules/esper/default.nix index a3def532c7be..f07667238231 100644 --- a/pkgs/development/python-modules/esper/default.nix +++ b/pkgs/development/python-modules/esper/default.nix @@ -3,7 +3,7 @@ fetchFromGitHub, flit-core, lib, - pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/esphome-dashboard-api/default.nix b/pkgs/development/python-modules/esphome-dashboard-api/default.nix index 0cb49cd6486e..9f45c3460ee9 100644 --- a/pkgs/development/python-modules/esphome-dashboard-api/default.nix +++ b/pkgs/development/python-modules/esphome-dashboard-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, aiohttp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + aiohttp, }: buildPythonPackage rec { @@ -29,15 +30,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; doCheck = false; # no tests - pythonImportsCheck = [ - "esphome_dashboard_api" - ]; + pythonImportsCheck = [ "esphome_dashboard_api" ]; meta = with lib; { description = "API to interact with ESPHome Dashboard"; diff --git a/pkgs/development/python-modules/esprima/default.nix b/pkgs/development/python-modules/esprima/default.nix index 774288c69943..8969ec792282 100644 --- a/pkgs/development/python-modules/esprima/default.nix +++ b/pkgs/development/python-modules/esprima/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { sha256 = "WtkPCReXhxyr6pOzE9gsdIeBlLk+nSnbxkS3OowEaHo="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test/__main__.py::TestEsprima" - ]; + pytestFlagsArray = [ "test/__main__.py::TestEsprima" ]; - pythonImportsCheck = [ - "esprima" - ]; + pythonImportsCheck = [ "esprima" ]; meta = with lib; { description = "Python parser for standard-compliant ECMAScript"; diff --git a/pkgs/development/python-modules/essentials-openapi/default.nix b/pkgs/development/python-modules/essentials-openapi/default.nix index 5fc825147656..f63b1dfa7a2d 100644 --- a/pkgs/development/python-modules/essentials-openapi/default.nix +++ b/pkgs/development/python-modules/essentials-openapi/default.nix @@ -14,7 +14,7 @@ pythonImportsCheckHook, pyyaml, rich, - setuptools + setuptools, }: buildPythonPackage rec { pname = "essentials-openapi"; @@ -28,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-/NYv0NrE8+0kQg5G3Qf2DtesMHlmKQYczNT8pFlNFZE="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; nativeCheckInputs = [ flask @@ -48,18 +46,24 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - full = [ click jinja2 rich httpx ]; + full = [ + click + jinja2 + rich + httpx + ]; }; - pythonImportsCheck = [ - "openapidocs" - ]; + pythonImportsCheck = [ "openapidocs" ]; meta = with lib; { homepage = "https://github.com/Neoteroi/essentials-openapi"; description = "Functions to handle OpenAPI Documentation"; changelog = "https://github.com/Neoteroi/essentials-openapi/releases/v${version}"; license = licenses.mit; - maintainers = with maintainers; [aldoborrero zimbatm]; + maintainers = with maintainers; [ + aldoborrero + zimbatm + ]; }; } diff --git a/pkgs/development/python-modules/essentials/default.nix b/pkgs/development/python-modules/essentials/default.nix index 69a494a0eb5d..7dd8adcccd71 100644 --- a/pkgs/development/python-modules/essentials/default.nix +++ b/pkgs/development/python-modules/essentials/default.nix @@ -20,19 +20,18 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "essentials" - ]; + pythonImportsCheck = [ "essentials" ]; meta = with lib; { homepage = "https://github.com/Neoteroi/essentials"; description = "General purpose classes and functions"; changelog = "https://github.com/Neoteroi/essentials/releases/v${version}"; license = licenses.mit; - maintainers = with maintainers; [aldoborrero zimbatm]; + maintainers = with maintainers; [ + aldoborrero + zimbatm + ]; }; } diff --git a/pkgs/development/python-modules/et-xmlfile/default.nix b/pkgs/development/python-modules/et-xmlfile/default.nix index b744d2a693dd..c595744c355e 100644 --- a/pkgs/development/python-modules/et-xmlfile/default.nix +++ b/pkgs/development/python-modules/et-xmlfile/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, lxml -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitLab, + lxml, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "et_xmlfile" - ]; + pythonImportsCheck = [ "et_xmlfile" ]; meta = with lib; { description = "An implementation of lxml.xmlfile for the standard library"; diff --git a/pkgs/development/python-modules/etcd/default.nix b/pkgs/development/python-modules/etcd/default.nix index 3cc989636f1b..939c752ba985 100644 --- a/pkgs/development/python-modules/etcd/default.nix +++ b/pkgs/development/python-modules/etcd/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, simplejson -, pytz -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + simplejson, + pytz, + requests, }: buildPythonPackage rec { @@ -23,7 +24,11 @@ buildPythonPackage rec { sed -i -e '13,14d;37d' setup.py ''; - propagatedBuildInputs = [ simplejson pytz requests ]; + propagatedBuildInputs = [ + simplejson + pytz + requests + ]; # No proper tests are available doCheck = false; diff --git a/pkgs/development/python-modules/etcd3/default.nix b/pkgs/development/python-modules/etcd3/default.nix index 494f70ddf4da..31ff0eb6dcc8 100644 --- a/pkgs/development/python-modules/etcd3/default.nix +++ b/pkgs/development/python-modules/etcd3/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, etcd -, fetchFromGitHub -, grpcio -, hypothesis -, mock -, pifpaf -, protobuf -, pytestCheckHook -, six -, tenacity +{ + lib, + buildPythonPackage, + etcd, + fetchFromGitHub, + grpcio, + hypothesis, + mock, + pifpaf, + protobuf, + pytestCheckHook, + six, + tenacity, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { pifpaf -e PYTHON run etcd --cluster ''; - pythonImportsCheck = [ - "etcd3" - ]; + pythonImportsCheck = [ "etcd3" ]; meta = with lib; { description = "Python client for the etcd API v3"; diff --git a/pkgs/development/python-modules/ete3/default.nix b/pkgs/development/python-modules/ete3/default.nix index f36128784dad..4666b2094645 100644 --- a/pkgs/development/python-modules/ete3/default.nix +++ b/pkgs/development/python-modules/ete3/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, numpy -, six -, withTreeVisualization ? false -, lxml -, withXmlSupport ? false -, pyqt5 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + numpy, + six, + withTreeVisualization ? false, + lxml, + withXmlSupport ? false, + pyqt5, }: buildPythonPackage rec { @@ -20,13 +21,13 @@ buildPythonPackage rec { sha256 = "sha256-BqO3+o7ZAYewdqjbvlsbYqzulCAdPG6CL1X0SWAe9vI="; }; - doCheck = false; # Tests are (i) not 3.x compatible, (ii) broken under 2.7 pythonImportsCheck = [ "ete3" ]; - propagatedBuildInputs = [ six numpy ] - ++ lib.optional withTreeVisualization pyqt5 - ++ lib.optional withXmlSupport lxml; + propagatedBuildInputs = [ + six + numpy + ] ++ lib.optional withTreeVisualization pyqt5 ++ lib.optional withXmlSupport lxml; meta = with lib; { description = "A Python framework for the analysis and visualization of trees"; diff --git a/pkgs/development/python-modules/etebase/default.nix b/pkgs/development/python-modules/etebase/default.nix index 15815f33ee4f..8bbe0f9d9f70 100644 --- a/pkgs/development/python-modules/etebase/default.nix +++ b/pkgs/development/python-modules/etebase/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, rustPlatform -, cargo -, pkg-config -, rustc -, rustfmt -, setuptools-rust -, openssl -, Security -, msgpack +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + rustPlatform, + cargo, + pkg-config, + rustc, + rustfmt, + setuptools-rust, + openssl, + Security, + msgpack, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; - propagatedBuildInputs = [ - msgpack - ]; + propagatedBuildInputs = [ msgpack ]; postPatch = '' # Use system OpenSSL, which gets security updates. @@ -55,7 +54,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "etebase" ]; - meta = with lib; { broken = stdenv.isDarwin; homepage = "https://www.etebase.com/"; diff --git a/pkgs/development/python-modules/etelemetry/default.nix b/pkgs/development/python-modules/etelemetry/default.nix index a3b9008fc1ca..c61159a4e1e7 100644 --- a/pkgs/development/python-modules/etelemetry/default.nix +++ b/pkgs/development/python-modules/etelemetry/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, ci-info -, ci-py -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + ci-info, + ci-py, + requests, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/eternalegypt/default.nix b/pkgs/development/python-modules/eternalegypt/default.nix index 2065d603fae1..ef6c599625c8 100644 --- a/pkgs/development/python-modules/eternalegypt/default.nix +++ b/pkgs/development/python-modules/eternalegypt/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, attrs -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + attrs, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "eternalegypt" - ]; + pythonImportsCheck = [ "eternalegypt" ]; meta = with lib; { description = "Python API for Netgear LTE modems"; diff --git a/pkgs/development/python-modules/etesync/default.nix b/pkgs/development/python-modules/etesync/default.nix index d65698c07ad6..95a7057eb1e2 100644 --- a/pkgs/development/python-modules/etesync/default.nix +++ b/pkgs/development/python-modules/etesync/default.nix @@ -1,8 +1,28 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, - appdirs, asn1crypto, cffi, cryptography, furl, idna, orderedmultidict, - packaging, peewee, py, pyasn1, pycparser, pyparsing, pyscrypt, - python-dateutil, pytz, requests, six, vobject, - pytest +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + appdirs, + asn1crypto, + cffi, + cryptography, + furl, + idna, + orderedmultidict, + packaging, + peewee, + py, + pyasn1, + pycparser, + pyparsing, + pyscrypt, + python-dateutil, + pytz, + requests, + six, + vobject, + pytest, }: buildPythonPackage rec { @@ -38,9 +58,7 @@ buildPythonPackage rec { vobject ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' pytest tests/test_collections.py diff --git a/pkgs/development/python-modules/eth-abi/default.nix b/pkgs/development/python-modules/eth-abi/default.nix index 8e45e945218f..61ba45810459 100644 --- a/pkgs/development/python-modules/eth-abi/default.nix +++ b/pkgs/development/python-modules/eth-abi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, eth-hash -, eth-typing -, eth-utils -, hypothesis -, parsimonious -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + eth-hash, + eth-typing, + eth-utils, + hypothesis, + parsimonious, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/eth-account/default.nix b/pkgs/development/python-modules/eth-account/default.nix index a56ad36be639..059fd610cb9a 100644 --- a/pkgs/development/python-modules/eth-account/default.nix +++ b/pkgs/development/python-modules/eth-account/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, bitarray -, eth-abi -, eth-keyfile -, eth-keys -, eth-rlp -, eth-utils -, websockets -, hexbytes -, pythonOlder -, rlp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + bitarray, + eth-abi, + eth-keyfile, + eth-keys, + eth-rlp, + eth-utils, + websockets, + hexbytes, + pythonOlder, + rlp, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/eth-hash/default.nix b/pkgs/development/python-modules/eth-hash/default.nix index 991bd28aff18..81f483fed9a9 100644 --- a/pkgs/development/python-modules/eth-hash/default.nix +++ b/pkgs/development/python-modules/eth-hash/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, pytest -, safe-pysha3 -, pycryptodome +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + pytest, + safe-pysha3, + pycryptodome, }: buildPythonPackage rec { @@ -21,19 +22,21 @@ buildPythonPackage rec { hash = "sha256-6UN+kvLjjAtkmLgUaovjZC/6n3FZtXCwyXZH7ijQObU="; }; - nativeCheckInputs = [ - pytest - ] ++ passthru.optional-dependencies.pycryptodome - # eth-hash can use either safe-pysha3 or pycryptodome; - # safe-pysha3 requires Python 3.9+ while pycryptodome does not. - # https://github.com/ethereum/eth-hash/issues/46#issuecomment-1314029211 - ++ lib.optional (pythonAtLeast "3.9") passthru.optional-dependencies.pysha3; + nativeCheckInputs = + [ pytest ] + ++ passthru.optional-dependencies.pycryptodome + # eth-hash can use either safe-pysha3 or pycryptodome; + # safe-pysha3 requires Python 3.9+ while pycryptodome does not. + # https://github.com/ethereum/eth-hash/issues/46#issuecomment-1314029211 + ++ lib.optional (pythonAtLeast "3.9") passthru.optional-dependencies.pysha3; - checkPhase = '' - pytest tests/backends/pycryptodome/ - '' + lib.optionalString (pythonAtLeast "3.9") '' - pytest tests/backends/pysha3/ - ''; + checkPhase = + '' + pytest tests/backends/pycryptodome/ + '' + + lib.optionalString (pythonAtLeast "3.9") '' + pytest tests/backends/pysha3/ + ''; passthru.optional-dependencies = { pycryptodome = [ pycryptodome ]; diff --git a/pkgs/development/python-modules/eth-keyfile/default.nix b/pkgs/development/python-modules/eth-keyfile/default.nix index e8e42a56c60f..8ed065710471 100644 --- a/pkgs/development/python-modules/eth-keyfile/default.nix +++ b/pkgs/development/python-modules/eth-keyfile/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, eth-keys -, eth-utils -, pycryptodome -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + eth-keys, + eth-utils, + pycryptodome, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,7 +24,7 @@ buildPythonPackage rec { hash = "sha256-797yhHuU9/lm96YKxl3SZ5IQAwDxDSYkLkiBdAHh0Uk="; }; - build-system = [ setuptools]; + build-system = [ setuptools ]; propagatedBuildInputs = [ eth-keys @@ -31,9 +32,7 @@ buildPythonPackage rec { pycryptodome ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "eth_keyfile" ]; diff --git a/pkgs/development/python-modules/eth-keys/default.nix b/pkgs/development/python-modules/eth-keys/default.nix index edf83f065701..e599a21546f0 100644 --- a/pkgs/development/python-modules/eth-keys/default.nix +++ b/pkgs/development/python-modules/eth-keys/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, asn1tools -, coincurve -, eth-hash -, eth-typing -, eth-utils -, factory-boy -, hypothesis -, isPyPy -, pyasn1 -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + asn1tools, + coincurve, + eth-hash, + eth-typing, + eth-utils, + factory-boy, + hypothesis, + isPyPy, + pyasn1, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,22 +29,24 @@ buildPythonPackage rec { hash = "sha256-vyyaLCG2uIHXX0t93DmFq8/u0rZL+nsBsH2gfgjziyo="; }; - build-system = [ setuptools]; + build-system = [ setuptools ]; propagatedBuildInputs = [ eth-typing eth-utils ]; - nativeCheckInputs = [ - asn1tools - factory-boy - hypothesis - pyasn1 - pytestCheckHook - ] ++ passthru.optional-dependencies.coincurve - ++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3 - ++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome; + nativeCheckInputs = + [ + asn1tools + factory-boy + hypothesis + pyasn1 + pytestCheckHook + ] + ++ passthru.optional-dependencies.coincurve + ++ lib.optional (!isPyPy) eth-hash.optional-dependencies.pysha3 + ++ lib.optional isPyPy eth-hash.optional-dependencies.pycryptodome; disabledTests = [ # tests are broken diff --git a/pkgs/development/python-modules/eth-rlp/default.nix b/pkgs/development/python-modules/eth-rlp/default.nix index 081abf233ef9..d70ede6773ca 100644 --- a/pkgs/development/python-modules/eth-rlp/default.nix +++ b/pkgs/development/python-modules/eth-rlp/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, eth-hash -, eth-utils -, hexbytes -, pytestCheckHook -, pythonOlder -, rlp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + eth-hash, + eth-utils, + hexbytes, + pytestCheckHook, + pythonOlder, + rlp, }: buildPythonPackage rec { @@ -23,7 +24,7 @@ buildPythonPackage rec { hash = "sha256-FTqIutndf+epmO5XNEUoRAUEmn299aTLIZNe5SMcxAQ="; }; - build-system = [ setuptools]; + build-system = [ setuptools ]; propagatedBuildInputs = [ hexbytes @@ -31,9 +32,7 @@ buildPythonPackage rec { rlp ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ eth-hash.optional-dependencies.pycryptodome; + nativeCheckInputs = [ pytestCheckHook ] ++ eth-hash.optional-dependencies.pycryptodome; pythonImportsCheck = [ "eth_rlp" ]; diff --git a/pkgs/development/python-modules/eth-typing/default.nix b/pkgs/development/python-modules/eth-typing/default.nix index 60bafffaea2a..6e437a541898 100644 --- a/pkgs/development/python-modules/eth-typing/default.nix +++ b/pkgs/development/python-modules/eth-typing/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-JT/2bCPYFSRNt3V7QnHSAJR7HrZ1JpRKdU7gQpoYIn0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "eth_typing" - ]; + pythonImportsCheck = [ "eth_typing" ]; meta = with lib; { description = "Common type annotations for Ethereum Python packages"; diff --git a/pkgs/development/python-modules/eth-utils/default.nix b/pkgs/development/python-modules/eth-utils/default.nix index 8686da98d92a..c45aec172690 100644 --- a/pkgs/development/python-modules/eth-utils/default.nix +++ b/pkgs/development/python-modules/eth-utils/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, eth-hash -, eth-typing -, cytoolz -, hypothesis -, isPyPy -, pytestCheckHook -, pythonOlder -, setuptools -, toolz +{ + lib, + fetchFromGitHub, + buildPythonPackage, + eth-hash, + eth-typing, + cytoolz, + hypothesis, + isPyPy, + pytestCheckHook, + pythonOlder, + setuptools, + toolz, }: buildPythonPackage rec { @@ -25,15 +26,12 @@ buildPythonPackage rec { hash = "sha256-k2pHM1eKPzoGxZlU6yT7bZMv4CCWGaZaSnFHSbT76Zo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ eth-hash eth-typing - ] ++ lib.optional (!isPyPy) cytoolz - ++ lib.optional isPyPy toolz; + ] ++ lib.optional (!isPyPy) cytoolz ++ lib.optional isPyPy toolz; nativeCheckInputs = [ hypothesis @@ -42,9 +40,7 @@ buildPythonPackage rec { # Removing a poorly written test case from test suite. # TODO work with the upstream - disabledTestPaths = [ - "tests/functional-utils/test_type_inference.py" - ]; + disabledTestPaths = [ "tests/functional-utils/test_type_inference.py" ]; pythonImportsCheck = [ "eth_utils" ]; diff --git a/pkgs/development/python-modules/etils/default.nix b/pkgs/development/python-modules/etils/default.nix index fd1d034138e9..ad33c111ad92 100644 --- a/pkgs/development/python-modules/etils/default.nix +++ b/pkgs/development/python-modules/etils/default.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, # tests -, chex -, jaxlib -, pytest-subtests -, pytest-xdist -, pytestCheckHook -, yapf + chex, + jaxlib, + pytest-subtests, + pytest-xdist, + pytestCheckHook, + yapf, # optional -, jupyter -, mediapy -, numpy -, importlib-resources -, typing-extensions -, zipp -, absl-py -, tqdm -, dm-tree -, jax -, tensorflow + jupyter, + mediapy, + numpy, + importlib-resources, + typing-extensions, + zipp, + absl-py, + tqdm, + dm-tree, + jax, + tensorflow, }: buildPythonPackage rec { @@ -38,30 +39,50 @@ buildPythonPackage rec { hash = "sha256-+0ePV/7CAuJg5UyRkrMXaS/WPbLRHZk+cLzf+inMzVg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; passthru.optional-dependencies = rec { array-types = enp; - eapp = [ absl-py /* FIXME package simple-parsing */ ] ++ epy; - ecolab = [ jupyter numpy mediapy ] ++ enp ++ epy; + eapp = [ + absl-py # FIXME package simple-parsing + ] ++ epy; + ecolab = [ + jupyter + numpy + mediapy + ] ++ enp ++ epy; edc = epy; enp = [ numpy ] ++ epy; - epath = [ importlib-resources typing-extensions zipp ] ++ epy; + epath = [ + importlib-resources + typing-extensions + zipp + ] ++ epy; epy = [ typing-extensions ]; - etqdm = [ absl-py tqdm ] ++ epy; + etqdm = [ + absl-py + tqdm + ] ++ epy; etree = array-types ++ epy ++ enp ++ etqdm; etree-dm = [ dm-tree ] ++ etree; etree-jax = [ jax ] ++ etree; etree-tf = [ tensorflow ] ++ etree; - all = array-types ++ eapp ++ ecolab ++ edc ++ enp ++ epath ++ epy ++ etqdm - ++ etree ++ etree-dm ++ etree-jax ++ etree-tf; + all = + array-types + ++ eapp + ++ ecolab + ++ edc + ++ enp + ++ epath + ++ epy + ++ etqdm + ++ etree + ++ etree-dm + ++ etree-jax + ++ etree-tf; }; - pythonImportsCheck = [ - "etils" - ]; + pythonImportsCheck = [ "etils" ]; nativeCheckInputs = [ chex @@ -70,8 +91,7 @@ buildPythonPackage rec { pytest-xdist pytestCheckHook yapf - ] - ++ passthru.optional-dependencies.all; + ] ++ passthru.optional-dependencies.all; disabledTests = [ "test_public_access" # requires network access diff --git a/pkgs/development/python-modules/etuples/default.nix b/pkgs/development/python-modules/etuples/default.nix index a78cb3dc9897..d1a122162d2b 100644 --- a/pkgs/development/python-modules/etuples/default.nix +++ b/pkgs/development/python-modules/etuples/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cons -, multipledispatch -, py -, pytestCheckHook -, pytest-html -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cons, + multipledispatch, + py, + pytestCheckHook, + pytest-html, + pythonOlder, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { "--self-contained-html" ]; - pythonImportsCheck = [ - "etuples" - ]; + pythonImportsCheck = [ "etuples" ]; meta = with lib; { description = "Python S-expression emulation using tuple-like objects"; diff --git a/pkgs/development/python-modules/euclid3/default.nix b/pkgs/development/python-modules/euclid3/default.nix index 3d723eca5658..f07fe9f9ac52 100644 --- a/pkgs/development/python-modules/euclid3/default.nix +++ b/pkgs/development/python-modules/euclid3/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { pname = "euclid3"; @@ -12,14 +13,15 @@ buildPythonPackage rec { hash = "sha256-JbgnpXrb/Zo/qGJeQ6vD6Qf2HeYiND5+U4SC75tG/Qs="; }; - pythonImportsCheck = [ - "euclid3" - ]; + pythonImportsCheck = [ "euclid3" ]; meta = with lib; { description = "2D and 3D vector, matrix, quaternion and geometry module."; homepage = "http://code.google.com/p/pyeuclid/"; license = licenses.lgpl21Plus; - maintainers = with maintainers; [ jfly matusf ]; + maintainers = with maintainers; [ + jfly + matusf + ]; }; } diff --git a/pkgs/development/python-modules/eufylife-ble-client/default.nix b/pkgs/development/python-modules/eufylife-ble-client/default.nix index d6216634232a..88c488907e28 100644 --- a/pkgs/development/python-modules/eufylife-ble-client/default.nix +++ b/pkgs/development/python-modules/eufylife-ble-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, bleak -, bleak-retry-connector -, buildPythonPackage -, cryptography -, fetchPypi -, poetry-core -, pythonOlder +{ + lib, + bleak, + bleak-retry-connector, + buildPythonPackage, + cryptography, + fetchPypi, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-1pnT5B+m2/IDqHqOIZdDx8WwBdZpJe1Bj/HaxY+VW1Y="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bleak @@ -34,9 +33,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "eufylife_ble_client" - ]; + pythonImportsCheck = [ "eufylife_ble_client" ]; meta = with lib; { description = "Module for parsing data from Eufy smart scales"; diff --git a/pkgs/development/python-modules/eval-type-backport/default.nix b/pkgs/development/python-modules/eval-type-backport/default.nix index 1231d106fa58..537d54092872 100644 --- a/pkgs/development/python-modules/eval-type-backport/default.nix +++ b/pkgs/development/python-modules/eval-type-backport/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Like `typing._eval_type`, but lets older Python versions use newer typing features."; diff --git a/pkgs/development/python-modules/evaluate/default.nix b/pkgs/development/python-modules/evaluate/default.nix index fa9a894b032a..b300ca9bb7ec 100644 --- a/pkgs/development/python-modules/evaluate/default.nix +++ b/pkgs/development/python-modules/evaluate/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, cookiecutter -, datasets -, dill -, fsspec -, huggingface-hub -, importlib-metadata -, multiprocess -, numpy -, packaging -, pandas -, pyarrow -, requests -, responses -, tqdm -, xxhash +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + cookiecutter, + datasets, + dill, + fsspec, + huggingface-hub, + importlib-metadata, + multiprocess, + numpy, + packaging, + pandas, + pyarrow, + requests, + responses, + tqdm, + xxhash, }: buildPythonPackage rec { @@ -52,16 +53,12 @@ buildPythonPackage rec { packaging pyarrow responses - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # most tests require internet access. doCheck = false; - pythonImportsCheck = [ - "evaluate" - ]; + pythonImportsCheck = [ "evaluate" ]; meta = with lib; { homepage = "https://huggingface.co/docs/evaluate/index"; diff --git a/pkgs/development/python-modules/evdev/default.nix b/pkgs/development/python-modules/evdev/default.nix index fd34a11241cf..2824f5e821fe 100644 --- a/pkgs/development/python-modules/evdev/default.nix +++ b/pkgs/development/python-modules/evdev/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, linuxHeaders -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + linuxHeaders, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,19 +24,13 @@ buildPythonPackage rec { --replace-fail /usr/include ${linuxHeaders}/include ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - buildInputs = [ - linuxHeaders - ]; + buildInputs = [ linuxHeaders ]; doCheck = false; - pythonImportsCheck = [ - "evdev" - ]; + pythonImportsCheck = [ "evdev" ]; meta = with lib; { description = "Provides bindings to the generic input event interface in Linux"; diff --git a/pkgs/development/python-modules/eve/default.nix b/pkgs/development/python-modules/eve/default.nix index f6ed465c48cd..ef664651a542 100644 --- a/pkgs/development/python-modules/eve/default.nix +++ b/pkgs/development/python-modules/eve/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flask -, events -, pymongo -, simplejson -, cerberus -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flask, + events, + pymongo, + simplejson, + cerberus, + setuptools, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace "events>=0.3,<0.4" "events>=0.3" ''; - pythonImportsCheck = [ - "eve" - ]; + pythonImportsCheck = [ "eve" ]; # tests call a running mongodb instance doCheck = false; diff --git a/pkgs/development/python-modules/eventkit/default.nix b/pkgs/development/python-modules/eventkit/default.nix index f0bda6bf4d0f..fb25e87fd953 100644 --- a/pkgs/development/python-modules/eventkit/default.nix +++ b/pkgs/development/python-modules/eventkit/default.nix @@ -1,18 +1,18 @@ -{ buildPythonPackage -, lib -, fetchPypi -, numpy +{ + buildPythonPackage, + lib, + fetchPypi, + numpy, }: let pname = "eventkit"; version = "1.0.3"; hash = "sha256-mUl/bzxjilD/dhby+M2Iexi7/zdl3BvYaBVU2xRnyTM="; -in buildPythonPackage { +in +buildPythonPackage { inherit pname version; - src = fetchPypi { - inherit pname version hash; - }; + src = fetchPypi { inherit pname version hash; }; propagatedBuildInputs = [ numpy ]; dontUseSetuptoolsCheck = true; diff --git a/pkgs/development/python-modules/eventlet/default.nix b/pkgs/development/python-modules/eventlet/default.nix index dbdc82bd35ac..3eb650b54a2f 100644 --- a/pkgs/development/python-modules/eventlet/default.nix +++ b/pkgs/development/python-modules/eventlet/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, -# build-system -, hatch-vcs -, hatchling + # build-system + hatch-vcs, + hatchling, -# dependencies -, dnspython -, greenlet -, isPyPy -, six + # dependencies + dnspython, + greenlet, + isPyPy, + six, -# tests -, iana-etc -, pytestCheckHook -, libredirect + # tests + iana-etc, + pytestCheckHook, + libredirect, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # libredirect is not available on darwin # tests hang on pypy indefinitely diff --git a/pkgs/development/python-modules/events/default.nix b/pkgs/development/python-modules/events/default.nix index f4e9dcd250f0..8b2be689737a 100644 --- a/pkgs/development/python-modules/events/default.nix +++ b/pkgs/development/python-modules/events/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-GGhIKHbJ31IN0Uoe689X9V/MZvtseE47qx2CmM4MYUs="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "events" - ]; + pythonImportsCheck = [ "events" ]; - pytestFlagsArray = [ - "events/tests/tests.py" - ]; + pytestFlagsArray = [ "events/tests/tests.py" ]; meta = with lib; { description = "Bringing the elegance of C# EventHanlder to Python"; diff --git a/pkgs/development/python-modules/evernote/default.nix b/pkgs/development/python-modules/evernote/default.nix index aac789909199..9d9b9cc9ad02 100644 --- a/pkgs/development/python-modules/evernote/default.nix +++ b/pkgs/development/python-modules/evernote/default.nix @@ -1,28 +1,28 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, oauth2 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + oauth2, }: buildPythonPackage rec { pname = "evernote"; version = "1.25.3"; format = "setuptools"; - disabled = ! isPy27; #some dependencies do not work with py3 + disabled = !isPy27; # some dependencies do not work with py3 src = fetchPypi { inherit pname version; sha256 = "796847e0b7517e729041c5187fa1665c3f6fc0491cb4d71fb95a62c4f22e64eb"; }; - propagatedBuildInputs = [ oauth2 ]; + propagatedBuildInputs = [ oauth2 ]; - meta = with lib; { + meta = with lib; { description = "Evernote SDK for Python"; homepage = "https://dev.evernote.com"; license = licenses.asl20; maintainers = with maintainers; [ hbunke ]; - }; - + }; } diff --git a/pkgs/development/python-modules/evohome-async/default.nix b/pkgs/development/python-modules/evohome-async/default.nix index b2f512ea973c..5544151686fb 100644 --- a/pkgs/development/python-modules/evohome-async/default.nix +++ b/pkgs/development/python-modules/evohome-async/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, click -, fetchFromGitHub -, hatchling -, pythonOlder -, voluptuous +{ + lib, + aiohttp, + buildPythonPackage, + click, + fetchFromGitHub, + hatchling, + pythonOlder, + voluptuous, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-B7LvGXAZO1pd9iCuZjW/bRWdB5PEzfcQjZWokGzMN70="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ aiohttp @@ -35,9 +34,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "evohomeasync2" - ]; + pythonImportsCheck = [ "evohomeasync2" ]; meta = with lib; { description = "Python client for connecting to Honeywell's TCC RESTful API"; diff --git a/pkgs/development/python-modules/evtx/default.nix b/pkgs/development/python-modules/evtx/default.nix index b949864dc7aa..1f2cd6dfadcd 100644 --- a/pkgs/development/python-modules/evtx/default.nix +++ b/pkgs/development/python-modules/evtx/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, rustPlatform -, libiconv +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + rustPlatform, + libiconv, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { maturinBuildHook ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "evtx" - ]; + pythonImportsCheck = [ "evtx" ]; meta = with lib; { description = "Bindings for evtx"; diff --git a/pkgs/development/python-modules/ewmh/default.nix b/pkgs/development/python-modules/ewmh/default.nix index c1fc19e13d1b..d793eaada451 100644 --- a/pkgs/development/python-modules/ewmh/default.nix +++ b/pkgs/development/python-modules/ewmh/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, xlib }: +{ + lib, + buildPythonPackage, + fetchPypi, + xlib, +}: buildPythonPackage rec { pname = "ewmh"; diff --git a/pkgs/development/python-modules/exceptiongroup/default.nix b/pkgs/development/python-modules/exceptiongroup/default.nix index 2dca56aa9176..cb1577e1ed4f 100644 --- a/pkgs/development/python-modules/exceptiongroup/default.nix +++ b/pkgs/development/python-modules/exceptiongroup/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-scm -, pytestCheckHook -, pythonOlder -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-scm, + pytestCheckHook, + pythonOlder, + pythonAtLeast, }: buildPythonPackage rec { @@ -21,25 +22,23 @@ buildPythonPackage rec { hash = "sha256-iGeaRVJeFAWfJpwr7N4kST7d8YxpX3WgDqQemlR0cLU="; }; - nativeBuildInputs = [ - flit-scm - ]; + nativeBuildInputs = [ flit-scm ]; doCheck = pythonAtLeast "3.11"; # infinite recursion with pytest - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = if pythonAtLeast "3.12" then [ - # https://github.com/agronholm/exceptiongroup/issues/116 - "test_deep_split" - "test_deep_subgroup" - ] else null; + disabledTests = + if pythonAtLeast "3.12" then + [ + # https://github.com/agronholm/exceptiongroup/issues/116 + "test_deep_split" + "test_deep_subgroup" + ] + else + null; - pythonImportsCheck = [ - "exceptiongroup" - ]; + pythonImportsCheck = [ "exceptiongroup" ]; meta = with lib; { description = "Backport of PEP 654 (exception groups)"; diff --git a/pkgs/development/python-modules/exdown/default.nix b/pkgs/development/python-modules/exdown/default.nix index 937e90250a86..4d303a64c256 100644 --- a/pkgs/development/python-modules/exdown/default.nix +++ b/pkgs/development/python-modules/exdown/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, pythonOlder -, setuptools -, importlib-metadata -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + pythonOlder, + setuptools, + importlib-metadata, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,15 +21,11 @@ buildPythonPackage rec { hash = "sha256-r0SCigkUpOiba4MDf80+dLjOjjruVNILh/raWfvjXA0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "exdown" ]; diff --git a/pkgs/development/python-modules/execnet/default.nix b/pkgs/development/python-modules/execnet/default.nix index 76f9b9b4df65..5677c8002b3c 100644 --- a/pkgs/development/python-modules/execnet/default.nix +++ b/pkgs/development/python-modules/execnet/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, isPyPy -, fetchPypi -, hatchling -, hatch-vcs -, gevent -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPyPy, + fetchPypi, + hatchling, + hatch-vcs, + gevent, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,15 +19,17 @@ buildPythonPackage rec { hash = "sha256-UYm1LGEhwk/q4ogWarQbMlScfiNIZSc2VAuebn1OcuM="; }; - postPatch = '' - # remove vbox tests - rm testing/test_termination.py - rm testing/test_channel.py - rm testing/test_xspec.py - rm testing/test_gateway.py - '' + lib.optionalString isPyPy '' - rm testing/test_multi.py - ''; + postPatch = + '' + # remove vbox tests + rm testing/test_termination.py + rm testing/test_channel.py + rm testing/test_xspec.py + rm testing/test_gateway.py + '' + + lib.optionalString isPyPy '' + rm testing/test_multi.py + ''; nativeBuildInputs = [ hatchling @@ -50,9 +53,7 @@ buildPythonPackage rec { pytestFlagsArray = [ "-vvv" ]; - pythonImportsCheck = [ - "execnet" - ]; + pythonImportsCheck = [ "execnet" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/executing/default.nix b/pkgs/development/python-modules/executing/default.nix index aad9455156d1..7eb94f3b1348 100644 --- a/pkgs/development/python-modules/executing/default.nix +++ b/pkgs/development/python-modules/executing/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# tests -, asttokens -, littleutils -, rich -, pytestCheckHook + # tests + asttokens, + littleutils, + rich, + pytestCheckHook, }: buildPythonPackage rec { @@ -38,18 +39,14 @@ buildPythonPackage rec { asttokens littleutils pytestCheckHook - ] ++ lib.optionals (pythonAtLeast "3.11") [ - rich - ]; + ] ++ lib.optionals (pythonAtLeast "3.11") [ rich ]; disabledTests = [ # requires ipython, which causes a circular dependency "test_two_statement_lookups" ]; - pythonImportsCheck = [ - "executing" - ]; + pythonImportsCheck = [ "executing" ]; meta = with lib; { description = "Get information about what a frame is currently doing, particularly the AST node being executed"; diff --git a/pkgs/development/python-modules/executor/default.nix b/pkgs/development/python-modules/executor/default.nix index 40d15a9fa594..e51249e49fd1 100644 --- a/pkgs/development/python-modules/executor/default.nix +++ b/pkgs/development/python-modules/executor/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, coloredlogs -, humanfriendly -, property-manager -, fasteners -, six -, pytestCheckHook -, mock -, virtualenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + coloredlogs, + humanfriendly, + property-manager, + fasteners, + six, + pytestCheckHook, + mock, + virtualenv, }: buildPythonPackage rec { @@ -47,7 +48,7 @@ buildPythonPackage rec { "ssh" "foreach" "local_context" - "release" # meant to be ran on ubuntu to succeed + "release" # meant to be ran on ubuntu to succeed ]; meta = with lib; { diff --git a/pkgs/development/python-modules/exif/default.nix b/pkgs/development/python-modules/exif/default.nix index c1619436477a..129e6e2863f3 100644 --- a/pkgs/development/python-modules/exif/default.nix +++ b/pkgs/development/python-modules/exif/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, pythonOlder -, plum-py -, pytestCheckHook -, baseline +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pythonOlder, + plum-py, + pytestCheckHook, + baseline, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-uiHL3m0C6+YnAHRLwzMCSzffrQsSyVcuem6FBtTLxek="; }; - propagatedBuildInputs = [ - plum-py - ]; + propagatedBuildInputs = [ plum-py ]; nativeCheckInputs = [ pytestCheckHook baseline ]; - pythonImportsCheck = [ - "exif" - ]; + pythonImportsCheck = [ "exif" ]; meta = with lib; { description = "Read and modify image EXIF metadata using Python"; diff --git a/pkgs/development/python-modules/exifread/default.nix b/pkgs/development/python-modules/exifread/default.nix index 31edf9707eba..16497817b44e 100644 --- a/pkgs/development/python-modules/exifread/default.nix +++ b/pkgs/development/python-modules/exifread/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,8 @@ buildPythonPackage rec { meta = with lib; { description = "Easy to use Python module to extract Exif metadata from tiff and jpeg files"; mainProgram = "EXIF.py"; - homepage = "https://github.com/ianare/exif-py"; - license = licenses.bsd0; + homepage = "https://github.com/ianare/exif-py"; + license = licenses.bsd0; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/exitcode/default.nix b/pkgs/development/python-modules/exitcode/default.nix index e3d91f53de87..1127a42abdcd 100644 --- a/pkgs/development/python-modules/exitcode/default.nix +++ b/pkgs/development/python-modules/exitcode/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-MZeLwU1gODqH752y/nc9WkUArl48pyq9Vun7tX620No="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "exitcode" - ]; + pythonImportsCheck = [ "exitcode" ]; meta = with lib; { description = "Preferred system exit codes as defined by sysexits.h"; diff --git a/pkgs/development/python-modules/expandvars/default.nix b/pkgs/development/python-modules/expandvars/default.nix index 14d637fa63ce..b295a8c6640e 100644 --- a/pkgs/development/python-modules/expandvars/default.nix +++ b/pkgs/development/python-modules/expandvars/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, hatchling + # build-system + hatchling, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -22,18 +23,11 @@ buildPythonPackage rec { hash = "sha256-fRrfpVcoz0tdgS7OPQh3A/rqlT4MChp4QV3p31Ak2EQ="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - pythonImportsCheck = [ - "expandvars" - ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; + pythonImportsCheck = [ "expandvars" ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Expand system variables Unix style"; diff --git a/pkgs/development/python-modules/expects/default.nix b/pkgs/development/python-modules/expects/default.nix index df9b06590981..a36769259e36 100644 --- a/pkgs/development/python-modules/expects/default.nix +++ b/pkgs/development/python-modules/expects/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/expecttest/default.nix b/pkgs/development/python-modules/expecttest/default.nix index 5c1a27751e07..e9cdcf3f5745 100644 --- a/pkgs/development/python-modules/expecttest/default.nix +++ b/pkgs/development/python-modules/expecttest/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, hypothesis -, lib -, poetry-core -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + hypothesis, + lib, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ hypothesis pytestCheckHook ]; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; pythonImportsCheck = [ "expecttest" ]; diff --git a/pkgs/development/python-modules/experiment-utilities/default.nix b/pkgs/development/python-modules/experiment-utilities/default.nix index a984a95de825..918114789b4d 100644 --- a/pkgs/development/python-modules/experiment-utilities/default.nix +++ b/pkgs/development/python-modules/experiment-utilities/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, cloudpickle -, dill -, fasteners -, fetchFromGitLab -, qgrid -, ipynbname -, ipywidgets -, odfpy -, scipy -, plotly -, pytestCheckHook -, pyyaml -, tabulate -, tensorboard -, torch +{ + lib, + buildPythonPackage, + cloudpickle, + dill, + fasteners, + fetchFromGitLab, + qgrid, + ipynbname, + ipywidgets, + odfpy, + scipy, + plotly, + pytestCheckHook, + pyyaml, + tabulate, + tensorboard, + torch, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { torch ]; - disabledTests = [ - "test_experimentstarter" - ]; + disabledTests = [ "test_experimentstarter" ]; pythonImportsCheck = [ "exputils" ]; diff --git a/pkgs/development/python-modules/expiring-dict/default.nix b/pkgs/development/python-modules/expiring-dict/default.nix index be2b5c875d20..59608910e50f 100644 --- a/pkgs/development/python-modules/expiring-dict/default.nix +++ b/pkgs/development/python-modules/expiring-dict/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sortedcontainers +{ + lib, + buildPythonPackage, + fetchPypi, + sortedcontainers, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-PEBK2x5DaUaMt+Ub+8nEcNfi6GPv4qHHXU7XBtDc4aY="; }; - propagatedBuildInputs = [ - sortedcontainers - ]; + propagatedBuildInputs = [ sortedcontainers ]; - pythonImportsCheck = [ - "expiring_dict" - ]; + pythonImportsCheck = [ "expiring_dict" ]; meta = with lib; { description = "Python dict with TTL support for auto-expiring caches"; diff --git a/pkgs/development/python-modules/expiringdict/default.nix b/pkgs/development/python-modules/expiringdict/default.nix index e4e6dd8b7824..772b3d636335 100644 --- a/pkgs/development/python-modules/expiringdict/default.nix +++ b/pkgs/development/python-modules/expiringdict/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, dill -, coverage -, coveralls -, mock -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dill, + coverage, + coveralls, + mock, + nose, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "expiringdict" - ]; + pythonImportsCheck = [ "expiringdict" ]; meta = with lib; { description = "Dictionary with auto-expiring values for caching purposes"; diff --git a/pkgs/development/python-modules/explorerscript/default.nix b/pkgs/development/python-modules/explorerscript/default.nix index 4adc91b25dba..94831063d269 100644 --- a/pkgs/development/python-modules/explorerscript/default.nix +++ b/pkgs/development/python-modules/explorerscript/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, antlr4 -, antlr4-python3-runtime -, igraph -, pygments -, pytestCheckHook -, pythonRelaxDepsHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + antlr4, + antlr4-python3-runtime, + igraph, + pygments, + pytestCheckHook, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -48,17 +49,11 @@ buildPythonPackage rec { igraph ]; - passthru.optional-dependencies.pygments = [ - pygments - ]; + passthru.optional-dependencies.pygments = [ pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.pygments; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.pygments; - pythonImportsCheck = [ - "explorerscript" - ]; + pythonImportsCheck = [ "explorerscript" ]; meta = with lib; { homepage = "https://github.com/SkyTemple/explorerscript"; diff --git a/pkgs/development/python-modules/exrex/default.nix b/pkgs/development/python-modules/exrex/default.nix index fd7982ee778c..ab54bd684f6f 100644 --- a/pkgs/development/python-modules/exrex/default.nix +++ b/pkgs/development/python-modules/exrex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,18 +26,14 @@ buildPythonPackage rec { --replace "version=about['__version__']," "version='${version}'," ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dontWrapPythonPrograms = true; # Projec thas no released tests doCheck = false; - pythonImportsCheck = [ - "exrex" - ]; + pythonImportsCheck = [ "exrex" ]; meta = with lib; { description = "Irregular methods on regular expressions"; diff --git a/pkgs/development/python-modules/extractcode/7z.nix b/pkgs/development/python-modules/extractcode/7z.nix index 89a0bd110d4b..e2c06ccb4519 100644 --- a/pkgs/development/python-modules/extractcode/7z.nix +++ b/pkgs/development/python-modules/extractcode/7z.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, plugincode -, p7zip +{ + lib, + fetchFromGitHub, + buildPythonPackage, + plugincode, + p7zip, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/builtins/extractcode_7z-linux"; - propagatedBuildInputs = [ - plugincode - ]; + propagatedBuildInputs = [ plugincode ]; preBuild = '' pushd src/extractcode_7z/bin @@ -35,14 +34,15 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "extractcode_7z" - ]; + pythonImportsCheck = [ "extractcode_7z" ]; meta = with lib; { description = "A ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations"; homepage = "https://github.com/nexB/scancode-plugins/tree/main/builtins/extractcode_7z-linux"; - license = with licenses; [ asl20 lgpl21 ]; + license = with licenses; [ + asl20 + lgpl21 + ]; maintainers = [ ]; platforms = platforms.linux; }; diff --git a/pkgs/development/python-modules/extractcode/default.nix b/pkgs/development/python-modules/extractcode/default.nix index 55027f8813c1..350ff622f6c2 100644 --- a/pkgs/development/python-modules/extractcode/default.nix +++ b/pkgs/development/python-modules/extractcode/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, extractcode-7z -, extractcode-libarchive -, fetchPypi -, patch -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools-scm -, six -, typecode +{ + lib, + buildPythonPackage, + extractcode-7z, + extractcode-libarchive, + fetchPypi, + patch, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools-scm, + six, + typecode, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ typecode @@ -70,9 +69,7 @@ buildPythonPackage rec { "test_patch_info_patch_patches_misc_linux_st710x_patches_motorola_rootdisk_c_patch" ]; - pythonImportsCheck = [ - "extractcode" - ]; + pythonImportsCheck = [ "extractcode" ]; meta = with lib; { description = "Universal archive extractor using z7zip, libarchive, other libraries and the Python standard library"; diff --git a/pkgs/development/python-modules/extractcode/libarchive.nix b/pkgs/development/python-modules/extractcode/libarchive.nix index 0031c7a27941..71851bd2ae21 100644 --- a/pkgs/development/python-modules/extractcode/libarchive.nix +++ b/pkgs/development/python-modules/extractcode/libarchive.nix @@ -1,15 +1,16 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, libarchive -, libb2 -, bzip2 -, expat -, lz4 -, xz -, zlib -, zstd -, plugincode +{ + lib, + fetchFromGitHub, + buildPythonPackage, + libarchive, + libb2, + bzip2, + expat, + lz4, + xz, + zlib, + zstd, + plugincode, }: buildPythonPackage rec { @@ -41,21 +42,20 @@ buildPythonPackage rec { popd ''; - propagatedBuildInputs = [ - plugincode - ]; + propagatedBuildInputs = [ plugincode ]; # no tests doCheck = false; - pythonImportsCheck = [ - "extractcode_libarchive" - ]; + pythonImportsCheck = [ "extractcode_libarchive" ]; meta = with lib; { description = "A ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations"; homepage = "https://github.com/nexB/scancode-plugins/tree/main/builtins/extractcode_libarchive-linux"; - license = with licenses; [ asl20 bsd2 ]; + license = with licenses; [ + asl20 + bsd2 + ]; maintainers = [ ]; platforms = platforms.linux; }; diff --git a/pkgs/development/python-modules/extras/default.nix b/pkgs/development/python-modules/extras/default.nix index db076ea95d9c..d73a0c050ea7 100644 --- a/pkgs/development/python-modules/extras/default.nix +++ b/pkgs/development/python-modules/extras/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/extruct/default.nix b/pkgs/development/python-modules/extruct/default.nix index 0673643de0db..f44f9443add9 100644 --- a/pkgs/development/python-modules/extruct/default.nix +++ b/pkgs/development/python-modules/extruct/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, html-text -, jstyleson -, lxml -, mf2py -, mock -, pyrdfa3 -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, rdflib -, setuptools -, six -, w3lib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + html-text, + jstyleson, + lxml, + mf2py, + mock, + pyrdfa3, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + rdflib, + setuptools, + six, + w3lib, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-6lAb17EoR0FKyIOb9hk1jcpmPtZ7vClfuCrDZ83XBeg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ html-text @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "extruct" - ]; + pythonImportsCheck = [ "extruct" ]; disabledTests = [ # AssertionError: Lists differ diff --git a/pkgs/development/python-modules/eyed3/default.nix b/pkgs/development/python-modules/eyed3/default.nix index 46678654f25e..81bde19f033c 100644 --- a/pkgs/development/python-modules/eyed3/default.nix +++ b/pkgs/development/python-modules/eyed3/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, isPyPy -, six -, filetype -, deprecation +{ + lib, + buildPythonPackage, + fetchPypi, + python, + isPyPy, + six, + filetype, + deprecation, }: buildPythonPackage rec { version = "0.9.7"; - pname = "eyeD3"; + pname = "eyeD3"; disabled = isPyPy; src = fetchPypi { @@ -31,10 +32,10 @@ buildPythonPackage rec { meta = with lib; { description = "A Python module and command line program for processing ID3 tags"; mainProgram = "eyeD3"; - homepage = "https://eyed3.nicfit.net/"; - license = licenses.gpl2; + homepage = "https://eyed3.nicfit.net/"; + license = licenses.gpl2; maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; + platforms = platforms.unix; longDescription = '' eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play diff --git a/pkgs/development/python-modules/ezdxf/default.nix b/pkgs/development/python-modules/ezdxf/default.nix index 3619db37b812..a25d4c865ec3 100644 --- a/pkgs/development/python-modules/ezdxf/default.nix +++ b/pkgs/development/python-modules/ezdxf/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pyparsing -, typing-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pyparsing, + typing-extensions, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # requires geomdl dependency diff --git a/pkgs/development/python-modules/ezyrb/default.nix b/pkgs/development/python-modules/ezyrb/default.nix index ee9b16acdbe1..51addca7efbf 100644 --- a/pkgs/development/python-modules/ezyrb/default.nix +++ b/pkgs/development/python-modules/ezyrb/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, future -, numpy -, scipy -, matplotlib -, scikit-learn -, torch -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + future, + numpy, + scipy, + matplotlib, + scikit-learn, + torch, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { torch ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ezyrb" - ]; + pythonImportsCheck = [ "ezyrb" ]; disabledTestPaths = [ # Exclude long tests diff --git a/pkgs/development/python-modules/f5-icontrol-rest/default.nix b/pkgs/development/python-modules/f5-icontrol-rest/default.nix index f5dde3911546..81390efdbc8a 100644 --- a/pkgs/development/python-modules/f5-icontrol-rest/default.nix +++ b/pkgs/development/python-modules/f5-icontrol-rest/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + six, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # needs to be updated to newer pytest version and requires physical device doCheck = false; - pytestFlags = [ - "icontrol/test" - ]; + pytestFlags = [ "icontrol/test" ]; pythonImportsCheck = [ "icontrol" ]; diff --git a/pkgs/development/python-modules/f5-sdk/default.nix b/pkgs/development/python-modules/f5-sdk/default.nix index b73afcec0fab..09aded01c5ae 100644 --- a/pkgs/development/python-modules/f5-sdk/default.nix +++ b/pkgs/development/python-modules/f5-sdk/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, f5-icontrol-rest -, six +{ + lib, + buildPythonPackage, + fetchPypi, + f5-icontrol-rest, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/f90nml/default.nix b/pkgs/development/python-modules/f90nml/default.nix index ad2d1c8c604d..2657ae73d420 100644 --- a/pkgs/development/python-modules/f90nml/default.nix +++ b/pkgs/development/python-modules/f90nml/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, setuptools-scm }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + setuptools-scm, +}: buildPythonPackage rec { pname = "f90nml"; diff --git a/pkgs/development/python-modules/faadelays/default.nix b/pkgs/development/python-modules/faadelays/default.nix index e19b3192e350..a0d13daecdca 100644 --- a/pkgs/development/python-modules/faadelays/default.nix +++ b/pkgs/development/python-modules/faadelays/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-ngMFd+BE3hKeaeGEX4xHpzDIrtGFDsSwxBbrc4ZMFas="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "faadelays" - ]; + pythonImportsCheck = [ "faadelays" ]; meta = with lib; { changelog = "https://github.com/ntilley905/faadelays/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/fabric/default.nix b/pkgs/development/python-modules/fabric/default.nix index 3494c8951712..001abb7883a8 100644 --- a/pkgs/development/python-modules/fabric/default.nix +++ b/pkgs/development/python-modules/fabric/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cryptography -, decorator -, invoke -, mock -, paramiko -, pytestCheckHook -, pytest-relaxed +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, + decorator, + invoke, + mock, + paramiko, + pytestCheckHook, + pytest-relaxed, }: buildPythonPackage rec { @@ -26,9 +27,18 @@ buildPythonPackage rec { --replace ', "pathlib2"' ' ' ''; - propagatedBuildInputs = [ invoke paramiko cryptography decorator ]; + propagatedBuildInputs = [ + invoke + paramiko + cryptography + decorator + ]; - nativeCheckInputs = [ pytestCheckHook pytest-relaxed mock ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-relaxed + mock + ]; # ==================================== ERRORS ==================================== # ________________________ ERROR collecting test session _________________________ diff --git a/pkgs/development/python-modules/fabulous/default.nix b/pkgs/development/python-modules/fabulous/default.nix index eba74ab121be..075f01ee6406 100644 --- a/pkgs/development/python-modules/fabulous/default.nix +++ b/pkgs/development/python-modules/fabulous/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + python, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-hchlxuB5QP+VxCx+QZ2739/mR5SQmYyE+9kXLKJ2ij4="; }; - patches = [ - ./relative_import.patch - ]; + patches = [ ./relative_import.patch ]; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; checkPhase = '' for i in tests/*.py; do diff --git a/pkgs/development/python-modules/face-recognition/default.nix b/pkgs/development/python-modules/face-recognition/default.nix index ef1d57e3eb67..98d3ea63b6b9 100644 --- a/pkgs/development/python-modules/face-recognition/default.nix +++ b/pkgs/development/python-modules/face-recognition/default.nix @@ -1,18 +1,19 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, # propagates -, click -, dlib -, face-recognition-models -, numpy -, pillow + click, + dlib, + face-recognition-models, + numpy, + pillow, # tests -, pytestCheckHook -, config -, cudaSupport ? config.cudaSupport + pytestCheckHook, + config, + cudaSupport ? config.cudaSupport, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pillow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Disables tests when running with cuda due to https://github.com/NixOS/nixpkgs/issues/225912 doCheck = !config.cudaSupport; diff --git a/pkgs/development/python-modules/face-recognition/models.nix b/pkgs/development/python-modules/face-recognition/models.nix index 9df1ac060589..ba704dbbeb04 100644 --- a/pkgs/development/python-modules/face-recognition/models.nix +++ b/pkgs/development/python-modules/face-recognition/models.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, setuptools +{ + buildPythonPackage, + lib, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,16 +16,12 @@ buildPythonPackage rec { hash = "sha256-t5vSAKiMh8mp1EbJkK5xxaYm0fNzAXTm1XAVf/HYls8="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; # no tests doCheck = false; - pythonImportsCheck = [ - "face_recognition_models" - ]; + pythonImportsCheck = [ "face_recognition_models" ]; meta = with lib; { homepage = "https://github.com/ageitgey/face_recognition_models"; diff --git a/pkgs/development/python-modules/face/default.nix b/pkgs/development/python-modules/face/default.nix index cd024c1fb22b..e2ae2cf8263e 100644 --- a/pkgs/development/python-modules/face/default.nix +++ b/pkgs/development/python-modules/face/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, boltons -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + boltons, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-1daS+QvI9Zh7Y25H42OEubvaSZqvCneqCwu+g0x2kj0="; }; - propagatedBuildInputs = [ - boltons - ]; + propagatedBuildInputs = [ boltons ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "face" - ]; + pythonImportsCheck = [ "face" ]; disabledTests = [ # Assertion error as we take the Python release into account diff --git a/pkgs/development/python-modules/facebook-sdk/default.nix b/pkgs/development/python-modules/facebook-sdk/default.nix index 2789829da57a..7ef73d1a1fa6 100644 --- a/pkgs/development/python-modules/facebook-sdk/default.nix +++ b/pkgs/development/python-modules/facebook-sdk/default.nix @@ -1,8 +1,9 @@ -{ pkgs -, buildPythonPackage -, fetchPypi -, requests -, python +{ + pkgs, + buildPythonPackage, + fetchPypi, + requests, + python, }: buildPythonPackage rec { @@ -27,7 +28,7 @@ buildPythonPackage rec { meta = with pkgs.lib; { description = "Client library that supports the Facebook Graph API and the official Facebook JavaScript SDK"; homepage = "https://github.com/pythonforfacebook/facebook-sdk"; - license = licenses.asl20 ; + license = licenses.asl20; maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/facedancer/default.nix b/pkgs/development/python-modules/facedancer/default.nix index 1db882a86bb6..516eb08e4f46 100644 --- a/pkgs/development/python-modules/facedancer/default.nix +++ b/pkgs/development/python-modules/facedancer/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, pyusb, pyserial }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pyusb, + pyserial, +}: buildPythonPackage rec { pname = "facedancer"; @@ -12,7 +19,10 @@ buildPythonPackage rec { disabled = !isPy3k; - propagatedBuildInputs = [ pyusb pyserial ]; + propagatedBuildInputs = [ + pyusb + pyserial + ]; preBuild = '' echo "$version" > VERSION diff --git a/pkgs/development/python-modules/facenet-pytorch/default.nix b/pkgs/development/python-modules/facenet-pytorch/default.nix index 153408761c0a..191818bc6b3d 100644 --- a/pkgs/development/python-modules/facenet-pytorch/default.nix +++ b/pkgs/development/python-modules/facenet-pytorch/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, pillow -, torchvision -, lib +{ + buildPythonPackage, + fetchPypi, + pillow, + torchvision, + lib, }: buildPythonPackage rec { @@ -16,9 +17,12 @@ buildPythonPackage rec { doCheck = false; # pypi version doesn't ship with tests - pythonImportsCheck = ["facenet_pytorch"]; + pythonImportsCheck = [ "facenet_pytorch" ]; - propagatedBuildInputs = [ pillow torchvision ]; + propagatedBuildInputs = [ + pillow + torchvision + ]; meta = { description = "Pretrained Pytorch face detection (MTCNN) and facial recognition (InceptionResnet) models"; diff --git a/pkgs/development/python-modules/factory-boy/default.nix b/pkgs/development/python-modules/factory-boy/default.nix index 2269445282bd..8b93fec4f8d9 100644 --- a/pkgs/development/python-modules/factory-boy/default.nix +++ b/pkgs/development/python-modules/factory-boy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, django -, faker -, fetchPypi -, flask -, flask-sqlalchemy -, mongoengine -, pytestCheckHook -, pythonOlder -, sqlalchemy -, sqlalchemy-utils +{ + lib, + buildPythonPackage, + django, + faker, + fetchPypi, + flask, + flask-sqlalchemy, + mongoengine, + pytestCheckHook, + pythonOlder, + sqlalchemy, + sqlalchemy-utils, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace '"3.2.1.dev0")' '"${version}")' ''; - propagatedBuildInputs = [ - faker - ]; + propagatedBuildInputs = [ faker ]; nativeCheckInputs = [ django @@ -45,18 +44,14 @@ buildPythonPackage rec { ]; # Checks for MongoDB requires an a running DB - disabledTests = [ - "MongoEngineTestCase" - ]; + disabledTests = [ "MongoEngineTestCase" ]; disabledTestPaths = [ # incompatible with latest flask-sqlalchemy "examples/flask_alchemy/test_demoapp.py" ]; - pythonImportsCheck = [ - "factory" - ]; + pythonImportsCheck = [ "factory" ]; meta = with lib; { description = "Python package to create factories for complex objects"; diff --git a/pkgs/development/python-modules/fairscale/default.nix b/pkgs/development/python-modules/fairscale/default.nix index 3041ac51de6a..4472d6e24a4f 100644 --- a/pkgs/development/python-modules/fairscale/default.nix +++ b/pkgs/development/python-modules/fairscale/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -# build inputs -, torch -, numpy -, ninja -# check inputs -, pytestCheckHook -, parameterized -, pytest-cov -, pytest-timeout -, remote-pdb +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + # build inputs + torch, + numpy, + ninja, + # check inputs + pytestCheckHook, + parameterized, + pytest-cov, + pytest-timeout, + remote-pdb, }: let pname = "fairscale"; @@ -58,16 +59,18 @@ buildPythonPackage { # Some tests try to build distributed models, which doesn't work in the sandbox. doCheck = false; - pythonImportsCheck = [ - "fairscale" - ]; + pythonImportsCheck = [ "fairscale" ]; meta = with lib; { description = "PyTorch extensions for high performance and large scale training"; mainProgram = "wgit"; homepage = "https://github.com/facebookresearch/fairscale"; changelog = "https://github.com/facebookresearch/fairscale/releases/tag/v${version}"; - license = with licenses; [ mit asl20 bsd3 ]; + license = with licenses; [ + mit + asl20 + bsd3 + ]; maintainers = with maintainers; [ happysalada ]; }; } diff --git a/pkgs/development/python-modules/fairseq/default.nix b/pkgs/development/python-modules/fairseq/default.nix index e784f8ec0b0d..e0634af26f20 100644 --- a/pkgs/development/python-modules/fairseq/default.nix +++ b/pkgs/development/python-modules/fairseq/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, -# Native build inputs -, cython -, pythonRelaxDepsHook -, which + # Native build inputs + cython, + pythonRelaxDepsHook, + which, -# Propagated build inputs -, cffi -, hydra-core -, omegaconf -, sacrebleu -, numpy -, regex -, torch -, tqdm -, bitarray -, torchaudio -, scikit-learn -, packaging + # Propagated build inputs + cffi, + hydra-core, + omegaconf, + sacrebleu, + numpy, + regex, + torch, + tqdm, + bitarray, + torchaudio, + scikit-learn, + packaging, -# Check inputs -, expecttest -, hypothesis -, pytestCheckHook + # Check inputs + expecttest, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -89,9 +90,7 @@ buildPythonPackage rec { cd tests ''; - pytestFlagsArray = [ - "--import-mode append" - ]; + pytestFlagsArray = [ "--import-mode append" ]; disabledTests = [ # this test requires xformers @@ -120,7 +119,7 @@ buildPythonPackage rec { homepage = "https://github.com/pytorch/fairseq"; license = licenses.mit; platforms = platforms.linux; - hydraPlatforms = []; + hydraPlatforms = [ ]; maintainers = with maintainers; [ happysalada ]; }; } diff --git a/pkgs/development/python-modules/fake-useragent/default.nix b/pkgs/development/python-modules/fake-useragent/default.nix index 7e6d5c76cfb2..138c7ab0980d 100644 --- a/pkgs/development/python-modules/fake-useragent/default.nix +++ b/pkgs/development/python-modules/fake-useragent/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, importlib-metadata -, importlib-resources -, setuptools -, pythonOlder -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + importlib-metadata, + importlib-resources, + setuptools, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,24 +27,16 @@ buildPythonPackage rec { sed -i '/addopts/d' pytest.ini ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-resources - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = + [ ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ] + ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "fake_useragent" - ]; + pythonImportsCheck = [ "fake_useragent" ]; meta = with lib; { description = "Up to date simple useragent faker with real world database"; diff --git a/pkgs/development/python-modules/faker/default.nix b/pkgs/development/python-modules/faker/default.nix index c0944e473fe7..9f01cc2ed4f5 100644 --- a/pkgs/development/python-modules/faker/default.nix +++ b/pkgs/development/python-modules/faker/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, freezegun -, pillow -, pytestCheckHook -, python-dateutil -, setuptools -, text-unidecode -, ukpostcodeparser -, validators +{ + lib, + buildPythonPackage, + fetchPypi, + freezegun, + pillow, + pytestCheckHook, + python-dateutil, + setuptools, + text-unidecode, + ukpostcodeparser, + validators, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-NLlHWBwrztNAw5s1+J2/rE81aTLP/4/ok73oVJA/Dm4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ python-dateutil @@ -40,9 +39,7 @@ buildPythonPackage rec { ]; # avoid tests which import random2, an abandoned library - pytestFlagsArray = [ - "--ignore=tests/providers/test_ssn.py" - ]; + pytestFlagsArray = [ "--ignore=tests/providers/test_ssn.py" ]; pythonImportsCheck = [ "faker" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/falcon/default.nix b/pkgs/development/python-modules/falcon/default.nix index 51f9bfd79a35..d91c5323d009 100644 --- a/pkgs/development/python-modules/falcon/default.nix +++ b/pkgs/development/python-modules/falcon/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, isPyPy -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + isPyPy, + fetchFromGitHub, -# build -, cython -, setuptools + # build + cython, + setuptools, -# tests -, aiofiles -, cbor2 -, httpx -, msgpack -, mujson -, orjson -, pytest-asyncio -, pytest7CheckHook -, pyyaml -, rapidjson -, requests -, testtools -, ujson -, uvicorn -, websockets + # tests + aiofiles, + cbor2, + httpx, + msgpack, + mujson, + orjson, + pytest-asyncio, + pytest7CheckHook, + pyyaml, + rapidjson, + requests, + testtools, + ujson, + uvicorn, + websockets, }: buildPythonPackage rec { @@ -40,11 +41,7 @@ buildPythonPackage rec { hash = "sha256-7719gOM8WQVjODwOSo7HpH3HMFFeCGQQYBKktBAevig="; }; - nativeBuildInputs = [ - setuptools - ] ++ lib.optionals (!isPyPy) [ - cython - ]; + nativeBuildInputs = [ setuptools ] ++ lib.optionals (!isPyPy) [ cython ]; __darwinAllowLocalNetworking = true; @@ -78,21 +75,19 @@ buildPythonPackage rec { msgpack mujson ujson - ] ++ lib.optionals (pythonOlder "3.10") [ - testtools - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ testtools ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; - disabledTestPaths = [ - # needs a running server - "tests/asgi/test_asgi_servers.py" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # ModuleNotFoundError: No module named 'distutils' - "tests/asgi/test_cythonized_asgi.py" - ]; + disabledTestPaths = + [ + # needs a running server + "tests/asgi/test_asgi_servers.py" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # ModuleNotFoundError: No module named 'distutils' + "tests/asgi/test_cythonized_asgi.py" + ]; meta = with lib; { description = "An unladen web framework for building APIs and app backends"; @@ -100,5 +95,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = with maintainers; [ desiderius ]; }; - } diff --git a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix index b906a22bea57..4970f246fab9 100644 --- a/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix +++ b/pkgs/development/python-modules/faraday-agent-parameters-types/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, marshmallow -, packaging -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + marshmallow, + packaging, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { --replace-warn '"pytest-runner",' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ marshmallow packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "faraday_agent_parameters_types" diff --git a/pkgs/development/python-modules/faraday-plugins/default.nix b/pkgs/development/python-modules/faraday-plugins/default.nix index 6919123258da..ec509ea3841b 100644 --- a/pkgs/development/python-modules/faraday-plugins/default.nix +++ b/pkgs/development/python-modules/faraday-plugins/default.nix @@ -1,20 +1,21 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, click -, colorama -, fetchFromGitHub -, html2text -, lxml -, markdown -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, requests -, setuptools -, simplejson -, tabulate +{ + lib, + beautifulsoup4, + buildPythonPackage, + click, + colorama, + fetchFromGitHub, + html2text, + lxml, + markdown, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + requests, + setuptools, + simplejson, + tabulate, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace-warn "version=version," "version='${version}'," ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 @@ -54,9 +53,7 @@ buildPythonPackage rec { tabulate ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # faraday itself is currently not available @@ -72,9 +69,7 @@ buildPythonPackage rec { "test_process_report_tags" ]; - pythonImportsCheck = [ - "faraday_plugins" - ]; + pythonImportsCheck = [ "faraday_plugins" ]; meta = with lib; { description = "Security tools report parsers for Faraday"; diff --git a/pkgs/development/python-modules/farama-notifications/default.nix b/pkgs/development/python-modules/farama-notifications/default.nix index eb449b53c1c9..1fc964a56017 100644 --- a/pkgs/development/python-modules/farama-notifications/default.nix +++ b/pkgs/development/python-modules/farama-notifications/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/farm-haystack/default.nix b/pkgs/development/python-modules/farm-haystack/default.nix index e090778735d3..14c563918964 100644 --- a/pkgs/development/python-modules/farm-haystack/default.nix +++ b/pkgs/development/python-modules/farm-haystack/default.nix @@ -1,92 +1,93 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, hatchling -, boilerpy3 -, events -, httpx -, jsonschema -, lazy-imports -, more-itertools -, networkx -, pandas -, pillow -, platformdirs -, posthog -, prompthub-py -, pydantic -, quantulum3 -, rank-bm25 -, requests -, requests-cache -, scikit-learn -, sseclient-py -, tenacity -, tiktoken -, tqdm -, transformers -, openai-whisper -, boto3 -, botocore -# , beir -, selenium -, coverage -, dulwich -# , jupytercontrib -, mkdocs -, mypy -, pre-commit -, psutil -# , pydoc-markdown -, pylint -, pytest -, pytest-asyncio -, pytest-cov -# , pytest-custom-exit-code -, python-multipart -, reno -, responses -, toml -, tox -, watchdog -, elastic-transport -, elasticsearch -# , azure-ai-formrecognizer -, beautifulsoup4 -, markdown -, python-docx -, python-frontmatter -, python-magic -, tika -, black -, huggingface-hub -, sentence-transformers -, mlflow -, rapidfuzz -, scipy -, seqeval -, pdf2image -, pytesseract -, faiss -# , faiss-gpu -, pinecone-client -, onnxruntime -, onnxruntime-tools -# , onnxruntime-gpu -, opensearch-py -, pymupdf -, langdetect -, nltk -, canals -, jinja2 -, openai -, aiorwlock -, ray -, psycopg2 -, sqlalchemy -, sqlalchemy-utils -, weaviate-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + hatchling, + boilerpy3, + events, + httpx, + jsonschema, + lazy-imports, + more-itertools, + networkx, + pandas, + pillow, + platformdirs, + posthog, + prompthub-py, + pydantic, + quantulum3, + rank-bm25, + requests, + requests-cache, + scikit-learn, + sseclient-py, + tenacity, + tiktoken, + tqdm, + transformers, + openai-whisper, + boto3, + botocore, + # , beir + selenium, + coverage, + dulwich, + # , jupytercontrib + mkdocs, + mypy, + pre-commit, + psutil, + # , pydoc-markdown + pylint, + pytest, + pytest-asyncio, + pytest-cov, + # , pytest-custom-exit-code + python-multipart, + reno, + responses, + toml, + tox, + watchdog, + elastic-transport, + elasticsearch, + # , azure-ai-formrecognizer + beautifulsoup4, + markdown, + python-docx, + python-frontmatter, + python-magic, + tika, + black, + huggingface-hub, + sentence-transformers, + mlflow, + rapidfuzz, + scipy, + seqeval, + pdf2image, + pytesseract, + faiss, + # , faiss-gpu + pinecone-client, + onnxruntime, + onnxruntime-tools, + # , onnxruntime-gpu + opensearch-py, + pymupdf, + langdetect, + nltk, + canals, + jinja2, + openai, + aiorwlock, + ray, + psycopg2, + sqlalchemy, + sqlalchemy-utils, + weaviate-client, }: buildPythonPackage rec { @@ -146,9 +147,7 @@ buildPythonPackage rec { # all-gpu = [ # farm-haystack # ]; - audio = [ - openai-whisper - ]; + audio = [ openai-whisper ]; aws = [ boto3 botocore @@ -156,12 +155,8 @@ buildPythonPackage rec { # beir = [ # beir # ]; - colab = [ - pillow - ]; - crawler = [ - selenium - ]; + colab = [ pillow ]; + crawler = [ selenium ]; dev = [ coverage dulwich @@ -201,9 +196,7 @@ buildPythonPackage rec { # python-magic-bin tika ]; - formatting = [ - black - ]; + formatting = [ black ]; inference = [ huggingface-hub sentence-transformers @@ -219,15 +212,11 @@ buildPythonPackage rec { pdf2image pytesseract ]; - only-faiss = [ - faiss - ]; + only-faiss = [ faiss ]; # only-faiss-gpu = [ # faiss-gpu # ]; - only-pinecone = [ - pinecone-client - ]; + only-pinecone = [ pinecone-client ]; onnx = [ onnxruntime onnxruntime-tools @@ -236,12 +225,8 @@ buildPythonPackage rec { # onnxruntime-gpu # onnxruntime-tools # ]; - opensearch = [ - opensearch-py - ]; - pdf = [ - pymupdf - ]; + opensearch = [ opensearch-py ]; + pdf = [ pymupdf ]; preprocessing = [ langdetect nltk @@ -266,21 +251,18 @@ buildPythonPackage rec { sqlalchemy sqlalchemy-utils ]; - weaviate = [ - weaviate-client - ]; + weaviate = [ weaviate-client ]; }; # the setup for test is intensive, hopefully can be done at some point doCheck = false; - pythonImportsCheck = [ "haystack" ]; meta = with lib; { description = "LLM orchestration framework to build customizable, production-ready LLM applications"; longDescription = '' - LLM orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots + LLM orchestration framework to build customizable, production-ready LLM applications. Connect components (models, vector DBs, file converters) to pipelines or agents that can interact with your data. With advanced retrieval methods, it's best suited for building RAG, question answering, semantic search or conversational agent chatbots ''; changelog = "https://github.com/deepset-ai/haystack/releases/tag/${src.rev}"; homepage = "https://github.com/deepset-ai/haystack"; diff --git a/pkgs/development/python-modules/fast-histogram/default.nix b/pkgs/development/python-modules/fast-histogram/default.nix index d3e4e3eb6720..d0621c1b539e 100644 --- a/pkgs/development/python-modules/fast-histogram/default.nix +++ b/pkgs/development/python-modules/fast-histogram/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pytestCheckHook -, fetchFromGitHub -, python -, pythonOlder -, setuptools -, setuptools-scm -, numpy -, wheel -, hypothesis -, pytest-cov +{ + lib, + buildPythonPackage, + pytestCheckHook, + fetchFromGitHub, + python, + pythonOlder, + setuptools, + setuptools-scm, + numpy, + wheel, + hypothesis, + pytest-cov, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fastai/default.nix b/pkgs/development/python-modules/fastai/default.nix index cd4bcc9f4b67..e3c00f3948f7 100644 --- a/pkgs/development/python-modules/fastai/default.nix +++ b/pkgs/development/python-modules/fastai/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fastprogress -, fastcore -, fastdownload -, torch -, torchvision -, matplotlib -, pillow -, scikit-learn -, scipy -, spacy -, pandas -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fastprogress, + fastcore, + fastdownload, + torch, + torchvision, + matplotlib, + pillow, + scikit-learn, + scipy, + spacy, + pandas, + requests, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fastapi-mail/default.nix b/pkgs/development/python-modules/fastapi-mail/default.nix index 258425e35f85..feb52ac8b3f1 100644 --- a/pkgs/development/python-modules/fastapi-mail/default.nix +++ b/pkgs/development/python-modules/fastapi-mail/default.nix @@ -1,21 +1,22 @@ -{ lib -, aioredis -, aiosmtplib -, blinker -, buildPythonPackage -, email-validator -, fakeredis -, fastapi -, fetchFromGitHub -, httpx -, jinja2 -, poetry-core -, pydantic -, pydantic-settings -, pytest-asyncio -, pytestCheckHook -, python-multipart -, pythonOlder +{ + lib, + aioredis, + aiosmtplib, + blinker, + buildPythonPackage, + email-validator, + fakeredis, + fastapi, + fetchFromGitHub, + httpx, + jinja2, + poetry-core, + pydantic, + pydantic-settings, + pytest-asyncio, + pytestCheckHook, + python-multipart, + pythonOlder, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { --replace 'pydantic = "^2.0"' 'pydantic = "*"' \ ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aioredis @@ -68,9 +67,7 @@ buildPythonPackage rec { "test_redis_checker" ]; - pythonImportsCheck = [ - "fastapi_mail" - ]; + pythonImportsCheck = [ "fastapi_mail" ]; meta = with lib; { description = "Module for sending emails and attachments"; diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index 92850c336bba..a39604d71497 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -1,39 +1,40 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, starlette -, pydantic -, typing-extensions + # dependencies + starlette, + pydantic, + typing-extensions, -# tests -, dirty-equals -, flask -, passlib -, pytest-asyncio -, pytestCheckHook -, python-jose -, sqlalchemy -, trio + # tests + dirty-equals, + flask, + passlib, + pytest-asyncio, + pytestCheckHook, + python-jose, + sqlalchemy, + trio, -# optional-dependencies -, httpx -, jinja2 -, python-multipart -, itsdangerous -, pyyaml -, ujson -, orjson -, email-validator -, uvicorn -, pydantic-settings -, pydantic-extra-types + # optional-dependencies + httpx, + jinja2, + python-multipart, + itsdangerous, + pyyaml, + ujson, + orjson, + email-validator, + uvicorn, + pydantic-settings, + pydantic-extra-types, }: buildPythonPackage rec { @@ -67,20 +68,23 @@ buildPythonPackage rec { typing-extensions ]; - passthru.optional-dependencies.all = [ - httpx - jinja2 - python-multipart - itsdangerous - pyyaml - ujson - orjson - email-validator - uvicorn - ] ++ lib.optionals (lib.versionAtLeast pydantic.version "2") [ - pydantic-settings - pydantic-extra-types - ] ++ uvicorn.optional-dependencies.standard; + passthru.optional-dependencies.all = + [ + httpx + jinja2 + python-multipart + itsdangerous + pyyaml + ujson + orjson + email-validator + uvicorn + ] + ++ lib.optionals (lib.versionAtLeast pydantic.version "2") [ + pydantic-settings + pydantic-extra-types + ] + ++ uvicorn.optional-dependencies.standard; nativeCheckInputs = [ dirty-equals @@ -91,8 +95,7 @@ buildPythonPackage rec { python-jose trio sqlalchemy - ] ++ passthru.optional-dependencies.all - ++ python-jose.optional-dependencies.cryptography; + ] ++ passthru.optional-dependencies.all ++ python-jose.optional-dependencies.cryptography; pytestFlagsArray = [ # ignoring deprecation warnings to avoid test failure from @@ -108,9 +111,7 @@ buildPythonPackage rec { "tests/test_tutorial/test_sql_databases" ]; - pythonImportsCheck = [ - "fastapi" - ]; + pythonImportsCheck = [ "fastapi" ]; meta = with lib; { changelog = "https://github.com/tiangolo/fastapi/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/fastavro/default.nix b/pkgs/development/python-modules/fastavro/default.nix index fed754d72945..7b8482440494 100644 --- a/pkgs/development/python-modules/fastavro/default.nix +++ b/pkgs/development/python-modules/fastavro/default.nix @@ -1,17 +1,18 @@ -{ buildPythonPackage -, cython -, fetchFromGitHub -, isPy38 -, lib -, lz4 -, numpy -, pandas -, pytestCheckHook -, python-dateutil -, python-snappy -, pythonOlder -, zlib-ng -, zstandard +{ + buildPythonPackage, + cython, + fetchFromGitHub, + isPy38, + lib, + lz4, + numpy, + pandas, + pytestCheckHook, + python-dateutil, + python-snappy, + pythonOlder, + zlib-ng, + zstandard, }: buildPythonPackage rec { @@ -40,15 +41,9 @@ buildPythonPackage rec { python-snappy zstandard ]; - snappy = [ - python-snappy - ]; - zstandard = [ - zstandard - ]; - lz4 = [ - lz4 - ]; + snappy = [ python-snappy ]; + zstandard = [ zstandard ]; + lz4 = [ lz4 ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/fastcache/default.nix b/pkgs/development/python-modules/fastcache/default.nix index b29b45e87821..ac411b4c0625 100644 --- a/pkgs/development/python-modules/fastcache/default.nix +++ b/pkgs/development/python-modules/fastcache/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "fastcache"; diff --git a/pkgs/development/python-modules/fastdiff/default.nix b/pkgs/development/python-modules/fastdiff/default.nix index 42418076ba35..a2109cb6f6fd 100644 --- a/pkgs/development/python-modules/fastdiff/default.nix +++ b/pkgs/development/python-modules/fastdiff/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, wasmer -, wasmer-compiler-cranelift -, py -, pytestCheckHook -, pytest-benchmark +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + wasmer, + wasmer-compiler-cranelift, + py, + pytestCheckHook, + pytest-benchmark, }: buildPythonPackage rec { @@ -37,13 +38,9 @@ buildPythonPackage rec { pytest-benchmark ]; - pytestFlagsArray = [ - "--benchmark-skip" - ]; + pytestFlagsArray = [ "--benchmark-skip" ]; - pythonImportsCheck = [ - "fastdiff" - ]; + pythonImportsCheck = [ "fastdiff" ]; meta = with lib; { description = "A fast native implementation of diff algorithm with a pure Python fallback"; diff --git a/pkgs/development/python-modules/fastdownload/default.nix b/pkgs/development/python-modules/fastdownload/default.nix index 934ce6861ad6..82e9281dbf43 100644 --- a/pkgs/development/python-modules/fastdownload/default.nix +++ b/pkgs/development/python-modules/fastdownload/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fastprogress -, fastcore -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fastprogress, + fastcore, + pythonOlder, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { sha256 = "sha256-IFB+246JQGofvXd15uKj2BpN1jPdUGsOnPDhYT6DHWo="; }; - propagatedBuildInputs = [ fastprogress fastcore ]; + propagatedBuildInputs = [ + fastprogress + fastcore + ]; # no real tests doCheck = false; diff --git a/pkgs/development/python-modules/fastdtw/default.nix b/pkgs/development/python-modules/fastdtw/default.nix index ce973d218417..09c03c5b433c 100644 --- a/pkgs/development/python-modules/fastdtw/default.nix +++ b/pkgs/development/python-modules/fastdtw/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, cython -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + cython, + numpy, # Check Inputs -, pytestCheckHook -, python + pytestCheckHook, + python, }: buildPythonPackage rec { @@ -30,17 +31,13 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "fastdtw.fastdtw" ]; nativeCheckInputs = [ pytestCheckHook ]; - dontUseSetuptoolsCheck = true; # looks for pytest-runner + dontUseSetuptoolsCheck = true; # looks for pytest-runner preCheck = '' echo "Temporarily moving tests to $OUT to find cython modules" export PACKAGEDIR=$out/${python.sitePackages} @@ -52,7 +49,6 @@ buildPythonPackage rec { popd ''; - meta = with lib; { description = "Python implementation of FastDTW (Dynamic Time Warping)"; longDescription = '' diff --git a/pkgs/development/python-modules/fastecdsa/default.nix b/pkgs/development/python-modules/fastecdsa/default.nix index d46bf58d861c..53968a07b40b 100644 --- a/pkgs/development/python-modules/fastecdsa/default.nix +++ b/pkgs/development/python-modules/fastecdsa/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gmp -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + gmp, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-81JVptPkEQkWa11LCIZtWsu5ny4eZNOn50x3RmTNqEI="; }; - buildInputs = [ - gmp - ]; + buildInputs = [ gmp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # skip tests which require being online to download test vectors @@ -37,9 +34,7 @@ buildPythonPackage rec { # but the installed package works just fine doCheck = false; - pythonImportsCheck = [ - "fastecdsa" - ]; + pythonImportsCheck = [ "fastecdsa" ]; meta = with lib; { description = "Fast elliptic curve digital signatures"; diff --git a/pkgs/development/python-modules/fastembed/default.nix b/pkgs/development/python-modules/fastembed/default.nix index a2c8173fe42a..ec65b42d79e0 100644 --- a/pkgs/development/python-modules/fastembed/default.nix +++ b/pkgs/development/python-modules/fastembed/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, huggingface-hub -, pythonOlder -, pythonRelaxDepsHook -, poetry-core -, onnx -, onnxruntime -, requests -, tokenizers -, tqdm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + huggingface-hub, + pythonOlder, + pythonRelaxDepsHook, + poetry-core, + onnx, + onnxruntime, + requests, + tokenizers, + tqdm, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,17 +42,11 @@ buildPythonPackage rec { tqdm ]; - pythonImportsCheck = [ - "fastembed" - ]; + pythonImportsCheck = [ "fastembed" ]; - pythonRelaxDeps = [ - "huggingface-hub" - ]; + pythonRelaxDeps = [ "huggingface-hub" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # there is one test and it requires network doCheck = false; diff --git a/pkgs/development/python-modules/fasteners/default.nix b/pkgs/development/python-modules/fasteners/default.nix index 3dcdb073aeea..494a384849b9 100644 --- a/pkgs/development/python-modules/fasteners/default.nix +++ b/pkgs/development/python-modules/fasteners/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, diskcache -, eventlet -, fetchFromGitHub -, more-itertools -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + diskcache, + eventlet, + fetchFromGitHub, + more-itertools, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-XFa1ItFqkSYE940p/imWFp5e9gS6n+D1uM6Cj+Vzmmg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ diskcache @@ -34,13 +33,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "fasteners" - ]; + pythonImportsCheck = [ "fasteners" ]; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; meta = with lib; { description = "Module that provides useful locks"; diff --git a/pkgs/development/python-modules/fastentrypoints/default.nix b/pkgs/development/python-modules/fastentrypoints/default.nix index 5e18509e79fd..1c6de8a70c8d 100644 --- a/pkgs/development/python-modules/fastentrypoints/default.nix +++ b/pkgs/development/python-modules/fastentrypoints/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "fastentrypoints"; diff --git a/pkgs/development/python-modules/faster-fifo/default.nix b/pkgs/development/python-modules/faster-fifo/default.nix index a3b8f491a9da..63f0011a17a4 100644 --- a/pkgs/development/python-modules/faster-fifo/default.nix +++ b/pkgs/development/python-modules/faster-fifo/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, stdenv -, gcc12Stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + stdenv, + gcc12Stdenv, -# build-system -, cython -, setuptools + # build-system + cython, + setuptools, -# tests -, numpy -, unittestCheckHook + # tests + numpy, + unittestCheckHook, }: let @@ -36,9 +37,7 @@ buildPythonPackage rec { setuptools ]; - pythonImportsCheck = [ - "faster_fifo" - ]; + pythonImportsCheck = [ "faster_fifo" ]; nativeCheckInputs = [ numpy diff --git a/pkgs/development/python-modules/faster-whisper/default.nix b/pkgs/development/python-modules/faster-whisper/default.nix index 4a54757640b9..f36b90cbb3ff 100644 --- a/pkgs/development/python-modules/faster-whisper/default.nix +++ b/pkgs/development/python-modules/faster-whisper/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, av -, ctranslate2 -, huggingface-hub -, onnxruntime -, tokenizers + # dependencies + av, + ctranslate2, + huggingface-hub, + onnxruntime, + tokenizers, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "tokenizers" - ]; + pythonRelaxDeps = [ "tokenizers" ]; dependencies = [ av @@ -46,16 +45,12 @@ buildPythonPackage rec { tokenizers ]; - pythonImportsCheck = [ - "faster_whisper" - ]; + pythonImportsCheck = [ "faster_whisper" ]; # all tests require downloads doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/fastimport/default.nix b/pkgs/development/python-modules/fastimport/default.nix index 904aac3069c6..93ce891c7d95 100644 --- a/pkgs/development/python-modules/fastimport/default.nix +++ b/pkgs/development/python-modules/fastimport/default.nix @@ -1,8 +1,9 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchPypi -, unittestCheckHook +{ + lib, + pythonOlder, + buildPythonPackage, + fetchPypi, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fastjsonschema/default.nix b/pkgs/development/python-modules/fastjsonschema/default.nix index 330bf096b2ce..e3f69aad972c 100644 --- a/pkgs/development/python-modules/fastjsonschema/default.nix +++ b/pkgs/development/python-modules/fastjsonschema/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,24 +31,22 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; dontUseSetuptoolsCheck = true; - disabledTests = [ - "benchmark" - # these tests require network access - "remote ref" - "definitions" - ] ++ lib.optionals stdenv.isDarwin [ - "test_compile_to_code_custom_format" # cannot import temporary module created during test - ]; + disabledTests = + [ + "benchmark" + # these tests require network access + "remote ref" + "definitions" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_compile_to_code_custom_format" # cannot import temporary module created during test + ]; - pythonImportsCheck = [ - "fastjsonschema" - ]; + pythonImportsCheck = [ "fastjsonschema" ]; meta = with lib; { description = "JSON schema validator for Python"; diff --git a/pkgs/development/python-modules/fastnumbers/default.nix b/pkgs/development/python-modules/fastnumbers/default.nix index 69cdd4c3e378..9bdbd7dfd668 100644 --- a/pkgs/development/python-modules/fastnumbers/default.nix +++ b/pkgs/development/python-modules/fastnumbers/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, hypothesis -, numpy -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + hypothesis, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-TC9+xOvskABpChlrSJcHy6O7D7EnIKL6Ekt/vaLBX2E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; # Tests fail due to numeric precision differences on ARM # See https://github.com/SethMMorton/fastnumbers/issues/28 @@ -42,13 +39,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--hypothesis-profile=standard" - ]; + pytestFlagsArray = [ "--hypothesis-profile=standard" ]; - pythonImportsCheck = [ - "fastnumbers" - ]; + pythonImportsCheck = [ "fastnumbers" ]; meta = with lib; { description = "Python module for number conversion"; diff --git a/pkgs/development/python-modules/fastparquet/default.nix b/pkgs/development/python-modules/fastparquet/default.nix index 1ceeecafb638..40c841b38536 100644 --- a/pkgs/development/python-modules/fastparquet/default.nix +++ b/pkgs/development/python-modules/fastparquet/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, cython -, oldest-supported-numpy -, setuptools -, setuptools-scm -, numpy -, pandas -, cramjam -, fsspec -, thrift -, python-lzo -, pytestCheckHook -, pythonOlder -, packaging -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + cython, + oldest-supported-numpy, + setuptools, + setuptools-scm, + numpy, + pandas, + cramjam, + fsspec, + thrift, + python-lzo, + pytestCheckHook, + pythonOlder, + packaging, + wheel, }: buildPythonPackage rec { @@ -59,14 +60,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - lzo = [ - python-lzo - ]; + lzo = [ python-lzo ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Workaround https://github.com/NixOS/nixpkgs/issues/123561 preCheck = '' @@ -80,9 +77,7 @@ buildPythonPackage rec { rm "$fastparquet_test" ''; - pythonImportsCheck = [ - "fastparquet" - ]; + pythonImportsCheck = [ "fastparquet" ]; meta = with lib; { description = "Implementation of the parquet format"; diff --git a/pkgs/development/python-modules/fastpbkdf2/default.nix b/pkgs/development/python-modules/fastpbkdf2/default.nix index 99ad26f0e735..2d6d68a3842d 100644 --- a/pkgs/development/python-modules/fastpbkdf2/default.nix +++ b/pkgs/development/python-modules/fastpbkdf2/default.nix @@ -1,5 +1,12 @@ -{ lib, fetchFromGitHub, buildPythonPackage -, openssl, pytest, cffi, six }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + openssl, + pytest, + cffi, + six, +}: buildPythonPackage rec { pname = "fastpbkdf2"; @@ -8,15 +15,18 @@ buildPythonPackage rec { # Fetching from GitHub as tests are missing in PyPI src = fetchFromGitHub { - owner = "Ayrx"; - repo = "python-fastpbkdf2"; - rev = "v${version}"; + owner = "Ayrx"; + repo = "python-fastpbkdf2"; + rev = "v${version}"; sha256 = "1hvvlk3j28i6nswb6gy3mq7278nq0mgfnpxh1rv6jvi7xhd7qmlc"; }; buildInputs = [ openssl ]; nativeCheckInputs = [ pytest ]; - propagatedBuildInputs = [ cffi six ]; + propagatedBuildInputs = [ + cffi + six + ]; propagatedNativeBuildInputs = [ cffi ]; meta = with lib; { diff --git a/pkgs/development/python-modules/fastprogress/default.nix b/pkgs/development/python-modules/fastprogress/default.nix index 3a1dc5a30c43..576a9784a055 100644 --- a/pkgs/development/python-modules/fastprogress/default.nix +++ b/pkgs/development/python-modules/fastprogress/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pythonOlder, }: buildPythonPackage rec { @@ -28,5 +29,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = with maintainers; [ ris ]; }; - } diff --git a/pkgs/development/python-modules/fastrlock/default.nix b/pkgs/development/python-modules/fastrlock/default.nix index 26da544933d0..547ab78b759e 100644 --- a/pkgs/development/python-modules/fastrlock/default.nix +++ b/pkgs/development/python-modules/fastrlock/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-2h+rhP/EVMG3IkJVkE74p4GeBTwV3BS7fUkKpwedr2k="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; # Todo: Check why the tests have an import error doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "fastrlock" - ]; + pythonImportsCheck = [ "fastrlock" ]; meta = with lib; { description = "RLock implementation for CPython"; diff --git a/pkgs/development/python-modules/fasttext-predict/default.nix b/pkgs/development/python-modules/fasttext-predict/default.nix index f1d56ef7185f..1a700111593a 100644 --- a/pkgs/development/python-modules/fasttext-predict/default.nix +++ b/pkgs/development/python-modules/fasttext-predict/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pybind11 +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pybind11, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-rMbf09pCHvVYI9g/aq74+PcsuU2LezpmDz4b/w9vRyc="; }; - nativeBuildInputs = [ - pybind11 - ]; + nativeBuildInputs = [ pybind11 ]; # tests are removed from fork doCheck = false; diff --git a/pkgs/development/python-modules/fasttext/default.nix b/pkgs/development/python-modules/fasttext/default.nix index 71db9277ab2c..0b54f1022f05 100644 --- a/pkgs/development/python-modules/fasttext/default.nix +++ b/pkgs/development/python-modules/fasttext/default.nix @@ -1,4 +1,10 @@ -{lib, buildPythonPackage, numpy, pkgs, pybind11 }: +{ + lib, + buildPythonPackage, + numpy, + pkgs, + pybind11, +}: buildPythonPackage rec { inherit (pkgs.fasttext) pname version src; diff --git a/pkgs/development/python-modules/faust-cchardet/default.nix b/pkgs/development/python-modules/faust-cchardet/default.nix index 6a1c8ad2ed81..b84538900694 100644 --- a/pkgs/development/python-modules/faust-cchardet/default.nix +++ b/pkgs/development/python-modules/faust-cchardet/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, cython -, pkgconfig -, setuptools -, wheel -, pytestCheckHook -, python +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + cython, + pkgconfig, + setuptools, + wheel, + pytestCheckHook, + python, }: buildPythonPackage rec { @@ -36,13 +37,9 @@ buildPythonPackage rec { ln -s $out/${python.sitePackages}/{faust_,}cchardet-${version}.dist-info ''; - pythonImportsCheck = [ - "cchardet" - ]; + pythonImportsCheck = [ "cchardet" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { changelog = "https://github.com/faust-streaming/cChardet/blob/${src.rev}/CHANGES.rst"; @@ -50,6 +47,9 @@ buildPythonPackage rec { mainProgram = "cchardetect"; homepage = "https://github.com/faust-streaming/cChardet"; license = lib.licenses.mpl11; - maintainers = with lib.maintainers; [ dotlambda ivan ]; + maintainers = with lib.maintainers; [ + dotlambda + ivan + ]; }; } diff --git a/pkgs/development/python-modules/favicon/default.nix b/pkgs/development/python-modules/favicon/default.nix index db6b70cbf893..69e9aa04d846 100644 --- a/pkgs/development/python-modules/favicon/default.nix +++ b/pkgs/development/python-modules/favicon/default.nix @@ -1,11 +1,12 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, pytest7CheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + pytest7CheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "favicon" - ]; + pythonImportsCheck = [ "favicon" ]; meta = with lib; { description = "Find a website's favicon"; diff --git a/pkgs/development/python-modules/fb-re2/default.nix b/pkgs/development/python-modules/fb-re2/default.nix index e5f41003495b..11defafe3953 100644 --- a/pkgs/development/python-modules/fb-re2/default.nix +++ b/pkgs/development/python-modules/fb-re2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, re2 +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + re2, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fe25519/default.nix b/pkgs/development/python-modules/fe25519/default.nix index 819c7cc34df6..4f47b634030e 100644 --- a/pkgs/development/python-modules/fe25519/default.nix +++ b/pkgs/development/python-modules/fe25519/default.nix @@ -1,13 +1,14 @@ -{ lib -, bitlist -, buildPythonPackage -, fetchPypi -, fountains -, parts -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + bitlist, + buildPythonPackage, + fetchPypi, + fountains, + parts, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -33,18 +34,14 @@ buildPythonPackage rec { parts ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace "--doctest-modules --ignore=docs --cov=fe25519 --cov-report term-missing" "" ''; - pythonImportsCheck = [ - "fe25519" - ]; + pythonImportsCheck = [ "fe25519" ]; meta = with lib; { description = "Python field operations for Curve25519's prime"; diff --git a/pkgs/development/python-modules/feedfinder2/default.nix b/pkgs/development/python-modules/feedfinder2/default.nix index bb5528815294..9837e3c5f92a 100644 --- a/pkgs/development/python-modules/feedfinder2/default.nix +++ b/pkgs/development/python-modules/feedfinder2/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, setuptools + setuptools, -, six -, requests -, beautifulsoup4 + six, + requests, + beautifulsoup4, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-NwHuAabIX4uGWgScMLoLRgiFjIA/6OMNHSif2+idDv4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ six diff --git a/pkgs/development/python-modules/feedgen/default.nix b/pkgs/development/python-modules/feedgen/default.nix index 46e51c49bda1..6a4526ff9e73 100644 --- a/pkgs/development/python-modules/feedgen/default.nix +++ b/pkgs/development/python-modules/feedgen/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, python-dateutil, lxml }: +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + lxml, +}: buildPythonPackage rec { pname = "feedgen"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "sha256-2b1Rw7XpVqKlKZjDcIxNLHKfL8wxEYjh5dO5cmOTVGo="; }; - propagatedBuildInputs = [ python-dateutil lxml ]; + propagatedBuildInputs = [ + python-dateutil + lxml + ]; # No tests in archive doCheck = false; @@ -19,7 +28,10 @@ buildPythonPackage rec { description = "Python module to generate ATOM feeds, RSS feeds and Podcasts."; downloadPage = "https://github.com/lkiesow/python-feedgen/releases"; homepage = "https://github.com/lkiesow/python-feedgen"; - license = with licenses; [ bsd2 lgpl3 ]; + license = with licenses; [ + bsd2 + lgpl3 + ]; maintainers = with maintainers; [ casey ]; }; } diff --git a/pkgs/development/python-modules/feedgenerator/default.nix b/pkgs/development/python-modules/feedgenerator/default.nix index 4fd5808aa236..5b76a3ca7444 100644 --- a/pkgs/development/python-modules/feedgenerator/default.nix +++ b/pkgs/development/python-modules/feedgenerator/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, glibcLocales -, pytestCheckHook -, pythonOlder -, pytz -, six +{ + lib, + buildPythonPackage, + fetchPypi, + glibcLocales, + pytestCheckHook, + pythonOlder, + pytz, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { sed -i '/cov/d' setup.cfg ''; - buildInputs = [ - glibcLocales - ]; + buildInputs = [ glibcLocales ]; LC_ALL = "en_US.UTF-8"; @@ -34,9 +33,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "feedgenerator" ]; diff --git a/pkgs/development/python-modules/feedparser/default.nix b/pkgs/development/python-modules/feedparser/default.nix index 0367e1e8a106..3d1bd3f4ee3b 100644 --- a/pkgs/development/python-modules/feedparser/default.nix +++ b/pkgs/development/python-modules/feedparser/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, pythonOlder -, setuptools -, sgmllib3k +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, + setuptools, + sgmllib3k, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-ydBAe2TG8qBl0OuyksKzXAEFDMDcM3V0Yaqr3ExBhNU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sgmllib3k - ]; + propagatedBuildInputs = [ sgmllib3k ]; __darwinAllowLocalNetworking = true; @@ -36,9 +33,7 @@ buildPythonPackage rec { ${python.interpreter} -Wd tests/runtests.py ''; - pythonImportsCheck = [ - "feedparser" - ]; + pythonImportsCheck = [ "feedparser" ]; meta = with lib; { description = "Universal feed parser"; diff --git a/pkgs/development/python-modules/fenics/default.nix b/pkgs/development/python-modules/fenics/default.nix index e9aa27bd9e21..aa3233840f0b 100644 --- a/pkgs/development/python-modules/fenics/default.nix +++ b/pkgs/development/python-modules/fenics/default.nix @@ -1,32 +1,34 @@ -{ lib, stdenv -, fetchurl -, fetchpatch -, blas -, boost -, cmake -, doxygen -, eigen -, gtest -, hdf5 -, lapack -, mpi -, mpi4py -, numpy -, pkg-config -, ply -, pybind11 -, pytest -, python -, pythonPackages -, scotch -, setuptools -, six -, sphinx -, suitesparse -, swig -, sympy -, zlib -, nixosTests +{ + lib, + stdenv, + fetchurl, + fetchpatch, + blas, + boost, + cmake, + doxygen, + eigen, + gtest, + hdf5, + lapack, + mpi, + mpi4py, + numpy, + pkg-config, + ply, + pybind11, + pytest, + python, + pythonPackages, + scotch, + setuptools, + six, + sphinx, + suitesparse, + swig, + sympy, + zlib, + nixosTests, }: let @@ -39,7 +41,10 @@ let url = "https://bitbucket.org/fenics-project/dijitso/downloads/dijitso-${version}.tar.gz"; sha256 = "1ncgbr0bn5cvv16f13g722a0ipw6p9y6p4iasxjziwsp8kn5x97a"; }; - propagatedBuildInputs = [ numpy six ]; + propagatedBuildInputs = [ + numpy + six + ]; nativeCheckInputs = [ pytest ]; preCheck = '' export HOME=$PWD @@ -64,7 +69,11 @@ let url = "https://bitbucket.org/fenics-project/fiat/downloads/fiat-${version}.tar.gz"; sha256 = "1sbi0fbr7w9g9ajr565g3njxrc3qydqjy3334vmz5xg0rd3106il"; }; - propagatedBuildInputs = [ numpy six sympy ]; + propagatedBuildInputs = [ + numpy + six + sympy + ]; nativeCheckInputs = [ pytest ]; preCheck = '' @@ -100,7 +109,10 @@ let url = "https://bitbucket.org/fenics-project/ufl/downloads/ufl-${version}.tar.gz"; sha256 = "04daxwg4y9c51sdgvwgmlc82nn0fjw7i2vzs15ckdc7dlazmcfi1"; }; - propagatedBuildInputs = [ numpy six ]; + propagatedBuildInputs = [ + numpy + six + ]; nativeCheckInputs = [ pytest ]; checkPhase = '' runHook preCheck @@ -122,9 +134,7 @@ let url = "https://bitbucket.org/fenics-project/ffc/downloads/ffc-${version}.tar.gz"; sha256 = "1zdg6pziss4va74pd7jjl8sc3ya2gmhpypccmyd8p7c66ji23y2g"; }; - nativeBuildInputs = [ - pybind11 - ]; + nativeBuildInputs = [ pybind11 ]; propagatedBuildInputs = [ dijitso fiat @@ -269,7 +279,9 @@ let pythonPackages.pybind11 ]; doCheck = false; # Tries to orte_ess_init and call ssh to localhost - passthru.tests = { inherit (nixosTests) fenics; }; + passthru.tests = { + inherit (nixosTests) fenics; + }; meta = { description = "Python bindings for the DOLFIN FEM compiler"; homepage = "https://fenicsproject.org/"; @@ -277,4 +289,5 @@ let license = lib.licenses.lgpl3; }; }; -in python-dolfin +in +python-dolfin diff --git a/pkgs/development/python-modules/ffcv/default.nix b/pkgs/development/python-modules/ffcv/default.nix index a3dd531c1285..05750d9baed3 100644 --- a/pkgs/development/python-modules/ffcv/default.nix +++ b/pkgs/development/python-modules/ffcv/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, libjpeg -, numba -, opencv4 -, pandas -, pkg-config -, pytorch-pfn-extras -, terminaltables -, tqdm +{ + buildPythonPackage, + fetchFromGitHub, + lib, + libjpeg, + numba, + opencv4, + pandas, + pkg-config, + pytorch-pfn-extras, + terminaltables, + tqdm, }: buildPythonPackage rec { @@ -37,7 +38,14 @@ buildPythonPackage rec { nativeBuildInputs = [ pkg-config ]; buildInputs = [ libjpeg ]; - propagatedBuildInputs = [ opencv4 numba pandas pytorch-pfn-extras terminaltables tqdm ]; + propagatedBuildInputs = [ + opencv4 + numba + pandas + pytorch-pfn-extras + terminaltables + tqdm + ]; # `ffcv._libffcv*.so` cannot be loaded in the nix build environment for some # reason. See https://github.com/NixOS/nixpkgs/pull/160441#issuecomment-1045204722. diff --git a/pkgs/development/python-modules/ffmpeg-progress-yield/default.nix b/pkgs/development/python-modules/ffmpeg-progress-yield/default.nix index fc3cad7892e3..288389dea837 100644 --- a/pkgs/development/python-modules/ffmpeg-progress-yield/default.nix +++ b/pkgs/development/python-modules/ffmpeg-progress-yield/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, colorama -, tqdm -, pytestCheckHook -, pythonOlder -, ffmpeg -, procps +{ + lib, + buildPythonPackage, + fetchPypi, + colorama, + tqdm, + pytestCheckHook, + pythonOlder, + ffmpeg, + procps, }: buildPythonPackage rec { @@ -21,9 +22,16 @@ buildPythonPackage rec { hash = "sha256-muauX4Mq58ew9lGPE0H+bu4bqPydNADLocujjy6qRh4="; }; - propagatedBuildInputs = [ colorama tqdm ]; + propagatedBuildInputs = [ + colorama + tqdm + ]; - nativeCheckInputs = [ pytestCheckHook ffmpeg procps ]; + nativeCheckInputs = [ + pytestCheckHook + ffmpeg + procps + ]; disabledTests = [ "test_quit" diff --git a/pkgs/development/python-modules/ffmpeg-python/default.nix b/pkgs/development/python-modules/ffmpeg-python/default.nix index 0fb0c68d4cba..c7e5507cd8ee 100644 --- a/pkgs/development/python-modules/ffmpeg-python/default.nix +++ b/pkgs/development/python-modules/ffmpeg-python/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ffmpeg_4 -, future -, pytest-mock -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, substituteAll +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ffmpeg_4, + future, + pytest-mock, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + substituteAll, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-Dk3nHuYVlIiFF6nORZ5TVFkBXdoZUxLfoiz68V1tvlY="; }; - propagatedBuildInputs = [ - future - ]; + propagatedBuildInputs = [ future ]; nativeCheckInputs = [ pytestCheckHook @@ -45,13 +44,9 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; - pythonImportsCheck = [ - "ffmpeg" - ]; + pythonImportsCheck = [ "ffmpeg" ]; - disabledTests = lib.optionals (pythonAtLeast "3.10") [ - "test__output__video_size" - ]; + disabledTests = lib.optionals (pythonAtLeast "3.10") [ "test__output__video_size" ]; meta = with lib; { description = "Python bindings for FFmpeg - with complex filtering support"; diff --git a/pkgs/development/python-modules/ffmpy/default.nix b/pkgs/development/python-modules/ffmpy/default.nix index 880a8f84ee75..2aa81aed0357 100644 --- a/pkgs/development/python-modules/ffmpy/default.nix +++ b/pkgs/development/python-modules/ffmpy/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pytestCheckHook -, go -, ffmpeg-headless +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pytestCheckHook, + go, + ffmpeg-headless, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "ffmpy" ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/fhir-py/default.nix b/pkgs/development/python-modules/fhir-py/default.nix index e4072aaf4633..6e156e7da72b 100644 --- a/pkgs/development/python-modules/fhir-py/default.nix +++ b/pkgs/development/python-modules/fhir-py/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, flit-core -, aiohttp -, pytz -, requests -, pytestCheckHook -, pytest-asyncio -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + flit-core, + aiohttp, + pytz, + requests, + pytestCheckHook, + pytest-asyncio, + responses, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace "--cov-report=xml" "" ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/fiblary3-fork/default.nix b/pkgs/development/python-modules/fiblary3-fork/default.nix index 99413e54d634..ac7d3215593b 100644 --- a/pkgs/development/python-modules/fiblary3-fork/default.nix +++ b/pkgs/development/python-modules/fiblary3-fork/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, isPy3k -, fetchPypi -, fixtures -, jsonpatch -, netaddr -, prettytable -, python-dateutil -, pytestCheckHook -, requests -, requests-mock -, six -, sphinx -, testtools +{ + lib, + buildPythonPackage, + isPy3k, + fetchPypi, + fixtures, + jsonpatch, + netaddr, + prettytable, + python-dateutil, + pytestCheckHook, + requests, + requests-mock, + six, + sphinx, + testtools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fido2/default.nix b/pkgs/development/python-modules/fido2/default.nix index 82d635d8d0f6..5ce442d56bd2 100644 --- a/pkgs/development/python-modules/fido2/default.nix +++ b/pkgs/development/python-modules/fido2/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, mock -, poetry-core -, pyfakefs -, pythonOlder -, six -, unittestCheckHook +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + mock, + poetry-core, + pyfakefs, + pythonOlder, + six, + unittestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-JhAPIm0SztYhymGYUozhft9nt430KHruEoX+481aqfw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ cryptography @@ -37,13 +36,9 @@ buildPythonPackage rec { pyfakefs ]; - unittestFlagsArray = [ - "-v" - ]; + unittestFlagsArray = [ "-v" ]; - pythonImportsCheck = [ - "fido2" - ]; + pythonImportsCheck = [ "fido2" ]; meta = with lib; { description = "Provides library functionality for FIDO 2.0, including communication with a device over USB"; diff --git a/pkgs/development/python-modules/fields/default.nix b/pkgs/development/python-modules/fields/default.nix index bbe14dd638d7..de8a7250da95 100644 --- a/pkgs/development/python-modules/fields/default.nix +++ b/pkgs/development/python-modules/fields/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, lib, fetchPypi }: +{ + buildPythonPackage, + lib, + fetchPypi, +}: buildPythonPackage rec { pname = "fields"; diff --git a/pkgs/development/python-modules/filebrowser-safe/default.nix b/pkgs/development/python-modules/filebrowser-safe/default.nix index ab6840c832bf..d72f3b626e28 100644 --- a/pkgs/development/python-modules/filebrowser-safe/default.nix +++ b/pkgs/development/python-modules/filebrowser-safe/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "499c5dbd9e112dfc436cae7713b2fb664a59015021f6c9d131e3b7980aeb5c94"; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; # There is no test embedded doCheck = false; @@ -38,5 +37,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ prikhi ]; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/filebytes/default.nix b/pkgs/development/python-modules/filebytes/default.nix index 9dd04c3c4cb7..edfe2556fa74 100644 --- a/pkgs/development/python-modules/filebytes/default.nix +++ b/pkgs/development/python-modules/filebytes/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { description = "Scripts to parse ELF, PE, Mach-O and OAT (Android Runtime)"; maintainers = with maintainers; [ bennofs ]; }; - } diff --git a/pkgs/development/python-modules/filecheck/default.nix b/pkgs/development/python-modules/filecheck/default.nix index 2ce3e7c1fe8a..a42c824a92f0 100644 --- a/pkgs/development/python-modules/filecheck/default.nix +++ b/pkgs/development/python-modules/filecheck/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-VbMlCqGd3MVpj0jEKjSGC2L0s/3e/d53b+2eZcXZneo="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "filecheck" - ]; + pythonImportsCheck = [ "filecheck" ]; meta = with lib; { changelog = "https://github.com/mull-project/FileCheck.py/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/filedepot/default.nix b/pkgs/development/python-modules/filedepot/default.nix index b567a3d8322a..1b5d554045d8 100644 --- a/pkgs/development/python-modules/filedepot/default.nix +++ b/pkgs/development/python-modules/filedepot/default.nix @@ -1,17 +1,18 @@ -{ lib -, anyascii -, buildPythonPackage -, fetchFromGitHub -, flaky -, google-cloud-storage -, mock -, pillow -, pymongo -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, sqlalchemy +{ + lib, + anyascii, + buildPythonPackage, + fetchFromGitHub, + flaky, + google-cloud-storage, + mock, + pillow, + pymongo, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + sqlalchemy, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-693H/u+Wg2G9sdoUkC6DQo9WkmIlKnh8NKv3ufK/eyQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ anyascii @@ -57,9 +56,7 @@ buildPythonPackage rec { "tests/test_wsgi_middleware.py" ]; - pythonImportsCheck = [ - "depot" - ]; + pythonImportsCheck = [ "depot" ]; meta = with lib; { description = "Toolkit for storing files and attachments in web applications"; diff --git a/pkgs/development/python-modules/filelock/default.nix b/pkgs/development/python-modules/filelock/default.nix index 5b739bcc8fda..328f352fea86 100644 --- a/pkgs/development/python-modules/filelock/default.nix +++ b/pkgs/development/python-modules/filelock/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/filetype/default.nix b/pkgs/development/python-modules/filetype/default.nix index b4479e61baa3..99292c8668cd 100644 --- a/pkgs/development/python-modules/filetype/default.nix +++ b/pkgs/development/python-modules/filetype/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-ZrVs1kdL9B2MVGYDR9N6/MP30ZcGSN42XBAu93VIqts="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "filetype" - ]; + pythonImportsCheck = [ "filetype" ]; disabledTests = [ # https://github.com/h2non/filetype.py/issues/119 diff --git a/pkgs/development/python-modules/filterpy/default.nix b/pkgs/development/python-modules/filterpy/default.nix index 7d45d7f979b4..039c2e863ac7 100644 --- a/pkgs/development/python-modules/filterpy/default.nix +++ b/pkgs/development/python-modules/filterpy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, scipy -, matplotlib -, pytestCheckHook -, isPy3k +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, + matplotlib, + pytestCheckHook, + isPy3k, }: buildPythonPackage { @@ -22,9 +23,7 @@ buildPythonPackage { hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/finalfusion/default.nix b/pkgs/development/python-modules/finalfusion/default.nix index 14b13d7184be..17dde1d6701f 100644 --- a/pkgs/development/python-modules/finalfusion/default.nix +++ b/pkgs/development/python-modules/finalfusion/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, isPy3k -, cython -, numpy -, toml -, pytest +{ + buildPythonPackage, + fetchFromGitHub, + lib, + isPy3k, + cython, + numpy, + toml, + pytest, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { sha256 = "0pwzflamxqvpl1wcz0zbhhd6aa4xn18rmza6rggaic3ckidhyrh4"; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ numpy toml ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; postPatch = '' patchShebangs tests/integration diff --git a/pkgs/development/python-modules/find-libpython/default.nix b/pkgs/development/python-modules/find-libpython/default.nix index 33dcb7e812a6..f247e9c22d9c 100644 --- a/pkgs/development/python-modules/find-libpython/default.nix +++ b/pkgs/development/python-modules/find-libpython/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "find_libpython" - ]; + pythonImportsCheck = [ "find_libpython" ]; meta = with lib; { description = "Finds the libpython associated with your environment, wherever it may be hiding"; diff --git a/pkgs/development/python-modules/findimports/default.nix b/pkgs/development/python-modules/findimports/default.nix index edd442729237..35f2fd4aa81d 100644 --- a/pkgs/development/python-modules/findimports/default.nix +++ b/pkgs/development/python-modules/findimports/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-ar05DYSc/raYC1RJyLCxDYnd7Zjx20aczywlb6wc67Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "findimports" - ]; + pythonImportsCheck = [ "findimports" ]; checkPhase = '' # Tests fails @@ -42,7 +39,10 @@ buildPythonPackage rec { mainProgram = "findimports"; homepage = "https://github.com/mgedmin/findimports"; changelog = "https://github.com/mgedmin/findimports/blob/${version}/CHANGES.rst"; - license = with licenses; [ gpl2Only /* or */ gpl3Only ]; + license = with licenses; [ + gpl2Only # or + gpl3Only + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/findpython/default.nix b/pkgs/development/python-modules/findpython/default.nix index 702f3b77bd89..0b8e7b099109 100644 --- a/pkgs/development/python-modules/findpython/default.nix +++ b/pkgs/development/python-modules/findpython/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build time -, pdm-backend + # build time + pdm-backend, -# runtime -, packaging + # runtime + packaging, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: let @@ -28,21 +29,13 @@ buildPythonPackage { hash = "sha256-VuUrQJqSvL1JXPmByFrPE387PlHMdptG66IZuxq3Uzw="; }; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "findpython" - ]; + pythonImportsCheck = [ "findpython" ]; meta = with lib; { description = "A utility to find python versions on your system"; diff --git a/pkgs/development/python-modules/fingerprints/default.nix b/pkgs/development/python-modules/fingerprints/default.nix index a4e3be44b06f..8f9c118939c9 100644 --- a/pkgs/development/python-modules/fingerprints/default.nix +++ b/pkgs/development/python-modules/fingerprints/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, normality -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + normality, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-U2UslCy1OagVTtllCKsEBX4zI/qIczbxs2Cxzy+/Xys="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - normality - ]; + propagatedBuildInputs = [ normality ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "fingerprints" - ]; + pythonImportsCheck = [ "fingerprints" ]; meta = with lib; { description = "A library to generate entity fingerprints"; diff --git a/pkgs/development/python-modules/finitude/default.nix b/pkgs/development/python-modules/finitude/default.nix index d7f1af78750f..cf2e80928f06 100644 --- a/pkgs/development/python-modules/finitude/default.nix +++ b/pkgs/development/python-modules/finitude/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, prometheus-client -, pyserial -, pythonOlder -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + prometheus-client, + pyserial, + pythonOlder, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-yCI5UCRDhw+dJoTKyjmHbAGBm3by2AyxHKlqCywnLcs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyserial @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "finitude" - ]; + pythonImportsCheck = [ "finitude" ]; meta = with lib; { description = "Python module to get data from ABCD bus (RS-485) used by Carrier Infinity and Bryant Evolution HVAC systems"; diff --git a/pkgs/development/python-modules/fints/default.nix b/pkgs/development/python-modules/fints/default.nix index 5cb94f04c61f..25b906c7fe45 100644 --- a/pkgs/development/python-modules/fints/default.nix +++ b/pkgs/development/python-modules/fints/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, bleach -, mt-940 -, requests -, sepaxml -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + bleach, + mt-940, + requests, + sepaxml, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { @@ -24,14 +25,25 @@ buildPythonPackage rec { hash = "sha256-SREprcrIdeKVpL22IViexwiKmFfbT2UbKEmxtVm6iu0="; }; - propagatedBuildInputs = [ requests mt-940 sepaxml bleach ]; + propagatedBuildInputs = [ + requests + mt-940 + sepaxml + bleach + ]; - nativeCheckInputs = [ pytestCheckHook pytest-mock ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-mock + ]; meta = with lib; { homepage = "https://github.com/raphaelm/python-fints/"; description = "Pure-python FinTS (formerly known as HBCI) implementation"; license = licenses.lgpl3Only; - maintainers = with maintainers; [ elohmeier dotlambda ]; + maintainers = with maintainers; [ + elohmeier + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/finvizfinance/default.nix b/pkgs/development/python-modules/finvizfinance/default.nix index a953795b8663..ce85324c561e 100644 --- a/pkgs/development/python-modules/finvizfinance/default.nix +++ b/pkgs/development/python-modules/finvizfinance/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, beautifulsoup4 -, datetime -, lxml -, pandas -, pytest-mock -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + beautifulsoup4, + datetime, + lxml, + pandas, + pytest-mock, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "finvizfinance" - ]; + pythonImportsCheck = [ "finvizfinance" ]; disabledTests = [ # Tests require network access @@ -68,4 +67,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ icyrockcom ]; }; } - diff --git a/pkgs/development/python-modules/fiona/default.nix b/pkgs/development/python-modules/fiona/default.nix index 35c9b57ce555..753bcc32278c 100644 --- a/pkgs/development/python-modules/fiona/default.nix +++ b/pkgs/development/python-modules/fiona/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cython -, gdal -, oldest-supported-numpy -, setuptools -, wheel -, attrs -, certifi -, click -, click-plugins -, cligj -, munch -, shapely -, boto3 -, pytestCheckHook -, pytz +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cython, + gdal, + oldest-supported-numpy, + setuptools, + wheel, + attrs, + certifi, + click, + click-plugins, + cligj, + munch, + shapely, + boto3, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - gdal - ]; + buildInputs = [ gdal ]; propagatedBuildInputs = [ attrs @@ -84,9 +83,7 @@ buildPythonPackage rec { "test_append_memoryfile_drivers" ]; - pythonImportsCheck = [ - "fiona" - ]; + pythonImportsCheck = [ "fiona" ]; doInstallCheck = true; diff --git a/pkgs/development/python-modules/fipy/default.nix b/pkgs/development/python-modules/fipy/default.nix index d8f7c808a9af..a2ee2dc24545 100644 --- a/pkgs/development/python-modules/fipy/default.nix +++ b/pkgs/development/python-modules/fipy/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, numpy -, scipy -, pyamg -, future -, matplotlib -, tkinter -, mpi4py -, scikit-fmm -, gmsh -, python -, stdenv -, openssh -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + numpy, + scipy, + pyamg, + future, + matplotlib, + tkinter, + mpi4py, + scikit-fmm, + gmsh, + python, + stdenv, + openssh, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -40,22 +41,16 @@ buildPythonPackage rec { future scikit-fmm openssh - ] ++ lib.optionals (!stdenv.isDarwin) [ - gmsh - ]; + ] ++ lib.optionals (!stdenv.isDarwin) [ gmsh ]; - nativeCheckInputs = lib.optionals (!stdenv.isDarwin) [ - gmsh - ]; + nativeCheckInputs = lib.optionals (!stdenv.isDarwin) [ gmsh ]; checkPhase = '' export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh ${python.interpreter} setup.py test --modules ''; - pythonImportsCheck = [ - "fipy" - ]; + pythonImportsCheck = [ "fipy" ]; meta = with lib; { homepage = "https://www.ctcms.nist.gov/fipy/"; diff --git a/pkgs/development/python-modules/fire/default.nix b/pkgs/development/python-modules/fire/default.nix index 1055bada787e..d02908020778 100644 --- a/pkgs/development/python-modules/fire/default.nix +++ b/pkgs/development/python-modules/fire/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, six -, hypothesis -, mock -, levenshtein -, pytestCheckHook -, termcolor -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + six, + hypothesis, + mock, + levenshtein, + pytestCheckHook, + termcolor, + pythonOlder, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "fire" - ]; + pythonImportsCheck = [ "fire" ]; meta = with lib; { description = "A library for automatically generating command line interfaces"; diff --git a/pkgs/development/python-modules/firebase-messaging/default.nix b/pkgs/development/python-modules/firebase-messaging/default.nix index 5acd1ff48022..ed630616db8b 100644 --- a/pkgs/development/python-modules/firebase-messaging/default.nix +++ b/pkgs/development/python-modules/firebase-messaging/default.nix @@ -1,21 +1,22 @@ -{ lib -, async-timeout -, buildPythonPackage -, cryptography -, fetchFromGitHub -, http-ece -, poetry-core -, protobuf -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, sphinx -, sphinx-autodoc-typehints -, sphinx-rtd-theme -, sphinxHook +{ + lib, + async-timeout, + buildPythonPackage, + cryptography, + fetchFromGitHub, + http-ece, + poetry-core, + protobuf, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + sphinx, + sphinx-autodoc-typehints, + sphinx-rtd-theme, + sphinxHook, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "firebase_messaging" - ]; + pythonImportsCheck = [ "firebase_messaging" ]; nativeCheckInputs = [ async-timeout diff --git a/pkgs/development/python-modules/fireflyalgorithm/default.nix b/pkgs/development/python-modules/fireflyalgorithm/default.nix index 2a51a96f114f..5457ada70649 100644 --- a/pkgs/development/python-modules/fireflyalgorithm/default.nix +++ b/pkgs/development/python-modules/fireflyalgorithm/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-xsTgSHBtN4gGw+9YvprcLubnCXSNRdn4abcz391cMEE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "fireflyalgorithm" - ]; + pythonImportsCheck = [ "fireflyalgorithm" ]; meta = with lib; { description = "An implementation of the stochastic nature-inspired algorithm for optimization"; diff --git a/pkgs/development/python-modules/firetv/default.nix b/pkgs/development/python-modules/firetv/default.nix index 71525fe802f7..baba36b127aa 100644 --- a/pkgs/development/python-modules/firetv/default.nix +++ b/pkgs/development/python-modules/firetv/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, adb-homeassistant -, flask -, pure-python-adb-homeassistant -, pycryptodome -, pyyaml -, rsa +{ + lib, + buildPythonPackage, + fetchPypi, + adb-homeassistant, + flask, + pure-python-adb-homeassistant, + pycryptodome, + pyyaml, + rsa, }: buildPythonPackage rec { pname = "firetv"; diff --git a/pkgs/development/python-modules/first/default.nix b/pkgs/development/python-modules/first/default.nix index 0e75f61a9f70..195c996825e0 100644 --- a/pkgs/development/python-modules/first/default.nix +++ b/pkgs/development/python-modules/first/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { doCheck = false; # no tests - pythonImportsCheck = [ - "first" - ]; + pythonImportsCheck = [ "first" ]; meta = with lib; { description = "The function you always missed in Python"; diff --git a/pkgs/development/python-modules/fitbit/default.nix b/pkgs/development/python-modules/fitbit/default.nix index 439d74a26a3d..a479e66246fd 100644 --- a/pkgs/development/python-modules/fitbit/default.nix +++ b/pkgs/development/python-modules/fitbit/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, freezegun -, mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests-mock -, requests-oauthlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + freezegun, + mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests-mock, + requests-oauthlib, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "fitbit" - ]; + pythonImportsCheck = [ "fitbit" ]; meta = with lib; { description = "Fitbit API Python Client Implementation"; diff --git a/pkgs/development/python-modules/fivem-api/default.nix b/pkgs/development/python-modules/fivem-api/default.nix index aef6fc342129..747509a83868 100644 --- a/pkgs/development/python-modules/fivem-api/default.nix +++ b/pkgs/development/python-modules/fivem-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-6llrMGWbDRmysEw+B6B115hLS5xlktQEXiSHzPLbV5s="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "fivem" - ]; + pythonImportsCheck = [ "fivem" ]; meta = with lib; { description = "Module for interacting with FiveM servers"; diff --git a/pkgs/development/python-modules/fixerio/default.nix b/pkgs/development/python-modules/fixerio/default.nix index 56ba061b4233..550181765263 100644 --- a/pkgs/development/python-modules/fixerio/default.nix +++ b/pkgs/development/python-modules/fixerio/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook -, httpretty -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pytestCheckHook, + httpretty, + responses, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "009h1mys175xdyznn5bl980vly40544s4ph1zcgqwg2i2ic93gvb"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ httpretty diff --git a/pkgs/development/python-modules/fixtures/default.nix b/pkgs/development/python-modules/fixtures/default.nix index 2570b1a274b6..a14f24cb8e5f 100644 --- a/pkgs/development/python-modules/fixtures/default.nix +++ b/pkgs/development/python-modules/fixtures/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, setuptools -, testtools -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + setuptools, + testtools, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,14 +24,10 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - pbr - ]; + propagatedBuildInputs = [ pbr ]; passthru.optional-dependencies = { - streams = [ - testtools - ]; + streams = [ testtools ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/fjaraskupan/default.nix b/pkgs/development/python-modules/fjaraskupan/default.nix index 533847786c89..0763fa17b1f5 100644 --- a/pkgs/development/python-modules/fjaraskupan/default.nix +++ b/pkgs/development/python-modules/fjaraskupan/default.nix @@ -1,11 +1,12 @@ -{ lib -, bleak -, buildPythonPackage -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + bleak, + buildPythonPackage, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-3jw42lsCwNkFptMNpnhtbrPIkZP/8lUCcMigzq8Hbc4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - dependencies = [ - bleak - ]; + dependencies = [ bleak ]; nativeCheckInputs = [ pytest-mock pytestCheckHook ]; - pythonImportsCheck = [ - "fjaraskupan" - ]; + pythonImportsCheck = [ "fjaraskupan" ]; meta = with lib; { description = "Module for controlling Fjäråskupan kitchen fans"; diff --git a/pkgs/development/python-modules/flake8-blind-except/default.nix b/pkgs/development/python-modules/flake8-blind-except/default.nix index c25985e16819..41905af406ab 100644 --- a/pkgs/development/python-modules/flake8-blind-except/default.nix +++ b/pkgs/development/python-modules/flake8-blind-except/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pycodestyle -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pycodestyle, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-8lpXWp3LPus8dgv5wi22C4taIxICJO0fqppD913X3RY="; }; - propagatedBuildInputs = [ - pycodestyle - ]; + propagatedBuildInputs = [ pycodestyle ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "flake8_blind_except" - ]; + pythonImportsCheck = [ "flake8_blind_except" ]; meta = with lib; { description = "A flake8 extension that checks for blind except: statements"; diff --git a/pkgs/development/python-modules/flake8-bugbear/default.nix b/pkgs/development/python-modules/flake8-bugbear/default.nix index 5a6305744dbd..b90ad54cbcfb 100644 --- a/pkgs/development/python-modules/flake8-bugbear/default.nix +++ b/pkgs/development/python-modules/flake8-bugbear/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, attrs -, flake8 -, pytestCheckHook -, pythonOlder -, hypothesis -, hypothesmith +{ + lib, + buildPythonPackage, + fetchFromGitHub, + attrs, + flake8, + pytestCheckHook, + pythonOlder, + hypothesis, + hypothesmith, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flake8-debugger/default.nix b/pkgs/development/python-modules/flake8-debugger/default.nix index 32885570ba76..aa7e23ecd8df 100644 --- a/pkgs/development/python-modules/flake8-debugger/default.nix +++ b/pkgs/development/python-modules/flake8-debugger/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flake8 -, pycodestyle -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flake8, + pycodestyle, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { pycodestyle ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flake8_debugger" - ]; + pythonImportsCheck = [ "flake8_debugger" ]; meta = with lib; { description = "ipdb/pdb statement checker plugin for flake8"; diff --git a/pkgs/development/python-modules/flake8-docstrings/default.nix b/pkgs/development/python-modules/flake8-docstrings/default.nix index c3a08f931557..3cd84284a1c4 100644 --- a/pkgs/development/python-modules/flake8-docstrings/default.nix +++ b/pkgs/development/python-modules/flake8-docstrings/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flake8 -, pydocstyle -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flake8, + pydocstyle, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "flake8_docstrings" - ]; + pythonImportsCheck = [ "flake8_docstrings" ]; meta = with lib; { description = "Extension for flake8 which uses pydocstyle to check docstrings"; diff --git a/pkgs/development/python-modules/flake8-future-import/default.nix b/pkgs/development/python-modules/flake8-future-import/default.nix index 7b58dddb853a..6fb92de8b55f 100644 --- a/pkgs/development/python-modules/flake8-future-import/default.nix +++ b/pkgs/development/python-modules/flake8-future-import/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, isPy38 -, isPy39 -, pythonAtLeast -, flake8 -, six -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + isPy38, + isPy39, + pythonAtLeast, + flake8, + six, + python, }: buildPythonPackage rec { @@ -23,16 +24,15 @@ buildPythonPackage rec { hash = "sha256-2EcCOx3+PCk9LYpQjHCFNpQVI2Pdi+lWL8R6bNadFe0="; }; - patches = lib.optionals (pythonAtLeast "3.10") [ - ./fix-annotations-version-11.patch - ] ++ lib.optionals (isPy38 || isPy39) [ - ./fix-annotations-version-10.patch - ] ++ lib.optionals isPy27 [ - # Upstream disables this test case naturally on python 3, but it also fails - # inside NixPkgs for python 2. Since it's going to be deleted, we just skip it - # on py2 as well. - ./skip-test.patch - ]; + patches = + lib.optionals (pythonAtLeast "3.10") [ ./fix-annotations-version-11.patch ] + ++ lib.optionals (isPy38 || isPy39) [ ./fix-annotations-version-10.patch ] + ++ lib.optionals isPy27 [ + # Upstream disables this test case naturally on python 3, but it also fails + # inside NixPkgs for python 2. Since it's going to be deleted, we just skip it + # on py2 as well. + ./skip-test.patch + ]; postPatch = '' substituteInPlace "test_flake8_future_import.py" \ diff --git a/pkgs/development/python-modules/flake8-import-order/default.nix b/pkgs/development/python-modules/flake8-import-order/default.nix index 51c9b9eb569e..476491873e4f 100644 --- a/pkgs/development/python-modules/flake8-import-order/default.nix +++ b/pkgs/development/python-modules/flake8-import-order/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flake8 -, pycodestyle -, pylama -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flake8, + pycodestyle, + pylama, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-4jlB+JLaPgwJ1xG6u7DHO8c1JC6bIWtyZhZ1ipINkA4="; }; - propagatedBuildInputs = [ - pycodestyle - ]; + propagatedBuildInputs = [ pycodestyle ]; nativeCheckInputs = [ flake8 @@ -31,15 +30,16 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "flake8_import_order" - ]; + pythonImportsCheck = [ "flake8_import_order" ]; meta = with lib; { description = "Flake8 and pylama plugin that checks the ordering of import statements"; homepage = "https://github.com/PyCQA/flake8-import-order"; changelog = "https://github.com/PyCQA/flake8-import-order/blob/${version}/CHANGELOG.rst"; - license = with licenses; [ lgpl3 mit ]; + license = with licenses; [ + lgpl3 + mit + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/flake8-length/default.nix b/pkgs/development/python-modules/flake8-length/default.nix index 9214a92ce517..1e88a0280cc8 100644 --- a/pkgs/development/python-modules/flake8-length/default.nix +++ b/pkgs/development/python-modules/flake8-length/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flake8 -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flake8, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,25 +20,15 @@ buildPythonPackage rec { hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - flake8 - ]; + propagatedBuildInputs = [ flake8 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flake8_length" - ]; + pythonImportsCheck = [ "flake8_length" ]; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; meta = with lib; { description = "Flake8 plugin for a smart line length validation"; diff --git a/pkgs/development/python-modules/flake8-polyfill/default.nix b/pkgs/development/python-modules/flake8-polyfill/default.nix index aef7cab9d1fc..0c912cd7005b 100644 --- a/pkgs/development/python-modules/flake8-polyfill/default.nix +++ b/pkgs/development/python-modules/flake8-polyfill/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, flake8 -, mock -, pep8 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + flake8, + mock, + pep8, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1nlf1mkqw856vi6782qcglqhaacb23khk9wkcgn55npnjxshhjz4"; }; - propagatedBuildInputs = [ - flake8 - ]; + propagatedBuildInputs = [ flake8 ]; nativeCheckInputs = [ mock @@ -43,9 +42,7 @@ buildPythonPackage rec { --replace pytest 'tool:pytest' ''; - pythonImportsCheck = [ - "flake8_polyfill" - ]; + pythonImportsCheck = [ "flake8_polyfill" ]; meta = with lib; { homepage = "https://gitlab.com/pycqa/flake8-polyfill"; diff --git a/pkgs/development/python-modules/flake8/default.nix b/pkgs/development/python-modules/flake8/default.nix index 9efb1fab948c..489c7b7f87f8 100644 --- a/pkgs/development/python-modules/flake8/default.nix +++ b/pkgs/development/python-modules/flake8/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, mccabe -, pycodestyle -, pyflakes -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + mccabe, + pycodestyle, + pyflakes, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-2oVvchDhH3cX90RTIquYLyr+rzHxzQgYA4k4ReTxpH8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ mccabe @@ -34,9 +33,7 @@ buildPythonPackage rec { pyflakes ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "The modular source code checker: pep8, pyflakes and co"; diff --git a/pkgs/development/python-modules/flaky/default.nix b/pkgs/development/python-modules/flaky/default.nix index 884593dbabfa..ef6b8d64655c 100644 --- a/pkgs/development/python-modules/flaky/default.nix +++ b/pkgs/development/python-modules/flaky/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, mock -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + mock, + pytest, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-RyBKgeyQXz1az71h2uq8raj51AMWFtm8sGGEYXKWmfU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ mock @@ -39,5 +38,4 @@ buildPythonPackage rec { description = "Plugin for nose or py.test that automatically reruns flaky tests"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/flametree/default.nix b/pkgs/development/python-modules/flametree/default.nix index 2a3ff69235c3..84d8a5370a09 100644 --- a/pkgs/development/python-modules/flametree/default.nix +++ b/pkgs/development/python-modules/flametree/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fontconfig -, matplotlib -, pandas -, pytestCheckHook -, weasyprint +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fontconfig, + matplotlib, + pandas, + pytestCheckHook, + weasyprint, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flammkuchen/default.nix b/pkgs/development/python-modules/flammkuchen/default.nix index 61758ae482b8..8af55dfe7c02 100644 --- a/pkgs/development/python-modules/flammkuchen/default.nix +++ b/pkgs/development/python-modules/flammkuchen/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pandas -, pytestCheckHook -, scipy -, setuptools -, tables +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pandas, + pytestCheckHook, + scipy, + setuptools, + tables, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-z68HBsU9J6oe8+YL4OOQiMYQRs3TZUDM+e2ssqo6BFI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/flasgger/default.nix b/pkgs/development/python-modules/flasgger/default.nix index 1be41854b52e..be5b422f1402 100644 --- a/pkgs/development/python-modules/flasgger/default.nix +++ b/pkgs/development/python-modules/flasgger/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, -# dependencies -, flask -, jsonschema -, mistune -, pyyaml -, six -, werkzeug + # dependencies + flask, + jsonschema, + mistune, + pyyaml, + six, + werkzeug, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -49,13 +50,9 @@ buildPythonPackage rec { werkzeug ]; - pythonImportsCheck = [ - "flasgger" - ]; + pythonImportsCheck = [ "flasgger" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; doCheck = false; # missing flex dependency diff --git a/pkgs/development/python-modules/flashtext/default.nix b/pkgs/development/python-modules/flashtext/default.nix index e4aa3a60c7eb..7988af840628 100644 --- a/pkgs/development/python-modules/flashtext/default.nix +++ b/pkgs/development/python-modules/flashtext/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flask-admin/default.nix b/pkgs/development/python-modules/flask-admin/default.nix index ae12e6353e2b..38ab5efc7470 100644 --- a/pkgs/development/python-modules/flask-admin/default.nix +++ b/pkgs/development/python-modules/flask-admin/default.nix @@ -1,24 +1,25 @@ -{ lib -, azure-storage-blob -, boto -, buildPythonPackage -, fetchpatch -, fetchFromGitHub -, flask -, flask-mongoengine -, flask-sqlalchemy -, geoalchemy2 -, mongoengine -, pillow -, psycopg2 -, pymongo -, pytestCheckHook -, pythonOlder -, setuptools -, shapely -, sqlalchemy -, wtf-peewee -, wtforms +{ + lib, + azure-storage-blob, + boto, + buildPythonPackage, + fetchpatch, + fetchFromGitHub, + flask, + flask-mongoengine, + flask-sqlalchemy, + geoalchemy2, + mongoengine, + pillow, + psycopg2, + pymongo, + pytestCheckHook, + pythonOlder, + setuptools, + shapely, + sqlalchemy, + wtf-peewee, + wtforms, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ flask @@ -91,9 +90,7 @@ buildPythonPackage rec { "flask_admin/tests/peeweemodel/test_basic.py" ]; - pythonImportsCheck = [ - "flask_admin" - ]; + pythonImportsCheck = [ "flask_admin" ]; meta = with lib; { description = "Admin interface framework for Flask"; diff --git a/pkgs/development/python-modules/flask-api/default.nix b/pkgs/development/python-modules/flask-api/default.nix index e837dc71df37..7b15e047ae19 100644 --- a/pkgs/development/python-modules/flask-api/default.nix +++ b/pkgs/development/python-modules/flask-api/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, flask + # dependencies + flask, -# tests -, markdown -, pytestCheckHook + # tests + markdown, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,13 +38,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; nativeCheckInputs = [ markdown diff --git a/pkgs/development/python-modules/flask-appbuilder/default.nix b/pkgs/development/python-modules/flask-appbuilder/default.nix index 2e7f5fb80850..e6d6231a25ca 100644 --- a/pkgs/development/python-modules/flask-appbuilder/default.nix +++ b/pkgs/development/python-modules/flask-appbuilder/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, fetchPypi -, apispec -, colorama -, click -, email-validator -, flask -, flask-babel -, flask-limiter -, flask-login -, flask-openid -, flask-sqlalchemy -, flask-wtf -, flask-jwt-extended -, jsonschema -, marshmallow -, marshmallow-sqlalchemy -, python-dateutil -, pythonOlder -, prison -, pyjwt -, pyyaml -, sqlalchemy-utils +{ + lib, + buildPythonPackage, + fetchPypi, + apispec, + colorama, + click, + email-validator, + flask, + flask-babel, + flask-limiter, + flask-login, + flask-openid, + flask-sqlalchemy, + flask-wtf, + flask-jwt-extended, + jsonschema, + marshmallow, + marshmallow-sqlalchemy, + python-dateutil, + pythonOlder, + prison, + pyjwt, + pyyaml, + sqlalchemy-utils, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { # Majority of tests require network access or mongo doCheck = false; - pythonImportsCheck = [ - "flask_appbuilder" - ]; + pythonImportsCheck = [ "flask_appbuilder" ]; meta = with lib; { description = "Application development framework, built on top of Flask"; diff --git a/pkgs/development/python-modules/flask-assets/default.nix b/pkgs/development/python-modules/flask-assets/default.nix index def8f7b7754f..966d7db267db 100644 --- a/pkgs/development/python-modules/flask-assets/default.nix +++ b/pkgs/development/python-modules/flask-assets/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, flask -, webassets -, flask-script -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + flask, + webassets, + flask-script, + nose, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { substituteInPlace tests/test_integration.py --replace "'/foo'" "'/x/foo'" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask diff --git a/pkgs/development/python-modules/flask-babel/default.nix b/pkgs/development/python-modules/flask-babel/default.nix index f8a6d3b31000..f1e911f0e321 100644 --- a/pkgs/development/python-modules/flask-babel/default.nix +++ b/pkgs/development/python-modules/flask-babel/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, -# build-system -, poetry-core + # build-system + poetry-core, -# docs -, furo -, sphinxHook + # docs + furo, + sphinxHook, -# runtime -, babel -, flask -, jinja2 -, pytz + # runtime + babel, + flask, + jinja2, + pytz, -# tests -, pytest-mock -, pytestCheckHook + # tests + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { pytz ]; - pythonImportsCheck = [ - "flask_babel" - ]; + pythonImportsCheck = [ "flask_babel" ]; checkInputs = [ pytest-mock diff --git a/pkgs/development/python-modules/flask-babelex/default.nix b/pkgs/development/python-modules/flask-babelex/default.nix index 7d3679e8f588..6fc4381c602f 100644 --- a/pkgs/development/python-modules/flask-babelex/default.nix +++ b/pkgs/development/python-modules/flask-babelex/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, babel -, speaklater -, jinja2 -, pytestCheckHook -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + babel, + speaklater, + jinja2, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytz ]; - pytestFlagsArray = [ - "tests/tests.py" - ]; + pytestFlagsArray = [ "tests/tests.py" ]; disabledTests = [ # Disabled 3 tests failing due to string representations of dates: diff --git a/pkgs/development/python-modules/flask-bcrypt/default.nix b/pkgs/development/python-modules/flask-bcrypt/default.nix index 1d9db3cb22f2..da98864cf818 100644 --- a/pkgs/development/python-modules/flask-bcrypt/default.nix +++ b/pkgs/development/python-modules/flask-bcrypt/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, bcrypt -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + bcrypt, + unittestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "flask_bcrypt" - ]; + pythonImportsCheck = [ "flask_bcrypt" ]; meta = with lib; { description = "Brcrypt hashing for Flask"; diff --git a/pkgs/development/python-modules/flask-bootstrap/default.nix b/pkgs/development/python-modules/flask-bootstrap/default.nix index 3088e7392a48..e994f021c068 100644 --- a/pkgs/development/python-modules/flask-bootstrap/default.nix +++ b/pkgs/development/python-modules/flask-bootstrap/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, flask, visitor, dominate }: +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + visitor, + dominate, +}: buildPythonPackage rec { pname = "flask-bootstrap"; @@ -10,7 +17,11 @@ buildPythonPackage rec { sha256 = "1j1s2bplaifsnmr8vfxa3czca4rz78xyhrg4chx39xl306afs26b"; }; - propagatedBuildInputs = [ flask visitor dominate ]; + propagatedBuildInputs = [ + flask + visitor + dominate + ]; meta = with lib; { homepage = "https://github.com/mbr/flask-bootstrap"; diff --git a/pkgs/development/python-modules/flask-caching/default.nix b/pkgs/development/python-modules/flask-caching/default.nix index 7ac2830bcf18..8ac772fdd091 100644 --- a/pkgs/development/python-modules/flask-caching/default.nix +++ b/pkgs/development/python-modules/flask-caching/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, cachelib -, flask -, asgiref -, pytest-asyncio -, pytest-xprocess -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + cachelib, + flask, + asgiref, + pytest-asyncio, + pytest-xprocess, + pytestCheckHook, }: buildPythonPackage rec { @@ -40,17 +41,19 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # backend_cache relies on pytest-cache, which is a stale package from 2013 - "backend_cache" - # optional backends - "Redis" - "Memcache" - ] ++ lib.optionals stdenv.isDarwin [ - # ignore flaky test - "test_cache_timeout_dynamic" - "test_cached_view_class" - ]; + disabledTests = + [ + # backend_cache relies on pytest-cache, which is a stale package from 2013 + "backend_cache" + # optional backends + "Redis" + "Memcache" + ] + ++ lib.optionals stdenv.isDarwin [ + # ignore flaky test + "test_cache_timeout_dynamic" + "test_cached_view_class" + ]; meta = with lib; { description = "A caching extension for Flask"; diff --git a/pkgs/development/python-modules/flask-common/default.nix b/pkgs/development/python-modules/flask-common/default.nix index 54c8ef95e5a0..00881d7d8fe5 100644 --- a/pkgs/development/python-modules/flask-common/default.nix +++ b/pkgs/development/python-modules/flask-common/default.nix @@ -1,5 +1,15 @@ -{ lib, fetchPypi, buildPythonPackage -, crayons, flask, flask-caching, gunicorn, maya, meinheld, whitenoise }: +{ + lib, + fetchPypi, + buildPythonPackage, + crayons, + flask, + flask-caching, + gunicorn, + maya, + meinheld, + whitenoise, +}: buildPythonPackage rec { pname = "flask-common"; @@ -11,7 +21,15 @@ buildPythonPackage rec { sha256 = "13d99f2dbc0a332b8bc4b2cc394d3e48f89672c266868e372cd9d7b433d921a9"; }; - propagatedBuildInputs = [ crayons flask flask-caching gunicorn maya meinheld whitenoise ]; + propagatedBuildInputs = [ + crayons + flask + flask-caching + gunicorn + maya + meinheld + whitenoise + ]; meta = with lib; { description = "Flask extension with lots of common time-savers"; diff --git a/pkgs/development/python-modules/flask-compress/default.nix b/pkgs/development/python-modules/flask-compress/default.nix index 2810ab227008..6e6fb8d2b437 100644 --- a/pkgs/development/python-modules/flask-compress/default.nix +++ b/pkgs/development/python-modules/flask-compress/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, isPyPy -, setuptools -, setuptools-scm -, flask -, brotli -, brotlicffi -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + isPyPy, + setuptools, + setuptools-scm, + flask, + brotli, + brotlicffi, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,19 +30,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ flask - ] ++ lib.optionals (!isPyPy) [ - brotli - ] ++ lib.optionals isPyPy [ - brotlicffi - ]; + ] ++ lib.optionals (!isPyPy) [ brotli ] ++ lib.optionals isPyPy [ brotlicffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flask_compress" - ]; + pythonImportsCheck = [ "flask_compress" ]; meta = with lib; { description = "Compress responses in your Flask app with gzip, deflate or brotli"; diff --git a/pkgs/development/python-modules/flask-cors/default.nix b/pkgs/development/python-modules/flask-cors/default.nix index abc90cdbb0e3..32dfeecad6b4 100644 --- a/pkgs/development/python-modules/flask-cors/default.nix +++ b/pkgs/development/python-modules/flask-cors/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, flask -, packaging -, pytestCheckHook -, setuptools +{ + lib, + fetchFromGitHub, + buildPythonPackage, + flask, + packaging, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-o//ulROKKBv/CBJIGPBFP/+T0TpMHUVjr23Y5g1V05g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/flask-dramatiq/default.nix b/pkgs/development/python-modules/flask-dramatiq/default.nix index 6f8884516f49..df943b1d8ed1 100644 --- a/pkgs/development/python-modules/flask-dramatiq/default.nix +++ b/pkgs/development/python-modules/flask-dramatiq/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitLab -, poetry-core -, dramatiq -, flask -, requests -, pytestCheckHook -, flask-migrate -, periodiq -, postgresql -, postgresqlTestHook -, psycopg2 +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitLab, + poetry-core, + dramatiq, + flask, + requests, + pytestCheckHook, + flask-migrate, + periodiq, + postgresql, + postgresqlTestHook, + psycopg2, }: buildPythonPackage { @@ -40,13 +41,9 @@ buildPythonPackage { -e 's:--cov-report=term-missing::' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - dramatiq - ]; + propagatedBuildInputs = [ dramatiq ]; nativeCheckInputs = [ pytestCheckHook @@ -66,7 +63,11 @@ buildPythonPackage { python3 ./example.py db upgrade ''; - pytestFlagsArray = [ "-x" "tests/func/" "tests/unit"]; + pytestFlagsArray = [ + "-x" + "tests/func/" + "tests/unit" + ]; pythonImportsCheck = [ "flask_dramatiq" ]; diff --git a/pkgs/development/python-modules/flask-elastic/default.nix b/pkgs/development/python-modules/flask-elastic/default.nix index ea7bcb557b98..6697a9f714ef 100644 --- a/pkgs/development/python-modules/flask-elastic/default.nix +++ b/pkgs/development/python-modules/flask-elastic/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, flask, elasticsearch }: +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + elasticsearch, +}: buildPythonPackage rec { pname = "flask-elastic"; @@ -12,7 +17,10 @@ buildPythonPackage rec { hash = "sha256-XwGm/FQbXSV2qbAlHyAbT4DLcQnIseDm1Qqdb5zjE0M="; }; - propagatedBuildInputs = [ flask elasticsearch ]; + propagatedBuildInputs = [ + flask + elasticsearch + ]; doCheck = false; # no tests meta = with lib; { diff --git a/pkgs/development/python-modules/flask-expects-json/default.nix b/pkgs/development/python-modules/flask-expects-json/default.nix index fd608b504451..ed9e3c89844b 100644 --- a/pkgs/development/python-modules/flask-expects-json/default.nix +++ b/pkgs/development/python-modules/flask-expects-json/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, jsonschema -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + jsonschema, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { jsonschema ] ++ flask.optional-dependencies.async; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flask_expects_json" - ]; + pythonImportsCheck = [ "flask_expects_json" ]; disabledTests = [ # https://github.com/Fischerfredl/flask-expects-json/issues/26 @@ -48,6 +45,6 @@ buildPythonPackage rec { homepage = "https://github.com/fischerfredl/flask-expects-json"; description = "Decorator for REST endpoints in flask. Validate JSON request data."; license = licenses.mit; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/flask-gravatar/default.nix b/pkgs/development/python-modules/flask-gravatar/default.nix index 1a305f017cee..9194a9436ac6 100644 --- a/pkgs/development/python-modules/flask-gravatar/default.nix +++ b/pkgs/development/python-modules/flask-gravatar/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, flask + # dependencies + flask, -# tests -, pytestCheckHook -, pygments + # tests + pytestCheckHook, + pygments, }: buildPythonPackage rec { @@ -44,22 +45,16 @@ buildPythonPackage rec { --replace "--cov=flask_gravatar --cov-report=term-missing" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; nativeCheckInputs = [ pytestCheckHook pygments ]; - pythonImportsCheck = [ - "flask_gravatar" - ]; + pythonImportsCheck = [ "flask_gravatar" ]; meta = with lib; { homepage = "https://github.com/zzzsochi/Flask-Gravatar"; diff --git a/pkgs/development/python-modules/flask-httpauth/default.nix b/pkgs/development/python-modules/flask-httpauth/default.nix index 71e5d2bcfc6a..f44384247552 100644 --- a/pkgs/development/python-modules/flask-httpauth/default.nix +++ b/pkgs/development/python-modules/flask-httpauth/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, setuptools -, flask -, pythonOlder - }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools, + flask, + pythonOlder, +}: buildPythonPackage rec { pname = "flask-httpauth"; @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-ZlaKBbxzlCxl8eIgGudGKVgW3ACe3YS0gsRMdY11CXo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; - pythonImportsCheck = [ - "flask_httpauth" - ]; + pythonImportsCheck = [ "flask_httpauth" ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ flask.optional-dependencies.async; + nativeCheckInputs = [ pytestCheckHook ] ++ flask.optional-dependencies.async; meta = with lib; { description = "Extension that provides HTTP authentication for Flask routes"; diff --git a/pkgs/development/python-modules/flask-jwt-extended/default.nix b/pkgs/development/python-modules/flask-jwt-extended/default.nix index ba7d9dcf1832..d05524e905fb 100644 --- a/pkgs/development/python-modules/flask-jwt-extended/default.nix +++ b/pkgs/development/python-modules/flask-jwt-extended/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cryptography -, flask -, pyjwt -, pytestCheckHook -, python-dateutil -, pythonOlder -, werkzeug +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, + flask, + pyjwt, + pytestCheckHook, + python-dateutil, + pythonOlder, + werkzeug, }: buildPythonPackage rec { @@ -30,18 +31,13 @@ buildPythonPackage rec { werkzeug ]; - passthru.optional-dependencies.asymmetric_crypto = [ - cryptography - ]; + passthru.optional-dependencies.asymmetric_crypto = [ cryptography ]; nativeCheckInputs = [ pytestCheckHook - ] - ++ lib.flatten (lib.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "flask_jwt_extended" - ]; + pythonImportsCheck = [ "flask_jwt_extended" ]; meta = with lib; { changelog = "https://github.com/vimalloc/flask-jwt-extended/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/flask-limiter/default.nix b/pkgs/development/python-modules/flask-limiter/default.nix index 3aab9046cdc8..88d7d3465136 100644 --- a/pkgs/development/python-modules/flask-limiter/default.nix +++ b/pkgs/development/python-modules/flask-limiter/default.nix @@ -1,20 +1,21 @@ -{ lib -, asgiref -, buildPythonPackage -, fetchFromGitHub -, flask -, hiro -, limits -, ordered-set -, pymemcache -, pymongo -, pytest-mock -, pytestCheckHook -, pythonOlder -, redis -, rich -, setuptools -, typing-extensions +{ + lib, + asgiref, + buildPythonPackage, + fetchFromGitHub, + flask, + hiro, + limits, + ordered-set, + pymemcache, + pymongo, + pytest-mock, + pytestCheckHook, + pythonOlder, + redis, + rich, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { sed -i "/import flask_restful/d" tests/test_views.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask @@ -85,9 +84,7 @@ buildPythonPackage rec { "tests/test_storage.py" ]; - pythonImportsCheck = [ - "flask_limiter" - ]; + pythonImportsCheck = [ "flask_limiter" ]; meta = with lib; { description = "Rate limiting for flask applications"; diff --git a/pkgs/development/python-modules/flask-login/default.nix b/pkgs/development/python-modules/flask-login/default.nix index 134dc8f2e44b..6f6f60c84cab 100644 --- a/pkgs/development/python-modules/flask-login/default.nix +++ b/pkgs/development/python-modules/flask-login/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, flask -, werkzeug + # dependencies + flask, + werkzeug, -# tests -, asgiref -, blinker -, pytestCheckHook -, semantic-version + # tests + asgiref, + blinker, + pytestCheckHook, + semantic-version, }: buildPythonPackage rec { @@ -30,18 +31,14 @@ buildPythonPackage rec { hash = "sha256-XiPRSmB+8SgGxplZC4nQ8ODWe67sWZ11lHv5wUczAzM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask werkzeug ]; - pythonImportsCheck = [ - "flask_login" - ]; + pythonImportsCheck = [ "flask_login" ]; nativeCheckInputs = [ asgiref diff --git a/pkgs/development/python-modules/flask-mail/default.nix b/pkgs/development/python-modules/flask-mail/default.nix index 16e02683495f..a9c7c0b41421 100644 --- a/pkgs/development/python-modules/flask-mail/default.nix +++ b/pkgs/development/python-modules/flask-mail/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, - blinker, flask, mock, nose, speaklater +{ + lib, + buildPythonPackage, + fetchPypi, + blinker, + flask, + mock, + nose, + speaklater, }: buildPythonPackage rec { @@ -19,8 +26,16 @@ buildPythonPackage rec { hash = "sha256-IuXrmpQL9Ae88wQQ7MNwjzxWzESynDThcm/oUAaTX0E="; }; - propagatedBuildInputs = [ blinker flask ]; - buildInputs = [ blinker mock nose speaklater ]; + propagatedBuildInputs = [ + blinker + flask + ]; + buildInputs = [ + blinker + mock + nose + speaklater + ]; doCheck = false; } diff --git a/pkgs/development/python-modules/flask-mailman/default.nix b/pkgs/development/python-modules/flask-mailman/default.nix index 035005545ec4..a3c1c3361f14 100644 --- a/pkgs/development/python-modules/flask-mailman/default.nix +++ b/pkgs/development/python-modules/flask-mailman/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, mkdocs-material-extensions -, flask -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + mkdocs-material-extensions, + flask, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-wfbMz9k9cy9m95mc0Y0lqmpJczrfjhmumO31gRQy704="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ flask mkdocs-material-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "flask_mailman" ]; diff --git a/pkgs/development/python-modules/flask-marshmallow/default.nix b/pkgs/development/python-modules/flask-marshmallow/default.nix index 9d1c889dda4c..69ad443789ed 100644 --- a/pkgs/development/python-modules/flask-marshmallow/default.nix +++ b/pkgs/development/python-modules/flask-marshmallow/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, flask-sqlalchemy -, flit-core -, marshmallow -, marshmallow-sqlalchemy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + flask-sqlalchemy, + flit-core, + marshmallow, + marshmallow-sqlalchemy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-GQLkt/CJf/QI8emvlW8xSRziGnncwfMSxBccW0Bb8I0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ flask @@ -40,13 +39,9 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.sqlalchemy; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.sqlalchemy; - pythonImportsCheck = [ - "flask_marshmallow" - ]; + pythonImportsCheck = [ "flask_marshmallow" ]; pytestFlagsArray = [ "-W" diff --git a/pkgs/development/python-modules/flask-migrate/default.nix b/pkgs/development/python-modules/flask-migrate/default.nix index 804eed53ab04..2809af9a4ac7 100644 --- a/pkgs/development/python-modules/flask-migrate/default.nix +++ b/pkgs/development/python-modules/flask-migrate/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, alembic -, flask -, flask-script -, flask-sqlalchemy -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + alembic, + flask, + flask-script, + flask-sqlalchemy, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-TnihrZ+JQ1XCBlFp6k8lrNpZr4P2/Z6AmFwWZbabz+8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ alembic @@ -34,9 +33,7 @@ buildPythonPackage rec { flask-sqlalchemy ]; - pythonImportsCheck = [ - "flask_migrate" - ]; + pythonImportsCheck = [ "flask_migrate" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/flask-mongoengine/default.nix b/pkgs/development/python-modules/flask-mongoengine/default.nix index dad4b6ddb871..32f864221272 100644 --- a/pkgs/development/python-modules/flask-mongoengine/default.nix +++ b/pkgs/development/python-modules/flask-mongoengine/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, email-validator -, fetchFromGitHub -, flask -, flask-wtf -, markupsafe -, mongoengine -, pythonOlder -, setuptools -, setuptools-scm -, typing-extensions -, wtforms +{ + lib, + buildPythonPackage, + email-validator, + fetchFromGitHub, + flask, + flask-wtf, + markupsafe, + mongoengine, + pythonOlder, + setuptools, + setuptools-scm, + typing-extensions, + wtforms, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { flask flask-wtf mongoengine - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; passthru.optional-dependencies = { wtf = [ @@ -51,17 +50,13 @@ buildPythonPackage rec { # toolbar = [ # flask-debugtoolbar # ]; - legacy = [ - markupsafe - ]; + legacy = [ markupsafe ]; }; # Tests require working mongodb connection doCheck = false; - pythonImportsCheck = [ - "flask_mongoengine" - ]; + pythonImportsCheck = [ "flask_mongoengine" ]; meta = with lib; { description = "Flask extension that provides integration with MongoEngine and WTF model forms"; diff --git a/pkgs/development/python-modules/flask-mysqldb/default.nix b/pkgs/development/python-modules/flask-mysqldb/default.nix index f0b7d59206fe..995d44efcc57 100644 --- a/pkgs/development/python-modules/flask-mysqldb/default.nix +++ b/pkgs/development/python-modules/flask-mysqldb/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, flask -, mysqlclient -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + flask, + mysqlclient, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-RHAB9WGRzojH6eAOG61QguwF+4LssO9EcFjbWxoOtF4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask mysqlclient ]; - pythonImportsCheck = [ - "flask_mysqldb" - ]; + pythonImportsCheck = [ "flask_mysqldb" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "MySQL connection support for Flask"; diff --git a/pkgs/development/python-modules/flask-openid/default.nix b/pkgs/development/python-modules/flask-openid/default.nix index 9d65a5cab26e..9c27a483f64b 100644 --- a/pkgs/development/python-modules/flask-openid/default.nix +++ b/pkgs/development/python-modules/flask-openid/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, python3-openid -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + python3-openid, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flask-paranoid/default.nix b/pkgs/development/python-modules/flask-paranoid/default.nix index 5e200137941b..0e4d49127ae9 100644 --- a/pkgs/development/python-modules/flask-paranoid/default.nix +++ b/pkgs/development/python-modules/flask-paranoid/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { substituteInPlace tests/test_paranoid.py --replace "01-Jan-1970" "01 Jan 1970" ''; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "flask_paranoid" ]; diff --git a/pkgs/development/python-modules/flask-principal/default.nix b/pkgs/development/python-modules/flask-principal/default.nix index 7343a15398db..dcde78d30e2d 100644 --- a/pkgs/development/python-modules/flask-principal/default.nix +++ b/pkgs/development/python-modules/flask-principal/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, flask, blinker, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + blinker, + nose, +}: buildPythonPackage rec { pname = "flask-principal"; @@ -11,7 +18,10 @@ buildPythonPackage rec { hash = "sha256-9dYTS1yuv9u4bzLVbRjuRLCAh2onJpVgqW6jX3XJlFM="; }; - propagatedBuildInputs = [ flask blinker ]; + propagatedBuildInputs = [ + flask + blinker + ]; nativeCheckInputs = [ nose ]; diff --git a/pkgs/development/python-modules/flask-pymongo/default.nix b/pkgs/development/python-modules/flask-pymongo/default.nix index 721de186417f..6a6ae8f31d3b 100644 --- a/pkgs/development/python-modules/flask-pymongo/default.nix +++ b/pkgs/development/python-modules/flask-pymongo/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, vcversioner -, flask -, pymongo -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + vcversioner, + flask, + pymongo, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "flask_pymongo" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # requires running MongoDB doCheck = false; diff --git a/pkgs/development/python-modules/flask-restful/default.nix b/pkgs/development/python-modules/flask-restful/default.nix index 3107d4c7f5bc..e1f15d6fad0c 100644 --- a/pkgs/development/python-modules/flask-restful/default.nix +++ b/pkgs/development/python-modules/flask-restful/default.nix @@ -1,16 +1,17 @@ -{ lib -, aniso8601 -, blinker -, buildPythonPackage -, fetchPypi -, flask -, mock -, nose -, pytestCheckHook -, pythonOlder -, pytz -, six -, werkzeug +{ + lib, + aniso8601, + blinker, + buildPythonPackage, + fetchPypi, + flask, + mock, + nose, + pytestCheckHook, + pythonOlder, + pytz, + six, + werkzeug, }: buildPythonPackage rec { @@ -27,11 +28,9 @@ buildPythonPackage rec { }; # conditional so that overrides are easier for web applications - patches = lib.optionals (lib.versionAtLeast werkzeug.version "2.1.0") [ - ./werkzeug-2.1.0-compat.patch - ] ++ lib.optionals (lib.versionAtLeast flask.version "3.0.0") [ - ./flask-3.0-compat.patch - ]; + patches = + lib.optionals (lib.versionAtLeast werkzeug.version "2.1.0") [ ./werkzeug-2.1.0-compat.patch ] + ++ lib.optionals (lib.versionAtLeast flask.version "3.0.0") [ ./flask-3.0-compat.patch ]; propagatedBuildInputs = [ aniso8601 @@ -55,9 +54,7 @@ buildPythonPackage rec { "test_media_types_q" ]; - pythonImportsCheck = [ - "flask_restful" - ]; + pythonImportsCheck = [ "flask_restful" ]; meta = with lib; { description = "Framework for creating REST APIs"; diff --git a/pkgs/development/python-modules/flask-restx/default.nix b/pkgs/development/python-modules/flask-restx/default.nix index 052bf4ac5da3..55f41f6f7737 100644 --- a/pkgs/development/python-modules/flask-restx/default.nix +++ b/pkgs/development/python-modules/flask-restx/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, aniso8601 -, jsonschema -, flask -, importlib-resources -, werkzeug -, pytz -, faker -, mock -, blinker -, py -, pytest-flask -, pytest-mock -, pytest-benchmark -, pytestCheckHook -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + aniso8601, + jsonschema, + flask, + importlib-resources, + werkzeug, + pytz, + faker, + mock, + blinker, + py, + pytest-flask, + pytest-mock, + pytest-benchmark, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-CBReP/u96fsr28lMV1BfLjjdBMXEvsD03wvsxkIcteI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aniso8601 @@ -59,14 +58,16 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--benchmark-disable" - "--deselect=tests/test_inputs.py::URLTest::test_check" - "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check" - "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" - ] ++ lib.optionals stdenv.isDarwin [ - "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check" - ]; + pytestFlagsArray = + [ + "--benchmark-disable" + "--deselect=tests/test_inputs.py::URLTest::test_check" + "--deselect=tests/test_inputs.py::EmailTest::test_valid_value_check" + "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" + ] + ++ lib.optionals stdenv.isDarwin [ + "--deselect=tests/test_inputs.py::EmailTest::test_invalid_values_check" + ]; disabledTests = [ # broken in werkzeug 2.3 upgrade @@ -74,9 +75,7 @@ buildPythonPackage rec { "test_media_types_q" ]; - pythonImportsCheck = [ - "flask_restx" - ]; + pythonImportsCheck = [ "flask_restx" ]; meta = with lib; { description = "Fully featured framework for fast, easy and documented API development with Flask"; diff --git a/pkgs/development/python-modules/flask-reverse-proxy-fix/default.nix b/pkgs/development/python-modules/flask-reverse-proxy-fix/default.nix index 6d079b66f149..a4ea585c909c 100644 --- a/pkgs/development/python-modules/flask-reverse-proxy-fix/default.nix +++ b/pkgs/development/python-modules/flask-reverse-proxy-fix/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, werkzeug +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + werkzeug, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flask-script/default.nix b/pkgs/development/python-modules/flask-script/default.nix index afd56302a562..3a7a8693385e 100644 --- a/pkgs/development/python-modules/flask-script/default.nix +++ b/pkgs/development/python-modules/flask-script/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, flask, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + pytest, +}: buildPythonPackage rec { pname = "flask-script"; diff --git a/pkgs/development/python-modules/flask-seasurf/default.nix b/pkgs/development/python-modules/flask-seasurf/default.nix index 1764e2762059..cf431b2a1d95 100644 --- a/pkgs/development/python-modules/flask-seasurf/default.nix +++ b/pkgs/development/python-modules/flask-seasurf/default.nix @@ -1,4 +1,13 @@ -{ lib, fetchFromGitHub, fetchpatch, buildPythonPackage, isPy3k, flask, mock, unittestCheckHook }: +{ + lib, + fetchFromGitHub, + fetchpatch, + buildPythonPackage, + isPy3k, + flask, + mock, + unittestCheckHook, +}: buildPythonPackage rec { pname = "flask-seasurf"; diff --git a/pkgs/development/python-modules/flask-security-too/default.nix b/pkgs/development/python-modules/flask-security-too/default.nix index 29947460055b..e02bb99626df 100644 --- a/pkgs/development/python-modules/flask-security-too/default.nix +++ b/pkgs/development/python-modules/flask-security-too/default.nix @@ -1,48 +1,49 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, -# extras: babel -, babel -, flask-babel + # extras: babel + babel, + flask-babel, -# extras: common -, bcrypt -, bleach -, flask-mailman + # extras: common + bcrypt, + bleach, + flask-mailman, -# extras: fsqla -, flask-sqlalchemy -, sqlalchemy -, sqlalchemy-utils + # extras: fsqla + flask-sqlalchemy, + sqlalchemy, + sqlalchemy-utils, -# extras: mfa -, cryptography -, phonenumbers -, webauthn -, qrcode + # extras: mfa + cryptography, + phonenumbers, + webauthn, + qrcode, -# propagates -, email-validator -, flask -, flask-login -, flask-principal -, flask-wtf -, passlib -, importlib-resources -, wtforms + # propagates + email-validator, + flask, + flask-login, + flask-principal, + flask-wtf, + passlib, + importlib-resources, + wtforms, -# tests -, argon2-cffi -, freezegun -, mongoengine -, mongomock -, peewee -, pony -, pytestCheckHook -, zxcvbn + # tests + argon2-cffi, + freezegun, + mongoengine, + mongomock, + peewee, + pony, + pytestCheckHook, + zxcvbn, }: buildPythonPackage rec { @@ -58,9 +59,7 @@ buildPythonPackage rec { hash = "sha256-YrGTl+jXGo1MuNwNRAnMehSXmCVJAwOWlgruUYdV5YM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ email-validator @@ -96,31 +95,29 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - argon2-cffi - freezegun - mongoengine - mongomock - peewee - pony - pytestCheckHook - zxcvbn - freezegun - ] - ++ passthru.optional-dependencies.babel - ++ passthru.optional-dependencies.common - ++ passthru.optional-dependencies.fsqla - ++ passthru.optional-dependencies.mfa; - + nativeCheckInputs = + [ + argon2-cffi + freezegun + mongoengine + mongomock + peewee + pony + pytestCheckHook + zxcvbn + freezegun + ] + ++ passthru.optional-dependencies.babel + ++ passthru.optional-dependencies.common + ++ passthru.optional-dependencies.fsqla + ++ passthru.optional-dependencies.mfa; disabledTests = [ # needs /etc/resolv.conf "test_login_email_whatever" ]; - pythonImportsCheck = [ - "flask_security" - ]; + pythonImportsCheck = [ "flask_security" ]; meta = with lib; { changelog = "https://github.com/Flask-Middleware/flask-security/blob/${version}/CHANGES.rst"; diff --git a/pkgs/development/python-modules/flask-session/default.nix b/pkgs/development/python-modules/flask-session/default.nix index e3c4abf8da8a..8380a4247b23 100644 --- a/pkgs/development/python-modules/flask-session/default.nix +++ b/pkgs/development/python-modules/flask-session/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, flit-core -, flask -, cachelib -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + flit-core, + flask, + cachelib, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-t8w6ZS4gBDpnnKvL3DLtn+rRLQNJbrT2Hxm4f3+a3Xc="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ flask cachelib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # The rest of the tests require database servers and optional db connector dependencies pytestFlagsArray = [ @@ -38,9 +35,7 @@ buildPythonPackage rec { "'null_session or filesystem_session'" ]; - pythonImportsCheck = [ - "flask_session" - ]; + pythonImportsCheck = [ "flask_session" ]; meta = with lib; { description = "A Flask extension that adds support for server-side sessions"; diff --git a/pkgs/development/python-modules/flask-silk/default.nix b/pkgs/development/python-modules/flask-silk/default.nix index ddee5077970d..db54dcf8ef79 100644 --- a/pkgs/development/python-modules/flask-silk/default.nix +++ b/pkgs/development/python-modules/flask-silk/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, }: buildPythonPackage { @@ -17,9 +18,7 @@ buildPythonPackage { sha256 = "0mplziqw52jfspas6vsm210lmxqqzgj0dxm8y0i3gpbyyykwcmh0"; }; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; meta = with lib; { description = "Adds silk icons to your Flask application or module, or extension"; diff --git a/pkgs/development/python-modules/flask-sock/default.nix b/pkgs/development/python-modules/flask-sock/default.nix index 36ef8a093e1e..bb5f82925cfb 100644 --- a/pkgs/development/python-modules/flask-sock/default.nix +++ b/pkgs/development/python-modules/flask-sock/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pytestCheckHook -, pythonOlder -, fetchFromGitHub -, flask -, setuptools -, simple-websocket +{ + lib, + buildPythonPackage, + pytestCheckHook, + pythonOlder, + fetchFromGitHub, + flask, + setuptools, + simple-websocket, }: buildPythonPackage rec { @@ -22,24 +23,18 @@ buildPythonPackage rec { hash = "sha256-GKfOVdeLPag2IKGCWrMjQp4NTL1/9GiyLhXhf9jQKhQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask simple-websocket ]; - pytestFlagsArray = [ - "tests/test_flask_sock.py" - ]; + pytestFlagsArray = [ "tests/test_flask_sock.py" ]; pythonImportsCheck = [ "flask_sock" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "WebSocket support for Flask"; diff --git a/pkgs/development/python-modules/flask-socketio/default.nix b/pkgs/development/python-modules/flask-socketio/default.nix index 7460bf2309d4..7bfda242546c 100644 --- a/pkgs/development/python-modules/flask-socketio/default.nix +++ b/pkgs/development/python-modules/flask-socketio/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, flask -, pytestCheckHook -, python-socketio -, pythonOlder -, redis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + flask, + pytestCheckHook, + python-socketio, + pythonOlder, + redis, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-YjCe34Mvt7tvp3w5yH52lrq4bWi7aIYAUssNqxlQ8CA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flask @@ -37,13 +36,9 @@ buildPythonPackage rec { redis ]; - pytestFlagsArray = [ - "test_socketio.py" - ]; + pytestFlagsArray = [ "test_socketio.py" ]; - pythonImportsCheck = [ - "flask_socketio" - ]; + pythonImportsCheck = [ "flask_socketio" ]; meta = with lib; { description = "Socket.IO integration for Flask applications"; diff --git a/pkgs/development/python-modules/flask-sockets/default.nix b/pkgs/development/python-modules/flask-sockets/default.nix index aa29fd4fbc94..6879b64fdb75 100644 --- a/pkgs/development/python-modules/flask-sockets/default.nix +++ b/pkgs/development/python-modules/flask-sockets/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, gevent -, gevent-websocket +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + gevent, + gevent-websocket, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { # upstream doesn't have any tests, single file doCheck = false; - pythonImportsCheck = [ - "flask_sockets" - ]; + pythonImportsCheck = [ "flask_sockets" ]; meta = with lib; { description = "Elegant WebSockets for your Flask apps"; diff --git a/pkgs/development/python-modules/flask-sqlalchemy/default.nix b/pkgs/development/python-modules/flask-sqlalchemy/default.nix index 7f1775418f1c..4a9de0f4dd6d 100644 --- a/pkgs/development/python-modules/flask-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/flask-sqlalchemy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, mock -, flit-core -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + mock, + flit-core, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + sqlalchemy, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-5LaLuIGALdoafYeLL8hMBtHuV/tAuHTT3Jfav6NrgxI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ flask @@ -46,12 +45,11 @@ buildPythonPackage rec { pytestFlagsArray = lib.optionals (pythonAtLeast "3.12") [ # datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; - pythonImportsCheck = [ - "flask_sqlalchemy" - ]; + pythonImportsCheck = [ "flask_sqlalchemy" ]; meta = with lib; { description = "SQLAlchemy extension for Flask"; diff --git a/pkgs/development/python-modules/flask-sslify/default.nix b/pkgs/development/python-modules/flask-sslify/default.nix index bb3ef6c8cd1a..812f9f56b228 100644 --- a/pkgs/development/python-modules/flask-sslify/default.nix +++ b/pkgs/development/python-modules/flask-sslify/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, flask }: +{ + lib, + fetchPypi, + buildPythonPackage, + flask, +}: buildPythonPackage rec { pname = "flask-sslify"; diff --git a/pkgs/development/python-modules/flask-swagger-ui/default.nix b/pkgs/development/python-modules/flask-swagger-ui/default.nix index 8fa18aecc924..b8fbada07ee9 100644 --- a/pkgs/development/python-modules/flask-swagger-ui/default.nix +++ b/pkgs/development/python-modules/flask-swagger-ui/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, flask }: +{ + lib, + buildPythonPackage, + fetchPypi, + flask, +}: buildPythonPackage rec { pname = "flask-swagger-ui"; @@ -10,11 +15,9 @@ buildPythonPackage rec { hash = "sha256-o3AZmngNZ4sy448b4Q1Nge+g7mPp/i+3Zv8aS2w32sg="; }; - doCheck = false; # there are no tests + doCheck = false; # there are no tests - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; meta = with lib; { homepage = "https://github.com/sveint/flask-swagger-ui"; diff --git a/pkgs/development/python-modules/flask-swagger/default.nix b/pkgs/development/python-modules/flask-swagger/default.nix index 4f968505edaa..e71d148cb465 100644 --- a/pkgs/development/python-modules/flask-swagger/default.nix +++ b/pkgs/development/python-modules/flask-swagger/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, flask, pyyaml }: +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + pyyaml, +}: buildPythonPackage rec { version = "0.2.14"; diff --git a/pkgs/development/python-modules/flask-talisman/default.nix b/pkgs/development/python-modules/flask-talisman/default.nix index 76a79e5f0911..ba46319e5210 100644 --- a/pkgs/development/python-modules/flask-talisman/default.nix +++ b/pkgs/development/python-modules/flask-talisman/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,17 +17,11 @@ buildPythonPackage rec { hash = "sha256-xfSG9fVEIHKfhLPDhQzWP5bosDOpYpvuZsUk6jY3l/8="; }; - buildInputs = [ - flask - ]; + buildInputs = [ flask ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeBuildInputs = [ - pytestCheckHook - ]; + nativeBuildInputs = [ pytestCheckHook ]; meta = with lib; { description = "HTTP security headers for Flask"; diff --git a/pkgs/development/python-modules/flask-testing/default.nix b/pkgs/development/python-modules/flask-testing/default.nix index cb1c3cf79bd1..6574dcf1613e 100644 --- a/pkgs/development/python-modules/flask-testing/default.nix +++ b/pkgs/development/python-modules/flask-testing/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, blinker -, pytestCheckHook -, buildPythonPackage -, fetchPypi -, flask -, pythonOlder +{ + lib, + stdenv, + blinker, + pytestCheckHook, + buildPythonPackage, + fetchPypi, + flask, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-CnNNe2jmOpQQtBPNex+WRW+ahYvQmmIi1GVlDMeC6wE="; }; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; nativeCheckInputs = [ blinker @@ -47,9 +46,7 @@ buildPythonPackage rec { "tests/test_twill.py" ]; - pythonImportsCheck = [ - "flask_testing" - ]; + pythonImportsCheck = [ "flask_testing" ]; meta = with lib; { description = "Extension provides unit testing utilities for Flask"; diff --git a/pkgs/development/python-modules/flask-themes2/default.nix b/pkgs/development/python-modules/flask-themes2/default.nix index b4cd08bdcf09..745e1e91655e 100644 --- a/pkgs/development/python-modules/flask-themes2/default.nix +++ b/pkgs/development/python-modules/flask-themes2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, flask -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + flask, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-gsMgQQXjhDfQRhm7H0kBy8jKxd75WY+PhHR6Rk/PUPs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - flask - ]; + propagatedBuildInputs = [ flask ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Easily theme your Flask app"; diff --git a/pkgs/development/python-modules/flask-versioned/default.nix b/pkgs/development/python-modules/flask-versioned/default.nix index 1d54e49e417d..9541e74148ca 100644 --- a/pkgs/development/python-modules/flask-versioned/default.nix +++ b/pkgs/development/python-modules/flask-versioned/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, flask }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, +}: buildPythonPackage rec { pname = "flask-versioned"; diff --git a/pkgs/development/python-modules/flask-wtf/default.nix b/pkgs/development/python-modules/flask-wtf/default.nix index a106945df060..e96119eee554 100644 --- a/pkgs/development/python-modules/flask-wtf/default.nix +++ b/pkgs/development/python-modules/flask-wtf/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, hatchling -, flask -, itsdangerous -, wtforms -, email-validator -, pytestCheckHook -, setuptools +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + hatchling, + flask, + itsdangerous, + wtforms, + email-validator, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -39,18 +40,20 @@ buildPythonPackage rec { email = [ email-validator ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; meta = with lib; { description = "Simple integration of Flask and WTForms."; license = licenses.bsd3; - maintainers = with maintainers; [ mic92 anthonyroussel ]; + maintainers = with maintainers; [ + mic92 + anthonyroussel + ]; homepage = "https://github.com/lepture/flask-wtf/"; changelog = "https://github.com/wtforms/flask-wtf/releases/tag/v${version}"; }; diff --git a/pkgs/development/python-modules/flask/default.nix b/pkgs/development/python-modules/flask/default.nix index 77d26dc24b82..897c17961538 100644 --- a/pkgs/development/python-modules/flask/default.nix +++ b/pkgs/development/python-modules/flask/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, blinker -, click -, importlib-metadata -, itsdangerous -, jinja2 -, werkzeug + # dependencies + blinker, + click, + importlib-metadata, + itsdangerous, + jinja2, + werkzeug, -# optional-dependencies -, asgiref -, python-dotenv + # optional-dependencies + asgiref, + python-dotenv, -# tests -, greenlet -, pytestCheckHook + # tests + greenlet, + pytestCheckHook, -# reverse dependencies -, flask-limiter -, flask-restful -, flask-restx -, moto + # reverse dependencies + flask-limiter, + flask-restful, + flask-restx, + moto, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { hash = "sha256-zrJ7CvOCPqJzeSik2Z0SWgYXW4USxEXL2anOIA73aEI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ click @@ -49,31 +48,31 @@ buildPythonPackage rec { itsdangerous jinja2 werkzeug - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; passthru.optional-dependencies = { - async = [ - asgiref - ]; - dotenv = [ - python-dotenv - ]; + async = [ asgiref ]; + dotenv = [ python-dotenv ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.11") [ - greenlet - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + nativeCheckInputs = + [ pytestCheckHook ] + ++ lib.optionals (pythonOlder "3.11") [ greenlet ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); passthru.tests = { - inherit flask-limiter flask-restful flask-restx moto; + inherit + flask-limiter + flask-restful + flask-restx + moto + ; }; meta = with lib; { - changelog = "https://flask.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://flask.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${ + replaceStrings [ "." ] [ "-" ] version + }"; homepage = "https://flask.palletsprojects.com/"; description = "The Python micro framework for building web applications"; mainProgram = "flask"; diff --git a/pkgs/development/python-modules/flatbuffers/default.nix b/pkgs/development/python-modules/flatbuffers/default.nix index 74719b241586..db0405cc34d1 100644 --- a/pkgs/development/python-modules/flatbuffers/default.nix +++ b/pkgs/development/python-modules/flatbuffers/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, flatbuffers +{ + lib, + buildPythonPackage, + flatbuffers, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flatdict/default.nix b/pkgs/development/python-modules/flatdict/default.nix index c96d90586026..d0aacabfbbca 100644 --- a/pkgs/development/python-modules/flatdict/default.nix +++ b/pkgs/development/python-modules/flatdict/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-CWsTiCNdIKSQtjpQC07lhZoU1hXT/MGpXdj649x2GlU="; }; - pythonImportsCheck = [ - "flatdict" - ]; + pythonImportsCheck = [ "flatdict" ]; meta = with lib; { description = "Python module for interacting with nested dicts as a single level dict with delimited keys"; diff --git a/pkgs/development/python-modules/flatten-dict/default.nix b/pkgs/development/python-modules/flatten-dict/default.nix index 41929f9f671f..9f50f2c7dab9 100644 --- a/pkgs/development/python-modules/flatten-dict/default.nix +++ b/pkgs/development/python-modules/flatten-dict/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-uHenKoD4eLm9sMREVuV0BB/oUgh4NMiuj+IWd0hlxNQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flatten_dict" - ]; + pythonImportsCheck = [ "flatten_dict" ]; meta = with lib; { description = "Module for flattening and unflattening dict-like objects"; diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index 6afe4ef9a2f3..8d860b56886f 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, cloudpickle -, einops -, fetchFromGitHub -, jax -, jaxlib -, keras -, matplotlib -, msgpack -, numpy -, optax -, orbax-checkpoint -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, rich -, setuptools-scm -, tensorflow -, tensorstore -, typing-extensions +{ + lib, + buildPythonPackage, + cloudpickle, + einops, + fetchFromGitHub, + jax, + jaxlib, + keras, + matplotlib, + msgpack, + numpy, + optax, + orbax-checkpoint, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + rich, + setuptools-scm, + tensorflow, + tensorstore, + typing-extensions, }: buildPythonPackage rec { @@ -59,9 +60,7 @@ buildPythonPackage rec { all = [ matplotlib ]; }; - pythonImportsCheck = [ - "flax" - ]; + pythonImportsCheck = [ "flax" ]; nativeCheckInputs = [ cloudpickle diff --git a/pkgs/development/python-modules/fleep/default.nix b/pkgs/development/python-modules/fleep/default.nix index f41cb0109402..ce869249649c 100644 --- a/pkgs/development/python-modules/fleep/default.nix +++ b/pkgs/development/python-modules/fleep/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-TaU7njx98nxkhZawGMFqWj4g+yCtIX9aPWQHoamzfMY="; }; - patches = [ - ./0001-Fixing-paths-on-tests.patch - ]; + patches = [ ./0001-Fixing-paths-on-tests.patch ]; checkPhase = '' ${python.interpreter} tests/maintest.py diff --git a/pkgs/development/python-modules/flet-core/default.nix b/pkgs/development/python-modules/flet-core/default.nix index 99612c52b5ad..ce77c3a38456 100644 --- a/pkgs/development/python-modules/flet-core/default.nix +++ b/pkgs/development/python-modules/flet-core/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, flet-client-flutter +{ + lib, + buildPythonPackage, + flet-client-flutter, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, typing-extensions -, repath + # propagates + typing-extensions, + repath, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/sdk/python/packages/flet-core"; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ repath @@ -33,6 +32,9 @@ buildPythonPackage rec { description = "The library is the foundation of Flet framework and is not intended to be used directly"; homepage = "https://flet.dev/"; license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ heyimnova lucasew ]; + maintainers = with lib.maintainers; [ + heyimnova + lucasew + ]; }; } diff --git a/pkgs/development/python-modules/flet-runtime/default.nix b/pkgs/development/python-modules/flet-runtime/default.nix index 585fba6795c1..d9298e206529 100644 --- a/pkgs/development/python-modules/flet-runtime/default.nix +++ b/pkgs/development/python-modules/flet-runtime/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, flet-client-flutter -, poetry-core -, pythonRelaxDepsHook -, flet-core -, httpx -, oauthlib +{ + lib, + buildPythonPackage, + flet-client-flutter, + poetry-core, + pythonRelaxDepsHook, + flet-core, + httpx, + oauthlib, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "httpx" - ]; + pythonRelaxDeps = [ "httpx" ]; propagatedBuildInputs = [ flet-core @@ -38,9 +37,7 @@ buildPythonPackage rec { oauthlib ]; - pythonImportsCheck = [ - "flet_runtime" - ]; + pythonImportsCheck = [ "flet_runtime" ]; meta = { changelog = "https://github.com/flet-dev/flet/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/flet/default.nix b/pkgs/development/python-modules/flet/default.nix index 3e9a7d1f7bf0..1eca1d4f7f93 100644 --- a/pkgs/development/python-modules/flet/default.nix +++ b/pkgs/development/python-modules/flet/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, flet-client-flutter -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + flet-client-flutter, + pythonRelaxDepsHook, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, fastapi -, flet-core -, flet-runtime -, httpx -, oauthlib -, packaging -, qrcode -, cookiecutter -, uvicorn -, watchdog -, websocket-client -, websockets + # propagates + fastapi, + flet-core, + flet-runtime, + httpx, + oauthlib, + packaging, + qrcode, + cookiecutter, + uvicorn, + watchdog, + websocket-client, + websockets, }: @@ -61,16 +62,17 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "flet" - ]; + pythonImportsCheck = [ "flet" ]; meta = { description = "A framework that enables you to easily build realtime web, mobile, and desktop apps in Python"; homepage = "https://flet.dev/"; changelog = "https://github.com/flet-dev/flet/releases/tag/v${version}"; license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ heyimnova lucasew ]; + maintainers = with lib.maintainers; [ + heyimnova + lucasew + ]; mainProgram = "flet"; }; } diff --git a/pkgs/development/python-modules/flexmock/default.nix b/pkgs/development/python-modules/flexmock/default.nix index 7ec46f29da6f..154c9f97ecc4 100644 --- a/pkgs/development/python-modules/flexmock/default.nix +++ b/pkgs/development/python-modules/flexmock/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, poetry-core -, teamcity-messages -, testtools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + poetry-core, + teamcity-messages, + testtools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-ILaQr6T/jG8xVI2JbW1BzKH8kFCkz2KLll6kNOxUjuM="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook @@ -30,9 +29,7 @@ buildPythonPackage rec { testtools ]; - pythonImportsCheck = [ - "flexmock" - ]; + pythonImportsCheck = [ "flexmock" ]; meta = with lib; { description = "Testing library that makes it easy to create mocks,stubs and fakes"; diff --git a/pkgs/development/python-modules/flickrapi/default.nix b/pkgs/development/python-modules/flickrapi/default.nix index ca04c9110eef..a24482decefa 100644 --- a/pkgs/development/python-modules/flickrapi/default.nix +++ b/pkgs/development/python-modules/flickrapi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, requests-toolbelt -, requests-oauthlib -, six -, pytestCheckHook -, responses -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + requests-toolbelt, + requests-oauthlib, + six, + pytestCheckHook, + responses, + pythonOlder, }: buildPythonPackage rec { @@ -55,9 +56,7 @@ buildPythonPackage rec { "test_xmlnode_format_error" ]; - pythonImportsCheck = [ - "flickrapi" - ]; + pythonImportsCheck = [ "flickrapi" ]; meta = with lib; { description = "A Python interface to the Flickr API"; diff --git a/pkgs/development/python-modules/flipr-api/default.nix b/pkgs/development/python-modules/flipr-api/default.nix index 650573d73fc5..336e16e811ed 100644 --- a/pkgs/development/python-modules/flipr-api/default.nix +++ b/pkgs/development/python-modules/flipr-api/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, requests-mock -, pythonOlder -, pytest-asyncio -, pytestCheckHook -, python-dateutil -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + requests-mock, + pythonOlder, + pytest-asyncio, + pytestCheckHook, + python-dateutil, + requests, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-xgLi2lH+EPPNlMixqOzdBGVLuoJh5dhZ2tHZ0UH+lOk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ python-dateutil @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "flipr_api" - ]; + pythonImportsCheck = [ "flipr_api" ]; meta = with lib; { description = "Python client for Flipr API"; diff --git a/pkgs/development/python-modules/flit-core/default.nix b/pkgs/development/python-modules/flit-core/default.nix index a4e0716cf344..05157efb8648 100644 --- a/pkgs/development/python-modules/flit-core/default.nix +++ b/pkgs/development/python-modules/flit-core/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, flit +{ + lib, + buildPythonPackage, + flit, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/flit-scm/default.nix b/pkgs/development/python-modules/flit-scm/default.nix index 24075891c61e..6b4bf17ca8be 100644 --- a/pkgs/development/python-modules/flit-scm/default.nix +++ b/pkgs/development/python-modules/flit-scm/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, pythonOlder -, flit-core -, setuptools-scm -, tomli +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pythonOlder, + flit-core, + setuptools-scm, + tomli, }: buildPythonPackage rec { @@ -22,21 +23,14 @@ buildPythonPackage rec { nativeBuildInputs = [ flit-core setuptools-scm - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; propagatedBuildInputs = [ flit-core setuptools-scm - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; - - pythonImportsCheck = [ - "flit_scm" - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; + pythonImportsCheck = [ "flit_scm" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/flit/default.nix b/pkgs/development/python-modules/flit/default.nix index b623d1ec26ec..df53e3596d23 100644 --- a/pkgs/development/python-modules/flit/default.nix +++ b/pkgs/development/python-modules/flit/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, docutils -, requests -, pytestCheckHook -, testpath -, responses -, flit-core -, tomli-w +{ + lib, + buildPythonPackage, + fetchFromGitHub, + docutils, + requests, + pytestCheckHook, + testpath, + responses, + flit-core, + tomli-w, }: # Flit is actually an application to build universal wheels. @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-yl2+PcKr7xRW4oIBWl+gzh/nKhSNu5GH9fWKRGgaNHU="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ docutils @@ -38,7 +37,11 @@ buildPythonPackage rec { tomli-w ]; - nativeCheckInputs = [ pytestCheckHook testpath responses ]; + nativeCheckInputs = [ + pytestCheckHook + testpath + responses + ]; disabledTests = [ # needs some ini file. diff --git a/pkgs/development/python-modules/floret/default.nix b/pkgs/development/python-modules/floret/default.nix index 6ca020ac81df..b2e1099e2015 100644 --- a/pkgs/development/python-modules/floret/default.nix +++ b/pkgs/development/python-modules/floret/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pybind11 -, setuptools -, wheel -, numpy -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pybind11, + setuptools, + wheel, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,7 +24,7 @@ buildPythonPackage rec { hash = "sha256-7vkw6H0ZQoHEwNusY6QWh/vPbSCdP1ZaaqABHsZH6hQ="; }; - patches = [./cstdint.patch ]; + patches = [ ./cstdint.patch ]; nativeBuildInputs = [ pybind11 @@ -38,9 +39,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "floret" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "FastText + Bloom embeddings for compact, full-coverage vectors with spaCy"; diff --git a/pkgs/development/python-modules/flower/default.nix b/pkgs/development/python-modules/flower/default.nix index a7d69d06fd78..b6af9c7564f8 100644 --- a/pkgs/development/python-modules/flower/default.nix +++ b/pkgs/development/python-modules/flower/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, celery -, humanize -, pytz -, tornado -, prometheus-client -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + celery, + humanize, + pytz, + tornado, + prometheus-client, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flower" - ]; + pythonImportsCheck = [ "flower" ]; meta = with lib; { description = "Real-time monitor and web admin for Celery distributed task queue"; diff --git a/pkgs/development/python-modules/flowlogs-reader/default.nix b/pkgs/development/python-modules/flowlogs-reader/default.nix index 7769bdcb427b..ee7d9f4cc215 100644 --- a/pkgs/development/python-modules/flowlogs-reader/default.nix +++ b/pkgs/development/python-modules/flowlogs-reader/default.nix @@ -1,12 +1,13 @@ -{ lib -, boto3 -, botocore -, buildPythonPackage -, fetchFromGitHub -, parquet -, pytestCheckHook -, python-dateutil -, pythonOlder +{ + lib, + boto3, + botocore, + buildPythonPackage, + fetchFromGitHub, + parquet, + pytestCheckHook, + python-dateutil, + pythonOlder, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flowlogs_reader" - ]; + pythonImportsCheck = [ "flowlogs_reader" ]; meta = with lib; { description = "Python library to make retrieving Amazon VPC Flow Logs from CloudWatch Logs a bit easier"; diff --git a/pkgs/development/python-modules/fluent-logger/default.nix b/pkgs/development/python-modules/fluent-logger/default.nix index 8d9610d2d448..94f8c172ffd9 100644 --- a/pkgs/development/python-modules/fluent-logger/default.nix +++ b/pkgs/development/python-modules/fluent-logger/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, msgpack + # dependencies + msgpack, -# tests -, pytestCheckHook, + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { hash = "sha256-PfyjJZT5K/IMsyyWNZdh/CZf+uZHeJGfhyAPuu0IhJk="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - msgpack - ]; + dependencies = [ msgpack ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "fluent" diff --git a/pkgs/development/python-modules/flufl/bounce.nix b/pkgs/development/python-modules/flufl/bounce.nix index 7c6738bc3cd6..f331c0705cd2 100644 --- a/pkgs/development/python-modules/flufl/bounce.nix +++ b/pkgs/development/python-modules/flufl/bounce.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, atpublic -, zope-interface -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + atpublic, + zope-interface, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,26 +19,18 @@ buildPythonPackage rec { hash = "sha256-JVBK65duwP5aGc1sQTo0EMtRT9zb3Kn5tdjTQ6hgODE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ atpublic zope-interface ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "flufl.bounce" - ]; + pythonImportsCheck = [ "flufl.bounce" ]; - pythonNamespaces = [ - "flufl" - ]; + pythonNamespaces = [ "flufl" ]; meta = with lib; { description = "Email bounce detectors"; diff --git a/pkgs/development/python-modules/flufl/i18n.nix b/pkgs/development/python-modules/flufl/i18n.nix index bd5bcb62fe6c..830231b40f25 100644 --- a/pkgs/development/python-modules/flufl/i18n.nix +++ b/pkgs/development/python-modules/flufl/i18n.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, atpublic -, pdm-pep517 -, pytestCheckHook -, sybil +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + atpublic, + pdm-pep517, + pytestCheckHook, + sybil, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { sybil ]; - pythonNamespaces = [ - "flufl" - ]; + pythonNamespaces = [ "flufl" ]; meta = with lib; { description = "A high level API for internationalizing Python libraries and applications"; diff --git a/pkgs/development/python-modules/flufl/lock.nix b/pkgs/development/python-modules/flufl/lock.nix index 8a3e391fee15..8926badb3e63 100644 --- a/pkgs/development/python-modules/flufl/lock.nix +++ b/pkgs/development/python-modules/flufl/lock.nix @@ -1,6 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder -, atpublic, psutil, pytest-cov, sybil -, pdm-pep517 +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + atpublic, + psutil, + pytest-cov, + sybil, + pdm-pep517, }: buildPythonPackage rec { @@ -17,21 +25,24 @@ buildPythonPackage rec { }; nativeBuildInputs = [ pdm-pep517 ]; - propagatedBuildInputs = [ atpublic psutil ]; - nativeCheckInputs = [ pytestCheckHook pytest-cov sybil ]; + propagatedBuildInputs = [ + atpublic + psutil + ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov + sybil + ]; # disable code coverage checks for all OS. Upstream does not enforce these # checks on Darwin, and code coverage cannot be improved downstream nor is it # relevant to the user. pytestFlagsArray = [ "--no-cov" ]; - pythonImportsCheck = [ - "flufl.lock" - ]; + pythonImportsCheck = [ "flufl.lock" ]; - pythonNamespaces = [ - "flufl" - ]; + pythonNamespaces = [ "flufl" ]; meta = with lib; { homepage = "https://flufllock.readthedocs.io/"; diff --git a/pkgs/development/python-modules/flux-led/default.nix b/pkgs/development/python-modules/flux-led/default.nix index d33e21a43a24..291b56d32cb6 100644 --- a/pkgs/development/python-modules/flux-led/default.nix +++ b/pkgs/development/python-modules/flux-led/default.nix @@ -1,10 +1,11 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, webcolors -, pythonOlder -, pytestCheckHook +{ + lib, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + webcolors, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,22 +27,16 @@ buildPythonPackage rec { webcolors ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner>=5.2",' "" ''; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "flux_led" - ]; + pythonImportsCheck = [ "flux_led" ]; meta = with lib; { description = "Python library to communicate with the flux_led smart bulbs"; diff --git a/pkgs/development/python-modules/flyingsquid/default.nix b/pkgs/development/python-modules/flyingsquid/default.nix index dcaf664e4acf..2fe656646db3 100644 --- a/pkgs/development/python-modules/flyingsquid/default.nix +++ b/pkgs/development/python-modules/flyingsquid/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pgmpy -, torch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pgmpy, + torch, }: let pname = "flyingsquid"; diff --git a/pkgs/development/python-modules/fn/default.nix b/pkgs/development/python-modules/fn/default.nix index 71608387b4fa..186937474c9f 100644 --- a/pkgs/development/python-modules/fn/default.nix +++ b/pkgs/development/python-modules/fn/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + pythonAtLeast, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { (fetchpatch { url = "https://github.com/kachayev/fn.py/commit/a54fc0bd8aeae277de2db726131d249ce607c0c2.patch"; hash = "sha256-I0ZISOgVibsc1k7gwSfeW6qV9PspQqdaHlRLr/IusQ8="; - excludes = [ - "fn/monad.py" - ]; + excludes = [ "fn/monad.py" ]; }) ]; diff --git a/pkgs/development/python-modules/fnv-hash-fast/default.nix b/pkgs/development/python-modules/fnv-hash-fast/default.nix index 01e57845d3bb..fc7ac6abb006 100644 --- a/pkgs/development/python-modules/fnv-hash-fast/default.nix +++ b/pkgs/development/python-modules/fnv-hash-fast/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, poetry-core -, setuptools -, wheel -, fnvhash -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + poetry-core, + setuptools, + wheel, + fnvhash, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - fnvhash - ]; + propagatedBuildInputs = [ fnvhash ]; - pythonImportsCheck = [ - "fnv_hash_fast" - ]; + pythonImportsCheck = [ "fnv_hash_fast" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A fast version of fnv1a"; diff --git a/pkgs/development/python-modules/fnvhash/default.nix b/pkgs/development/python-modules/fnvhash/default.nix index ac80ac564fa1..76ec4ed770b4 100644 --- a/pkgs/development/python-modules/fnvhash/default.nix +++ b/pkgs/development/python-modules/fnvhash/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/folium/default.nix b/pkgs/development/python-modules/folium/default.nix index 1478e274c8c3..619a6c1f6a43 100644 --- a/pkgs/development/python-modules/folium/default.nix +++ b/pkgs/development/python-modules/folium/default.nix @@ -1,21 +1,22 @@ -{ lib -, branca -, buildPythonPackage -, fetchFromGitHub -, geopandas -, jinja2 -, nbconvert -, numpy -, pandas -, pillow -, pytestCheckHook -, pythonOlder -, requests -, selenium -, setuptools -, setuptools-scm -, wheel -, xyzservices +{ + lib, + branca, + buildPythonPackage, + fetchFromGitHub, + geopandas, + jinja2, + nbconvert, + numpy, + pandas, + pillow, + pytestCheckHook, + pythonOlder, + requests, + selenium, + setuptools, + setuptools-scm, + wheel, + xyzservices, }: buildPythonPackage rec { @@ -66,9 +67,7 @@ buildPythonPackage rec { "test_valid_png" ]; - pythonImportsCheck = [ - "folium" - ]; + pythonImportsCheck = [ "folium" ]; meta = { description = "Make beautiful maps with Leaflet.js & Python"; diff --git a/pkgs/development/python-modules/font-v/default.nix b/pkgs/development/python-modules/font-v/default.nix index 09ed7270ebd3..4f1a22a640d0 100644 --- a/pkgs/development/python-modules/font-v/default.nix +++ b/pkgs/development/python-modules/font-v/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fonttools -, git -, gitpython -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fonttools, + git, + gitpython, + pytestCheckHook, }: buildPythonPackage rec { @@ -52,4 +53,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/fontawesomefree/default.nix b/pkgs/development/python-modules/fontawesomefree/default.nix index dea884ab0b30..0c3e0123befd 100644 --- a/pkgs/development/python-modules/fontawesomefree/default.nix +++ b/pkgs/development/python-modules/fontawesomefree/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,14 +17,15 @@ buildPythonPackage rec { hash = "sha256-jexKLuN7+OUzeeu/DTjO/sTgbHySJ/Wa8527exYygXs="; }; - pythonImportsCheck = [ - "fontawesomefree" - ]; + pythonImportsCheck = [ "fontawesomefree" ]; meta = with lib; { homepage = "https://github.com/FortAwesome/Font-Awesome"; description = "Icon library and toolkit"; - license = with licenses; [ ofl cc-by-40 ]; + license = with licenses; [ + ofl + cc-by-40 + ]; maintainers = with maintainers; [ netali ]; }; } diff --git a/pkgs/development/python-modules/fontbakery/default.nix b/pkgs/development/python-modules/fontbakery/default.nix index 313e6d7c7e48..89de0dbe6831 100644 --- a/pkgs/development/python-modules/fontbakery/default.nix +++ b/pkgs/development/python-modules/fontbakery/default.nix @@ -1,48 +1,49 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchpatch -, fetchPypi -, axisregistry -, babelfont -, beautifulsoup4 -, beziers -, cmarkgfm -, collidoscope -, defcon -, dehinter -, fonttools -, font-v -, freetype-py -, gflanguages -, gfsubsets -, git -, glyphsets -, lxml -, installShellFiles -, jinja2 -, munkres -, opentypespec -, ots-python -, packaging -, pip-api -, protobuf -, pytestCheckHook -, pytest-xdist -, pythonRelaxDepsHook -, pyyaml -, requests -, requests-mock -, rich -, setuptools -, setuptools-scm -, shaperglot -, stringbrewer -, toml -, unicodedata2 -, ufo2ft -, ufolint -, vharfbuzz +{ + lib, + buildPythonPackage, + callPackage, + fetchpatch, + fetchPypi, + axisregistry, + babelfont, + beautifulsoup4, + beziers, + cmarkgfm, + collidoscope, + defcon, + dehinter, + fonttools, + font-v, + freetype-py, + gflanguages, + gfsubsets, + git, + glyphsets, + lxml, + installShellFiles, + jinja2, + munkres, + opentypespec, + ots-python, + packaging, + pip-api, + protobuf, + pytestCheckHook, + pytest-xdist, + pythonRelaxDepsHook, + pyyaml, + requests, + requests-mock, + rich, + setuptools, + setuptools-scm, + shaperglot, + stringbrewer, + toml, + unicodedata2, + ufo2ft, + ufolint, + vharfbuzz, }: buildPythonPackage rec { @@ -151,4 +152,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/fontbakery/tests.nix b/pkgs/development/python-modules/fontbakery/tests.nix index d968d6ec056d..5fdebb6f3aa8 100644 --- a/pkgs/development/python-modules/fontbakery/tests.nix +++ b/pkgs/development/python-modules/fontbakery/tests.nix @@ -1,6 +1,4 @@ -{ runCommand -, fontbakery -}: +{ runCommand, fontbakery }: let inherit (fontbakery) pname version src; diff --git a/pkgs/development/python-modules/fontfeatures/default.nix b/pkgs/development/python-modules/fontfeatures/default.nix index 17ea4ec4813c..8902a962a910 100644 --- a/pkgs/development/python-modules/fontfeatures/default.nix +++ b/pkgs/development/python-modules/fontfeatures/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, beziers -, fonttools -, fs -, glyphtools -, lxml -, pytestCheckHook -, youseedee +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + beziers, + fonttools, + fs, + glyphtools, + lxml, + pytestCheckHook, + youseedee, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { ]; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # These tests require babelfont but we have to leave it out and skip them # to break the cyclic dependency with babelfont. diff --git a/pkgs/development/python-modules/fontmake/default.nix b/pkgs/development/python-modules/fontmake/default.nix index 9ad75847b466..2829e4f1242d 100644 --- a/pkgs/development/python-modules/fontmake/default.nix +++ b/pkgs/development/python-modules/fontmake/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, glyphslib -, setuptools-scm -, ufo2ft -, fonttools -, fontmath -, lxml -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + glyphslib, + setuptools-scm, + ufo2ft, + fonttools, + fontmath, + lxml, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fontmath/default.nix b/pkgs/development/python-modules/fontmath/default.nix index 81e70c51fee3..1b7a502d75ac 100644 --- a/pkgs/development/python-modules/fontmath/default.nix +++ b/pkgs/development/python-modules/fontmath/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fonttools -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { extension = "zip"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - fonttools - ]; + propagatedBuildInputs = [ fonttools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A collection of objects that implement fast font, glyph, etc. math"; diff --git a/pkgs/development/python-modules/fontparts/default.nix b/pkgs/development/python-modules/fontparts/default.nix index d543220c4b25..2b98523b7eb4 100644 --- a/pkgs/development/python-modules/fontparts/default.nix +++ b/pkgs/development/python-modules/fontparts/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch2 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch2, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, fonttools -, defcon -, fontmath -, booleanoperations + # dependencies + fonttools, + defcon, + fontmath, + booleanoperations, -# tests -, python + # tests + python, }: buildPythonPackage rec { @@ -46,16 +47,17 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - booleanoperations - defcon - fontmath - fonttools - ] - ++ defcon.optional-dependencies.pens - ++ fonttools.optional-dependencies.ufo - ++ fonttools.optional-dependencies.lxml - ++ fonttools.optional-dependencies.unicode; + propagatedBuildInputs = + [ + booleanoperations + defcon + fontmath + fonttools + ] + ++ defcon.optional-dependencies.pens + ++ fonttools.optional-dependencies.ufo + ++ fonttools.optional-dependencies.lxml + ++ fonttools.optional-dependencies.unicode; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/fontpens/default.nix b/pkgs/development/python-modules/fontpens/default.nix index aaa1d119111c..7dbf59b23b58 100644 --- a/pkgs/development/python-modules/fontpens/default.nix +++ b/pkgs/development/python-modules/fontpens/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, fonttools }: +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, +}: buildPythonPackage rec { pname = "fontpens"; @@ -15,20 +20,22 @@ buildPythonPackage rec { # can't run normal tests due to circular dependency with fontParts doCheck = false; - pythonImportsCheck = [ "fontPens" ] ++ (builtins.map (s: "fontPens." + s) [ - "angledMarginPen" - "digestPointPen" - "flattenPen" - "guessSmoothPointPen" - "marginPen" - "penTools" - "printPen" - "printPointPen" - "recordingPointPen" - "thresholdPen" - "thresholdPointPen" - "transformPointPen" - ]); + pythonImportsCheck = + [ "fontPens" ] + ++ (builtins.map (s: "fontPens." + s) [ + "angledMarginPen" + "digestPointPen" + "flattenPen" + "guessSmoothPointPen" + "marginPen" + "penTools" + "printPen" + "printPointPen" + "recordingPointPen" + "thresholdPen" + "thresholdPointPen" + "transformPointPen" + ]); meta = with lib; { description = "A collection of classes implementing the pen protocol for manipulating glyphs"; diff --git a/pkgs/development/python-modules/fonttools/default.nix b/pkgs/development/python-modules/fonttools/default.nix index 57e8372efa76..3f8e7e299e90 100644 --- a/pkgs/development/python-modules/fonttools/default.nix +++ b/pkgs/development/python-modules/fonttools/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, isPyPy -, fetchFromGitHub -, setuptools -, setuptools-scm -, fs -, lxml -, brotli -, brotlicffi -, zopfli -, unicodedata2 -, lz4 -, scipy -, munkres -, pycairo -, matplotlib -, sympy -, xattr -, skia-pathops -, uharfbuzz -, pytest7CheckHook +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + isPyPy, + fetchFromGitHub, + setuptools, + setuptools-scm, + fs, + lxml, + brotli, + brotlicffi, + zopfli, + unicodedata2, + lz4, + scipy, + munkres, + pycairo, + matplotlib, + sympy, + xattr, + skia-pathops, + uharfbuzz, + pytest7CheckHook, }: buildPythonPackage rec { @@ -32,8 +33,8 @@ buildPythonPackage rec { disabled = pythonOlder "3.8"; src = fetchFromGitHub { - owner = pname; - repo = pname; + owner = pname; + repo = pname; rev = "refs/tags/${version}"; hash = "sha256-JUAFGLjyq/2OXlhTB6dIcO3Mq7Rx1HII+sg2TaQfPYU="; }; @@ -43,37 +44,49 @@ buildPythonPackage rec { setuptools-scm ]; - optional-dependencies = let - extras = { - ufo = [ fs ]; - lxml = [ lxml ]; - woff = [ (if isPyPy then brotlicffi else brotli) zopfli ]; - unicode = lib.optional (pythonOlder "3.11") unicodedata2; - graphite = [ lz4 ]; - interpolatable = [ pycairo (if isPyPy then munkres else scipy) ]; - plot = [ matplotlib ]; - symfont = [ sympy ]; - type1 = lib.optional stdenv.isDarwin xattr; - pathops = [ skia-pathops ]; - repacker = [ uharfbuzz ]; - }; - in extras // { - all = lib.concatLists (lib.attrValues extras); - }; + optional-dependencies = + let + extras = { + ufo = [ fs ]; + lxml = [ lxml ]; + woff = [ + (if isPyPy then brotlicffi else brotli) + zopfli + ]; + unicode = lib.optional (pythonOlder "3.11") unicodedata2; + graphite = [ lz4 ]; + interpolatable = [ + pycairo + (if isPyPy then munkres else scipy) + ]; + plot = [ matplotlib ]; + symfont = [ sympy ]; + type1 = lib.optional stdenv.isDarwin xattr; + pathops = [ skia-pathops ]; + repacker = [ uharfbuzz ]; + }; + in + extras // { all = lib.concatLists (lib.attrValues extras); }; - nativeCheckInputs = [ - # test suite fails with pytest>=8.0.1 - # https://github.com/fonttools/fonttools/issues/3458 - pytest7CheckHook - ] ++ lib.concatLists (lib.attrVals ([ - "woff" - # "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies - "ufo" - ] ++ lib.optionals (!skia-pathops.meta.broken) [ - "pathops" # broken - ] ++ [ - "repacker" - ]) optional-dependencies); + nativeCheckInputs = + [ + # test suite fails with pytest>=8.0.1 + # https://github.com/fonttools/fonttools/issues/3458 + pytest7CheckHook + ] + ++ lib.concatLists ( + lib.attrVals ( + [ + "woff" + # "interpolatable" is not included because it only contains 2 tests at the time of writing but adds 270 extra dependencies + "ufo" + ] + ++ lib.optionals (!skia-pathops.meta.broken) [ + "pathops" # broken + ] + ++ [ "repacker" ] + ) optional-dependencies + ); pythonImportsCheck = [ "fontTools" ]; diff --git a/pkgs/development/python-modules/foolscap/default.nix b/pkgs/development/python-modules/foolscap/default.nix index 2da82762195b..5c322bd8debd 100644 --- a/pkgs/development/python-modules/foolscap/default.nix +++ b/pkgs/development/python-modules/foolscap/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pyopenssl -, pytestCheckHook -, pythonOlder -, service-identity -, six -, twisted -, txi2p-tahoe -, txtorcon +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pyopenssl, + pytestCheckHook, + pythonOlder, + service-identity, + six, + twisted, + txi2p-tahoe, + txtorcon, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/forbiddenfruit/default.nix b/pkgs/development/python-modules/forbiddenfruit/default.nix index 838dc60d0db0..48f68c49cf62 100644 --- a/pkgs/development/python-modules/forbiddenfruit/default.nix +++ b/pkgs/development/python-modules/forbiddenfruit/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, }: buildPythonPackage rec { @@ -33,5 +34,4 @@ buildPythonPackage rec { homepage = "https://github.com/clarete/forbiddenfruit"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/fordpass/default.nix b/pkgs/development/python-modules/fordpass/default.nix index 3ddef9d172c3..0a7d9f68e6ec 100644 --- a/pkgs/development/python-modules/fordpass/default.nix +++ b/pkgs/development/python-modules/fordpass/default.nix @@ -1,8 +1,9 @@ -{ lib -, requests -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + requests, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "0i1dlswxc2bv1smc5d4r1adbxbl7sgr1swh2cjfajp73vs43xa0m"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/forecast-solar/default.nix b/pkgs/development/python-modules/forecast-solar/default.nix index 4e329a100c8e..8543662edbd7 100644 --- a/pkgs/development/python-modules/forecast-solar/default.nix +++ b/pkgs/development/python-modules/forecast-solar/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, aiodns -, aiohttp -, backports-zoneinfo -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + aiodns, + aiohttp, + backports-zoneinfo, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,24 +22,18 @@ buildPythonPackage rec { hash = "sha256-iol0XtfPZI95o/uEyBcXgeQjcfl2kI+4mugtywa6BXI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; env.PACKAGE_VERSION = version; dependencies = [ aiodns aiohttp - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; pythonImportsCheck = [ "forecast_solar" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/home-assistant-libs/forecast_solar/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/formbox/default.nix b/pkgs/development/python-modules/formbox/default.nix index 7f825cb251e3..9888ab8d219c 100644 --- a/pkgs/development/python-modules/formbox/default.nix +++ b/pkgs/development/python-modules/formbox/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, pythonOlder, fetchzip, flit-core, mistune, nh3 }: +{ + lib, + buildPythonPackage, + pythonOlder, + fetchzip, + flit-core, + mistune, + nh3, +}: buildPythonPackage rec { pname = "formbox"; @@ -12,7 +20,10 @@ buildPythonPackage rec { }; nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ mistune nh3 ]; + propagatedBuildInputs = [ + mistune + nh3 + ]; doCheck = false; # there's no test pythonImportsCheck = [ "formbox" ]; diff --git a/pkgs/development/python-modules/formencode/default.nix b/pkgs/development/python-modules/formencode/default.nix index 9cccd8d9f39b..b6be8e6158f6 100644 --- a/pkgs/development/python-modules/formencode/default.nix +++ b/pkgs/development/python-modules/formencode/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, setuptools-scm -, six -, dnspython -, pycountry -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + setuptools-scm, + six, + dnspython, + pycountry, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/formulae/default.nix b/pkgs/development/python-modules/formulae/default.nix index 02dcfd0fbd6e..526be820c131 100644 --- a/pkgs/development/python-modules/formulae/default.nix +++ b/pkgs/development/python-modules/formulae/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook -, numpy -, pandas -, scipy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, + numpy, + pandas, + scipy, }: buildPythonPackage rec { @@ -37,7 +38,10 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; # use assertions of form `assert pytest.approx(...)`, which is now disallowed: - disabledTests = [ "test_basic" "test_degree" ]; + disabledTests = [ + "test_basic" + "test_degree" + ]; pythonImportsCheck = [ "formulae" "formulae.matrices" diff --git a/pkgs/development/python-modules/formulaic/default.nix b/pkgs/development/python-modules/formulaic/default.nix index bf448a42c95b..ae9ccc02c36c 100644 --- a/pkgs/development/python-modules/formulaic/default.nix +++ b/pkgs/development/python-modules/formulaic/default.nix @@ -1,19 +1,20 @@ -{ lib -, astor -, buildPythonPackage -, fetchFromGitHub -, git -, hatch-vcs -, hatchling -, interface-meta -, numpy -, pandas -, pytestCheckHook -, pythonOlder -, scipy -, sympy -, typing-extensions -, wrapt +{ + lib, + astor, + buildPythonPackage, + fetchFromGitHub, + git, + hatch-vcs, + hatchling, + interface-meta, + numpy, + pandas, + pytestCheckHook, + pythonOlder, + scipy, + sympy, + typing-extensions, + wrapt, }: buildPythonPackage rec { @@ -48,17 +49,11 @@ buildPythonPackage rec { sympy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "formulaic" - ]; + pythonImportsCheck = [ "formulaic" ]; - disabledTestPaths = [ - "tests/transforms/test_poly.py" - ]; + disabledTestPaths = [ "tests/transforms/test_poly.py" ]; meta = with lib; { description = "High-performance implementation of Wilkinson formulas"; diff --git a/pkgs/development/python-modules/fortiosapi/default.nix b/pkgs/development/python-modules/fortiosapi/default.nix index 5b6bce687ea3..233ebce089de 100644 --- a/pkgs/development/python-modules/fortiosapi/default.nix +++ b/pkgs/development/python-modules/fortiosapi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, oyaml -, packaging -, paramiko -, pexpect -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + oyaml, + packaging, + paramiko, + pexpect, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Tests require a local VM doCheck = false; - pythonImportsCheck = [ - "fortiosapi" - ]; + pythonImportsCheck = [ "fortiosapi" ]; meta = with lib; { description = "Python module to work with Fortigate/Fortios devices"; diff --git a/pkgs/development/python-modules/fountains/default.nix b/pkgs/development/python-modules/fountains/default.nix index d6efde228fbd..8a5e4e923dfe 100644 --- a/pkgs/development/python-modules/fountains/default.nix +++ b/pkgs/development/python-modules/fountains/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, bitlist -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + bitlist, + pythonOlder, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - bitlist - ]; + propagatedBuildInputs = [ bitlist ]; # Module has no test doCheck = false; - pythonImportsCheck = [ - "fountains" - ]; + pythonImportsCheck = [ "fountains" ]; meta = with lib; { description = "Python library for generating and embedding data for unit testing"; diff --git a/pkgs/development/python-modules/foxdot/default.nix b/pkgs/development/python-modules/foxdot/default.nix index faa6bedd4799..af7edb24ae95 100644 --- a/pkgs/development/python-modules/foxdot/default.nix +++ b/pkgs/development/python-modules/foxdot/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, tkinter -, supercollider +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + tkinter, + supercollider, }: buildPythonPackage rec { @@ -16,7 +17,8 @@ buildPythonPackage rec { sha256 = "528999da55ad630e540a39c0eaeacd19c58c36f49d65d24ea9704d0781e18c90"; }; - propagatedBuildInputs = [ tkinter ] + propagatedBuildInputs = + [ tkinter ] # we currently build SuperCollider only on Linux # but FoxDot is totally usable on macOS with the official SuperCollider binary ++ lib.optionals stdenv.isLinux [ supercollider ]; diff --git a/pkgs/development/python-modules/fpdf/default.nix b/pkgs/development/python-modules/fpdf/default.nix index 091757160e16..4ceac163a46e 100644 --- a/pkgs/development/python-modules/fpdf/default.nix +++ b/pkgs/development/python-modules/fpdf/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "fpdf"; diff --git a/pkgs/development/python-modules/fpdf2/default.nix b/pkgs/development/python-modules/fpdf2/default.nix index b3a764724c46..378798f5ea9b 100644 --- a/pkgs/development/python-modules/fpdf2/default.nix +++ b/pkgs/development/python-modules/fpdf2/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, setuptools + setuptools, -, defusedxml -, pillow -, fonttools + defusedxml, + pillow, + fonttools, -, pytestCheckHook -, qrcode -, camelot -, uharfbuzz -, lxml + pytestCheckHook, + qrcode, + camelot, + uharfbuzz, + lxml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fpylll/default.nix b/pkgs/development/python-modules/fpylll/default.nix index 2b4571b53edb..52f59da89544 100644 --- a/pkgs/development/python-modules/fpylll/default.nix +++ b/pkgs/development/python-modules/fpylll/default.nix @@ -1,25 +1,26 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, fetchpatch +{ + lib, + fetchFromGitHub, + buildPythonPackage, + fetchpatch, -# build-system -, cysignals -, cython -, pkgconfig -, setuptools + # build-system + cysignals, + cython, + pkgconfig, + setuptools, -, gmp -, pari -, mpfr -, fplll -, numpy + gmp, + pari, + mpfr, + fplll, + numpy, -# Reverse dependency -, sage + # Reverse dependency + sage, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -59,13 +60,9 @@ buildPythonPackage rec { fplll ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # Since upstream introduced --doctest-modules in @@ -75,7 +72,9 @@ buildPythonPackage rec { export PY_IGNORE_IMPORTMISMATCH=1 ''; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "A Python interface for fplll"; diff --git a/pkgs/development/python-modules/fpyutils/default.nix b/pkgs/development/python-modules/fpyutils/default.nix index a81067e1ffb3..7b867da840c6 100644 --- a/pkgs/development/python-modules/fpyutils/default.nix +++ b/pkgs/development/python-modules/fpyutils/default.nix @@ -1,11 +1,12 @@ -{ lib -, atomicwrites -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + atomicwrites, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -22,31 +23,23 @@ buildPythonPackage rec { hash = "sha256-VVR1zsejO6kHlMjqqlftDKu3/SyDzgPov9f48HYL/Bk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ atomicwrites requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "fpyutils/tests/*.py" - ]; + pytestFlagsArray = [ "fpyutils/tests/*.py" ]; disabledTests = [ # Don't run test which requires bash "test_execute_command_live_output" ]; - pythonImportsCheck = [ - "fpyutils" - ]; + pythonImportsCheck = [ "fpyutils" ]; meta = with lib; { description = "Collection of useful non-standard Python functions"; diff --git a/pkgs/development/python-modules/fqdn/default.nix b/pkgs/development/python-modules/fqdn/default.nix index 2b7182569b29..dd8f5b8d8ca8 100644 --- a/pkgs/development/python-modules/fqdn/default.nix +++ b/pkgs/development/python-modules/fqdn/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-T0CdWWr8p3JVhp3nol5hyxsrD3951JE2EDpFt+m+3bE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "fqdn" - ]; + pythonImportsCheck = [ "fqdn" ]; meta = with lib; { description = "RFC-compliant FQDN validation and manipulation"; diff --git a/pkgs/development/python-modules/freebox-api/default.nix b/pkgs/development/python-modules/freebox-api/default.nix index cb56a789deda..a5fa4fe5746f 100644 --- a/pkgs/development/python-modules/freebox-api/default.nix +++ b/pkgs/development/python-modules/freebox-api/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + urllib3, }: buildPythonPackage rec { @@ -28,22 +29,16 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; propagatedBuildInputs = [ aiohttp urllib3 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "freebox_api" - ]; + pythonImportsCheck = [ "freebox_api" ]; meta = with lib; { description = "Python module to interact with the Freebox OS API"; diff --git a/pkgs/development/python-modules/freetype-py/default.nix b/pkgs/development/python-modules/freetype-py/default.nix index 172225968218..5ec8f6c1b0ff 100644 --- a/pkgs/development/python-modules/freetype-py/default.nix +++ b/pkgs/development/python-modules/freetype-py/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, substituteAll -, setuptools-scm -, freetype -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + substituteAll, + setuptools-scm, + freetype, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,11 +34,9 @@ buildPythonPackage rec { cd tests ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ "freetype" ]; + pythonImportsCheck = [ "freetype" ]; meta = with lib; { homepage = "https://github.com/rougier/freetype-py"; diff --git a/pkgs/development/python-modules/freezegun/default.nix b/pkgs/development/python-modules/freezegun/default.nix index 2279e70ada6a..ab170e3ee916 100644 --- a/pkgs/development/python-modules/freezegun/default.nix +++ b/pkgs/development/python-modules/freezegun/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, python-dateutil -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-EJObC6D/Wtrs87BqXC9zBx2WeOUHxertsjx2HVasd0s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - python-dateutil - ]; + propagatedBuildInputs = [ python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "freezegun" - ]; + pythonImportsCheck = [ "freezegun" ]; meta = with lib; { description = "Library that allows your Python tests to travel through time"; diff --git a/pkgs/development/python-modules/frelatage/default.nix b/pkgs/development/python-modules/frelatage/default.nix index 519e981b6999..1203cab94216 100644 --- a/pkgs/development/python-modules/frelatage/default.nix +++ b/pkgs/development/python-modules/frelatage/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, poetry-core -, pytestCheckHook -, pythonOlder -, timeout-decorator +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + poetry-core, + pytestCheckHook, + pythonOlder, + timeout-decorator, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-eHVqp6govBV9FvSQyaZuEEImHQRs/mbLaW86RCvtDbM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ numpy timeout-decorator ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "frelatage" - ]; + pythonImportsCheck = [ "frelatage" ]; meta = with lib; { description = "Greybox and Coverage-based library to fuzz Python applications"; diff --git a/pkgs/development/python-modules/frida-python/default.nix b/pkgs/development/python-modules/frida-python/default.nix index 144d88cc80b8..0ef08b77d371 100644 --- a/pkgs/development/python-modules/frida-python/default.nix +++ b/pkgs/development/python-modules/frida-python/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchurl, fetchPypi, buildPythonPackage, typing-extensions }: +{ + lib, + stdenv, + fetchurl, + fetchPypi, + buildPythonPackage, + typing-extensions, +}: let version = "16.0.19"; format = "setuptools"; @@ -6,7 +13,8 @@ let url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-x86_64.tar.xz"; hash = "sha256-yNXNqv8eCbpdQKFShpAh6rUCEuItrOSNNLOjESimPdk="; }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "frida-python"; inherit version; @@ -28,7 +36,9 @@ in buildPythonPackage rec { pythonImportsCheck = [ "frida" ]; - passthru = { inherit devkit; }; + passthru = { + inherit devkit; + }; meta = { description = "Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers (Python bindings)"; diff --git a/pkgs/development/python-modules/frigidaire/default.nix b/pkgs/development/python-modules/frigidaire/default.nix index e33581ed0ac5..b8c82f26cb2f 100644 --- a/pkgs/development/python-modules/frigidaire/default.nix +++ b/pkgs/development/python-modules/frigidaire/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, certifi -, chardet -, fetchFromGitHub -, idna -, pythonOlder -, requests -, setuptools -, urllib3 +{ + lib, + buildPythonPackage, + certifi, + chardet, + fetchFromGitHub, + idna, + pythonOlder, + requests, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace-warn 'version = "SNAPSHOT"' 'version = "${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ certifi @@ -44,9 +43,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "frigidaire" - ]; + pythonImportsCheck = [ "frigidaire" ]; meta = with lib; { description = "Python API for the Frigidaire devices"; diff --git a/pkgs/development/python-modules/frilouz/default.nix b/pkgs/development/python-modules/frilouz/default.nix index 3f5ea414129f..962c0bc45884 100644 --- a/pkgs/development/python-modules/frilouz/default.nix +++ b/pkgs/development/python-modules/frilouz/default.nix @@ -1,8 +1,9 @@ -{ lib -, astunparse -, buildPythonPackage -, fetchFromGitHub -, isPy3k +{ + lib, + astunparse, + buildPythonPackage, + fetchFromGitHub, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/fritzconnection/default.nix b/pkgs/development/python-modules/fritzconnection/default.nix index 36d4dbd5b192..4ed60bd8a704 100644 --- a/pkgs/development/python-modules/fritzconnection/default.nix +++ b/pkgs/development/python-modules/fritzconnection/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, requests -, segno +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + requests, + segno, }: buildPythonPackage rec { @@ -21,27 +22,19 @@ buildPythonPackage rec { hash = "sha256-nWXtXhF2pUBxHdrivi4DA7+bFiZPyxb2nqsiN3j4HdI="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; passthru.optional-dependencies = { - qr = [ - segno - ]; + qr = [ segno ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TEMP ''; - pythonImportsCheck = [ - "fritzconnection" - ]; + pythonImportsCheck = [ "fritzconnection" ]; disabledTestPaths = [ # Functional tests require network access @@ -53,6 +46,9 @@ buildPythonPackage rec { homepage = "https://github.com/kbr/fritzconnection"; changelog = "https://fritzconnection.readthedocs.io/en/${version}/sources/version_history.html"; license = licenses.mit; - maintainers = with maintainers; [ dotlambda valodim ]; + maintainers = with maintainers; [ + dotlambda + valodim + ]; }; } diff --git a/pkgs/development/python-modules/frozendict/default.nix b/pkgs/development/python-modules/frozendict/default.nix index c3f5d2a5600b..fa2441e82923 100644 --- a/pkgs/development/python-modules/frozendict/default.nix +++ b/pkgs/development/python-modules/frozendict/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { fi ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "frozendict" - ]; + pythonImportsCheck = [ "frozendict" ]; meta = with lib; { description = "Module for immutable dictionary"; diff --git a/pkgs/development/python-modules/frozenlist/default.nix b/pkgs/development/python-modules/frozenlist/default.nix index 73860b6f79ff..c4c4613163ed 100644 --- a/pkgs/development/python-modules/frozenlist/default.nix +++ b/pkgs/development/python-modules/frozenlist/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cython -, expandvars -, fetchFromGitHub -, pep517 -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + cython, + expandvars, + fetchFromGitHub, + pep517, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -36,17 +37,13 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preBuild = '' cython frozenlist/_frozenlist.pyx ''; - pythonImportsCheck = [ - "frozenlist" - ]; + pythonImportsCheck = [ "frozenlist" ]; meta = with lib; { description = "Python module for list-like structure"; diff --git a/pkgs/development/python-modules/frozenlist2/default.nix b/pkgs/development/python-modules/frozenlist2/default.nix index 2cbac731c577..5cb8d6bd6715 100644 --- a/pkgs/development/python-modules/frozenlist2/default.nix +++ b/pkgs/development/python-modules/frozenlist2/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-fF0oFZ2q1wRH7IKBlCjm3Za4xtEMSHyEaGL09rHgtTY="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; pythonImportsCheck = [ "frozenlist2" ]; diff --git a/pkgs/development/python-modules/fs-s3fs/default.nix b/pkgs/development/python-modules/fs-s3fs/default.nix index 9310e46e82d4..5913bb656e8a 100644 --- a/pkgs/development/python-modules/fs-s3fs/default.nix +++ b/pkgs/development/python-modules/fs-s3fs/default.nix @@ -1,4 +1,11 @@ -{ buildPythonPackage, fetchPypi, lib, fs, six, boto3 }: +{ + buildPythonPackage, + fetchPypi, + lib, + fs, + six, + boto3, +}: buildPythonPackage rec { pname = "fs-s3fs"; @@ -10,7 +17,11 @@ buildPythonPackage rec { sha256 = "b57f8c7664460ff7b451b4b44ca2ea9623a374d74e1284c2d5e6df499dc7976c"; }; - propagatedBuildInputs = [ fs six boto3 ]; + propagatedBuildInputs = [ + fs + six + boto3 + ]; # tests try to integrate an s3 bucket which can't be tested properly in an isolated environment. doCheck = false; diff --git a/pkgs/development/python-modules/fs/default.nix b/pkgs/development/python-modules/fs/default.nix index da03c963bd75..5941243645ef 100644 --- a/pkgs/development/python-modules/fs/default.nix +++ b/pkgs/development/python-modules/fs/default.nix @@ -1,22 +1,23 @@ -{ lib -, glibcLocales -, buildPythonPackage -, fetchPypi -, setuptools -, six -, appdirs -, scandir ? null -, backports_os ? null -, typing ? null -, pytz -, enum34 -, pyftpdlib -, psutil -, mock -, pythonAtLeast -, isPy3k -, pytestCheckHook -, stdenv +{ + lib, + glibcLocales, + buildPythonPackage, + fetchPypi, + setuptools, + six, + appdirs, + scandir ? null, + backports_os ? null, + typing ? null, + pytz, + enum34, + pyftpdlib, + psutil, + mock, + pythonAtLeast, + isPy3k, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -33,14 +34,25 @@ buildPythonPackage rec { # strong cycle with parameterized doCheck = false; - nativeCheckInputs = [ pyftpdlib mock psutil pytestCheckHook ]; - propagatedBuildInputs = [ six appdirs pytz setuptools ] + nativeCheckInputs = [ + pyftpdlib + mock + psutil + pytestCheckHook + ]; + propagatedBuildInputs = + [ + six + appdirs + pytz + setuptools + ] ++ lib.optionals (!isPy3k) [ backports_os ] ++ lib.optionals (!pythonAtLeast "3.6") [ typing ] ++ lib.optionals (!pythonAtLeast "3.5") [ scandir ] ++ lib.optionals (!pythonAtLeast "3.5") [ enum34 ]; - LC_ALL="en_US.utf-8"; + LC_ALL = "en_US.utf-8"; preCheck = '' HOME=$(mktemp -d) @@ -48,24 +60,25 @@ buildPythonPackage rec { pytestFlagsArray = [ "--ignore=tests/test_opener.py" ]; - disabledTests = [ - "user_data_repr" - ] ++ lib.optionals (stdenv.isDarwin) [ # remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved - "test_ftpfs" - ] ++ lib.optionals (pythonAtLeast "3.9") [ - # update friend version of this commit: https://github.com/PyFilesystem/pyfilesystem2/commit/3e02968ce7da7099dd19167815c5628293e00040 - # merged into master, able to be removed after >2.4.1 - "test_copy_sendfile" - ]; + disabledTests = + [ "user_data_repr" ] + ++ lib.optionals (stdenv.isDarwin) [ + # remove if https://github.com/PyFilesystem/pyfilesystem2/issues/430#issue-707878112 resolved + "test_ftpfs" + ] + ++ lib.optionals (pythonAtLeast "3.9") [ + # update friend version of this commit: https://github.com/PyFilesystem/pyfilesystem2/commit/3e02968ce7da7099dd19167815c5628293e00040 + # merged into master, able to be removed after >2.4.1 + "test_copy_sendfile" + ]; __darwinAllowLocalNetworking = true; meta = with lib; { description = "Filesystem abstraction"; - homepage = "https://github.com/PyFilesystem/pyfilesystem2"; - license = licenses.bsd3; + homepage = "https://github.com/PyFilesystem/pyfilesystem2"; + license = licenses.bsd3; maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; + platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/fschat/default.nix b/pkgs/development/python-modules/fschat/default.nix index 5f9c4b3532b4..3661d8ad68e6 100644 --- a/pkgs/development/python-modules/fschat/default.nix +++ b/pkgs/development/python-modules/fschat/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, aiohttp -, fastapi -, httpx -, markdown2 -, nh3 -, numpy -, prompt-toolkit -, pydantic -, requests -, rich -, shortuuid -, tiktoken -, uvicorn -, anthropic -, openai -, ray -, wandb -, einops -, gradio -, accelerate -, peft -, sentencepiece -, torch -, transformers -, protobuf +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + fastapi, + httpx, + markdown2, + nh3, + numpy, + prompt-toolkit, + pydantic, + requests, + rich, + shortuuid, + tiktoken, + uvicorn, + anthropic, + openai, + ray, + wandb, + einops, + gradio, + accelerate, + peft, + sentencepiece, + torch, + transformers, + protobuf, }: let version = "0.2.36"; @@ -43,9 +44,7 @@ buildPythonPackage { hash = "sha256-tQuvQXzQbQjU16DfS1o55VHW6eklngEvIigzZGgrKB8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -61,7 +60,7 @@ buildPythonPackage { shortuuid tiktoken uvicorn - # ] ++ markdown2.optional-dependencies.all; + # ] ++ markdown2.optional-dependencies.all; ]; passthru.optional-dependencies = { @@ -75,9 +74,7 @@ buildPythonPackage { wandb einops ]; - webui = [ - gradio - ]; + webui = [ gradio ]; model_worker = [ accelerate peft diff --git a/pkgs/development/python-modules/fsspec-xrootd/default.nix b/pkgs/development/python-modules/fsspec-xrootd/default.nix index d2d72257100e..47c63d508f1a 100644 --- a/pkgs/development/python-modules/fsspec-xrootd/default.nix +++ b/pkgs/development/python-modules/fsspec-xrootd/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, fsspec -, xrootd -, pkgs -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + fsspec, + xrootd, + pkgs, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { xrootd ]; - pythonImportsCheck = [ - "fsspec_xrootd" - ]; + pythonImportsCheck = [ "fsspec_xrootd" ]; nativeCheckInputs = [ pkgs.xrootd @@ -51,9 +50,7 @@ buildPythonPackage rec { ]; # Timeout related tests hang indifinetely - disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ - "tests/test_basicio.py" - ]; + disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_basicio.py" ]; meta = with lib; { description = "An XRootD implementation for fsspec"; diff --git a/pkgs/development/python-modules/fsspec/default.nix b/pkgs/development/python-modules/fsspec/default.nix index 648879ec85cb..88fb0bdcabf7 100644 --- a/pkgs/development/python-modules/fsspec/default.nix +++ b/pkgs/development/python-modules/fsspec/default.nix @@ -1,30 +1,31 @@ -{ lib -, stdenv -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, numpy -, paramiko -, pytest-asyncio -, pytest-mock -, pytest-vcr -, pytestCheckHook -, pythonOlder -, requests -, smbprotocol -, tqdm -, adlfs -, dask -, distributed -, dropbox -, fusepy -, gcsfs -, libarchive-c -, ocifs -, panel -, pyarrow -, pygit2 -, s3fs +{ + lib, + stdenv, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + numpy, + paramiko, + pytest-asyncio, + pytest-mock, + pytest-vcr, + pytestCheckHook, + pythonOlder, + requests, + smbprotocol, + tqdm, + adlfs, + dask, + distributed, + dropbox, + fusepy, + gcsfs, + libarchive-c, + ocifs, + panel, + pyarrow, + pygit2, + s3fs, }: buildPythonPackage rec { @@ -50,14 +51,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - entrypoints = [ - ]; - abfs = [ - adlfs - ]; - adl = [ - adlfs - ]; + entrypoints = [ ]; + abfs = [ adlfs ]; + adl = [ adlfs ]; dask = [ dask distributed @@ -67,55 +63,25 @@ buildPythonPackage rec { requests dropbox ]; - gcs = [ - gcsfs - ]; - git = [ - pygit2 - ]; - github = [ - requests - ]; - gs = [ - gcsfs - ]; - hdfs = [ - pyarrow - ]; - arrow = [ - pyarrow - ]; + gcs = [ gcsfs ]; + git = [ pygit2 ]; + github = [ requests ]; + gs = [ gcsfs ]; + hdfs = [ pyarrow ]; + arrow = [ pyarrow ]; http = [ aiohttp requests ]; - sftp = [ - paramiko - ]; - s3 = [ - s3fs - ]; - oci = [ - ocifs - ]; - smb = [ - smbprotocol - ]; - ssh = [ - paramiko - ]; - fuse = [ - fusepy - ]; - libarchive = [ - libarchive-c - ]; - gui = [ - panel - ]; - tqdm = [ - tqdm - ]; + sftp = [ paramiko ]; + s3 = [ s3fs ]; + oci = [ ocifs ]; + smb = [ smbprotocol ]; + ssh = [ paramiko ]; + fuse = [ fusepy ]; + libarchive = [ libarchive-c ]; + gui = [ panel ]; + tqdm = [ tqdm ]; }; nativeCheckInputs = [ @@ -132,34 +98,34 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - disabledTests = [ - # Test assumes user name is part of $HOME - # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar' - "test_strip_protocol_expanduser" - # test accesses this remote ftp server: - # https://ftp.fau.de/debian-cd/current/amd64/log/success - "test_find" - # Tests want to access S3 - "test_urlpath_inference_errors" - "test_mismatch" - ] ++ lib.optionals (stdenv.isDarwin) [ - # works locally on APFS, fails on hydra with AssertionError comparing timestamps - # darwin hydra builder uses HFS+ and has only one second timestamp resolution - # this two tests however, assume nanosecond resolution - "test_modified" - "test_touch" - # tries to access /home, ignores $HOME - "test_directories" - ]; + disabledTests = + [ + # Test assumes user name is part of $HOME + # AssertionError: assert 'nixbld' in '/homeless-shelter/foo/bar' + "test_strip_protocol_expanduser" + # test accesses this remote ftp server: + # https://ftp.fau.de/debian-cd/current/amd64/log/success + "test_find" + # Tests want to access S3 + "test_urlpath_inference_errors" + "test_mismatch" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # works locally on APFS, fails on hydra with AssertionError comparing timestamps + # darwin hydra builder uses HFS+ and has only one second timestamp resolution + # this two tests however, assume nanosecond resolution + "test_modified" + "test_touch" + # tries to access /home, ignores $HOME + "test_directories" + ]; disabledTestPaths = [ # JSON decoding issues "fsspec/implementations/tests/test_dbfs.py" ]; - pythonImportsCheck = [ - "fsspec" - ]; + pythonImportsCheck = [ "fsspec" ]; meta = with lib; { description = "A specification that Python filesystems should adhere to"; diff --git a/pkgs/development/python-modules/fst-pso/default.nix b/pkgs/development/python-modules/fst-pso/default.nix index 00bcf551b5b1..3096bb743d11 100644 --- a/pkgs/development/python-modules/fst-pso/default.nix +++ b/pkgs/development/python-modules/fst-pso/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, miniful -, numpy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + miniful, + numpy, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "fstpso" - ]; + pythonImportsCheck = [ "fstpso" ]; meta = with lib; { description = "Fuzzy Self-Tuning PSO global optimization library"; diff --git a/pkgs/development/python-modules/ftfy/default.nix b/pkgs/development/python-modules/ftfy/default.nix index c05b37542417..a52c32614657 100644 --- a/pkgs/development/python-modules/ftfy/default.nix +++ b/pkgs/development/python-modules/ftfy/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, wcwidth + # dependencies + wcwidth, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { hash = "sha256-XkIUPHAl75eUTKJhnWthsGGfxmVPmHcdOehiwUJMdcA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - wcwidth - ]; + propagatedBuildInputs = [ wcwidth ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export PATH=$out/bin:$PATH @@ -46,7 +41,6 @@ buildPythonPackage rec { "tests/test_cli.py" ]; - meta = with lib; { description = "Given Unicode text, make its representation consistent and possibly less broken"; mainProgram = "ftfy"; diff --git a/pkgs/development/python-modules/ftputil/default.nix b/pkgs/development/python-modules/ftputil/default.nix index 9c143389928f..bc4e43e29c39 100644 --- a/pkgs/development/python-modules/ftputil/default.nix +++ b/pkgs/development/python-modules/ftputil/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, freezegun -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + freezegun, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { "test_upload" ]; - pythonImportsCheck = [ - "ftputil" - ]; + pythonImportsCheck = [ "ftputil" ]; meta = with lib; { description = "High-level FTP client library (virtual file system and more)"; diff --git a/pkgs/development/python-modules/fugashi/default.nix b/pkgs/development/python-modules/fugashi/default.nix index 64f5ef9afcdb..6bfbcdbba3e2 100644 --- a/pkgs/development/python-modules/fugashi/default.nix +++ b/pkgs/development/python-modules/fugashi/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, buildPythonPackage -, cython_0 -, mecab -, setuptools-scm -, ipadic -, unidic -, unidic-lite +{ + lib, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + buildPythonPackage, + cython_0, + mecab, + setuptools-scm, + ipadic, + unidic, + unidic-lite, }: buildPythonPackage rec { @@ -24,10 +25,16 @@ buildPythonPackage rec { hash = "sha256-4i7Q+TtXTQNSJ1EIcS8KHrVPdCJAgZh86Y6lB8772XU="; }; - nativeBuildInputs = [ cython_0 mecab setuptools-scm ]; + nativeBuildInputs = [ + cython_0 + mecab + setuptools-scm + ]; - nativeCheckInputs = [ ipadic pytestCheckHook ] - ++ passthru.optional-dependencies.unidic-lite; + nativeCheckInputs = [ + ipadic + pytestCheckHook + ] ++ passthru.optional-dependencies.unidic-lite; passthru.optional-dependencies = { unidic-lite = [ unidic-lite ]; diff --git a/pkgs/development/python-modules/func-timeout/default.nix b/pkgs/development/python-modules/func-timeout/default.nix index 654b950b48d8..4c3c342f32d6 100644 --- a/pkgs/development/python-modules/func-timeout/default.nix +++ b/pkgs/development/python-modules/func-timeout/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "74cd3c428ec94f4edfba81f9b2f14904846d5ffccc27c92433b8b5939b5575dd"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "func_timeout" ]; diff --git a/pkgs/development/python-modules/funcparserlib/default.nix b/pkgs/development/python-modules/funcparserlib/default.nix index e8f5f10b4533..abe8fb25d68e 100644 --- a/pkgs/development/python-modules/funcparserlib/default.nix +++ b/pkgs/development/python-modules/funcparserlib/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, python -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + python, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-LE9ItCaEzEGeahpM3M3sSnDBXEr6uX5ogEkO5x2Jgzc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook six ]; - pythonImportsCheck = [ - "funcparserlib" - ]; + pythonImportsCheck = [ "funcparserlib" ]; meta = with lib; { description = "Recursive descent parsing library based on functional combinators"; diff --git a/pkgs/development/python-modules/funcsigs/default.nix b/pkgs/development/python-modules/funcsigs/default.nix index 4def50699d84..63fcb2052237 100644 --- a/pkgs/development/python-modules/funcsigs/default.nix +++ b/pkgs/development/python-modules/funcsigs/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, isPyPy, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/functiontrace/default.nix b/pkgs/development/python-modules/functiontrace/default.nix index 0b34da111b36..e0ca06ba0b48 100644 --- a/pkgs/development/python-modules/functiontrace/default.nix +++ b/pkgs/development/python-modules/functiontrace/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + toml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/funcy/default.nix b/pkgs/development/python-modules/funcy/default.nix index bafaf0fdb1f1..a6bb66a17356 100644 --- a/pkgs/development/python-modules/funcy/default.nix +++ b/pkgs/development/python-modules/funcy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -26,5 +27,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/funsor/default.nix b/pkgs/development/python-modules/funsor/default.nix index dcd3c67a394b..f854e5833bfc 100644 --- a/pkgs/development/python-modules/funsor/default.nix +++ b/pkgs/development/python-modules/funsor/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, makefun -, multipledispatch -, numpy -, opt-einsum -, typing-extensions -, pyro-ppl -, torch -, pandas -, pillow -, pyro-api -, pytest -, pytest-xdist -, requests -, scipy -, torchvision +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + makefun, + multipledispatch, + numpy, + opt-einsum, + typing-extensions, + pyro-ppl, + torch, + pandas, + pillow, + pyro-api, + pytest, + pytest-xdist, + requests, + scipy, + torchvision, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { }; # Disable the tests that rely on downloading assets from the internet as well as the linting checks. - patches = [ - ./patch-makefile-for-tests.patch - ]; + patches = [ ./patch-makefile-for-tests.patch ]; propagatedBuildInputs = [ makefun diff --git a/pkgs/development/python-modules/furl/default.nix b/pkgs/development/python-modules/furl/default.nix index 062ab8aebe08..fb9e9b620663 100644 --- a/pkgs/development/python-modules/furl/default.nix +++ b/pkgs/development/python-modules/furl/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flake8 -, orderedmultidict -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchPypi, + flake8, + orderedmultidict, + pytestCheckHook, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/furo/default.nix b/pkgs/development/python-modules/furo/default.nix index fb024e18c4f6..d2f20e92eeb8 100644 --- a/pkgs/development/python-modules/furo/default.nix +++ b/pkgs/development/python-modules/furo/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pythonRelaxDepsHook -, sphinx -, beautifulsoup4 -, sphinx-basic-ng +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pythonRelaxDepsHook, + sphinx, + beautifulsoup4, + sphinx-basic-ng, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-NUi+LO9Foy+M3AJy1BX8s+X6ag603f4h3z7PH+RaE88="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "sphinx" - ]; + pythonRelaxDeps = [ "sphinx" ]; propagatedBuildInputs = [ sphinx @@ -47,9 +44,7 @@ buildPythonPackage rec { cd - ''; - pythonImportsCheck = [ - "furo" - ]; + pythonImportsCheck = [ "furo" ]; meta = with lib; { description = "A clean customizable documentation theme for Sphinx"; diff --git a/pkgs/development/python-modules/fuse-python/default.nix b/pkgs/development/python-modules/fuse-python/default.nix index 8bcb486a6311..ddd6d394cd0c 100644 --- a/pkgs/development/python-modules/fuse-python/default.nix +++ b/pkgs/development/python-modules/fuse-python/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, pkg-config, fuse }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pkg-config, + fuse, +}: buildPythonPackage rec { pname = "fuse-python"; diff --git a/pkgs/development/python-modules/fusepy/default.nix b/pkgs/development/python-modules/fusepy/default.nix index 8c51fcebe559..35718a54d635 100644 --- a/pkgs/development/python-modules/fusepy/default.nix +++ b/pkgs/development/python-modules/fusepy/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pkgs +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pkgs, }: buildPythonPackage rec { @@ -37,5 +38,4 @@ buildPythonPackage rec { license = licenses.isc; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/future-fstrings/default.nix b/pkgs/development/python-modules/future-fstrings/default.nix index 57cf42f38ab5..1d6f5e52adad 100644 --- a/pkgs/development/python-modules/future-fstrings/default.nix +++ b/pkgs/development/python-modules/future-fstrings/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, +}: buildPythonPackage rec { pname = "future-fstrings"; diff --git a/pkgs/development/python-modules/future-typing/default.nix b/pkgs/development/python-modules/future-typing/default.nix index 04d4af30e07a..ef2c18fda510 100644 --- a/pkgs/development/python-modules/future-typing/default.nix +++ b/pkgs/development/python-modules/future-typing/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + typing-extensions, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/future/default.nix b/pkgs/development/python-modules/future/default.nix index cc54a7744292..47ed954e1b1a 100644 --- a/pkgs/development/python-modules/future/default.nix +++ b/pkgs/development/python-modules/future/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-vSloMJMHhh7a4UWKT4pPNZjAO+Q7l1IQdq6/XZTAewU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "future.builtins" diff --git a/pkgs/development/python-modules/fuzzyfinder/default.nix b/pkgs/development/python-modules/fuzzyfinder/default.nix index 76f7e977cc32..7d183d471c73 100644 --- a/pkgs/development/python-modules/fuzzyfinder/default.nix +++ b/pkgs/development/python-modules/fuzzyfinder/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "c56d86f110866becad6690c7518f7036c20831c0f82fc87eba8fdb943132f04b"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "fuzzyfinder" ]; diff --git a/pkgs/development/python-modules/fuzzywuzzy/default.nix b/pkgs/development/python-modules/fuzzywuzzy/default.nix index 79754a30a078..c3681fb1da83 100644 --- a/pkgs/development/python-modules/fuzzywuzzy/default.nix +++ b/pkgs/development/python-modules/fuzzywuzzy/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, levenshtein, pycodestyle, hypothesis, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + levenshtein, + pycodestyle, + hypothesis, + pytest, +}: buildPythonPackage rec { pname = "fuzzywuzzy"; @@ -11,7 +19,11 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ levenshtein ]; - nativeCheckInputs = [ pycodestyle hypothesis pytest ]; + nativeCheckInputs = [ + pycodestyle + hypothesis + pytest + ]; meta = with lib; { description = "Fuzzy string matching for Python"; diff --git a/pkgs/development/python-modules/fvcore/default.nix b/pkgs/development/python-modules/fvcore/default.nix index 884f50a0cb4a..6d00d662b055 100644 --- a/pkgs/development/python-modules/fvcore/default.nix +++ b/pkgs/development/python-modules/fvcore/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -# build inputs -, numpy -, yacs -, pyyaml -, tqdm -, termcolor -, pillow -, tabulate -, iopath -, shapely -# check inputs -, torch +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + # build inputs + numpy, + yacs, + pyyaml, + tqdm, + termcolor, + pillow, + tabulate, + iopath, + shapely, + # check inputs + torch, }: let pname = "fvcore"; @@ -44,20 +45,16 @@ buildPythonPackage { iopath ]; - nativeCheckInputs = [ - torch - ]; + nativeCheckInputs = [ torch ]; # TypeError: flop_count() missing 2 required positional arguments: 'model' and 'inputs' doCheck = false; - pythonImportsCheck = [ - "fvcore" - ]; + pythonImportsCheck = [ "fvcore" ]; passthru.optional-dependencies = optional-dependencies; - meta = with lib; { + meta = with lib; { description = "Collection of common code that's shared among different research projects in FAIR computer vision team"; homepage = "https://github.com/facebookresearch/fvcore"; license = licenses.asl20; diff --git a/pkgs/development/python-modules/fvs/default.nix b/pkgs/development/python-modules/fvs/default.nix index 8a8df6b325ac..5298a51a8440 100644 --- a/pkgs/development/python-modules/fvs/default.nix +++ b/pkgs/development/python-modules/fvs/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, orjson}: +{ + lib, + buildPythonPackage, + fetchPypi, + orjson, +}: buildPythonPackage rec { pname = "fvs"; @@ -12,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-yYd0HzdwbqB9kexJjBRRYmdsoWtZtcjCNRz0ZJVM5CI="; }; - propagatedBuildInputs = [ - orjson - ]; + propagatedBuildInputs = [ orjson ]; # no tests in src doCheck = false; - pythonImportsCheck = [ - "fvs" - ]; + pythonImportsCheck = [ "fvs" ]; meta = with lib; { description = "File Versioning System with hash comparison and data storage to create unlinked states that can be deleted"; diff --git a/pkgs/development/python-modules/fx2/default.nix b/pkgs/development/python-modules/fx2/default.nix index 3fa79dbe3f1c..6b2dcccc67af 100644 --- a/pkgs/development/python-modules/fx2/default.nix +++ b/pkgs/development/python-modules/fx2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, python -, fetchFromGitHub -, sdcc -, libusb1 -, crcmod +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, + sdcc, + libusb1, + crcmod, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { nativeBuildInputs = [ sdcc ]; - propagatedBuildInputs = [ libusb1 crcmod ]; + propagatedBuildInputs = [ + libusb1 + crcmod + ]; preBuild = '' make -C firmware diff --git a/pkgs/development/python-modules/g2pkk/default.nix b/pkgs/development/python-modules/g2pkk/default.nix index 98e03806d2ff..31246604cfb8 100644 --- a/pkgs/development/python-modules/g2pkk/default.nix +++ b/pkgs/development/python-modules/g2pkk/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jamo -, nltk +{ + lib, + buildPythonPackage, + fetchPypi, + jamo, + nltk, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { nltk ]; - pythonImportsCheck = [ - "g2pkk" - ]; + pythonImportsCheck = [ "g2pkk" ]; doCheck = false; @@ -33,4 +32,3 @@ buildPythonPackage rec { maintainers = teams.tts.members; }; } - diff --git a/pkgs/development/python-modules/galois/default.nix b/pkgs/development/python-modules/galois/default.nix index 8c927b96019f..aee28fb25159 100644 --- a/pkgs/development/python-modules/galois/default.nix +++ b/pkgs/development/python-modules/galois/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, setuptools-scm -, pythonOlder -, pythonRelaxDepsHook -, fetchFromGitHub -, pytestCheckHook -, pytest-xdist -, numpy -, numba -, typing-extensions +{ + lib, + buildPythonPackage, + setuptools-scm, + pythonOlder, + pythonRelaxDepsHook, + fetchFromGitHub, + pytestCheckHook, + pytest-xdist, + numpy, + numba, + typing-extensions, }: buildPythonPackage rec { @@ -41,7 +42,10 @@ buildPythonPackage rec { pytest-xdist ]; - pythonRelaxDeps = [ "numpy" "numba" ]; + pythonRelaxDeps = [ + "numpy" + "numba" + ]; pythonImportsCheck = [ "galois" ]; diff --git a/pkgs/development/python-modules/gamble/default.nix b/pkgs/development/python-modules/gamble/default.nix index 171eb03a7529..088e253def72 100644 --- a/pkgs/development/python-modules/gamble/default.nix +++ b/pkgs/development/python-modules/gamble/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-eHosY/JfJr317S7WI8phy7DNHf3cZzs6c5MMfw7yzAE="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gamble" - ]; + pythonImportsCheck = [ "gamble" ]; meta = with lib; { description = "Collection of gambling classes/tools"; diff --git a/pkgs/development/python-modules/gaphas/default.nix b/pkgs/development/python-modules/gaphas/default.nix index 479d51683023..e038dd92ab1e 100644 --- a/pkgs/development/python-modules/gaphas/default.nix +++ b/pkgs/development/python-modules/gaphas/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core -, gobject-introspection -, gtk3 -, pycairo -, pygobject3 -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + poetry-core, + gobject-introspection, + gtk3, + pycairo, + pygobject3, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { gobject-introspection ]; - buildInputs = [ - gtk3 - ]; + buildInputs = [ gtk3 ]; propagatedBuildInputs = [ pycairo @@ -37,9 +36,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "gaphas" - ]; + pythonImportsCheck = [ "gaphas" ]; meta = with lib; { description = "GTK+ based diagramming widget"; diff --git a/pkgs/development/python-modules/gardena-bluetooth/default.nix b/pkgs/development/python-modules/gardena-bluetooth/default.nix index fb71990c99df..5217bf09b2c8 100644 --- a/pkgs/development/python-modules/gardena-bluetooth/default.nix +++ b/pkgs/development/python-modules/gardena-bluetooth/default.nix @@ -1,14 +1,15 @@ -{ lib -, asyncclick -, bleak -, bleak-retry-connector -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, tzlocal +{ + lib, + asyncclick, + bleak, + bleak-retry-connector, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + tzlocal, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-WnurxoSzzNTNxz6S1HSKb/lTuOyox6fG2I0Hlj95Ub0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bleak @@ -36,9 +35,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - cli = [ - asyncclick - ]; + cli = [ asyncclick ]; }; nativeCheckInputs = [ @@ -46,9 +43,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "gardena_bluetooth" - ]; + pythonImportsCheck = [ "gardena_bluetooth" ]; meta = with lib; { description = "Module for interacting with Gardena Bluetooth"; diff --git a/pkgs/development/python-modules/garminconnect-aio/default.nix b/pkgs/development/python-modules/garminconnect-aio/default.nix index abdd1f9f2f26..362ffd393e4e 100644 --- a/pkgs/development/python-modules/garminconnect-aio/default.nix +++ b/pkgs/development/python-modules/garminconnect-aio/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, brotlipy -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, yarl +{ + lib, + aiohttp, + brotlipy, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "garminconnect_aio" - ]; + pythonImportsCheck = [ "garminconnect_aio" ]; meta = with lib; { description = "Python module to interact with Garmin Connect"; diff --git a/pkgs/development/python-modules/gassist-text/default.nix b/pkgs/development/python-modules/gassist-text/default.nix index a8e7b14de892..bbd02fd31a54 100644 --- a/pkgs/development/python-modules/gassist-text/default.nix +++ b/pkgs/development/python-modules/gassist-text/default.nix @@ -1,14 +1,15 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, google-auth -, grpcio -, protobuf -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + google-auth, + grpcio, + protobuf, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-XFHyI48TuPBJjHA4dLSpYv62Y5zK0knrIqNKBoWnEeU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 @@ -37,13 +36,9 @@ buildPythonPackage rec { requests ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gassist_text" - ]; + pythonImportsCheck = [ "gassist_text" ]; meta = with lib; { description = "Module for interacting with Google Assistant API via text"; diff --git a/pkgs/development/python-modules/gast/default.nix b/pkgs/development/python-modules/gast/default.nix index 32e4df0ae197..e275cc3170c2 100644 --- a/pkgs/development/python-modules/gast/default.nix +++ b/pkgs/development/python-modules/gast/default.nix @@ -1,9 +1,10 @@ -{ lib -, astunparse -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + astunparse, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,14 +26,15 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "gast" - ]; + pythonImportsCheck = [ "gast" ]; meta = with lib; { description = "Compatibility layer between the AST of various Python versions"; homepage = "https://github.com/serge-sans-paille/gast/"; license = licenses.bsd3; - maintainers = with maintainers; [ jyp cpcloud ]; + maintainers = with maintainers; [ + jyp + cpcloud + ]; }; } diff --git a/pkgs/development/python-modules/gatt/default.nix b/pkgs/development/python-modules/gatt/default.nix index 9543aa6a5e04..6437deacd490 100644 --- a/pkgs/development/python-modules/gatt/default.nix +++ b/pkgs/development/python-modules/gatt/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, dbus-python -, pygobject3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dbus-python, + pygobject3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gattlib/default.nix b/pkgs/development/python-modules/gattlib/default.nix index c7450d6b6b5b..370b773c8934 100644 --- a/pkgs/development/python-modules/gattlib/default.nix +++ b/pkgs/development/python-modules/gattlib/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, -# build -, pkg-config -, glibc -, python + # build + pkg-config, + glibc, + python, -# runtime -, bluez -, boost -, glib + # runtime + bluez, + boost, + glib, }: @@ -23,7 +24,6 @@ buildPythonPackage { inherit pname version; format = "setuptools"; - src = fetchFromGitHub { owner = "oscaracena"; repo = "pygattlib"; @@ -34,9 +34,10 @@ buildPythonPackage { patches = [ (substituteAll { src = ./setup.patch; - boost_version = let - pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; - in + boost_version = + let + pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; + in "boost_python${pythonVersion}"; }) ]; @@ -55,9 +56,7 @@ buildPythonPackage { # has no tests doCheck = false; - pythonImportsCheck = [ - "gattlib" - ]; + pythonImportsCheck = [ "gattlib" ]; meta = with lib; { description = "Python library to use the GATT Protocol for Bluetooth LE devices"; diff --git a/pkgs/development/python-modules/gawd/default.nix b/pkgs/development/python-modules/gawd/default.nix index 3fee09a5d5b5..b3afe56d9daf 100644 --- a/pkgs/development/python-modules/gawd/default.nix +++ b/pkgs/development/python-modules/gawd/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, ruamel-yaml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + ruamel-yaml, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - ruamel-yaml - ]; + propagatedBuildInputs = [ ruamel-yaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gawd" ]; diff --git a/pkgs/development/python-modules/gb-io/default.nix b/pkgs/development/python-modules/gb-io/default.nix index ab12d42d77c4..6ad006200404 100644 --- a/pkgs/development/python-modules/gb-io/default.nix +++ b/pkgs/development/python-modules/gb-io/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, fetchFromGitHub -, buildPythonPackage -, rustPlatform -, cargo -, rustc -, setuptools-rust -, unittestCheckHook +{ + stdenv, + lib, + fetchFromGitHub, + buildPythonPackage, + rustPlatform, + cargo, + rustc, + setuptools-rust, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gbinder-python/default.nix b/pkgs/development/python-modules/gbinder-python/default.nix index bb64e0c5e6a8..d5ba3d6ad82c 100644 --- a/pkgs/development/python-modules/gbinder-python/default.nix +++ b/pkgs/development/python-modules/gbinder-python/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, cython_0 -, pkg-config -, libgbinder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + cython_0, + pkg-config, + libgbinder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1X9gAux9w/mCEVmE3Yqvvq3kU7hu4iAFaZWNZZZxt3E="; }; - buildInputs = [ - libgbinder - ]; + buildInputs = [ libgbinder ]; nativeBuildInputs = [ cython_0 diff --git a/pkgs/development/python-modules/gbulb/default.nix b/pkgs/development/python-modules/gbulb/default.nix index d36d1182f55f..3dba75d253f5 100644 --- a/pkgs/development/python-modules/gbulb/default.nix +++ b/pkgs/development/python-modules/gbulb/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pygobject3 -, pytestCheckHook -, gtk3 -, gobject-introspection +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pygobject3, + pytestCheckHook, + gtk3, + gobject-introspection, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gcal-sync/default.nix b/pkgs/development/python-modules/gcal-sync/default.nix index 59914e233582..95b6db3b9a29 100644 --- a/pkgs/development/python-modules/gcal-sync/default.nix +++ b/pkgs/development/python-modules/gcal-sync/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, freezegun -, ical -, pydantic -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + freezegun, + ical, + pydantic, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-mZn/3oROIUSv6cCxXs3rBJtlmKsqNflTW2pcER8GisE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "gcal_sync" - ]; + pythonImportsCheck = [ "gcal_sync" ]; meta = with lib; { description = "Library for syncing Google Calendar to local storage"; diff --git a/pkgs/development/python-modules/gcodepy/default.nix b/pkgs/development/python-modules/gcodepy/default.nix index 51f32d202241..6e62d9bb3bf6 100644 --- a/pkgs/development/python-modules/gcodepy/default.nix +++ b/pkgs/development/python-modules/gcodepy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-+amBkwwISPyes8ABdqgCw50Zg5ioDa46WZgQsZZgl+8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "gcodepy" - ]; + pythonImportsCheck = [ "gcodepy" ]; meta = with lib; { description = "G-code generator for 3D printers that use Marlin Firmware"; diff --git a/pkgs/development/python-modules/gcovr/default.nix b/pkgs/development/python-modules/gcovr/default.nix index 98051cc1a40c..5bf66cdb2419 100644 --- a/pkgs/development/python-modules/gcovr/default.nix +++ b/pkgs/development/python-modules/gcovr/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, colorlog -, jinja2 -, lxml -, pygments -, pythonOlder -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + colorlog, + jinja2, + lxml, + pygments, + pythonOlder, + tomli, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { jinja2 lxml pygments - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; # There are no unit tests in the pypi tarball. Most of the unit tests on the # github repository currently only work with gcc5, so we just disable them. diff --git a/pkgs/development/python-modules/gcs-oauth2-boto-plugin/default.nix b/pkgs/development/python-modules/gcs-oauth2-boto-plugin/default.nix index 85e18fb12499..9d93efe8897d 100644 --- a/pkgs/development/python-modules/gcs-oauth2-boto-plugin/default.nix +++ b/pkgs/development/python-modules/gcs-oauth2-boto-plugin/default.nix @@ -1,19 +1,20 @@ -{ lib -, boto -, buildPythonPackage -, fasteners -, fetchFromGitHub -, freezegun -, google-reauth -, httplib2 -, oauth2client -, pyopenssl -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, retry-decorator -, rsa -, six +{ + lib, + boto, + buildPythonPackage, + fasteners, + fetchFromGitHub, + freezegun, + google-reauth, + httplib2, + oauth2client, + pyopenssl, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + retry-decorator, + rsa, + six, }: buildPythonPackage rec { @@ -48,13 +49,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gcs_oauth2_boto_plugin" - ]; + pythonImportsCheck = [ "gcs_oauth2_boto_plugin" ]; meta = with lib; { description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage"; diff --git a/pkgs/development/python-modules/gcsa/default.nix b/pkgs/development/python-modules/gcsa/default.nix index c4ffcabeb94d..c487881f92b4 100644 --- a/pkgs/development/python-modules/gcsa/default.nix +++ b/pkgs/development/python-modules/gcsa/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pyfakefs -, tzlocal -, google-api-python-client -, google-auth-httplib2 -, google-auth-oauthlib -, python-dateutil -, beautiful-date +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + pyfakefs, + tzlocal, + google-api-python-client, + google-auth-httplib2, + google-auth-oauthlib, + python-dateutil, + beautiful-date, }: buildPythonPackage rec { @@ -34,7 +35,10 @@ buildPythonPackage rec { beautiful-date ]; - nativeCheckInputs = [ pytestCheckHook pyfakefs ]; + nativeCheckInputs = [ + pytestCheckHook + pyfakefs + ]; pythonImportsCheck = [ "gcsa" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/gcsfs/default.nix b/pkgs/development/python-modules/gcsfs/default.nix index 71d52947b0c4..2cc70ba25e1b 100644 --- a/pkgs/development/python-modules/gcsfs/default.nix +++ b/pkgs/development/python-modules/gcsfs/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, google-auth -, google-auth-oauthlib -, google-cloud-storage -, requests -, decorator -, fsspec -, ujson -, aiohttp -, crcmod -, pytest-timeout -, pytest-vcr -, vcrpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + google-auth, + google-auth-oauthlib, + google-cloud-storage, + requests, + decorator, + fsspec, + ujson, + aiohttp, + crcmod, + pytest-timeout, + pytest-vcr, + vcrpy, }: buildPythonPackage rec { @@ -50,7 +51,7 @@ buildPythonPackage rec { vcrpy ]; - disabledTests =[ + disabledTests = [ # Cannot connect to host storage.googleapis.com:443 "test_credentials_from_raw_token" ]; @@ -64,13 +65,9 @@ buildPythonPackage rec { "gcsfs/tests/test_inventory_report_listing.py" ]; - pytestFlagsArray = [ - "-x" - ]; + pytestFlagsArray = [ "-x" ]; - pythonImportsCheck = [ - "gcsfs" - ]; + pythonImportsCheck = [ "gcsfs" ]; meta = with lib; { description = "Convenient Filesystem interface over GCS"; diff --git a/pkgs/development/python-modules/gdata/default.nix b/pkgs/development/python-modules/gdata/default.nix index bb334d63435b..e572a20f30f6 100644 --- a/pkgs/development/python-modules/gdata/default.nix +++ b/pkgs/development/python-modules/gdata/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchurl +{ + lib, + buildPythonPackage, + fetchurl, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { description = "Python client library for Google data APIs"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/gdb-pt-dump/default.nix b/pkgs/development/python-modules/gdb-pt-dump/default.nix index 5687828e9e50..591583510cd8 100644 --- a/pkgs/development/python-modules/gdb-pt-dump/default.nix +++ b/pkgs/development/python-modules/gdb-pt-dump/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gdown/default.nix b/pkgs/development/python-modules/gdown/default.nix index 881840e2a0e8..74b8f050bda3 100644 --- a/pkgs/development/python-modules/gdown/default.nix +++ b/pkgs/development/python-modules/gdown/default.nix @@ -1,16 +1,17 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, hatchling -, hatch-vcs -, hatch-fancy-pypi-readme -, filelock -, requests -, tqdm -, setuptools -, six -, pythonOlder +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + hatchling, + hatch-vcs, + hatch-fancy-pypi-readme, + filelock, + requests, + tqdm, + setuptools, + six, + pythonOlder, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { $out/bin/gdown --help > /dev/null ''; - pythonImportsCheck = [ - "gdown" - ]; + pythonImportsCheck = [ "gdown" ]; meta = with lib; { description = "A CLI tool for downloading large files from Google Drive"; diff --git a/pkgs/development/python-modules/ge25519/default.nix b/pkgs/development/python-modules/ge25519/default.nix index 60bc2b5dbba1..d3e92913b128 100644 --- a/pkgs/development/python-modules/ge25519/default.nix +++ b/pkgs/development/python-modules/ge25519/default.nix @@ -1,14 +1,15 @@ -{ lib -, bitlist -, buildPythonPackage -, fe25519 -, fetchPypi -, fountains -, parts -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + bitlist, + buildPythonPackage, + fe25519, + fetchPypi, + fountains, + parts, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -35,18 +36,14 @@ buildPythonPackage rec { fountains ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace "--doctest-modules --ignore=docs --cov=ge25519 --cov-report term-missing" "" ''; - pythonImportsCheck = [ - "ge25519" - ]; + pythonImportsCheck = [ "ge25519" ]; meta = with lib; { description = "Python implementation of Ed25519 group elements and operations"; diff --git a/pkgs/development/python-modules/geeknote/default.nix b/pkgs/development/python-modules/geeknote/default.nix index a0ee274beabb..1aeeabd92f29 100644 --- a/pkgs/development/python-modules/geeknote/default.nix +++ b/pkgs/development/python-modules/geeknote/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, thrift -, beautifulsoup4 -, markdown2 -, sqlalchemy -, html2text -, evernote +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + thrift, + beautifulsoup4, + markdown2, + sqlalchemy, + html2text, + evernote, }: buildPythonPackage { version = "2015-05-11"; format = "setuptools"; pname = "geeknote"; - disabled = ! isPy27; + disabled = !isPy27; src = fetchFromGitHub { owner = "VitaliyRodnenko"; @@ -23,11 +24,20 @@ buildPythonPackage { sha256 = "0l16v4xnyqnsf84b1pma0jmdyxvmfwcv3sm8slrv3zv7zpmcm3lf"; }; - /* build with tests fails with "Can not create application dirictory : - /homeless-shelter/.geeknotebuilder". */ + /* + build with tests fails with "Can not create application dirictory : + /homeless-shelter/.geeknotebuilder". + */ doCheck = false; - propagatedBuildInputs = [ thrift beautifulsoup4 markdown2 sqlalchemy html2text evernote ]; + propagatedBuildInputs = [ + thrift + beautifulsoup4 + markdown2 + sqlalchemy + html2text + evernote + ]; meta = with lib; { description = "Work with Evernote from command line"; @@ -35,5 +45,4 @@ buildPythonPackage { license = licenses.gpl1Only; maintainers = with maintainers; [ hbunke ]; }; - } diff --git a/pkgs/development/python-modules/gekitchen/default.nix b/pkgs/development/python-modules/gekitchen/default.nix index a06dada36dc7..615be02d1785 100644 --- a/pkgs/development/python-modules/gekitchen/default.nix +++ b/pkgs/development/python-modules/gekitchen/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, bidict -, buildPythonPackage -, fetchFromGitHub -, humanize -, lxml -, pytestCheckHook -, pythonOlder -, requests -, slixmpp -, websockets +{ + lib, + aiohttp, + bidict, + buildPythonPackage, + fetchFromGitHub, + humanize, + lxml, + pytestCheckHook, + pythonOlder, + requests, + slixmpp, + websockets, }: buildPythonPackage rec { @@ -36,13 +37,9 @@ buildPythonPackage rec { websockets ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gekitchen" - ]; + pythonImportsCheck = [ "gekitchen" ]; meta = with lib; { description = "Python SDK for GE smart appliances"; diff --git a/pkgs/development/python-modules/gemfileparser2/default.nix b/pkgs/development/python-modules/gemfileparser2/default.nix index 4a24fb07d7b1..1f92395c8a29 100644 --- a/pkgs/development/python-modules/gemfileparser2/default.nix +++ b/pkgs/development/python-modules/gemfileparser2/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -26,23 +27,20 @@ buildPythonPackage rec { --replace ">=3.6.*" ">=3.6" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gemfileparser2" - ]; + pythonImportsCheck = [ "gemfileparser2" ]; meta = with lib; { description = "Library to parse Rubygem gemspec and Gemfile files"; homepage = "https://github.com/nexB/gemfileparser2"; changelog = "https://github.com/nexB/gemfileparser2/blob/v${version}/CHANGELOG.rst"; - license = with licenses; [ mit /* or */ gpl3Plus ]; + license = with licenses; [ + mit # or + gpl3Plus + ]; maintainers = with maintainers; [ harvidsen ]; }; } diff --git a/pkgs/development/python-modules/genanki/default.nix b/pkgs/development/python-modules/genanki/default.nix index 64159dd7b755..0d3371813e5d 100644 --- a/pkgs/development/python-modules/genanki/default.nix +++ b/pkgs/development/python-modules/genanki/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cached-property -, chevron -, fetchPypi -, frozendict -, pystache -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + cached-property, + chevron, + fetchPypi, + frozendict, + pystache, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { # relies on upstream anki doCheck = false; - pythonImportsCheck = [ - "genanki" - ]; + pythonImportsCheck = [ "genanki" ]; meta = with lib; { description = "Generate Anki decks programmatically"; diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 77952b5046b4..b9bae5af2be6 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, exceptiongroup -, poetry-core +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + exceptiongroup, + poetry-core, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-NfUvmkUIAdm+UZqmBWh0MZTViLJSkeRonPNSnVd+RbA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - exceptiongroup - ]; + propagatedBuildInputs = [ exceptiongroup ]; pythonImportsCheck = [ "generic" ]; diff --git a/pkgs/development/python-modules/geniushub-client/default.nix b/pkgs/development/python-modules/geniushub-client/default.nix index 54b36c7de608..50a1013bc108 100644 --- a/pkgs/development/python-modules/geniushub-client/default.nix +++ b/pkgs/development/python-modules/geniushub-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { --replace "version=VERSION," 'version="${version}",' ''; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "geniushubclient" - ]; + pythonImportsCheck = [ "geniushubclient" ]; meta = with lib; { description = "Module to interact with Genius Hub systems"; diff --git a/pkgs/development/python-modules/genome-collector/default.nix b/pkgs/development/python-modules/genome-collector/default.nix index 70589912520a..84f34bedd80e 100644 --- a/pkgs/development/python-modules/genome-collector/default.nix +++ b/pkgs/development/python-modules/genome-collector/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, appdirs -, biopython -, fetchPypi -, proglog +{ + lib, + buildPythonPackage, + appdirs, + biopython, + fetchPypi, + proglog, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/genpy/default.nix b/pkgs/development/python-modules/genpy/default.nix index d89efc6b4b40..90686b3ec470 100644 --- a/pkgs/development/python-modules/genpy/default.nix +++ b/pkgs/development/python-modules/genpy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytools -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + pytools, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/genshi/default.nix b/pkgs/development/python-modules/genshi/default.nix index 67c66eea9070..218904113c07 100644 --- a/pkgs/development/python-modules/genshi/default.nix +++ b/pkgs/development/python-modules/genshi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + six, }: buildPythonPackage rec { @@ -20,7 +21,8 @@ buildPythonPackage rec { doCheck = false; propagatedBuildInputs = [ - setuptools six + setuptools + six ]; meta = with lib; { diff --git a/pkgs/development/python-modules/gensim/default.nix b/pkgs/development/python-modules/gensim/default.nix index 171c0faabf92..c005662068ca 100644 --- a/pkgs/development/python-modules/gensim/default.nix +++ b/pkgs/development/python-modules/gensim/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, fetchpatch -, mock -, numpy -, scipy -, smart-open -, testfixtures -, pyemd -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + fetchpatch, + mock, + numpy, + scipy, + smart-open, + testfixtures, + pyemd, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ smart-open @@ -51,16 +50,12 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "gensim" - ]; + pythonImportsCheck = [ "gensim" ]; # Test setup takes several minutes doCheck = false; - pytestFlagsArray = [ - "gensim/test" - ]; + pytestFlagsArray = [ "gensim/test" ]; meta = with lib; { description = "Topic-modelling library"; diff --git a/pkgs/development/python-modules/gentools/default.nix b/pkgs/development/python-modules/gentools/default.nix index 7dd95925f4ba..8ecaecbee472 100644 --- a/pkgs/development/python-modules/gentools/default.nix +++ b/pkgs/development/python-modules/gentools/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-+6KTFxOpwvGOCqy6JU87gOZmDa6MvjR10qES5wIfrjI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gentools" - ]; + pythonImportsCheck = [ "gentools" ]; meta = with lib; { description = "Tools for generators, generator functions, and generator-based coroutines"; diff --git a/pkgs/development/python-modules/genzshcomp/default.nix b/pkgs/development/python-modules/genzshcomp/default.nix index 7ab4c747f21d..58e267927773 100644 --- a/pkgs/development/python-modules/genzshcomp/default.nix +++ b/pkgs/development/python-modules/genzshcomp/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -22,5 +23,4 @@ buildPythonPackage rec { homepage = "https://bitbucket.org/hhatto/genzshcomp/"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/geoalchemy2/default.nix b/pkgs/development/python-modules/geoalchemy2/default.nix index df89acd2b6b7..35969322e75e 100644 --- a/pkgs/development/python-modules/geoalchemy2/default.nix +++ b/pkgs/development/python-modules/geoalchemy2/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, setuptools -, setuptools-scm -, shapely -, sqlalchemy -, alembic -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + setuptools, + setuptools-scm, + shapely, + sqlalchemy, + alembic, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -56,9 +57,7 @@ buildPythonPackage rec { "tests/test_pickle.py" ]; - pythonImportsCheck = [ - "geoalchemy2" - ]; + pythonImportsCheck = [ "geoalchemy2" ]; optional-dependencies = { shapely = [ shapely ]; diff --git a/pkgs/development/python-modules/geocachingapi/default.nix b/pkgs/development/python-modules/geocachingapi/default.nix index d7ad9cb5fd8a..55e817ce2748 100644 --- a/pkgs/development/python-modules/geocachingapi/default.nix +++ b/pkgs/development/python-modules/geocachingapi/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, backoff -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools-scm -, yarl +{ + lib, + aiohttp, + backoff, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools-scm, + yarl, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-C4nj4KFEwsY5V5f0Q1x+9sD8Ihz5m7b3jg2pOyB/pDg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp @@ -35,9 +34,7 @@ buildPythonPackage rec { # Tests require a token and network access doCheck = false; - pythonImportsCheck = [ - "geocachingapi" - ]; + pythonImportsCheck = [ "geocachingapi" ]; meta = with lib; { description = "Python API to control the Geocaching API"; diff --git a/pkgs/development/python-modules/geocoder/default.nix b/pkgs/development/python-modules/geocoder/default.nix index d3152b6a63c5..8703ba774d46 100644 --- a/pkgs/development/python-modules/geocoder/default.nix +++ b/pkgs/development/python-modules/geocoder/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, future -, pythonOlder -, ratelim -, requests -, setuptools -, six +{ + lib, + buildPythonPackage, + click, + fetchPypi, + future, + pythonOlder, + ratelim, + requests, + setuptools, + six, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-yZJTdMlhV30K7kA7Ceb46hlx2RPwEfAMpwx2vq96d+c="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ click @@ -34,9 +33,7 @@ buildPythonPackage rec { six ]; - pythonImportsCheck = [ - "geocoder" - ]; + pythonImportsCheck = [ "geocoder" ]; meta = with lib; { description = "Module for geocoding"; diff --git a/pkgs/development/python-modules/geographiclib/default.nix b/pkgs/development/python-modules/geographiclib/default.nix index d9f7211a820d..14433fe94f3f 100644 --- a/pkgs/development/python-modules/geographiclib/default.nix +++ b/pkgs/development/python-modules/geographiclib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-9/Qchdw+HC09k17IZmDcOyyEjIPhf5qeUbqdUUahWFk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "geographiclib" ]; diff --git a/pkgs/development/python-modules/geoip/default.nix b/pkgs/development/python-modules/geoip/default.nix index 6f66b3d67e1f..d2af48f5049f 100644 --- a/pkgs/development/python-modules/geoip/default.nix +++ b/pkgs/development/python-modules/geoip/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, libgeoip +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + libgeoip, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { sha256 = "1rphxf3vrn8wywjgr397f49s0s22m83lpwcq45lm0h2p45mdm458"; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - libgeoip - ]; + propagatedBuildInputs = [ libgeoip ]; # Tests cannot be run because they require data that isn't included in the # release tarball. diff --git a/pkgs/development/python-modules/geoip2/default.nix b/pkgs/development/python-modules/geoip2/default.nix index 4a0bec9476e8..179ed9888c74 100644 --- a/pkgs/development/python-modules/geoip2/default.nix +++ b/pkgs/development/python-modules/geoip2/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, maxminddb -, mocket -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, requests -, requests-mock -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + maxminddb, + mocket, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + requests, + requests-mock, + urllib3, }: buildPythonPackage rec { @@ -44,16 +45,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "geoip2" - ]; + pythonImportsCheck = [ "geoip2" ]; - disabledTests = lib.optionals (pythonAtLeast "3.11") [ - # https://github.com/maxmind/GeoIP2-python/pull/136 - "TestAsyncClient" - ] ++ lib.optionals (pythonAtLeast "3.10") [ - "test_request" - ]; + disabledTests = + lib.optionals (pythonAtLeast "3.11") [ + # https://github.com/maxmind/GeoIP2-python/pull/136 + "TestAsyncClient" + ] + ++ lib.optionals (pythonAtLeast "3.10") [ "test_request" ]; meta = with lib; { description = "GeoIP2 webservice client and database reader"; diff --git a/pkgs/development/python-modules/geojson-client/default.nix b/pkgs/development/python-modules/geojson-client/default.nix index f315d99d8dd8..694a27dcfc11 100644 --- a/pkgs/development/python-modules/geojson-client/default.nix +++ b/pkgs/development/python-modules/geojson-client/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, geojson -, haversine -, pytz -, requests -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + geojson, + haversine, + pytz, + requests, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "geojson_client" - ]; + pythonImportsCheck = [ "geojson_client" ]; meta = with lib; { description = "Python module for convenient access to GeoJSON feeds"; diff --git a/pkgs/development/python-modules/geojson/default.nix b/pkgs/development/python-modules/geojson/default.nix index 28e05315861d..a8c1ea999077 100644 --- a/pkgs/development/python-modules/geojson/default.nix +++ b/pkgs/development/python-modules/geojson/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, unittestCheckHook - }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + unittestCheckHook, +}: buildPythonPackage rec { pname = "geojson"; @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-OL+7ntgzpA63ALQ8whhKRePsKxcp81PLuU1bHJvxN9U="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "geojson" - ]; + pythonImportsCheck = [ "geojson" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = { homepage = "https://github.com/jazzband/geojson"; diff --git a/pkgs/development/python-modules/geomet/default.nix b/pkgs/development/python-modules/geomet/default.nix index 622027f8aff7..58eb57fe6856 100644 --- a/pkgs/development/python-modules/geomet/default.nix +++ b/pkgs/development/python-modules/geomet/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, setuptools -, six -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + setuptools, + six, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-YfI29925nffzRBMJb6Gm3muvlpwP3zSw2YJ2vWcf+Bo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ click six ]; - pythonImportsCheck = [ - "geomet" - ]; + pythonImportsCheck = [ "geomet" ]; meta = with lib; { description = "Convert GeoJSON to WKT/WKB (Well-Known Text/Binary) and vice versa"; @@ -40,6 +37,9 @@ buildPythonPackage rec { homepage = "https://github.com/geomet/geomet"; changelog = "https://github.com/geomet/geomet/releases/tag/${version}"; license = licenses.asl20; - maintainers = with maintainers; [ turion ris ]; + maintainers = with maintainers; [ + turion + ris + ]; }; } diff --git a/pkgs/development/python-modules/geometric/default.nix b/pkgs/development/python-modules/geometric/default.nix index becd876ee860..6abdda570d8b 100644 --- a/pkgs/development/python-modules/geometric/default.nix +++ b/pkgs/development/python-modules/geometric/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, fetchpatch -, networkx -, numpy -, scipy -, six -, pytestCheckHook +{ + buildPythonPackage, + lib, + fetchFromGitHub, + fetchpatch, + networkx, + numpy, + scipy, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,11 +22,13 @@ buildPythonPackage rec { hash = "sha256-DmrKLVQrPQDzTMxqEImnvRr3Wb2R3+hxtDVCN9XUcFM="; }; - patches = [ (fetchpatch { - name = "ase-is-optional"; - url = "https://github.com/leeping/geomeTRIC/commit/aff6e4411980ac9cbe112a050c3a34ba7e305a43.patch"; - hash = "sha256-JGGPX+JwkQ8Imgmyx+ReRTV+k6mxHYgm+Nd8WUjbFEg="; - }) ]; + patches = [ + (fetchpatch { + name = "ase-is-optional"; + url = "https://github.com/leeping/geomeTRIC/commit/aff6e4411980ac9cbe112a050c3a34ba7e305a43.patch"; + hash = "sha256-JGGPX+JwkQ8Imgmyx+ReRTV+k6mxHYgm+Nd8WUjbFEg="; + }) + ]; propagatedBuildInputs = [ networkx @@ -48,4 +51,3 @@ buildPythonPackage rec { maintainers = [ maintainers.markuskowa ]; }; } - diff --git a/pkgs/development/python-modules/geopandas/default.nix b/pkgs/development/python-modules/geopandas/default.nix index f786d3b25293..021292f8c4ac 100644 --- a/pkgs/development/python-modules/geopandas/default.nix +++ b/pkgs/development/python-modules/geopandas/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, -, fiona -, packaging -, pandas -, pyproj -, rtree -, shapely + fiona, + packaging, + pandas, + pyproj, + rtree, + shapely, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-FBhPcae8bnNnsfr14I1p22VhoOf9USF9DAcrAqx+zso="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ fiona @@ -56,13 +55,9 @@ buildPythonPackage rec { "test_read_file_url" ]; - pytestFlagsArray = [ - "geopandas" - ]; + pytestFlagsArray = [ "geopandas" ]; - pythonImportsCheck = [ - "geopandas" - ]; + pythonImportsCheck = [ "geopandas" ]; meta = with lib; { description = "Python geospatial data analysis framework"; diff --git a/pkgs/development/python-modules/geopy/default.nix b/pkgs/development/python-modules/geopy/default.nix index 4616dd3866c8..2634edb0d856 100644 --- a/pkgs/development/python-modules/geopy/default.nix +++ b/pkgs/development/python-modules/geopy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, docutils -, fetchFromGitHub -, geographiclib -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, pytz +{ + lib, + buildPythonPackage, + docutils, + fetchFromGitHub, + geographiclib, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-mlOXDEtYry1IUAZWrP2FuY/CGliUnCPYLULnLNN0n4Y="; }; - propagatedBuildInputs = [ - geographiclib - ]; + propagatedBuildInputs = [ geographiclib ]; nativeCheckInputs = [ docutils @@ -37,9 +36,7 @@ buildPythonPackage rec { "test_user_agent_default" ]; - disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ - "test/test_init.py" - ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ "test/test_init.py" ]; pytestFlagsArray = [ "--skip-tests-requiring-internet" ]; diff --git a/pkgs/development/python-modules/georss-client/default.nix b/pkgs/development/python-modules/georss-client/default.nix index 51d895456da3..dfd4531c283d 100644 --- a/pkgs/development/python-modules/georss-client/default.nix +++ b/pkgs/development/python-modules/georss-client/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, dateparser -, fetchFromGitHub -, haversine -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, xmltodict +{ + lib, + buildPythonPackage, + dateparser, + fetchFromGitHub, + haversine, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + xmltodict, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-DvQifO/jirpacWZccK4WPxnm/iYs1qT5nAYQUDoleO4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ haversine @@ -35,13 +34,9 @@ buildPythonPackage rec { dateparser ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_client" - ]; + pythonImportsCheck = [ "georss_client" ]; meta = with lib; { description = "Python library for accessing GeoRSS feeds"; diff --git a/pkgs/development/python-modules/georss-generic-client/default.nix b/pkgs/development/python-modules/georss-generic-client/default.nix index b3679a93a2fd..d0ac06cf8122 100644 --- a/pkgs/development/python-modules/georss-generic-client/default.nix +++ b/pkgs/development/python-modules/georss-generic-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-Y19zMHL6DjAqiDi47Lmst8m9d9kEtTgyRiECKo6CqZY="; }; - propagatedBuildInputs = [ - georss-client - ]; + propagatedBuildInputs = [ georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "georss_generic_client" ]; diff --git a/pkgs/development/python-modules/georss-ign-sismologia-client/default.nix b/pkgs/development/python-modules/georss-ign-sismologia-client/default.nix index 5c3b095a2c3f..133a68ba06e1 100644 --- a/pkgs/development/python-modules/georss-ign-sismologia-client/default.nix +++ b/pkgs/development/python-modules/georss-ign-sismologia-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dateparser -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + dateparser, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-geIxF4GumxRoetJ6mIZCzI3pAvWjJJoY66aQYd2Mzik="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dateparser georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_ign_sismologia_client" - ]; + pythonImportsCheck = [ "georss_ign_sismologia_client" ]; meta = with lib; { description = "Python library for accessing the IGN Sismologia GeoRSS feed"; diff --git a/pkgs/development/python-modules/georss-ingv-centro-nazionale-terremoti-client/default.nix b/pkgs/development/python-modules/georss-ingv-centro-nazionale-terremoti-client/default.nix index e74f3670f223..83f1e307cf26 100644 --- a/pkgs/development/python-modules/georss-ingv-centro-nazionale-terremoti-client/default.nix +++ b/pkgs/development/python-modules/georss-ingv-centro-nazionale-terremoti-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-J72yd1D4mKCOsBRLMUXKnxmjr6g0IQApTTrWjklczN8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - georss-client - ]; + propagatedBuildInputs = [ georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_ingv_centro_nazionale_terremoti_client" - ]; + pythonImportsCheck = [ "georss_ingv_centro_nazionale_terremoti_client" ]; meta = with lib; { description = "Python library for accessing the INGV Centro Nazionale Terremoti GeoRSS feed"; diff --git a/pkgs/development/python-modules/georss-nrcan-earthquakes-client/default.nix b/pkgs/development/python-modules/georss-nrcan-earthquakes-client/default.nix index ef8ea220e9e1..299d78bd3c82 100644 --- a/pkgs/development/python-modules/georss-nrcan-earthquakes-client/default.nix +++ b/pkgs/development/python-modules/georss-nrcan-earthquakes-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-FFm37+dCkdoZXgvAjYhcHOYFf0oQ37bxJb7vzbWDTro="; }; - propagatedBuildInputs = [ - georss-client - ]; + propagatedBuildInputs = [ georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_nrcan_earthquakes_client" - ]; + pythonImportsCheck = [ "georss_nrcan_earthquakes_client" ]; meta = with lib; { description = "Python library for accessing Natural Resources Canada Earthquakes feed"; diff --git a/pkgs/development/python-modules/georss-qld-bushfire-alert-client/default.nix b/pkgs/development/python-modules/georss-qld-bushfire-alert-client/default.nix index 6e346b402c72..9ec61acb00d5 100644 --- a/pkgs/development/python-modules/georss-qld-bushfire-alert-client/default.nix +++ b/pkgs/development/python-modules/georss-qld-bushfire-alert-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-ajCw1m7Qm1kZE/hOsBzFXPWAxl/pFD8pOOQo6qvachE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - georss-client - ]; + propagatedBuildInputs = [ georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_qld_bushfire_alert_client" - ]; + pythonImportsCheck = [ "georss_qld_bushfire_alert_client" ]; meta = with lib; { description = "Python library for accessing Queensland Bushfire Alert feed"; diff --git a/pkgs/development/python-modules/georss-tfs-incidents-client/default.nix b/pkgs/development/python-modules/georss-tfs-incidents-client/default.nix index adb89685d9bf..764fc3fc92f8 100644 --- a/pkgs/development/python-modules/georss-tfs-incidents-client/default.nix +++ b/pkgs/development/python-modules/georss-tfs-incidents-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-Cz0PRcGReAE0mg04ktCUaoLqPTjvyU1TiB/Pdz7o7zo="; }; - propagatedBuildInputs = [ - georss-client - ]; + propagatedBuildInputs = [ georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_tfs_incidents_client" - ]; + pythonImportsCheck = [ "georss_tfs_incidents_client" ]; meta = with lib; { description = "Python library for accessing Tasmania Fire Service Incidents feed"; diff --git a/pkgs/development/python-modules/georss-wa-dfes-client/default.nix b/pkgs/development/python-modules/georss-wa-dfes-client/default.nix index 170bae63567c..d686f5049aef 100644 --- a/pkgs/development/python-modules/georss-wa-dfes-client/default.nix +++ b/pkgs/development/python-modules/georss-wa-dfes-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, georss-client -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + georss-client, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,20 +18,14 @@ buildPythonPackage rec { owner = "exxamalte"; repo = "python-georss-wa-dfes-client"; rev = "v${version}"; - hash = "sha256-s7qGTlWFdOtw0eMK7idld7HPOxO8CjODCmUi0WmRLdI="; + hash = "sha256-s7qGTlWFdOtw0eMK7idld7HPOxO8CjODCmUi0WmRLdI="; }; - propagatedBuildInputs = [ - georss-client - ]; + propagatedBuildInputs = [ georss-client ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "georss_wa_dfes_client" - ]; + pythonImportsCheck = [ "georss_wa_dfes_client" ]; meta = with lib; { description = "Python library for accessing WA Department of Fire and Emergency Services (DFES) feed"; diff --git a/pkgs/development/python-modules/gerbonara/default.nix b/pkgs/development/python-modules/gerbonara/default.nix index 15ec60ccc385..480a7dc23928 100644 --- a/pkgs/development/python-modules/gerbonara/default.nix +++ b/pkgs/development/python-modules/gerbonara/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytest -, click -, numpy -, scipy -, rtree +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytest, + click, + numpy, + scipy, + rtree, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { format = "setuptools"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/get-video-properties/default.nix b/pkgs/development/python-modules/get-video-properties/default.nix index 98fe8e9b1d42..70b2c568f6b7 100644 --- a/pkgs/development/python-modules/get-video-properties/default.nix +++ b/pkgs/development/python-modules/get-video-properties/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ffmpeg-headless +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ffmpeg-headless, }: buildPythonPackage rec { @@ -35,5 +36,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ globin ]; }; - } diff --git a/pkgs/development/python-modules/getjump/default.nix b/pkgs/development/python-modules/getjump/default.nix index 4d3851c913c4..62f6e49ec63d 100644 --- a/pkgs/development/python-modules/getjump/default.nix +++ b/pkgs/development/python-modules/getjump/default.nix @@ -1,11 +1,12 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, pillow -, poetry-core -, requests -, rich +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + pillow, + poetry-core, + requests, + rich, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-WSLfhVCqP+N+2Rs2PUXOknnlNx3UtWdFYrK1lTW1fqQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ beautifulsoup4 @@ -29,9 +28,7 @@ buildPythonPackage rec { rich ]; - pythonImportsCheck = [ - "getjump" - ]; + pythonImportsCheck = [ "getjump" ]; # all the tests talk to the internet doCheck = false; diff --git a/pkgs/development/python-modules/getkey/default.nix b/pkgs/development/python-modules/getkey/default.nix index a5adb534e3e7..98863e84816a 100644 --- a/pkgs/development/python-modules/getkey/default.nix +++ b/pkgs/development/python-modules/getkey/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, flake8 +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + flake8, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/getmac/default.nix b/pkgs/development/python-modules/getmac/default.nix index a62f47c2ece5..141a6c44d27d 100644 --- a/pkgs/development/python-modules/getmac/default.nix +++ b/pkgs/development/python-modules/getmac/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, py -, pytest-benchmark -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + py, + pytest-benchmark, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { "test_initialize_method_cache_valid_types" ]; - pythonImportsCheck = [ - "getmac" - ]; + pythonImportsCheck = [ "getmac" ]; meta = with lib; { description = "Python package to get the MAC address of network interfaces and hosts on the local network"; diff --git a/pkgs/development/python-modules/gevent-socketio/default.nix b/pkgs/development/python-modules/gevent-socketio/default.nix index 338398714494..29f1714039f5 100644 --- a/pkgs/development/python-modules/gevent-socketio/default.nix +++ b/pkgs/development/python-modules/gevent-socketio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gevent -, gevent-websocket -, mock -, versiontools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + gevent, + gevent-websocket, + mock, + versiontools, + pythonOlder, }: buildPythonPackage rec { @@ -20,24 +21,16 @@ buildPythonPackage rec { hash = "sha256-UzlKuT+9hNnbuyvvhTSfalA7/FPYapvoZTJQ8aBBKv8="; }; - nativeBuildInputs = [ - versiontools - ]; + nativeBuildInputs = [ versiontools ]; - buildInputs = [ - gevent-websocket - ]; + buildInputs = [ gevent-websocket ]; - propagatedBuildInputs = [ - gevent - ]; + propagatedBuildInputs = [ gevent ]; # Tests are not ported to Python 3 doCheck = false; - pythonImportsCheck = [ - "socketio" - ]; + pythonImportsCheck = [ "socketio" ]; meta = with lib; { description = "SocketIO server based on the Gevent pywsgi server"; diff --git a/pkgs/development/python-modules/gevent-websocket/default.nix b/pkgs/development/python-modules/gevent-websocket/default.nix index 66709d8fafa5..9fad31860ef1 100644 --- a/pkgs/development/python-modules/gevent-websocket/default.nix +++ b/pkgs/development/python-modules/gevent-websocket/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gevent -, gunicorn -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + gevent, + gunicorn, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Module has no test doCheck = false; - pythonImportsCheck = [ - "geventwebsocket" - ]; + pythonImportsCheck = [ "geventwebsocket" ]; meta = with lib; { description = "Websocket handler for the gevent pywsgi server"; diff --git a/pkgs/development/python-modules/gevent/default.nix b/pkgs/development/python-modules/gevent/default.nix index cee0b07bdf8f..1e38def4560e 100644 --- a/pkgs/development/python-modules/gevent/default.nix +++ b/pkgs/development/python-modules/gevent/default.nix @@ -1,26 +1,27 @@ -{ lib -, fetchPypi -, buildPythonPackage -, isPyPy -, python -, libev -, cffi -, cython -, greenlet -, importlib-metadata -, setuptools -, wheel -, zope-event -, zope-interface -, pythonOlder -, c-ares -, libuv +{ + lib, + fetchPypi, + buildPythonPackage, + isPyPy, + python, + libev, + cffi, + cython, + greenlet, + importlib-metadata, + setuptools, + wheel, + zope-event, + zope-interface, + pythonOlder, + c-ares, + libuv, -# for passthru.tests -, dulwich -, gunicorn -, opentracing -, pika + # for passthru.tests + dulwich, + gunicorn, + opentracing, + pika, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { cython setuptools wheel - ] ++ lib.optionals (!isPyPy) [ - cffi - ]; + ] ++ lib.optionals (!isPyPy) [ cffi ]; buildInputs = [ libev @@ -53,9 +52,7 @@ buildPythonPackage rec { importlib-metadata zope-event zope-interface - ] ++ lib.optionals (!isPyPy) [ - greenlet - ]; + ] ++ lib.optionals (!isPyPy) [ greenlet ]; # Bunch of failures. doCheck = false; @@ -70,7 +67,8 @@ buildPythonPackage rec { dulwich gunicorn opentracing - pika; + pika + ; } // lib.filterAttrs (k: v: lib.hasInfix "gevent" k) python.pkgs; GEVENTSETUP_EMBED = "0"; diff --git a/pkgs/development/python-modules/geventhttpclient/default.nix b/pkgs/development/python-modules/geventhttpclient/default.nix index d61e390135c3..478faeaeb3c3 100644 --- a/pkgs/development/python-modules/geventhttpclient/default.nix +++ b/pkgs/development/python-modules/geventhttpclient/default.nix @@ -1,17 +1,18 @@ -{ lib -, brotli -, buildPythonPackage -, certifi -, dpkt -, fetchFromGitHub -, gevent -, llhttp -, pytestCheckHook -, pythonOlder -, setuptools -, six -, stdenv -, urllib3 +{ + lib, + brotli, + buildPythonPackage, + certifi, + dpkt, + fetchFromGitHub, + gevent, + llhttp, + pytestCheckHook, + pythonOlder, + setuptools, + six, + stdenv, + urllib3, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-uOGnwPbvTam14SFTUT0UrwxHfP4a5cn3a7EhLoGBUrA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ brotli @@ -55,13 +54,9 @@ buildPythonPackage rec { rm -rf geventhttpclient ''; - pytestFlagsArray = [ - "-m 'not network'" - ]; + pytestFlagsArray = [ "-m 'not network'" ]; - pythonImportsCheck = [ - "geventhttpclient" - ]; + pythonImportsCheck = [ "geventhttpclient" ]; meta = with lib; { homepage = "https://github.com/geventhttpclient/geventhttpclient"; diff --git a/pkgs/development/python-modules/gfal2-python/default.nix b/pkgs/development/python-modules/gfal2-python/default.nix index d9ffbe8a23e7..52cb5ad1b227 100644 --- a/pkgs/development/python-modules/gfal2-python/default.nix +++ b/pkgs/development/python-modules/gfal2-python/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cmake -, pkg-config -, boost -, gfal2 -, glib -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cmake, + pkg-config, + boost, + gfal2, + glib, + pythonAtLeast, # For tests -, gfal2-util ? null + gfal2-util ? null, }: buildPythonPackage rec { pname = "gfal2-python"; @@ -31,15 +32,12 @@ buildPythonPackage rec { # We don't want setup.py to (re-)execute cmake in buildPhase # Besides, this package is totally handled by CMake, which means no additional configuration is needed. dontConfigure = true; - pythonImportsCheck = [ - "gfal2" - ]; + pythonImportsCheck = [ "gfal2" ]; passthru = { inherit gfal2; tests = { inherit gfal2-util; - } - // lib.optionalAttrs (gfal2-util != null) gfal2-util.tests or { }; + } // lib.optionalAttrs (gfal2-util != null) gfal2-util.tests or { }; }; meta = with lib; { description = "Python binding for gfal2"; diff --git a/pkgs/development/python-modules/gfal2-util/default.nix b/pkgs/development/python-modules/gfal2-util/default.nix index 2aabf3b43e88..4294aa48b741 100644 --- a/pkgs/development/python-modules/gfal2-util/default.nix +++ b/pkgs/development/python-modules/gfal2-util/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, runCommandLocal +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + runCommandLocal, # Build inputs -, gfal2-python + gfal2-python, # For tests -, xrootd # pkgs.xrootd + xrootd, # pkgs.xrootd }: (buildPythonPackage rec { pname = "gfal2-util"; @@ -27,13 +28,9 @@ done ''; - propagatedBuildInputs = [ - gfal2-python - ]; + propagatedBuildInputs = [ gfal2-python ]; - pythonImportsCheck = [ - "gfal2_util" - ]; + pythonImportsCheck = [ "gfal2_util" ]; meta = with lib; { description = "CLI for gfal2"; @@ -41,63 +38,74 @@ license = licenses.asl20; maintainers = with maintainers; [ ShamrockLee ]; }; -}).overrideAttrs (finalAttrs: previousAttrs: lib.recursiveUpdate previousAttrs { - passthru = { - inherit (gfal2-python) gfal2; +}).overrideAttrs + ( + finalAttrs: previousAttrs: + lib.recursiveUpdate previousAttrs { + passthru = { + inherit (gfal2-python) gfal2; - fetchGfal2 = lib.makeOverridable (callPackage ./fetchgfal2.nix { gfal2-util = finalAttrs.finalPackage; }); + fetchGfal2 = lib.makeOverridable ( + callPackage ./fetchgfal2.nix { gfal2-util = finalAttrs.finalPackage; } + ); - # With these functionality tests, it should be safe to merge version bumps once all the tests are passed. - tests = - let - # Use the the bin output hash of gfal2-util as version to ensure that - # the test gets rebuild everytime gfal2-util gets rebuild - versionFODTests = finalAttrs.version + "-" + lib.substring (lib.stringLength builtins.storeDir + 1) 32 "${self}"; - self = finalAttrs.finalPackage; - in - lib.optionalAttrs gfal2-python.gfal2.enablePluginStatus.xrootd ( - let - # Test against a real-world dataset from CERN Open Data - # borrowed from `xrootd.tests`. - urlTestFile = xrootd.tests.test-xrdcp.url; - hashTestFile = xrootd.tests.test-xrdcp.outputHash; - urlTestDir = dirOf urlTestFile; - in - { - test-copy-file-xrootd = finalAttrs.passthru.fetchGfal2 { - url = urlTestFile; - hash = hashTestFile; - extraGfalCopyFlags = [ "--verbose" ]; - pname = "gfal2-util-test-copy-file-xrootd"; - version = versionFODTests; - allowSubstitutes = false; - }; + # With these functionality tests, it should be safe to merge version bumps once all the tests are passed. + tests = + let + # Use the the bin output hash of gfal2-util as version to ensure that + # the test gets rebuild everytime gfal2-util gets rebuild + versionFODTests = + finalAttrs.version + "-" + lib.substring (lib.stringLength builtins.storeDir + 1) 32 "${self}"; + self = finalAttrs.finalPackage; + in + lib.optionalAttrs gfal2-python.gfal2.enablePluginStatus.xrootd ( + let + # Test against a real-world dataset from CERN Open Data + # borrowed from `xrootd.tests`. + urlTestFile = xrootd.tests.test-xrdcp.url; + hashTestFile = xrootd.tests.test-xrdcp.outputHash; + urlTestDir = dirOf urlTestFile; + in + { + test-copy-file-xrootd = finalAttrs.passthru.fetchGfal2 { + url = urlTestFile; + hash = hashTestFile; + extraGfalCopyFlags = [ "--verbose" ]; + pname = "gfal2-util-test-copy-file-xrootd"; + version = versionFODTests; + allowSubstitutes = false; + }; - test-copy-dir-xrootd = finalAttrs.passthru.fetchGfal2 { - url = urlTestDir; - hash = "sha256-vOahIhvx1oE9sfkqANMGUvGeLHS737wyfYWo4rkvrxw="; - recursive = true; - extraGfalCopyFlags = [ "--verbose" ]; - pname = "gfal2-util-test-copy-dir-xrootd"; - version = versionFODTests; - allowSubstitutes = false; - }; + test-copy-dir-xrootd = finalAttrs.passthru.fetchGfal2 { + url = urlTestDir; + hash = "sha256-vOahIhvx1oE9sfkqANMGUvGeLHS737wyfYWo4rkvrxw="; + recursive = true; + extraGfalCopyFlags = [ "--verbose" ]; + pname = "gfal2-util-test-copy-dir-xrootd"; + version = versionFODTests; + allowSubstitutes = false; + }; - test-ls-dir-xrootd = (runCommandLocal "test-gfal2-util-ls-dir-xrootd" { } '' - set -eu -o pipefail - gfal-ls "$url" | grep "$baseNameExpected" | tee "$out" - '').overrideAttrs (finalAttrs: previousAttrs: { - pname = previousAttrs.name; - version = versionFODTests; - name = "${finalAttrs.pname}-${finalAttrs.version}"; - nativeBuildInputs = [ self ]; - url = urlTestDir; - baseNameExpected = baseNameOf urlTestFile; - outputHashMode = "flat"; - outputHashAlgo = "sha256"; - outputHash = builtins.hashString finalAttrs.outputHashAlgo (finalAttrs.baseNameExpected + "\n"); - }); - } - ); - }; -}) + test-ls-dir-xrootd = + (runCommandLocal "test-gfal2-util-ls-dir-xrootd" { } '' + set -eu -o pipefail + gfal-ls "$url" | grep "$baseNameExpected" | tee "$out" + '').overrideAttrs + ( + finalAttrs: previousAttrs: { + pname = previousAttrs.name; + version = versionFODTests; + name = "${finalAttrs.pname}-${finalAttrs.version}"; + nativeBuildInputs = [ self ]; + url = urlTestDir; + baseNameExpected = baseNameOf urlTestFile; + outputHashMode = "flat"; + outputHashAlgo = "sha256"; + outputHash = builtins.hashString finalAttrs.outputHashAlgo (finalAttrs.baseNameExpected + "\n"); + } + ); + } + ); + }; + } + ) diff --git a/pkgs/development/python-modules/gfal2-util/fetchgfal2.nix b/pkgs/development/python-modules/gfal2-util/fetchgfal2.nix index ab5ae45ef160..d92cb9b96c06 100644 --- a/pkgs/development/python-modules/gfal2-util/fetchgfal2.nix +++ b/pkgs/development/python-modules/gfal2-util/fetchgfal2.nix @@ -1,19 +1,21 @@ -{ lib -, runCommandLocal -, gfal2-util +{ + lib, + runCommandLocal, + gfal2-util, }: # `url` and `urls` should only be overriden via `.override`, but not `.overrideAttrs`. -{ name ? "" -, pname ? "" -, version ? "" -, urls ? [ ] -, url ? if urls == [ ] then abort "Expect either non-empty `urls` or `url`" else lib.head urls -, hash ? lib.fakeHash -, recursive ? false -, intermediateDestUrls ? [ ] -, extraGfalCopyFlags ? [ ] -, allowSubstitutes ? true +{ + name ? "", + pname ? "", + version ? "", + urls ? [ ], + url ? if urls == [ ] then abort "Expect either non-empty `urls` or `url`" else lib.head urls, + hash ? lib.fakeHash, + recursive ? false, + intermediateDestUrls ? [ ], + extraGfalCopyFlags ? [ ], + allowSubstitutes ? true, }: (runCommandLocal name { } '' @@ -26,23 +28,28 @@ echo "gfal-copy failed trying to download from any of the urls" >&2 exit "$ret" fi -'').overrideAttrs (finalAttrs: previousAttrs: -{ - __structuredAttrs = true; - inherit allowSubstitutes; - nativeBuildInputs = [ gfal2-util ]; - outputHashAlgo = null; - outputHashMode = if finalAttrs.recursive then "recursive" else "flat"; - outputHash = hash; - inherit url; - urls = if urls == [ ] then lib.singleton url else urls; - gfalCopyFlags = extraGfalCopyFlags - ++ lib.optional finalAttrs.recursive "--recursive" - ; - inherit recursive intermediateDestUrls; -} // (if (pname != "" && version != "") then { - inherit pname version; - name = "${finalAttrs.pname}-${finalAttrs.version}"; -} else { - name = if (name != "") then name else (baseNameOf url); -})) +'').overrideAttrs + ( + finalAttrs: previousAttrs: + { + __structuredAttrs = true; + inherit allowSubstitutes; + nativeBuildInputs = [ gfal2-util ]; + outputHashAlgo = null; + outputHashMode = if finalAttrs.recursive then "recursive" else "flat"; + outputHash = hash; + inherit url; + urls = if urls == [ ] then lib.singleton url else urls; + gfalCopyFlags = extraGfalCopyFlags ++ lib.optional finalAttrs.recursive "--recursive"; + inherit recursive intermediateDestUrls; + } + // ( + if (pname != "" && version != "") then + { + inherit pname version; + name = "${finalAttrs.pname}-${finalAttrs.version}"; + } + else + { name = if (name != "") then name else (baseNameOf url); } + ) + ) diff --git a/pkgs/development/python-modules/gflags/default.nix b/pkgs/development/python-modules/gflags/default.nix index 2cef0c11a900..bf6e28f889f7 100644 --- a/pkgs/development/python-modules/gflags/default.nix +++ b/pkgs/development/python-modules/gflags/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pytest, +}: buildPythonPackage rec { version = "3.1.2"; diff --git a/pkgs/development/python-modules/gflanguages/default.nix b/pkgs/development/python-modules/gflanguages/default.nix index 852bf166b387..5f0976661fcc 100644 --- a/pkgs/development/python-modules/gflanguages/default.nix +++ b/pkgs/development/python-modules/gflanguages/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, protobuf -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, setuptools-scm -, uharfbuzz -, youseedee +{ + lib, + buildPythonPackage, + fetchPypi, + protobuf, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + setuptools-scm, + uharfbuzz, + youseedee, }: buildPythonPackage rec { @@ -28,18 +29,14 @@ buildPythonPackage rec { # ecosystem have begun upgrading from protobuf 3 to protobuf 4, # so we need to use protobuf 4 here as well to avoid a conflict # in the closure of fontbakery. It seems to be compatible enough. - pythonRelaxDeps = [ - "protobuf" - ]; + pythonRelaxDeps = [ "protobuf" ]; build-system = [ setuptools setuptools-scm ]; - dependencies = [ - protobuf - ]; + dependencies = [ protobuf ]; nativeCheckInputs = [ pythonRelaxDepsHook diff --git a/pkgs/development/python-modules/gfsubsets/default.nix b/pkgs/development/python-modules/gfsubsets/default.nix index 31aa36151644..33dca6d3a858 100644 --- a/pkgs/development/python-modules/gfsubsets/default.nix +++ b/pkgs/development/python-modules/gfsubsets/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fonttools -, importlib-resources -, setuptools -, setuptools-scm -, youseedee +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, + importlib-resources, + setuptools, + setuptools-scm, + youseedee, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { # Package has no unit tests. doCheck = false; - pythonImportsCheck = [ - "gfsubsets" - ]; + pythonImportsCheck = [ "gfsubsets" ]; meta = with lib; { description = "Codepoint definitions for the Google Fonts subsetter"; diff --git a/pkgs/development/python-modules/gguf/default.nix b/pkgs/development/python-modules/gguf/default.nix index 767a8472adf8..aac9050ce310 100644 --- a/pkgs/development/python-modules/gguf/default.nix +++ b/pkgs/development/python-modules/gguf/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + poetry-core, + pythonOlder, }: buildPythonPackage rec { pname = "gguf"; diff --git a/pkgs/development/python-modules/ghapi/default.nix b/pkgs/development/python-modules/ghapi/default.nix index c613809b347d..5e163ec21c05 100644 --- a/pkgs/development/python-modules/ghapi/default.nix +++ b/pkgs/development/python-modules/ghapi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, fastcore -, packaging -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + fastcore, + packaging, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "ghapi" - ]; + pythonImportsCheck = [ "ghapi" ]; meta = with lib; { description = "Python interface to GitHub's API"; diff --git a/pkgs/development/python-modules/ghdiff/default.nix b/pkgs/development/python-modules/ghdiff/default.nix index 4bcde153ba32..6d80f36d6df0 100644 --- a/pkgs/development/python-modules/ghdiff/default.nix +++ b/pkgs/development/python-modules/ghdiff/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, zope-testrunner, six, chardet}: +{ + lib, + buildPythonPackage, + fetchPypi, + zope-testrunner, + six, + chardet, +}: buildPythonPackage rec { pname = "ghdiff"; @@ -12,10 +18,13 @@ buildPythonPackage rec { }; nativeCheckInputs = [ zope-testrunner ]; - propagatedBuildInputs = [ six chardet ]; + propagatedBuildInputs = [ + six + chardet + ]; meta = with lib; { - homepage = "https://github.com/kilink/ghdiff"; + homepage = "https://github.com/kilink/ghdiff"; license = licenses.mit; description = "Generate Github-style HTML for unified diffs."; mainProgram = "ghdiff"; diff --git a/pkgs/development/python-modules/ghp-import/default.nix b/pkgs/development/python-modules/ghp-import/default.nix index 8d7ec98b13c7..f0e393808132 100644 --- a/pkgs/development/python-modules/ghp-import/default.nix +++ b/pkgs/development/python-modules/ghp-import/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-nFNcTGEZPC34hxIiVn1/1+UBTYNfl9x7dDkGniQT00M="; }; - propagatedBuildInputs = [ - python-dateutil - ]; + propagatedBuildInputs = [ python-dateutil ]; # Does not include any unit tests doCheck = false; - pythonImportsCheck = [ - "ghp_import" - ]; + pythonImportsCheck = [ "ghp_import" ]; meta = with lib; { description = "Copy your docs directly to the gh-pages branch"; diff --git a/pkgs/development/python-modules/ghrepo-stats/default.nix b/pkgs/development/python-modules/ghrepo-stats/default.nix index 18bd6124b152..e3532c3825a7 100644 --- a/pkgs/development/python-modules/ghrepo-stats/default.nix +++ b/pkgs/development/python-modules/ghrepo-stats/default.nix @@ -1,10 +1,11 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, pygithub -, pythonOlder +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + pygithub, + pythonOlder, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "ghrepo_stats" - ]; + pythonImportsCheck = [ "ghrepo_stats" ]; meta = with lib; { description = "Python module and CLI tool for GitHub repo statistics"; diff --git a/pkgs/development/python-modules/gibberish-detector/default.nix b/pkgs/development/python-modules/gibberish-detector/default.nix index b9d06fc34cce..d03703b37e96 100644 --- a/pkgs/development/python-modules/gibberish-detector/default.nix +++ b/pkgs/development/python-modules/gibberish-detector/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gibberish_detector" ]; diff --git a/pkgs/development/python-modules/gidgethub/default.nix b/pkgs/development/python-modules/gidgethub/default.nix index e109f4fa0487..d6a71589362d 100644 --- a/pkgs/development/python-modules/gidgethub/default.nix +++ b/pkgs/development/python-modules/gidgethub/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit -, uritemplate -, pyjwt -, pytestCheckHook -, aiohttp -, httpx -, importlib-resources -, pytest-asyncio -, pytest-tornasync +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit, + uritemplate, + pyjwt, + pytestCheckHook, + aiohttp, + httpx, + importlib-resources, + pytest-asyncio, + pytest-tornasync, }: buildPythonPackage rec { @@ -25,15 +26,12 @@ buildPythonPackage rec { hash = "sha256-ns59N/vOuBm4BWDn7Vj5NuSKZdN+xfVtt5FFFWtCaiU="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; propagatedBuildInputs = [ uritemplate pyjwt - ] - ++ pyjwt.optional-dependencies.crypto; + ] ++ pyjwt.optional-dependencies.crypto; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/gin-config/default.nix b/pkgs/development/python-modules/gin-config/default.nix index 1f3105a8a882..6f1dad68d077 100644 --- a/pkgs/development/python-modules/gin-config/default.nix +++ b/pkgs/development/python-modules/gin-config/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, enum34 +{ + lib, + buildPythonPackage, + fetchPypi, + six, + enum34, }: buildPythonPackage rec { @@ -13,13 +14,15 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; sha256 = "0c6ea5026ded927c8c93c990b01c695257c1df446e45e549a158cfbc79e19ed6"; - }; - propagatedBuildInputs = [ six enum34 ]; + propagatedBuildInputs = [ + six + enum34 + ]; # PyPI archive does not ship with tests - doCheck= false; + doCheck = false; meta = with lib; { homepage = "https://github.com/google/gin-config"; diff --git a/pkgs/development/python-modules/gios/default.nix b/pkgs/development/python-modules/gios/default.nix index 1d972641d392..0a5632ad31de 100644 --- a/pkgs/development/python-modules/gios/default.nix +++ b/pkgs/development/python-modules/gios/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, dacite -, fetchFromGitHub -, pytest-asyncio -, pytest-error-for-skips -, pytestCheckHook -, pythonOlder -, setuptools -, syrupy +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + dacite, + fetchFromGitHub, + pytest-asyncio, + pytest-error-for-skips, + pytestCheckHook, + pythonOlder, + setuptools, + syrupy, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-rjC4zWWtaPxuBcjiO9dVsXD4dTa47iwkKuSFx+QXeXw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { "test_invalid_station_id" ]; - pythonImportsCheck = [ - "gios" - ]; + pythonImportsCheck = [ "gios" ]; meta = with lib; { description = "Python client for getting air quality data from GIOS"; diff --git a/pkgs/development/python-modules/gistyc/default.nix b/pkgs/development/python-modules/gistyc/default.nix index 923f2069d052..1a3cf250b3c7 100644 --- a/pkgs/development/python-modules/gistyc/default.nix +++ b/pkgs/development/python-modules/gistyc/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, certifi -, click -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + certifi, + click, + requests, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "gistyc" - ]; + pythonImportsCheck = [ "gistyc" ]; meta = with lib; { homepage = "https://github.com/ThomasAlbin/gistyc"; diff --git a/pkgs/development/python-modules/git-annex-adapter/default.nix b/pkgs/development/python-modules/git-annex-adapter/default.nix index 8af128e895a0..07f546d41571 100644 --- a/pkgs/development/python-modules/git-annex-adapter/default.nix +++ b/pkgs/development/python-modules/git-annex-adapter/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cacert -, fetchFromGitHub -, fetchpatch -, git-annex -, gitMinimal -, pygit2 -, pytestCheckHook -, python -, pythonOlder -, setuptools -, substituteAll -, util-linux +{ + lib, + buildPythonPackage, + cacert, + fetchFromGitHub, + fetchpatch, + git-annex, + gitMinimal, + pygit2, + pytestCheckHook, + python, + pythonOlder, + setuptools, + substituteAll, + util-linux, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pygit2 @@ -63,9 +62,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "git_annex_adapter" - ]; + pythonImportsCheck = [ "git_annex_adapter" ]; disabledTests = [ # KeyError and AssertionError diff --git a/pkgs/development/python-modules/git-filter-repo/default.nix b/pkgs/development/python-modules/git-filter-repo/default.nix index fa0fa0148b8d..ceb49c027fb4 100644 --- a/pkgs/development/python-modules/git-filter-repo/default.nix +++ b/pkgs/development/python-modules/git-filter-repo/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchPypi -, fetchpatch -, installShellFiles -, pythonOlder -, setuptools-scm -, writeScript +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchPypi, + fetchpatch, + installShellFiles, + pythonOlder, + setuptools-scm, + writeScript, }: buildPythonPackage rec { @@ -51,16 +52,20 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "git_filter_repo" - ]; + pythonImportsCheck = [ "git_filter_repo" ]; meta = with lib; { description = "Quickly rewrite git repository history"; mainProgram = "git-filter-repo"; homepage = "https://github.com/newren/git-filter-repo"; - license = with licenses; [ mit /* or */ gpl2Plus ]; - maintainers = with maintainers; [ aiotter fab ]; + license = with licenses; [ + mit # or + gpl2Plus + ]; + maintainers = with maintainers; [ + aiotter + fab + ]; }; passthru.updateScript = writeScript "update-${pname}" '' diff --git a/pkgs/development/python-modules/git-revise/default.nix b/pkgs/development/python-modules/git-revise/default.nix index f64e4afa61ad..78fdc254baaa 100644 --- a/pkgs/development/python-modules/git-revise/default.nix +++ b/pkgs/development/python-modules/git-revise/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, git -, gnupg -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + git, + gnupg, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,7 +23,11 @@ buildPythonPackage rec { disabled = pythonOlder "3.8"; - nativeCheckInputs = [ git gnupg pytestCheckHook ]; + nativeCheckInputs = [ + git + gnupg + pytestCheckHook + ]; meta = with lib; { description = "Efficiently update, split, and rearrange git commits"; diff --git a/pkgs/development/python-modules/git-sweep/default.nix b/pkgs/development/python-modules/git-sweep/default.nix index ac18f2604f83..5f45257ee2ef 100644 --- a/pkgs/development/python-modules/git-sweep/default.nix +++ b/pkgs/development/python-modules/git-sweep/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gitpython -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + gitpython, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-zSnxw3JHsFru9fOZSJZX+XOu144uJ0DaIKYlAtoHV7M="; }; - propagatedBuildInputs = [ - gitpython - ]; + propagatedBuildInputs = [ gitpython ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "gitsweep" - ]; + pythonImportsCheck = [ "gitsweep" ]; meta = with lib; { description = "A command-line tool that helps you clean up Git branches"; diff --git a/pkgs/development/python-modules/git-url-parse/default.nix b/pkgs/development/python-modules/git-url-parse/default.nix index b0c4c2077faf..ff7aba550593 100644 --- a/pkgs/development/python-modules/git-url-parse/default.nix +++ b/pkgs/development/python-modules/git-url-parse/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pbr -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pbr, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,20 +23,15 @@ buildPythonPackage rec { --replace " --cov giturlparse --cov-report term-missing" "" ''; - # Manually set version because prb wants to get it from the git # upstream repository (and we are installing from tarball instead) env.PBR_VERSION = version; - propagatedBuildInputs = [ - pbr - ]; + propagatedBuildInputs = [ pbr ]; pythonImportsCheck = [ "giturlparse" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A simple GIT URL parser"; @@ -45,4 +41,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ blaggacao ]; }; } - diff --git a/pkgs/development/python-modules/git-versioner/default.nix b/pkgs/development/python-modules/git-versioner/default.nix index 564bf1af9f61..ed2fc5ec732e 100644 --- a/pkgs/development/python-modules/git-versioner/default.nix +++ b/pkgs/development/python-modules/git-versioner/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, setuptools-scm -, fetchFromGitLab +{ + lib, + buildPythonPackage, + setuptools-scm, + fetchFromGitLab, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-bnpuFJSd4nBXJA75V61kiB+nU5pUzdEAIScfKx7aaGU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - pythonImportsCheck = [ - "__version__" - ]; + pythonImportsCheck = [ "__version__" ]; meta = with lib; { description = "Manage current / next version for project"; @@ -30,5 +27,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ slotThe ]; }; - } diff --git a/pkgs/development/python-modules/gitdb/default.nix b/pkgs/development/python-modules/gitdb/default.nix index 996387f45135..838e0679c74c 100644 --- a/pkgs/development/python-modules/gitdb/default.nix +++ b/pkgs/development/python-modules/gitdb/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, smmap +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + smmap, }: buildPythonPackage rec { @@ -25,21 +26,13 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "smmap" - ]; + pythonRelaxDeps = [ "smmap" ]; - propagatedBuildInputs = [ - smmap - ]; + propagatedBuildInputs = [ smmap ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gitdb" - ]; + pythonImportsCheck = [ "gitdb" ]; disabledTests = [ # Tests need part which are not shipped with PyPI releases diff --git a/pkgs/development/python-modules/github-to-sqlite/default.nix b/pkgs/development/python-modules/github-to-sqlite/default.nix index 67ec970bda7b..20ca2879ae3f 100644 --- a/pkgs/development/python-modules/github-to-sqlite/default.nix +++ b/pkgs/development/python-modules/github-to-sqlite/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, pytestCheckHook -, pyyaml -, requests -, requests-mock -, sqlite-utils +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + pytestCheckHook, + pyyaml, + requests, + requests-mock, + sqlite-utils, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { requests-mock ]; - disabledTests = [ - "test_scrape_dependents" - ]; + disabledTests = [ "test_scrape_dependents" ]; meta = with lib; { description = "Save data from GitHub to a SQLite database"; diff --git a/pkgs/development/python-modules/github-webhook/default.nix b/pkgs/development/python-modules/github-webhook/default.nix index 9f05b74a2202..ab7d6b4c12ac 100644 --- a/pkgs/development/python-modules/github-webhook/default.nix +++ b/pkgs/development/python-modules/github-webhook/default.nix @@ -1,6 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, flask -, six +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + six, }: buildPythonPackage rec { @@ -13,7 +16,10 @@ buildPythonPackage rec { sha256 = "b2444dbfd03deda35792bd00ebd1692597c2605c61445da79da6322afaca7a8d"; }; - propagatedBuildInputs = [ flask six ]; + propagatedBuildInputs = [ + flask + six + ]; # touches network doCheck = false; diff --git a/pkgs/development/python-modules/github3-py/default.nix b/pkgs/development/python-modules/github3-py/default.nix index 72fd8108f0c4..2ffdcc6a3f00 100644 --- a/pkgs/development/python-modules/github3-py/default.nix +++ b/pkgs/development/python-modules/github3-py/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, requests -, uritemplate -, python-dateutil -, pyjwt -, pytestCheckHook -, betamax -, betamax-matchers -, hatchling -, fetchpatch +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + requests, + uritemplate, + python-dateutil, + pyjwt, + pytestCheckHook, + betamax, + betamax-matchers, + hatchling, + fetchpatch, }: buildPythonPackage rec { @@ -25,17 +26,14 @@ buildPythonPackage rec { hash = "sha256-MNVxB2dT78OJ7cf5qu8zik/LJLVNiWjV85sTQvRd3TY="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ pyjwt python-dateutil requests uritemplate - ] - ++ pyjwt.optional-dependencies.crypto; + ] ++ pyjwt.optional-dependencies.crypto; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/gitignore-parser/default.nix b/pkgs/development/python-modules/gitignore-parser/default.nix index 50239a9b2653..d94af4ebb18d 100644 --- a/pkgs/development/python-modules/gitignore-parser/default.nix +++ b/pkgs/development/python-modules/gitignore-parser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-y8A8OLgJccYWvKTJs7um8RwFFM0CswbwRojknBmk3TY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "gitignore_parser" - ]; + pythonImportsCheck = [ "gitignore_parser" ]; meta = with lib; { description = "A spec-compliant gitignore parser"; diff --git a/pkgs/development/python-modules/gitlike-commands/default.nix b/pkgs/development/python-modules/gitlike-commands/default.nix index c5e8ab506696..1f1b7dbe3bf2 100644 --- a/pkgs/development/python-modules/gitlike-commands/default.nix +++ b/pkgs/development/python-modules/gitlike-commands/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-Z0l8nCKov1iMJvI3YTHvg0ey+oPju3rgaKtmk6OX44g="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # Module has no real tests doCheck = false; - pythonImportsCheck = [ - "gitlike_commands" - ]; + pythonImportsCheck = [ "gitlike_commands" ]; meta = with lib; { description = "Easy python module for creating git-style subcommand handling"; diff --git a/pkgs/development/python-modules/gitpython/default.nix b/pkgs/development/python-modules/gitpython/default.nix index eca3c326d0eb..a7f45bd7b3db 100644 --- a/pkgs/development/python-modules/gitpython/default.nix +++ b/pkgs/development/python-modules/gitpython/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, ddt -, fetchFromGitHub -, gitdb -, pkgs -, pythonOlder -, substituteAll -, typing-extensions +{ + lib, + buildPythonPackage, + ddt, + fetchFromGitHub, + gitdb, + pkgs, + pythonOlder, + substituteAll, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { ddt gitdb pkgs.gitMinimal - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; postPatch = '' substituteInPlace git/cmd.py \ @@ -39,9 +38,7 @@ buildPythonPackage rec { # Tests require a git repo doCheck = false; - pythonImportsCheck = [ - "git" - ]; + pythonImportsCheck = [ "git" ]; meta = with lib; { description = "Python Git Library"; diff --git a/pkgs/development/python-modules/glad/default.nix b/pkgs/development/python-modules/glad/default.nix index def3766765e8..56eeb3f9047e 100644 --- a/pkgs/development/python-modules/glad/default.nix +++ b/pkgs/development/python-modules/glad/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, lib }: +{ + buildPythonPackage, + fetchPypi, + lib, +}: buildPythonPackage rec { pname = "glad"; diff --git a/pkgs/development/python-modules/glad2/default.nix b/pkgs/development/python-modules/glad2/default.nix index f38c944f6403..f5aeb9925431 100644 --- a/pkgs/development/python-modules/glad2/default.nix +++ b/pkgs/development/python-modules/glad2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-CGFa7TIZ6hx3WEvVlh2CO6sib4rDgx0JrfZcb6h3+Ow="; }; - propagatedBuildInputs = [ - jinja2 - ]; + propagatedBuildInputs = [ jinja2 ]; # no python tests doCheck = false; diff --git a/pkgs/development/python-modules/glcontext/default.nix b/pkgs/development/python-modules/glcontext/default.nix index 4014de18e12b..db5530e3c5e8 100644 --- a/pkgs/development/python-modules/glcontext/default.nix +++ b/pkgs/development/python-modules/glcontext/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, libGL -, libX11 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + libGL, + libX11, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { disabled = !isPy3k; - buildInputs = [ libGL libX11 ]; + buildInputs = [ + libGL + libX11 + ]; postPatch = '' substituteInPlace glcontext/x11.cpp \ diff --git a/pkgs/development/python-modules/glean-parser/default.nix b/pkgs/development/python-modules/glean-parser/default.nix index 510d3c9d8c1b..bf22e5bce919 100644 --- a/pkgs/development/python-modules/glean-parser/default.nix +++ b/pkgs/development/python-modules/glean-parser/default.nix @@ -1,17 +1,18 @@ -{ lib -, appdirs -, buildPythonPackage -, click -, diskcache -, fetchPypi -, jinja2 -, jsonschema -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools -, setuptools-scm -, yamllint +{ + lib, + appdirs, + buildPythonPackage, + click, + diskcache, + fetchPypi, + jinja2, + jsonschema, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, + setuptools-scm, + yamllint, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "MarkupSafe>=1.1.1,<=2.0.1" "MarkupSafe>=1.1.1" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ appdirs @@ -48,9 +47,7 @@ buildPythonPackage rec { yamllint ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR @@ -64,9 +61,7 @@ buildPythonPackage rec { "test_yaml_lint" ]; - pythonImportsCheck = [ - "glean_parser" - ]; + pythonImportsCheck = [ "glean_parser" ]; meta = with lib; { description = "Tools for parsing the metadata for Mozilla's glean telemetry SDK"; @@ -74,6 +69,6 @@ buildPythonPackage rec { homepage = "https://github.com/mozilla/glean_parser"; changelog = "https://github.com/mozilla/glean_parser/blob/v${version}/CHANGELOG.md"; license = licenses.mpl20; - maintainers = with maintainers; []; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/glean-sdk/default.nix b/pkgs/development/python-modules/glean-sdk/default.nix index 83abb1089e30..6a577a000f60 100644 --- a/pkgs/development/python-modules/glean-sdk/default.nix +++ b/pkgs/development/python-modules/glean-sdk/default.nix @@ -1,21 +1,22 @@ -{ stdenv -, lib -, buildPythonPackage -, cargo -, cffi -, fetchPypi -, glean-parser -, iso8601 -, lmdb -, pkg-config -, pytest-localserver -, pytestCheckHook -, python -, pythonOlder -, rustc -, rustPlatform -, semver -, setuptools-rust +{ + stdenv, + lib, + buildPythonPackage, + cargo, + cffi, + fetchPypi, + glean-parser, + iso8601, + lmdb, + pkg-config, + pytest-localserver, + pytestCheckHook, + python, + pythonOlder, + rustc, + rustPlatform, + semver, + setuptools-rust, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { setuptools-rust ]; - buildInputs = [ - lmdb - ]; + buildInputs = [ lmdb ]; propagatedBuildInputs = [ cffi @@ -70,9 +69,7 @@ buildPythonPackage rec { readelf -a $out/${python.sitePackages}/glean/libglean_ffi.so | grep -F 'Shared library: [liblmdb.so' ''; - pythonImportsCheck = [ - "glean" - ]; + pythonImportsCheck = [ "glean" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/glfw/default.nix b/pkgs/development/python-modules/glfw/default.nix index 16b4d2d21cfc..56bb2a091748 100644 --- a/pkgs/development/python-modules/glfw/default.nix +++ b/pkgs/development/python-modules/glfw/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, glfw3 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + glfw3, + pythonOlder, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { substituteInPlace glfw/library.py --replace "_get_library_search_paths()," "[ '${glfw3}/lib' ]," ''; - propagatedBuildInputs = [ - glfw3 - ]; + propagatedBuildInputs = [ glfw3 ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "glfw" - ]; + pythonImportsCheck = [ "glfw" ]; meta = with lib; { description = "Python bindings for GLFW"; diff --git a/pkgs/development/python-modules/glob2/default.nix b/pkgs/development/python-modules/glob2/default.nix index 24658f2f7874..2dcae7a38566 100644 --- a/pkgs/development/python-modules/glob2/default.nix +++ b/pkgs/development/python-modules/glob2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python +{ + lib, + buildPythonPackage, + fetchPypi, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/globus-sdk/default.nix b/pkgs/development/python-modules/globus-sdk/default.nix index 646fb31650d1..6f6256650872 100644 --- a/pkgs/development/python-modules/globus-sdk/default.nix +++ b/pkgs/development/python-modules/globus-sdk/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, flaky -, pyjwt -, pytestCheckHook -, pythonOlder -, requests -, responses -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + flaky, + pyjwt, + pytestCheckHook, + pythonOlder, + requests, + responses, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -26,34 +27,26 @@ buildPythonPackage rec { hash = "sha256-FQO1D960mg0G/zYMo4J5MtJbPID4oE8UWNpTPKWtsic="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cryptography requests pyjwt - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ flaky responses ]; - pythonImportsCheck = [ - "globus_sdk" - ]; + pythonImportsCheck = [ "globus_sdk" ]; meta = with lib; { description = "Interface to Globus REST APIs, including the Transfer API and the Globus Auth API"; - homepage = "https://github.com/globus/globus-sdk-python"; + homepage = "https://github.com/globus/globus-sdk-python"; changelog = "https://github.com/globus/globus-sdk-python/releases/tag/${version}"; license = licenses.asl20; }; diff --git a/pkgs/development/python-modules/glom/default.nix b/pkgs/development/python-modules/glom/default.nix index eb770051f09d..366f75e3bfed 100644 --- a/pkgs/development/python-modules/glom/default.nix +++ b/pkgs/development/python-modules/glom/default.nix @@ -1,13 +1,14 @@ -{ lib -, attrs -, boltons -, buildPythonPackage -, face -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, pyyaml +{ + lib, + attrs, + boltons, + buildPythonPackage, + face, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -43,17 +44,17 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - disabledTests = [ - # Test is outdated (was made for PyYAML 3.x) - "test_main_yaml_target" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - "test_regular_error_stack" - "test_long_target_repr" - ]; + disabledTests = + [ + # Test is outdated (was made for PyYAML 3.x) + "test_main_yaml_target" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + "test_regular_error_stack" + "test_long_target_repr" + ]; - pythonImportsCheck = [ - "glom" - ]; + pythonImportsCheck = [ "glom" ]; meta = with lib; { description = "Restructuring data, the Python way"; diff --git a/pkgs/development/python-modules/glueviz/default.nix b/pkgs/development/python-modules/glueviz/default.nix index bb25d2edd3a9..98a8248333a6 100644 --- a/pkgs/development/python-modules/glueviz/default.nix +++ b/pkgs/development/python-modules/glueviz/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, dill -, astropy -, numpy -, pandas -, qt6 -, pyqt6 -, pyqt-builder -, qtconsole -, setuptools -, setuptools-scm -, scipy -, ipython -, ipykernel -, h5py -, matplotlib -, xlrd -, mpl-scatter-density -, pvextractor -, openpyxl -, echo -, pytest -, pytest-flakes -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + dill, + astropy, + numpy, + pandas, + qt6, + pyqt6, + pyqt-builder, + qtconsole, + setuptools, + setuptools-scm, + scipy, + ipython, + ipykernel, + h5py, + matplotlib, + xlrd, + mpl-scatter-density, + pvextractor, + openpyxl, + echo, + pytest, + pytest-flakes, + pytest-cov, }: buildPythonPackage rec { @@ -42,7 +43,11 @@ buildPythonPackage rec { }; buildInputs = [ pyqt-builder ]; - nativeBuildInputs = [ setuptools setuptools-scm qt6.wrapQtAppsHook ]; + nativeBuildInputs = [ + setuptools + setuptools-scm + qt6.wrapQtAppsHook + ]; propagatedBuildInputs = [ astropy dill @@ -69,7 +74,11 @@ buildPythonPackage rec { # qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. doCheck = false; - nativeCheckInputs = [ pytest pytest-flakes pytest-cov ]; + nativeCheckInputs = [ + pytest + pytest-flakes + pytest-cov + ]; pythonImportsCheck = [ "glue" ]; diff --git a/pkgs/development/python-modules/glymur/default.nix b/pkgs/development/python-modules/glymur/default.nix index 0f8ad79c72b2..611c87e1fe3a 100644 --- a/pkgs/development/python-modules/glymur/default.nix +++ b/pkgs/development/python-modules/glymur/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, substituteAll -, glibc -, libtiff -, openjpeg -, fetchFromGitHub -, lxml -, numpy -, pytestCheckHook -, pythonOlder -, scikit-image -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + substituteAll, + glibc, + libtiff, + openjpeg, + fetchFromGitHub, + lxml, + numpy, + pytestCheckHook, + pythonOlder, + scikit-image, + setuptools, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { __propagatedImpureHostDeps = lib.optional stdenv.isDarwin "/usr/lib/libc.dylib"; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ lxml @@ -67,9 +66,7 @@ buildPythonPackage rec { "tests/test_config.py" ]; - pythonImportsCheck = [ - "glymur" - ]; + pythonImportsCheck = [ "glymur" ]; meta = { description = "Tools for accessing JPEG2000 files"; diff --git a/pkgs/development/python-modules/glyphsets/default.nix b/pkgs/development/python-modules/glyphsets/default.nix index a686f67a64d9..2792bec5c3ed 100644 --- a/pkgs/development/python-modules/glyphsets/default.nix +++ b/pkgs/development/python-modules/glyphsets/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, defcon -, fonttools -, gflanguages -, glyphslib -, pytestCheckHook -, pyyaml -, requests -, setuptools -, setuptools-scm -, unicodedata2 +{ + lib, + buildPythonPackage, + fetchPypi, + defcon, + fonttools, + gflanguages, + glyphslib, + pytestCheckHook, + pyyaml, + requests, + setuptools, + setuptools-scm, + unicodedata2, }: buildPythonPackage rec { @@ -33,14 +34,10 @@ buildPythonPackage rec { setuptools unicodedata2 ]; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export PATH="$out/bin:$PATH" ''; diff --git a/pkgs/development/python-modules/glyphslib/default.nix b/pkgs/development/python-modules/glyphslib/default.nix index 99e519ef3728..d58f39b9c633 100644 --- a/pkgs/development/python-modules/glyphslib/default.nix +++ b/pkgs/development/python-modules/glyphslib/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fonttools -, openstep-plist -, ufolib2 -, pytestCheckHook -, unicodedata2 -, setuptools-scm -, ufonormalizer -, xmldiff -, defcon -, ufo2ft -, skia-pathops +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fonttools, + openstep-plist, + ufolib2, + pytestCheckHook, + unicodedata2, + setuptools-scm, + ufonormalizer, + xmldiff, + defcon, + ufo2ft, + skia-pathops, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/glyphtools/default.nix b/pkgs/development/python-modules/glyphtools/default.nix index 0f1f2066c02b..c5c407ed9767 100644 --- a/pkgs/development/python-modules/glyphtools/default.nix +++ b/pkgs/development/python-modules/glyphtools/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beziers -, glyphslib -, numpy -, setuptoolsCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + beziers, + glyphslib, + numpy, + setuptoolsCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gntp/default.nix b/pkgs/development/python-modules/gntp/default.nix index 4376a0378223..2f2661700d92 100644 --- a/pkgs/development/python-modules/gntp/default.nix +++ b/pkgs/development/python-modules/gntp/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "gntp"; @@ -10,7 +14,10 @@ buildPythonPackage rec { sha256 = "1q6scs8lp84v0aph6b5c9jhv51rhq2vmzpdd38db92ybkq0g597l"; }; - pythonImportsCheck = [ "gntp" "gntp.notifier" ]; + pythonImportsCheck = [ + "gntp" + "gntp.notifier" + ]; # requires a growler service to be running doCheck = false; diff --git a/pkgs/development/python-modules/gnureadline/default.nix b/pkgs/development/python-modules/gnureadline/default.nix index c3a2434eeea6..d2af97dc0839 100644 --- a/pkgs/development/python-modules/gnureadline/default.nix +++ b/pkgs/development/python-modules/gnureadline/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + pkgs, }: buildPythonPackage rec { @@ -26,5 +27,4 @@ buildPythonPackage rec { homepage = "https://github.com/ludwigschwardt/python-gnureadline"; license = licenses.gpl3; }; - } diff --git a/pkgs/development/python-modules/goalzero/default.nix b/pkgs/development/python-modules/goalzero/default.nix index 806d486d79cd..21cdfcdc594d 100644 --- a/pkgs/development/python-modules/goalzero/default.nix +++ b/pkgs/development/python-modules/goalzero/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-h/EaEOe0zvnO5BYfcIyC3Vq8sPED6ts1IeI/GM+vm7c="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # no tests implemented doCheck = false; - pythonImportsCheck = [ - "goalzero" - ]; + pythonImportsCheck = [ "goalzero" ]; meta = with lib; { description = "Goal Zero Yeti REST Api Library"; diff --git a/pkgs/development/python-modules/gocardless-pro/default.nix b/pkgs/development/python-modules/gocardless-pro/default.nix index a1c5cff80dda..e903ab4877d9 100644 --- a/pkgs/development/python-modules/gocardless-pro/default.nix +++ b/pkgs/development/python-modules/gocardless-pro/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, six -, pytestCheckHook -, responses -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + six, + pytestCheckHook, + responses, + nose, }: buildPythonPackage rec { @@ -41,4 +42,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ blaggacao ]; }; } - diff --git a/pkgs/development/python-modules/goobook/default.nix b/pkgs/development/python-modules/goobook/default.nix index 2f3884aa07ff..921c08f8bbec 100644 --- a/pkgs/development/python-modules/goobook/default.nix +++ b/pkgs/development/python-modules/goobook/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, pythonOlder -, docutils -, installShellFiles -, poetry-core -, google-api-python-client -, simplejson -, oauth2client -, setuptools -, pyxdg +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pythonOlder, + docutils, + installShellFiles, + poetry-core, + google-api-python-client, + simplejson, + oauth2client, + setuptools, + pyxdg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/goocalendar/default.nix b/pkgs/development/python-modules/goocalendar/default.nix index a9d69447c2ce..efd9d7815976 100644 --- a/pkgs/development/python-modules/goocalendar/default.nix +++ b/pkgs/development/python-modules/goocalendar/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gobject-introspection -, goocanvas2 -, gtk3 -, pkg-config -, pygobject3 -, pythonOlder - }: +{ + lib, + buildPythonPackage, + fetchPypi, + gobject-introspection, + goocanvas2, + gtk3, + pkg-config, + pygobject3, + pythonOlder, +}: buildPythonPackage rec { pname = "goocalendar"; @@ -27,9 +28,7 @@ buildPythonPackage rec { gobject-introspection ]; - propagatedBuildInputs = [ - pygobject3 - ]; + propagatedBuildInputs = [ pygobject3 ]; buildInputs = [ gtk3 @@ -39,9 +38,7 @@ buildPythonPackage rec { # No upstream tests available doCheck = false; - pythonImportsCheck = [ - "goocalendar" - ]; + pythonImportsCheck = [ "goocalendar" ]; meta = with lib; { description = "A calendar widget for GTK using PyGoocanvas"; diff --git a/pkgs/development/python-modules/google-api-core/default.nix b/pkgs/development/python-modules/google-api-core/default.nix index 3a9b0f17c9a8..440729136876 100644 --- a/pkgs/development/python-modules/google-api-core/default.nix +++ b/pkgs/development/python-modules/google-api-core/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-auth -, googleapis-common-protos -, grpcio -, grpcio-gcp -, grpcio-status -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-auth, + googleapis-common-protos, + grpcio, + grpcio-gcp, + grpcio-status, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-Ytl0F7/GdNbO8lHlxNY5qWVeAMRVKMQ2T7/rtHjOcqk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ googleapis-common-protos @@ -45,12 +44,8 @@ buildPythonPackage rec { grpcio grpcio-status ]; - grpcgcp = [ - grpcio-gcp - ]; - grpcio-gcp = [ - grpcio-gcp - ]; + grpcgcp = [ grpcio-gcp ]; + grpcio-gcp = [ grpcio-gcp ]; }; nativeCheckInputs = [ @@ -79,9 +74,7 @@ buildPythonPackage rec { "test_exception_with_error_code" ]; - pythonImportsCheck = [ - "google.api_core" - ]; + pythonImportsCheck = [ "google.api_core" ]; meta = with lib; { description = "Core Library for Google Client Libraries"; diff --git a/pkgs/development/python-modules/google-auth-httplib2/default.nix b/pkgs/development/python-modules/google-auth-httplib2/default.nix index daf7a64de53a..cfa2a0ba47a6 100644 --- a/pkgs/development/python-modules/google-auth-httplib2/default.nix +++ b/pkgs/development/python-modules/google-auth-httplib2/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, google-auth -, httplib2 -, mock -, pytest-localserver -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + google-auth, + httplib2, + mock, + pytest-localserver, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/google-auth-oauthlib/default.nix b/pkgs/development/python-modules/google-auth-oauthlib/default.nix index 84693b839de9..863cf6bb6dfc 100644 --- a/pkgs/development/python-modules/google-auth-oauthlib/default.nix +++ b/pkgs/development/python-modules/google-auth-oauthlib/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, setuptools -, click -, mock -, pytestCheckHook -, google-auth -, requests-oauthlib -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, + click, + mock, + pytestCheckHook, + google-auth, + requests-oauthlib, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-KS0tN4M0nysHNKCgIHseHjIqwZPCwJ2PfGE/t8xQHqg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-auth @@ -41,17 +40,17 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.tool; - disabledTests = [ - # Flaky test. See https://github.com/NixOS/nixpkgs/issues/288424#issuecomment-1941609973. - "test_run_local_server_occupied_port" - ] ++ lib.optionals stdenv.isDarwin [ - # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`). - "test_run_local_server_bind_addr" - ]; + disabledTests = + [ + # Flaky test. See https://github.com/NixOS/nixpkgs/issues/288424#issuecomment-1941609973. + "test_run_local_server_occupied_port" + ] + ++ lib.optionals stdenv.isDarwin [ + # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`). + "test_run_local_server_bind_addr" + ]; - pythonImportsCheck = [ - "google_auth_oauthlib" - ]; + pythonImportsCheck = [ "google_auth_oauthlib" ]; meta = with lib; { changelog = "https://github.com/googleapis/google-auth-library-python-oauthlib/blob/v${version}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/google-auth/default.nix b/pkgs/development/python-modules/google-auth/default.nix index b8ff0805b01e..807cf745f788 100644 --- a/pkgs/development/python-modules/google-auth/default.nix +++ b/pkgs/development/python-modules/google-auth/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, aiohttp -, aioresponses -, buildPythonPackage -, cachetools -, cryptography -, fetchPypi -, flask -, freezegun -, grpcio -, mock -, oauth2client -, pyasn1-modules -, pyopenssl -, pytest-asyncio -, pytest-localserver -, pytestCheckHook -, pythonOlder -, pyu2f -, requests -, responses -, rsa -, setuptools +{ + lib, + stdenv, + aiohttp, + aioresponses, + buildPythonPackage, + cachetools, + cryptography, + fetchPypi, + flask, + freezegun, + grpcio, + mock, + oauth2client, + pyasn1-modules, + pyopenssl, + pytest-asyncio, + pytest-localserver, + pytestCheckHook, + pythonOlder, + pyu2f, + requests, + responses, + rsa, + setuptools, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { hash = "sha256-Zy3/My0HMidVD/x0V4aKxCGNbFALFV/mzBfSsTYCw2A="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cachetools @@ -59,28 +58,26 @@ buildPythonPackage rec { cryptography pyopenssl ]; - reauth = [ - pyu2f - ]; - requests = [ - requests - ]; + reauth = [ pyu2f ]; + requests = [ requests ]; }; - nativeCheckInputs = [ - aioresponses - flask - freezegun - grpcio - mock - oauth2client - pytest-asyncio - pytest-localserver - pytestCheckHook - responses - ] ++ passthru.optional-dependencies.aiohttp - ++ passthru.optional-dependencies.enterprise_cert - ++ passthru.optional-dependencies.reauth; + nativeCheckInputs = + [ + aioresponses + flask + freezegun + grpcio + mock + oauth2client + pytest-asyncio + pytest-localserver + pytestCheckHook + responses + ] + ++ passthru.optional-dependencies.aiohttp + ++ passthru.optional-dependencies.enterprise_cert + ++ passthru.optional-dependencies.reauth; pythonImportsCheck = [ "google.auth" diff --git a/pkgs/development/python-modules/google-cloud-access-context-manager/default.nix b/pkgs/development/python-modules/google-cloud-access-context-manager/default.nix index 409cfc2bc4a4..83a6a8ffe478 100644 --- a/pkgs/development/python-modules/google-cloud-access-context-manager/default.nix +++ b/pkgs/development/python-modules/google-cloud-access-context-manager/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, pythonOlder -, protobuf -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + pythonOlder, + protobuf, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-pbQkMSwISwK2+Ywev7avKBMvwB5dcZgX+kmeeMh+BLc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core @@ -31,9 +30,7 @@ buildPythonPackage rec { # No tests in repo doCheck = false; - pythonImportsCheck = [ - "google.identity.accesscontextmanager" - ]; + pythonImportsCheck = [ "google.identity.accesscontextmanager" ]; meta = with lib; { description = "Protobufs for Google Access Context Manager"; diff --git a/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix b/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix index d9f5f38c36ec..08770d71976d 100644 --- a/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix +++ b/pkgs/development/python-modules/google-cloud-appengine-logging/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-+1BOYZn+jehbqp0xzs9ndod4Uf5Yhn3mAzF+x8xzmYc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix index 07e965918652..494e8bae5252 100644 --- a/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix +++ b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, grpc-google-iam-v1 -, lib -, proto-plus -, protobuf -, pytestCheckHook -, pythonOlder -, setuptools +{ + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + grpc-google-iam-v1, + lib, + proto-plus, + protobuf, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-wsSeFbtZHWXeoiyC2lUUjFE09xkZuu+OtNNb4dHLIM0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core @@ -35,9 +34,7 @@ buildPythonPackage rec { protobuf ] ++ google-api-core.optional-dependencies.grpc; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "google.cloud.artifactregistry" diff --git a/pkgs/development/python-modules/google-cloud-audit-log/default.nix b/pkgs/development/python-modules/google-cloud-audit-log/default.nix index 60515a9c65dc..93907bcf7eaf 100644 --- a/pkgs/development/python-modules/google-cloud-audit-log/default.nix +++ b/pkgs/development/python-modules/google-cloud-audit-log/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, googleapis-common-protos -, protobuf -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + googleapis-common-protos, + protobuf, + pythonOlder, }: buildPythonPackage rec { @@ -18,14 +19,15 @@ buildPythonPackage rec { hash = "sha256-huL6ujODrcj9BKW9f9T5YLPkrtqn7ZUPL4kc4WkC62s="; }; - propagatedBuildInputs = [ googleapis-common-protos protobuf ]; + propagatedBuildInputs = [ + googleapis-common-protos + protobuf + ]; # tests are a bit wonky to setup and are not very deep either doCheck = false; - pythonImportsCheck = [ - "google.cloud.audit" - ]; + pythonImportsCheck = [ "google.cloud.audit" ]; meta = with lib; { description = "Google Cloud Audit Protos"; diff --git a/pkgs/development/python-modules/google-cloud-automl/default.nix b/pkgs/development/python-modules/google-cloud-automl/default.nix index 34b49c9b1999..a8240580d12e 100644 --- a/pkgs/development/python-modules/google-cloud-automl/default.nix +++ b/pkgs/development/python-modules/google-cloud-automl/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-storage -, google-cloud-testutils -, libcst -, mock -, pandas -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-storage, + google-cloud-testutils, + libcst, + mock, + pandas, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-iRqQgurt6xe8W7ck/BULdwLGhNdCD58irj98X8YRxxo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core @@ -38,15 +37,9 @@ buildPythonPackage rec { ] ++ google-api-core.optional-dependencies.grpc; passthru.optional-dependencies = { - libcst = [ - libcst - ]; - pandas = [ - pandas - ]; - storage = [ - google-cloud-storage - ]; + libcst = [ libcst ]; + pandas = [ pandas ]; + storage = [ google-cloud-storage ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/google-cloud-bigquery-logging/default.nix b/pkgs/development/python-modules/google-cloud-bigquery-logging/default.nix index da43db7a3cc4..b89159c5838e 100644 --- a/pkgs/development/python-modules/google-cloud-bigquery-logging/default.nix +++ b/pkgs/development/python-modules/google-cloud-bigquery-logging/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-7RqwaSthQcwGebhi5F/V//WxBIp5upVS0ToDDsjyURY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-bigquery-storage/default.nix b/pkgs/development/python-modules/google-cloud-bigquery-storage/default.nix index a669bd364133..2326fb680467 100644 --- a/pkgs/development/python-modules/google-cloud-bigquery-storage/default.nix +++ b/pkgs/development/python-modules/google-cloud-bigquery-storage/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fastavro -, fetchPypi -, google-api-core -, google-auth -, google-cloud-bigquery -, pandas -, protobuf -, pyarrow -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fastavro, + fetchPypi, + google-api-core, + google-auth, + google-cloud-bigquery, + pandas, + protobuf, + pyarrow, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,15 +31,9 @@ buildPythonPackage rec { ] ++ google-api-core.optional-dependencies.grpc; passthru.optional-dependencies = { - fastavro = [ - fastavro - ]; - pandas = [ - pandas - ]; - pyarrow = [ - pyarrow - ]; + fastavro = [ fastavro ]; + pandas = [ pandas ]; + pyarrow = [ pyarrow ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/google-cloud-container/default.nix b/pkgs/development/python-modules/google-cloud-container/default.nix index 5283cb448d26..ac54e8078dda 100644 --- a/pkgs/development/python-modules/google-cloud-container/default.nix +++ b/pkgs/development/python-modules/google-cloud-container/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, libcst -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + libcst, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-8vaSLR+cIKohDpbC679cKydLsnBKhewtTpdBDymxjss="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-core/default.nix b/pkgs/development/python-modules/google-cloud-core/default.nix index 84168c911f28..3213156bb49a 100644 --- a/pkgs/development/python-modules/google-cloud-core/default.nix +++ b/pkgs/development/python-modules/google-cloud-core/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, grpcio -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + grpcio, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - grpc = [ - grpcio - ]; + grpc = [ grpcio ]; }; nativeCheckInputs = [ @@ -42,9 +41,7 @@ buildPythonPackage rec { rm -r google ''; - pythonImportsCheck = [ - "google.cloud" - ]; + pythonImportsCheck = [ "google.cloud" ]; meta = with lib; { description = "API Client library for Google Cloud: Core Helpers"; diff --git a/pkgs/development/python-modules/google-cloud-datacatalog/default.nix b/pkgs/development/python-modules/google-cloud-datacatalog/default.nix index 4248a857bb48..afdb8dcf4eb2 100644 --- a/pkgs/development/python-modules/google-cloud-datacatalog/default.nix +++ b/pkgs/development/python-modules/google-cloud-datacatalog/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, libcst -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + libcst, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-Oo0O94fw7dRwPn4nyRobX4W9vgTWFgkTLsdyaffVJpI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "google.cloud.datacatalog" - ]; + pythonImportsCheck = [ "google.cloud.datacatalog" ]; meta = with lib; { description = "Google Cloud Data Catalog API API client library"; diff --git a/pkgs/development/python-modules/google-cloud-dataproc/default.nix b/pkgs/development/python-modules/google-cloud-dataproc/default.nix index 6e22cb60c267..7353e61ad5d4 100644 --- a/pkgs/development/python-modules/google-cloud-dataproc/default.nix +++ b/pkgs/development/python-modules/google-cloud-dataproc/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, mock -, libcst -, proto-plus -, protobuf -, pytestCheckHook -, pytest-asyncio -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + mock, + libcst, + proto-plus, + protobuf, + pytestCheckHook, + pytest-asyncio, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-l9ZHiR5/TNJfa4Oa5XzTVYCd8so5ZlPtJK9itO8C9BI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-datastore/default.nix b/pkgs/development/python-modules/google-cloud-datastore/default.nix index 00e07713a635..fbce5713a507 100644 --- a/pkgs/development/python-modules/google-cloud-datastore/default.nix +++ b/pkgs/development/python-modules/google-cloud-datastore/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-core -, google-cloud-testutils -, libcst -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-core, + google-cloud-testutils, + libcst, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { ] ++ google-api-core.optional-dependencies.grpc; passthru.optional-dependencies = { - libcst = [ - libcst - ]; + libcst = [ libcst ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/google-cloud-dlp/default.nix b/pkgs/development/python-modules/google-cloud-dlp/default.nix index 52c1ee3e4f2d..ae32dcec9bfe 100644 --- a/pkgs/development/python-modules/google-cloud-dlp/default.nix +++ b/pkgs/development/python-modules/google-cloud-dlp/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-testutils -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-testutils, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-YMUEBj8c154KA5Y/cm1gbypDxkfY4ncCq5wbym5rS9s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-dns/default.nix b/pkgs/development/python-modules/google-cloud-dns/default.nix index f076591c02de..0ab6d3f677e9 100644 --- a/pkgs/development/python-modules/google-cloud-dns/default.nix +++ b/pkgs/development/python-modules/google-cloud-dns/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-core -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-core, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { "test_quota" ]; - pythonImportsCheck = [ - "google.cloud.dns" - ]; + pythonImportsCheck = [ "google.cloud.dns" ]; meta = with lib; { description = "Google Cloud DNS API client library"; diff --git a/pkgs/development/python-modules/google-cloud-error-reporting/default.nix b/pkgs/development/python-modules/google-cloud-error-reporting/default.nix index 7705598e8097..5c60a79bd613 100644 --- a/pkgs/development/python-modules/google-cloud-error-reporting/default.nix +++ b/pkgs/development/python-modules/google-cloud-error-reporting/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-logging -, google-cloud-testutils -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -,setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-logging, + google-cloud-testutils, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-+oeVT/ag00BEObbqzkC/EazEwnrWvRURnz3gnCBbn4k="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-firestore/default.nix b/pkgs/development/python-modules/google-cloud-firestore/default.nix index 71bcfd699dc1..66de0b03ad00 100644 --- a/pkgs/development/python-modules/google-cloud-firestore/default.nix +++ b/pkgs/development/python-modules/google-cloud-firestore/default.nix @@ -1,18 +1,19 @@ -{ lib -, aiounittest -, buildPythonPackage -, fetchPypi -, freezegun -, google-api-core -, google-cloud-core -, google-cloud-testutils -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiounittest, + buildPythonPackage, + fetchPypi, + freezegun, + google-api-core, + google-cloud-core, + google-cloud-testutils, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-5hrnAimm5TLkOcjRZEejICREfy7kojA/xNBUwljWh38="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-iam-logging/default.nix b/pkgs/development/python-modules/google-cloud-iam-logging/default.nix index bea85e028389..13e45e3f02d6 100644 --- a/pkgs/development/python-modules/google-cloud-iam-logging/default.nix +++ b/pkgs/development/python-modules/google-cloud-iam-logging/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-99YYGGrI8zg+cwdVKqFVneL0jTzO7GJq91O/Kk0lGJM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-iam/default.nix b/pkgs/development/python-modules/google-cloud-iam/default.nix index c5b192169bef..0b3f31b643b7 100644 --- a/pkgs/development/python-modules/google-cloud-iam/default.nix +++ b/pkgs/development/python-modules/google-cloud-iam/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, libcst -, mock -, proto-plus -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + libcst, + mock, + proto-plus, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -34,7 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths =[ + disabledTestPaths = [ # unmaintained, reference wrong import path for google.cloud.iam.v1 "tests/unit/gapic/iam_admin_v1/test_iam.py" ]; diff --git a/pkgs/development/python-modules/google-cloud-iot/default.nix b/pkgs/development/python-modules/google-cloud-iot/default.nix index 3cd2f397a6b8..7fe73ddf3c91 100644 --- a/pkgs/development/python-modules/google-cloud-iot/default.nix +++ b/pkgs/development/python-modules/google-cloud-iot/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, libcst -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + libcst, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/google-cloud-kms/default.nix b/pkgs/development/python-modules/google-cloud-kms/default.nix index 2dec1cea50a3..efb503cc702f 100644 --- a/pkgs/development/python-modules/google-cloud-kms/default.nix +++ b/pkgs/development/python-modules/google-cloud-kms/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-AQW8FKOYt/05GUO766/VkY8+NAaCepiXObLcOInMEhg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ grpc-google-iam-v1 diff --git a/pkgs/development/python-modules/google-cloud-language/default.nix b/pkgs/development/python-modules/google-cloud-language/default.nix index 98f4355facbd..75c88a69744b 100644 --- a/pkgs/development/python-modules/google-cloud-language/default.nix +++ b/pkgs/development/python-modules/google-cloud-language/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-Vp01Jgr5Bt4luOKna2Nk4FgJuEU6/Ynac41KT8uQhG8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-logging/default.nix b/pkgs/development/python-modules/google-cloud-logging/default.nix index 546ab8cb544e..95b237af9984 100644 --- a/pkgs/development/python-modules/google-cloud-logging/default.nix +++ b/pkgs/development/python-modules/google-cloud-logging/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, django -, fetchPypi -, flask -, google-api-core -, google-cloud-appengine-logging -, google-cloud-audit-log -, google-cloud-core -, google-cloud-testutils -, grpc-google-iam-v1 -, mock -, pandas -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, rich -, setuptools +{ + lib, + buildPythonPackage, + django, + fetchPypi, + flask, + google-api-core, + google-cloud-appengine-logging, + google-cloud-audit-log, + google-cloud-core, + google-cloud-testutils, + grpc-google-iam-v1, + mock, + pandas, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + rich, + setuptools, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-2T00c1EkDdsUz+IBmHotMs+df0eLiy+r7TAVtCWzJ08="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-netapp/default.nix b/pkgs/development/python-modules/google-cloud-netapp/default.nix index 7c6b06e12180..75cdea219097 100644 --- a/pkgs/development/python-modules/google-cloud-netapp/default.nix +++ b/pkgs/development/python-modules/google-cloud-netapp/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-Bau1Xqb+lmG6aCoWm93mtfOII7CbnnaeZ5vmLp6n0Zs="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-org-policy/default.nix b/pkgs/development/python-modules/google-cloud-org-policy/default.nix index d7365d31aa06..ebc945eb848a 100644 --- a/pkgs/development/python-modules/google-cloud-org-policy/default.nix +++ b/pkgs/development/python-modules/google-cloud-org-policy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-3BJDTwbIDhscHDR8rcjLQP/JYZrktcW+tcK9WFyV2X8="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core @@ -42,9 +41,7 @@ buildPythonPackage rec { rm -r google ''; - pythonImportsCheck = [ - "google.cloud.orgpolicy" - ]; + pythonImportsCheck = [ "google.cloud.orgpolicy" ]; meta = with lib; { description = "Protobufs for Google Cloud Organization Policy"; diff --git a/pkgs/development/python-modules/google-cloud-os-config/default.nix b/pkgs/development/python-modules/google-cloud-os-config/default.nix index 7abcde5174c0..ca1b446f9232 100644 --- a/pkgs/development/python-modules/google-cloud-os-config/default.nix +++ b/pkgs/development/python-modules/google-cloud-os-config/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, protobuf -, proto-plus -, pytestCheckHook -, pytest-asyncio -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + protobuf, + proto-plus, + pytestCheckHook, + pytest-asyncio, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-oKOqWVmAP14dKpbVDlcX2KSRceTqVES/UGlLsYtnWHA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "google.cloud.osconfig" - ]; + pythonImportsCheck = [ "google.cloud.osconfig" ]; disabledTests = [ # Test requires a project ID diff --git a/pkgs/development/python-modules/google-cloud-redis/default.nix b/pkgs/development/python-modules/google-cloud-redis/default.nix index 588a156d745d..5dd7405a8d11 100644 --- a/pkgs/development/python-modules/google-cloud-redis/default.nix +++ b/pkgs/development/python-modules/google-cloud-redis/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-5qIx5FEHA4z+SY360fba0sp73KOpMTI3ML4Dq3oACo8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-resource-manager/default.nix b/pkgs/development/python-modules/google-cloud-resource-manager/default.nix index 299f2f1f3a80..5e7f3530cb5e 100644 --- a/pkgs/development/python-modules/google-cloud-resource-manager/default.nix +++ b/pkgs/development/python-modules/google-cloud-resource-manager/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-core -, grpc-google-iam-v1 -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-core, + grpc-google-iam-v1, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-gJhRgkEZg05PIxCyxPOGIcHRayuxTVufEy5px501Xn8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix b/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix index 915f00961bca..82cd2b45ecbb 100644 --- a/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix +++ b/pkgs/development/python-modules/google-cloud-runtimeconfig/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-core -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-core, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,18 +32,14 @@ buildPythonPackage rec { ]; # Client tests require credentials - disabledTests = [ - "client_options" - ]; + disabledTests = [ "client_options" ]; # prevent google directory from shadowing google imports preCheck = '' rm -r google ''; - pythonImportsCheck = [ - "google.cloud.runtimeconfig" - ]; + pythonImportsCheck = [ "google.cloud.runtimeconfig" ]; meta = with lib; { description = "Google Cloud RuntimeConfig API client library"; diff --git a/pkgs/development/python-modules/google-cloud-shell/default.nix b/pkgs/development/python-modules/google-cloud-shell/default.nix index e2dd38444b56..ae5b9b748308 100644 --- a/pkgs/development/python-modules/google-cloud-shell/default.nix +++ b/pkgs/development/python-modules/google-cloud-shell/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-33TZcRsOWP8PBAXFHy9DQn20bVECwD2wv7hcaYl0E8Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-speech/default.nix b/pkgs/development/python-modules/google-cloud-speech/default.nix index 2780b5bdfc7f..e1875f677afa 100644 --- a/pkgs/development/python-modules/google-cloud-speech/default.nix +++ b/pkgs/development/python-modules/google-cloud-speech/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-0xVqeElq6s/0A0KUCKGxPv6ZbabwVEolVnkErYAWcdU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-storage/default.nix b/pkgs/development/python-modules/google-cloud-storage/default.nix index 1c17e2a0867d..b3f0d3d55830 100644 --- a/pkgs/development/python-modules/google-cloud-storage/default.nix +++ b/pkgs/development/python-modules/google-cloud-storage/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-auth -, google-cloud-core -, google-cloud-iam -, google-cloud-kms -, google-cloud-testutils -, google-resumable-media -, mock -, protobuf -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-auth, + google-cloud-core, + google-cloud-iam, + google-cloud-kms, + google-cloud-testutils, + google-resumable-media, + mock, + protobuf, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + setuptools, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { setuptools ]; - pythonRelaxDeps = [ - "google-auth" - ]; + pythonRelaxDeps = [ "google-auth" ]; propagatedBuildInputs = [ google-auth @@ -45,9 +44,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - protobuf = [ - protobuf - ]; + protobuf = [ protobuf ]; }; nativeCheckInputs = [ @@ -92,9 +89,7 @@ buildPythonPackage rec { rm tests/conformance/test_conformance.py ''; - pythonImportsCheck = [ - "google.cloud.storage" - ]; + pythonImportsCheck = [ "google.cloud.storage" ]; meta = with lib; { description = "Google Cloud Storage API client library"; diff --git a/pkgs/development/python-modules/google-cloud-tasks/default.nix b/pkgs/development/python-modules/google-cloud-tasks/default.nix index a76e4e50f7f0..215fe74b66cf 100644 --- a/pkgs/development/python-modules/google-cloud-tasks/default.nix +++ b/pkgs/development/python-modules/google-cloud-tasks/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, grpc-google-iam-v1 -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + grpc-google-iam-v1, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-2JH+cAbbTWEig4qm3krKbgB3urIk7crmhGZq4+MDxF8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-testutils/default.nix b/pkgs/development/python-modules/google-cloud-testutils/default.nix index 146f4c726d1c..15d8d226d50b 100644 --- a/pkgs/development/python-modules/google-cloud-testutils/default.nix +++ b/pkgs/development/python-modules/google-cloud-testutils/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, google-auth -, packaging -, pythonOlder +{ + lib, + buildPythonPackage, + click, + fetchPypi, + google-auth, + packaging, + pythonOlder, }: buildPythonPackage rec { @@ -28,15 +29,13 @@ buildPythonPackage rec { # does not contain tests doCheck = false; - pythonImportsCheck = [ - "test_utils" - ]; + pythonImportsCheck = [ "test_utils" ]; meta = with lib; { description = "System test utilities for google-cloud-python"; mainProgram = "lower-bound-checker"; homepage = "https://github.com/googleapis/python-test-utils"; - changelog ="https://github.com/googleapis/python-test-utils/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/googleapis/python-test-utils/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ ]; }; diff --git a/pkgs/development/python-modules/google-cloud-texttospeech/default.nix b/pkgs/development/python-modules/google-cloud-texttospeech/default.nix index 76b0c2a1f269..7adb663194b9 100644 --- a/pkgs/development/python-modules/google-cloud-texttospeech/default.nix +++ b/pkgs/development/python-modules/google-cloud-texttospeech/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-+rwxUDLRN9oHELtMJoc00zYhLY+oMWsjsnfdOoTOchw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-trace/default.nix b/pkgs/development/python-modules/google-cloud-trace/default.nix index 4a276b5f05a7..9bfed30a71b6 100644 --- a/pkgs/development/python-modules/google-cloud-trace/default.nix +++ b/pkgs/development/python-modules/google-cloud-trace/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-testutils -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-testutils, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-NqwuM94NsBf/0vY9jWTct1vpETzPpN5JYvRzfv1srIA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-translate/default.nix b/pkgs/development/python-modules/google-cloud-translate/default.nix index 2eb65c2a61a2..919a21471a8b 100644 --- a/pkgs/development/python-modules/google-cloud-translate/default.nix +++ b/pkgs/development/python-modules/google-cloud-translate/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-core -, google-cloud-testutils -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-core, + google-cloud-testutils, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-7Vh6HmDPhHw7Gt1rKCVuLRci+nOkKFM09excqTPmFvI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-videointelligence/default.nix b/pkgs/development/python-modules/google-cloud-videointelligence/default.nix index d7d39587fe5a..22182e2500a8 100644 --- a/pkgs/development/python-modules/google-cloud-videointelligence/default.nix +++ b/pkgs/development/python-modules/google-cloud-videointelligence/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-cloud-testutils -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-cloud-testutils, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-FGByHYEgZhxHfAGvDt09sDhFhX9SFGpKOfFrSs+zb20="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-vision/default.nix b/pkgs/development/python-modules/google-cloud-vision/default.nix index a771cba34507..321331671859 100644 --- a/pkgs/development/python-modules/google-cloud-vision/default.nix +++ b/pkgs/development/python-modules/google-cloud-vision/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-BEMwrWGMgQMz/yKWzSf/0UXySWONGzWycN5rRgsA6NI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-vpc-access/default.nix b/pkgs/development/python-modules/google-cloud-vpc-access/default.nix index 0c6bbf6ace67..c29a04239447 100644 --- a/pkgs/development/python-modules/google-cloud-vpc-access/default.nix +++ b/pkgs/development/python-modules/google-cloud-vpc-access/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-mkDYB4HFJEu1ZRKo58s5a9lZjQ0pUs6nOBMnm27ajeM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-webrisk/default.nix b/pkgs/development/python-modules/google-cloud-webrisk/default.nix index 8457ab9180d0..aaeab75a44c8 100644 --- a/pkgs/development/python-modules/google-cloud-webrisk/default.nix +++ b/pkgs/development/python-modules/google-cloud-webrisk/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-VrfIVy3qGEMfFUiJ27zZPjBaWIPZX/qraga/+FfJol4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-websecurityscanner/default.nix b/pkgs/development/python-modules/google-cloud-websecurityscanner/default.nix index 4703ba3aadb0..624ce66ed720 100644 --- a/pkgs/development/python-modules/google-cloud-websecurityscanner/default.nix +++ b/pkgs/development/python-modules/google-cloud-websecurityscanner/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-Wp88cJqlAaAkaemHzkgKuhU4v4dFpgn5Sf+uqGKTeWQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-workflows/default.nix b/pkgs/development/python-modules/google-cloud-workflows/default.nix index bc54419923f3..95bf8d056e25 100644 --- a/pkgs/development/python-modules/google-cloud-workflows/default.nix +++ b/pkgs/development/python-modules/google-cloud-workflows/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-IUC5f3gDe5Z9QYVXaIZ3L+F7530q6ZltIHozTtWnf/4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-cloud-workstations/default.nix b/pkgs/development/python-modules/google-cloud-workstations/default.nix index 1341eae06f2a..88ccbf44d9aa 100644 --- a/pkgs/development/python-modules/google-cloud-workstations/default.nix +++ b/pkgs/development/python-modules/google-cloud-workstations/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-api-core -, google-auth -, grpc-google-iam-v1 -, mock -, proto-plus -, protobuf -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + google-api-core, + google-auth, + grpc-google-iam-v1, + mock, + proto-plus, + protobuf, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-K6Qq243bX3waymyGcirLAANqmP0UAUgFS3kidwCFYBE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-api-core diff --git a/pkgs/development/python-modules/google-crc32c/default.nix b/pkgs/development/python-modules/google-crc32c/default.nix index 38c6eea798fa..fc6bcf95b4a2 100644 --- a/pkgs/development/python-modules/google-crc32c/default.nix +++ b/pkgs/development/python-modules/google-crc32c/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, cffi, crc32c, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cffi, + crc32c, + pytestCheckHook, +}: buildPythonPackage rec { pname = "google-crc32c"; @@ -19,7 +26,10 @@ buildPythonPackage rec { LDFLAGS = "-L${crc32c}/lib"; CFLAGS = "-I${crc32c}/include"; - nativeCheckInputs = [ pytestCheckHook crc32c ]; + nativeCheckInputs = [ + pytestCheckHook + crc32c + ]; pythonImportsCheck = [ "google_crc32c" ]; diff --git a/pkgs/development/python-modules/google-i18n-address/default.nix b/pkgs/development/python-modules/google-i18n-address/default.nix index 88c60e45e134..47355a45ffdf 100644 --- a/pkgs/development/python-modules/google-i18n-address/default.nix +++ b/pkgs/development/python-modules/google-i18n-address/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, requests -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + requests, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-dW/1wwnFDjYpym1ZaSZ7mOLpkHxsvuAHC8zBRekxWaw="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "i18naddress" - ]; + pythonImportsCheck = [ "i18naddress" ]; meta = with lib; { description = "Google's i18n address data packaged for Python"; diff --git a/pkgs/development/python-modules/google-nest-sdm/default.nix b/pkgs/development/python-modules/google-nest-sdm/default.nix index 2fb82e23543f..162bd64c271f 100644 --- a/pkgs/development/python-modules/google-nest-sdm/default.nix +++ b/pkgs/development/python-modules/google-nest-sdm/default.nix @@ -1,18 +1,19 @@ -{ lib -, aiohttp -, buildPythonPackage -, coreutils -, fetchFromGitHub -, google-auth -, google-auth-oauthlib -, google-cloud-pubsub -, pydantic -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests-oauthlib -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + coreutils, + fetchFromGitHub, + google-auth, + google-auth-oauthlib, + google-cloud-pubsub, + pydantic, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests-oauthlib, + setuptools, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-zYHrS9y15dcyDhOoky7sB2BYkpTL3PoyNbNewKKl19E="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -51,9 +50,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "google_nest_sdm" - ]; + pythonImportsCheck = [ "google_nest_sdm" ]; disabledTests = [ "test_clip_preview_transcode" diff --git a/pkgs/development/python-modules/google-pasta/default.nix b/pkgs/development/python-modules/google-pasta/default.nix index 99a2a98f1fdb..7a25ad742a82 100644 --- a/pkgs/development/python-modules/google-pasta/default.nix +++ b/pkgs/development/python-modules/google-pasta/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { @@ -19,16 +20,14 @@ buildPythonPackage rec { --replace-fail assertRaisesRegexp assertRaisesRegex ''; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; meta = { description = "An AST-based Python refactoring library"; - homepage = "https://github.com/google/pasta"; + homepage = "https://github.com/google/pasta"; # Usually the tag message contains a one-line summary of the changes. - changelog = "https://github.com/google/pasta/releases/tag/v${version}"; - license = lib.licenses.asl20; + changelog = "https://github.com/google/pasta/releases/tag/v${version}"; + license = lib.licenses.asl20; maintainers = with lib.maintainers; [ timokau ]; }; } diff --git a/pkgs/development/python-modules/google-re2/default.nix b/pkgs/development/python-modules/google-re2/default.nix index 1528cb1a59e1..01821eee8fc3 100644 --- a/pkgs/development/python-modules/google-re2/default.nix +++ b/pkgs/development/python-modules/google-re2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pybind11 -, re2 -, six +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pybind11, + re2, + six, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { six ]; - pythonImportsCheck = [ - "re2" - ]; + pythonImportsCheck = [ "re2" ]; meta = with lib; { description = "RE2 Python bindings"; diff --git a/pkgs/development/python-modules/google-reauth/default.nix b/pkgs/development/python-modules/google-reauth/default.nix index 5a4524926d4d..854fee050697 100644 --- a/pkgs/development/python-modules/google-reauth/default.nix +++ b/pkgs/development/python-modules/google-reauth/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, oauth2client -, pytestCheckHook -, pythonOlder -, pyu2f +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + oauth2client, + pytestCheckHook, + pythonOlder, + pyu2f, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "google_reauth" - ]; + pythonImportsCheck = [ "google_reauth" ]; meta = with lib; { description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage"; diff --git a/pkgs/development/python-modules/google-resumable-media/default.nix b/pkgs/development/python-modules/google-resumable-media/default.nix index e740bc404867..eff67014bed5 100644 --- a/pkgs/development/python-modules/google-resumable-media/default.nix +++ b/pkgs/development/python-modules/google-resumable-media/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, google-auth -, google-cloud-testutils -, google-crc32c -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + google-auth, + google-cloud-testutils, + google-crc32c, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -30,12 +31,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - requests = [ - requests - ]; - aiohttp = [ - aiohttp - ]; + requests = [ requests ]; + aiohttp = [ aiohttp ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/google-search-results/default.nix b/pkgs/development/python-modules/google-search-results/default.nix index 9130ad9ddb05..7a982370ec86 100644 --- a/pkgs/development/python-modules/google-search-results/default.nix +++ b/pkgs/development/python-modules/google-search-results/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-YDow7K4q+OYAsiY1dXpt8nXa1Lk0+XXmeHjM1kC3gkU="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # almost all tests require an API key or network access doCheck = false; - pythonImportsCheck = [ - "serpapi" - ]; + pythonImportsCheck = [ "serpapi" ]; meta = with lib; { description = "Scrape and search localized results from Google, Bing, Baidu, Yahoo, Yandex, Ebay, Homedepot, youtube at scale using SerpApi.com"; diff --git a/pkgs/development/python-modules/google/default.nix b/pkgs/development/python-modules/google/default.nix index 3dc2cdb34514..8d5589300279 100644 --- a/pkgs/development/python-modules/google/default.nix +++ b/pkgs/development/python-modules/google/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beautifulsoup4 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + beautifulsoup4, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-FDUwEi7lEwUJrV6YnwUS98shiy1O3br7rUD9EOjYzL4="; }; - propagatedBuildInputs = [ - beautifulsoup4 - ]; + propagatedBuildInputs = [ beautifulsoup4 ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "googlesearch" - ]; + pythonImportsCheck = [ "googlesearch" ]; meta = with lib; { description = "Python bindings to the Google search engine"; diff --git a/pkgs/development/python-modules/googleapis-common-protos/default.nix b/pkgs/development/python-modules/googleapis-common-protos/default.nix index 4efc119a0125..32449c05311d 100644 --- a/pkgs/development/python-modules/googleapis-common-protos/default.nix +++ b/pkgs/development/python-modules/googleapis-common-protos/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, grpc -, protobuf +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + grpc, + protobuf, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-F60BsR1fHQFxwG07pcBMVEdOiDtmuUlyK0k47iaU704="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ grpc diff --git a/pkgs/development/python-modules/googlemaps/default.nix b/pkgs/development/python-modules/googlemaps/default.nix index d2e67e4676e7..0e936dd7e183 100644 --- a/pkgs/development/python-modules/googlemaps/default.nix +++ b/pkgs/development/python-modules/googlemaps/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-cov -, pytestCheckHook -, pythonOlder -, requests -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-cov, + pytestCheckHook, + pythonOlder, + requests, + responses, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-8oGZEMKUGaDHKq4qIZy10cbLNMmVclJnQE/dx877pNQ="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytest-cov @@ -38,9 +37,7 @@ buildPythonPackage rec { "test_transit_without_time" ]; - pythonImportsCheck = [ - "googlemaps" - ]; + pythonImportsCheck = [ "googlemaps" ]; meta = with lib; { description = "Python client library for Google Maps API Web Services"; diff --git a/pkgs/development/python-modules/googletrans/default.nix b/pkgs/development/python-modules/googletrans/default.nix index 3ffd029c2692..1ed302a6c090 100644 --- a/pkgs/development/python-modules/googletrans/default.nix +++ b/pkgs/development/python-modules/googletrans/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, +}: buildPythonPackage rec { pname = "googletrans"; diff --git a/pkgs/development/python-modules/gotenberg-client/default.nix b/pkgs/development/python-modules/gotenberg-client/default.nix index 947936616fd1..748682f327bf 100644 --- a/pkgs/development/python-modules/gotenberg-client/default.nix +++ b/pkgs/development/python-modules/gotenberg-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hatchling -, httpx -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatchling, + httpx, + typing-extensions, }: buildPythonPackage rec { pname = "gotenberg-client"; @@ -20,19 +21,13 @@ buildPythonPackage rec { hash = "sha256-38s7XLCh55uXxu/Go04Ku/m4xeqAAa2sRe4SiqIXolU="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ httpx - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ] ++ httpx.optional-dependencies.http2; + ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ] ++ httpx.optional-dependencies.http2; - pythonImportsCheck = [ - "gotenberg_client" - ]; + pythonImportsCheck = [ "gotenberg_client" ]; meta = with lib; { description = "A Python client for interfacing with the Gotenberg API"; diff --git a/pkgs/development/python-modules/govee-led-wez/default.nix b/pkgs/development/python-modules/govee-led-wez/default.nix index 727be405b216..25b60113a8da 100644 --- a/pkgs/development/python-modules/govee-led-wez/default.nix +++ b/pkgs/development/python-modules/govee-led-wez/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, bleak -, bleak-retry-connector -, buildPythonPackage -, certifi -, fetchFromGitHub -, hatchling -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + bleak, + bleak-retry-connector, + buildPythonPackage, + certifi, + fetchFromGitHub, + hatchling, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage { @@ -26,9 +27,7 @@ buildPythonPackage { hash = "sha256-VMH7sot9e2SYMyBNutyW6oCCjp2N+EKukxn1Dla3AlY="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ aiohttp @@ -42,9 +41,7 @@ buildPythonPackage { pytestCheckHook ]; - pythonImportsCheck = [ - "govee_led_wez" - ]; + pythonImportsCheck = [ "govee_led_wez" ]; meta = with lib; { description = "Control Govee Lights from Python"; diff --git a/pkgs/development/python-modules/govee-local-api/default.nix b/pkgs/development/python-modules/govee-local-api/default.nix index 1b1d8fcde5ca..5b818ad25c4c 100644 --- a/pkgs/development/python-modules/govee-local-api/default.nix +++ b/pkgs/development/python-modules/govee-local-api/default.nix @@ -30,9 +30,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/goveelights/default.nix b/pkgs/development/python-modules/goveelights/default.nix index 254ae57d32f6..f12caa93c6be 100644 --- a/pkgs/development/python-modules/goveelights/default.nix +++ b/pkgs/development/python-modules/goveelights/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-A7tfY+aFzhfruCZ43usj1/CsTejbPMzHM8SYrY/TU1s="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "goveelights" - ]; + pythonImportsCheck = [ "goveelights" ]; meta = with lib; { description = "Python module for interacting with the Govee API"; diff --git a/pkgs/development/python-modules/gpapi/default.nix b/pkgs/development/python-modules/gpapi/default.nix index 1ec16d8216aa..da55f64055d5 100644 --- a/pkgs/development/python-modules/gpapi/default.nix +++ b/pkgs/development/python-modules/gpapi/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, cryptography -, fetchPypi -, lib -, protobuf -, pycryptodome -, requests +{ + buildPythonPackage, + cryptography, + fetchPypi, + lib, + protobuf, + pycryptodome, + requests, }: buildPythonPackage rec { @@ -23,7 +24,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "gpapi.googleplay" ]; - propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ]; + propagatedBuildInputs = [ + cryptography + protobuf + pycryptodome + requests + ]; meta = with lib; { homepage = "https://github.com/NoMore201/googleplay-api"; diff --git a/pkgs/development/python-modules/gpaw/default.nix b/pkgs/development/python-modules/gpaw/default.nix index 033a7a418597..9b647af6e2b1 100644 --- a/pkgs/development/python-modules/gpaw/default.nix +++ b/pkgs/development/python-modules/gpaw/default.nix @@ -1,28 +1,29 @@ -{ buildPythonPackage -, lib -, fetchFromGitLab -, writeTextFile -, fetchurl -, blas -, lapack -, mpi -, fftw -, scalapack -, libxc -, libvdwxc -, which -, ase -, numpy -, scipy -, pyyaml -, inetutils +{ + buildPythonPackage, + lib, + fetchFromGitLab, + writeTextFile, + fetchurl, + blas, + lapack, + mpi, + fftw, + scalapack, + libxc, + libvdwxc, + which, + ase, + numpy, + scipy, + pyyaml, + inetutils, }: -assert lib.asserts.assertMsg (!blas.isILP64) - "A 32 bit integer implementation of BLAS is required."; +assert lib.asserts.assertMsg (!blas.isILP64) "A 32 bit integer implementation of BLAS is required."; -assert lib.asserts.assertMsg (!lapack.isILP64) - "A 32 bit integer implementation of LAPACK is required."; +assert lib.asserts.assertMsg ( + !lapack.isILP64 +) "A 32 bit integer implementation of LAPACK is required."; let gpawConfig = writeTextFile { @@ -72,8 +73,8 @@ let url = "https://wiki.fysik.dtu.dk/gpaw-files/gpaw-setups-${setupVersion}.tar.gz"; sha256 = "07yldxnn38gky39fxyv3rfzag9p4lb0xfpzn15wy2h9aw4mnhwbc"; }; - -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "gpaw"; version = "24.1.0"; format = "setuptools"; @@ -88,11 +89,26 @@ in buildPythonPackage rec { # `inetutils` is required because importing `gpaw`, as part of # pythonImportsCheck, tries to execute its binary, which in turn tries to # execute `rsh` as a side-effect. - nativeBuildInputs = [ which inetutils ]; + nativeBuildInputs = [ + which + inetutils + ]; - buildInputs = [ blas scalapack libxc libvdwxc fftw ]; + buildInputs = [ + blas + scalapack + libxc + libvdwxc + fftw + ]; - propagatedBuildInputs = [ ase scipy numpy (lib.getBin mpi) pyyaml ]; + propagatedBuildInputs = [ + ase + scipy + numpy + (lib.getBin mpi) + pyyaml + ]; patches = [ ./SetupPath.patch ]; @@ -118,7 +134,9 @@ in buildPythonPackage rec { doCheck = false; # Requires MPI runtime to work in the sandbox pythonImportsCheck = [ "gpaw" ]; - passthru = { inherit mpi; }; + passthru = { + inherit mpi; + }; meta = with lib; { description = "Density functional theory and beyond within the projector-augmented wave method"; diff --git a/pkgs/development/python-modules/gphoto2/default.nix b/pkgs/development/python-modules/gphoto2/default.nix index 6ea7744cab6d..a7535c813b6f 100644 --- a/pkgs/development/python-modules/gphoto2/default.nix +++ b/pkgs/development/python-modules/gphoto2/default.nix @@ -1,8 +1,12 @@ -{ lib, fetchPypi, fetchpatch, buildPythonPackage -, pkg-config -, libgphoto2 -, setuptools -, toml +{ + lib, + fetchPypi, + fetchpatch, + buildPythonPackage, + pkg-config, + libgphoto2, + setuptools, + toml, }: buildPythonPackage rec { @@ -22,7 +26,11 @@ buildPythonPackage rec { hash = "sha256-EXtXlhBx2jCKtMl7HmN87liqiHVAFSeXr11y830AlpY="; }; - nativeBuildInputs = [ pkg-config setuptools toml ]; + nativeBuildInputs = [ + pkg-config + setuptools + toml + ]; buildInputs = [ libgphoto2 ]; diff --git a/pkgs/development/python-modules/gpib-ctypes/default.nix b/pkgs/development/python-modules/gpib-ctypes/default.nix index 42c07a9ef421..98feeb7749fa 100644 --- a/pkgs/development/python-modules/gpib-ctypes/default.nix +++ b/pkgs/development/python-modules/gpib-ctypes/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pytestCheckHook -, linux-gpib +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pytestCheckHook, + linux-gpib, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-c9l6TNmM4PtbvopnnFi5R1dQ9o3MI39BHHHPSGqfjCY="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace gpib_ctypes/gpib/gpib.py \ @@ -30,9 +29,7 @@ buildPythonPackage rec { --replace "'pytest-runner'," "" ''; - pythonImportsCheck = [ - "gpib_ctypes.gpib" - ]; + pythonImportsCheck = [ "gpib_ctypes.gpib" ]; meta = with lib; { description = "Cross-platform Python bindings for the NI GPIB and linux-gpib C interfaces"; diff --git a/pkgs/development/python-modules/gpiozero/default.nix b/pkgs/development/python-modules/gpiozero/default.nix index 3aaa5ba77506..149bf47e4522 100644 --- a/pkgs/development/python-modules/gpiozero/default.nix +++ b/pkgs/development/python-modules/gpiozero/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# docs -, sphinx-rtd-theme -, sphinxHook + # docs + sphinx-rtd-theme, + sphinxHook, -# dependencies -, colorzero + # dependencies + colorzero, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -47,13 +48,9 @@ buildPythonPackage rec { sphinxHook ]; - propagatedBuildInputs = [ - colorzero - ]; + propagatedBuildInputs = [ colorzero ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gpiozero" diff --git a/pkgs/development/python-modules/gplaycli/default.nix b/pkgs/development/python-modules/gplaycli/default.nix index 1c70d37b0dbb..cf427d0560c2 100644 --- a/pkgs/development/python-modules/gplaycli/default.nix +++ b/pkgs/development/python-modules/gplaycli/default.nix @@ -1,18 +1,19 @@ -{ lib -, args -, buildPythonPackage -, clint -, fetchFromGitHub -, libffi -, matlink-gpapi -, ndg-httpsclient -, protobuf -, pyasn1 -, pyaxmlparser -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + args, + buildPythonPackage, + clint, + fetchFromGitHub, + libffi, + matlink-gpapi, + ndg-httpsclient, + protobuf, + pyasn1, + pyaxmlparser, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "gplaycli" - ]; + pythonImportsCheck = [ "gplaycli" ]; preCheck = '' export PATH="$PATH:$out/bin"; diff --git a/pkgs/development/python-modules/gprof2dot/default.nix b/pkgs/development/python-modules/gprof2dot/default.nix index f9823ffbdfdb..3baac43ae617 100644 --- a/pkgs/development/python-modules/gprof2dot/default.nix +++ b/pkgs/development/python-modules/gprof2dot/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, python -, graphviz -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python, + graphviz, + pythonOlder, }: buildPythonPackage rec { @@ -20,14 +21,10 @@ buildPythonPackage rec { hash = "sha256-nIsBO6KTyG2VZZRXrkU/T/a9Ki1x6hda5Vv3rZv/mJM="; }; - makeWrapperArgs = [ - "--prefix PATH : ${lib.makeBinPath [ graphviz ]}" - ]; + makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ graphviz ]}" ]; # Needed so dot is on path of the test script - nativeCheckInputs = [ - graphviz - ]; + nativeCheckInputs = [ graphviz ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/gps3/default.nix b/pkgs/development/python-modules/gps3/default.nix index 4d4182063b40..4f5cfb5d5b86 100644 --- a/pkgs/development/python-modules/gps3/default.nix +++ b/pkgs/development/python-modules/gps3/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gpsoauth/default.nix b/pkgs/development/python-modules/gpsoauth/default.nix index 08fdfa6d01c0..cfda3e8db2d5 100644 --- a/pkgs/development/python-modules/gpsoauth/default.nix +++ b/pkgs/development/python-modules/gpsoauth/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, pycryptodomex -, pythonOlder -, pythonRelaxDepsHook -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + pycryptodomex, + pythonOlder, + pythonRelaxDepsHook, + requests, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { requests ]; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; # upstream tests are not very comprehensive doCheck = false; diff --git a/pkgs/development/python-modules/gpt-2-simple/default.nix b/pkgs/development/python-modules/gpt-2-simple/default.nix index aae6dfbfbc40..109ee08b34fe 100644 --- a/pkgs/development/python-modules/gpt-2-simple/default.nix +++ b/pkgs/development/python-modules/gpt-2-simple/default.nix @@ -1,5 +1,14 @@ -{ lib, buildPythonPackage, fetchFromGitHub, regex, requests, tqdm, numpy -, toposort, tensorflow }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + regex, + requests, + tqdm, + numpy, + toposort, + tensorflow, +}: buildPythonPackage rec { pname = "gpt-2-simple"; @@ -13,13 +22,19 @@ buildPythonPackage rec { hash = "sha256-WwD4sDcc28zXEOISJsq8e+rgaNrrgIy79Wa4J3E7Ovc="; }; - propagatedBuildInputs = [ regex requests tqdm numpy toposort tensorflow ]; + propagatedBuildInputs = [ + regex + requests + tqdm + numpy + toposort + tensorflow + ]; dontCheck = true; # no tests in upstream meta = with lib; { - description = - "Easily retrain OpenAI's GPT-2 text-generating model on new texts"; + description = "Easily retrain OpenAI's GPT-2 text-generating model on new texts"; homepage = "https://github.com/minimaxir/gpt-2-simple"; license = licenses.mit; maintainers = with maintainers; [ ckie ]; diff --git a/pkgs/development/python-modules/gptcache/default.nix b/pkgs/development/python-modules/gptcache/default.nix index 8b5405507292..bd7e8276ef98 100644 --- a/pkgs/development/python-modules/gptcache/default.nix +++ b/pkgs/development/python-modules/gptcache/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cachetools -, numpy -, pythonOlder -, redis -, redis-om -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cachetools, + numpy, + pythonOlder, + redis, + redis-om, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gpuctypes/default.nix b/pkgs/development/python-modules/gpuctypes/default.nix index e5987f78ee07..32a61a655093 100644 --- a/pkgs/development/python-modules/gpuctypes/default.nix +++ b/pkgs/development/python-modules/gpuctypes/default.nix @@ -1,20 +1,21 @@ -{ lib -, config -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, addDriverRunpath -, cudaSupport ? config.cudaSupport -, rocmSupport ? config.rocmSupport -, cudaPackages -, setuptools -, ocl-icd -, rocmPackages -, pytestCheckHook -, gpuctypes -, testCudaRuntime ? false -, testOpenclRuntime ? false -, testRocmRuntime ? false +{ + lib, + config, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + addDriverRunpath, + cudaSupport ? config.cudaSupport, + rocmSupport ? config.rocmSupport, + cudaPackages, + setuptools, + ocl-icd, + rocmPackages, + pytestCheckHook, + gpuctypes, + testCudaRuntime ? false, + testOpenclRuntime ? false, + testRocmRuntime ? false, }: assert testCudaRuntime -> cudaSupport; assert testRocmRuntime -> rocmSupport; @@ -36,75 +37,68 @@ buildPythonPackage rec { src = ./0001-fix-dlopen-cuda.patch; inherit (addDriverRunpath) driverLink; libnvrtc = - if cudaSupport - then "${lib.getLib cudaPackages.cuda_nvrtc}/lib/libnvrtc.so" - else "Please import nixpkgs with `config.cudaSupport = true`"; + if cudaSupport then + "${lib.getLib cudaPackages.cuda_nvrtc}/lib/libnvrtc.so" + else + "Please import nixpkgs with `config.cudaSupport = true`"; }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - postPatch = '' - substituteInPlace gpuctypes/opencl.py \ - --replace "ctypes.util.find_library('OpenCL')" "'${ocl-icd}/lib/libOpenCL.so'" - '' - # hipGetDevicePropertiesR0600 is a symbol from rocm-6. We are currently at rocm-5. - # We are not sure that this works. Remove when rocm gets updated to version 6. - + lib.optionalString rocmSupport '' - substituteInPlace gpuctypes/hip.py \ - --replace "/opt/rocm/lib/libamdhip64.so" "${rocmPackages.clr}/lib/libamdhip64.so" \ - --replace "/opt/rocm/lib/libhiprtc.so" "${rocmPackages.clr}/lib/libhiprtc.so" \ - --replace "hipGetDevicePropertiesR0600" "hipGetDeviceProperties" + postPatch = + '' + substituteInPlace gpuctypes/opencl.py \ + --replace "ctypes.util.find_library('OpenCL')" "'${ocl-icd}/lib/libOpenCL.so'" + '' + # hipGetDevicePropertiesR0600 is a symbol from rocm-6. We are currently at rocm-5. + # We are not sure that this works. Remove when rocm gets updated to version 6. + + lib.optionalString rocmSupport '' + substituteInPlace gpuctypes/hip.py \ + --replace "/opt/rocm/lib/libamdhip64.so" "${rocmPackages.clr}/lib/libamdhip64.so" \ + --replace "/opt/rocm/lib/libhiprtc.so" "${rocmPackages.clr}/lib/libhiprtc.so" \ + --replace "hipGetDevicePropertiesR0600" "hipGetDeviceProperties" - substituteInPlace gpuctypes/comgr.py \ - --replace "/opt/rocm/lib/libamd_comgr.so" "${rocmPackages.rocm-comgr}/lib/libamd_comgr.so" - ''; + substituteInPlace gpuctypes/comgr.py \ + --replace "/opt/rocm/lib/libamd_comgr.so" "${rocmPackages.rocm-comgr}/lib/libamd_comgr.so" + ''; pythonImportsCheck = [ "gpuctypes" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = lib.optionals (!testOpenclRuntime) [ - "test/test_opencl.py" - ] ++ lib.optionals (!rocmSupport) [ - "test/test_hip.py" - ] ++ lib.optionals (!cudaSupport) [ - "test/test_cuda.py" - ]; + disabledTestPaths = + lib.optionals (!testOpenclRuntime) [ "test/test_opencl.py" ] + ++ lib.optionals (!rocmSupport) [ "test/test_hip.py" ] + ++ lib.optionals (!cudaSupport) [ "test/test_cuda.py" ]; # Require GPU access to run (not available in the sandbox) - pytestFlagsArray = lib.optionals (!testCudaRuntime) [ - "-k" "'not TestCUDADevice'" - ] ++ lib.optionals (!testRocmRuntime) [ - "-k" "'not TestHIPDevice'" - ] ++ lib.optionals (testCudaRuntime || testOpenclRuntime || testRocmRuntime) [ - "-v" - ]; + pytestFlagsArray = + lib.optionals (!testCudaRuntime) [ + "-k" + "'not TestCUDADevice'" + ] + ++ lib.optionals (!testRocmRuntime) [ + "-k" + "'not TestHIPDevice'" + ] + ++ lib.optionals (testCudaRuntime || testOpenclRuntime || testRocmRuntime) [ "-v" ]; # Running these tests requires special configuration on the builder. # e.g. https://github.com/NixOS/nixpkgs/pull/256230 implements a nix # pre-build hook which exposes the devices and the drivers in the sandbox # based on requiredSystemFeatures: - requiredSystemFeatures = lib.optionals testCudaRuntime [ - "cuda" - ] ++ lib.optionals testOpenclRuntime [ - "opencl" - ] ++ lib.optionals testRocmRuntime [ - "rocm" - ]; + requiredSystemFeatures = + lib.optionals testCudaRuntime [ "cuda" ] + ++ lib.optionals testOpenclRuntime [ "opencl" ] + ++ lib.optionals testRocmRuntime [ "rocm" ]; passthru.gpuChecks = { cuda = gpuctypes.override { cudaSupport = true; testCudaRuntime = true; }; - opencl = gpuctypes.override { - testOpenclRuntime = true; - }; + opencl = gpuctypes.override { testOpenclRuntime = true; }; rocm = gpuctypes.override { rocmSupport = true; testRocmRuntime = true; @@ -122,6 +116,10 @@ buildPythonPackage rec { description = "Ctypes wrappers for HIP, CUDA, and OpenCL"; homepage = "https://github.com/tinygrad/gpuctypes"; license = licenses.mit; - maintainers = with maintainers; [ GaetanLepage matthewcroughan wozeparrot ]; + maintainers = with maintainers; [ + GaetanLepage + matthewcroughan + wozeparrot + ]; }; } diff --git a/pkgs/development/python-modules/gpustat/default.nix b/pkgs/development/python-modules/gpustat/default.nix index e6a35531f55f..d573948c2852 100644 --- a/pkgs/development/python-modules/gpustat/default.nix +++ b/pkgs/development/python-modules/gpustat/default.nix @@ -1,14 +1,15 @@ -{ lib -, blessed -, buildPythonPackage -, fetchPypi -, mockito -, nvidia-ml-py -, psutil -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools-scm +{ + lib, + blessed, + buildPythonPackage, + fetchPypi, + mockito, + nvidia-ml-py, + psutil, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-wY0+1VGPwWMAxC1pTevHCuuzvlXK6R8dtk1jtfqK+dg="; }; - pythonRelaxDeps = [ - "nvidia-ml-py" - ]; + pythonRelaxDeps = [ "nvidia-ml-py" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "gpustat" - ]; + pythonImportsCheck = [ "gpustat" ]; meta = with lib; { description = "A simple command-line utility for querying and monitoring GPU status"; diff --git a/pkgs/development/python-modules/gpxpy/default.nix b/pkgs/development/python-modules/gpxpy/default.nix index 2f8e07cccf45..640f2b4d6fe1 100644 --- a/pkgs/development/python-modules/gpxpy/default.nix +++ b/pkgs/development/python-modules/gpxpy/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchFromGitHub, buildPythonPackage, python, lxml, pythonOlder }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python, + lxml, + pythonOlder, +}: buildPythonPackage rec { pname = "gpxpy"; diff --git a/pkgs/development/python-modules/gpy/default.nix b/pkgs/development/python-modules/gpy/default.nix index 33da65d155cc..176200e95c8e 100644 --- a/pkgs/development/python-modules/gpy/default.nix +++ b/pkgs/development/python-modules/gpy/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools -, numpy -, scipy -, six -, paramz -, matplotlib -, cython +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, + numpy, + scipy, + six, + paramz, + matplotlib, + cython, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gpytorch/default.nix b/pkgs/development/python-modules/gpytorch/default.nix index c4664bc04ee7..2f7c4502bfe1 100644 --- a/pkgs/development/python-modules/gpytorch/default.nix +++ b/pkgs/development/python-modules/gpytorch/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, linear-operator -, scikit-learn -, setuptools -, setuptools-scm -, wheel -, torch -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + linear-operator, + scikit-learn, + setuptools, + setuptools-scm, + wheel, + torch, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { torch ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gpytorch" ]; diff --git a/pkgs/development/python-modules/gql/default.nix b/pkgs/development/python-modules/gql/default.nix index 25b5ed25bae4..1a664c0e936e 100644 --- a/pkgs/development/python-modules/gql/default.nix +++ b/pkgs/development/python-modules/gql/default.nix @@ -1,26 +1,27 @@ -{ lib -, aiofiles -, aiohttp -, anyio -, backoff -, botocore -, buildPythonPackage -, fetchFromGitHub -, graphql-core -, httpx -, mock -, parse -, pytest-asyncio -, pytest-console-scripts -, pytestCheckHook -, pythonOlder -, requests -, requests-toolbelt -, setuptools -, urllib3 -, vcrpy -, websockets -, yarl +{ + lib, + aiofiles, + aiohttp, + anyio, + backoff, + botocore, + buildPythonPackage, + fetchFromGitHub, + graphql-core, + httpx, + mock, + parse, + pytest-asyncio, + pytest-console-scripts, + pytestCheckHook, + pythonOlder, + requests, + requests-toolbelt, + setuptools, + urllib3, + vcrpy, + websockets, + yarl, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { "websockets>=10,<12;python_version>'3.6'" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ anyio @@ -74,32 +73,22 @@ buildPythonPackage rec { urllib3 websockets ]; - aiohttp = [ - aiohttp - ]; - httpx = [ - httpx - ]; + aiohttp = [ aiohttp ]; + httpx = [ httpx ]; requests = [ requests requests-toolbelt urllib3 ]; - websockets = [ - websockets - ]; - botocore = [ - botocore - ]; + websockets = [ websockets ]; + botocore = [ botocore ]; }; preCheck = '' export PATH=$out/bin:$PATH ''; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; disabledTests = [ # Tests requires network access @@ -129,9 +118,7 @@ buildPythonPackage rec { "tests/test_websocket_subscription.py" ]; - pythonImportsCheck = [ - "gql" - ]; + pythonImportsCheck = [ "gql" ]; meta = with lib; { description = "GraphQL client in Python"; diff --git a/pkgs/development/python-modules/grad-cam/default.nix b/pkgs/development/python-modules/grad-cam/default.nix index 42d65ae433b7..b069f3300164 100644 --- a/pkgs/development/python-modules/grad-cam/default.nix +++ b/pkgs/development/python-modules/grad-cam/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, matplotlib -, numpy -, opencv4 -, pillow -, scikit-learn -, setuptools -, torch -, torchvision -, ttach -, tqdm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + matplotlib, + numpy, + opencv4, + pillow, + scikit-learn, + setuptools, + torch, + torchvision, + ttach, + tqdm, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace "opencv-python" "opencv" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ matplotlib @@ -47,11 +46,9 @@ buildPythonPackage rec { ]; # Let the user bring their own instance (as with torchmetrics) - buildInputs = [ - torch - ]; + buildInputs = [ torch ]; - doCheck = false; # every nontrivial test tries to download a pretrained model + doCheck = false; # every nontrivial test tries to download a pretrained model pythonImportsCheck = [ "pytorch_grad_cam" diff --git a/pkgs/development/python-modules/gradient-statsd/default.nix b/pkgs/development/python-modules/gradient-statsd/default.nix index d7c5c258ab5e..4e6dc0f1424d 100644 --- a/pkgs/development/python-modules/gradient-statsd/default.nix +++ b/pkgs/development/python-modules/gradient-statsd/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, certifi -, chardet -, datadog -, decorator -, fetchPypi -, idna -, requests -, urllib3 -, pythonOlder +{ + lib, + buildPythonPackage, + certifi, + chardet, + datadog, + decorator, + fetchPypi, + idna, + requests, + urllib3, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { urllib3 ]; - pythonImportsCheck = [ - "gradient_statsd" - ]; + pythonImportsCheck = [ "gradient_statsd" ]; # Pypi does not contain tests doCheck = false; diff --git a/pkgs/development/python-modules/gradient-utils/default.nix b/pkgs/development/python-modules/gradient-utils/default.nix index 3d3cd47cf41e..b384b85e0f22 100644 --- a/pkgs/development/python-modules/gradient-utils/default.nix +++ b/pkgs/development/python-modules/gradient-utils/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hyperopt -, mock -, numpy -, poetry-core -, prometheus-client -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hyperopt, + mock, + numpy, + poetry-core, + prometheus-client, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-swnl0phdOsBSP8AX/OySI/aYI9z60Ss3SsJox/mb9KY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ hyperopt @@ -59,9 +58,7 @@ buildPythonPackage rec { "tests/integration/test_metrics.py" ]; - pythonImportsCheck = [ - "gradient_utils" - ]; + pythonImportsCheck = [ "gradient_utils" ]; meta = with lib; { description = "Python utils and helpers library for Gradient"; diff --git a/pkgs/development/python-modules/gradient/default.nix b/pkgs/development/python-modules/gradient/default.nix index 584de835e0d0..be0c27eb49fd 100644 --- a/pkgs/development/python-modules/gradient/default.nix +++ b/pkgs/development/python-modules/gradient/default.nix @@ -1,24 +1,25 @@ -{ lib -, attrs -, boto3 -, buildPythonPackage -, click-completion -, click-didyoumean -, click-help-colors -, colorama -, fetchPypi -, gradient-statsd -, gradient-utils -, gql -, halo -, marshmallow -, progressbar2 -, pyopenssl -, pyyaml -, requests -, requests-toolbelt -, terminaltables -, websocket-client +{ + lib, + attrs, + boto3, + buildPythonPackage, + click-completion, + click-didyoumean, + click-help-colors, + colorama, + fetchPypi, + gradient-statsd, + gradient-utils, + gql, + halo, + marshmallow, + progressbar2, + pyopenssl, + pyyaml, + requests, + requests-toolbelt, + terminaltables, + websocket-client, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gradio-pdf/default.nix b/pkgs/development/python-modules/gradio-pdf/default.nix index 4a5128455e6d..2a054ff9dde5 100644 --- a/pkgs/development/python-modules/gradio-pdf/default.nix +++ b/pkgs/development/python-modules/gradio-pdf/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-fancy-pypi-readme -, hatch-requirements-txt -, hatchling -, gradio -, gradio-client +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-fancy-pypi-readme, + hatch-requirements-txt, + hatchling, + gradio, + gradio-client, }: buildPythonPackage rec { @@ -25,16 +26,10 @@ buildPythonPackage rec { hatchling ]; - dependencies = [ - gradio-client - ]; + dependencies = [ gradio-client ]; - buildInputs = [ - gradio.sans-reverse-dependencies - ]; - disallowedReferences = [ - gradio.sans-reverse-dependencies - ]; + buildInputs = [ gradio.sans-reverse-dependencies ]; + disallowedReferences = [ gradio.sans-reverse-dependencies ]; pythonImportsCheck = [ "gradio_pdf" ]; diff --git a/pkgs/development/python-modules/gradio/client.nix b/pkgs/development/python-modules/gradio/client.nix index bbf4d468ce69..ed16c4cbace6 100644 --- a/pkgs/development/python-modules/gradio/client.nix +++ b/pkgs/development/python-modules/gradio/client.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gitUpdater -, pythonOlder -, pythonRelaxDepsHook -# pyproject -, hatchling -, hatch-requirements-txt -, hatch-fancy-pypi-readme -# runtime -, setuptools -, fsspec -, httpx -, huggingface-hub -, packaging -, requests -, typing-extensions -, websockets -# checkInputs -, pytestCheckHook -, pytest-asyncio -, pydub -, rich -, tomlkit -, gradio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gitUpdater, + pythonOlder, + pythonRelaxDepsHook, + # pyproject + hatchling, + hatch-requirements-txt, + hatch-fancy-pypi-readme, + # runtime + setuptools, + fsspec, + httpx, + huggingface-hub, + packaging, + requests, + typing-extensions, + websockets, + # checkInputs + pytestCheckHook, + pytest-asyncio, + pydub, + rich, + tomlkit, + gradio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gradio/default.nix b/pkgs/development/python-modules/gradio/default.nix index d5fc508e1622..3568ae9d1d82 100644 --- a/pkgs/development/python-modules/gradio/default.nix +++ b/pkgs/development/python-modules/gradio/default.nix @@ -1,63 +1,64 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook -, writeShellScriptBin -, gradio +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, + writeShellScriptBin, + gradio, -# pyproject -, hatchling -, hatch-requirements-txt -, hatch-fancy-pypi-readme + # pyproject + hatchling, + hatch-requirements-txt, + hatch-fancy-pypi-readme, -# runtime -, setuptools -, aiofiles -, altair -, diffusers -, fastapi -, ffmpy -, gradio-client -, httpx -, huggingface-hub -, importlib-resources -, jinja2 -, markupsafe -, matplotlib -, numpy -, orjson -, packaging -, pandas -, pillow -, pydantic -, python-multipart -, pydub -, pyyaml -, semantic-version -, typing-extensions -, uvicorn -, typer -, tomlkit + # runtime + setuptools, + aiofiles, + altair, + diffusers, + fastapi, + ffmpy, + gradio-client, + httpx, + huggingface-hub, + importlib-resources, + jinja2, + markupsafe, + matplotlib, + numpy, + orjson, + packaging, + pandas, + pillow, + pydantic, + python-multipart, + pydub, + pyyaml, + semantic-version, + typing-extensions, + uvicorn, + typer, + tomlkit, -# oauth -, authlib -, itsdangerous + # oauth + authlib, + itsdangerous, -# check -, pytestCheckHook -, boto3 -, gradio-pdf -, ffmpeg -, ipython -, pytest-asyncio -, respx -, scikit-image -, torch -, tqdm -, transformers -, vega-datasets + # check + pytestCheckHook, + boto3, + gradio-pdf, + ffmpeg, + ipython, + pytest-asyncio, + respx, + scikit-image, + torch, + tqdm, + transformers, + vega-datasets, }: buildPythonPackage rec { @@ -82,9 +83,7 @@ buildPythonPackage rec { rm -rf venv/ ''; - pythonRelaxDeps = [ - "tomlkit" - ]; + pythonRelaxDeps = [ "tomlkit" ]; pythonRemoveDeps = [ # our package is presented as a binary, not a python lib - and @@ -151,19 +150,19 @@ buildPythonPackage rec { # mock calls to `shutil.which(...)` (writeShellScriptBin "npm" "false") - ] - ++ passthru.optional-dependencies.oauth - ++ pydantic.passthru.optional-dependencies.email; + ] ++ passthru.optional-dependencies.oauth ++ pydantic.passthru.optional-dependencies.email; # Add a pytest hook skipping tests that access network, marking them as "Expected fail" (xfail). # We additionally xfail FileNotFoundError, since the gradio devs often fail to upload test assets to pypi. - preCheck = '' - export HOME=$TMPDIR - cat ${./conftest-skip-network-errors.py} >> test/conftest.py - '' + lib.optionalString stdenv.isDarwin '' - # OSError: [Errno 24] Too many open files - ulimit -n 4096 - ''; + preCheck = + '' + export HOME=$TMPDIR + cat ${./conftest-skip-network-errors.py} >> test/conftest.py + '' + + lib.optionalString stdenv.isDarwin '' + # OSError: [Errno 24] Too many open files + ulimit -n 4096 + ''; disabledTests = [ # Actually broken @@ -197,7 +196,7 @@ buildPythonPackage rec { "test/test_interfaces.py" ]; pytestFlagsArray = [ - "-x" # abort on first failure + "-x" # abort on first failure "-m 'not flaky'" #"-W" "ignore" # uncomment for debugging help ]; @@ -214,17 +213,19 @@ buildPythonPackage rec { # Cyclic dependencies are fun! # This is gradio without gradio-client and gradio-pdf - passthru.sans-reverse-dependencies = (gradio.override (old: { + passthru.sans-reverse-dependencies = + (gradio.override (old: { gradio-client = null; gradio-pdf = null; - })).overridePythonAttrs (old: { - pname = old.pname + "-sans-reverse-dependencies"; - pythonRemoveDeps = (old.pythonRemoveDeps or []) ++ [ "gradio-client" ]; - doInstallCheck = false; - doCheck = false; - pythonImportsCheck = null; - dontCheckRuntimeDeps = true; - }); + })).overridePythonAttrs + (old: { + pname = old.pname + "-sans-reverse-dependencies"; + pythonRemoveDeps = (old.pythonRemoveDeps or [ ]) ++ [ "gradio-client" ]; + doInstallCheck = false; + doCheck = false; + pythonImportsCheck = null; + dontCheckRuntimeDeps = true; + }); meta = with lib; { homepage = "https://www.gradio.app/"; diff --git a/pkgs/development/python-modules/grafanalib/default.nix b/pkgs/development/python-modules/grafanalib/default.nix index aba3fbe4ec95..61a992cb5139 100644 --- a/pkgs/development/python-modules/grafanalib/default.nix +++ b/pkgs/development/python-modules/grafanalib/default.nix @@ -1,11 +1,12 @@ -{ attrs -, buildPythonPackage -, fetchFromGitHub -, fetchPypi -, lib -, pytestCheckHook -, pythonOlder -, setuptools +{ + attrs, + buildPythonPackage, + fetchFromGitHub, + fetchPypi, + lib, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,21 +23,13 @@ buildPythonPackage rec { hash = "sha256-vXnyAfC9avKz8U4+MJVnu2zoPD0nR2qarWYidhEPW5s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "grafanalib" - ]; + pythonImportsCheck = [ "grafanalib" ]; meta = with lib; { description = "Library for building Grafana dashboards"; diff --git a/pkgs/development/python-modules/grammalecte/default.nix b/pkgs/development/python-modules/grammalecte/default.nix index 395f97a62d37..316bd97fe392 100644 --- a/pkgs/development/python-modules/grammalecte/default.nix +++ b/pkgs/development/python-modules/grammalecte/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchurl -, bottle -, isPy3k +{ + lib, + buildPythonPackage, + fetchurl, + bottle, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/grandalf/default.nix b/pkgs/development/python-modules/grandalf/default.nix index 1852364fbfe2..c447d061e4a2 100644 --- a/pkgs/development/python-modules/grandalf/default.nix +++ b/pkgs/development/python-modules/grandalf/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyparsing -, future -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyparsing, + future, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { future ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - patches = [ - ./no-setup-requires-pytestrunner.patch - ]; + patches = [ ./no-setup-requires-pytestrunner.patch ]; - pythonImportsCheck = [ - "grandalf" - ]; + pythonImportsCheck = [ "grandalf" ]; meta = with lib; { description = "Module for experimentations with graphs and drawing algorithms"; diff --git a/pkgs/development/python-modules/graph-tool/default.nix b/pkgs/development/python-modules/graph-tool/default.nix index 61545e3a2ec9..460adeaa54e5 100644 --- a/pkgs/development/python-modules/graph-tool/default.nix +++ b/pkgs/development/python-modules/graph-tool/default.nix @@ -1,24 +1,25 @@ -{ buildPythonPackage -, lib -, fetchurl +{ + buildPythonPackage, + lib, + fetchurl, -, autoreconfHook -, boost -, cairomm -, cgal -, expat -, gmp -, gobject-introspection -, gtk3 -, matplotlib -, mpfr -, numpy -, pkg-config -, pycairo -, pygobject3 -, python -, scipy -, sparsehash + autoreconfHook, + boost, + cairomm, + cgal, + expat, + gmp, + gobject-introspection, + gtk3, + matplotlib, + mpfr, + numpy, + pkg-config, + pycairo, + pygobject3, + python, + scipy, + sparsehash, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/grapheme/default.nix b/pkgs/development/python-modules/grapheme/default.nix index 965b1a1d2197..d16224cca557 100644 --- a/pkgs/development/python-modules/grapheme/default.nix +++ b/pkgs/development/python-modules/grapheme/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { # https://github.com/alvinlindstam/grapheme/issues/18 doCheck = false; - pythonImportsCheck = [ - "grapheme" - ]; + pythonImportsCheck = [ "grapheme" ]; meta = with lib; { description = "Python package for grapheme aware string handling"; diff --git a/pkgs/development/python-modules/graphene-django/default.nix b/pkgs/development/python-modules/graphene-django/default.nix index a7248d1b8065..8453df70b031 100644 --- a/pkgs/development/python-modules/graphene-django/default.nix +++ b/pkgs/development/python-modules/graphene-django/default.nix @@ -1,22 +1,23 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -, graphene -, graphql-core -, django -, djangorestframework -, promise -, text-unidecode + graphene, + graphql-core, + django, + djangorestframework, + promise, + text-unidecode, -, django-filter -, mock -, py -, pytest-django -, pytest-random-order -, pytest7CheckHook + django-filter, + mock, + py, + pytest-django, + pytest-random-order, + pytest7CheckHook, }: buildPythonPackage rec { @@ -60,16 +61,18 @@ buildPythonPackage rec { pytest7CheckHook ]; - disabledTests = [ - # https://github.com/graphql-python/graphene-django/issues/1510 - "test_should_filepath_convert_string" - "test_should_choice_convert_enum" - "test_should_multiplechoicefield_convert_to_list_of_enum" - "test_perform_mutate_success_with_enum_choice_field" - ] ++ lib.optionals stdenv.isDarwin [ - # this test touches files in the "/" directory and fails in darwin sandbox - "test_should_filepath_convert_string" - ]; + disabledTests = + [ + # https://github.com/graphql-python/graphene-django/issues/1510 + "test_should_filepath_convert_string" + "test_should_choice_convert_enum" + "test_should_multiplechoicefield_convert_to_list_of_enum" + "test_perform_mutate_success_with_enum_choice_field" + ] + ++ lib.optionals stdenv.isDarwin [ + # this test touches files in the "/" directory and fails in darwin sandbox + "test_should_filepath_convert_string" + ]; meta = with lib; { description = "Integrate GraphQL into your Django project"; diff --git a/pkgs/development/python-modules/graphene/default.nix b/pkgs/development/python-modules/graphene/default.nix index e6de2b449cf4..14fcdeb744e7 100644 --- a/pkgs/development/python-modules/graphene/default.nix +++ b/pkgs/development/python-modules/graphene/default.nix @@ -1,17 +1,18 @@ -{ lib -, aniso8601 -, buildPythonPackage -, fetchFromGitHub -, setuptools -, graphql-core -, graphql-relay -, pytest-asyncio -, pytest-benchmark -, pytest-mock -, pytest7CheckHook -, pythonOlder -, pytz -, snapshottest +{ + lib, + aniso8601, + buildPythonPackage, + fetchFromGitHub, + setuptools, + graphql-core, + graphql-relay, + pytest-asyncio, + pytest-benchmark, + pytest-mock, + pytest7CheckHook, + pythonOlder, + pytz, + snapshottest, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-DGxicCXZp9kW/OFkr0lAWaQ+GaECx+HD8+X4aW63vgQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aniso8601 @@ -47,13 +46,9 @@ buildPythonPackage rec { snapshottest ]; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; - pythonImportsCheck = [ - "graphene" - ]; + pythonImportsCheck = [ "graphene" ]; meta = with lib; { description = "GraphQL Framework for Python"; diff --git a/pkgs/development/python-modules/graphite-web/default.nix b/pkgs/development/python-modules/graphite-web/default.nix index d80ed27297cc..8da175e4f573 100644 --- a/pkgs/development/python-modules/graphite-web/default.nix +++ b/pkgs/development/python-modules/graphite-web/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, python -, cairocffi -, django -, django-tagging -, fetchFromGitHub -, fetchpatch -, gunicorn -, mock -, pyparsing -, python-memcached -, pythonOlder -, pytz -, six -, txamqp -, urllib3 -, whisper +{ + lib, + stdenv, + buildPythonPackage, + python, + cairocffi, + django, + django-tagging, + fetchFromGitHub, + fetchpatch, + gunicorn, + mock, + pyparsing, + python-memcached, + pythonOlder, + pytz, + six, + txamqp, + urllib3, + whisper, }: buildPythonPackage rec { @@ -92,14 +93,15 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "graphite" - ]; + pythonImportsCheck = [ "graphite" ]; meta = with lib; { description = "Enterprise scalable realtime graphing"; homepage = "http://graphiteapp.org/"; license = licenses.asl20; - maintainers = with maintainers; [ offline basvandijk ]; + maintainers = with maintainers; [ + offline + basvandijk + ]; }; } diff --git a/pkgs/development/python-modules/graphlib-backport/default.nix b/pkgs/development/python-modules/graphlib-backport/default.nix index 54d166a88ba2..7f91976b4c21 100644 --- a/pkgs/development/python-modules/graphlib-backport/default.nix +++ b/pkgs/development/python-modules/graphlib-backport/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools -, poetry-core +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + poetry-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/graphql-core/default.nix b/pkgs/development/python-modules/graphql-core/default.nix index 0d866a29bd28..7986f0cd3246 100644 --- a/pkgs/development/python-modules/graphql-core/default.nix +++ b/pkgs/development/python-modules/graphql-core/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, py -, pytest-benchmark -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + py, + pytest-benchmark, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "graphql" - ]; + pythonImportsCheck = [ "graphql" ]; meta = with lib; { description = "Port of graphql-js to Python"; diff --git a/pkgs/development/python-modules/graphql-relay/default.nix b/pkgs/development/python-modules/graphql-relay/default.nix index ac91b749070d..f34b86e5d4a6 100644 --- a/pkgs/development/python-modules/graphql-relay/default.nix +++ b/pkgs/development/python-modules/graphql-relay/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, pythonOlder + pythonOlder, -# build -, poetry-core + # build + poetry-core, -# runtime -, graphql-core -, typing-extensions + # runtime + graphql-core, + typing-extensions, -# tests -, pytest-asyncio -, pytest-describe -, pytestCheckHook + # tests + pytest-asyncio, + pytest-describe, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,15 +38,9 @@ buildPythonPackage rec { --replace ', "setuptools>=59,<70"' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - graphql-core - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = [ graphql-core ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/graphql-server-core/default.nix b/pkgs/development/python-modules/graphql-server-core/default.nix index a098f9c85e70..7d19247c2a34 100644 --- a/pkgs/development/python-modules/graphql-server-core/default.nix +++ b/pkgs/development/python-modules/graphql-server-core/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, graphql-core -, promise -, fetchpatch -, pythonOlder -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + lib, + graphql-core, + promise, + fetchpatch, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # fail with: cannot import name 'format_error' from 'graphql' doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Core package for using GraphQL in a custom server easily"; diff --git a/pkgs/development/python-modules/graphql-subscription-manager/default.nix b/pkgs/development/python-modules/graphql-subscription-manager/default.nix index feaf6432fedd..a0307dfa8032 100644 --- a/pkgs/development/python-modules/graphql-subscription-manager/default.nix +++ b/pkgs/development/python-modules/graphql-subscription-manager/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, websockets +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + websockets, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - pythonImportsCheck = [ - "graphql_subscription_manager" - ]; + pythonImportsCheck = [ "graphql_subscription_manager" ]; meta = with lib; { description = "Python3 library for graphql subscription manager"; diff --git a/pkgs/development/python-modules/graphqlclient/default.nix b/pkgs/development/python-modules/graphqlclient/default.nix index 81bdddf00ee4..34d7889513db 100644 --- a/pkgs/development/python-modules/graphqlclient/default.nix +++ b/pkgs/development/python-modules/graphqlclient/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "0b6r3ng78qsn7c9zksx4rgdkmp5296d40kbmjn8q614cz0ymyc5k"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/graphtage/default.nix b/pkgs/development/python-modules/graphtage/default.nix index 815e6775c177..2bc77466146e 100644 --- a/pkgs/development/python-modules/graphtage/default.nix +++ b/pkgs/development/python-modules/graphtage/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, colorama -, intervaltree -, json5 -, pyyaml -, scipy -, tqdm -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + colorama, + intervaltree, + json5, + pyyaml, + scipy, + tqdm, + typing-extensions, }: buildPythonPackage rec { @@ -41,13 +42,9 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "graphtage" - ]; + pythonImportsCheck = [ "graphtage" ]; meta = with lib; { description = "A utility to diff tree-like files such as JSON and XML"; diff --git a/pkgs/development/python-modules/graphviz/default.nix b/pkgs/development/python-modules/graphviz/default.nix index 9d783b7bde22..2bf0cfe01c11 100644 --- a/pkgs/development/python-modules/graphviz/default.nix +++ b/pkgs/development/python-modules/graphviz/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, substituteAll -, graphviz-nox -, xdg-utils -, makeFontsConf -, freefont_ttf -, setuptools -, mock -, pytest_7 -, pytest-mock -, python +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + graphviz-nox, + xdg-utils, + makeFontsConf, + freefont_ttf, + setuptools, + mock, + pytest_7, + pytest-mock, + python, }: buildPythonPackage rec { @@ -43,13 +44,9 @@ buildPythonPackage rec { ''; # Fontconfig error: Cannot load default config file - FONTCONFIG_FILE = makeFontsConf { - fontDirectories = [ freefont_ttf ]; - }; + FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/grappelli-safe/default.nix b/pkgs/development/python-modules/grappelli-safe/default.nix index 916ac606473b..ca940f212b45 100644 --- a/pkgs/development/python-modules/grappelli-safe/default.nix +++ b/pkgs/development/python-modules/grappelli-safe/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-7jSz4qNxFJix+No9naqKEjnv3yVaISGBdCtqWJD6wDk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "grappelli_safe" - ]; + pythonImportsCheck = [ "grappelli_safe" ]; meta = with lib; { description = "A snapshot of django-grappelli for the Mezzanine CMS"; diff --git a/pkgs/development/python-modules/graspologic/default.nix b/pkgs/development/python-modules/graspologic/default.nix index 745cf90b4b9e..de84669d5869 100644 --- a/pkgs/development/python-modules/graspologic/default.nix +++ b/pkgs/development/python-modules/graspologic/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pytest-cov -, hyppo -, matplotlib -, networkx -, numpy -, scikit-learn -, scipy -, seaborn +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pytest-cov, + hyppo, + matplotlib, + networkx, + numpy, + scikit-learn, + scipy, + seaborn, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-hd3OyV95N8vhc4s50HbKkrcUOeSegn66Dkw7dixim00="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ hyppo @@ -42,14 +41,21 @@ buildPythonPackage rec { seaborn ]; - nativeCheckInputs = [ pytestCheckHook pytest-cov ]; - pytestFlagsArray = [ "tests" "--ignore=docs" "--ignore=tests/test_sklearn.py" ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov + ]; + pytestFlagsArray = [ + "tests" + "--ignore=docs" + "--ignore=tests/test_sklearn.py" + ]; disabledTests = [ "gridplot_outputs" ]; meta = with lib; { homepage = "https://graspologic.readthedocs.io"; description = "A package for graph statistical algorithms"; - license = licenses.asl20; # changing to `licenses.mit` in next release + license = licenses.asl20; # changing to `licenses.mit` in next release maintainers = with maintainers; [ bcdarwin ]; # graspologic-native is not available broken = true; diff --git a/pkgs/development/python-modules/greatfet/default.nix b/pkgs/development/python-modules/greatfet/default.nix index 7f7c53f70ea3..54869f592d66 100644 --- a/pkgs/development/python-modules/greatfet/default.nix +++ b/pkgs/development/python-modules/greatfet/default.nix @@ -1,4 +1,13 @@ -{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + isPy3k, + future, + pyusb, + ipython, + pygreat, +}: buildPythonPackage rec { pname = "greatfet"; @@ -13,7 +22,12 @@ buildPythonPackage rec { disabled = !isPy3k; - propagatedBuildInputs = [ future pyusb ipython pygreat ]; + propagatedBuildInputs = [ + future + pyusb + ipython + pygreat + ]; doCheck = false; diff --git a/pkgs/development/python-modules/greeclimate/default.nix b/pkgs/development/python-modules/greeclimate/default.nix index 30a724c07c44..806dd8681c57 100644 --- a/pkgs/development/python-modules/greeclimate/default.nix +++ b/pkgs/development/python-modules/greeclimate/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, netifaces -, pycryptodome -, pytest-asyncio -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + netifaces, + pycryptodome, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/green/default.nix b/pkgs/development/python-modules/green/default.nix index eef23f6ce0df..4d632b21ca5c 100644 --- a/pkgs/development/python-modules/green/default.nix +++ b/pkgs/development/python-modules/green/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, django -, colorama -, coverage -, unidecode -, lxml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + django, + colorama, + coverage, + unidecode, + lxml, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-pAZ8P5/CpkTtNfU2ZJUGQzROxGLm0uu1vXS3YpcVprE="; }; - patches = [ - ./tests.patch - ]; + patches = [ ./tests.patch ]; postPatch = '' substituteInPlace green/test/test_integration.py \ @@ -45,9 +44,7 @@ buildPythonPackage rec { green.test.test_command ''; - pythonImportsCheck = [ - "green" - ]; + pythonImportsCheck = [ "green" ]; meta = with lib; { description = "Python test runner"; diff --git a/pkgs/development/python-modules/greeneye-monitor/default.nix b/pkgs/development/python-modules/greeneye-monitor/default.nix index aa206825e7f6..c5eb557cd814 100644 --- a/pkgs/development/python-modules/greeneye-monitor/default.nix +++ b/pkgs/development/python-modules/greeneye-monitor/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, siobrultech-protocols +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + siobrultech-protocols, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-7EDuQ+wECcTzxkEufMpg3WSzosWeiwfxcVIVtQi+0BI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp siobrultech-protocols ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "greeneye.monitor" - ]; + pythonImportsCheck = [ "greeneye.monitor" ]; meta = with lib; { description = "Receive data packets from GreenEye Monitor"; diff --git a/pkgs/development/python-modules/greenlet/default.nix b/pkgs/development/python-modules/greenlet/default.nix index 6839b2340961..5c41e8845541 100644 --- a/pkgs/development/python-modules/greenlet/default.nix +++ b/pkgs/development/python-modules/greenlet/default.nix @@ -1,62 +1,63 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# tests -, objgraph -, psutil -, python -, unittestCheckHook + # tests + objgraph, + psutil, + python, + unittestCheckHook, }: -let greenlet = buildPythonPackage rec { - pname = "greenlet"; - version = "3.0.3"; - pyproject = true; +let + greenlet = buildPythonPackage rec { + pname = "greenlet"; + version = "3.0.3"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-QzdEQjUyWVVM4zWZ2otpLVqpb4l21WfUut8mM3H75JE="; - }; + src = fetchPypi { + inherit pname version; + hash = "sha256-QzdEQjUyWVVM4zWZ2otpLVqpb4l21WfUut8mM3H75JE="; + }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - # tests in passthru, infinite recursion via objgraph/graphviz - doCheck = false; + # tests in passthru, infinite recursion via objgraph/graphviz + doCheck = false; - nativeCheckInputs = [ - objgraph - psutil - unittestCheckHook - ]; - - preCheck = '' - pushd ${placeholder "out"}/${python.sitePackages} - ''; - - unittestFlagsArray = [ - "greenlet.tests" - ]; - - postCheck = '' - popd - ''; - - passthru.tests.pytest = greenlet.overridePythonAttrs (_: { doCheck = true; }); - - meta = with lib; { - changelog = "https://github.com/python-greenlet/greenlet/blob/${version}/CHANGES.rst"; - homepage = "https://github.com/python-greenlet/greenlet"; - description = "Module for lightweight in-process concurrent programming"; - license = with licenses; [ - psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory - mit + nativeCheckInputs = [ + objgraph + psutil + unittestCheckHook ]; + + preCheck = '' + pushd ${placeholder "out"}/${python.sitePackages} + ''; + + unittestFlagsArray = [ "greenlet.tests" ]; + + postCheck = '' + popd + ''; + + passthru.tests.pytest = greenlet.overridePythonAttrs (_: { + doCheck = true; + }); + + meta = with lib; { + changelog = "https://github.com/python-greenlet/greenlet/blob/${version}/CHANGES.rst"; + homepage = "https://github.com/python-greenlet/greenlet"; + description = "Module for lightweight in-process concurrent programming"; + license = with licenses; [ + psfl # src/greenlet/slp_platformselect.h & files in src/greenlet/platform/ directory + mit + ]; + }; }; -}; -in greenlet +in +greenlet diff --git a/pkgs/development/python-modules/gremlinpython/default.nix b/pkgs/development/python-modules/gremlinpython/default.nix index 8e78dae9c403..f6539af40f5f 100644 --- a/pkgs/development/python-modules/gremlinpython/default.nix +++ b/pkgs/development/python-modules/gremlinpython/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aenum -, aiohttp -, importlib-metadata -, isodate -, nest-asyncio -, pytestCheckHook -, pythonOlder -, mock -, pyhamcrest -, pyyaml -, radish-bdd +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aenum, + aiohttp, + importlib-metadata, + isodate, + nest-asyncio, + pytestCheckHook, + pythonOlder, + mock, + pyhamcrest, + pyyaml, + radish-bdd, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { ''; # setup-requires requirements - nativeBuildInputs = [ - importlib-metadata - ]; + nativeBuildInputs = [ importlib-metadata ]; propagatedBuildInputs = [ aenum @@ -74,21 +73,23 @@ buildPythonPackage rec { "tests/process/test_dsl.py" "tests/structure/io/test_functionalityio.py" ]; - pytestFlagsArray = let - fullDisabled = builtins.concatStringsSep " or " [ - "test_transaction_commit" - "test_transaction_rollback" - "test_transaction_no_begin" - "test_multi_commit_transaction" - "test_multi_rollback_transaction" - "test_multi_commit_and_rollback" - "test_transaction_close_tx" - "test_transaction_close_tx_from_parent" + pytestFlagsArray = + let + fullDisabled = builtins.concatStringsSep " or " [ + "test_transaction_commit" + "test_transaction_rollback" + "test_transaction_no_begin" + "test_multi_commit_transaction" + "test_multi_rollback_transaction" + "test_multi_commit_and_rollback" + "test_transaction_close_tx" + "test_transaction_close_tx_from_parent" + ]; + in + [ + # disabledTests doesn't quite allow us to be precise enough for this + "-k 'not ((TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid)) or ${fullDisabled})'" ]; - in [ - # disabledTests doesn't quite allow us to be precise enough for this - "-k 'not ((TestFunctionalGraphSONIO and (test_timestamp or test_datetime or test_uuid)) or ${fullDisabled})'" - ]; meta = with lib; { description = "Gremlin-Python implements Gremlin, the graph traversal language of Apache TinkerPop, within the Python language"; diff --git a/pkgs/development/python-modules/grequests/default.nix b/pkgs/development/python-modules/grequests/default.nix index 40ff7ab61d41..41632258f64f 100644 --- a/pkgs/development/python-modules/grequests/default.nix +++ b/pkgs/development/python-modules/grequests/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, gevent +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + gevent, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { # No tests in archive doCheck = false; - propagatedBuildInputs = [ requests gevent ]; + propagatedBuildInputs = [ + requests + gevent + ]; meta = with lib; { description = "Asynchronous HTTP requests"; @@ -26,5 +30,4 @@ buildPythonPackage rec { license = with licenses; [ bsd2 ]; maintainers = with maintainers; [ matejc ]; }; - } diff --git a/pkgs/development/python-modules/greynoise/default.nix b/pkgs/development/python-modules/greynoise/default.nix index 0e127c6ce825..80cc088e7c91 100644 --- a/pkgs/development/python-modules/greynoise/default.nix +++ b/pkgs/development/python-modules/greynoise/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, ansimarkup -, cachetools -, colorama -, click-default-group -, click-repl -, dict2xml -, jinja2 -, more-itertools -, requests -, six -, pytestCheckHook -, mock -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + ansimarkup, + cachetools, + colorama, + click-default-group, + click-repl, + dict2xml, + jinja2, + more-itertools, + requests, + six, + pytestCheckHook, + mock, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gridnet/default.nix b/pkgs/development/python-modules/gridnet/default.nix index 46a3f3f1b839..75ad2c335149 100644 --- a/pkgs/development/python-modules/gridnet/default.nix +++ b/pkgs/development/python-modules/gridnet/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "gridnet" - ]; + pythonImportsCheck = [ "gridnet" ]; meta = with lib; { description = "Asynchronous Python client for NET2GRID devices"; diff --git a/pkgs/development/python-modules/grip/default.nix b/pkgs/development/python-modules/grip/default.nix index f76fd2548b03..f29e44d2f440 100644 --- a/pkgs/development/python-modules/grip/default.nix +++ b/pkgs/development/python-modules/grip/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchFromGitHub -, fetchpatch -# Python bits: -, buildPythonPackage -, pytest -, responses -, docopt -, flask -, markdown -, path-and-address -, pygments -, requests -, tabulate +{ + lib, + fetchFromGitHub, + fetchpatch, + # Python bits: + buildPythonPackage, + pytest, + responses, + docopt, + flask, + markdown, + path-and-address, + pygments, + requests, + tabulate, }: buildPythonPackage rec { @@ -35,13 +36,24 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ pytest responses ]; + nativeCheckInputs = [ + pytest + responses + ]; - propagatedBuildInputs = [ docopt flask markdown path-and-address pygments requests tabulate ]; + propagatedBuildInputs = [ + docopt + flask + markdown + path-and-address + pygments + requests + tabulate + ]; checkPhase = '' - export PATH="$PATH:$out/bin" - py.test -xm "not assumption" + export PATH="$PATH:$out/bin" + py.test -xm "not assumption" ''; meta = with lib; { diff --git a/pkgs/development/python-modules/groestlcoin-hash/default.nix b/pkgs/development/python-modules/groestlcoin-hash/default.nix index e5dc1f045eaa..369b7a93b148 100644 --- a/pkgs/development/python-modules/groestlcoin-hash/default.nix +++ b/pkgs/development/python-modules/groestlcoin-hash/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "31a8f6fa4c19db5258c3c73c071b71702102c815ba862b6015d9e4b75ece231e"; }; - pythonImportsCheck = [ - "groestlcoin_hash" - ]; + pythonImportsCheck = [ "groestlcoin_hash" ]; meta = with lib; { description = "Bindings for groestl key derivation function library used in Groestlcoin"; diff --git a/pkgs/development/python-modules/growattserver/default.nix b/pkgs/development/python-modules/growattserver/default.nix index 1cd8d8e735d4..ba873ae059da 100644 --- a/pkgs/development/python-modules/growattserver/default.nix +++ b/pkgs/development/python-modules/growattserver/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-ATxXjIF5QRsdLuXZCOWMwvbBzawrhlYZ+wodITz36sE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "growattServer" - ]; + pythonImportsCheck = [ "growattServer" ]; meta = with lib; { description = "Python package to retrieve information from Growatt units"; diff --git a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix index 98f550a047f6..111678f0b98f 100644 --- a/pkgs/development/python-modules/grpc-google-iam-v1/default.nix +++ b/pkgs/development/python-modules/grpc-google-iam-v1/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, googleapis-common-protos -, grpcio -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + googleapis-common-protos, + grpcio, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-pmwHDzOaXrgqXZiaxIn01CtiAG+XRBGr8BgzbG/F1uw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ grpcio googleapis-common-protos ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "google.iam" diff --git a/pkgs/development/python-modules/grpc-interceptor/default.nix b/pkgs/development/python-modules/grpc-interceptor/default.nix index 0cac6c05106f..8c54fd33fdb6 100644 --- a/pkgs/development/python-modules/grpc-interceptor/default.nix +++ b/pkgs/development/python-modules/grpc-interceptor/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, grpcio -, protobuf -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + grpcio, + protobuf, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-GJkVCslPXShJNDrqhFtCsAK5+VaG8qFJo0RQTsiMIFY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ grpcio @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "grpc_interceptor" - ]; + pythonImportsCheck = [ "grpc_interceptor" ]; meta = with lib; { description = "Simplified gRPC interceptors"; diff --git a/pkgs/development/python-modules/grpcio-channelz/default.nix b/pkgs/development/python-modules/grpcio-channelz/default.nix index d4af46832018..9291bd5f14e0 100644 --- a/pkgs/development/python-modules/grpcio-channelz/default.nix +++ b/pkgs/development/python-modules/grpcio-channelz/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonRelaxDepsHook -, fetchPypi -, grpcio -, protobuf +{ + lib, + buildPythonPackage, + pythonRelaxDepsHook, + fetchPypi, + grpcio, + protobuf, }: buildPythonPackage rec { @@ -16,12 +17,8 @@ buildPythonPackage rec { hash = "sha256-bkrCxD12skXF9m2Y9SPbCHhrGGEoplXubyCjCn5o5Pk="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ - "grpcio" - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; + pythonRelaxDeps = [ "grpcio" ]; propagatedBuildInputs = [ grpcio diff --git a/pkgs/development/python-modules/grpcio-gcp/default.nix b/pkgs/development/python-modules/grpcio-gcp/default.nix index 60706fba8ee6..74c2d76f6c4a 100644 --- a/pkgs/development/python-modules/grpcio-gcp/default.nix +++ b/pkgs/development/python-modules/grpcio-gcp/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, grpcio +{ + lib, + buildPythonPackage, + fetchPypi, + grpcio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/grpcio-health-checking/default.nix b/pkgs/development/python-modules/grpcio-health-checking/default.nix index d14710b17b96..c71c63fce021 100644 --- a/pkgs/development/python-modules/grpcio-health-checking/default.nix +++ b/pkgs/development/python-modules/grpcio-health-checking/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonRelaxDepsHook -, fetchPypi -, grpcio -, protobuf +{ + lib, + buildPythonPackage, + pythonRelaxDepsHook, + fetchPypi, + grpcio, + protobuf, }: buildPythonPackage rec { @@ -21,12 +22,8 @@ buildPythonPackage rec { protobuf ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ - "grpcio" - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; + pythonRelaxDeps = [ "grpcio" ]; pythonImportsCheck = [ "grpc_health" ]; diff --git a/pkgs/development/python-modules/grpcio-reflection/default.nix b/pkgs/development/python-modules/grpcio-reflection/default.nix index 4001d3663fbd..4699a09a3343 100644 --- a/pkgs/development/python-modules/grpcio-reflection/default.nix +++ b/pkgs/development/python-modules/grpcio-reflection/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, grpcio -, protobuf +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + grpcio, + protobuf, }: buildPythonPackage rec { @@ -16,12 +17,8 @@ buildPythonPackage rec { hash = "sha256-LdRIBtaNAAZjZSm9pXMBKxmkIoFHjC0FHNquu5HiUWw="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ - "grpcio" - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; + pythonRelaxDeps = [ "grpcio" ]; propagatedBuildInputs = [ grpcio diff --git a/pkgs/development/python-modules/grpcio-status/default.nix b/pkgs/development/python-modules/grpcio-status/default.nix index 033e8ae58ae4..c587948f185f 100644 --- a/pkgs/development/python-modules/grpcio-status/default.nix +++ b/pkgs/development/python-modules/grpcio-status/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, googleapis-common-protos -, grpcio -, protobuf -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + googleapis-common-protos, + grpcio, + protobuf, + pythonOlder, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { # Projec thas no tests doCheck = false; - pythonImportsCheck = [ - "grpc_status" - ]; + pythonImportsCheck = [ "grpc_status" ]; meta = with lib; { description = "GRPC Python status proto mapping"; diff --git a/pkgs/development/python-modules/grpcio-testing/default.nix b/pkgs/development/python-modules/grpcio-testing/default.nix index 54022a0433ce..263e57ed8f3a 100644 --- a/pkgs/development/python-modules/grpcio-testing/default.nix +++ b/pkgs/development/python-modules/grpcio-testing/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, grpcio -, protobuf -, pythonOlder -, pythonRelaxDepsHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + grpcio, + protobuf, + pythonOlder, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -25,18 +26,14 @@ buildPythonPackage rec { --replace-fail '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ grpcio protobuf ]; - pythonImportsCheck = [ - "grpc_testing" - ]; + pythonImportsCheck = [ "grpc_testing" ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/grpcio-tools/default.nix b/pkgs/development/python-modules/grpcio-tools/default.nix index 6b5c5cdda99f..d98f1bee9ee2 100644 --- a/pkgs/development/python-modules/grpcio-tools/default.nix +++ b/pkgs/development/python-modules/grpcio-tools/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, protobuf, grpcio, setuptools }: +{ + lib, + buildPythonPackage, + fetchPypi, + protobuf, + grpcio, + setuptools, +}: buildPythonPackage rec { pname = "grpcio-tools"; @@ -15,11 +22,18 @@ buildPythonPackage rec { --replace 'protobuf>=4.21.6,<5.0dev' 'protobuf' ''; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; enableParallelBuilding = true; - propagatedBuildInputs = [ protobuf grpcio setuptools ]; + propagatedBuildInputs = [ + protobuf + grpcio + setuptools + ]; # no tests in the package doCheck = false; diff --git a/pkgs/development/python-modules/grpcio/default.nix b/pkgs/development/python-modules/grpcio/default.nix index 582314bf1073..5e1524866087 100644 --- a/pkgs/development/python-modules/grpcio/default.nix +++ b/pkgs/development/python-modules/grpcio/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, grpc -, six -, protobuf -, enum34 ? null -, futures ? null -, isPy27 -, pkg-config -, cython -, c-ares -, openssl -, zlib +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + grpc, + six, + protobuf, + enum34 ? null, + futures ? null, + isPy27, + pkg-config, + cython, + c-ares, + openssl, + zlib, }: buildPythonPackage rec { @@ -25,22 +26,41 @@ buildPythonPackage rec { hash = "sha256-x3YYBx2Wt6i+LBBwGphTeCO5xluiVsC5Bn4FlM29lU0="; }; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; - nativeBuildInputs = [ cython pkg-config ]; + nativeBuildInputs = [ + cython + pkg-config + ]; - buildInputs = [ c-ares openssl zlib ]; - propagatedBuildInputs = [ six protobuf ] - ++ lib.optionals (isPy27) [ enum34 futures ]; + buildInputs = [ + c-ares + openssl + zlib + ]; + propagatedBuildInputs = + [ + six + protobuf + ] + ++ lib.optionals (isPy27) [ + enum34 + futures + ]; - preBuild = '' - export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$NIX_BUILD_CORES" - if [ -z "$enableParallelBuilding" ]; then - GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=1 - fi - '' + lib.optionalString stdenv.isDarwin '' - unset AR - ''; + preBuild = + '' + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$NIX_BUILD_CORES" + if [ -z "$enableParallelBuilding" ]; then + GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS=1 + fi + '' + + lib.optionalString stdenv.isDarwin '' + unset AR + ''; GRPC_BUILD_WITH_BORING_SSL_ASM = ""; GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1; diff --git a/pkgs/development/python-modules/gruut-ipa/default.nix b/pkgs/development/python-modules/gruut-ipa/default.nix index 717a439393e1..5ebc3f1f3361 100644 --- a/pkgs/development/python-modules/gruut-ipa/default.nix +++ b/pkgs/development/python-modules/gruut-ipa/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, espeak -, numpy -, python -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + espeak, + numpy, + python, + unittestCheckHook, }: buildPythonPackage rec { @@ -26,15 +27,11 @@ buildPythonPackage rec { --replace "do espeak" "do ${espeak}/bin/espeak" ''; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "gruut_ipa" - ]; + pythonImportsCheck = [ "gruut_ipa" ]; meta = with lib; { description = "Library for manipulating pronunciations using the International Phonetic Alphabet (IPA)"; diff --git a/pkgs/development/python-modules/gruut/default.nix b/pkgs/development/python-modules/gruut/default.nix index 8d18dee9cd8e..487c4e377a3b 100644 --- a/pkgs/development/python-modules/gruut/default.nix +++ b/pkgs/development/python-modules/gruut/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, babel -, gruut-ipa -, dateparser -, jsonlines -, num2words -, python-crfsuite -, python -, networkx -, glibcLocales -, pytestCheckHook +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + babel, + gruut-ipa, + dateparser, + jsonlines, + num2words, + python-crfsuite, + python, + networkx, + glibcLocales, + pytestCheckHook, }: let @@ -51,19 +52,32 @@ buildPythonPackage rec { --replace "networkx>=2.5.0,<3.0.0" "networkx" ''; - propagatedBuildInputs = [ - babel - gruut-ipa - jsonlines - num2words - python-crfsuite - dateparser - networkx - ] ++ (map (lang: callPackage ./language-pack.nix { - inherit lang version format src; - }) langPkgs); + propagatedBuildInputs = + [ + babel + gruut-ipa + jsonlines + num2words + python-crfsuite + dateparser + networkx + ] + ++ (map ( + lang: + callPackage ./language-pack.nix { + inherit + lang + version + format + src + ; + } + ) langPkgs); - nativeCheckInputs = [ glibcLocales pytestCheckHook ]; + nativeCheckInputs = [ + glibcLocales + pytestCheckHook + ]; disabledTests = [ # https://github.com/rhasspy/gruut/issues/25 @@ -79,9 +93,7 @@ buildPythonPackage rec { export LC_ALL=en_US.utf-8 ''; - pythonImportsCheck = [ - "gruut" - ]; + pythonImportsCheck = [ "gruut" ]; meta = with lib; { description = "A tokenizer, text cleaner, and phonemizer for many human languages"; diff --git a/pkgs/development/python-modules/gruut/language-pack.nix b/pkgs/development/python-modules/gruut/language-pack.nix index 2d3cfa9cc518..3a2dcaba893b 100644 --- a/pkgs/development/python-modules/gruut/language-pack.nix +++ b/pkgs/development/python-modules/gruut/language-pack.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage +{ + lib, + buildPythonPackage, -, lang -, version -, format -, src + lang, + version, + format, + src, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { cd "${pname}" ''; - pythonImportsCheck = [ - "gruut_lang_${lang}" - ]; + pythonImportsCheck = [ "gruut_lang_${lang}" ]; doCheck = false; diff --git a/pkgs/development/python-modules/gsd/default.nix b/pkgs/development/python-modules/gsd/default.nix index 3148c3f2e70c..449f41620abe 100644 --- a/pkgs/development/python-modules/gsd/default.nix +++ b/pkgs/development/python-modules/gsd/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,22 +22,13 @@ buildPythonPackage rec { hash = "sha256-huMM98An/DG8PIVblS3b6AxF6vJ5IoKOs1f9kBnR3ik="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; - - pythonImportsCheck = [ - "gsd" - ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "gsd" ]; preCheck = '' pushd gsd/test diff --git a/pkgs/development/python-modules/gsm0338/default.nix b/pkgs/development/python-modules/gsm0338/default.nix index 029204c98730..4f6326ec9ca5 100644 --- a/pkgs/development/python-modules/gsm0338/default.nix +++ b/pkgs/development/python-modules/gsm0338/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, }: buildPythonPackage { @@ -17,13 +18,9 @@ buildPythonPackage { hash = "sha256-EkUVd4d4Te8brHerygDc6KQSpiX11NrHYkcZSDRi05w="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gsm0338" ]; @@ -31,6 +28,9 @@ buildPythonPackage { description = "Python codec for GSM 03.38"; homepage = "https://github.com/dsch/gsm0338"; license = licenses.mit; - maintainers = with maintainers; [ flokli janik ]; + maintainers = with maintainers; [ + flokli + janik + ]; }; } diff --git a/pkgs/development/python-modules/gspread/default.nix b/pkgs/development/python-modules/gspread/default.nix index e8c54b19788e..b3ec185add2b 100644 --- a/pkgs/development/python-modules/gspread/default.nix +++ b/pkgs/development/python-modules/gspread/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, google-auth -, google-auth-oauthlib -, pytest-vcr -, pytestCheckHook -, pythonOlder -, strenum +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + google-auth, + google-auth-oauthlib, + pytest-vcr, + pytestCheckHook, + pythonOlder, + strenum, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-kuXPX+VY0qz4fldGYPbzZMFx+blzsmueews1W+AjQb0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ google-auth @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "gspread" - ]; + pythonImportsCheck = [ "gspread" ]; meta = with lib; { description = "Google Spreadsheets client library"; diff --git a/pkgs/development/python-modules/gssapi/default.nix b/pkgs/development/python-modules/gssapi/default.nix index 90d8b4810d43..ab8ea417d800 100644 --- a/pkgs/development/python-modules/gssapi/default.nix +++ b/pkgs/development/python-modules/gssapi/default.nix @@ -1,24 +1,25 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -# build-system -, cython -, krb5 -, setuptools + # build-system + cython, + krb5, + setuptools, -# dependencies -, decorator + # dependencies + decorator, -# native dependencies -, GSS + # native dependencies + GSS, -# tests -, parameterized -, k5test -, pytestCheckHook + # tests + parameterized, + k5test, + pytestCheckHook, }: buildPythonPackage rec { @@ -50,13 +51,9 @@ buildPythonPackage rec { setuptools ]; - dependencies = [ - decorator - ]; + dependencies = [ decorator ]; - buildInputs = lib.optionals stdenv.isDarwin [ - GSS - ]; + buildInputs = lib.optionals stdenv.isDarwin [ GSS ]; nativeCheckInputs = [ k5test diff --git a/pkgs/development/python-modules/gst-python/default.nix b/pkgs/development/python-modules/gst-python/default.nix index 8a6ee21ede7d..77e37baa7c0d 100644 --- a/pkgs/development/python-modules/gst-python/default.nix +++ b/pkgs/development/python-modules/gst-python/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchurl -, meson -, ninja +{ + lib, + buildPythonPackage, + fetchurl, + meson, + ninja, -, pkg-config -, python -, pygobject3 -, gobject-introspection -, gst_all_1 -, isPy3k + pkg-config, + python, + pygobject3, + gobject-introspection, + gst_all_1, + isPy3k, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { format = "other"; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; src = fetchurl { url = "https://gstreamer.freedesktop.org/src/gst-python/${pname}-${version}.tar.xz"; @@ -28,9 +32,7 @@ buildPythonPackage rec { # Python 2.x is not supported. disabled = !isPy3k; - depsBuildBuild = [ - pkg-config - ]; + depsBuildBuild = [ pkg-config ]; nativeBuildInputs = [ meson diff --git a/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix b/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix index 99348cb44363..3ea28e1b8112 100644 --- a/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix +++ b/pkgs/development/python-modules/gtfs-realtime-bindings/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, protobuf -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + protobuf, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { sha256 = "sha256-LoztiQRADMk6t+hSCttpNM+mAe2sxvWT/Cy0RIZiu0c="; }; - propagatedBuildInputs = [ - protobuf - ]; + propagatedBuildInputs = [ protobuf ]; # Tests are not shipped, only a tarball for Java is present doCheck = false; - pythonImportsCheck = [ - "google.transit" - ]; + pythonImportsCheck = [ "google.transit" ]; meta = with lib; { description = "Python bindings generated from the GTFS Realtime protocol buffer spec"; diff --git a/pkgs/development/python-modules/gto/default.nix b/pkgs/development/python-modules/gto/default.nix index 79347e1ce3d8..a41a7262dcdd 100644 --- a/pkgs/development/python-modules/gto/default.nix +++ b/pkgs/development/python-modules/gto/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, entrypoints -, fastentrypoints -, fetchFromGitHub -, freezegun -, funcy -, git -, pydantic -, pytest-mock -, pytest-test-utils -, pytestCheckHook -, pythonOlder -, rich -, ruamel-yaml -, scmrepo -, semver -, setuptools -, setuptools-scm -, tabulate -, typer +{ + lib, + buildPythonPackage, + entrypoints, + fastentrypoints, + fetchFromGitHub, + freezegun, + funcy, + git, + pydantic, + pytest-mock, + pytest-test-utils, + pytestCheckHook, + pythonOlder, + rich, + ruamel-yaml, + scmrepo, + semver, + setuptools, + setuptools-scm, + tabulate, + typer, }: buildPythonPackage rec { @@ -82,9 +83,7 @@ buildPythonPackage rec { "test_action_doesnt_push_even_if_repo_has_remotes_set" ]; - pythonImportsCheck = [ - "gto" - ]; + pythonImportsCheck = [ "gto" ]; meta = with lib; { description = "Module for Git Tag Operations"; diff --git a/pkgs/development/python-modules/gtts-token/default.nix b/pkgs/development/python-modules/gtts-token/default.nix index da46799ec780..a747522827ca 100644 --- a/pkgs/development/python-modules/gtts-token/default.nix +++ b/pkgs/development/python-modules/gtts-token/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -33,4 +32,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ makefu ]; }; } - diff --git a/pkgs/development/python-modules/gtts/default.nix b/pkgs/development/python-modules/gtts/default.nix index d53fd34abd69..9662eaf6055b 100644 --- a/pkgs/development/python-modules/gtts/default.nix +++ b/pkgs/development/python-modules/gtts/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, beautifulsoup4 -, click -, gtts-token -, mock -, pytest -, requests -, six -, testfixtures -, twine -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + beautifulsoup4, + click, + gtts-token, + mock, + pytest, + requests, + six, + testfixtures, + twine, + urllib3, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-CCxD73fpHGsO4zSifWLQtgDkbPvPEnA2357umhOCNoI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ beautifulsoup4 @@ -40,7 +39,11 @@ buildPythonPackage rec { twine ]; - nativeCheckInputs = [ pytest mock testfixtures ]; + nativeCheckInputs = [ + pytest + mock + testfixtures + ]; # majority of tests just try to call out to Google's Translate API endpoint doCheck = false; diff --git a/pkgs/development/python-modules/gudhi/default.nix b/pkgs/development/python-modules/gudhi/default.nix index 1c8810ffe427..cc83c54b0f0c 100644 --- a/pkgs/development/python-modules/gudhi/default.nix +++ b/pkgs/development/python-modules/gudhi/default.nix @@ -1,21 +1,22 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, cmake -, setuptools -, boost -, eigen -, gmp -, cgal # see https://github.com/NixOS/nixpkgs/pull/94875 about cgal -, mpfr -, tbb -, numpy -, cython -, pybind11 -, matplotlib -, scipy -, pytest -, enableTBB ? false +{ + lib, + fetchFromGitHub, + buildPythonPackage, + cmake, + setuptools, + boost, + eigen, + gmp, + cgal, # see https://github.com/NixOS/nixpkgs/pull/94875 about cgal + mpfr, + tbb, + numpy, + cython, + pybind11, + matplotlib, + scipy, + pytest, + enableTBB ? false, }: buildPythonPackage rec { @@ -31,10 +32,25 @@ buildPythonPackage rec { hash = "sha256-VL6RIPe8a2/cUHnHOql9e9EUMBB9QU311kMCaMZTbGI="; }; - nativeBuildInputs = [ cmake numpy cython pybind11 matplotlib setuptools ]; - buildInputs = [ boost eigen gmp cgal mpfr ] - ++ lib.optionals enableTBB [ tbb ]; - propagatedBuildInputs = [ numpy scipy ]; + nativeBuildInputs = [ + cmake + numpy + cython + pybind11 + matplotlib + setuptools + ]; + buildInputs = [ + boost + eigen + gmp + cgal + mpfr + ] ++ lib.optionals enableTBB [ tbb ]; + propagatedBuildInputs = [ + numpy + scipy + ]; nativeCheckInputs = [ pytest ]; cmakeFlags = [ @@ -60,13 +76,21 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ "gudhi" "gudhi.hera" "gudhi.point_cloud" "gudhi.clustering" ]; + pythonImportsCheck = [ + "gudhi" + "gudhi.hera" + "gudhi.point_cloud" + "gudhi.clustering" + ]; meta = { description = "Library for Computational Topology and Topological Data Analysis (TDA)"; homepage = "https://gudhi.inria.fr/python/latest/"; downloadPage = "https://github.com/GUDHI/gudhi-devel"; - license = with lib.licenses; [ mit gpl3 ]; + license = with lib.licenses; [ + mit + gpl3 + ]; maintainers = with lib.maintainers; [ yl3dy ]; }; } diff --git a/pkgs/development/python-modules/guessit/default.nix b/pkgs/development/python-modules/guessit/default.nix index fce9cc928b51..5fc4c0a5cbcd 100644 --- a/pkgs/development/python-modules/guessit/default.nix +++ b/pkgs/development/python-modules/guessit/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, babelfish -, rebulk -, pythonOlder -, importlib-resources -, py -, pytestCheckHook -, pytest-mock -, pytest-benchmark -, pyyaml +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + babelfish, + rebulk, + pythonOlder, + importlib-resources, + py, + pytestCheckHook, + pytest-mock, + pytest-benchmark, + pyyaml, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { rebulk babelfish python-dateutil - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; nativeCheckInputs = [ py diff --git a/pkgs/development/python-modules/guestfs/default.nix b/pkgs/development/python-modules/guestfs/default.nix index ddc456171eb4..8c10cb697ef5 100644 --- a/pkgs/development/python-modules/guestfs/default.nix +++ b/pkgs/development/python-modules/guestfs/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchurl, libguestfs, qemu }: +{ + lib, + buildPythonPackage, + fetchurl, + libguestfs, + qemu, +}: buildPythonPackage rec { pname = "guestfs"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "06a4b5xf1rkhnzfvck91n0z9mlkrgy90s9na5a8da2g4p776lhkf"; }; - propagatedBuildInputs = [ libguestfs qemu ]; + propagatedBuildInputs = [ + libguestfs + qemu + ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix index 732a107f2a39..92b2d244e9cc 100644 --- a/pkgs/development/python-modules/guidance/default.nix +++ b/pkgs/development/python-modules/guidance/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pybind11 -, setuptools -, wheel -, aiohttp -, diskcache -, fastapi -, gptcache -, msal -, numpy -, openai -, ordered-set -, platformdirs -, protobuf -, pyformlang -, requests -, tiktoken -, torch -, uvicorn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pybind11, + setuptools, + wheel, + aiohttp, + diskcache, + fastapi, + gptcache, + msal, + numpy, + openai, + ordered-set, + platformdirs, + protobuf, + pyformlang, + requests, + tiktoken, + torch, + uvicorn, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-dvIJeSur3DdNBhrEPNPghxqmDEEig59Iz83LWksim6U="; }; - nativeBuildInputs = [ - pybind11 - ]; + nativeBuildInputs = [ pybind11 ]; build-system = [ setuptools diff --git a/pkgs/development/python-modules/gumath/default.nix b/pkgs/development/python-modules/gumath/default.nix index 7b052fa429c2..83b45412b0ff 100644 --- a/pkgs/development/python-modules/gumath/default.nix +++ b/pkgs/development/python-modules/gumath/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchpatch -, python -, numba -, ndtypes -, xnd -, libndtypes -, libxnd -, libgumath -, isPy27 +{ + lib, + stdenv, + buildPythonPackage, + fetchpatch, + python, + numba, + ndtypes, + xnd, + libndtypes, + libxnd, + libgumath, + isPy27, }: buildPythonPackage { @@ -34,7 +35,10 @@ buildPythonPackage { nativeCheckInputs = [ numba ]; - propagatedBuildInputs = [ ndtypes xnd ]; + propagatedBuildInputs = [ + ndtypes + xnd + ]; postPatch = '' substituteInPlace setup.py \ @@ -60,4 +64,3 @@ buildPythonPackage { popd ''; } - diff --git a/pkgs/development/python-modules/gunicorn/default.nix b/pkgs/development/python-modules/gunicorn/default.nix index ec2ed2aaf63d..9489be94213c 100644 --- a/pkgs/development/python-modules/gunicorn/default.nix +++ b/pkgs/development/python-modules/gunicorn/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, packaging + # dependencies + packaging, -# optional-dependencies -, eventlet -, gevent -, tornado -, setproctitle + # optional-dependencies + eventlet, + gevent, + tornado, + setproctitle, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -37,33 +38,19 @@ buildPythonPackage rec { --replace "--cov=gunicorn --cov-report=xml" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; passthru.optional-dependencies = { - gevent = [ - gevent - ]; - eventlet = [ - eventlet - ]; - tornado = [ - tornado - ]; - gthread = []; - setproctitle = [ - setproctitle - ]; + gevent = [ gevent ]; + eventlet = [ eventlet ]; + tornado = [ tornado ]; + gthread = [ ]; + setproctitle = [ setproctitle ]; }; - pythonImportsCheck = [ - "gunicorn" - ]; + pythonImportsCheck = [ "gunicorn" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/guppy3/default.nix b/pkgs/development/python-modules/guppy3/default.nix index 2c4389549aff..2609a0bf8eab 100644 --- a/pkgs/development/python-modules/guppy3/default.nix +++ b/pkgs/development/python-modules/guppy3/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, tkinter +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + tkinter, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-HHy57P6WEHZKygAbdjEh6XAApFlQueiYGr02eSQMWfc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ tkinter ]; diff --git a/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix b/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix index 48d87c8dd7d8..59fdf748e2ca 100644 --- a/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix +++ b/pkgs/development/python-modules/guzzle-sphinx-theme/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + sphinx, }: buildPythonPackage rec { @@ -16,17 +17,13 @@ buildPythonPackage rec { hash = "sha256-m4wWOcNDwCw/PbffZg3fb1M7VFTukqX3sC7apXP+0+Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = false; # no tests propagatedBuildInputs = [ sphinx ]; - pythonImportsCheck = [ - "guzzle_sphinx_theme" - ]; + pythonImportsCheck = [ "guzzle_sphinx_theme" ]; meta = with lib; { description = "Sphinx theme used by Guzzle: http://guzzlephp.org"; diff --git a/pkgs/development/python-modules/gviz-api/default.nix b/pkgs/development/python-modules/gviz-api/default.nix index 04ba3b9520fa..72e1692aa851 100644 --- a/pkgs/development/python-modules/gviz-api/default.nix +++ b/pkgs/development/python-modules/gviz-api/default.nix @@ -1,5 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage -, six +{ + lib, + fetchPypi, + buildPythonPackage, + six, }: buildPythonPackage rec { @@ -12,9 +15,7 @@ buildPythonPackage rec { sha256 = "a05055fed8c279f34f4b496eace7648c7fe9c1b06851e8a36e748541f1adbb05"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; meta = with lib; { description = "Python API for Google Visualization"; diff --git a/pkgs/development/python-modules/gvm-tools/default.nix b/pkgs/development/python-modules/gvm-tools/default.nix index 59d0da14b17d..35cd9afd4403 100644 --- a/pkgs/development/python-modules/gvm-tools/default.nix +++ b/pkgs/development/python-modules/gvm-tools/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, python-gvm -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + python-gvm, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -24,28 +25,18 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - python-gvm - ]; + propagatedBuildInputs = [ python-gvm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Don't test sending "SendTargetTestCase" - ] ++ lib.optionals (pythonAtLeast "3.10") [ - "HelpFormattingParserTestCase" - ]; + ] ++ lib.optionals (pythonAtLeast "3.10") [ "HelpFormattingParserTestCase" ]; - pythonImportsCheck = [ - "gvmtools" - ]; + pythonImportsCheck = [ "gvmtools" ]; meta = with lib; { description = "Collection of APIs that help with remote controlling a Greenbone Security Manager"; diff --git a/pkgs/development/python-modules/gym-notices/default.nix b/pkgs/development/python-modules/gym-notices/default.nix index 5b48ea524347..0a4e2bd4089c 100644 --- a/pkgs/development/python-modules/gym-notices/default.nix +++ b/pkgs/development/python-modules/gym-notices/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -22,4 +23,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ billhuang ]; }; } - diff --git a/pkgs/development/python-modules/gym/default.nix b/pkgs/development/python-modules/gym/default.nix index e7d4c9f4a411..a4da585c7740 100644 --- a/pkgs/development/python-modules/gym/default.nix +++ b/pkgs/development/python-modules/gym/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, cloudpickle -, gym-notices -, importlib-metadata -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + cloudpickle, + gym-notices, + importlib-metadata, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gymnasium/default.nix b/pkgs/development/python-modules/gymnasium/default.nix index ca7ba30927ab..4a4a67cbefd1 100644 --- a/pkgs/development/python-modules/gymnasium/default.nix +++ b/pkgs/development/python-modules/gymnasium/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, numpy -, cloudpickle -, gym-notices -, jax-jumpy -, typing-extensions -, farama-notifications -, importlib-metadata -, pythonOlder -, ffmpeg -, jax -, jaxlib -, matplotlib -, moviepy -, opencv4 -, pybox2d -, pygame -, pytestCheckHook -, scipy -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + numpy, + cloudpickle, + gym-notices, + jax-jumpy, + typing-extensions, + farama-notifications, + importlib-metadata, + pythonOlder, + ffmpeg, + jax, + jaxlib, + matplotlib, + moviepy, + opencv4, + pybox2d, + pygame, + pytestCheckHook, + scipy, + stdenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/gyp/default.nix b/pkgs/development/python-modules/gyp/default.nix index 50e60cfe7bfd..2ee6b13160eb 100644 --- a/pkgs/development/python-modules/gyp/default.nix +++ b/pkgs/development/python-modules/gyp/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitiles -, six -, python +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitiles, + six, + python, }: buildPythonPackage { @@ -22,11 +23,12 @@ buildPythonPackage { ./no-xcode.patch ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ "gyp" "gyp.generator" ]; + pythonImportsCheck = [ + "gyp" + "gyp.generator" + ]; # Make mac_tool.py executable so that patchShebangs hook processes it. This # file is copied and run by builds using gyp on macOS diff --git a/pkgs/development/python-modules/h11/default.nix b/pkgs/development/python-modules/h11/default.nix index a03c7b0ea477..a385f55ca899 100644 --- a/pkgs/development/python-modules/h11/default.nix +++ b/pkgs/development/python-modules/h11/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, httpcore -, httpx -, wsproto +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + httpcore, + httpx, + wsproto, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/h2/default.nix b/pkgs/development/python-modules/h2/default.nix index bb37c4d1607b..7e216c2c8f62 100644 --- a/pkgs/development/python-modules/h2/default.nix +++ b/pkgs/development/python-modules/h2/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch -, hpack -, hyperframe -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch, + hpack, + hyperframe, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/h3/default.nix b/pkgs/development/python-modules/h3/default.nix index 64be91a04fd9..828bcc1b1ea9 100644 --- a/pkgs/development/python-modules/h3/default.nix +++ b/pkgs/development/python-modules/h3/default.nix @@ -1,14 +1,15 @@ -{ autoPatchelfHook -, buildPythonPackage -, cmake -, cython -, fetchFromGitHub -, h3 -, lib -, numpy -, pytestCheckHook -, scikit-build -, stdenv +{ + autoPatchelfHook, + buildPythonPackage, + cmake, + cython, + fetchFromGitHub, + h3, + lib, + numpy, + pytestCheckHook, + scikit-build, + stdenv, }: buildPythonPackage rec { @@ -28,14 +29,18 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - nativeBuildInputs = [ - scikit-build cmake cython - ] ++ lib.optionals stdenv.hostPlatform.isLinux [ - # On Linux the .so files ends up referring to libh3.so instead of the full - # Nix store path. I'm not sure why this is happening! On Darwin it works - # fine. - autoPatchelfHook - ]; + nativeBuildInputs = + [ + scikit-build + cmake + cython + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + # On Linux the .so files ends up referring to libh3.so instead of the full + # Nix store path. I'm not sure why this is happening! On Darwin it works + # fine. + autoPatchelfHook + ]; # This is not needed per-se, it's only added for autoPatchelfHook to work # correctly. See the note above ^^ @@ -53,7 +58,8 @@ buildPythonPackage rec { include_directories(${lib.getDev h3}/include/h3) link_directories(${h3}/lib) ''; - in '' + in + '' rm -r src/h3lib substituteInPlace CMakeLists.txt --replace "add_subdirectory(src/h3lib)" "${cmakeCommands}" ''; diff --git a/pkgs/development/python-modules/h5io/default.nix b/pkgs/development/python-modules/h5io/default.nix index e9f8af129f1c..9e32bdefeaeb 100644 --- a/pkgs/development/python-modules/h5io/default.nix +++ b/pkgs/development/python-modules/h5io/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, numpy -, h5py -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + numpy, + h5py, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { h5py ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "h5io" ]; diff --git a/pkgs/development/python-modules/h5netcdf/default.nix b/pkgs/development/python-modules/h5netcdf/default.nix index 334289b034e2..f5128692ce56 100644 --- a/pkgs/development/python-modules/h5netcdf/default.nix +++ b/pkgs/development/python-modules/h5netcdf/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, h5py -, pytestCheckHook -, netcdf4 -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + h5py, + pytestCheckHook, + netcdf4, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - h5py - ]; + propagatedBuildInputs = [ h5py ]; nativeCheckInputs = [ pytestCheckHook @@ -37,9 +36,7 @@ buildPythonPackage rec { dontUseSetuptoolsCheck = true; - pythonImportsCheck = [ - "h5netcdf" - ]; + pythonImportsCheck = [ "h5netcdf" ]; meta = with lib; { description = "netCDF4 via h5py"; diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix index 0da90d4ccb9e..b2bd668d679b 100644 --- a/pkgs/development/python-modules/h5py/default.nix +++ b/pkgs/development/python-modules/h5py/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, setuptools -, wheel -, numpy -, hdf5 -, cython_0 -, pkgconfig -, mpi4py ? null -, openssh -, pytestCheckHook -, cached-property +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + setuptools, + wheel, + numpy, + hdf5, + cython_0, + pkgconfig, + mpi4py ? null, + openssh, + pytestCheckHook, + cached-property, }: assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi; @@ -19,7 +20,8 @@ assert hdf5.mpiSupport -> mpi4py != null && hdf5.mpi == mpi4py.mpi; let mpi = hdf5.mpi; mpiSupport = hdf5.mpiSupport; -in buildPythonPackage rec { +in +buildPythonPackage rec { version = "3.11.0"; pname = "h5py"; pyproject = true; @@ -62,16 +64,22 @@ in buildPythonPackage rec { wheel ]; - buildInputs = [ hdf5 ] - ++ lib.optional mpiSupport mpi; + buildInputs = [ hdf5 ] ++ lib.optional mpiSupport mpi; - propagatedBuildInputs = [ numpy ] - ++ lib.optionals mpiSupport [ mpi4py openssh ] + propagatedBuildInputs = + [ numpy ] + ++ lib.optionals mpiSupport [ + mpi4py + openssh + ] ++ lib.optionals (pythonOlder "3.8") [ cached-property ]; # tests now require pytest-mpi, which isn't available and difficult to package doCheck = false; - nativeCheckInputs = [ pytestCheckHook openssh ]; + nativeCheckInputs = [ + pytestCheckHook + openssh + ]; pythonImportsCheck = [ "h5py" ]; diff --git a/pkgs/development/python-modules/ha-ffmpeg/default.nix b/pkgs/development/python-modules/ha-ffmpeg/default.nix index 5a11243d594e..991eaf9f602b 100644 --- a/pkgs/development/python-modules/ha-ffmpeg/default.nix +++ b/pkgs/development/python-modules/ha-ffmpeg/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, async-timeout -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + async-timeout, + setuptools, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-FW8WlrhVL+ryupHAKii8fKBku/6uxdw1uLCKUszkP50="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - async-timeout - ]; + propagatedBuildInputs = [ async-timeout ]; # only manual tests doCheck = false; diff --git a/pkgs/development/python-modules/ha-philipsjs/default.nix b/pkgs/development/python-modules/ha-philipsjs/default.nix index 5530cfe070f1..939dfdd8afca 100644 --- a/pkgs/development/python-modules/ha-philipsjs/default.nix +++ b/pkgs/development/python-modules/ha-philipsjs/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, httpx -, pytest-aiohttp -, pytest-mock -, pytestCheckHook -, pythonOlder -, respx +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + httpx, + pytest-aiohttp, + pytest-mock, + pytestCheckHook, + pythonOlder, + respx, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { respx ]; - pythonImportsCheck = [ - "haphilipsjs" - ]; + pythonImportsCheck = [ "haphilipsjs" ]; meta = with lib; { description = "Python library to interact with Philips TVs with jointSPACE API"; diff --git a/pkgs/development/python-modules/habanero/default.nix b/pkgs/development/python-modules/habanero/default.nix index 51dcfdcc91c7..613b6a831586 100644 --- a/pkgs/development/python-modules/habanero/default.nix +++ b/pkgs/development/python-modules/habanero/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, requests -, tqdm -, nose -, vcrpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + requests, + tqdm, + nose, + vcrpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-Pw0TgXxDRmR565hdNGipfDZ7P32pxWkmPWfaYK0RaI4="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ requests @@ -38,14 +37,10 @@ buildPythonPackage rec { vcrpy ]; - pythonImportsCheck = [ - "habanero" - ]; + pythonImportsCheck = [ "habanero" ]; # almost the entirety of the test suite makes network calls - pytestFlagsArray = [ - "test/test-filters.py" - ]; + pytestFlagsArray = [ "test/test-filters.py" ]; meta = with lib; { description = "Python interface to Library Genesis"; diff --git a/pkgs/development/python-modules/habitipy/default.nix b/pkgs/development/python-modules/habitipy/default.nix index 5ec42c4df5e4..20017eb2a2b9 100644 --- a/pkgs/development/python-modules/habitipy/default.nix +++ b/pkgs/development/python-modules/habitipy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, plumbum -, requests -, setuptools -, hypothesis -, pynose -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + plumbum, + requests, + setuptools, + hypothesis, + pynose, + responses, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/habluetooth/default.nix b/pkgs/development/python-modules/habluetooth/default.nix index 702ffc382115..fc2761b3778e 100644 --- a/pkgs/development/python-modules/habluetooth/default.nix +++ b/pkgs/development/python-modules/habluetooth/default.nix @@ -1,18 +1,19 @@ -{ lib -, async-interrupt -, bleak -, bleak-retry-connector -, bluetooth-adapters -, bluetooth-auto-recovery -, bluetooth-data-tools -, buildPythonPackage -, cython -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + async-interrupt, + bleak, + bleak-retry-connector, + bluetooth-adapters, + bluetooth-auto-recovery, + bluetooth-data-tools, + buildPythonPackage, + cython, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -50,13 +51,9 @@ buildPythonPackage rec { bluetooth-data-tools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "habluetooth" - ]; + pythonImportsCheck = [ "habluetooth" ]; meta = with lib; { description = "Library for high availability Bluetooth"; diff --git a/pkgs/development/python-modules/hachoir/default.nix b/pkgs/development/python-modules/hachoir/default.nix index 4480dd893275..e6c3b64f8e62 100644 --- a/pkgs/development/python-modules/hachoir/default.nix +++ b/pkgs/development/python-modules/hachoir/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, urwid -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + urwid, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-sTUJx8Xyhw4Z6juRtREw/okuVjSTSVWpSLKeZ7T8IR8="; }; - propagatedBuildInputs = [ - urwid - ]; + propagatedBuildInputs = [ urwid ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "hachoir" - ]; + pythonImportsCheck = [ "hachoir" ]; meta = with lib; { description = "Python library to view and edit a binary stream"; diff --git a/pkgs/development/python-modules/hacking/default.nix b/pkgs/development/python-modules/hacking/default.nix index cd121822e651..2e4952b80f9d 100644 --- a/pkgs/development/python-modules/hacking/default.nix +++ b/pkgs/development/python-modules/hacking/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, flake8 -, stestr -, ddt -, testscenarios +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + flake8, + stestr, + ddt, + testscenarios, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { nativeBuildInputs = [ pbr ]; - propagatedBuildInputs = [ - flake8 - ]; + propagatedBuildInputs = [ flake8 ]; nativeCheckInputs = [ ddt diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix index be2dcf471e7a..15472bde797f 100644 --- a/pkgs/development/python-modules/hahomematic/default.nix +++ b/pkgs/development/python-modules/hahomematic/default.nix @@ -1,18 +1,19 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, freezegun -, orjson -, pydevccu -, pytest-aiohttp -, pytestCheckHook -, python-slugify -, pythonOlder -, setuptools -, voluptuous -, websocket-client -, xmltodict +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + freezegun, + orjson, + pydevccu, + pytest-aiohttp, + pytestCheckHook, + python-slugify, + pythonOlder, + setuptools, + voluptuous, + websocket-client, + xmltodict, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace-fail "wheel~=0.43.0" "wheel" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -55,15 +54,16 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "hahomematic" - ]; + pythonImportsCheck = [ "hahomematic" ]; meta = with lib; { description = "Python module to interact with HomeMatic devices"; homepage = "https://github.com/danielperna84/hahomematic"; changelog = "https://github.com/danielperna84/hahomematic/blob/${src.rev}/changelog.md"; license = licenses.mit; - maintainers = with maintainers; [ dotlambda fab ]; + maintainers = with maintainers; [ + dotlambda + fab + ]; }; } diff --git a/pkgs/development/python-modules/halo/default.nix b/pkgs/development/python-modules/halo/default.nix index cc1d3022fcb8..939f55be774a 100644 --- a/pkgs/development/python-modules/halo/default.nix +++ b/pkgs/development/python-modules/halo/default.nix @@ -1,12 +1,14 @@ -{ buildPythonPackage -, colorama -, fetchPypi -, isPy27 -, lib -, log-symbols -, six -, spinners -, termcolor }: +{ + buildPythonPackage, + colorama, + fetchPypi, + isPy27, + lib, + log-symbols, + six, + spinners, + termcolor, +}: buildPythonPackage rec { pname = "halo"; @@ -19,7 +21,13 @@ buildPythonPackage rec { sha256 = "1mn97h370ggbc9vi6x8r6akd5q8i512y6kid2nvm67g93r9a6rvv"; }; - propagatedBuildInputs = [ colorama log-symbols termcolor six spinners ]; + propagatedBuildInputs = [ + colorama + log-symbols + termcolor + six + spinners + ]; # Tests are not included in the PyPI distribution and the git repo does not have tagged releases doCheck = false; diff --git a/pkgs/development/python-modules/halohome/default.nix b/pkgs/development/python-modules/halohome/default.nix index 2ef4acd0770d..0b5ac1bf61f0 100644 --- a/pkgs/development/python-modules/halohome/default.nix +++ b/pkgs/development/python-modules/halohome/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, bleak -, buildPythonPackage -, csrmesh -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + bleak, + buildPythonPackage, + csrmesh, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "halohome" - ]; + pythonImportsCheck = [ "halohome" ]; meta = with lib; { description = "Python library to control Eaton HALO Home Smart Lights"; diff --git a/pkgs/development/python-modules/handout/default.nix b/pkgs/development/python-modules/handout/default.nix index b42a8f018a30..975e3003ba59 100644 --- a/pkgs/development/python-modules/handout/default.nix +++ b/pkgs/development/python-modules/handout/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, imageio, imageio-ffmpeg }: +{ + lib, + buildPythonPackage, + fetchPypi, + imageio, + imageio-ffmpeg, +}: buildPythonPackage rec { pname = "handout"; @@ -11,7 +16,10 @@ buildPythonPackage rec { sha256 = "52daaf1f9a4cb2ceb88c1dedf85d22ef449b9422b424a2534d21f941e57bc915"; }; - propagatedBuildInputs = [ imageio imageio-ffmpeg ]; + propagatedBuildInputs = [ + imageio + imageio-ffmpeg + ]; meta = with lib; { description = "Turn Python scripts into handouts with Markdown and figures"; diff --git a/pkgs/development/python-modules/hap-python/default.nix b/pkgs/development/python-modules/hap-python/default.nix index 0bb7f35e288f..97b5c1f480e3 100644 --- a/pkgs/development/python-modules/hap-python/default.nix +++ b/pkgs/development/python-modules/hap-python/default.nix @@ -1,18 +1,19 @@ -{ lib -, async-timeout -, buildPythonPackage -, base36 -, chacha20poly1305-reuseable -, cryptography -, fetchFromGitHub -, h11 -, orjson -, pyqrcode -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, zeroconf +{ + lib, + async-timeout, + buildPythonPackage, + base36, + chacha20poly1305-reuseable, + cryptography, + fetchFromGitHub, + h11, + orjson, + pyqrcode, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + zeroconf, }: buildPythonPackage rec { @@ -47,8 +48,7 @@ buildPythonPackage rec { pytest-asyncio pytest-timeout pytestCheckHook - ] - ++ passthru.optional-dependencies.QRCode; + ] ++ passthru.optional-dependencies.QRCode; disabledTestPaths = [ # Disable tests requiring network access @@ -67,9 +67,7 @@ buildPythonPackage rec { "test_migration_to_include_client_properties" ]; - pythonImportsCheck = [ - "pyhap" - ]; + pythonImportsCheck = [ "pyhap" ]; meta = with lib; { description = "HomeKit Accessory Protocol implementation"; diff --git a/pkgs/development/python-modules/hassil/default.nix b/pkgs/development/python-modules/hassil/default.nix index 98c4181d48c2..ff5c2f108e1a 100644 --- a/pkgs/development/python-modules/hassil/default.nix +++ b/pkgs/development/python-modules/hassil/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# propagates -, pyyaml -, unicode-rbnf + # propagates + pyyaml, + unicode-rbnf, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: let @@ -31,12 +32,10 @@ buildPythonPackage { unicode-rbnf ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { - changelog = "https://github.com/home-assistant/hassil/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/home-assistant/hassil/blob/v${version}/CHANGELOG.md"; description = "Intent parsing for Home Assistant"; mainProgram = "hassil"; homepage = "https://github.com/home-assistant/hassil"; diff --git a/pkgs/development/python-modules/hatasmota/default.nix b/pkgs/development/python-modules/hatasmota/default.nix index 6dcd50f3c46a..a6b84d93b1a6 100644 --- a/pkgs/development/python-modules/hatasmota/default.nix +++ b/pkgs/development/python-modules/hatasmota/default.nix @@ -1,10 +1,11 @@ -{ lib -, attrs -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, voluptuous +{ + lib, + attrs, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + voluptuous, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Kbz/ETSJGx6u0ZNfEWfl9klBIB3yPcfHGy1uKK50TGA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "hatasmota" - ]; + pythonImportsCheck = [ "hatasmota" ]; meta = with lib; { description = "Python module to help parse and construct Tasmota MQTT messages"; diff --git a/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix b/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix index b3f71b73eed3..2c96dd85be1e 100644 --- a/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix +++ b/pkgs/development/python-modules/hatch-fancy-pypi-readme/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, build -, hatchling -, tomli -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + build, + hatchling, + tomli, + typing-extensions, }: buildPythonPackage rec { @@ -22,17 +23,12 @@ buildPythonPackage rec { hash = "sha256-RN0jnxp3m53PjryUAaYR/X9+PhRXjc8iwmXfr3wVFLg="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - hatchling - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = + [ hatchling ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ] + ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ build @@ -41,13 +37,11 @@ buildPythonPackage rec { # Requires network connection disabledTests = [ - "test_build" # Requires internet + "test_build" # Requires internet "test_invalid_config" ]; - pythonImportsCheck = [ - "hatch_fancy_pypi_readme" - ]; + pythonImportsCheck = [ "hatch_fancy_pypi_readme" ]; meta = with lib; { description = "Fancy PyPI READMEs with Hatch"; diff --git a/pkgs/development/python-modules/hatch-jupyter-builder/default.nix b/pkgs/development/python-modules/hatch-jupyter-builder/default.nix index 0c827ac42cd3..731aeeba52ce 100644 --- a/pkgs/development/python-modules/hatch-jupyter-builder/default.nix +++ b/pkgs/development/python-modules/hatch-jupyter-builder/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytest-mock -, pytestCheckHook -, tomli -, twine -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytest-mock, + pytestCheckHook, + tomli, + twine, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,15 @@ buildPythonPackage rec { hash = "sha256-QDWHVdjtexUNGRL+dVehdBwahSW2HmNkZKkQyuOghyI="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - hatchling - ]; + dependencies = [ hatchling ]; nativeCheckInputs = [ pytest-mock pytestCheckHook twine - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; disabledTests = [ # tests pip install, which unsuprisingly fails diff --git a/pkgs/development/python-modules/hatch-nodejs-version/default.nix b/pkgs/development/python-modules/hatch-nodejs-version/default.nix index 806bffe56cc1..2c0a724d939b 100644 --- a/pkgs/development/python-modules/hatch-nodejs-version/default.nix +++ b/pkgs/development/python-modules/hatch-nodejs-version/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, hatchling +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + hatchling, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-hknlb11DCe+b55CfF3Pr62ccWPxVrjQ197ZagSiH/zU="; }; - propagatedBuildInputs = [ - hatchling - ]; + propagatedBuildInputs = [ hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "hatch_nodejs_version" - ]; + pythonImportsCheck = [ "hatch_nodejs_version" ]; meta = with lib; { description = "Plugins for dealing with NodeJS versions"; diff --git a/pkgs/development/python-modules/hatch-requirements-txt/default.nix b/pkgs/development/python-modules/hatch-requirements-txt/default.nix index 999596680505..12e304475c74 100644 --- a/pkgs/development/python-modules/hatch-requirements-txt/default.nix +++ b/pkgs/development/python-modules/hatch-requirements-txt/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, packaging -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + packaging, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-Kd3rDfTBn/t/NiSJMPkHRWD5solUF7MAN8EiZokxHrk="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ hatchling @@ -29,9 +28,7 @@ buildPythonPackage rec { doCheck = false; # missing coincidence dependency - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/repo-helper/hatch-requirements-txt/releases/tag/${version}"; @@ -41,4 +38,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ ]; }; } - diff --git a/pkgs/development/python-modules/hatch-vcs/default.nix b/pkgs/development/python-modules/hatch-vcs/default.nix index 25884829b5d2..0a7f42232e41 100644 --- a/pkgs/development/python-modules/hatch-vcs/default.nix +++ b/pkgs/development/python-modules/hatch-vcs/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, git -, hatchling -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + git, + hatchling, + setuptools-scm, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-CTgQdI/gHbDUUfq88sGsJojK79Iy1O3pZwkLHBsH2fc="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ hatchling @@ -41,9 +40,7 @@ buildPythonPackage rec { "test_write" ]; - pythonImportsCheck = [ - "hatch_vcs" - ]; + pythonImportsCheck = [ "hatch_vcs" ]; meta = with lib; { changelog = "https://github.com/ofek/hatch-vcs/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/hatchling/default.nix b/pkgs/development/python-modules/hatchling/default.nix index fa5f239acacc..8df49b40e94d 100644 --- a/pkgs/development/python-modules/hatchling/default.nix +++ b/pkgs/development/python-modules/hatchling/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# runtime -, editables -, packaging -, pathspec -, pluggy -, tomli -, trove-classifiers + # runtime + editables, + packaging, + pathspec, + pluggy, + tomli, + trove-classifiers, -# tests -, build -, python -, requests -, virtualenv + # tests + build, + python, + requests, + virtualenv, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { pathspec pluggy trove-classifiers - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; pythonImportsCheck = [ "hatchling" @@ -71,6 +70,9 @@ buildPythonPackage rec { homepage = "https://hatch.pypa.io/latest/"; changelog = "https://github.com/pypa/hatch/releases/tag/hatchling-v${version}"; license = licenses.mit; - maintainers = with maintainers; [ hexa ofek ]; + maintainers = with maintainers; [ + hexa + ofek + ]; }; } diff --git a/pkgs/development/python-modules/haversine/default.nix b/pkgs/development/python-modules/haversine/default.nix index 68f3940a382b..5264545cca5a 100644 --- a/pkgs/development/python-modules/haversine/default.nix +++ b/pkgs/development/python-modules/haversine/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-MKOg2awpamupvuXstiH7VoIY4ax+hy2h2cFXDFKJ2mA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ numpy pytestCheckHook ]; - pythonImportsCheck = [ - "haversine" - ]; + pythonImportsCheck = [ "haversine" ]; meta = with lib; { description = "Python module the distance between 2 points on earth"; diff --git a/pkgs/development/python-modules/hcloud/default.nix b/pkgs/development/python-modules/hcloud/default.nix index 09d6f07756d6..fb0f4b8e27e3 100644 --- a/pkgs/development/python-modules/hcloud/default.nix +++ b/pkgs/development/python-modules/hcloud/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future -, mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + future, + mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-sZSatje+UXt69r7Nv4QMR3IvlHHGuHDm813h72/Oo+M="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ future @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "hcloud" - ]; + pythonImportsCheck = [ "hcloud" ]; meta = with lib; { description = "Library for the Hetzner Cloud API"; diff --git a/pkgs/development/python-modules/hcs-utils/default.nix b/pkgs/development/python-modules/hcs-utils/default.nix index d8d6bb67e47f..a69622a440d4 100644 --- a/pkgs/development/python-modules/hcs-utils/default.nix +++ b/pkgs/development/python-modules/hcs-utils/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, six, glibcLocales, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + glibcLocales, + pytest, +}: buildPythonPackage rec { pname = "hcs-utils"; @@ -11,21 +18,24 @@ buildPythonPackage rec { sha256 = "04xq69hrys8lf9kp8pva0c4aphjjfw412km7c32ydkwq0i59rhp2"; }; - LC_ALL="en_US.UTF-8"; + LC_ALL = "en_US.UTF-8"; checkPhase = '' # root does not has /root as home in sandbox py.test -k 'not test_expand' hcs_utils/test ''; - buildInputs = [ six glibcLocales ]; + buildInputs = [ + six + glibcLocales + ]; nativeCheckInputs = [ pytest ]; meta = with lib; { description = "Library collecting some useful snippets"; - homepage = "https://pypi.python.org/pypi/hcs_utils/1.3"; - license = licenses.isc; + homepage = "https://pypi.python.org/pypi/hcs_utils/1.3"; + license = licenses.isc; maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; + platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/hdate/default.nix b/pkgs/development/python-modules/hdate/default.nix index 3c45b7ff08d6..a725414ece47 100644 --- a/pkgs/development/python-modules/hdate/default.nix +++ b/pkgs/development/python-modules/hdate/default.nix @@ -1,11 +1,12 @@ -{ lib -, astral -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, pytz +{ + lib, + astral, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -28,26 +29,18 @@ buildPythonPackage rec { --replace 'astral = {version = "^2.2", python = "^3.6"}' 'astral = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ astral pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; - pythonImportsCheck = [ - "hdate" - ]; + pythonImportsCheck = [ "hdate" ]; meta = with lib; { description = "Python module for Jewish/Hebrew date and Zmanim"; diff --git a/pkgs/development/python-modules/hdbscan/default.nix b/pkgs/development/python-modules/hdbscan/default.nix index 0c6acf729f69..99194c06e2ee 100644 --- a/pkgs/development/python-modules/hdbscan/default.nix +++ b/pkgs/development/python-modules/hdbscan/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchpatch -, cython -, numpy -, pytestCheckHook -, scipy -, scikit-learn -, fetchPypi -, joblib -, six -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchpatch, + cython, + numpy, + pytestCheckHook, + scipy, + scikit-learn, + fetchPypi, + joblib, + six, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -23,8 +24,17 @@ buildPythonPackage rec { }; pythonRemoveDeps = [ "cython" ]; - nativeBuildInputs = [ pythonRelaxDepsHook cython ]; - propagatedBuildInputs = [ numpy scipy scikit-learn joblib six ]; + nativeBuildInputs = [ + pythonRelaxDepsHook + cython + ]; + propagatedBuildInputs = [ + numpy + scipy + scikit-learn + joblib + six + ]; preCheck = '' cd hdbscan/tests rm __init__.py @@ -46,7 +56,7 @@ buildPythonPackage rec { meta = with lib; { description = "Hierarchical Density-Based Spatial Clustering of Applications with Noise, a clustering algorithm with a scikit-learn compatible API"; - homepage = "https://github.com/scikit-learn-contrib/hdbscan"; + homepage = "https://github.com/scikit-learn-contrib/hdbscan"; license = licenses.bsd3; }; } diff --git a/pkgs/development/python-modules/hdf5plugin/default.nix b/pkgs/development/python-modules/hdf5plugin/default.nix index 7d4019d28ce2..fd7bff5d3e02 100644 --- a/pkgs/development/python-modules/hdf5plugin/default.nix +++ b/pkgs/development/python-modules/hdf5plugin/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, h5py +{ + lib, + buildPythonPackage, + fetchFromGitHub, + h5py, }: buildPythonPackage rec { @@ -16,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-MnqY1PyGzo31H696J9CekiA2rJrUYzUMDC3UJMZaFLA="; }; - dependencies = [ - h5py - ]; + dependencies = [ h5py ]; checkPhase = '' python test/test.py ''; - pythonImportsCheck = [ - "hdf5plugin" - ]; + pythonImportsCheck = [ "hdf5plugin" ]; preBuild = '' mkdir src/hdf5plugin/plugins @@ -41,5 +38,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ pbsds ]; }; - } diff --git a/pkgs/development/python-modules/hdfs/default.nix b/pkgs/development/python-modules/hdfs/default.nix index 2217ee5567cf..18a75a338933 100644 --- a/pkgs/development/python-modules/hdfs/default.nix +++ b/pkgs/development/python-modules/hdfs/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, docopt -, fastavro -, fetchFromGitHub -, lib -, nose -, pytestCheckHook -, requests -, six +{ + buildPythonPackage, + docopt, + fastavro, + fetchFromGitHub, + lib, + nose, + pytestCheckHook, + requests, + six, }: buildPythonPackage rec { @@ -21,9 +22,17 @@ buildPythonPackage rec { hash = "sha256-Pm2E8hB0wbu7npi/sLt9D8jQsH69qNOHLji9CYqST/8="; }; - propagatedBuildInputs = [ docopt requests six ]; + propagatedBuildInputs = [ + docopt + requests + six + ]; - nativeCheckInputs = [ fastavro nose pytestCheckHook ]; + nativeCheckInputs = [ + fastavro + nose + pytestCheckHook + ]; pythonImportsCheck = [ "hdfs" ]; diff --git a/pkgs/development/python-modules/hdmedians/default.nix b/pkgs/development/python-modules/hdmedians/default.nix index f2342aebfe01..c36314947e10 100644 --- a/pkgs/development/python-modules/hdmedians/default.nix +++ b/pkgs/development/python-modules/hdmedians/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, cython -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + cython, + numpy, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { }; # nose was specified in setup.py as a build dependency... - buildInputs = [ cython nose ]; + buildInputs = [ + cython + nose + ]; propagatedBuildInputs = [ numpy ]; # cannot resolve path for packages in tests diff --git a/pkgs/development/python-modules/headerparser/default.nix b/pkgs/development/python-modules/headerparser/default.nix index 71cad63ef70f..d75e26f95511 100644 --- a/pkgs/development/python-modules/headerparser/default.nix +++ b/pkgs/development/python-modules/headerparser/default.nix @@ -1,12 +1,13 @@ -{ lib -, attrs -, buildPythonPackage -, deprecated -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + attrs, + buildPythonPackage, + deprecated, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "headerparser" - ]; + pythonImportsCheck = [ "headerparser" ]; meta = with lib; { description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers"; diff --git a/pkgs/development/python-modules/heapdict/default.nix b/pkgs/development/python-modules/heapdict/default.nix index 44852a3bf4bd..f503f8d5e2b0 100644 --- a/pkgs/development/python-modules/heapdict/default.nix +++ b/pkgs/development/python-modules/heapdict/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, +}: buildPythonPackage rec { pname = "heapdict"; diff --git a/pkgs/development/python-modules/heatshrink2/default.nix b/pkgs/development/python-modules/heatshrink2/default.nix index dd37c7c0c0ad..034857ba6361 100644 --- a/pkgs/development/python-modules/heatshrink2/default.nix +++ b/pkgs/development/python-modules/heatshrink2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-JthHYq78SYr49+sTNtLZ8GjtrHcr1dzXcPskTrb4M3o="; }; - pythonImportsCheck = [ - "heatshrink2" - ]; + pythonImportsCheck = [ "heatshrink2" ]; meta = with lib; { description = "Compression using the Heatshrink algorithm"; diff --git a/pkgs/development/python-modules/help2man/default.nix b/pkgs/development/python-modules/help2man/default.nix index edcd479458fe..df9398fcb265 100644 --- a/pkgs/development/python-modules/help2man/default.nix +++ b/pkgs/development/python-modules/help2man/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, jinja2 -, setuptools-scm -, shtab -, tomli -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + jinja2, + setuptools-scm, + shtab, + tomli, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { tomli ]; - propagatedBuildInputs = [ - jinja2 - ]; + propagatedBuildInputs = [ jinja2 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "help2man" ]; diff --git a/pkgs/development/python-modules/helpdev/default.nix b/pkgs/development/python-modules/helpdev/default.nix index 160797c9327c..2faf262f6ed2 100644 --- a/pkgs/development/python-modules/helpdev/default.nix +++ b/pkgs/development/python-modules/helpdev/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-metadata -, psutil +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-metadata, + psutil, }: buildPythonPackage rec { @@ -28,5 +29,4 @@ buildPythonPackage rec { mainProgram = "helpdev"; license = lib.licenses.mit; }; - } diff --git a/pkgs/development/python-modules/helper/default.nix b/pkgs/development/python-modules/helper/default.nix index 7d55d498d5d4..930d743b7bf0 100644 --- a/pkgs/development/python-modules/helper/default.nix +++ b/pkgs/development/python-modules/helper/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyyaml -, pytestCheckHook -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyyaml, + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "0zypjv8rncvrsgl200v7d3bn08gs48dwqvgamfqv71h07cj6zngp"; }; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/hepunits/default.nix b/pkgs/development/python-modules/hepunits/default.nix index 8089deecf006..5056c6867868 100644 --- a/pkgs/development/python-modules/hepunits/default.nix +++ b/pkgs/development/python-modules/hepunits/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Units and constants in the HEP system of units"; @@ -32,4 +31,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ doronbehar ]; }; } - diff --git a/pkgs/development/python-modules/here-routing/default.nix b/pkgs/development/python-modules/here-routing/default.nix index c1ca069b51d6..0ab74bcd2bb6 100644 --- a/pkgs/development/python-modules/here-routing/default.nix +++ b/pkgs/development/python-modules/here-routing/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, aiohttp -, async-timeout -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + aiohttp, + async-timeout, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { sed -i "/^addopts/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/here-transit/default.nix b/pkgs/development/python-modules/here-transit/default.nix index 638f46af434f..8c9ef33e5715 100644 --- a/pkgs/development/python-modules/here-transit/default.nix +++ b/pkgs/development/python-modules/here-transit/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, aiohttp -, async-timeout -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + aiohttp, + async-timeout, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { sed -i "/^addopts/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/herepy/default.nix b/pkgs/development/python-modules/herepy/default.nix index ac7ad2919139..e50103e8c74c 100644 --- a/pkgs/development/python-modules/herepy/default.nix +++ b/pkgs/development/python-modules/herepy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, requests -, pytestCheckHook -, responses +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + requests, + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-+DI9wjYVAUKdGEXWhbV9Xp0oOazcB+sS89ugIZuZM2w="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; - pythonImportsCheck = [ - "herepy" - ]; + pythonImportsCheck = [ "herepy" ]; meta = with lib; { changelog = "https://github.com/abdullahselek/HerePy/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/hetzner/default.nix b/pkgs/development/python-modules/hetzner/default.nix index 07b8f0ed2d42..fd4eb8496ce9 100644 --- a/pkgs/development/python-modules/hetzner/default.nix +++ b/pkgs/development/python-modules/hetzner/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hexbytes/default.nix b/pkgs/development/python-modules/hexbytes/default.nix index 654471ca0f29..311644b15ce0 100644 --- a/pkgs/development/python-modules/hexbytes/default.nix +++ b/pkgs/development/python-modules/hexbytes/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, eth-utils -, hypothesis -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + eth-utils, + hypothesis, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,7 +22,7 @@ buildPythonPackage rec { hash = "sha256-8st1nQiGApt+aNl8/cftYk0ZzA+MxbLyGi53UWUlAjM="; }; - build-system = [ setuptools]; + build-system = [ setuptools ]; nativeCheckInputs = [ eth-utils @@ -29,9 +30,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "hexbytes" - ]; + pythonImportsCheck = [ "hexbytes" ]; meta = with lib; { description = "`bytes` subclass that decodes hex, with a readable console output"; diff --git a/pkgs/development/python-modules/hexdump/default.nix b/pkgs/development/python-modules/hexdump/default.nix index 7ebf919038b2..0a2c57ab7bbb 100644 --- a/pkgs/development/python-modules/hexdump/default.nix +++ b/pkgs/development/python-modules/hexdump/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "hexdump"; @@ -29,6 +33,9 @@ buildPythonPackage rec { description = "Library to dump binary data to hex format and restore from there"; homepage = "https://pypi.org/project/hexdump/"; # BitBucket site returns 404 license = licenses.publicDomain; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/hfst/default.nix b/pkgs/development/python-modules/hfst/default.nix index 8b720c12a9a9..06e2ed94bb03 100644 --- a/pkgs/development/python-modules/hfst/default.nix +++ b/pkgs/development/python-modules/hfst/default.nix @@ -1,10 +1,11 @@ -{ lib -, pkgs -, stdenv -, buildPythonPackage -, foma -, icu -, swig +{ + lib, + pkgs, + stdenv, + buildPythonPackage, + foma, + icu, + swig, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { sed -i 's/libhfst_swig/hfst/' setup.py; ''; - nativeBuildInputs = [ - swig - ]; + nativeBuildInputs = [ swig ]; buildInputs = [ icu pkgs.hfst ]; - setupPyBuildFlags = [ - "--inplace" - ]; + setupPyBuildFlags = [ "--inplace" ]; # Find foma in Darwin tests preCheck = lib.optionalString stdenv.isDarwin '' diff --git a/pkgs/development/python-modules/hg-commitsigs/default.nix b/pkgs/development/python-modules/hg-commitsigs/default.nix index 7a97bff33316..be96f45368ac 100644 --- a/pkgs/development/python-modules/hg-commitsigs/default.nix +++ b/pkgs/development/python-modules/hg-commitsigs/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchhg -, stdenv -, python +{ + lib, + fetchhg, + stdenv, + python, }: stdenv.mkDerivation rec { diff --git a/pkgs/development/python-modules/hg-evolve/default.nix b/pkgs/development/python-modules/hg-evolve/default.nix index 8a1e07c574f8..3f4a0c285029 100644 --- a/pkgs/development/python-modules/hg-evolve/default.nix +++ b/pkgs/development/python-modules/hg-evolve/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mercurial +{ + lib, + buildPythonPackage, + fetchPypi, + mercurial, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-WUPOok/tpZJSookzCIEHRKAlTzeZ6RJY0IiclgQUOs8="; }; - nativeCheckInputs = [ - mercurial - ]; + nativeCheckInputs = [ mercurial ]; checkPhase = '' runHook preCheck @@ -54,7 +53,10 @@ buildPythonPackage rec { meta = with lib; { description = "Enables the “changeset evolution” feature of Mercurial core"; homepage = "https://www.mercurial-scm.org/doc/evolution/"; - maintainers = with maintainers; [ xavierzwirtz lukegb ]; + maintainers = with maintainers; [ + xavierzwirtz + lukegb + ]; license = licenses.gpl2Plus; }; } diff --git a/pkgs/development/python-modules/hg-git/default.nix b/pkgs/development/python-modules/hg-git/default.nix index 86145ee03ab4..fb38f22af4bf 100644 --- a/pkgs/development/python-modules/hg-git/default.nix +++ b/pkgs/development/python-modules/hg-git/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, dulwich -, mercurial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + dulwich, + mercurial, + pythonOlder, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-r04Q6zbt8VM1jYkoGOdJZqKPPxXy4jC1X1d9nJ+fEWY="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ dulwich mercurial ]; - pythonImportsCheck = [ - "hggit" - ]; + pythonImportsCheck = [ "hggit" ]; meta = with lib; { description = "Push and pull from a Git server using Mercurial"; diff --git a/pkgs/development/python-modules/hid-parser/default.nix b/pkgs/development/python-modules/hid-parser/default.nix index dc0bbb433fd1..1106accebf07 100644 --- a/pkgs/development/python-modules/hid-parser/default.nix +++ b/pkgs/development/python-modules/hid-parser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytest7CheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytest7CheckHook, + hypothesis, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-zbm+h+ieDmd1K0uH+9B8EWtYScxqYJXVpY9bXdBivA4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest7CheckHook diff --git a/pkgs/development/python-modules/hid/default.nix b/pkgs/development/python-modules/hid/default.nix index 7c33cb5b9d3c..e1232bc85934 100644 --- a/pkgs/development/python-modules/hid/default.nix +++ b/pkgs/development/python-modules/hid/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, hidapi +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + hidapi, }: buildPythonPackage rec { @@ -15,25 +16,19 @@ buildPythonPackage rec { hash = "sha256-SNdk166XRroSO5bb9FeJPKgCaLd5HEsdLgUTEO64OGA="; }; - postPatch = '' - hidapi=${hidapi}/lib/ - test -d $hidapi || { echo "ERROR: $hidapi doesn't exist, please update/fix this build expression."; exit 1; } - sed -i -e "s|libhidapi|$hidapi/libhidapi|" hid/__init__.py + postPatch = '' + hidapi=${hidapi}/lib/ + test -d $hidapi || { echo "ERROR: $hidapi doesn't exist, please update/fix this build expression."; exit 1; } + sed -i -e "s|libhidapi|$hidapi/libhidapi|" hid/__init__.py ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - hidapi - ]; + dependencies = [ hidapi ]; doCheck = false; # no tests - pythonImportsCheck = [ - "hid" - ]; + pythonImportsCheck = [ "hid" ]; meta = with lib; { description = "hidapi bindings in ctypes"; diff --git a/pkgs/development/python-modules/hidapi/default.nix b/pkgs/development/python-modules/hidapi/default.nix index 6ad7b62d05a8..97e913e68776 100644 --- a/pkgs/development/python-modules/hidapi/default.nix +++ b/pkgs/development/python-modules/hidapi/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, xcbuild -, cython_0 -, libusb1 -, udev -, darwin +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + xcbuild, + cython_0, + libusb1, + udev, + darwin, }: buildPythonPackage rec { @@ -19,11 +20,21 @@ buildPythonPackage rec { sha256 = "a7cb029286ced5426a381286526d9501846409701a29c2538615c3d1a612b8be"; }; - nativeBuildInputs = [ cython_0 ] - ++ lib.optionals stdenv.isDarwin [ xcbuild ]; + nativeBuildInputs = [ cython_0 ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; - propagatedBuildInputs = lib.optionals stdenv.isLinux [ libusb1 udev ] - ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ AppKit CoreFoundation IOKit ]); + propagatedBuildInputs = + lib.optionals stdenv.isLinux [ + libusb1 + udev + ] + ++ lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk.frameworks; + [ + AppKit + CoreFoundation + IOKit + ] + ); # Fix the USB backend library lookup postPatch = lib.optionalString stdenv.isLinux '' @@ -39,7 +50,13 @@ buildPythonPackage rec { homepage = "https://github.com/trezor/cython-hidapi"; # license can actually be either bsd3 or gpl3 # see https://github.com/trezor/cython-hidapi/blob/master/LICENSE-orig.txt - license = with licenses; [ bsd3 gpl3Only ]; - maintainers = with maintainers; [ np prusnak ]; + license = with licenses; [ + bsd3 + gpl3Only + ]; + maintainers = with maintainers; [ + np + prusnak + ]; }; } diff --git a/pkgs/development/python-modules/hieroglyph/default.nix b/pkgs/development/python-modules/hieroglyph/default.nix index d2f3168a76a1..30670a8716c2 100644 --- a/pkgs/development/python-modules/hieroglyph/default.nix +++ b/pkgs/development/python-modules/hieroglyph/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, isPy27, sphinx }: +{ + lib, + fetchPypi, + buildPythonPackage, + isPy27, + sphinx, +}: buildPythonPackage rec { pname = "hieroglyph"; @@ -24,4 +30,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ juliendehos ]; }; } - diff --git a/pkgs/development/python-modules/highdicom/default.nix b/pkgs/development/python-modules/highdicom/default.nix index b4420e6de9d4..a8828ff93274 100644 --- a/pkgs/development/python-modules/highdicom/default.nix +++ b/pkgs/development/python-modules/highdicom/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, numpy -, pillow -, pillow-jpls -, pydicom -, pylibjpeg -, pylibjpeg-libjpeg +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + numpy, + pillow, + pillow-jpls, + pydicom, + pylibjpeg, + pylibjpeg-libjpeg, }: let @@ -48,9 +49,7 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.libjpeg; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.libjpeg; preCheck = '' export HOME=$TMP/test-home mkdir -p $HOME/.pydicom/ diff --git a/pkgs/development/python-modules/hijri-converter/default.nix b/pkgs/development/python-modules/hijri-converter/default.nix index 7c6d0d85d2ce..f99bddec4593 100644 --- a/pkgs/development/python-modules/hijri-converter/default.nix +++ b/pkgs/development/python-modules/hijri-converter/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-BptniSkeCDD0hgp53NNPs87qO5VRbtQBAgK5ZWuhq2E="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "hijri_converter" - ]; + pythonImportsCheck = [ "hijri_converter" ]; meta = with lib; { description = "Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"; diff --git a/pkgs/development/python-modules/hikari/default.nix b/pkgs/development/python-modules/hikari/default.nix index 062a6a9ebe14..5b538536c984 100644 --- a/pkgs/development/python-modules/hikari/default.nix +++ b/pkgs/development/python-modules/hikari/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pytest-runner -, aiohttp -, attrs -, multidict -, colorlog -, pynacl -, pytest-cov -, pytest-randomly -, pytest-asyncio -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + pytest-runner, + aiohttp, + attrs, + multidict, + colorlog, + pynacl, + pytest-cov, + pytest-randomly, + pytest-asyncio, + mock, }: buildPythonPackage rec { pname = "hikari"; @@ -36,9 +37,7 @@ buildPythonPackage rec { ''; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/hiredis/default.nix b/pkgs/development/python-modules/hiredis/default.nix index 2408fa2d7e1c..d9a6917ae5d8 100644 --- a/pkgs/development/python-modules/hiredis/default.nix +++ b/pkgs/development/python-modules/hiredis/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# tested using -, pytestCheckHook + # tested using + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-7hTGXHNECy+dSsop0ULsNZvGFecCIEv+q46s7t/K7k8="; }; - pythonImportsCheck = [ - "hiredis" - ]; + pythonImportsCheck = [ "hiredis" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -rf hiredis @@ -42,4 +39,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ mmai ]; }; } - diff --git a/pkgs/development/python-modules/hiro/default.nix b/pkgs/development/python-modules/hiro/default.nix index 2656c13274ba..7b7f7d8dbf05 100644 --- a/pkgs/development/python-modules/hiro/default.nix +++ b/pkgs/development/python-modules/hiro/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, mock }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + mock, +}: buildPythonPackage rec { pname = "hiro"; version = "1.1.1"; @@ -9,7 +15,10 @@ buildPythonPackage rec { hash = "sha256-2jM5rx3JpZTMqdycccclJysuMGYE5F0OBXXNE8X5XWg="; }; - propagatedBuildInputs = [ six mock ]; + propagatedBuildInputs = [ + six + mock + ]; meta = with lib; { description = "Time manipulation utilities for Python"; diff --git a/pkgs/development/python-modules/hist/default.nix b/pkgs/development/python-modules/hist/default.nix index 17bca6ecb8fa..0585fc400526 100644 --- a/pkgs/development/python-modules/hist/default.nix +++ b/pkgs/development/python-modules/hist/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchPypi -, buildPythonPackage -, boost-histogram -, histoprint -, hatchling -, hatch-vcs -, numpy -, pytestCheckHook -, pytest-mpl -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + boost-histogram, + histoprint, + hatchling, + hatch-vcs, + numpy, + pytestCheckHook, + pytest-mpl, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/histoprint/default.nix b/pkgs/development/python-modules/histoprint/default.nix index 94f38aacb674..14551898283e 100644 --- a/pkgs/development/python-modules/histoprint/default.nix +++ b/pkgs/development/python-modules/histoprint/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, click -, numpy -, setuptools -, setuptools-scm -, uhi -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + click, + numpy, + setuptools, + setuptools-scm, + uhi, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { uhi ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; meta = with lib; { description = "Pretty print histograms to the console"; diff --git a/pkgs/development/python-modules/hiyapyco/default.nix b/pkgs/development/python-modules/hiyapyco/default.nix index 4fd8f10bd111..b0c6e9f56f48 100644 --- a/pkgs/development/python-modules/hiyapyco/default.nix +++ b/pkgs/development/python-modules/hiyapyco/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pyyaml -, jinja2 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pyyaml, + jinja2, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-WBSOjOX4naa0XDTnO593EAvtz5EjVPWCbiZaPXdx0e4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyyaml diff --git a/pkgs/development/python-modules/hkavr/default.nix b/pkgs/development/python-modules/hkavr/default.nix index 851150ea1dd8..c981affe092c 100644 --- a/pkgs/development/python-modules/hkavr/default.nix +++ b/pkgs/development/python-modules/hkavr/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-wa0yS0KPdrQUuxxViweESD6Itn2rFlTwwrPQ0COWIPc="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "hkavr" - ]; + pythonImportsCheck = [ "hkavr" ]; meta = with lib; { description = "Library for interacting with Harman Kardon AVR controllers"; diff --git a/pkgs/development/python-modules/hkdf/default.nix b/pkgs/development/python-modules/hkdf/default.nix index e82489fd12fd..e316e91a0ef8 100644 --- a/pkgs/development/python-modules/hkdf/default.nix +++ b/pkgs/development/python-modules/hkdf/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + nose, }: buildPythonPackage rec { @@ -28,5 +29,4 @@ buildPythonPackage rec { homepage = "https://github.com/casebeer/python-hkdf"; license = licenses.bsd2; }; - } diff --git a/pkgs/development/python-modules/hledger-utils/default.nix b/pkgs/development/python-modules/hledger-utils/default.nix index c2485c217a4c..0dd811f5a7be 100644 --- a/pkgs/development/python-modules/hledger-utils/default.nix +++ b/pkgs/development/python-modules/hledger-utils/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, setuptools -, setuptools-scm -, unittestCheckHook -, hledger -, perl -, rich -, pandas -, scipy -, psutil -, matplotlib -, drawilleplot -, asteval +{ + lib, + buildPythonPackage, + fetchFromGitLab, + setuptools, + setuptools-scm, + unittestCheckHook, + hledger, + perl, + rich, + pandas, + scipy, + psutil, + matplotlib, + drawilleplot, + asteval, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { asteval ]; - checkInputs = [ - unittestCheckHook - ]; + checkInputs = [ unittestCheckHook ]; nativeCheckInputs = [ hledger @@ -59,7 +58,11 @@ buildPythonPackage rec { meta = with lib; { description = "Utilities extending hledger"; homepage = "https://gitlab.com/nobodyinperson/hledger-utils"; - license = with licenses; [cc0 cc-by-40 gpl3]; + license = with licenses; [ + cc0 + cc-by-40 + gpl3 + ]; maintainers = with maintainers; [ nobbz ]; platforms = platforms.all; }; diff --git a/pkgs/development/python-modules/hlk-sw16/default.nix b/pkgs/development/python-modules/hlk-sw16/default.nix index 0674829a7af6..49a2da2686e4 100644 --- a/pkgs/development/python-modules/hlk-sw16/default.nix +++ b/pkgs/development/python-modules/hlk-sw16/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hmmlearn/default.nix b/pkgs/development/python-modules/hmmlearn/default.nix index 84014ba12899..27bad3762061 100644 --- a/pkgs/development/python-modules/hmmlearn/default.nix +++ b/pkgs/development/python-modules/hmmlearn/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, numpy -, scikit-learn -, pybind11 -, setuptools-scm -, cython -, pytestCheckHook -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + numpy, + scikit-learn, + pybind11, + setuptools-scm, + cython, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { scikit-learn ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "hmmlearn" - ]; + pythonImportsCheck = [ "hmmlearn" ]; pytestFlagsArray = [ "--pyargs" diff --git a/pkgs/development/python-modules/hnswlib/default.nix b/pkgs/development/python-modules/hnswlib/default.nix index c3dab17f5336..b5a8c9def667 100644 --- a/pkgs/development/python-modules/hnswlib/default.nix +++ b/pkgs/development/python-modules/hnswlib/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, hnswlib -, numpy -, pybind11 -, setuptools -, unittestCheckHook +{ + buildPythonPackage, + hnswlib, + numpy, + pybind11, + setuptools, + unittestCheckHook, }: buildPythonPackage { @@ -17,16 +18,12 @@ buildPythonPackage { pybind11 ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; unittestFlagsArray = [ "tests/python" "--pattern 'bindings_test*.py'" ]; - pythonImportsCheck = [ - "hnswlib" - ]; + pythonImportsCheck = [ "hnswlib" ]; } diff --git a/pkgs/development/python-modules/hocr-tools/default.nix b/pkgs/development/python-modules/hocr-tools/default.nix index d5886a8893db..609590b48623 100644 --- a/pkgs/development/python-modules/hocr-tools/default.nix +++ b/pkgs/development/python-modules/hocr-tools/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lxml -, pillow -, reportlab -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lxml, + pillow, + reportlab, + lib, }: buildPythonPackage rec { pname = "hocr-tools"; @@ -20,7 +21,11 @@ buildPythonPackage rec { # hocr-tools uses a test framework that requires internet access doCheck = false; - propagatedBuildInputs = [ pillow lxml reportlab ]; + propagatedBuildInputs = [ + pillow + lxml + reportlab + ]; meta = with lib; { description = " diff --git a/pkgs/development/python-modules/hole/default.nix b/pkgs/development/python-modules/hole/default.nix index 37ac10cdfcaf..1558036c2149 100644 --- a/pkgs/development/python-modules/hole/default.nix +++ b/pkgs/development/python-modules/hole/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # no tests are present doCheck = false; - pythonImportsCheck = [ - "hole" - ]; + pythonImportsCheck = [ "hole" ]; meta = with lib; { description = "Python API for interacting with a Pihole instance."; diff --git a/pkgs/development/python-modules/hologram/default.nix b/pkgs/development/python-modules/hologram/default.nix index 30f50456bad9..df9584ed31c2 100644 --- a/pkgs/development/python-modules/hologram/default.nix +++ b/pkgs/development/python-modules/hologram/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, jsonschema -, pytestCheckHook -, python-dateutil -, pythonRelaxDepsHook -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + jsonschema, + pytestCheckHook, + python-dateutil, + pythonRelaxDepsHook, + setuptools, + wheel, }: buildPythonPackage rec { @@ -42,22 +43,19 @@ buildPythonPackage rec { python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonRelaxDeps = [ - "python-dateutil" - ]; + pythonRelaxDeps = [ "python-dateutil" ]; - pythonImportsCheck = [ - "hologram" - ]; + pythonImportsCheck = [ "hologram" ]; meta = with lib; { description = "A library for automatically generating Draft 7 JSON Schemas from Python dataclasses"; homepage = "https://github.com/dbt-labs/hologram"; license = licenses.mit; - maintainers = with maintainers; [ mausch tjni ]; + maintainers = with maintainers; [ + mausch + tjni + ]; }; } diff --git a/pkgs/development/python-modules/holoviews/default.nix b/pkgs/development/python-modules/holoviews/default.nix index 03e4d80a4dfa..e09ca86f8a16 100644 --- a/pkgs/development/python-modules/holoviews/default.nix +++ b/pkgs/development/python-modules/holoviews/default.nix @@ -1,18 +1,19 @@ -{ lib -, bokeh -, buildPythonPackage -, colorcet -, fetchPypi -, ipython -, matplotlib -, notebook -, numpy -, pandas -, panel -, param -, pythonOlder -, pyviz-comms -, scipy +{ + lib, + bokeh, + buildPythonPackage, + colorcet, + fetchPypi, + ipython, + matplotlib, + notebook, + numpy, + pandas, + panel, + param, + pythonOlder, + pyviz-comms, + scipy, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { # tests not fully included with pypi release doCheck = false; - pythonImportsCheck = [ - "holoviews" - ]; + pythonImportsCheck = [ "holoviews" ]; meta = with lib; { description = "Python data analysis and visualization seamless and simple"; diff --git a/pkgs/development/python-modules/home-assistant-bluetooth/default.nix b/pkgs/development/python-modules/home-assistant-bluetooth/default.nix index de204e5fb425..fba93118b9de 100644 --- a/pkgs/development/python-modules/home-assistant-bluetooth/default.nix +++ b/pkgs/development/python-modules/home-assistant-bluetooth/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, cython -, poetry-core -, setuptools + # build-system + cython, + poetry-core, + setuptools, -# dependencies -, habluetooth + # dependencies + habluetooth, -# tests -, bleak -, pytestCheckHook + # tests + bleak, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,13 +42,9 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - habluetooth - ]; + propagatedBuildInputs = [ habluetooth ]; - pythonImportsCheck = [ - "home_assistant_bluetooth" - ]; + pythonImportsCheck = [ "home_assistant_bluetooth" ]; nativeCheckInputs = [ bleak diff --git a/pkgs/development/python-modules/home-assistant-chip-clusters/default.nix b/pkgs/development/python-modules/home-assistant-chip-clusters/default.nix index 396ff052182e..52801ebe5d11 100644 --- a/pkgs/development/python-modules/home-assistant-chip-clusters/default.nix +++ b/pkgs/development/python-modules/home-assistant-chip-clusters/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aenum -, dacite +{ + lib, + buildPythonPackage, + fetchPypi, + aenum, + dacite, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/home-assistant-chip-core/default.nix b/pkgs/development/python-modules/home-assistant-chip-core/default.nix index 8f05913fbd83..f12f2e53592e 100644 --- a/pkgs/development/python-modules/home-assistant-chip-core/default.nix +++ b/pkgs/development/python-modules/home-assistant-chip-core/default.nix @@ -1,29 +1,30 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build -, autoPatchelfHook + # build + autoPatchelfHook, -# runtime -, glib -, libnl + # runtime + glib, + libnl, -# propagates -, aenum -, coloredlogs -, construct -, cryptography -, dacite -, ecdsa -, rich -, pyyaml -, ipdb -, deprecation -, mobly -, pygobject3 + # propagates + aenum, + coloredlogs, + construct, + cryptography, + dacite, + ecdsa, + rich, + pyyaml, + ipdb, + deprecation, + mobly, + pygobject3, }: buildPythonPackage rec { @@ -33,30 +34,32 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = let - system = { - "aarch64-linux" = { - name = "aarch64"; - hash = "sha256-li+fmEikVnTAkgQnoiWjoZaVRwGRadTYuQySR5s8VB4="; - }; - "x86_64-linux" = { - name = "x86_64"; - hash = "sha256-iUKtAz00qFklTW2ilUPGAWhpqDmnLb6D3Zdy1oHpQl0="; - }; - }.${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"); - in fetchPypi { - pname = "home_assistant_chip_core"; - inherit version format; - dist = "cp37"; - python = "cp37"; - abi = "abi3"; - platform = "manylinux_2_31_${system.name}"; - hash = system.hash; - }; + src = + let + system = + { + "aarch64-linux" = { + name = "aarch64"; + hash = "sha256-li+fmEikVnTAkgQnoiWjoZaVRwGRadTYuQySR5s8VB4="; + }; + "x86_64-linux" = { + name = "x86_64"; + hash = "sha256-iUKtAz00qFklTW2ilUPGAWhpqDmnLb6D3Zdy1oHpQl0="; + }; + } + .${stdenv.system} or (throw "Unsupported system: ${stdenv.system}"); + in + fetchPypi { + pname = "home_assistant_chip_core"; + inherit version format; + dist = "cp37"; + python = "cp37"; + abi = "abi3"; + platform = "manylinux_2_31_${system.name}"; + hash = system.hash; + }; - nativeBuildInputs = [ - autoPatchelfHook - ]; + nativeBuildInputs = [ autoPatchelfHook ]; buildInputs = [ glib @@ -101,7 +104,10 @@ buildPythonPackage rec { changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}"; license = licenses.asl20; maintainers = teams.home-assistant.members; - platforms = [ "aarch64-linux" "x86_64-linux" ]; + platforms = [ + "aarch64-linux" + "x86_64-linux" + ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; }; } diff --git a/pkgs/development/python-modules/homeconnect/default.nix b/pkgs/development/python-modules/homeconnect/default.nix index 296fb482c16d..aa2629ff2d80 100644 --- a/pkgs/development/python-modules/homeconnect/default.nix +++ b/pkgs/development/python-modules/homeconnect/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, requests-oauthlib -, pythonOlder -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + requests-oauthlib, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-lkal6Dy4cRRZ893I3/jyQ3+sDZMrHN0UMGff0ab4pvk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "homeconnect" - ]; + pythonImportsCheck = [ "homeconnect" ]; meta = with lib; { description = "Python client for the BSH Home Connect REST API"; diff --git a/pkgs/development/python-modules/homepluscontrol/default.nix b/pkgs/development/python-modules/homepluscontrol/default.nix index 1e33118b191e..7af19f73f6fe 100644 --- a/pkgs/development/python-modules/homepluscontrol/default.nix +++ b/pkgs/development/python-modules/homepluscontrol/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pyjwt -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pyjwt, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hoomd-blue/default.nix b/pkgs/development/python-modules/hoomd-blue/default.nix index 421ef73275c9..ebadd5552698 100644 --- a/pkgs/development/python-modules/hoomd-blue/default.nix +++ b/pkgs/development/python-modules/hoomd-blue/default.nix @@ -1,18 +1,23 @@ -{ lib, stdenv, fetchgit -, cmake, pkgconfig -, python -, mpi ? null +{ + lib, + stdenv, + fetchgit, + cmake, + pkgconfig, + python, + mpi ? null, }: -let components = { - cgcmm = true; - depreciated = true; - hpmc = true; - md = true; - metal = true; - }; - onOffBool = b: if b then "ON" else "OFF"; - withMPI = (mpi != null); +let + components = { + cgcmm = true; + depreciated = true; + hpmc = true; + md = true; + metal = true; + }; + onOffBool = b: if b then "ON" else "OFF"; + withMPI = (mpi != null); in stdenv.mkDerivation rec { version = "2.3.4"; @@ -28,19 +33,21 @@ stdenv.mkDerivation rec { inherit components mpi; }; - nativeBuildInputs = [ cmake pkgconfig ]; + nativeBuildInputs = [ + cmake + pkgconfig + ]; buildInputs = lib.optionals withMPI [ mpi ]; - propagatedBuildInputs = [ python.pkgs.numpy ] - ++ lib.optionals withMPI [ python.pkgs.mpi4py ]; + propagatedBuildInputs = [ python.pkgs.numpy ] ++ lib.optionals withMPI [ python.pkgs.mpi4py ]; dontAddPrefix = true; cmakeFlags = [ - "-DENABLE_MPI=${onOffBool withMPI}" - "-DBUILD_CGCMM=${onOffBool components.cgcmm}" - "-DBUILD_DEPRECIATED=${onOffBool components.depreciated}" - "-DBUILD_HPMC=${onOffBool components.hpmc}" - "-DBUILD_MD=${onOffBool components.md}" - "-DBUILD_METAL=${onOffBool components.metal}" + "-DENABLE_MPI=${onOffBool withMPI}" + "-DBUILD_CGCMM=${onOffBool components.cgcmm}" + "-DBUILD_DEPRECIATED=${onOffBool components.depreciated}" + "-DBUILD_HPMC=${onOffBool components.hpmc}" + "-DBUILD_MD=${onOffBool components.md}" + "-DBUILD_METAL=${onOffBool components.metal}" ]; preConfigure = '' @@ -59,5 +66,4 @@ stdenv.mkDerivation rec { platforms = [ "x86_64-linux" ]; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/hopcroftkarp/default.nix b/pkgs/development/python-modules/hopcroftkarp/default.nix index 9386bdd861fc..defbcdeaeb8d 100644 --- a/pkgs/development/python-modules/hopcroftkarp/default.nix +++ b/pkgs/development/python-modules/hopcroftkarp/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/horizon-eda/default.nix b/pkgs/development/python-modules/horizon-eda/default.nix index d2385e190e77..e02917523c22 100644 --- a/pkgs/development/python-modules/horizon-eda/default.nix +++ b/pkgs/development/python-modules/horizon-eda/default.nix @@ -1,19 +1,26 @@ -{ lib -, stdenv -, buildPythonPackage -, callPackage -, horizon-eda -, mesa -, pycairo -, python -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + callPackage, + horizon-eda, + mesa, + pycairo, + python, + pythonOlder, }: let base = horizon-eda.passthru.base; in buildPythonPackage { - inherit (base) pname version src meta CASROOT; + inherit (base) + pname + version + src + meta + CASROOT + ; pyproject = false; @@ -25,13 +32,11 @@ buildPythonPackage { python ]; - propagatedBuildInputs = [ - pycairo - ]; + propagatedBuildInputs = [ pycairo ]; nativeBuildInputs = base.nativeBuildInputs; - buildFlags = ["pymodule"]; + buildFlags = [ "pymodule" ]; installPhase = '' runHook preInstall diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix index 4a910af1b988..dc614456f892 100644 --- a/pkgs/development/python-modules/howdoi/default.nix +++ b/pkgs/development/python-modules/howdoi/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, appdirs -, buildPythonPackage -, cachelib -, colorama -, cssselect -, fetchFromGitHub -, keep -, lxml -, pygments -, pyquery -, requests -, rich -, pytestCheckHook -, pythonOlder +{ + stdenv, + lib, + appdirs, + buildPythonPackage, + cachelib, + colorama, + cssselect, + fetchFromGitHub, + keep, + lxml, + pygments, + pyquery, + requests, + rich, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -43,21 +44,15 @@ buildPythonPackage rec { rich ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) ''; - disabledTests = [ - "test_colorize" - ]; + disabledTests = [ "test_colorize" ]; - pythonImportsCheck = [ - "howdoi" - ]; + pythonImportsCheck = [ "howdoi" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/hpack/default.nix b/pkgs/development/python-modules/hpack/default.nix index 1b45fc67d62e..a6042315c377 100644 --- a/pkgs/development/python-modules/hpack/default.nix +++ b/pkgs/development/python-modules/hpack/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hpccm/default.nix b/pkgs/development/python-modules/hpccm/default.nix index 35380d7171b6..2404e7a3888b 100644 --- a/pkgs/development/python-modules/hpccm/default.nix +++ b/pkgs/development/python-modules/hpccm/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, six -, archspec -, pytestCheckHook -, pytest-xdist +{ + lib, + fetchFromGitHub, + buildPythonPackage, + six, + archspec, + pytestCheckHook, + pytest-xdist, }: buildPythonPackage rec { @@ -19,8 +20,14 @@ buildPythonPackage rec { hash = "sha256-dLMbwtvn7HTVVlWHAzXU19ERdJxytf9NlnqMXW6ShKI="; }; - propagatedBuildInputs = [ six archspec ]; - nativeCheckInputs = [ pytestCheckHook pytest-xdist ]; + propagatedBuildInputs = [ + six + archspec + ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-xdist + ]; disabledTests = [ # tests require git diff --git a/pkgs/development/python-modules/hs-dbus-signature/default.nix b/pkgs/development/python-modules/hs-dbus-signature/default.nix index 9b9678858951..f795b558a612 100644 --- a/pkgs/development/python-modules/hs-dbus-signature/default.nix +++ b/pkgs/development/python-modules/hs-dbus-signature/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hsaudiotag3k/default.nix b/pkgs/development/python-modules/hsaudiotag3k/default.nix index 8fd245d17868..5323d83defd6 100644 --- a/pkgs/development/python-modules/hsaudiotag3k/default.nix +++ b/pkgs/development/python-modules/hsaudiotag3k/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { homepage = "http://hg.hardcoded.net/hsaudiotag/"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/hsh/default.nix b/pkgs/development/python-modules/hsh/default.nix index 2bc68d3aac9d..0b724c03d089 100644 --- a/pkgs/development/python-modules/hsh/default.nix +++ b/pkgs/development/python-modules/hsh/default.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, commandlines -, unittestCheckHook -, pexpect -, naked -, nix-update-script -, setuptools -, wheel +{ + buildPythonPackage, + fetchFromGitHub, + lib, + commandlines, + unittestCheckHook, + pexpect, + naked, + nix-update-script, + setuptools, + wheel, }: buildPythonPackage rec { @@ -24,9 +25,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ commandlines ]; - nativeBuildInputs = [ setuptools wheel ]; + nativeBuildInputs = [ + setuptools + wheel + ]; - nativeCheckInputs = [ unittestCheckHook pexpect naked ]; + nativeCheckInputs = [ + unittestCheckHook + pexpect + naked + ]; preCheck = "cd tests"; diff --git a/pkgs/development/python-modules/hsluv/default.nix b/pkgs/development/python-modules/hsluv/default.nix index 9ddf64330770..063137b74e4d 100644 --- a/pkgs/development/python-modules/hsluv/default.nix +++ b/pkgs/development/python-modules/hsluv/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-bjivmPTU3Gp3pcC0ru4GSZANdhPqS1QSTMeiPGN8GCI="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "hsluv" ]; diff --git a/pkgs/development/python-modules/html-sanitizer/default.nix b/pkgs/development/python-modules/html-sanitizer/default.nix index e1ecf2764e4f..5db9e10b2679 100644 --- a/pkgs/development/python-modules/html-sanitizer/default.nix +++ b/pkgs/development/python-modules/html-sanitizer/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, lxml -, beautifulsoup4 -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + lxml, + beautifulsoup4, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-NWJLD70783Ie6efyCvGopxMIlP3rLz0uM/D1rLQwBXE="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ lxml beautifulsoup4 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "html_sanitizer/tests.py" - ]; + pytestFlagsArray = [ "html_sanitizer/tests.py" ]; disabledTests = [ # Tests are sensitive to output @@ -45,9 +40,7 @@ buildPythonPackage rec { "test_10_broken_html" ]; - pythonImportsCheck = [ - "html_sanitizer" - ]; + pythonImportsCheck = [ "html_sanitizer" ]; meta = with lib; { description = "Allowlist-based and very opinionated HTML sanitizer"; diff --git a/pkgs/development/python-modules/html-tag-names/default.nix b/pkgs/development/python-modules/html-tag-names/default.nix index 543ef8686dc9..e61fee5d89ab 100644 --- a/pkgs/development/python-modules/html-tag-names/default.nix +++ b/pkgs/development/python-modules/html-tag-names/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-2YywP4/0yocejuJwanC5g9BR7mcy5C+zMhCjNZ9FRH4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/html-void-elements/default.nix b/pkgs/development/python-modules/html-void-elements/default.nix index bef3d9208026..41cbefbf7ada 100644 --- a/pkgs/development/python-modules/html-void-elements/default.nix +++ b/pkgs/development/python-modules/html-void-elements/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-Q5OEczTdgCCyoOsKv3MKRE3w4t/qyPG4YKbF19jlC88="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/html2image/default.nix b/pkgs/development/python-modules/html2image/default.nix index 2b99f6bffeee..e7b4ca76aeba 100644 --- a/pkgs/development/python-modules/html2image/default.nix +++ b/pkgs/development/python-modules/html2image/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, requests -, websocket-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + requests, + websocket-client, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { --replace "poetry>=" "poetry-core>=" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests diff --git a/pkgs/development/python-modules/html5-parser/default.nix b/pkgs/development/python-modules/html5-parser/default.nix index 67f05cb8e7f6..6658642d4a0e 100644 --- a/pkgs/development/python-modules/html5-parser/default.nix +++ b/pkgs/development/python-modules/html5-parser/default.nix @@ -1,13 +1,14 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, chardet -, fetchFromGitHub -, lxml -, pkg-config -, pkgs -, pytestCheckHook -, pythonOlder +{ + lib, + beautifulsoup4, + buildPythonPackage, + chardet, + fetchFromGitHub, + lxml, + pkg-config, + pkgs, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-0Qn+To/d3+HMx+KhhgJBEHVYPOfIeBnngBraY7r4uSs="; }; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - pkgs.libxml2 - ]; + buildInputs = [ pkgs.libxml2 ]; propagatedBuildInputs = [ chardet @@ -42,13 +39,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "html5_parser" - ]; + pythonImportsCheck = [ "html5_parser" ]; - pytestFlagsArray = [ - "test/*.py" - ]; + pytestFlagsArray = [ "test/*.py" ]; meta = with lib; { description = "Fast C based HTML 5 parsing for python"; diff --git a/pkgs/development/python-modules/html5lib/default.nix b/pkgs/development/python-modules/html5lib/default.nix index b35cfee63dad..0d294f93b7a6 100644 --- a/pkgs/development/python-modules/html5lib/default.nix +++ b/pkgs/development/python-modules/html5lib/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, six -, webencodings -, mock -, pytest-expect -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + six, + webencodings, + mock, + pytest-expect, + pytestCheckHook, }: buildPythonPackage rec { @@ -51,6 +52,9 @@ buildPythonPackage rec { major web browsers. ''; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ domenkozar prikhi ]; + maintainers = with lib.maintainers; [ + domenkozar + prikhi + ]; }; } diff --git a/pkgs/development/python-modules/html5tagger/default.nix b/pkgs/development/python-modules/html5tagger/default.nix index e9a96b8ddd11..cf3b6ac8bf93 100644 --- a/pkgs/development/python-modules/html5tagger/default.nix +++ b/pkgs/development/python-modules/html5tagger/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, }: buildPythonPackage rec { @@ -16,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-Or0EizZC9FMjTcbgecDvgGB09KNGyxHreSDojgB7ysg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # no tests doCheck = false; - pythonImportsCheck = [ - "html5tagger" - ]; + pythonImportsCheck = [ "html5tagger" ]; meta = with lib; { description = "Create HTML documents from Python"; diff --git a/pkgs/development/python-modules/htmllaundry/default.nix b/pkgs/development/python-modules/htmllaundry/default.nix index 0c7a3b8df81a..9c284a09ff61 100644 --- a/pkgs/development/python-modules/htmllaundry/default.nix +++ b/pkgs/development/python-modules/htmllaundry/default.nix @@ -1,8 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi, nose -, six -, lxml +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + six, + lxml, }: buildPythonPackage rec { @@ -16,7 +18,10 @@ buildPythonPackage rec { }; buildInputs = [ nose ]; - propagatedBuildInputs = [ six lxml ]; + propagatedBuildInputs = [ + six + lxml + ]; # some tests fail, probably because of changes in lxml # not relevant for me, if releavnt for you, fix it... @@ -27,5 +32,4 @@ buildPythonPackage rec { license = licenses.bsd3; homepage = "https://pypi.org/project/htmllaundry/"; }; - } diff --git a/pkgs/development/python-modules/htmllistparse/default.nix b/pkgs/development/python-modules/htmllistparse/default.nix index 01fa41eae2fe..746726bb3637 100644 --- a/pkgs/development/python-modules/htmllistparse/default.nix +++ b/pkgs/development/python-modules/htmllistparse/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, beautifulsoup4 -, html5lib -, requests -, fusepy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + beautifulsoup4, + html5lib, + requests, + fusepy, }: buildPythonPackage rec { @@ -19,14 +20,17 @@ buildPythonPackage rec { }; nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ beautifulsoup4 html5lib requests fusepy ]; + propagatedBuildInputs = [ + beautifulsoup4 + html5lib + requests + fusepy + ]; # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "htmllistparse" - ]; + pythonImportsCheck = [ "htmllistparse" ]; meta = with lib; { homepage = "https://github.com/gumblex/htmllisting-parser"; diff --git a/pkgs/development/python-modules/htmlmin/default.nix b/pkgs/development/python-modules/htmlmin/default.nix index 0f0d5222feae..9c158ed41b89 100644 --- a/pkgs/development/python-modules/htmlmin/default.nix +++ b/pkgs/development/python-modules/htmlmin/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "htmlmin"; @@ -17,6 +21,6 @@ buildPythonPackage rec { mainProgram = "htmlmin"; homepage = "https://pypi.python.org/pypi/htmlmin"; license = licenses.bsd3; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/htseq/default.nix b/pkgs/development/python-modules/htseq/default.nix index caa47f5197d6..c62c2ecfa519 100644 --- a/pkgs/development/python-modules/htseq/default.nix +++ b/pkgs/development/python-modules/htseq/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { name = "replace-distutils-with-sysconfig.patch"; url = "https://github.com/htseq/htseq/commit/f0f1e464ee9aee56f0b44f905e7b3355b0bb8f29.patch"; hash = "sha256-yDYkXCPy+YFgnk1rnXwCB998aZwVd5nJeejZIgeEzAo="; - }) + }) ]; nativeBuildInputs = [ swig ]; diff --git a/pkgs/development/python-modules/httmock/default.nix b/pkgs/development/python-modules/httmock/default.nix index a305ec1f7baf..f1784f74c8eb 100644 --- a/pkgs/development/python-modules/httmock/default.nix +++ b/pkgs/development/python-modules/httmock/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/http-ece/default.nix b/pkgs/development/python-modules/http-ece/default.nix index 0f69315edb6d..4765b346752e 100644 --- a/pkgs/development/python-modules/http-ece/default.nix +++ b/pkgs/development/python-modules/http-ece/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, mock -, pynose +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + mock, + pynose, }: buildPythonPackage rec { @@ -24,7 +25,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ cryptography ]; - nativeCheckInputs = [ mock pynose ]; + nativeCheckInputs = [ + mock + pynose + ]; meta = with lib; { description = "Encipher HTTP Messages"; diff --git a/pkgs/development/python-modules/http-message-signatures/default.nix b/pkgs/development/python-modules/http-message-signatures/default.nix index b9ccede6714e..47041ff971fa 100644 --- a/pkgs/development/python-modules/http-message-signatures/default.nix +++ b/pkgs/development/python-modules/http-message-signatures/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, http-sfv -, pytestCheckHook -, pythonOlder -, setuptools-scm -, requests +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + http-sfv, + pytestCheckHook, + pythonOlder, + setuptools-scm, + requests, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-Jsivw4lNA/2oqsOGGx8D4gUPftzuys877A9RXyapnSQ="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ cryptography @@ -37,13 +36,9 @@ buildPythonPackage rec { requests ]; - pytestFlagsArray = [ - "test/test.py" - ]; + pytestFlagsArray = [ "test/test.py" ]; - pythonImportsCheck = [ - "http_message_signatures" - ]; + pythonImportsCheck = [ "http_message_signatures" ]; meta = with lib; { description = "Requests authentication module for HTTP Signature"; diff --git a/pkgs/development/python-modules/http-sfv/default.nix b/pkgs/development/python-modules/http-sfv/default.nix index 205b9c7423dd..0afeba88c082 100644 --- a/pkgs/development/python-modules/http-sfv/default.nix +++ b/pkgs/development/python-modules/http-sfv/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-xf9bGDfsEcQnFQ2b1bLRGYug+H4e5jeV/LJstQtp6Bw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; # Tests require external data (https://github.com/httpwg/structured-field-tests) doCheck = false; - pythonImportsCheck = [ - "http_sfv" - ]; + pythonImportsCheck = [ "http_sfv" ]; meta = with lib; { description = "Module to parse and serialise HTTP structured field values"; diff --git a/pkgs/development/python-modules/httpagentparser/default.nix b/pkgs/development/python-modules/httpagentparser/default.nix index bc7a8e33f4ac..b85f77398453 100644 --- a/pkgs/development/python-modules/httpagentparser/default.nix +++ b/pkgs/development/python-modules/httpagentparser/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # PyPi version does not include test directory doCheck = false; - pythonImportsCheck = [ - "httpagentparser" - ]; + pythonImportsCheck = [ "httpagentparser" ]; meta = with lib; { description = "Module to extract OS, Browser, etc. information from http user agent string"; diff --git a/pkgs/development/python-modules/httpauth/default.nix b/pkgs/development/python-modules/httpauth/default.nix index 032830d53965..d984be30aa4b 100644 --- a/pkgs/development/python-modules/httpauth/default.nix +++ b/pkgs/development/python-modules/httpauth/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/httpbin/default.nix b/pkgs/development/python-modules/httpbin/default.nix index 076babe49b46..869077cdd6e6 100644 --- a/pkgs/development/python-modules/httpbin/default.nix +++ b/pkgs/development/python-modules/httpbin/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, brotlicffi -, decorator -, flasgger -, flask -, greenlet -, six -, werkzeug + # dependencies + brotlicffi, + decorator, + flasgger, + flask, + greenlet, + six, + werkzeug, -# optional-dependencies -, gunicorn -, gevent + # optional-dependencies + gunicorn, + gevent, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "greenlet" - ]; + pythonRelaxDeps = [ "greenlet" ]; propagatedBuildInputs = [ brotlicffi @@ -59,9 +58,7 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Tests seems to be outdated @@ -74,9 +71,7 @@ buildPythonPackage rec { "test_relative_redirect_n_higher_than_1" ]; - pythonImportsCheck = [ - "httpbin" - ]; + pythonImportsCheck = [ "httpbin" ]; meta = with lib; { description = "HTTP Request and Response Service"; diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix index df9ec754352e..2532df722a4a 100644 --- a/pkgs/development/python-modules/httpcore/default.nix +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -1,24 +1,25 @@ -{ lib -, anyio -, buildPythonPackage -, certifi -, fetchFromGitHub -, hatchling -, hatch-fancy-pypi-readme -, h11 -, h2 -, pproxy -, pytest-asyncio -, pytest-httpbin -, pytest-trio -, pytestCheckHook -, pythonOlder -, socksio -, trio -# for passthru.tests -, httpx -, httpx-socks -, respx +{ + lib, + anyio, + buildPythonPackage, + certifi, + fetchFromGitHub, + hatchling, + hatch-fancy-pypi-readme, + h11, + h2, + pproxy, + pytest-asyncio, + pytest-httpbin, + pytest-trio, + pytestCheckHook, + pythonOlder, + socksio, + trio, + # for passthru.tests + httpx, + httpx-socks, + respx, }: buildPythonPackage rec { @@ -46,18 +47,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - asyncio = [ - anyio - ]; - http2 = [ - h2 - ]; - socks = [ - socksio - ]; - trio = [ - trio - ]; + asyncio = [ anyio ]; + http2 = [ h2 ]; + socks = [ socksio ]; + trio = [ trio ]; }; nativeCheckInputs = [ @@ -68,9 +61,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "httpcore" - ]; + pythonImportsCheck = [ "httpcore" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/httpie-ntlm/default.nix b/pkgs/development/python-modules/httpie-ntlm/default.nix index cbf3b29bcf03..fddee51c99fc 100644 --- a/pkgs/development/python-modules/httpie-ntlm/default.nix +++ b/pkgs/development/python-modules/httpie-ntlm/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, httpie -, requests-ntlm +{ + lib, + buildPythonPackage, + fetchPypi, + httpie, + requests-ntlm, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "b1f757180c0bd60741ea16cf91fc53d47df402a5c287c4a61a14b335ea0552b3"; }; - propagatedBuildInputs = [ httpie requests-ntlm ]; + propagatedBuildInputs = [ + httpie + requests-ntlm + ]; # Package have no tests doCheck = false; diff --git a/pkgs/development/python-modules/httpie/default.nix b/pkgs/development/python-modules/httpie/default.nix index 43f69ecd3c9b..7fa008065a50 100644 --- a/pkgs/development/python-modules/httpie/default.nix +++ b/pkgs/development/python-modules/httpie/default.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, installShellFiles -, pandoc -, pythonOlder -# BuildInputs -, charset-normalizer -, defusedxml -, multidict -, pygments -, requests -, requests-toolbelt -, setuptools -, rich -, pysocks -# CheckInputs -, pip -, pytest-httpbin -, pytest-lazy-fixture -, pytest-mock -, pytestCheckHook -, responses -, werkzeug +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + installShellFiles, + pandoc, + pythonOlder, + # BuildInputs + charset-normalizer, + defusedxml, + multidict, + pygments, + requests, + requests-toolbelt, + setuptools, + rich, + pysocks, + # CheckInputs + pip, + pytest-httpbin, + pytest-lazy-fixture, + pytest-mock, + pytestCheckHook, + responses, + werkzeug, }: buildPythonPackage rec { @@ -81,46 +82,50 @@ buildPythonPackage rec { "tests" ]; - pythonImportsCheck = [ - "httpie" - ]; + pythonImportsCheck = [ "httpie" ]; disabledTestPaths = lib.optionals stdenv.isDarwin [ # flaky "tests/test_plugins_cli.py" ]; - disabledTests = [ - # flaky - "test_stdin_read_warning" - # Re-evaluate those tests with the next release - "test_duplicate_keys_support_from_response" - "test_invalid_xml" - "test_json_formatter_with_body_preceded_by_non_json_data" - "test_pretty_options_with_and_without_stream_with_converter" - "test_response_mime_overwrite" - "test_terminal_output_response_charset_detection" - "test_terminal_output_response_charset_override" - "test_terminal_output_response_content_type_charset_with_stream" - "test_terminal_output_response_content_type_charset" - "test_valid_xml" - "test_xml_format_options" - "test_xml_xhtm" - # httpbin compatibility issues - "test_compress_form" - "test_binary_suppresses_when_terminal" - "test_binary_suppresses_when_not_terminal_but_pretty" - "test_binary_included_and_correct_when_suitable" - ] ++ lib.optionals stdenv.isDarwin [ - # flaky - "test_daemon_runner" - ]; + disabledTests = + [ + # flaky + "test_stdin_read_warning" + # Re-evaluate those tests with the next release + "test_duplicate_keys_support_from_response" + "test_invalid_xml" + "test_json_formatter_with_body_preceded_by_non_json_data" + "test_pretty_options_with_and_without_stream_with_converter" + "test_response_mime_overwrite" + "test_terminal_output_response_charset_detection" + "test_terminal_output_response_charset_override" + "test_terminal_output_response_content_type_charset_with_stream" + "test_terminal_output_response_content_type_charset" + "test_valid_xml" + "test_xml_format_options" + "test_xml_xhtm" + # httpbin compatibility issues + "test_compress_form" + "test_binary_suppresses_when_terminal" + "test_binary_suppresses_when_not_terminal_but_pretty" + "test_binary_included_and_correct_when_suitable" + ] + ++ lib.optionals stdenv.isDarwin [ + # flaky + "test_daemon_runner" + ]; meta = with lib; { description = "A command line HTTP client whose goal is to make CLI human-friendly"; homepage = "https://httpie.org/"; changelog = "https://github.com/httpie/httpie/blob/${version}/CHANGELOG.md"; license = licenses.bsd3; - maintainers = with maintainers; [ antono relrod schneefux ]; + maintainers = with maintainers; [ + antono + relrod + schneefux + ]; }; } diff --git a/pkgs/development/python-modules/httplib2/default.nix b/pkgs/development/python-modules/httplib2/default.nix index aa4abf313d20..edf6ef1d1a46 100644 --- a/pkgs/development/python-modules/httplib2/default.nix +++ b/pkgs/development/python-modules/httplib2/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, cryptography -, fetchFromGitHub -, isPy27 -, mock -, pyparsing -, pytest-forked -, pytest-randomly -, pytest-timeout -, pytestCheckHook -, pythonAtLeast -, six +{ + lib, + stdenv, + buildPythonPackage, + cryptography, + fetchFromGitHub, + isPy27, + mock, + pyparsing, + pytest-forked, + pytest-randomly, + pytest-timeout, + pytestCheckHook, + pythonAtLeast, + six, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { sed -i "/--cov/d" setup.cfg ''; - propagatedBuildInputs = [ - pyparsing - ]; + propagatedBuildInputs = [ pyparsing ]; nativeCheckInputs = [ cryptography @@ -49,29 +48,27 @@ buildPythonPackage rec { # Don't run tests for older Pythons doCheck = pythonAtLeast "3.9"; - disabledTests = [ - # ValueError: Unable to load PEM file. - # https://github.com/httplib2/httplib2/issues/192#issuecomment-993165140 - "test_client_cert_password_verified" + disabledTests = + [ + # ValueError: Unable to load PEM file. + # https://github.com/httplib2/httplib2/issues/192#issuecomment-993165140 + "test_client_cert_password_verified" - # improper pytest marking - "test_head_301" - "test_303" - ] ++ lib.optionals stdenv.isDarwin [ - # fails with "ConnectionResetError: [Errno 54] Connection reset by peer" - "test_connection_close" - # fails with HTTP 408 Request Timeout, instead of expected 200 OK - "test_timeout_subsequent" - "test_connection_close" - ]; + # improper pytest marking + "test_head_301" + "test_303" + ] + ++ lib.optionals stdenv.isDarwin [ + # fails with "ConnectionResetError: [Errno 54] Connection reset by peer" + "test_connection_close" + # fails with HTTP 408 Request Timeout, instead of expected 200 OK + "test_timeout_subsequent" + "test_connection_close" + ]; - pytestFlagsArray = [ - "--ignore python2" - ]; + pytestFlagsArray = [ "--ignore python2" ]; - pythonImportsCheck = [ - "httplib2" - ]; + pythonImportsCheck = [ "httplib2" ]; meta = with lib; { description = "A comprehensive HTTP client library"; diff --git a/pkgs/development/python-modules/httpretty/default.nix b/pkgs/development/python-modules/httpretty/default.nix index ecde40353f31..38a386dc19c3 100644 --- a/pkgs/development/python-modules/httpretty/default.nix +++ b/pkgs/development/python-modules/httpretty/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sure -, six -, pytest -, freezegun -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + sure, + six, + pytest, + freezegun, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/httpserver/default.nix b/pkgs/development/python-modules/httpserver/default.nix index 59530ab5a704..9b65a6341ced 100644 --- a/pkgs/development/python-modules/httpserver/default.nix +++ b/pkgs/development/python-modules/httpserver/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, docopt }: +{ + lib, + fetchPypi, + buildPythonPackage, + docopt, +}: buildPythonPackage rec { pname = "httpserver"; diff --git a/pkgs/development/python-modules/httpsig/default.nix b/pkgs/development/python-modules/httpsig/default.nix index fe7ed11c2fff..f18ee0857bfc 100644 --- a/pkgs/development/python-modules/httpsig/default.nix +++ b/pkgs/development/python-modules/httpsig/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, pycryptodome -, requests -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + pycryptodome, + requests, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "httpsig" ]; diff --git a/pkgs/development/python-modules/httptools/default.nix b/pkgs/development/python-modules/httptools/default.nix index 116ab28dc989..d07ba18bdccc 100644 --- a/pkgs/development/python-modules/httptools/default.nix +++ b/pkgs/development/python-modules/httptools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Tests are not included in pypi tarball doCheck = false; - pythonImportsCheck = [ - "httptools" - ]; + pythonImportsCheck = [ "httptools" ]; meta = with lib; { description = "A collection of framework independent HTTP protocol utils"; diff --git a/pkgs/development/python-modules/httpx-auth/default.nix b/pkgs/development/python-modules/httpx-auth/default.nix index 5fc267bfb25f..b811a2c1c082 100644 --- a/pkgs/development/python-modules/httpx-auth/default.nix +++ b/pkgs/development/python-modules/httpx-auth/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pyjwt -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, time-machine +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pyjwt, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + time-machine, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; nativeCheckInputs = [ pyjwt @@ -43,9 +42,7 @@ buildPythonPackage rec { time-machine ]; - pythonImportsCheck = [ - "httpx_auth" - ]; + pythonImportsCheck = [ "httpx_auth" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/httpx-ntlm/default.nix b/pkgs/development/python-modules/httpx-ntlm/default.nix index 8d8a5e838b79..de83c397d68a 100644 --- a/pkgs/development/python-modules/httpx-ntlm/default.nix +++ b/pkgs/development/python-modules/httpx-ntlm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, httpx -, pyspnego -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + httpx, + pyspnego, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # https://github.com/ulodciv/httpx-ntlm/issues/5 doCheck = false; - pythonImportsCheck = [ - "httpx_ntlm" - ]; + pythonImportsCheck = [ "httpx_ntlm" ]; meta = with lib; { description = "NTLM authentication support for HTTPX"; diff --git a/pkgs/development/python-modules/httpx-socks/default.nix b/pkgs/development/python-modules/httpx-socks/default.nix index 65dedd26c02f..1e93ee5ac744 100644 --- a/pkgs/development/python-modules/httpx-socks/default.nix +++ b/pkgs/development/python-modules/httpx-socks/default.nix @@ -1,24 +1,25 @@ -{ lib -, async-timeout -, buildPythonPackage -, curio -, fetchFromGitHub -, flask -, httpcore -, httpx -, hypercorn -, pytest-asyncio -, pytest-trio -, pytestCheckHook -, python-socks -, pythonOlder -, setuptools -, sniffio -, starlette -, tiny-proxy -, trio -, trustme -, yarl +{ + lib, + async-timeout, + buildPythonPackage, + curio, + fetchFromGitHub, + flask, + httpcore, + httpx, + hypercorn, + pytest-asyncio, + pytest-trio, + pytestCheckHook, + python-socks, + pythonOlder, + setuptools, + sniffio, + starlette, + tiny-proxy, + trio, + trustme, + yarl, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-9v5DfxEtM7jq+b8wR0M1klTSnSdFjQ4aDl8ZSZWxbFA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ httpx @@ -46,12 +45,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - asyncio = [ - async-timeout - ]; - trio = [ - trio - ]; + asyncio = [ async-timeout ]; + trio = [ trio ]; }; __darwinAllowLocalNetworking = true; @@ -68,9 +63,7 @@ buildPythonPackage rec { yarl ]; - pythonImportsCheck = [ - "httpx_socks" - ]; + pythonImportsCheck = [ "httpx_socks" ]; disabledTests = [ # Tests don't work in the sandbox diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 5c6a296820be..d63e874be006 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, anyio -, brotli -, brotlicffi -, buildPythonPackage -, certifi -, chardet -, click -, fetchFromGitHub -, h2 -, hatch-fancy-pypi-readme -, hatchling -, httpcore -, idna -, isPyPy -, multipart -, pygments -, python -, pythonOlder -, rich -, sniffio -, socksio -, pytestCheckHook -, pytest-asyncio -, pytest-trio -, trustme -, uvicorn +{ + lib, + stdenv, + anyio, + brotli, + brotlicffi, + buildPythonPackage, + certifi, + chardet, + click, + fetchFromGitHub, + h2, + hatch-fancy-pypi-readme, + hatchling, + httpcore, + idna, + isPyPy, + multipart, + pygments, + python, + pythonOlder, + rich, + sniffio, + socksio, + pytestCheckHook, + pytest-asyncio, + pytest-trio, + trustme, + uvicorn, }: buildPythonPackage rec { @@ -56,17 +57,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - http2 = [ - h2 - ]; - socks = [ - socksio - ]; - brotli = if isPyPy then [ - brotlicffi - ] else [ - brotli - ]; + http2 = [ h2 ]; + socks = [ socksio ]; + brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; cli = [ click rich @@ -93,8 +86,10 @@ buildPythonPackage rec { ''; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - "-W" "ignore::trio.TrioDeprecationWarning" + "-W" + "ignore::DeprecationWarning" + "-W" + "ignore::trio.TrioDeprecationWarning" ]; disabledTests = [ @@ -105,13 +100,9 @@ buildPythonPackage rec { "test_sync_proxy_close" ]; - disabledTestPaths = [ - "tests/test_main.py" - ]; + disabledTestPaths = [ "tests/test_main.py" ]; - pythonImportsCheck = [ - "httpx" - ]; + pythonImportsCheck = [ "httpx" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/huawei-lte-api/default.nix b/pkgs/development/python-modules/huawei-lte-api/default.nix index 4aa7b40ec2da..15c7fcf81e0d 100644 --- a/pkgs/development/python-modules/huawei-lte-api/default.nix +++ b/pkgs/development/python-modules/huawei-lte-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pycryptodomex -, pytestCheckHook -, requests -, xmltodict +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pycryptodomex, + pytestCheckHook, + requests, + xmltodict, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "huawei_lte_api.AuthorizedConnection" diff --git a/pkgs/development/python-modules/huey/default.nix b/pkgs/development/python-modules/huey/default.nix index 0b0b02b09714..e67122d5f2b4 100644 --- a/pkgs/development/python-modules/huey/default.nix +++ b/pkgs/development/python-modules/huey/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, redis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + redis, }: buildPythonPackage rec { @@ -34,6 +35,6 @@ buildPythonPackage rec { description = "A little task queue for python"; homepage = "https://github.com/coleifer/huey"; license = licenses.mit; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/hug/default.nix b/pkgs/development/python-modules/hug/default.nix index 46dfab1cd52c..7540a8e749f2 100644 --- a/pkgs/development/python-modules/hug/default.nix +++ b/pkgs/development/python-modules/hug/default.nix @@ -1,10 +1,14 @@ -{ lib , buildPythonPackage, fetchFromGitHub, isPy27 -, falcon -, requests -, pytestCheckHook -, marshmallow -, mock -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + falcon, + requests, + pytestCheckHook, + marshmallow, + mock, + numpy, }: buildPythonPackage rec { @@ -20,9 +24,17 @@ buildPythonPackage rec { sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq"; }; - propagatedBuildInputs = [ falcon requests ]; + propagatedBuildInputs = [ + falcon + requests + ]; - nativeCheckInputs = [ mock marshmallow pytestCheckHook numpy ]; + nativeCheckInputs = [ + mock + marshmallow + pytestCheckHook + numpy + ]; postPatch = '' substituteInPlace setup.py --replace '"pytest-runner"' "" diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index 91669ec3710e..c8a198c57bba 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, filelock -, fsspec -, packaging -, pyyaml -, requests -, tqdm -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + filelock, + fsspec, + packaging, + pyyaml, + requests, + tqdm, + typing-extensions, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-FfevPGec++3auA4Zxu84mhpD0RGatcPgDKi7LkmOVss="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ filelock @@ -43,9 +42,7 @@ buildPythonPackage rec { # Tests require network access. doCheck = false; - pythonImportsCheck = [ - "huggingface_hub" - ]; + pythonImportsCheck = [ "huggingface_hub" ]; meta = with lib; { description = "Download and publish models and other files on the huggingface.co hub"; diff --git a/pkgs/development/python-modules/huisbaasje-client/default.nix b/pkgs/development/python-modules/huisbaasje-client/default.nix index 1a9cfddd8661..65d12537cda8 100644 --- a/pkgs/development/python-modules/huisbaasje-client/default.nix +++ b/pkgs/development/python-modules/huisbaasje-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiohttp -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiohttp, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { sha256 = "113aymffyz1nki3a43j5cyj87qa0762j38qlz0wd5px7diwjxsfl"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "huisbaasje.huisbaasje" ]; diff --git a/pkgs/development/python-modules/human-readable/default.nix b/pkgs/development/python-modules/human-readable/default.nix index 3c67a04b143a..9081398d7a59 100644 --- a/pkgs/development/python-modules/human-readable/default.nix +++ b/pkgs/development/python-modules/human-readable/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, hatchling -, hatch-vcs +{ + lib, + fetchPypi, + buildPythonPackage, + hatchling, + hatch-vcs, }: buildPythonPackage rec { @@ -26,8 +27,6 @@ buildPythonPackage rec { description = "Library to make data intended for machines, readable to humans"; homepage = "https://github.com/staticdev/human-readable"; license = licenses.mit; - maintainers = with maintainers; [ - mkg20001 - ]; + maintainers = with maintainers; [ mkg20001 ]; }; } diff --git a/pkgs/development/python-modules/humanfriendly/default.nix b/pkgs/development/python-modules/humanfriendly/default.nix index 2c60b0b294b8..766fb1339159 100644 --- a/pkgs/development/python-modules/humanfriendly/default.nix +++ b/pkgs/development/python-modules/humanfriendly/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/humanize/default.nix b/pkgs/development/python-modules/humanize/default.nix index 1ae941be385d..d0c9389ed1b2 100644 --- a/pkgs/development/python-modules/humanize/default.nix +++ b/pkgs/development/python-modules/humanize/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, freezegun -, gettext -, pytestCheckHook -, pythonOlder -, hatch-vcs -, hatchling +{ + lib, + buildPythonPackage, + fetchFromGitHub, + freezegun, + gettext, + pytestCheckHook, + pythonOlder, + hatch-vcs, + hatchling, }: buildPythonPackage rec { @@ -42,15 +43,16 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "humanize" - ]; + pythonImportsCheck = [ "humanize" ]; meta = with lib; { description = "Python humanize utilities"; homepage = "https://github.com/python-humanize/humanize"; changelog = "https://github.com/python-humanize/humanize/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ rmcgibbo Luflosi ]; + maintainers = with maintainers; [ + rmcgibbo + Luflosi + ]; }; } diff --git a/pkgs/development/python-modules/humblewx/default.nix b/pkgs/development/python-modules/humblewx/default.nix index 71b76fe8c73e..2a60e7e97212 100644 --- a/pkgs/development/python-modules/humblewx/default.nix +++ b/pkgs/development/python-modules/humblewx/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, wxpython -, python +{ + lib, + fetchFromGitHub, + buildPythonPackage, + wxpython, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hupper/default.nix b/pkgs/development/python-modules/hupper/default.nix index 315370de4c2c..0f46eef1eee3 100644 --- a/pkgs/development/python-modules/hupper/default.nix +++ b/pkgs/development/python-modules/hupper/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, watchdog +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + watchdog, }: buildPythonPackage rec { @@ -18,11 +19,7 @@ buildPythonPackage rec { # FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent # segfaults in the testsuite that end up failing the tests in a background thread (in myapp) - nativeCheckInputs = [ - pytestCheckHook - ] ++ lib.optionals (!stdenv.isDarwin) [ - watchdog - ]; + nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (!stdenv.isDarwin) [ watchdog ]; disabledTestPaths = [ # Doesn't work with an exported home, RuntimeError: timeout waiting for change to file=/build/tmpgfn145cx diff --git a/pkgs/development/python-modules/hurry-filesize/default.nix b/pkgs/development/python-modules/hurry-filesize/default.nix index 7dd168bf9704..fd33e6d9d2ba 100644 --- a/pkgs/development/python-modules/hurry-filesize/default.nix +++ b/pkgs/development/python-modules/hurry-filesize/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # fix implicit namespaces (PEP 420) warning patches = [ ./use-pep-420-implicit-namespace-package.patch ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; pythonImportsCheck = [ "hurry.filesize" ]; diff --git a/pkgs/development/python-modules/huum/default.nix b/pkgs/development/python-modules/huum/default.nix index 42a44a04a9eb..7e8d4ff033b7 100644 --- a/pkgs/development/python-modules/huum/default.nix +++ b/pkgs/development/python-modules/huum/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-INW6d/Zc5UZZOgN6wW+Xbm/wH1K/V6bviu3mID1R+BY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "huum" - ]; + pythonImportsCheck = [ "huum" ]; meta = with lib; { description = "Library for Huum saunas"; diff --git a/pkgs/development/python-modules/hvac/default.nix b/pkgs/development/python-modules/hvac/default.nix index f9309dcac3da..5f36a456210c 100644 --- a/pkgs/development/python-modules/hvac/default.nix +++ b/pkgs/development/python-modules/hvac/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyhcl -, requests -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pyhcl, + requests, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-5LAkjFZyy5pvWXTnyPUnGgnGxmPL+KsRczoifz0tssI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyhcl @@ -31,9 +30,7 @@ buildPythonPackage rec { # Requires running a Vault server doCheck = false; - pythonImportsCheck = [ - "hvac" - ]; + pythonImportsCheck = [ "hvac" ]; meta = with lib; { description = "HashiCorp Vault API client"; diff --git a/pkgs/development/python-modules/hvplot/default.nix b/pkgs/development/python-modules/hvplot/default.nix index ded23a070c12..9b0d0def5347 100644 --- a/pkgs/development/python-modules/hvplot/default.nix +++ b/pkgs/development/python-modules/hvplot/default.nix @@ -1,11 +1,12 @@ -{ lib -, bokeh -, buildPythonPackage -, colorcet -, fetchPypi -, holoviews -, pandas -, pythonOlder +{ + lib, + bokeh, + buildPythonPackage, + colorcet, + fetchPypi, + holoviews, + pandas, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Many tests require a network connection doCheck = false; - pythonImportsCheck = [ - "hvplot.pandas" - ]; + pythonImportsCheck = [ "hvplot.pandas" ]; meta = with lib; { description = "A high-level plotting API for the PyData ecosystem built on HoloViews"; diff --git a/pkgs/development/python-modules/hwdata/default.nix b/pkgs/development/python-modules/hwdata/default.nix index 9e73fb610170..2931839bf6c9 100644 --- a/pkgs/development/python-modules/hwdata/default.nix +++ b/pkgs/development/python-modules/hwdata/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pkgs -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pkgs, + setuptools, }: buildPythonPackage rec { @@ -17,17 +18,13 @@ buildPythonPackage rec { hash = "sha256-hmvxVF9LOkezXnJdbtbEJWhU4uvUJgxQHYeWUoiniF0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; patchPhase = '' substituteInPlace hwdata.py --replace "/usr/share/hwdata" "${pkgs.hwdata}/share/hwdata" ''; - pythonImportsCheck = [ - "hwdata" - ]; + pythonImportsCheck = [ "hwdata" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/hwi/default.nix b/pkgs/development/python-modules/hwi/default.nix index 311036b38824..fb506ab96f3c 100644 --- a/pkgs/development/python-modules/hwi/default.nix +++ b/pkgs/development/python-modules/hwi/default.nix @@ -1,16 +1,17 @@ -{ lib -, bitbox02 -, buildPythonPackage -, cbor -, ecdsa -, fetchFromGitHub -, hidapi -, libusb1 -, mnemonic -, pyaes -, pyserial -, pythonOlder -, typing-extensions +{ + lib, + bitbox02, + buildPythonPackage, + cbor, + ecdsa, + fetchFromGitHub, + hidapi, + libusb1, + mnemonic, + pyaes, + pyserial, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { # Tests require to clone quite a few firmwares doCheck = false; - pythonImportsCheck = [ - "hwilib" - ]; + pythonImportsCheck = [ "hwilib" ]; meta = with lib; { description = "Bitcoin Hardware Wallet Interface"; diff --git a/pkgs/development/python-modules/hydra-check/default.nix b/pkgs/development/python-modules/hydra-check/default.nix index 78e96dea26ce..ab9c197113d6 100644 --- a/pkgs/development/python-modules/hydra-check/default.nix +++ b/pkgs/development/python-modules/hydra-check/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, requests -, beautifulsoup4 -, colorama +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + requests, + beautifulsoup4, + colorama, }: buildPythonPackage rec { @@ -36,6 +37,9 @@ buildPythonPackage rec { mainProgram = "hydra-check"; homepage = "https://github.com/nix-community/hydra-check"; license = licenses.mit; - maintainers = with maintainers; [ makefu artturin ]; + maintainers = with maintainers; [ + makefu + artturin + ]; }; } diff --git a/pkgs/development/python-modules/hydra-core/default.nix b/pkgs/development/python-modules/hydra-core/default.nix index fb73910aaf1f..c2b46a6c737d 100644 --- a/pkgs/development/python-modules/hydra-core/default.nix +++ b/pkgs/development/python-modules/hydra-core/default.nix @@ -1,16 +1,17 @@ -{ lib -, antlr4 -, antlr4-python3-runtime -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, importlib-resources -, jre_headless -, omegaconf -, packaging -, pytestCheckHook -, pythonOlder -, substituteAll +{ + lib, + antlr4, + antlr4-python3-runtime, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + importlib-resources, + jre_headless, + omegaconf, + packaging, + pytestCheckHook, + pythonOlder, + substituteAll, }: buildPythonPackage rec { @@ -48,24 +49,19 @@ buildPythonPackage rec { sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements/requirements.txt ''; - nativeBuildInputs = [ - jre_headless - ]; + nativeBuildInputs = [ jre_headless ]; propagatedBuildInputs = [ antlr4-python3-runtime omegaconf packaging - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-W" "ignore::UserWarning" + "-W" + "ignore::UserWarning" ]; # Test environment setup broken under Nix for a few tests: @@ -77,9 +73,7 @@ buildPythonPackage rec { "test_initialize_compat_version_base" ]; - disabledTestPaths = [ - "tests/test_hydra.py" - ]; + disabledTestPaths = [ "tests/test_hydra.py" ]; pythonImportsCheck = [ "hydra" diff --git a/pkgs/development/python-modules/hydrawiser/default.nix b/pkgs/development/python-modules/hydrawiser/default.nix index f04509d0854c..971583742ef8 100644 --- a/pkgs/development/python-modules/hydrawiser/default.nix +++ b/pkgs/development/python-modules/hydrawiser/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-cov -, pytestCheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-cov, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/hydrus-api/default.nix b/pkgs/development/python-modules/hydrus-api/default.nix index 17449fdf66ce..0ce083570536 100644 --- a/pkgs/development/python-modules/hydrus-api/default.nix +++ b/pkgs/development/python-modules/hydrus-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + poetry-core, + requests, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { "poetry.core.masonry.api" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; pythonImportsCheck = [ "hydrus_api" ]; diff --git a/pkgs/development/python-modules/hypchat/default.nix b/pkgs/development/python-modules/hypchat/default.nix index 58a1c3dffdc8..81bcf358efce 100644 --- a/pkgs/development/python-modules/hypchat/default.nix +++ b/pkgs/development/python-modules/hypchat/default.nix @@ -1,5 +1,10 @@ -{ buildPythonPackage, fetchPypi -, requests, six, python-dateutil }: +{ + buildPythonPackage, + fetchPypi, + requests, + six, + python-dateutil, +}: buildPythonPackage rec { pname = "hypchat"; @@ -11,5 +16,9 @@ buildPythonPackage rec { sha256 = "1sd8f3gihagaqd848dqy6xw457fa4f9bla1bfyni7fq3h76sjdzg"; }; - propagatedBuildInputs = [ requests six python-dateutil ]; + propagatedBuildInputs = [ + requests + six + python-dateutil + ]; } diff --git a/pkgs/development/python-modules/hypercorn/default.nix b/pkgs/development/python-modules/hypercorn/default.nix index b7add0e1a997..21e2f4f8d949 100644 --- a/pkgs/development/python-modules/hypercorn/default.nix +++ b/pkgs/development/python-modules/hypercorn/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, exceptiongroup -, h11 -, h2 -, priority -, wsproto -, poetry-core -, pytest-asyncio -, pytest-trio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + exceptiongroup, + h11, + h2, + priority, + wsproto, + poetry-core, + pytest-asyncio, + pytest-trio, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { sed -i "/^addopts/d" pyproject.toml ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ exceptiongroup diff --git a/pkgs/development/python-modules/hyperframe/default.nix b/pkgs/development/python-modules/hyperframe/default.nix index e42ee0a46f68..5842ced668fc 100644 --- a/pkgs/development/python-modules/hyperframe/default.nix +++ b/pkgs/development/python-modules/hyperframe/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, +}: buildPythonPackage rec { pname = "hyperframe"; diff --git a/pkgs/development/python-modules/hyperion-py/default.nix b/pkgs/development/python-modules/hyperion-py/default.nix index 1e0f08936fb4..faaacf939f8a 100644 --- a/pkgs/development/python-modules/hyperion-py/default.nix +++ b/pkgs/development/python-modules/hyperion-py/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, pythonAtLeast -, poetry-core -, pytest-aiohttp -, pytest-asyncio +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + pythonAtLeast, + poetry-core, + pytest-aiohttp, + pytest-asyncio, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/hyperlink/default.nix b/pkgs/development/python-modules/hyperlink/default.nix index 1b617cf1b7c9..cc060d6bbb4c 100644 --- a/pkgs/development/python-modules/hyperlink/default.nix +++ b/pkgs/development/python-modules/hyperlink/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, idna -, typing ? null +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + idna, + typing ? null, }: buildPythonPackage rec { @@ -16,8 +17,7 @@ buildPythonPackage rec { sha256 = "0sx50lkivsfjxx9zr4yh7l9gll2l9kvl0v0w8w4wk2x5v9bzjyj2"; }; - propagatedBuildInputs = [ idna ] - ++ lib.optionals isPy27 [ typing ]; + propagatedBuildInputs = [ idna ] ++ lib.optionals isPy27 [ typing ]; meta = with lib; { description = "A featureful, correct URL for Python"; diff --git a/pkgs/development/python-modules/hyperopt/default.nix b/pkgs/development/python-modules/hyperopt/default.nix index 6cc92ff3ae79..5d3d07c92f52 100644 --- a/pkgs/development/python-modules/hyperopt/default.nix +++ b/pkgs/development/python-modules/hyperopt/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, cloudpickle -, fetchPypi -, future -, networkx -, numpy -, py4j -, pymongo -, pyspark -, scipy -, six -, tqdm +{ + lib, + buildPythonPackage, + cloudpickle, + fetchPypi, + future, + networkx, + numpy, + py4j, + pymongo, + pyspark, + scipy, + six, + tqdm, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { # tries to use /homeless-shelter to mimic container usage, etc doCheck = false; - pythonImportsCheck = [ - "hyperopt" - ]; + pythonImportsCheck = [ "hyperopt" ]; meta = with lib; { description = "Distributed Asynchronous Hyperparameter Optimization"; diff --git a/pkgs/development/python-modules/hyperpyyaml/default.nix b/pkgs/development/python-modules/hyperpyyaml/default.nix index 9395b299fea0..46c27720e74b 100644 --- a/pkgs/development/python-modules/hyperpyyaml/default.nix +++ b/pkgs/development/python-modules/hyperpyyaml/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyyaml -, ruamel-yaml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyyaml, + ruamel-yaml, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { ruamel-yaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "hyperpyyaml" ]; diff --git a/pkgs/development/python-modules/hyperscan/default.nix b/pkgs/development/python-modules/hyperscan/default.nix index 0d568e15f25b..cfd771071d55 100644 --- a/pkgs/development/python-modules/hyperscan/default.nix +++ b/pkgs/development/python-modules/hyperscan/default.nix @@ -1,14 +1,15 @@ -{ lib -, pkgs -, buildPythonPackage -, fetchFromGitHub -, pdm-backend -, setuptools -, wheel -, pcre -, pkg-config -, pytestCheckHook -, pytest-mock +{ + lib, + pkgs, + buildPythonPackage, + fetchFromGitHub, + pdm-backend, + setuptools, + wheel, + pcre, + pkg-config, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { @@ -47,7 +48,10 @@ buildPythonPackage rec { description = "A CPython extension for the Hyperscan regular expression matching library"; homepage = "https://github.com/darvid/python-hyperscan"; changelog = "https://github.com/darvid/python-hyperscan/blob/${src.rev}/CHANGELOG.md"; - platforms = [ "x86_64-linux" "x86_64-darwin" ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + ]; license = licenses.mit; maintainers = with maintainers; [ mbalatsko ]; }; diff --git a/pkgs/development/python-modules/hypothesis-auto/default.nix b/pkgs/development/python-modules/hypothesis-auto/default.nix index ad6ae8dbd96c..7e60ddaf0b99 100644 --- a/pkgs/development/python-modules/hypothesis-auto/default.nix +++ b/pkgs/development/python-modules/hypothesis-auto/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, poetry-core -, pydantic -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + poetry-core, + pydantic, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-U0vcOB9jXmUV5v2IwybVu2arY1FpPnKkP7m2kbD1kRw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pydantic @@ -32,13 +31,9 @@ buildPythonPackage rec { pytest ]; - pythonImportsCheck = [ - "hypothesis_auto" - ]; + pythonImportsCheck = [ "hypothesis_auto" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Enables fully automatic tests for type annotated functions"; diff --git a/pkgs/development/python-modules/hypothesis/default.nix b/pkgs/development/python-modules/hypothesis/default.nix index 09de31843bba..8a00cae1e1a4 100644 --- a/pkgs/development/python-modules/hypothesis/default.nix +++ b/pkgs/development/python-modules/hypothesis/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, isPyPy -, fetchFromGitHub -, setuptools -, attrs -, exceptiongroup -, pexpect -, doCheck ? true -, pytestCheckHook -, pytest-xdist -, python -, sortedcontainers -, stdenv -, pythonOlder -, sphinxHook -, sphinx-rtd-theme -, sphinx-hoverxref -, sphinx-codeautolink -, tzdata +{ + lib, + buildPythonPackage, + isPyPy, + fetchFromGitHub, + setuptools, + attrs, + exceptiongroup, + pexpect, + doCheck ? true, + pytestCheckHook, + pytest-xdist, + python, + sortedcontainers, + stdenv, + pythonOlder, + sphinxHook, + sphinx-rtd-theme, + sphinx-hoverxref, + sphinx-codeautolink, + tzdata, }: buildPythonPackage rec { @@ -49,24 +50,18 @@ buildPythonPackage rec { postUnpack = "sourceRoot=$sourceRoot/hypothesis-python"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs sortedcontainers - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; nativeCheckInputs = [ pexpect pytest-xdist pytestCheckHook - ] ++ lib.optionals isPyPy [ - tzdata - ]; + ] ++ lib.optionals isPyPy [ tzdata ]; inherit doCheck; @@ -75,21 +70,21 @@ buildPythonPackage rec { rm tox.ini ''; - pytestFlagsArray = [ - "tests/cover" - ]; + pytestFlagsArray = [ "tests/cover" ]; - disabledTests = if (pythonOlder "3.10") then [ - # not sure why these tests fail with only 3.9 - # FileNotFoundError: [Errno 2] No such file or directory: 'git' - "test_observability" - "test_assume_has_status_reason" - "test_observability_captures_stateful_reprs" - ] else null; + disabledTests = + if (pythonOlder "3.10") then + [ + # not sure why these tests fail with only 3.9 + # FileNotFoundError: [Errno 2] No such file or directory: 'git' + "test_observability" + "test_assume_has_status_reason" + "test_observability_captures_stateful_reprs" + ] + else + null; - pythonImportsCheck = [ - "hypothesis" - ]; + pythonImportsCheck = [ "hypothesis" ]; passthru = { doc = stdenv.mkDerivation { @@ -119,7 +114,9 @@ buildPythonPackage rec { description = "Library for property based testing"; mainProgram = "hypothesis"; homepage = "https://github.com/HypothesisWorks/hypothesis"; - changelog = "https://hypothesis.readthedocs.io/en/latest/changes.html#v${lib.replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://hypothesis.readthedocs.io/en/latest/changes.html#v${ + lib.replaceStrings [ "." ] [ "-" ] version + }"; license = licenses.mpl20; maintainers = with maintainers; [ ]; }; diff --git a/pkgs/development/python-modules/hypothesmith/default.nix b/pkgs/development/python-modules/hypothesmith/default.nix index 9aa3406c6006..be40b4375e41 100644 --- a/pkgs/development/python-modules/hypothesmith/default.nix +++ b/pkgs/development/python-modules/hypothesmith/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, lark -, libcst -, parso -, pytestCheckHook -, pytest-xdist -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + lark, + libcst, + parso, + pytestCheckHook, + pytest-xdist, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-lsFIAtbI6F2JdSZBdoeNtUso0u2SH9v+3C5rjOPIFxY="; }; - patches = [ - ./remove-black.patch - ]; + patches = [ ./remove-black.patch ]; postPatch = '' substituteInPlace setup.py \ @@ -37,14 +36,20 @@ buildPythonPackage rec { --replace "--cov-fail-under=100" "" ''; - propagatedBuildInputs = [ hypothesis lark libcst ]; - - nativeCheckInputs = [ parso pytestCheckHook pytest-xdist ]; - - pytestFlagsArray = [ - "-v" + propagatedBuildInputs = [ + hypothesis + lark + libcst ]; + nativeCheckInputs = [ + parso + pytestCheckHook + pytest-xdist + ]; + + pytestFlagsArray = [ "-v" ]; + disabledTests = [ # https://github.com/Zac-HD/hypothesmith/issues/21 "test_source_code_from_libcst_node_type" diff --git a/pkgs/development/python-modules/hyppo/default.nix b/pkgs/development/python-modules/hyppo/default.nix index 8b2d73f68c5a..896bbe640cc0 100644 --- a/pkgs/development/python-modules/hyppo/default.nix +++ b/pkgs/development/python-modules/hyppo/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, autograd -, numba -, numpy -, scikit-learn -, scipy -, matplotlib -, seaborn +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + autograd, + numba, + numpy, + scikit-learn, + scipy, + matplotlib, + seaborn, }: buildPythonPackage rec { @@ -34,7 +35,11 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ pytestCheckHook matplotlib seaborn ]; + nativeCheckInputs = [ + pytestCheckHook + matplotlib + seaborn + ]; disabledTestPaths = [ "docs" "benchmarks" diff --git a/pkgs/development/python-modules/i-pi/default.nix b/pkgs/development/python-modules/i-pi/default.nix index 046823d23c43..d813098145c9 100644 --- a/pkgs/development/python-modules/i-pi/default.nix +++ b/pkgs/development/python-modules/i-pi/default.nix @@ -1,6 +1,14 @@ -{ buildPythonPackage, lib, fetchFromGitHub, gfortran -, makeWrapper, numpy, pytest, mock, pytest-mock -} : +{ + buildPythonPackage, + lib, + fetchFromGitHub, + gfortran, + makeWrapper, + numpy, + pytest, + mock, + pytest-mock, +}: buildPythonPackage rec { pname = "i-pi"; @@ -34,7 +42,10 @@ buildPythonPackage rec { meta = with lib; { description = "A universal force engine for ab initio and force field driven (path integral) molecular dynamics"; - license = with licenses; [ gpl3Only mit ]; + license = with licenses; [ + gpl3Only + mit + ]; homepage = "http://ipi-code.org/"; platforms = platforms.linux; maintainers = [ maintainers.sheepforce ]; diff --git a/pkgs/development/python-modules/i2c-tools/default.nix b/pkgs/development/python-modules/i2c-tools/default.nix index fd2fdaba347c..8b88b07b95ac 100644 --- a/pkgs/development/python-modules/i2c-tools/default.nix +++ b/pkgs/development/python-modules/i2c-tools/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, i2c-tools +{ + lib, + buildPythonPackage, + i2c-tools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/i2csense/default.nix b/pkgs/development/python-modules/i2csense/default.nix index 6923b1d0c3c8..42616579d538 100644 --- a/pkgs/development/python-modules/i2csense/default.nix +++ b/pkgs/development/python-modules/i2csense/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, smbus-cffi +{ + lib, + buildPythonPackage, + fetchPypi, + smbus-cffi, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "6f9c0a37d971e5b8a60c54982bd580cff84bf94fedc08c097e603a8e5609c33f"; }; - propagatedBuildInputs = [ - smbus-cffi - ]; + propagatedBuildInputs = [ smbus-cffi ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/i3-py/default.nix b/pkgs/development/python-modules/i3-py/default.nix index 83a0dd8d2700..b90e0aeafafe 100644 --- a/pkgs/development/python-modules/i3-py/default.nix +++ b/pkgs/development/python-modules/i3-py/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,9 +19,8 @@ buildPythonPackage rec { meta = with lib; { description = "Tools for i3 users and developers"; - homepage = "https://github.com/ziberna/i3-py"; + homepage = "https://github.com/ziberna/i3-py"; license = licenses.gpl3; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/i3ipc/default.nix b/pkgs/development/python-modules/i3ipc/default.nix index 5aca692cbe05..5b0942ee615b 100644 --- a/pkgs/development/python-modules/i3ipc/default.nix +++ b/pkgs/development/python-modules/i3ipc/default.nix @@ -1,6 +1,15 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, xorgserver, pytest, pytest-xvfb, i3, xlib, xdpyinfo -, makeFontsConf, coreutils +{ + lib, + buildPythonPackage, + fetchFromGitHub, + xorgserver, + pytest, + pytest-xvfb, + i3, + xlib, + xdpyinfo, + makeFontsConf, + coreutils, }: buildPythonPackage rec { @@ -9,18 +18,22 @@ buildPythonPackage rec { format = "setuptools"; src = fetchFromGitHub { - owner = "acrisci"; - repo = "i3ipc-python"; - rev = "v${version}"; + owner = "acrisci"; + repo = "i3ipc-python"; + rev = "v${version}"; sha256 = "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"; }; propagatedBuildInputs = [ xlib ]; - fontsConf = makeFontsConf { - fontDirectories = [ ]; - }; + fontsConf = makeFontsConf { fontDirectories = [ ]; }; FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file - nativeCheckInputs = [ pytest xdpyinfo pytest-xvfb xorgserver i3 ]; + nativeCheckInputs = [ + pytest + xdpyinfo + pytest-xvfb + xorgserver + i3 + ]; postPatch = '' substituteInPlace test/i3.config \ @@ -32,11 +45,10 @@ buildPythonPackage rec { --ignore=test/test_shutdown_event.py ''; - meta = with lib; { description = "An improved Python library to control i3wm and sway"; - homepage = "https://github.com/acrisci/i3ipc-python"; - license = licenses.bsd3; + homepage = "https://github.com/acrisci/i3ipc-python"; + license = licenses.bsd3; maintainers = with maintainers; [ vanzef ]; }; } diff --git a/pkgs/development/python-modules/iammeter/default.nix b/pkgs/development/python-modules/iammeter/default.nix index 7747e53f5bab..4a9ba50b91ac 100644 --- a/pkgs/development/python-modules/iammeter/default.nix +++ b/pkgs/development/python-modules/iammeter/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "iammeter" - ]; + pythonImportsCheck = [ "iammeter" ]; meta = with lib; { description = "Module to work with the IamMeter API"; diff --git a/pkgs/development/python-modules/iapws/default.nix b/pkgs/development/python-modules/iapws/default.nix index 169950593f5a..2b373aa359da 100644 --- a/pkgs/development/python-modules/iapws/default.nix +++ b/pkgs/development/python-modules/iapws/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, scipy }: +{ + lib, + buildPythonPackage, + fetchPypi, + scipy, +}: buildPythonPackage rec { pname = "iapws"; diff --git a/pkgs/development/python-modules/iaqualink/default.nix b/pkgs/development/python-modules/iaqualink/default.nix index 56dde70d3e3b..e436b599d95d 100644 --- a/pkgs/development/python-modules/iaqualink/default.nix +++ b/pkgs/development/python-modules/iaqualink/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, httpx -, pytestCheckHook -, pythonOlder -, respx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + httpx, + pytestCheckHook, + pythonOlder, + respx, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - httpx - ] ++ httpx.optional-dependencies.http2; + propagatedBuildInputs = [ httpx ] ++ httpx.optional-dependencies.http2; nativeCheckInputs = [ pytestCheckHook @@ -42,9 +41,7 @@ buildPythonPackage rec { --replace "pytest --cov-config=pyproject.toml --cov-report=xml --cov-report=term --cov=src --cov=tests" "" ''; - pythonImportsCheck = [ - "iaqualink" - ]; + pythonImportsCheck = [ "iaqualink" ]; meta = with lib; { description = "Python library for Jandy iAqualink"; diff --git a/pkgs/development/python-modules/ibeacon-ble/default.nix b/pkgs/development/python-modules/ibeacon-ble/default.nix index acbc955f1089..e0f9fc682355 100644 --- a/pkgs/development/python-modules/ibeacon-ble/default.nix +++ b/pkgs/development/python-modules/ibeacon-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aiooui -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, mac-vendor-lookup -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aiooui, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + mac-vendor-lookup, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace-fail " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -40,13 +39,9 @@ buildPythonPackage rec { mac-vendor-lookup ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ibeacon_ble" - ]; + pythonImportsCheck = [ "ibeacon_ble" ]; meta = with lib; { description = "Library for iBeacon BLE devices"; diff --git a/pkgs/development/python-modules/ibis-framework/default.nix b/pkgs/development/python-modules/ibis-framework/default.nix index 4021eeceb565..596bba56f0ae 100644 --- a/pkgs/development/python-modules/ibis-framework/default.nix +++ b/pkgs/development/python-modules/ibis-framework/default.nix @@ -1,66 +1,72 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, atpublic -, bidict -, black -, clickhouse-connect -, dask -, datafusion -, db-dtypes -, duckdb -, duckdb-engine -, filelock -, geoalchemy2 -, geopandas -, google-cloud-bigquery -, google-cloud-bigquery-storage -, graphviz -, hypothesis -, multipledispatch -, numpy -, oracledb -, packaging -, pandas -, parsy -, pins -, poetry-core -, poetry-dynamic-versioning -, polars -, psycopg2 -, pyarrow -, pyarrow-hotfix -, pydata-google-auth -, pydruid -, pymysql -, pyodbc -, pyspark -, pytest-benchmark -, pytest-httpserver -, pytest-mock -, pytest-randomly -, pytest-snapshot -, pytest-timeout -, pytest-xdist -, python-dateutil -, pytz -, regex -, rich -, shapely -, snowflake-connector-python -, snowflake-sqlalchemy -, sqlalchemy -, sqlalchemy-views -, sqlglot -, sqlite -, toolz -, trino-python-client -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + atpublic, + bidict, + black, + clickhouse-connect, + dask, + datafusion, + db-dtypes, + duckdb, + duckdb-engine, + filelock, + geoalchemy2, + geopandas, + google-cloud-bigquery, + google-cloud-bigquery-storage, + graphviz, + hypothesis, + multipledispatch, + numpy, + oracledb, + packaging, + pandas, + parsy, + pins, + poetry-core, + poetry-dynamic-versioning, + polars, + psycopg2, + pyarrow, + pyarrow-hotfix, + pydata-google-auth, + pydruid, + pymysql, + pyodbc, + pyspark, + pytest-benchmark, + pytest-httpserver, + pytest-mock, + pytest-randomly, + pytest-snapshot, + pytest-timeout, + pytest-xdist, + python-dateutil, + pytz, + regex, + rich, + shapely, + snowflake-connector-python, + snowflake-sqlalchemy, + sqlalchemy, + sqlalchemy-views, + sqlglot, + sqlite, + toolz, + trino-python-client, + typing-extensions, }: let - testBackends = [ "datafusion" "duckdb" "pandas" "sqlite" ]; + testBackends = [ + "datafusion" + "duckdb" + "pandas" + "sqlite" + ]; ibisTestingData = fetchFromGitHub { name = "ibis-testing-data"; @@ -175,30 +181,88 @@ buildPythonPackage rec { rm -r "$IBIS_TEST_DATA_DIRECTORY" ''; - pythonImportsCheck = [ - "ibis" - ] ++ map (backend: "ibis.backends.${backend}") testBackends; + pythonImportsCheck = [ "ibis" ] ++ map (backend: "ibis.backends.${backend}") testBackends; passthru = { optional-dependencies = { - bigquery = [ db-dtypes google-cloud-bigquery google-cloud-bigquery-storage pydata-google-auth ]; - clickhouse = [ clickhouse-connect sqlalchemy ]; - dask = [ dask regex ]; + bigquery = [ + db-dtypes + google-cloud-bigquery + google-cloud-bigquery-storage + pydata-google-auth + ]; + clickhouse = [ + clickhouse-connect + sqlalchemy + ]; + dask = [ + dask + regex + ]; datafusion = [ datafusion ]; - druid = [ pydruid sqlalchemy ]; - duckdb = [ duckdb duckdb-engine sqlalchemy sqlalchemy-views ]; + druid = [ + pydruid + sqlalchemy + ]; + duckdb = [ + duckdb + duckdb-engine + sqlalchemy + sqlalchemy-views + ]; flink = [ ]; - geospatial = [ geoalchemy2 geopandas shapely ]; - mssql = [ sqlalchemy pyodbc sqlalchemy-views ]; - mysql = [ sqlalchemy pymysql sqlalchemy-views ]; - oracle = [ sqlalchemy oracledb packaging sqlalchemy-views ]; + geospatial = [ + geoalchemy2 + geopandas + shapely + ]; + mssql = [ + sqlalchemy + pyodbc + sqlalchemy-views + ]; + mysql = [ + sqlalchemy + pymysql + sqlalchemy-views + ]; + oracle = [ + sqlalchemy + oracledb + packaging + sqlalchemy-views + ]; pandas = [ regex ]; - polars = [ polars packaging ]; - postgres = [ psycopg2 sqlalchemy sqlalchemy-views ]; - pyspark = [ pyspark sqlalchemy packaging ]; - snowflake = [ snowflake-connector-python snowflake-sqlalchemy sqlalchemy-views packaging ]; - sqlite = [ regex sqlalchemy sqlalchemy-views ]; - trino = [ trino-python-client sqlalchemy sqlalchemy-views ]; + polars = [ + polars + packaging + ]; + postgres = [ + psycopg2 + sqlalchemy + sqlalchemy-views + ]; + pyspark = [ + pyspark + sqlalchemy + packaging + ]; + snowflake = [ + snowflake-connector-python + snowflake-sqlalchemy + sqlalchemy-views + packaging + ]; + sqlite = [ + regex + sqlalchemy + sqlalchemy-views + ]; + trino = [ + trino-python-client + sqlalchemy + sqlalchemy-views + ]; visualization = [ graphviz ]; decompiler = [ black ]; examples = [ pins ] ++ pins.optional-dependencies.gcs; diff --git a/pkgs/development/python-modules/ibis/default.nix b/pkgs/development/python-modules/ibis/default.nix index e012ca20e2d7..84eedf9e3b69 100644 --- a/pkgs/development/python-modules/ibis/default.nix +++ b/pkgs/development/python-modules/ibis/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { ${python.interpreter} test_ibis.py ''; - pythonImportsCheck = [ - "ibis" - ]; + pythonImportsCheck = [ "ibis" ]; meta = with lib; { description = "Lightweight template engine"; diff --git a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix index 277836600a5d..1bb75ee2c86e 100644 --- a/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix +++ b/pkgs/development/python-modules/ibm-cloud-sdk-core/default.nix @@ -37,26 +37,28 @@ buildPythonPackage rec { responses ]; - disabledTests = [ - # Various tests try to access credential files which are not included with the source distribution - "test_configure_service" - "test_cp4d_authenticator" - "test_cwd" - "test_files_dict" - "test_files_duplicate_parts" - "test_files_list" - "test_get_authenticator" - "test_gzip_compression_external" - "test_iam" - "test_read_external_sources_2" - "test_retry_config_external" - # assertion error due to requests brotli support - "test_http_client" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # Tests are blocking or failing - "test_abstract_class_instantiation" - "test_abstract_class_instantiation" - ]; + disabledTests = + [ + # Various tests try to access credential files which are not included with the source distribution + "test_configure_service" + "test_cp4d_authenticator" + "test_cwd" + "test_files_dict" + "test_files_duplicate_parts" + "test_files_list" + "test_get_authenticator" + "test_gzip_compression_external" + "test_iam" + "test_read_external_sources_2" + "test_retry_config_external" + # assertion error due to requests brotli support + "test_http_client" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # Tests are blocking or failing + "test_abstract_class_instantiation" + "test_abstract_class_instantiation" + ]; disabledTestPaths = [ "test/test_container_token_manager.py" diff --git a/pkgs/development/python-modules/icalendar/default.nix b/pkgs/development/python-modules/icalendar/default.nix index e848cb79cf48..2723cd3b4e83 100644 --- a/pkgs/development/python-modules/icalendar/default.nix +++ b/pkgs/development/python-modules/icalendar/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, backports-zoneinfo -, python-dateutil -, pytz -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + backports-zoneinfo, + python-dateutil, + pytz, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,16 +23,12 @@ buildPythonPackage rec { hash = "sha256-313NcknY2zad4lI+/P0szDVjEQ8VatnSiBiaG/Ta1Bw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ python-dateutil pytz - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; nativeCheckInputs = [ hypothesis @@ -48,5 +45,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ olcai ]; }; - } diff --git a/pkgs/development/python-modules/icalevents/default.nix b/pkgs/development/python-modules/icalevents/default.nix index 41b6f1bd34f7..26c62a1233e1 100644 --- a/pkgs/development/python-modules/icalevents/default.nix +++ b/pkgs/development/python-modules/icalevents/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, poetry-core -, pythonRelaxDepsHook -, datetime -, httplib2 -, icalendar -, python-dateutil -, pytz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + poetry-core, + pythonRelaxDepsHook, + datetime, + httplib2, + icalendar, + python-dateutil, + pytz, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { "pytz" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Makes HTTP calls diff --git a/pkgs/development/python-modules/icecream/default.nix b/pkgs/development/python-modules/icecream/default.nix index db9e56bb8b6e..25ea5cf74177 100644 --- a/pkgs/development/python-modules/icecream/default.nix +++ b/pkgs/development/python-modules/icecream/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, asttokens -, colorama -, executing -, pygments + # dependencies + asttokens, + colorama, + executing, + pygments, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace assertRegexpMatches assertRegex ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asttokens @@ -41,9 +40,7 @@ buildPythonPackage rec { pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # icecream.icecream.NoSourceAvailableError diff --git a/pkgs/development/python-modules/iceportal/default.nix b/pkgs/development/python-modules/iceportal/default.nix index a587503bc072..0ec332e10dfd 100644 --- a/pkgs/development/python-modules/iceportal/default.nix +++ b/pkgs/development/python-modules/iceportal/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, httpx -, pytest-asyncio -, pytest-httpx -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + httpx, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-kpAUgGi2fAHzQYuZAaQW9wdrYjwbduRsoTwSuzcjJa8="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - httpx - ]; + dependencies = [ httpx ]; nativeCheckInputs = [ pytest-asyncio @@ -37,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "iceportal" - ]; + pythonImportsCheck = [ "iceportal" ]; meta = with lib; { description = "Library for getting data from the ICE Portal"; diff --git a/pkgs/development/python-modules/icmplib/default.nix b/pkgs/development/python-modules/icmplib/default.nix index 0d42526c8ca9..1ea2b702001b 100644 --- a/pkgs/development/python-modules/icmplib/default.nix +++ b/pkgs/development/python-modules/icmplib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pbr -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pbr, + pythonOlder, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/icnsutil/default.nix b/pkgs/development/python-modules/icnsutil/default.nix index 46c1fcae3fac..8061c62feb22 100644 --- a/pkgs/development/python-modules/icnsutil/default.nix +++ b/pkgs/development/python-modules/icnsutil/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { ${python.interpreter} tests/test_cli.py ''; - pythonImportsCheck = [ - "icnsutil" - ]; + pythonImportsCheck = [ "icnsutil" ]; meta = with lib; { description = "Create and extract .icns files"; diff --git a/pkgs/development/python-modules/icoextract/default.nix b/pkgs/development/python-modules/icoextract/default.nix index 45991fa8a928..e9ef6393f22f 100644 --- a/pkgs/development/python-modules/icoextract/default.nix +++ b/pkgs/development/python-modules/icoextract/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pefile -, pillow -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pefile, + pillow, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-/UxnWNyRNtwI4Rxx97i5QyjeMrUr5Sq+TfLTmU0xWyc="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pefile @@ -32,9 +31,7 @@ buildPythonPackage rec { # tests expect mingw and multiarch doCheck = false; - pythonImportsCheck = [ - "icoextract" - ]; + pythonImportsCheck = [ "icoextract" ]; postInstall = '' mkdir -p $out/share/thumbnailers @@ -46,6 +43,9 @@ buildPythonPackage rec { homepage = "https://github.com/jlu5/icoextract"; changelog = "https://github.com/jlu5/icoextract/blob/${version}/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ bryanasdev000 donovanglover ]; + maintainers = with maintainers; [ + bryanasdev000 + donovanglover + ]; }; } diff --git a/pkgs/development/python-modules/icontract/default.nix b/pkgs/development/python-modules/icontract/default.nix index f8b9fd589f18..7076732ba63c 100644 --- a/pkgs/development/python-modules/icontract/default.nix +++ b/pkgs/development/python-modules/icontract/default.nix @@ -1,16 +1,17 @@ -{ lib -, astor -, asttokens -, asyncstdlib -, buildPythonPackage -, deal -, dpcontracts -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + astor, + asttokens, + asyncstdlib, + buildPythonPackage, + deal, + dpcontracts, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { export ICONTRACT_SLOW=1 ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ asttokens @@ -67,18 +66,20 @@ buildPythonPackage rec { pytestFlagsArray = [ # RuntimeWarning: coroutine '*' was never awaited - "-W" "ignore::RuntimeWarning" + "-W" + "ignore::RuntimeWarning" ]; - pythonImportsCheck = [ - "icontract" - ]; + pythonImportsCheck = [ "icontract" ]; meta = with lib; { description = "Provide design-by-contract with informative violation messages"; homepage = "https://github.com/Parquery/icontract"; changelog = "https://github.com/Parquery/icontract/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; - maintainers = with maintainers; [ gador thiagokokada ]; + maintainers = with maintainers; [ + gador + thiagokokada + ]; }; } diff --git a/pkgs/development/python-modules/ics/default.nix b/pkgs/development/python-modules/ics/default.nix index f6e86242c612..c347b177587c 100644 --- a/pkgs/development/python-modules/ics/default.nix +++ b/pkgs/development/python-modules/ics/default.nix @@ -1,13 +1,14 @@ -{ lib -, arrow -, attrs -, buildPythonPackage -, fetchFromGitHub -, pytest-flakes -, pytestCheckHook -, pythonOlder -, setuptools -, tatsu +{ + lib, + arrow, + attrs, + buildPythonPackage, + fetchFromGitHub, + pytest-flakes, + pytestCheckHook, + pythonOlder, + setuptools, + tatsu, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs @@ -53,9 +52,7 @@ buildPythonPackage rec { "test_many_lines" ]; - pythonImportsCheck = [ - "ics" - ]; + pythonImportsCheck = [ "ics" ]; meta = with lib; { description = "Pythonic and easy iCalendar library (RFC 5545)"; diff --git a/pkgs/development/python-modules/idasen/default.nix b/pkgs/development/python-modules/idasen/default.nix index 122ff64eb088..61bbdefce2f5 100644 --- a/pkgs/development/python-modules/idasen/default.nix +++ b/pkgs/development/python-modules/idasen/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, bleak -, pyyaml -, voluptuous -, pytestCheckHook -, pytest-asyncio -, poetry-core +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + bleak, + pyyaml, + voluptuous, + pytestCheckHook, + pytest-asyncio, + poetry-core, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-TQ+DBFpG+IeZ4/dN+YKMw3AM4Dl1rpqA1kRcb3Tb3jA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bleak @@ -39,9 +38,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "idasen" - ]; + pythonImportsCheck = [ "idasen" ]; meta = with lib; { description = "Python API and CLI for the ikea IDÅSEN desk"; diff --git a/pkgs/development/python-modules/idna-ssl/default.nix b/pkgs/development/python-modules/idna-ssl/default.nix index a26aecb49d04..cc0c12f70999 100644 --- a/pkgs/development/python-modules/idna-ssl/default.nix +++ b/pkgs/development/python-modules/idna-ssl/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, idna }: +{ + lib, + buildPythonPackage, + fetchPypi, + idna, +}: buildPythonPackage rec { pname = "idna-ssl"; diff --git a/pkgs/development/python-modules/idna/default.nix b/pkgs/development/python-modules/idna/default.nix index ec47eb675112..e44da7b58abe 100644 --- a/pkgs/development/python-modules/idna/default.nix +++ b/pkgs/development/python-modules/idna/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-Ao/zqt8GCcH9J42OowiSmUEqeoub0AXdCLn4KFvLXPw="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { homepage = "https://github.com/kjd/idna/"; diff --git a/pkgs/development/python-modules/ifaddr/default.nix b/pkgs/development/python-modules/ifaddr/default.nix index 2f5d8e202dba..e313d7bc7102 100644 --- a/pkgs/development/python-modules/ifaddr/default.nix +++ b/pkgs/development/python-modules/ifaddr/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-zAy/yqv3ZdRFlYJfuWqZuxLHlxa3O0QzDqOO4rDErtQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ifaddr" ]; diff --git a/pkgs/development/python-modules/ifcopenshell/default.nix b/pkgs/development/python-modules/ifcopenshell/default.nix index 7288eb8d96bc..c54c7d514c40 100644 --- a/pkgs/development/python-modules/ifcopenshell/default.nix +++ b/pkgs/development/python-modules/ifcopenshell/default.nix @@ -1,15 +1,17 @@ -{ lib, stdenv -, buildPythonPackage -, fetchFromGitHub -, gcc10 -, cmake -, boost179 -, icu -, swig -, pcre -, opencascade-occt_7_6 -, opencollada -, libxml2 +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + gcc10, + cmake, + boost179, + icu, + swig, + pcre, + opencascade-occt_7_6, + opencollada, + libxml2, }: let opencascade-occt = opencascade-occt_7_6; @@ -20,14 +22,17 @@ buildPythonPackage rec { format = "other"; src = fetchFromGitHub { - owner = "IfcOpenShell"; - repo = "IfcOpenShell"; + owner = "IfcOpenShell"; + repo = "IfcOpenShell"; rev = "refs/tags/blenderbim-${version}"; fetchSubmodules = true; sha256 = "sha256-DtA8KeWipPfOnztKG/lrgLZeOCUG3nWR9oW7OST7koc="; }; - nativeBuildInputs = [ gcc10 cmake ]; + nativeBuildInputs = [ + gcc10 + cmake + ]; buildInputs = [ boost179 @@ -40,7 +45,7 @@ buildPythonPackage rec { cd cmake ''; - PYTHONUSERBASE="."; + PYTHONUSERBASE = "."; cmakeFlags = [ "-DUSERSPACE_PYTHON_PREFIX=ON" "-DOCC_INCLUDE_DIR=${opencascade-occt}/include/opencascade" @@ -55,8 +60,8 @@ buildPythonPackage rec { meta = with lib; { broken = stdenv.isDarwin; description = "Open source IFC library and geometry engine"; - homepage = "http://ifcopenshell.org/"; - license = licenses.lgpl3; + homepage = "http://ifcopenshell.org/"; + license = licenses.lgpl3; maintainers = with maintainers; [ fehnomenal ]; }; } diff --git a/pkgs/development/python-modules/ignite/default.nix b/pkgs/development/python-modules/ignite/default.nix index 174ba8312745..c805a688b734 100644 --- a/pkgs/development/python-modules/ignite/default.nix +++ b/pkgs/development/python-modules/ignite/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-xdist -, torchvision -, pythonOlder -, matplotlib -, mock -, packaging -, torch -, scikit-learn -, tqdm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-xdist, + torchvision, + pythonOlder, + matplotlib, + mock, + packaging, + torch, + scikit-learn, + tqdm, }: buildPythonPackage rec { @@ -25,8 +26,19 @@ buildPythonPackage rec { hash = "sha256-Lg7ASODYwWWhC45X4+Bk50gSlSWwgn2tM4atLXWbQLI="; }; - nativeCheckInputs = [ pytestCheckHook matplotlib mock pytest-xdist torchvision ]; - propagatedBuildInputs = [ packaging torch scikit-learn tqdm ]; + nativeCheckInputs = [ + pytestCheckHook + matplotlib + mock + pytest-xdist + torchvision + ]; + propagatedBuildInputs = [ + packaging + torch + scikit-learn + tqdm + ]; # runs successfully in 3.9, however, async isn't correctly closed so it will fail after test suite. doCheck = pythonOlder "3.9"; diff --git a/pkgs/development/python-modules/igraph/default.nix b/pkgs/development/python-modules/igraph/default.nix index 8aa1583cc8a8..53bd1e526909 100644 --- a/pkgs/development/python-modules/igraph/default.nix +++ b/pkgs/development/python-modules/igraph/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pkg-config -, setuptools -, igraph -, texttable -, cairocffi -, matplotlib -, plotly -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pkg-config, + setuptools, + igraph, + texttable, + cairocffi, + matplotlib, + plotly, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,13 +37,9 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - igraph - ]; + buildInputs = [ igraph ]; - propagatedBuildInputs = [ - texttable - ]; + propagatedBuildInputs = [ texttable ]; passthru.optional-dependencies = { cairo = [ cairocffi ]; @@ -73,6 +70,9 @@ buildPythonPackage rec { homepage = "https://igraph.org/python/"; changelog = "https://github.com/igraph/python-igraph/blob/${src.rev}/CHANGELOG.md"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ MostAwesomeDude dotlambda ]; + maintainers = with maintainers; [ + MostAwesomeDude + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/ihm/default.nix b/pkgs/development/python-modules/ihm/default.nix index 3991ce9a4339..c71616be90db 100644 --- a/pkgs/development/python-modules/ihm/default.nix +++ b/pkgs/development/python-modules/ihm/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, swig -, wheel -, msgpack -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + swig, + wheel, + msgpack, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - msgpack - ]; + propagatedBuildInputs = [ msgpack ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # requires network access diff --git a/pkgs/development/python-modules/iisignature/default.nix b/pkgs/development/python-modules/iisignature/default.nix index 1ddfd05b5326..8be12a0ef76f 100644 --- a/pkgs/development/python-modules/iisignature/default.nix +++ b/pkgs/development/python-modules/iisignature/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + numpy, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; # PyPI tarball has no tests doCheck = false; diff --git a/pkgs/development/python-modules/ijson/default.nix b/pkgs/development/python-modules/ijson/default.nix index 4f99055f5ad1..100fafcb4959 100644 --- a/pkgs/development/python-modules/ijson/default.nix +++ b/pkgs/development/python-modules/ijson/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cffi -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, yajl +{ + lib, + buildPythonPackage, + cffi, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + yajl, }: buildPythonPackage rec { @@ -20,25 +21,15 @@ buildPythonPackage rec { hash = "sha256-EClOm/ictxPaBbxHkL3/YWYQQy21YZZIJwdImOF0+Rc="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - buildInputs = [ - yajl - ]; + buildInputs = [ yajl ]; - dependencies = [ - cffi - ]; + dependencies = [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ijson" - ]; + pythonImportsCheck = [ "ijson" ]; meta = with lib; { description = "Iterative JSON parser with a standard Python iterator interface"; diff --git a/pkgs/development/python-modules/ilua/default.nix b/pkgs/development/python-modules/ilua/default.nix index 119c6b17f5e3..de4712f92fea 100644 --- a/pkgs/development/python-modules/ilua/default.nix +++ b/pkgs/development/python-modules/ilua/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jupyter-console -, jupyter-core -, pygments -, setuptools -, termcolor -, txzmq +{ + lib, + buildPythonPackage, + fetchPypi, + jupyter-console, + jupyter-core, + pygments, + setuptools, + termcolor, + txzmq, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-YxV6xC7GS5NXyMPRZN9YIJxamgP2etwrZUAZjk5PjtU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jupyter-console diff --git a/pkgs/development/python-modules/image-diff/default.nix b/pkgs/development/python-modules/image-diff/default.nix index 8f65994b3885..ac5a22947a41 100644 --- a/pkgs/development/python-modules/image-diff/default.nix +++ b/pkgs/development/python-modules/image-diff/default.nix @@ -1,11 +1,12 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitHub -, pillow -, click -, click-default-group -, pytestCheckHook +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + pillow, + click, + click-default-group, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/image-go-nord/default.nix b/pkgs/development/python-modules/image-go-nord/default.nix index 4daa574e79e7..55e07f3c96a1 100644 --- a/pkgs/development/python-modules/image-go-nord/default.nix +++ b/pkgs/development/python-modules/image-go-nord/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pillow, pytestCheckHook, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + pytestCheckHook, + pythonOlder, +}: buildPythonPackage rec { pname = "image-go-nord"; diff --git a/pkgs/development/python-modules/imagecodecs-lite/default.nix b/pkgs/development/python-modules/imagecodecs-lite/default.nix index cef23d308f4b..cca83672a31d 100644 --- a/pkgs/development/python-modules/imagecodecs-lite/default.nix +++ b/pkgs/development/python-modules/imagecodecs-lite/default.nix @@ -1,8 +1,11 @@ -{ stdenv -, lib, fetchPypi, buildPythonPackage -, pytest -, numpy -, cython +{ + stdenv, + lib, + fetchPypi, + buildPythonPackage, + pytest, + numpy, + cython, }: buildPythonPackage rec { @@ -15,17 +18,11 @@ buildPythonPackage rec { sha256 = "0s4xb17qd7vimc46rafbjnibj4sf0lnv8cwl22k1h6zb7jhqmlcm"; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; checkPhase = '' pytest diff --git a/pkgs/development/python-modules/imagecorruptions/default.nix b/pkgs/development/python-modules/imagecorruptions/default.nix index 5642812f8040..37a7e1e7056b 100644 --- a/pkgs/development/python-modules/imagecorruptions/default.nix +++ b/pkgs/development/python-modules/imagecorruptions/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchPypi -, numpy -, scikit-image -, lib -, opencv4 +{ + buildPythonPackage, + fetchPypi, + numpy, + scikit-image, + lib, + opencv4, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/imagededup/default.nix b/pkgs/development/python-modules/imagededup/default.nix index a8de28de438e..b12d6a7b2f01 100644 --- a/pkgs/development/python-modules/imagededup/default.nix +++ b/pkgs/development/python-modules/imagededup/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, fetchurl -, matplotlib -, pillow -, pytest-mock -, pytestCheckHook -, pythonOlder -, pywavelets -, scikit-learn -, setuptools -, torch -, torchvision -, tqdm -, fetchpatch +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + fetchurl, + matplotlib, + pillow, + pytest-mock, + pytestCheckHook, + pythonOlder, + pywavelets, + scikit-learn, + setuptools, + torch, + torchvision, + tqdm, + fetchpatch, }: let MobileNetV3 = fetchurl { @@ -74,9 +75,7 @@ buildPythonPackage rec { ln -s ${EfficientNet} $HOME/.cache/torch/hub/checkpoints/${EfficientNet.name} ''; - pythonImportsCheck = [ - "imagededup" - ]; + pythonImportsCheck = [ "imagededup" ]; patches = [ # https://github.com/idealo/imagededup/pull/217 diff --git a/pkgs/development/python-modules/imagehash/default.nix b/pkgs/development/python-modules/imagehash/default.nix index 55ce39e8648a..069398ec9aec 100644 --- a/pkgs/development/python-modules/imagehash/default.nix +++ b/pkgs/development/python-modules/imagehash/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, numpy -, six -, scipy -, pillow -, pywavelets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + numpy, + six, + scipy, + pillow, + pywavelets, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/imageio-ffmpeg/default.nix b/pkgs/development/python-modules/imageio-ffmpeg/default.nix index 3f2b7de89dde..5c70706d8c40 100644 --- a/pkgs/development/python-modules/imageio-ffmpeg/default.nix +++ b/pkgs/development/python-modules/imageio-ffmpeg/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, substituteAll -, ffmpeg_4 -, python +{ + lib, + buildPythonPackage, + fetchPypi, + substituteAll, + ffmpeg_4, + python, }: buildPythonPackage rec { @@ -47,5 +48,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = [ maintainers.pmiddend ]; }; - } diff --git a/pkgs/development/python-modules/imageio/default.nix b/pkgs/development/python-modules/imageio/default.nix index a5a71c38bc97..e2c83a079dcd 100644 --- a/pkgs/development/python-modules/imageio/default.nix +++ b/pkgs/development/python-modules/imageio/default.nix @@ -1,32 +1,33 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, isPyPy -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + isPyPy, + substituteAll, -# build-system -, setuptools + # build-system + setuptools, -# native dependencies -, libGL + # native dependencies + libGL, -# dependencies -, numpy -, pillow + # dependencies + numpy, + pillow, -# optional-dependencies -, astropy -, av -, imageio-ffmpeg -, pillow-heif -, psutil -, tifffile + # optional-dependencies + astropy, + av, + imageio-ffmpeg, + pillow-heif, + psutil, + tifffile, -# tests -, pytestCheckHook -, fsspec + # tests + pytestCheckHook, + fsspec, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ numpy @@ -60,45 +59,36 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - bsdf = []; - dicom = []; - feisem = []; + bsdf = [ ]; + dicom = [ ]; + feisem = [ ]; ffmpeg = [ imageio-ffmpeg psutil ]; - fits = lib.optionals (!isPyPy) [ - astropy - ]; - freeimage = []; - lytro = []; - numpy = []; - pillow = []; - simpleitk = []; - spe = []; - swf = []; - tifffile = [ - tifffile - ]; - pyav = [ - av - ]; - heif = [ - pillow-heif - ]; + fits = lib.optionals (!isPyPy) [ astropy ]; + freeimage = [ ]; + lytro = [ ]; + numpy = [ ]; + pillow = [ ]; + simpleitk = [ ]; + spe = [ ]; + swf = [ ]; + tifffile = [ tifffile ]; + pyav = [ av ]; + heif = [ pillow-heif ]; }; - nativeCheckInputs = [ - fsspec - psutil - pytestCheckHook - ] - ++ fsspec.optional-dependencies.github - ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + nativeCheckInputs = + [ + fsspec + psutil + pytestCheckHook + ] + ++ fsspec.optional-dependencies.github + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pytestFlagsArray = [ - "-m 'not needs_internet'" - ]; + pytestFlagsArray = [ "-m 'not needs_internet'" ]; preCheck = '' export IMAGEIO_USERDIR="$TMP" diff --git a/pkgs/development/python-modules/imagesize/default.nix b/pkgs/development/python-modules/imagesize/default.nix index ab41410b7ad8..4420190e98de 100644 --- a/pkgs/development/python-modules/imagesize/default.nix +++ b/pkgs/development/python-modules/imagesize/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "https://github.com/shibukawa/imagesize_py"; license = with licenses; [ mit ]; }; - } diff --git a/pkgs/development/python-modules/imantics/default.nix b/pkgs/development/python-modules/imantics/default.nix index d6815f2a26ae..88e8e4835ce4 100644 --- a/pkgs/development/python-modules/imantics/default.nix +++ b/pkgs/development/python-modules/imantics/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, numpy -, opencv4 -, lxml -, xmljson -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + lib, + numpy, + opencv4, + lxml, + xmljson, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/imap-tools/default.nix b/pkgs/development/python-modules/imap-tools/default.nix index 6f9182bc1220..ce6a88040fad 100644 --- a/pkgs/development/python-modules/imap-tools/default.nix +++ b/pkgs/development/python-modules/imap-tools/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-kY6Y8Uu1HwSkcmlKL5+zPh4n+4mofX2aoPVXAZvInlI="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # tests require a network connection diff --git a/pkgs/development/python-modules/imapclient/default.nix b/pkgs/development/python-modules/imapclient/default.nix index 6301970392ac..5a231c13a3ee 100644 --- a/pkgs/development/python-modules/imapclient/default.nix +++ b/pkgs/development/python-modules/imapclient/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,6 +35,9 @@ buildPythonPackage rec { homepage = "https://imapclient.readthedocs.io"; description = "Easy-to-use, Pythonic and complete IMAP client library"; license = licenses.bsd3; - maintainers = with maintainers; [ almac dotlambda ]; + maintainers = with maintainers; [ + almac + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/imaplib2/default.nix b/pkgs/development/python-modules/imaplib2/default.nix index 7c4c215bfabb..abb1d171cd6c 100644 --- a/pkgs/development/python-modules/imaplib2/default.nix +++ b/pkgs/development/python-modules/imaplib2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "14asi3xnvf4bb394k5j8c3by6svvmrr75pawzy6kaax5jx0h793m"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "imaplib2" ]; diff --git a/pkgs/development/python-modules/imbalanced-learn/default.nix b/pkgs/development/python-modules/imbalanced-learn/default.nix index 412b0424a218..2f3c8cf3b72a 100644 --- a/pkgs/development/python-modules/imbalanced-learn/default.nix +++ b/pkgs/development/python-modules/imbalanced-learn/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, joblib -, keras -, numpy -, pandas -, scikit-learn -, scipy -, tensorflow -, threadpoolctl -, pytest-xdist -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + joblib, + keras, + numpy, + pandas, + scikit-learn, + scipy, + tensorflow, + threadpoolctl, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-qAxWztywcSTyZr5i06XSq1tXeZCac0P98bmTR5Zi9sE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ joblib @@ -47,11 +46,12 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "imblearn" - ]; + pythonImportsCheck = [ "imblearn" ]; - nativeCheckInputs = [ pytestCheckHook pandas ]; + nativeCheckInputs = [ + pytestCheckHook + pandas + ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix index 2dc389f70ecc..1a887a87d29b 100644 --- a/pkgs/development/python-modules/img2pdf/default.nix +++ b/pkgs/development/python-modules/img2pdf/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitea -, substituteAll -, fetchpatch -, colord -, setuptools -, pikepdf -, pillow -, stdenv -, exiftool -, ghostscript -, imagemagick -, mupdf-headless -, netpbm -, numpy -, poppler_utils -, pytestCheckHook -, runCommand -, scipy +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitea, + substituteAll, + fetchpatch, + colord, + setuptools, + pikepdf, + pillow, + stdenv, + exiftool, + ghostscript, + imagemagick, + mupdf-headless, + netpbm, + numpy, + poppler_utils, + pytestCheckHook, + runCommand, + scipy, }: buildPythonPackage rec { @@ -39,25 +40,23 @@ buildPythonPackage rec { patches = [ (substituteAll { src = ./default-icc-profile.patch; - srgbProfile = if stdenv.isDarwin then - "/System/Library/ColorSync/Profiles/sRGB Profile.icc" - else - # break runtime dependency chain all of colord dependencies - runCommand "sRGC.icc" { } '' - cp ${colord}/share/color/icc/colord/sRGB.icc $out - ''; + srgbProfile = + if stdenv.isDarwin then + "/System/Library/ColorSync/Profiles/sRGB Profile.icc" + else + # break runtime dependency chain all of colord dependencies + runCommand "sRGC.icc" { } '' + cp ${colord}/share/color/icc/colord/sRGB.icc $out + ''; }) (fetchpatch { # https://gitlab.mister-muffin.de/josch/img2pdf/issues/178 url = "https://salsa.debian.org/debian/img2pdf/-/raw/4a7dbda0f473f7c5ffcaaf68ea4ad3f435e0920d/debian/patches/fix_tests.patch"; hash = "sha256-A1zK6yINhS+dvyckZjqoSO1XJRTaf4OXFdq5ufUrBs8="; }) - ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pikepdf @@ -66,9 +65,7 @@ buildPythonPackage rec { # FIXME: Only add "sRGB Profile.icc" to __impureHostDeps once # https://github.com/NixOS/nix/issues/9301 is fixed. - __impureHostDeps = lib.optionals stdenv.isDarwin [ - "/System/Library/ColorSync/Profiles" - ]; + __impureHostDeps = lib.optionals stdenv.isDarwin [ "/System/Library/ColorSync/Profiles" ]; nativeCheckInputs = [ exiftool @@ -99,6 +96,9 @@ buildPythonPackage rec { homepage = "https://gitlab.mister-muffin.de/josch/img2pdf"; license = licenses.lgpl3Plus; mainProgram = "img2pdf"; - maintainers = with maintainers; [ veprbl dotlambda ]; + maintainers = with maintainers; [ + veprbl + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/imgcat/default.nix b/pkgs/development/python-modules/imgcat/default.nix index 1d0c91e177c0..e17c249670e2 100644 --- a/pkgs/development/python-modules/imgcat/default.nix +++ b/pkgs/development/python-modules/imgcat/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, pillow -, pytestCheckHook -, pythonOlder -, setuptools -, tensorflow -, torch -, torchvision +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + pillow, + pytestCheckHook, + pythonOlder, + setuptools, + tensorflow, + torch, + torchvision, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace-fail "'pytest-runner<5.0'" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ matplotlib @@ -45,9 +44,7 @@ buildPythonPackage rec { torchvision ]; - pythonImportsCheck = [ - "imgcat" - ]; + pythonImportsCheck = [ "imgcat" ]; meta = with lib; { description = "Imgcat in Python"; diff --git a/pkgs/development/python-modules/imgdiff/default.nix b/pkgs/development/python-modules/imgdiff/default.nix index 6cb92f329334..6a168c965d67 100644 --- a/pkgs/development/python-modules/imgdiff/default.nix +++ b/pkgs/development/python-modules/imgdiff/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, mock -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + mock, + unittestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-Y5nUnjihRpVVehhP1LUgfuJN5nCxEJu6P1w99Igpxjs="; }; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; pythonImportsCheck = [ "imgdiff" ]; diff --git a/pkgs/development/python-modules/imgsize/default.nix b/pkgs/development/python-modules/imgsize/default.nix index fe08f4f7288f..c368a67085d0 100644 --- a/pkgs/development/python-modules/imgsize/default.nix +++ b/pkgs/development/python-modules/imgsize/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/imgtool/default.nix b/pkgs/development/python-modules/imgtool/default.nix index 52f203f9b1e9..ba083666336f 100644 --- a/pkgs/development/python-modules/imgtool/default.nix +++ b/pkgs/development/python-modules/imgtool/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, cbor2 -, click -, cryptography -, intelhex -, pyyaml +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + cbor2, + click, + cryptography, + intelhex, + pyyaml, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-T3+831PETqqmImUEUQzLUvfvAMmXUDz5STSzMMlge2A="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cbor2 @@ -34,9 +33,7 @@ buildPythonPackage rec { pyyaml ]; - pythonImportsCheck = [ - "imgtool" - ]; + pythonImportsCheck = [ "imgtool" ]; meta = with lib; { description = "MCUboot's image signing and key management"; diff --git a/pkgs/development/python-modules/imia/default.nix b/pkgs/development/python-modules/imia/default.nix index b5b855c92d74..dbbc60a2088a 100644 --- a/pkgs/development/python-modules/imia/default.nix +++ b/pkgs/development/python-modules/imia/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, starlette -, fastapi +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + starlette, + fastapi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-4CzevO7xgo8Hb1JHe/eGEtq/KCrJM0hV/7SRV2wmux8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ starlette diff --git a/pkgs/development/python-modules/iminuit/default.nix b/pkgs/development/python-modules/iminuit/default.nix index 113d19928d10..cc999468fdd9 100644 --- a/pkgs/development/python-modules/iminuit/default.nix +++ b/pkgs/development/python-modules/iminuit/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, cmake -, scikit-build-core -, pybind11 -, pathspec -, ninja -, pyproject-metadata + # build-system + cmake, + scikit-build-core, + pybind11, + pathspec, + ninja, + pyproject-metadata, -# dependencies -, numpy + # dependencies + numpy, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -39,20 +40,19 @@ buildPythonPackage rec { pyproject-metadata ] ++ scikit-build-core.optional-dependencies.pyproject; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; dontUseCmakeConfigure = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/scikit-hep/iminuit"; description = "Python interface for the Minuit2 C++ library"; - license = with licenses; [ mit lgpl2Only ]; + license = with licenses; [ + mit + lgpl2Only + ]; maintainers = with maintainers; [ veprbl ]; }; } diff --git a/pkgs/development/python-modules/immutabledict/default.nix b/pkgs/development/python-modules/immutabledict/default.nix index 5c1530263d22..d3dbedd3500b 100644 --- a/pkgs/development/python-modules/immutabledict/default.nix +++ b/pkgs/development/python-modules/immutabledict/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-NpNS8HAacgXm3rFtyd5uFgSURNbDf+YVS1aFx51kwEA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - pythonImportsCheck = [ - "immutabledict" - ]; + pythonImportsCheck = [ "immutabledict" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A fork of frozendict, an immutable wrapper around dictionaries"; diff --git a/pkgs/development/python-modules/immutables/default.nix b/pkgs/development/python-modules/immutables/default.nix index c01fa75e5447..2c4abfb4b199 100644 --- a/pkgs/development/python-modules/immutables/default.nix +++ b/pkgs/development/python-modules/immutables/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { rm tests/conftest.py ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Version mismatch @@ -37,9 +36,7 @@ buildPythonPackage rec { "tests/test_mypy.py" ]; - pythonImportsCheck = [ - "immutables" - ]; + pythonImportsCheck = [ "immutables" ]; meta = with lib; { description = "An immutable mapping type"; diff --git a/pkgs/development/python-modules/impacket/default.nix b/pkgs/development/python-modules/impacket/default.nix index f216aad5e431..8cd34b50f828 100644 --- a/pkgs/development/python-modules/impacket/default.nix +++ b/pkgs/development/python-modules/impacket/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, charset-normalizer -, dsinternals -, fetchPypi -, flask -, ldap3 -, ldapdomaindump -, pyasn1 -, pycryptodomex -, pyopenssl -, pythonOlder -, setuptools -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + charset-normalizer, + dsinternals, + fetchPypi, + flask, + ldap3, + ldapdomaindump, + pyasn1, + pycryptodomex, + pyopenssl, + pythonOlder, + setuptools, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-7kA5tNKu3o9fZEeLxZ+qyGA2eWviTeqNwY8An7CQXko="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ charset-normalizer @@ -44,13 +43,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "impacket" - ]; + pythonImportsCheck = [ "impacket" ]; disabledTestPaths = [ # Skip all RPC related tests @@ -61,7 +56,8 @@ buildPythonPackage rec { meta = with lib; { description = "Network protocols Constructors and Dissectors"; homepage = "https://github.com/SecureAuthCorp/impacket"; - changelog = "https://github.com/fortra/impacket/releases/tag/impacket_" + changelog = + "https://github.com/fortra/impacket/releases/tag/impacket_" + replaceStrings [ "." ] [ "_" ] version; # Modified Apache Software License, Version 1.1 license = licenses.free; diff --git a/pkgs/development/python-modules/import-expression/default.nix b/pkgs/development/python-modules/import-expression/default.nix index 42182cadc081..4dc6d053154d 100644 --- a/pkgs/development/python-modules/import-expression/default.nix +++ b/pkgs/development/python-modules/import-expression/default.nix @@ -1,10 +1,11 @@ -{ lib, +{ + lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pytestCheckHook, astunparse, - setuptools + setuptools, }: buildPythonPackage rec { pname = "import-expression"; @@ -38,7 +39,10 @@ buildPythonPackage rec { meta = { description = "Transpiles a superset of python to allow easy inline imports"; homepage = "https://github.com/ioistired/import-expression-parser"; - license = with lib.licenses; [ mit psfl ]; + license = with lib.licenses; [ + mit + psfl + ]; mainProgram = "import-expression"; maintainers = with lib.maintainers; [ lychee ]; }; diff --git a/pkgs/development/python-modules/importlab/default.nix b/pkgs/development/python-modules/importlab/default.nix index 65b2df8bef6a..289aef8e505b 100644 --- a/pkgs/development/python-modules/importlab/default.nix +++ b/pkgs/development/python-modules/importlab/default.nix @@ -1,9 +1,10 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, networkx -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + networkx, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/importlib-metadata/default.nix b/pkgs/development/python-modules/importlib-metadata/default.nix index df3106aac420..c5de999be223 100644 --- a/pkgs/development/python-modules/importlib-metadata/default.nix +++ b/pkgs/development/python-modules/importlib-metadata/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, setuptools-scm -, typing-extensions -, toml -, zipp +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + setuptools-scm, + typing-extensions, + toml, + zipp, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -33,23 +34,24 @@ buildPythonPackage rec { propagatedBuildInputs = [ toml zipp - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # Cyclic dependencies due to pyflakefs doCheck = false; - pythonImportsCheck = [ - "importlib_metadata" - ]; + pythonImportsCheck = [ "importlib_metadata" ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Read metadata from Python packages"; homepage = "https://importlib-metadata.readthedocs.io/"; license = licenses.asl20; - maintainers = with maintainers; [ fab AndersonTorres ]; + maintainers = with maintainers; [ + fab + AndersonTorres + ]; }; } diff --git a/pkgs/development/python-modules/importlib-resources/default.nix b/pkgs/development/python-modules/importlib-resources/default.nix index 1f4b01a41992..43c9826aa1ba 100644 --- a/pkgs/development/python-modules/importlib-resources/default.nix +++ b/pkgs/development/python-modules/importlib-resources/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, importlib-metadata + # dependencies + importlib-metadata, -# Reverse dependency -, sage + # Reverse dependency + sage, -# tests -, jaraco-collections -, pytestCheckHook + # tests + jaraco-collections, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,20 +37,18 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - importlib-metadata - ]; + dependencies = [ importlib-metadata ]; nativeCheckInputs = [ pytestCheckHook jaraco-collections ]; - pythonImportsCheck = [ - "importlib_resources" - ]; + pythonImportsCheck = [ "importlib_resources" ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Read resources from Python packages"; diff --git a/pkgs/development/python-modules/importmagic/default.nix b/pkgs/development/python-modules/importmagic/default.nix index a94b10409419..a2d32b55808d 100644 --- a/pkgs/development/python-modules/importmagic/default.nix +++ b/pkgs/development/python-modules/importmagic/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = with maintainers; [ onny ]; }; - } diff --git a/pkgs/development/python-modules/imread/default.nix b/pkgs/development/python-modules/imread/default.nix index 8d2823356e32..d8a3c80a30b7 100644 --- a/pkgs/development/python-modules/imread/default.nix +++ b/pkgs/development/python-modules/imread/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pkg-config -, setuptools -, libjpeg -, libpng -, libtiff -, libwebp -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pkg-config, + setuptools, + libjpeg, + libpng, + libtiff, + libwebp, + numpy, }: buildPythonPackage rec { @@ -36,20 +37,17 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ # verbose build outputs needed to debug hard-to-reproduce hydra failures "-v" - "--pyargs" "imread" - ]; - - pythonImportsCheck = [ + "--pyargs" "imread" ]; + pythonImportsCheck = [ "imread" ]; + preCheck = '' cd $TMPDIR export HOME=$TMPDIR @@ -63,5 +61,4 @@ buildPythonPackage rec { license = licenses.mit; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/imutils/default.nix b/pkgs/development/python-modules/imutils/default.nix index 655fb82c8b79..e0ae10dbc16d 100644 --- a/pkgs/development/python-modules/imutils/default.nix +++ b/pkgs/development/python-modules/imutils/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, opencv4 +{ + lib, + buildPythonPackage, + fetchPypi, + opencv4, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/in-n-out/default.nix b/pkgs/development/python-modules/in-n-out/default.nix index f0fdb5d45fb8..3a5e3287b022 100644 --- a/pkgs/development/python-modules/in-n-out/default.nix +++ b/pkgs/development/python-modules/in-n-out/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, future -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, hatchling -, hatch-vcs -, toolz +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + future, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + hatchling, + hatch-vcs, + toolz, }: buildPythonPackage rec { @@ -30,18 +31,14 @@ buildPythonPackage rec { hatch-vcs ]; - propagatedBuildInputs = [ - future - ]; + propagatedBuildInputs = [ future ]; nativeCheckInputs = [ pytestCheckHook toolz ]; - pythonImportsCheck = [ - "in_n_out" - ]; + pythonImportsCheck = [ "in_n_out" ]; disabledTestPaths = lib.optionals (pythonAtLeast "3.11") [ # Fatal Python error diff --git a/pkgs/development/python-modules/in-place/default.nix b/pkgs/development/python-modules/in-place/default.nix index 324cd61537fe..69bdc2a16c7f 100644 --- a/pkgs/development/python-modules/in-place/default.nix +++ b/pkgs/development/python-modules/in-place/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pytestCheckHook -, pythonOlder -, setuptools +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { substituteInPlace tox.ini --replace "--cov=in_place --no-cov-on-fail" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/incomfort-client/default.nix b/pkgs/development/python-modules/incomfort-client/default.nix index 496c98488910..d0db1936ba06 100644 --- a/pkgs/development/python-modules/incomfort-client/default.nix +++ b/pkgs/development/python-modules/incomfort-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-kdPue3IfF85O+0dgvX+dN6S4WoQmjxdCfwfv83SnO8E="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ aioresponses pytest-asyncio ]; - pythonImportsCheck = [ - "incomfortclient" - ]; + pythonImportsCheck = [ "incomfortclient" ]; meta = with lib; { description = "Python module to poll Intergas boilers via a Lan2RF gateway"; diff --git a/pkgs/development/python-modules/incremental/default.nix b/pkgs/development/python-modules/incremental/default.nix index 3b10dff45ca0..9077ddae4b4b 100644 --- a/pkgs/development/python-modules/incremental/default.nix +++ b/pkgs/development/python-modules/incremental/default.nix @@ -1,45 +1,47 @@ -{ lib -, buildPythonPackage -, fetchPypi -, click -, twisted +{ + lib, + buildPythonPackage, + fetchPypi, + click, + twisted, }: -let incremental = buildPythonPackage rec { - pname = "incremental"; - version = "22.10.0"; - format = "setuptools"; +let + incremental = buildPythonPackage rec { + pname = "incremental"; + version = "22.10.0"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-kS/uteD34BiOb0IkHS9FAALhG7wJN8ZYZQRYVMJMC9A="; + src = fetchPypi { + inherit pname version; + hash = "sha256-kS/uteD34BiOb0IkHS9FAALhG7wJN8ZYZQRYVMJMC9A="; + }; + + propagatedBuildInputs = [ click ]; + + # escape infinite recursion with twisted + doCheck = false; + + nativeCheckInputs = [ twisted ]; + + checkPhase = '' + trial incremental + ''; + + passthru.tests = { + check = incremental.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + pythonImportsCheck = [ "incremental" ]; + + meta = with lib; { + homepage = "https://github.com/twisted/incremental"; + description = "Incremental is a small library that versions your Python projects"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; }; - - propagatedBuildInputs = [ - click - ]; - - # escape infinite recursion with twisted - doCheck = false; - - nativeCheckInputs = [ - twisted - ]; - - checkPhase = '' - trial incremental - ''; - - passthru.tests = { - check = incremental.overridePythonAttrs (_: { doCheck = true; }); - }; - - pythonImportsCheck = [ "incremental" ]; - - meta = with lib; { - homepage = "https://github.com/twisted/incremental"; - description = "Incremental is a small library that versions your Python projects"; - license = licenses.mit; - maintainers = with maintainers; [ ]; - }; -}; in incremental +in +incremental diff --git a/pkgs/development/python-modules/indexed-bzip2/default.nix b/pkgs/development/python-modules/indexed-bzip2/default.nix index d15e075e5d57..20205ebfc4a6 100644 --- a/pkgs/development/python-modules/indexed-bzip2/default.nix +++ b/pkgs/development/python-modules/indexed-bzip2/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-3HUiigZR91/nbOAMOuSHGcPtqkkEaj3VepyMhmKOHpI="; }; - nativeBuildInputs = [ cython setuptools ]; + nativeBuildInputs = [ + cython + setuptools + ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/indexed-gzip/default.nix b/pkgs/development/python-modules/indexed-gzip/default.nix index bfe9e894ce5f..8bab1b6c5f89 100644 --- a/pkgs/development/python-modules/indexed-gzip/default.nix +++ b/pkgs/development/python-modules/indexed-gzip/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, cython -, zlib +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + cython, + zlib, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { hash = "sha256-dryq1LLC+lVHj/i+m60ubGGItlX5/clCnwNGrexI92I="; }; - nativeBuildInputs = [ cython setuptools ]; + nativeBuildInputs = [ + cython + setuptools + ]; buildInputs = [ zlib ]; diff --git a/pkgs/development/python-modules/indexed-zstd/default.nix b/pkgs/development/python-modules/indexed-zstd/default.nix index e7980f88a9fd..a689a37fbbda 100644 --- a/pkgs/development/python-modules/indexed-zstd/default.nix +++ b/pkgs/development/python-modules/indexed-zstd/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, cython -, zstd +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + cython, + zstd, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { hash = "sha256-i3Q3j5Rh/OqxdSFbZeHEiYZN2zS9gWBYk2pifwzKOos="; }; - nativeBuildInputs = [ cython setuptools ]; + nativeBuildInputs = [ + cython + setuptools + ]; buildInputs = [ zstd.dev ]; diff --git a/pkgs/development/python-modules/infinity/default.nix b/pkgs/development/python-modules/infinity/default.nix index 8cf05e8111df..d86f1545d90b 100644 --- a/pkgs/development/python-modules/infinity/default.nix +++ b/pkgs/development/python-modules/infinity/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/inflect/default.nix b/pkgs/development/python-modules/inflect/default.nix index 35760249f742..45b0b844bdb9 100644 --- a/pkgs/development/python-modules/inflect/default.nix +++ b/pkgs/development/python-modules/inflect/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, more-itertools -, setuptools-scm -, pydantic -, pytestCheckHook -, typeguard +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + more-itertools, + setuptools-scm, + pydantic, + pytestCheckHook, + typeguard, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/inflection/default.nix b/pkgs/development/python-modules/inflection/default.nix index c09114e386e6..2b94703cee05 100644 --- a/pkgs/development/python-modules/inflection/default.nix +++ b/pkgs/development/python-modules/inflection/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } : +{ + lib, + fetchPypi, + buildPythonPackage, + isPy27, + pytest, +}: buildPythonPackage rec { pname = "inflection"; @@ -7,8 +13,8 @@ buildPythonPackage rec { disabled = isPy27; src = fetchPypi { - inherit pname version; - sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417"; + inherit pname version; + sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417"; }; nativeCheckInputs = [ pytest ]; @@ -16,10 +22,12 @@ buildPythonPackage rec { checkPhase = "pytest >/dev/null || pytest"; meta = { - homepage = "https://github.com/jpvanhal/inflection"; - description = "A port of Ruby on Rails inflector to Python"; - maintainers = with lib.maintainers; [ NikolaMandic ilya-kolpakov ]; - license = lib.licenses.mit; + homepage = "https://github.com/jpvanhal/inflection"; + description = "A port of Ruby on Rails inflector to Python"; + maintainers = with lib.maintainers; [ + NikolaMandic + ilya-kolpakov + ]; + license = lib.licenses.mit; }; } - diff --git a/pkgs/development/python-modules/inform/default.nix b/pkgs/development/python-modules/inform/default.nix index 1f57a9add043..400887dbd277 100644 --- a/pkgs/development/python-modules/inform/default.nix +++ b/pkgs/development/python-modules/inform/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, arrow -, six -, hypothesis -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + arrow, + six, + hypothesis, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-quJGgXMvVZGqZA6M/AjU/cjYeL0R2nuPDoL0Ji0Ow6I="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ arrow @@ -37,9 +36,7 @@ buildPythonPackage rec { hypothesis ]; - disabledTests = [ - "test_prostrate" - ]; + disabledTests = [ "test_prostrate" ]; meta = with lib; { description = "Print and logging utilities"; diff --git a/pkgs/development/python-modules/iniconfig/default.nix b/pkgs/development/python-modules/iniconfig/default.nix index b9c6e8e205fa..c8c59c79b98a 100644 --- a/pkgs/development/python-modules/iniconfig/default.nix +++ b/pkgs/development/python-modules/iniconfig/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, substituteAll -, fetchPypi -, hatch-vcs -, hatchling +{ + lib, + buildPythonPackage, + substituteAll, + fetchPypi, + hatch-vcs, + hatchling, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-LZHhNb9y0xpBCxfBbaYQqCy1X2sEd9GpAhNLJKRVuLM="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; patches = [ # Cannot use hatch-vcs, due to an inifinite recursion @@ -28,9 +27,7 @@ buildPythonPackage rec { }) ]; - pythonImportsCheck = [ - "iniconfig" - ]; + pythonImportsCheck = [ "iniconfig" ]; # Requires pytest, which in turn requires this package - causes infinite # recursion. See also: https://github.com/NixOS/nixpkgs/issues/63168 diff --git a/pkgs/development/python-modules/inifile/default.nix b/pkgs/development/python-modules/inifile/default.nix index c3b1edfb89d0..bc8491750649 100644 --- a/pkgs/development/python-modules/inifile/default.nix +++ b/pkgs/development/python-modules/inifile/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -15,9 +16,8 @@ buildPythonPackage rec { meta = with lib; { description = "A small INI library for Python"; - homepage = "https://github.com/mitsuhiko/python-inifile"; - license = licenses.bsd0; + homepage = "https://github.com/mitsuhiko/python-inifile"; + license = licenses.bsd0; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/iniparse/default.nix b/pkgs/development/python-modules/iniparse/default.nix index 16324612b2af..3d0c93c07e27 100644 --- a/pkgs/development/python-modules/iniparse/default.nix +++ b/pkgs/development/python-modules/iniparse/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, six +{ + lib, + buildPythonPackage, + fetchPypi, + python, + six, }: buildPythonPackage rec { @@ -30,5 +31,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ danbst ]; }; - } diff --git a/pkgs/development/python-modules/injector/default.nix b/pkgs/development/python-modules/injector/default.nix index 1f15e496f5cc..f5b6730ef3f4 100644 --- a/pkgs/development/python-modules/injector/default.nix +++ b/pkgs/development/python-modules/injector/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, typing-extensions -, pytestCheckHook -, pytest-cov +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + typing-extensions, + pytestCheckHook, + pytest-cov, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-5O4vJSXfYNTrUzmv5XuT9pSUndNSvTZTxfVwiAd+0ck="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/inkbird-ble/default.nix b/pkgs/development/python-modules/inkbird-ble/default.nix index fc5eb2d12ba4..7c8a962ec462 100644 --- a/pkgs/development/python-modules/inkbird-ble/default.nix +++ b/pkgs/development/python-modules/inkbird-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-re5HjPtssFkpcltCr0HEJmJyHbXJdkr2wDgaAHfy2Tk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -35,18 +34,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=inkbird_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "inkbird_ble" - ]; + pythonImportsCheck = [ "inkbird_ble" ]; meta = with lib; { description = "Library for Inkbird BLE devices"; diff --git a/pkgs/development/python-modules/inkex/default.nix b/pkgs/development/python-modules/inkex/default.nix index e6c1b5da2806..58602e0d415e 100644 --- a/pkgs/development/python-modules/inkex/default.nix +++ b/pkgs/development/python-modules/inkex/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, inkscape -, fetchFromGitLab -, poetry-core -, cssselect -, lxml -, numpy -, packaging -, pillow -, pygobject3 -, pyparsing -, pyserial -, scour -, gobject-introspection -, pytestCheckHook -, gtk3 +{ + lib, + buildPythonPackage, + inkscape, + fetchFromGitLab, + poetry-core, + cssselect, + lxml, + numpy, + packaging, + pillow, + pygobject3, + pyparsing, + pyserial, + scour, + gobject-introspection, + pytestCheckHook, + gtk3, }: buildPythonPackage { @@ -25,9 +26,7 @@ buildPythonPackage { inherit (inkscape) src; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ cssselect diff --git a/pkgs/development/python-modules/inlinestyler/default.nix b/pkgs/development/python-modules/inlinestyler/default.nix index 88e0e3e5469e..1d27acdfea0a 100644 --- a/pkgs/development/python-modules/inlinestyler/default.nix +++ b/pkgs/development/python-modules/inlinestyler/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, -# build system -, setuptools + # build system + setuptools, -# dependencies -, cssutils -, lxml -, requests + # dependencies + cssutils, + lxml, + requests, -# tests -, ipdb -, pytestCheckHook + # tests + ipdb, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cssutils @@ -46,9 +45,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "inlinestyler" - ]; + pythonImportsCheck = [ "inlinestyler" ]; nativeCheckInputs = [ ipdb diff --git a/pkgs/development/python-modules/inotify-simple/default.nix b/pkgs/development/python-modules/inotify-simple/default.nix index 2d2100ddf705..0b41c76d141b 100644 --- a/pkgs/development/python-modules/inotify-simple/default.nix +++ b/pkgs/development/python-modules/inotify-simple/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "inotify-simple"; diff --git a/pkgs/development/python-modules/inotify/default.nix b/pkgs/development/python-modules/inotify/default.nix index 04ca13d5ec4f..6e8e7f0aba67 100644 --- a/pkgs/development/python-modules/inotify/default.nix +++ b/pkgs/development/python-modules/inotify/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { fetchSubmodules = false; }; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; # dunno what's wrong but the module works regardless doCheck = false; diff --git a/pkgs/development/python-modules/inotifyrecursive/default.nix b/pkgs/development/python-modules/inotifyrecursive/default.nix index 63ff4ede039a..678e45c14d20 100644 --- a/pkgs/development/python-modules/inotifyrecursive/default.nix +++ b/pkgs/development/python-modules/inotifyrecursive/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, inotify-simple +{ + lib, + buildPythonPackage, + fetchPypi, + inotify-simple, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/inquirer/default.nix b/pkgs/development/python-modules/inquirer/default.nix index ff73187938f2..5daa97ee5f40 100644 --- a/pkgs/development/python-modules/inquirer/default.nix +++ b/pkgs/development/python-modules/inquirer/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# native -, poetry-core + # native + poetry-core, -# propagated -, blessed -, editor -, readchar + # propagated + blessed, + editor, + readchar, -# tests -, pytest-mock -, pytestCheckHook -, pexpect + # tests + pytest-mock, + pytestCheckHook, + pexpect, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-LsZ2SYgBOKZegk7b9DwForwMA49XvIe+Z6WvI1/YscY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ blessed @@ -47,10 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - - pythonImportsCheck = [ - "inquirer" - ]; + pythonImportsCheck = [ "inquirer" ]; meta = with lib; { description = "A collection of common interactive command line user interfaces, based on Inquirer.js"; diff --git a/pkgs/development/python-modules/inquirerpy/default.nix b/pkgs/development/python-modules/inquirerpy/default.nix index 37d08f41512f..315670df3f75 100644 --- a/pkgs/development/python-modules/inquirerpy/default.nix +++ b/pkgs/development/python-modules/inquirerpy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pfzy -, poetry-core -, prompt-toolkit -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pfzy, + poetry-core, + prompt-toolkit, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pfzy prompt-toolkit ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "InquirerPy" - ]; + pythonImportsCheck = [ "InquirerPy" ]; disabledTestPaths = [ # AttributeError: '_GeneratorContextManager' object has no attribute 'close' diff --git a/pkgs/development/python-modules/inscriptis/default.nix b/pkgs/development/python-modules/inscriptis/default.nix index 454106d28b56..5de7c6e10b1c 100644 --- a/pkgs/development/python-modules/inscriptis/default.nix +++ b/pkgs/development/python-modules/inscriptis/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, lxml -, fastapi -, httpx -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + lxml, + fastapi, + httpx, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-9KEkXcdZ7USXfyIXGDrp4p4kJTzF2q30fvOccxF1hBU="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; propagatedBuildInputs = [ lxml @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "inscriptis" - ]; + pythonImportsCheck = [ "inscriptis" ]; meta = with lib; { description = "HTML to text converter"; diff --git a/pkgs/development/python-modules/insegel/default.nix b/pkgs/development/python-modules/insegel/default.nix index 9fb9d9296ec2..774c06ffd590 100644 --- a/pkgs/development/python-modules/insegel/default.nix +++ b/pkgs/development/python-modules/insegel/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pygments }: +{ + lib, + buildPythonPackage, + fetchPypi, + pygments, +}: buildPythonPackage rec { pname = "insegel"; @@ -15,9 +20,7 @@ buildPythonPackage rec { # No tests included doCheck = false; - pythonImportsCheck = [ - "insegel" - ]; + pythonImportsCheck = [ "insegel" ]; meta = with lib; { homepage = "https://github.com/autophagy/insegel"; diff --git a/pkgs/development/python-modules/insightface/default.nix b/pkgs/development/python-modules/insightface/default.nix index 35d434de760f..1403f094807a 100644 --- a/pkgs/development/python-modules/insightface/default.nix +++ b/pkgs/development/python-modules/insightface/default.nix @@ -1,23 +1,24 @@ -{ lib -, albumentations -, buildPythonPackage -, cython -, easydict -, fetchPypi -, insightface -, matplotlib -, mxnet -, numpy -, onnx -, onnxruntime -, opencv4 -, prettytable -, pythonOlder -, scikit-image -, scikit-learn -, tensorboard -, testers -, tqdm +{ + lib, + albumentations, + buildPythonPackage, + cython, + easydict, + fetchPypi, + insightface, + matplotlib, + mxnet, + numpy, + onnx, + onnxruntime, + opencv4, + prettytable, + pythonOlder, + scikit-image, + scikit-learn, + tensorboard, + testers, + tqdm, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-8ZH3GWEuuzcBj0GTaBRQBUTND4bm/NZ2wCPzVMZo3fc="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ easydict diff --git a/pkgs/development/python-modules/installer/default.nix b/pkgs/development/python-modules/installer/default.nix index c26dae01c237..83a23d963a96 100644 --- a/pkgs/development/python-modules/installer/default.nix +++ b/pkgs/development/python-modules/installer/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchFromGitHub -, pytestCheckHook -, flit-core -, installer -, mock +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchFromGitHub, + pytestCheckHook, + flit-core, + installer, + mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/insteon-frontend-home-assistant/default.nix b/pkgs/development/python-modules/insteon-frontend-home-assistant/default.nix index 7c8536e1466a..29420769833e 100644 --- a/pkgs/development/python-modules/insteon-frontend-home-assistant/default.nix +++ b/pkgs/development/python-modules/insteon-frontend-home-assistant/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-NZwnx8tlXnsVCk4nvNjOg3cjSr2CnjqWcZG7xFTC2wA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "insteon_frontend" - ]; + pythonImportsCheck = [ "insteon_frontend" ]; meta = with lib; { changelog = "https://github.com/pyinsteon/insteon-panel/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/intake-parquet/default.nix b/pkgs/development/python-modules/intake-parquet/default.nix index 809d9efcc7ca..a1b241f92ce4 100644 --- a/pkgs/development/python-modules/intake-parquet/default.nix +++ b/pkgs/development/python-modules/intake-parquet/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pandas -, dask -, fastparquet -, pyarrow -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pandas, + dask, + fastparquet, + pyarrow, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace-fail "intake" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pandas diff --git a/pkgs/development/python-modules/intake/default.nix b/pkgs/development/python-modules/intake/default.nix index b15e90cda27f..0951b6218b0b 100644 --- a/pkgs/development/python-modules/intake/default.nix +++ b/pkgs/development/python-modules/intake/default.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, appdirs -, bokeh -, buildPythonPackage -, dask -, entrypoints -, fetchFromGitHub -, fsspec -, hvplot -, intake-parquet -, jinja2 -, msgpack -, msgpack-numpy -, pandas -, panel -, pyarrow -, pytestCheckHook -, python-snappy -, pythonOlder -, pyyaml -, requests -, setuptools -, setuptools-scm -, tornado +{ + lib, + stdenv, + appdirs, + bokeh, + buildPythonPackage, + dask, + entrypoints, + fetchFromGitHub, + fsspec, + hvplot, + intake-parquet, + jinja2, + msgpack, + msgpack-numpy, + pandas, + panel, + pyarrow, + pytestCheckHook, + python-snappy, + pythonOlder, + pyyaml, + requests, + setuptools, + setuptools-scm, + tornado, }: buildPythonPackage rec { @@ -75,9 +76,7 @@ buildPythonPackage rec { bokeh panel ]; - remote = [ - requests - ]; + remote = [ requests ]; }; __darwinAllowLocalNetworking = true; @@ -101,36 +100,37 @@ buildPythonPackage rec { "intake/tests/test_top_level.py" ]; - disabledTests = [ - # Disable tests which touch network - "http" - "test_address_flag" - "test_dir" - "test_discover" - "test_filtered_compressed_cache" - "test_flatten_flag" - "test_get_dir" - "test_pagination" - "test_port_flag" - "test_read_part_compressed" - "test_read_partition" - "test_read_pattern" - "test_remote_arr" - "test_remote_cat" - "test_remote_env" - # ValueError - "test_datasource_python_to_dask" - "test_catalog_passthrough" - # Timing-based, flaky on darwin and possibly others - "test_idle_timer" - ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [ - # Flaky with older low-res mtime on darwin < 10.13 (#143987) - "test_second_load_timestamp" - ]; + disabledTests = + [ + # Disable tests which touch network + "http" + "test_address_flag" + "test_dir" + "test_discover" + "test_filtered_compressed_cache" + "test_flatten_flag" + "test_get_dir" + "test_pagination" + "test_port_flag" + "test_read_part_compressed" + "test_read_partition" + "test_read_pattern" + "test_remote_arr" + "test_remote_cat" + "test_remote_env" + # ValueError + "test_datasource_python_to_dask" + "test_catalog_passthrough" + # Timing-based, flaky on darwin and possibly others + "test_idle_timer" + ] + ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") + [ + # Flaky with older low-res mtime on darwin < 10.13 (#143987) + "test_second_load_timestamp" + ]; - pythonImportsCheck = [ - "intake" - ]; + pythonImportsCheck = [ "intake" ]; meta = with lib; { description = "Data load and catalog system"; diff --git a/pkgs/development/python-modules/intbitset/default.nix b/pkgs/development/python-modules/intbitset/default.nix index b3e2294f1a7e..09417bc2cc9f 100644 --- a/pkgs/development/python-modules/intbitset/default.nix +++ b/pkgs/development/python-modules/intbitset/default.nix @@ -4,7 +4,7 @@ buildPythonPackage, pytestCheckHook, pythonOlder, - setuptools + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/intelhex/default.nix b/pkgs/development/python-modules/intelhex/default.nix index 4e25fa8793b1..7cb117943ed7 100644 --- a/pkgs/development/python-modules/intelhex/default.nix +++ b/pkgs/development/python-modules/intelhex/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/intellifire4py/default.nix b/pkgs/development/python-modules/intellifire4py/default.nix index ccfd6afe3125..5984654c7be3 100644 --- a/pkgs/development/python-modules/intellifire4py/default.nix +++ b/pkgs/development/python-modules/intellifire4py/default.nix @@ -1,16 +1,17 @@ -{ lib -, aenum -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, aioresponses -, poetry-core -, pydantic -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, pythonOlder -, rich +{ + lib, + aenum, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + aioresponses, + poetry-core, + pydantic, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + pythonOlder, + rich, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-dMhm2gntLV7ev6UIfHFMATytZo5blTlALuh9sBirkqI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "intellifire4py" - ]; + pythonImportsCheck = [ "intellifire4py" ]; meta = with lib; { description = "Module to read Intellifire fireplace status data"; diff --git a/pkgs/development/python-modules/intensity-normalization/default.nix b/pkgs/development/python-modules/intensity-normalization/default.nix index 19253b17fe66..a6f697ef8c28 100644 --- a/pkgs/development/python-modules/intensity-normalization/default.nix +++ b/pkgs/development/python-modules/intensity-normalization/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook -, pythonRelaxDepsHook -, matplotlib -, nibabel -, numpy -, pydicom -, pymedio -, scikit-fuzzy -, scikit-image -, scikit-learn -, scipy -, simpleitk -, statsmodels +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + pythonRelaxDepsHook, + matplotlib, + nibabel, + numpy, + pydicom, + pymedio, + scikit-fuzzy, + scikit-image, + scikit-learn, + scipy, + simpleitk, + statsmodels, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { statsmodels ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests" ]; pythonImportsCheck = [ @@ -64,7 +63,6 @@ buildPythonPackage rec { "intensity_normalization.util" ]; - meta = with lib; { homepage = "https://github.com/jcreinhold/intensity-normalization"; description = "MRI intensity normalization tools"; diff --git a/pkgs/development/python-modules/interegular/default.nix b/pkgs/development/python-modules/interegular/default.nix index e1f0fc79c091..6a005fd87ca4 100644 --- a/pkgs/development/python-modules/interegular/default.nix +++ b/pkgs/development/python-modules/interegular/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -11,9 +12,7 @@ buildPythonPackage rec { hash = "sha256-2baXshs0iEcROZug8DdpFLgYmc5nADJIbQ0Eg0SnZgA="; }; - pythonImportsCheck = [ - "interegular" - ]; + pythonImportsCheck = [ "interegular" ]; meta = with lib; { description = "A library to check a subset of python regexes for intersections"; diff --git a/pkgs/development/python-modules/interface-meta/default.nix b/pkgs/development/python-modules/interface-meta/default.nix index 04daece781e5..34754618b5a5 100644 --- a/pkgs/development/python-modules/interface-meta/default.nix +++ b/pkgs/development/python-modules/interface-meta/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, poetry-core, poetry-dynamic-versioning }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + poetry-core, + poetry-dynamic-versioning, +}: buildPythonPackage rec { pname = "interface-meta"; @@ -13,17 +20,11 @@ buildPythonPackage rec { sha256 = "0rzh11wnab33b11391vc2ynf8ncxn22b12wn46lmgkrc5mqza8hd"; }; - patches = [ - ./0001-fix-version.patch - ]; + patches = [ ./0001-fix-version.patch ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - poetry-dynamic-versioning - ]; + propagatedBuildInputs = [ poetry-dynamic-versioning ]; pythonImportsCheck = [ "interface_meta" ]; diff --git a/pkgs/development/python-modules/internetarchive/default.nix b/pkgs/development/python-modules/internetarchive/default.nix index 5beb0cc44e1a..ec98b859147b 100644 --- a/pkgs/development/python-modules/internetarchive/default.nix +++ b/pkgs/development/python-modules/internetarchive/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, pytestCheckHook -, requests -, jsonpatch -, schema -, responses -, setuptools -, tqdm -, urllib3 -, pythonOlder -, importlib-metadata +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + pytestCheckHook, + requests, + jsonpatch, + schema, + responses, + setuptools, + tqdm, + urllib3, + pythonOlder, + importlib-metadata, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-CqfwAKhrq4VEBU258x19JT8+ay2vOYIzVoFWjAzh3wY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ tqdm @@ -39,9 +38,7 @@ buildPythonPackage rec { jsonpatch schema urllib3 - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ responses @@ -64,9 +61,7 @@ buildPythonPackage rec { "tests/cli/test_ia_download.py" ]; - pythonImportsCheck = [ - "internetarchive" - ]; + pythonImportsCheck = [ "internetarchive" ]; meta = with lib; { description = "A Python and Command-Line Interface to Archive.org"; diff --git a/pkgs/development/python-modules/interruptingcow/default.nix b/pkgs/development/python-modules/interruptingcow/default.nix index 41744b690fd9..a42b7bbc8917 100644 --- a/pkgs/development/python-modules/interruptingcow/default.nix +++ b/pkgs/development/python-modules/interruptingcow/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "interruptingcow"; version = "0.8"; diff --git a/pkgs/development/python-modules/intervaltree/default.nix b/pkgs/development/python-modules/intervaltree/default.nix index 8e80be209b23..a611124c5a5e 100644 --- a/pkgs/development/python-modules/intervaltree/default.nix +++ b/pkgs/development/python-modules/intervaltree/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, python, pytest, sortedcontainers }: +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pytest, + sortedcontainers, +}: buildPythonPackage rec { version = "3.1.0"; @@ -24,8 +30,8 @@ buildPythonPackage rec { meta = with lib; { description = "Editable interval tree data structure for Python 2 and 3"; - homepage = "https://github.com/chaimleib/intervaltree"; + homepage = "https://github.com/chaimleib/intervaltree"; license = [ licenses.asl20 ]; - maintainers = [ maintainers.bennofs ]; + maintainers = [ maintainers.bennofs ]; }; } diff --git a/pkgs/development/python-modules/into-dbus-python/default.nix b/pkgs/development/python-modules/into-dbus-python/default.nix index b7ea90b26f9d..4644453741e7 100644 --- a/pkgs/development/python-modules/into-dbus-python/default.nix +++ b/pkgs/development/python-modules/into-dbus-python/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, dbus-signature-pyparsing -, dbus-python -, pytestCheckHook -, hypothesis -, hs-dbus-signature +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dbus-signature-pyparsing, + dbus-python, + pytestCheckHook, + hypothesis, + hs-dbus-signature, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/invisible-watermark/default.nix b/pkgs/development/python-modules/invisible-watermark/default.nix index a69a0f8f85f6..73f958a2503a 100644 --- a/pkgs/development/python-modules/invisible-watermark/default.nix +++ b/pkgs/development/python-modules/invisible-watermark/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, opencv4 -, torch -, onnx -, onnxruntime -, pillow -, pywavelets -, numpy -, callPackage -, withOnnx ? false # Enables the rivaGan en- and decoding method +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + opencv4, + torch, + onnx, + onnxruntime, + pillow, + pywavelets, + numpy, + callPackage, + withOnnx ? false, # Enables the rivaGan en- and decoding method }: buildPythonPackage rec { @@ -27,16 +28,18 @@ buildPythonPackage rec { hash = "sha256-6SjVpKFtiiLLU7tZ3hBQr0KT/YEQyywJj0e21/dJRzk="; }; - propagatedBuildInputs = [ - opencv4 - torch - pillow - pywavelets - numpy - ] ++ lib.optionals withOnnx [ - onnx - onnxruntime - ]; + propagatedBuildInputs = + [ + opencv4 + torch + pillow + pywavelets + numpy + ] + ++ lib.optionals withOnnx [ + onnx + onnxruntime + ]; postPatch = '' substituteInPlace setup.py \ @@ -46,24 +49,47 @@ buildPythonPackage rec { 'You can install it with an override: `python3Packages.invisible-watermark.override { withOnnx = true; };`.' ''; - passthru.tests = let - image = "${src}/test_vectors/original.jpg"; - methods = [ "dwtDct" "dwtDctSvd" "rivaGan" ]; - testCases = builtins.concatMap (method: [ - { method = method; withOnnx = true; } - { method = method; withOnnx = false; } - ]) methods; - createTest = { method, withOnnx }: let - testName = "${if withOnnx then "withOnnx" else "withoutOnnx"}-${method}"; - # This test fails in the sandbox on aarch64-linux, see https://github.com/microsoft/onnxruntime/issues/10038 - skipTest = stdenv.isLinux && stdenv.isAarch64 && withOnnx && method == "rivaGan"; - in lib.optionalAttrs (!skipTest) { - "${testName}" = callPackage ./tests/cli.nix { inherit image method testName withOnnx; }; + passthru.tests = + let + image = "${src}/test_vectors/original.jpg"; + methods = [ + "dwtDct" + "dwtDctSvd" + "rivaGan" + ]; + testCases = builtins.concatMap (method: [ + { + method = method; + withOnnx = true; + } + { + method = method; + withOnnx = false; + } + ]) methods; + createTest = + { method, withOnnx }: + let + testName = "${if withOnnx then "withOnnx" else "withoutOnnx"}-${method}"; + # This test fails in the sandbox on aarch64-linux, see https://github.com/microsoft/onnxruntime/issues/10038 + skipTest = stdenv.isLinux && stdenv.isAarch64 && withOnnx && method == "rivaGan"; + in + lib.optionalAttrs (!skipTest) { + "${testName}" = callPackage ./tests/cli.nix { + inherit + image + method + testName + withOnnx + ; + }; + }; + allTests = builtins.map createTest testCases; + in + (lib.attrsets.mergeAttrsList allTests) + // { + python = callPackage ./tests/python { inherit image; }; }; - allTests = builtins.map createTest testCases; - in (lib.attrsets.mergeAttrsList allTests) // { - python = callPackage ./tests/python { inherit image; }; - }; pythonImportsCheck = [ "imwatermark" ]; diff --git a/pkgs/development/python-modules/invisible-watermark/tests/cli.nix b/pkgs/development/python-modules/invisible-watermark/tests/cli.nix index 9cb936465786..89de1174384a 100644 --- a/pkgs/development/python-modules/invisible-watermark/tests/cli.nix +++ b/pkgs/development/python-modules/invisible-watermark/tests/cli.nix @@ -1,9 +1,10 @@ -{ image -, method -, python3Packages -, runCommand -, testName -, withOnnx +{ + image, + method, + python3Packages, + runCommand, + testName, + withOnnx, }: # This file runs one test case. @@ -18,47 +19,49 @@ # if the message was decoded correctly. let - message = if method == "rivaGan" then - "asdf" # rivaGan only supports 32 bits - else - "fnörd1"; + message = + if method == "rivaGan" then + "asdf" # rivaGan only supports 32 bits + else + "fnörd1"; length = (builtins.stringLength message) * 8; invisible-watermark' = python3Packages.invisible-watermark.override { inherit withOnnx; }; expected-exit-code = if method == "rivaGan" && !withOnnx then "1" else "0"; in -runCommand "invisible-watermark-test-${testName}" { nativeBuildInputs = [ invisible-watermark' ]; } '' - set +e - invisible-watermark \ - --verbose \ - --action encode \ - --type bytes \ - --method '${method}' \ - --watermark '${message}' \ - --output output.png \ - '${image}' - exit_code="$?" - set -euf -o pipefail - if [ "$exit_code" != '${expected-exit-code}' ]; then - echo "Exit code of invisible-watermark was $exit_code while ${expected-exit-code} was expected." - exit 1 - fi - if [ '${expected-exit-code}' == '1' ]; then - echo 'invisible-watermark failed as expected.' - touch "$out" - exit 0 - fi - decoded_message="$(invisible-watermark \ - --action decode \ - --type bytes \ - --method '${method}' \ - --length '${toString length}' \ - output.png \ - )" +runCommand "invisible-watermark-test-${testName}" { nativeBuildInputs = [ invisible-watermark' ]; } + '' + set +e + invisible-watermark \ + --verbose \ + --action encode \ + --type bytes \ + --method '${method}' \ + --watermark '${message}' \ + --output output.png \ + '${image}' + exit_code="$?" + set -euf -o pipefail + if [ "$exit_code" != '${expected-exit-code}' ]; then + echo "Exit code of invisible-watermark was $exit_code while ${expected-exit-code} was expected." + exit 1 + fi + if [ '${expected-exit-code}' == '1' ]; then + echo 'invisible-watermark failed as expected.' + touch "$out" + exit 0 + fi + decoded_message="$(invisible-watermark \ + --action decode \ + --type bytes \ + --method '${method}' \ + --length '${toString length}' \ + output.png \ + )" - if [ '${message}' != "$decoded_message" ]; then - echo "invisible-watermark did not decode the watermark correctly." - echo "The original message was ${message} but the decoded message was $decoded_message." - exit 1 - fi - touch "$out" -'' + if [ '${message}' != "$decoded_message" ]; then + echo "invisible-watermark did not decode the watermark correctly." + echo "The original message was ${message} but the decoded message was $decoded_message." + exit 1 + fi + touch "$out" + '' diff --git a/pkgs/development/python-modules/invisible-watermark/tests/python/default.nix b/pkgs/development/python-modules/invisible-watermark/tests/python/default.nix index 63db58867371..e713f9bfe20c 100644 --- a/pkgs/development/python-modules/invisible-watermark/tests/python/default.nix +++ b/pkgs/development/python-modules/invisible-watermark/tests/python/default.nix @@ -1,9 +1,10 @@ -{ image -, invisible-watermark -, opencv4 -, python3 -, runCommand -, stdenvNoCC +{ + image, + invisible-watermark, + opencv4, + python3, + runCommand, + stdenvNoCC, }: # This test checks if the python code shown in the README works correctly @@ -12,7 +13,12 @@ let message = "fnörd1"; method = "dwtDct"; - pythonWithPackages = python3.withPackages (pp: with pp; [ invisible-watermark opencv4 ]); + pythonWithPackages = python3.withPackages ( + pp: with pp; [ + invisible-watermark + opencv4 + ] + ); pythonInterpreter = pythonWithPackages.interpreter; encode = stdenvNoCC.mkDerivation { diff --git a/pkgs/development/python-modules/invocations/default.nix b/pkgs/development/python-modules/invocations/default.nix index 828c089d2931..17828c47ae46 100644 --- a/pkgs/development/python-modules/invocations/default.nix +++ b/pkgs/development/python-modules/invocations/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, blessings -, fetchFromGitHub -, invoke -, pythonOlder -, releases -, semantic-version -, tabulate -, tqdm -, twine +{ + lib, + buildPythonPackage, + blessings, + fetchFromGitHub, + invoke, + pythonOlder, + releases, + semantic-version, + tabulate, + tqdm, + twine, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # There's an error loading the test suite. See https://github.com/pyinvoke/invocations/issues/29. doCheck = false; - pythonImportsCheck = [ - "invocations" - ]; + pythonImportsCheck = [ "invocations" ]; meta = with lib; { description = "Common/best-practice Invoke tasks and collections"; diff --git a/pkgs/development/python-modules/invoke/default.nix b/pkgs/development/python-modules/invoke/default.nix index bf23cfbbcdd5..5ac98f31c553 100644 --- a/pkgs/development/python-modules/invoke/default.nix +++ b/pkgs/development/python-modules/invoke/default.nix @@ -1,8 +1,9 @@ -{ lib -, bash -, buildPythonPackage -, fetchPypi -, stdenv +{ + lib, + bash, + buildPythonPackage, + fetchPypi, + stdenv, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { # errors with vendored libs doCheck = false; - pythonImportsCheck = [ - "invoke" - ]; + pythonImportsCheck = [ "invoke" ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' mkdir -p $out/share/{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions} diff --git a/pkgs/development/python-modules/iocapture/default.nix b/pkgs/development/python-modules/iocapture/default.nix index b47c18874a92..3263f2ef4891 100644 --- a/pkgs/development/python-modules/iocapture/default.nix +++ b/pkgs/development/python-modules/iocapture/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flexmock -, pytest -, pytest-cov -, six +{ + lib, + buildPythonPackage, + fetchPypi, + flexmock, + pytest, + pytest-cov, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/iocextract/default.nix b/pkgs/development/python-modules/iocextract/default.nix index fd00ff991f00..97d587195ab0 100644 --- a/pkgs/development/python-modules/iocextract/default.nix +++ b/pkgs/development/python-modules/iocextract/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, regex -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + regex, + requests, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "iocextract" - ]; + pythonImportsCheck = [ "iocextract" ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; disabledTests = [ # AssertionError: 'http://exampledotcom/test' != 'http://example.com/test' diff --git a/pkgs/development/python-modules/iocsearcher/default.nix b/pkgs/development/python-modules/iocsearcher/default.nix index a485e3df6219..be8c0cef7007 100644 --- a/pkgs/development/python-modules/iocsearcher/default.nix +++ b/pkgs/development/python-modules/iocsearcher/default.nix @@ -1,22 +1,23 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, base58 -, bech32 -, cashaddress -, cbor -, eth-hash -, intervaltree -, langdetect -, lxml -, pdfminer-six -, phonenumbers -, python-magic -, readabilipy -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + base58, + bech32, + cashaddress, + cbor, + eth-hash, + intervaltree, + langdetect, + lxml, + pdfminer-six, + phonenumbers, + python-magic, + readabilipy, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-SYh0+JEZa95iBznNzXut/9Vwof6VFeSlt0/g+XmMPC0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ base58 @@ -56,9 +55,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "iocsearcher" - ]; + pythonImportsCheck = [ "iocsearcher" ]; meta = with lib; { description = "Library and command line tool for extracting indicators of compromise (IOCs)"; diff --git a/pkgs/development/python-modules/iodata/default.nix b/pkgs/development/python-modules/iodata/default.nix index 50a6a87eac86..af27d8494d06 100644 --- a/pkgs/development/python-modules/iodata/default.nix +++ b/pkgs/development/python-modules/iodata/default.nix @@ -1,4 +1,13 @@ -{ buildPythonPackage, lib, fetchFromGitHub, numpy, scipy, attrs, cython, nose }: +{ + buildPythonPackage, + lib, + fetchFromGitHub, + numpy, + scipy, + attrs, + cython, + nose, +}: buildPythonPackage rec { pname = "iodata"; @@ -12,8 +21,15 @@ buildPythonPackage rec { hash = "sha256-GFTCYE19Re7WLhV8eU+0i8OMp/Tsms/Xj9DRTcgjcz4="; }; - nativeBuildInputs = [ cython nose ]; - propagatedBuildInputs = [ numpy scipy attrs ]; + nativeBuildInputs = [ + cython + nose + ]; + propagatedBuildInputs = [ + numpy + scipy + attrs + ]; pythonImportsCheck = [ "iodata" ]; doCheck = false; # Requires roberto or nose and a lenghtly setup to find the cython modules diff --git a/pkgs/development/python-modules/ionhash/default.nix b/pkgs/development/python-modules/ionhash/default.nix index 0eca4e663331..5ccb6a652904 100644 --- a/pkgs/development/python-modules/ionhash/default.nix +++ b/pkgs/development/python-modules/ionhash/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, amazon-ion, six, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + amazon-ion, + six, + pytestCheckHook, +}: buildPythonPackage rec { pname = "ionhash"; @@ -24,7 +32,10 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "'pytest-runner'," "" ''; - propagatedBuildInputs = [ amazon-ion six ]; + propagatedBuildInputs = [ + amazon-ion + six + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/ionoscloud/default.nix b/pkgs/development/python-modules/ionoscloud/default.nix index 02e01f194c39..901c4289cca7 100644 --- a/pkgs/development/python-modules/ionoscloud/default.nix +++ b/pkgs/development/python-modules/ionoscloud/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, urllib3 -, six -, certifi -, python-dateutil -, asn1crypto +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + urllib3, + six, + certifi, + python-dateutil, + asn1crypto, }: buildPythonPackage rec { @@ -16,19 +17,23 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash= "sha256-IpDhuZ8KrqT8g3UKgdEmjzKRlK1SXq1fgrTDFy/fvpU="; + hash = "sha256-IpDhuZ8KrqT8g3UKgdEmjzKRlK1SXq1fgrTDFy/fvpU="; }; nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ urllib3 six certifi python-dateutil asn1crypto ]; + propagatedBuildInputs = [ + urllib3 + six + certifi + python-dateutil + asn1crypto + ]; # upstream only has codecoverage tests, but no actual tests to go with them doCheck = false; - pythonImportsCheck = [ - "ionoscloud" - ]; + pythonImportsCheck = [ "ionoscloud" ]; meta = with lib; { homepage = "https://github.com/ionos-cloud/sdk-python"; diff --git a/pkgs/development/python-modules/iopath/default.nix b/pkgs/development/python-modules/iopath/default.nix index 0a85de0fc9ec..a5f6d75c9e93 100644 --- a/pkgs/development/python-modules/iopath/default.nix +++ b/pkgs/development/python-modules/iopath/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, tqdm -, portalocker -, boto3 -# check inputs -, pytestCheckHook -, torch +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + tqdm, + portalocker, + boto3, + # check inputs + pytestCheckHook, + torch, }: let pname = "iopath"; @@ -50,9 +51,7 @@ buildPythonPackage { "tests/async_writes_test.py" ]; - pythonImportsCheck = [ - "iopath" - ]; + pythonImportsCheck = [ "iopath" ]; passthru.optional-dependencies = { aws = [ boto3 ]; diff --git a/pkgs/development/python-modules/iotawattpy/default.nix b/pkgs/development/python-modules/iotawattpy/default.nix index 7eca486eea0b..d7a4be359467 100644 --- a/pkgs/development/python-modules/iotawattpy/default.nix +++ b/pkgs/development/python-modules/iotawattpy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, httpx -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + httpx, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "1pyxm87lvd6zy0rx7r9jivk2li267r3xr0b9p6vf0v0vp9fmgsw3"; }; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; # Project doesn't tag releases or ship the tests with PyPI # https://github.com/gtdiehl/iotawattpy/issues/14 diff --git a/pkgs/development/python-modules/ipaddr/default.nix b/pkgs/development/python-modules/ipaddr/default.nix index 959d5c878f07..f42decd345b3 100644 --- a/pkgs/development/python-modules/ipaddr/default.nix +++ b/pkgs/development/python-modules/ipaddr/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "ipaddr"; diff --git a/pkgs/development/python-modules/ipadic/default.nix b/pkgs/development/python-modules/ipadic/default.nix index bb7724a50576..2702f6888c40 100644 --- a/pkgs/development/python-modules/ipadic/default.nix +++ b/pkgs/development/python-modules/ipadic/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, mecab -, setuptools-scm -, cython +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + mecab, + setuptools-scm, + cython, }: buildPythonPackage rec { @@ -23,7 +24,11 @@ buildPythonPackage rec { # no tests doCheck = false; - nativeBuildInputs = [ cython mecab setuptools-scm ]; + nativeBuildInputs = [ + cython + mecab + setuptools-scm + ]; pythonImportsCheck = [ "ipadic" ]; diff --git a/pkgs/development/python-modules/ipdb/default.nix b/pkgs/development/python-modules/ipdb/default.nix index 96a4274bac1e..84123590fe1b 100644 --- a/pkgs/development/python-modules/ipdb/default.nix +++ b/pkgs/development/python-modules/ipdb/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, decorator -, ipython -, isPyPy -, exceptiongroup -, tomli -, setuptools -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + decorator, + ipython, + isPyPy, + exceptiongroup, + tomli, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { @@ -16,28 +17,26 @@ buildPythonPackage rec { version = "0.13.13"; format = "pyproject"; - disabled = isPyPy; # setupterm: could not find terminfo database + disabled = isPyPy; # setupterm: could not find terminfo database src = fetchPypi { inherit pname version; hash = "sha256-46xgGO8FEm1EKvaAqthjAG7BnQIpBWGsiLixwLDPxyY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - ipython - decorator - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - tomli - ]; + propagatedBuildInputs = + [ + ipython + decorator + ] + ++ lib.optionals (pythonOlder "3.11") [ + exceptiongroup + tomli + ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) @@ -50,5 +49,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/ipfshttpclient/default.nix b/pkgs/development/python-modules/ipfshttpclient/default.nix index 1ac7fdd3cf75..649e3d9b7776 100644 --- a/pkgs/development/python-modules/ipfshttpclient/default.nix +++ b/pkgs/development/python-modules/ipfshttpclient/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pythonOlder -, python -, py-multiaddr -, requests -, pytestCheckHook -, pytest-cov -, pytest-dependency -, pytest-localserver -, pytest-mock -, pytest-order -, pytest-cid -, mock -, kubo -, httpx -, httpcore +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pythonOlder, + python, + py-multiaddr, + requests, + pytestCheckHook, + pytest-cov, + pytest-dependency, + pytest-localserver, + pytest-mock, + pytest-order, + pytest-cid, + mock, + kubo, + httpx, + httpcore, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-OmC67pN2BbuGwM43xNDKlsLhwVeUbpvfOazyIDvoMEA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ py-multiaddr @@ -92,6 +91,9 @@ buildPythonPackage rec { description = "A python client library for the IPFS API"; homepage = "https://github.com/ipfs-shipyard/py-ipfs-http-client"; license = licenses.mit; - maintainers = with maintainers; [ mguentner Luflosi ]; + maintainers = with maintainers; [ + mguentner + Luflosi + ]; }; } diff --git a/pkgs/development/python-modules/iptools/default.nix b/pkgs/development/python-modules/iptools/default.nix index fe400465382b..42e296afcc86 100644 --- a/pkgs/development/python-modules/iptools/default.nix +++ b/pkgs/development/python-modules/iptools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + nose, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/iptools"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/ipwhl/default.nix b/pkgs/development/python-modules/ipwhl/default.nix index 6e6d0e21ef02..c7f2f621a2f6 100644 --- a/pkgs/development/python-modules/ipwhl/default.nix +++ b/pkgs/development/python-modules/ipwhl/default.nix @@ -1,5 +1,13 @@ -{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut -, kubo, packaging, tomli, flit-core }: +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromSourcehut, + kubo, + packaging, + tomli, + flit-core, +}: buildPythonPackage rec { pname = "ipwhl"; @@ -16,7 +24,10 @@ buildPythonPackage rec { nativeBuildInputs = [ flit-core ]; buildInputs = [ kubo ]; - propagatedBuildInputs = [ packaging tomli ]; + propagatedBuildInputs = [ + packaging + tomli + ]; doCheck = false; # there's no test pythonImportsCheck = [ "ipwhl" ]; diff --git a/pkgs/development/python-modules/ipwhois/default.nix b/pkgs/development/python-modules/ipwhois/default.nix index c6e50535bad4..43495abeb052 100644 --- a/pkgs/development/python-modules/ipwhois/default.nix +++ b/pkgs/development/python-modules/ipwhois/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, dnspython -, fetchFromGitHub -, fetchpatch -, iana-etc -, libredirect -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + dnspython, + fetchFromGitHub, + fetchpatch, + iana-etc, + libredirect, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -37,26 +38,18 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonRelaxDeps = [ - "dnspython" - ]; + pythonRelaxDeps = [ "dnspython" ]; nativeBuildInputs = [ pythonRelaxDepsHook setuptools ]; - propagatedBuildInputs = [ - dnspython - ]; + propagatedBuildInputs = [ dnspython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ipwhois" - ]; + pythonImportsCheck = [ "ipwhois" ]; preCheck = lib.optionalString stdenv.isLinux '' echo "nameserver 127.0.0.1" > resolv.conf diff --git a/pkgs/development/python-modules/ipy/default.nix b/pkgs/development/python-modules/ipy/default.nix index 8a2f64ce3638..7db51ef648b1 100644 --- a/pkgs/development/python-modules/ipy/default.nix +++ b/pkgs/development/python-modules/ipy/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + nose, +}: buildPythonPackage rec { pname = "ipy"; diff --git a/pkgs/development/python-modules/ipycanvas/default.nix b/pkgs/development/python-modules/ipycanvas/default.nix index 2222c0bdad0d..34bb4c7916ab 100644 --- a/pkgs/development/python-modules/ipycanvas/default.nix +++ b/pkgs/development/python-modules/ipycanvas/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatchling -, ipywidgets -, numpy -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatchling, + ipywidgets, + numpy, + pillow, }: buildPythonPackage rec { @@ -29,15 +30,17 @@ buildPythonPackage rec { --replace-fail '"jupyterlab>=3,<5",' "" \ ''; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; env.HATCH_BUILD_NO_HOOKS = true; - dependencies = [ ipywidgets numpy pillow ]; + dependencies = [ + ipywidgets + numpy + pillow + ]; - doCheck = false; # tests are in Typescript and require `npx` and `chromium` + doCheck = false; # tests are in Typescript and require `npx` and `chromium` pythonImportsCheck = [ "ipycanvas" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/ipydatawidgets/default.nix b/pkgs/development/python-modules/ipydatawidgets/default.nix index e6f68a111ba8..45695a23166e 100644 --- a/pkgs/development/python-modules/ipydatawidgets/default.nix +++ b/pkgs/development/python-modules/ipydatawidgets/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, pytest -, pytest-cov -, nbval -, jupyter-packaging -, ipywidgets -, numpy -, six -, traittypes +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + pytest, + pytest-cov, + nbval, + jupyter-packaging, + ipywidgets, + numpy, + six, + traittypes, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-OU8kiVdlh8/XVTd6CaBn9GytIggZZQkgIf0avL54Uqg="; }; - nativeBuildInputs = [ - jupyter-packaging - ]; + nativeBuildInputs = [ jupyter-packaging ]; setupPyBuildFlags = [ "--skip-npm" ]; @@ -37,7 +36,11 @@ buildPythonPackage rec { traittypes ]; - nativeCheckInputs = [ pytest pytest-cov nbval ]; + nativeCheckInputs = [ + pytest + pytest-cov + nbval + ]; checkPhase = "pytest ipydatawidgets/tests"; diff --git a/pkgs/development/python-modules/ipykernel/default.nix b/pkgs/development/python-modules/ipykernel/default.nix index 35cd3bad0aa4..3ef98a9a8eb8 100644 --- a/pkgs/development/python-modules/ipykernel/default.nix +++ b/pkgs/development/python-modules/ipykernel/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, buildPythonPackage -, callPackage -, fetchPypi -, hatchling -, pythonOlder -, appnope -, comm -, debugpy -, ipython -, jupyter-client -, jupyter-core -, matplotlib-inline -, nest-asyncio -, packaging -, psutil -, pyzmq -, tornado -, traitlets +{ + lib, + stdenv, + buildPythonPackage, + callPackage, + fetchPypi, + hatchling, + pythonOlder, + appnope, + comm, + debugpy, + ipython, + jupyter-client, + jupyter-core, + matplotlib-inline, + nest-asyncio, + packaging, + psutil, + pyzmq, + tornado, + traitlets, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { sed -i "/debugpy/d" pyproject.toml ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ comm @@ -57,9 +56,7 @@ buildPythonPackage rec { pyzmq tornado traitlets - ] ++ lib.optionals stdenv.isDarwin [ - appnope - ]; + ] ++ lib.optionals stdenv.isDarwin [ appnope ]; # check in passthru.tests.pytest to escape infinite recursion with ipyparallel doCheck = false; diff --git a/pkgs/development/python-modules/ipykernel/tests.nix b/pkgs/development/python-modules/ipykernel/tests.nix index 0de6d2feb4ae..4d96d4c6787d 100644 --- a/pkgs/development/python-modules/ipykernel/tests.nix +++ b/pkgs/development/python-modules/ipykernel/tests.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, flaky -, ipykernel -, ipyparallel -, pre-commit -, pytestCheckHook -, pytest-asyncio -, pytest-timeout +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + flaky, + ipykernel, + ipyparallel, + pre-commit, + pytestCheckHook, + pytest-asyncio, + pytest-timeout, }: buildPythonPackage { @@ -33,35 +34,41 @@ buildPythonPackage { export HOME=$(mktemp -d) ''; - disabledTests = [ # The follwing three tests fail for unclear reasons. - # pytest.PytestUnhandledThreadExceptionWarning: Exception in thread Thread-8 - "test_asyncio_interrupt" + disabledTests = + [ + # The follwing three tests fail for unclear reasons. + # pytest.PytestUnhandledThreadExceptionWarning: Exception in thread Thread-8 + "test_asyncio_interrupt" - # DeprecationWarning: Passing unrecognized arguments to super(IPythonKernel) - "test_embed_kernel_func" + # DeprecationWarning: Passing unrecognized arguments to super(IPythonKernel) + "test_embed_kernel_func" - # traitlets.config.configurable.MultipleInstanceError: An incompatible siblin... - "test_install_kernelspec" - ] ++ lib.optionals stdenv.isDarwin ([ - # see https://github.com/NixOS/nixpkgs/issues/76197 - "test_subprocess_print" - "test_subprocess_error" - "test_ipython_start_kernel_no_userns" + # traitlets.config.configurable.MultipleInstanceError: An incompatible siblin... + "test_install_kernelspec" + ] + ++ lib.optionals stdenv.isDarwin ( + [ + # see https://github.com/NixOS/nixpkgs/issues/76197 + "test_subprocess_print" + "test_subprocess_error" + "test_ipython_start_kernel_no_userns" - # https://github.com/ipython/ipykernel/issues/506 - "test_unc_paths" - ] ++ lib.optionals (pythonOlder "3.8") [ - # flaky test https://github.com/ipython/ipykernel/issues/485 - "test_shutdown" + # https://github.com/ipython/ipykernel/issues/506 + "test_unc_paths" + ] + ++ lib.optionals (pythonOlder "3.8") [ + # flaky test https://github.com/ipython/ipykernel/issues/485 + "test_shutdown" - # test regression https://github.com/ipython/ipykernel/issues/486 - "test_sys_path_profile_dir" - "test_save_history" - "test_help_output" - "test_write_kernel_spec" - "test_ipython_start_kernel_userns" - "ZMQDisplayPublisherTests" - ]); + # test regression https://github.com/ipython/ipykernel/issues/486 + "test_sys_path_profile_dir" + "test_save_history" + "test_help_output" + "test_write_kernel_spec" + "test_ipython_start_kernel_userns" + "ZMQDisplayPublisherTests" + ] + ); # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/ipymarkup/default.nix b/pkgs/development/python-modules/ipymarkup/default.nix index a2698771ab22..10dccf3f262a 100644 --- a/pkgs/development/python-modules/ipymarkup/default.nix +++ b/pkgs/development/python-modules/ipymarkup/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, intervaltree +{ + lib, + buildPythonPackage, + fetchPypi, + intervaltree, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ipympl/default.nix b/pkgs/development/python-modules/ipympl/default.nix index b25f5fd58ae3..f9905bdfc446 100644 --- a/pkgs/development/python-modules/ipympl/default.nix +++ b/pkgs/development/python-modules/ipympl/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, ipykernel -, ipython-genutils -, ipywidgets -, matplotlib -, numpy -, pillow -, traitlets +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + ipykernel, + ipython-genutils, + ipywidgets, + matplotlib, + numpy, + pillow, + traitlets, }: buildPythonPackage rec { @@ -37,12 +38,18 @@ buildPythonPackage rec { # There are no unit tests in repository doCheck = false; - pythonImportsCheck = [ "ipympl" "ipympl.backend_nbagg" ]; + pythonImportsCheck = [ + "ipympl" + "ipympl.backend_nbagg" + ]; meta = with lib; { description = "Matplotlib Jupyter Extension"; homepage = "https://github.com/matplotlib/jupyter-matplotlib"; - maintainers = with maintainers; [ jluttine fabiangd ]; + maintainers = with maintainers; [ + jluttine + fabiangd + ]; license = licenses.bsd3; }; } diff --git a/pkgs/development/python-modules/ipynbname/default.nix b/pkgs/development/python-modules/ipynbname/default.nix index bd158be55f52..24e8f7393098 100644 --- a/pkgs/development/python-modules/ipynbname/default.nix +++ b/pkgs/development/python-modules/ipynbname/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, ipykernel +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + ipykernel, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-HTxpze6Kl4FPRWpyBOnMGVtLu0ueRcvnV3lrFiST9gY="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - ipykernel - ]; + dependencies = [ ipykernel ]; pythonImportsCheck = [ "ipynbname" ]; diff --git a/pkgs/development/python-modules/ipyniivue/default.nix b/pkgs/development/python-modules/ipyniivue/default.nix index 14667b0942ed..52bb55afff10 100644 --- a/pkgs/development/python-modules/ipyniivue/default.nix +++ b/pkgs/development/python-modules/ipyniivue/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatchling -, hatch-vcs -, anywidget -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatchling, + hatch-vcs, + anywidget, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ipyparallel/default.nix b/pkgs/development/python-modules/ipyparallel/default.nix index 9548ab254bec..90a1aa3971a6 100644 --- a/pkgs/development/python-modules/ipyparallel/default.nix +++ b/pkgs/development/python-modules/ipyparallel/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, decorator -, entrypoints -, fetchPypi -, hatchling -, ipykernel -, ipython -, jupyter-client -, psutil -, python-dateutil -, pythonOlder -, pyzmq -, tornado -, tqdm -, traitlets +{ + lib, + buildPythonPackage, + decorator, + entrypoints, + fetchPypi, + hatchling, + ipykernel, + ipython, + jupyter-client, + psutil, + python-dateutil, + pythonOlder, + pyzmq, + tornado, + tqdm, + traitlets, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace '"jupyterlab==4.*",' "" ''; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ decorator @@ -57,11 +56,9 @@ buildPythonPackage rec { # Requires access to cluster doCheck = false; - pythonImportsCheck = [ - "ipyparallel" - ]; + pythonImportsCheck = [ "ipyparallel" ]; - meta = with lib;{ + meta = with lib; { description = "Interactive Parallel Computing with IPython"; homepage = "https://ipyparallel.readthedocs.io/"; changelog = "https://github.com/ipython/ipyparallel/blob/${version}/docs/source/changelog.md"; diff --git a/pkgs/development/python-modules/ipytablewidgets/default.nix b/pkgs/development/python-modules/ipytablewidgets/default.nix index 4aad3219eb52..0f54bb310567 100644 --- a/pkgs/development/python-modules/ipytablewidgets/default.nix +++ b/pkgs/development/python-modules/ipytablewidgets/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, ipywidgets -, jupyter-packaging -, jupyterlab -, lz4 -, numpy -, pandas -, setuptools -, traitlets -, traittypes -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + ipywidgets, + jupyter-packaging, + jupyterlab, + lz4, + numpy, + pandas, + setuptools, + traitlets, + traittypes, + wheel, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { traittypes ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ipytablewidgets" ]; diff --git a/pkgs/development/python-modules/ipython-genutils/default.nix b/pkgs/development/python-modules/ipython-genutils/default.nix index 4e8487f3f2c4..a0f8717de4b6 100644 --- a/pkgs/development/python-modules/ipython-genutils/default.nix +++ b/pkgs/development/python-modules/ipython-genutils/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, nose -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + nose, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-6y4RbnXs751NIo/cZq9UJpr6JqtEYwQuM3hbiHxii6g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ nose @@ -36,9 +35,7 @@ buildPythonPackage rec { --replace "tearDown" "teardown_method" ''; - pythonImportsCheck = [ - "ipython_genutils" - ]; + pythonImportsCheck = [ "ipython_genutils" ]; meta = { description = "Vestigial utilities from IPython"; diff --git a/pkgs/development/python-modules/ipython-sql/default.nix b/pkgs/development/python-modules/ipython-sql/default.nix index a87c359c967a..9cdd6bc95a04 100644 --- a/pkgs/development/python-modules/ipython-sql/default.nix +++ b/pkgs/development/python-modules/ipython-sql/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, ipython -, ipython-genutils -, prettytable -, sqlalchemy -, sqlparse +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + ipython, + ipython-genutils, + prettytable, + sqlalchemy, + sqlparse, }: buildPythonPackage rec { pname = "ipython-sql"; @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-PbPOf5qV369Dh2+oCxa9u5oE3guhIELKsT6fWW/P/b4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ipython diff --git a/pkgs/development/python-modules/ipython/default.nix b/pkgs/development/python-modules/ipython/default.nix index d9d7fda28c99..56feb411fe95 100644 --- a/pkgs/development/python-modules/ipython/default.nix +++ b/pkgs/development/python-modules/ipython/default.nix @@ -1,42 +1,43 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, -# Build dependencies -, setuptools + # Build dependencies + setuptools, -# Runtime dependencies -, decorator -, exceptiongroup -, jedi -, matplotlib-inline -, pexpect -, prompt-toolkit -, pygments -, stack-data -, traitlets -, typing-extensions + # Runtime dependencies + decorator, + exceptiongroup, + jedi, + matplotlib-inline, + pexpect, + prompt-toolkit, + pygments, + stack-data, + traitlets, + typing-extensions, -# Optional dependencies -, ipykernel -, ipyparallel -, ipywidgets -, matplotlib -, nbconvert -, nbformat -, notebook -, qtconsole + # Optional dependencies + ipykernel, + ipyparallel, + ipywidgets, + matplotlib, + nbconvert, + nbformat, + notebook, + qtconsole, -# Reverse dependency -, sage + # Reverse dependency + sage, -# Test dependencies -, pickleshare -, pytest-asyncio -, pytest7CheckHook -, testpath + # Test dependencies + pickleshare, + pytest-asyncio, + pytest7CheckHook, + testpath, }: buildPythonPackage rec { @@ -50,24 +51,21 @@ buildPythonPackage rec { hash = "sha256-AQ2z+KcopXi7ZB/dBsBjufuOlqlGTGOuxjEPvLXoBQE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - decorator - jedi - matplotlib-inline - pexpect - prompt-toolkit - pygments - stack-data - traitlets - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ] ++ lib.optionals (pythonOlder "3.12") [ - typing-extensions - ]; + dependencies = + [ + decorator + jedi + matplotlib-inline + pexpect + prompt-toolkit + pygments + stack-data + traitlets + ] + ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ] + ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ]; optional-dependencies = { kernel = [ ipykernel ]; @@ -82,9 +80,7 @@ buildPythonPackage rec { matplotlib = [ matplotlib ]; }; - pythonImportsCheck = [ - "IPython" - ]; + pythonImportsCheck = [ "IPython" ]; preCheck = '' export HOME=$TMPDIR @@ -101,15 +97,19 @@ buildPythonPackage rec { testpath ]; - disabledTests = [ - # UnboundLocalError: local variable 'child' referenced before assignment - "test_system_interrupt" - ] ++ lib.optionals (stdenv.isDarwin) [ - # FileNotFoundError: [Errno 2] No such file or directory: 'pbpaste' - "test_clipboard_get" - ]; + disabledTests = + [ + # UnboundLocalError: local variable 'child' referenced before assignment + "test_system_interrupt" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # FileNotFoundError: [Errno 2] No such file or directory: 'pbpaste' + "test_clipboard_get" + ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "IPython: Productive Interactive Computing"; diff --git a/pkgs/development/python-modules/ipyvue/default.nix b/pkgs/development/python-modules/ipyvue/default.nix index a7a49a8d906e..7ab3a9170b18 100644 --- a/pkgs/development/python-modules/ipyvue/default.nix +++ b/pkgs/development/python-modules/ipyvue/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, # Python Inputs -, setuptools -, ipywidgets + setuptools, + ipywidgets, }: buildPythonPackage rec { @@ -16,13 +17,11 @@ buildPythonPackage rec { hash = "sha256-AwgE/5GgRK0/oHrjTjlSo9IxmDdnhDSqqZrkiLp0mls="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ ipywidgets ]; - doCheck = false; # No tests in package or GitHub + doCheck = false; # No tests in package or GitHub pythonImportsCheck = [ "ipyvue" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/ipyvuetify/default.nix b/pkgs/development/python-modules/ipyvuetify/default.nix index cd2a597d6c17..a3d1e02ae8a4 100644 --- a/pkgs/development/python-modules/ipyvuetify/default.nix +++ b/pkgs/development/python-modules/ipyvuetify/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, # Python Inputs -, jupyter-packaging -, jupyterlab -, setuptools -, wheel -, ipyvue + jupyter-packaging, + jupyterlab, + setuptools, + wheel, + ipyvue, }: buildPythonPackage rec { @@ -42,7 +43,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ ipyvue ]; - doCheck = false; # no tests on PyPi/GitHub + doCheck = false; # no tests on PyPi/GitHub pythonImportsCheck = [ "ipyvuetify" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/ipywidgets/default.nix b/pkgs/development/python-modules/ipywidgets/default.nix index 69468ec28f2f..493e32789a49 100644 --- a/pkgs/development/python-modules/ipywidgets/default.nix +++ b/pkgs/development/python-modules/ipywidgets/default.nix @@ -1,17 +1,18 @@ -{ buildPythonPackage -, fetchPypi -, setuptools -, wheel -, comm -, ipykernel -, ipython -, jsonschema -, jupyterlab-widgets -, lib -, pytest7CheckHook -, pytz -, traitlets -, widgetsnbextension +{ + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + comm, + ipykernel, + ipython, + jsonschema, + jupyterlab-widgets, + lib, + pytest7CheckHook, + pytz, + traitlets, + widgetsnbextension, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ipyxact/default.nix b/pkgs/development/python-modules/ipyxact/default.nix index 5cf7bfa9b2e6..803ed5378cb4 100644 --- a/pkgs/development/python-modules/ipyxact/default.nix +++ b/pkgs/development/python-modules/ipyxact/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pyyaml -, six -, lxml +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pyyaml, + six, + lxml, }: buildPythonPackage rec { @@ -12,7 +13,10 @@ buildPythonPackage rec { format = "setuptools"; propagatedBuildInputs = [ pyyaml ]; - checkInputs = [ six lxml ]; + checkInputs = [ + six + lxml + ]; src = fetchFromGitHub { owner = "olofk"; diff --git a/pkgs/development/python-modules/irc/default.nix b/pkgs/development/python-modules/irc/default.nix index 4e724207a26f..8afe89caf8ca 100644 --- a/pkgs/development/python-modules/irc/default.nix +++ b/pkgs/development/python-modules/irc/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jaraco-collections -, jaraco-itertools -, jaraco-logging -, jaraco-stream -, jaraco-text -, pytestCheckHook -, pythonOlder -, pytz -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + jaraco-collections, + jaraco-itertools, + jaraco-logging, + jaraco-stream, + jaraco-text, + pytestCheckHook, + pythonOlder, + pytz, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-fSUX9VZta/Oqhdf5jHdYth8NY+6RW/2fb1ZxOXNmRPk="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ jaraco-collections @@ -37,13 +36,9 @@ buildPythonPackage rec { pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "irc" - ]; + pythonImportsCheck = [ "irc" ]; meta = with lib; { description = "IRC (Internet Relay Chat) protocol library for Python"; diff --git a/pkgs/development/python-modules/ircrobots/default.nix b/pkgs/development/python-modules/ircrobots/default.nix index 76fe922fa0c6..370040f2b6fe 100644 --- a/pkgs/development/python-modules/ircrobots/default.nix +++ b/pkgs/development/python-modules/ircrobots/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, anyio -, asyncio-rlock -, asyncio-throttle -, ircstates -, async-stagger -, async-timeout -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + anyio, + asyncio-rlock, + asyncio-throttle, + ircstates, + async-stagger, + async-timeout, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ircstates/default.nix b/pkgs/development/python-modules/ircstates/default.nix index d6d72166c80f..ab28fb911aa3 100644 --- a/pkgs/development/python-modules/ircstates/default.nix +++ b/pkgs/development/python-modules/ircstates/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, irctokens -, pendulum -, freezegun -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + irctokens, + pendulum, + freezegun, + python, }: buildPythonPackage rec { pname = "ircstates"; version = "0.12.1"; format = "setuptools"; - disabled = pythonOlder "3.6"; # f-strings + disabled = pythonOlder "3.6"; # f-strings src = fetchFromGitHub { owner = "jesopo"; @@ -26,9 +27,7 @@ buildPythonPackage rec { pendulum ]; - nativeCheckInputs = [ - freezegun - ]; + nativeCheckInputs = [ freezegun ]; checkPhase = '' ${python.interpreter} -m unittest test diff --git a/pkgs/development/python-modules/irctokens/default.nix b/pkgs/development/python-modules/irctokens/default.nix index 68b8bb1535e8..5ad937806155 100644 --- a/pkgs/development/python-modules/irctokens/default.nix +++ b/pkgs/development/python-modules/irctokens/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pyyaml -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pyyaml, + python, }: buildPythonPackage rec { pname = "irctokens"; version = "2.0.2"; format = "setuptools"; - disabled = pythonOlder "3.6"; # f-strings + disabled = pythonOlder "3.6"; # f-strings src = fetchFromGitHub { owner = "jesopo"; diff --git a/pkgs/development/python-modules/isal/default.nix b/pkgs/development/python-modules/isal/default.nix index c37d9357ec53..795eacab36b0 100644 --- a/pkgs/development/python-modules/isal/default.nix +++ b/pkgs/development/python-modules/isal/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# native dependencies -, isa-l + # native dependencies + isa-l, -# tests -, pytest-timeout -, pytestCheckHook + # tests + pytest-timeout, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-EhdKT2ftyU2zevFg9Yi3q2FVx0FmKwJMzszsK1NS3Qg="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - buildInputs = [ - isa-l - ]; + buildInputs = [ isa-l ]; env.PYTHON_ISAL_LINK_DYNAMIC = true; @@ -40,11 +37,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; - disabledTests = [ + disabledTests = [ # calls `python -m isal` and fails on import "test_compress_fast_best_are_exclusive" "test_compress_infile_outfile" @@ -53,9 +48,7 @@ buildPythonPackage rec { "test_decompress_infile_outfile_error" ]; - pythonImportsCheck = [ - "isal" - ]; + pythonImportsCheck = [ "isal" ]; meta = with lib; { changelog = "https://github.com/pycompression/python-isal/blob/${src.rev}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/isbnlib/default.nix b/pkgs/development/python-modules/isbnlib/default.nix index a1af373ad58e..520b7f615978 100644 --- a/pkgs/development/python-modules/isbnlib/default.nix +++ b/pkgs/development/python-modules/isbnlib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, coverage -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + coverage, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ismartgate/default.nix b/pkgs/development/python-modules/ismartgate/default.nix index 1a61b002aa3a..6764e3c6c3ee 100644 --- a/pkgs/development/python-modules/ismartgate/default.nix +++ b/pkgs/development/python-modules/ismartgate/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, click -, defusedxml -, dicttoxml -, fetchFromGitHub -, httpx -, pycryptodome -, pytest-asyncio -, pytest-raises -, pytestCheckHook -, pythonOlder -, respx -, typing-extensions +{ + lib, + buildPythonPackage, + click, + defusedxml, + dicttoxml, + fetchFromGitHub, + httpx, + pycryptodome, + pytest-asyncio, + pytest-raises, + pytestCheckHook, + pythonOlder, + respx, + typing-extensions, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { respx ]; - pythonImportsCheck = [ - "ismartgate" - ]; + pythonImportsCheck = [ "ismartgate" ]; meta = with lib; { description = "Python module to work with the ismartgate and gogogate2 API"; diff --git a/pkgs/development/python-modules/iso-639/default.nix b/pkgs/development/python-modules/iso-639/default.nix index 22d66ef9f14f..a971722a4194 100644 --- a/pkgs/development/python-modules/iso-639/default.nix +++ b/pkgs/development/python-modules/iso-639/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, setuptools }: +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, +}: buildPythonPackage rec { pname = "iso-639"; diff --git a/pkgs/development/python-modules/iso3166/default.nix b/pkgs/development/python-modules/iso3166/default.nix index d166ea496fca..bec420de051f 100644 --- a/pkgs/development/python-modules/iso3166/default.nix +++ b/pkgs/development/python-modules/iso3166/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-/y7c2qSA6+WKUP9YTSaMBjBxtqAuF4nB3MKvL5P6vL0="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "iso3166" - ]; + pythonImportsCheck = [ "iso3166" ]; meta = with lib; { description = "Self-contained ISO 3166-1 country definitions"; diff --git a/pkgs/development/python-modules/iso4217/default.nix b/pkgs/development/python-modules/iso4217/default.nix index 50268536bda5..718585c683c3 100644 --- a/pkgs/development/python-modules/iso4217/default.nix +++ b/pkgs/development/python-modules/iso4217/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchurl -, importlib-resources -, pytestCheckHook -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchurl, + importlib-resources, + pytestCheckHook, + python, + pythonOlder, }: let table = fetchurl { @@ -28,13 +29,9 @@ buildPythonPackage rec { hash = "sha256-zJYtEIrsuHKPwnSoRjyZC/0rgAZoNMZ0Oh8gQcIb20Q="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ importlib-resources ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preBuild = '' # The table is already downloaded @@ -48,13 +45,9 @@ buildPythonPackage rec { cp -r ${table} $out/${python.sitePackages}/$pname/table.xml ''; - pytestFlagsArray = [ - "$pname/test.py" - ]; + pytestFlagsArray = [ "$pname/test.py" ]; - pythonImportsCheck = [ - "iso4217" - ]; + pythonImportsCheck = [ "iso4217" ]; meta = with lib; { description = "ISO 4217 currency data package for Python"; diff --git a/pkgs/development/python-modules/iso8601/default.nix b/pkgs/development/python-modules/iso8601/default.nix index a4982c27f852..ab2eb3045dc3 100644 --- a/pkgs/development/python-modules/iso8601/default.nix +++ b/pkgs/development/python-modules/iso8601/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, poetry-core -, pytestCheckHook -, pytz -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + poetry-core, + pytestCheckHook, + pytz, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-ax04Ke6JIcQwGZjJCfeCn6ntPL2sDTsWry10Ou0bqN8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ hypothesis @@ -30,13 +29,9 @@ buildPythonPackage rec { pytz ]; - pytestFlagsArray = [ - "iso8601" - ]; + pytestFlagsArray = [ "iso8601" ]; - pythonImportsCheck = [ - "iso8601" - ]; + pythonImportsCheck = [ "iso8601" ]; meta = with lib; { description = "Simple module to parse ISO 8601 dates"; diff --git a/pkgs/development/python-modules/isodate/default.nix b/pkgs/development/python-modules/isodate/default.nix index 0697f17c01f0..e48cdcc0e861 100644 --- a/pkgs/development/python-modules/isodate/default.nix +++ b/pkgs/development/python-modules/isodate/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, unittestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchPypi, + unittestCheckHook, + six, }: buildPythonPackage rec { @@ -19,12 +20,14 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "src/isodate/tests" ]; + unittestFlagsArray = [ + "-s" + "src/isodate/tests" + ]; meta = with lib; { description = "ISO 8601 date/time parser"; homepage = "http://cheeseshop.python.org/pypi/isodate"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/isoduration/default.nix b/pkgs/development/python-modules/isoduration/default.nix index e37e44361a10..613f21105d9b 100644 --- a/pkgs/development/python-modules/isoduration/default.nix +++ b/pkgs/development/python-modules/isoduration/default.nix @@ -1,11 +1,12 @@ -{ lib -, arrow -, buildPythonPackage -, fetchFromGitHub -, hypothesis -, isodate -, pytestCheckHook -, pythonOlder +{ + lib, + arrow, + buildPythonPackage, + fetchFromGitHub, + hypothesis, + isodate, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-6LqsH+3V/K0s2YD1gvmelo+cCH+yCAmmyTYGhUegVdk="; }; - propagatedBuildInputs = [ - arrow - ]; + propagatedBuildInputs = [ arrow ]; nativeCheckInputs = [ hypothesis @@ -37,9 +36,7 @@ buildPythonPackage rec { "tests/test_benchmark.py" ]; - pythonImportsCheck = [ - "isoduration" - ]; + pythonImportsCheck = [ "isoduration" ]; meta = with lib; { description = "Library for operations with ISO 8601 durations"; diff --git a/pkgs/development/python-modules/isort/default.nix b/pkgs/development/python-modules/isort/default.nix index 100155f83a2e..46b33b717319 100644 --- a/pkgs/development/python-modules/isort/default.nix +++ b/pkgs/development/python-modules/isort/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, colorama -, hypothesis -, poetry-core -, setuptools -, pylama -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + colorama, + hypothesis, + poetry-core, + setuptools, + pylama, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/isosurfaces/default.nix b/pkgs/development/python-modules/isosurfaces/default.nix index c1caa00b980d..a7352c590bc1 100644 --- a/pkgs/development/python-modules/isosurfaces/default.nix +++ b/pkgs/development/python-modules/isosurfaces/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/isounidecode/default.nix b/pkgs/development/python-modules/isounidecode/default.nix index 70736a54a1fe..9ac5d454b2fc 100644 --- a/pkgs/development/python-modules/isounidecode/default.nix +++ b/pkgs/development/python-modules/isounidecode/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "isounidecode"; diff --git a/pkgs/development/python-modules/itanium-demangler/default.nix b/pkgs/development/python-modules/itanium-demangler/default.nix index 67b71c9bf217..37073b5a0bb5 100644 --- a/pkgs/development/python-modules/itanium-demangler/default.nix +++ b/pkgs/development/python-modules/itanium-demangler/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,22 +20,19 @@ buildPythonPackage rec { hash = "sha256-I6NUfckt2cocQt5dZSFadpshTCuA/6bVNauNXypWh+A="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/test.py" - ]; + pytestFlagsArray = [ "tests/test.py" ]; - pythonImportsCheck = [ - "itanium_demangler" - ]; + pythonImportsCheck = [ "itanium_demangler" ]; meta = with lib; { description = "Python parser for the Itanium C++ ABI symbol mangling language"; homepage = "https://github.com/whitequark/python-itanium_demangler"; license = licenses.bsd0; - maintainers = with maintainers; [ fab pamplemousse ]; + maintainers = with maintainers; [ + fab + pamplemousse + ]; }; } diff --git a/pkgs/development/python-modules/item-synchronizer/default.nix b/pkgs/development/python-modules/item-synchronizer/default.nix index 2f568499eb08..5e8ecf202995 100644 --- a/pkgs/development/python-modules/item-synchronizer/default.nix +++ b/pkgs/development/python-modules/item-synchronizer/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, bidict -, bubop +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + bidict, + bubop, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { substituteInPlace pyproject.toml --replace-fail 'bidict = "^0.21.4"' 'bidict = "^0.23"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bidict diff --git a/pkgs/development/python-modules/itemadapter/default.nix b/pkgs/development/python-modules/itemadapter/default.nix index 0a93eda903d6..f47d229c2a32 100644 --- a/pkgs/development/python-modules/itemadapter/default.nix +++ b/pkgs/development/python-modules/itemadapter/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Infinite recursion with Scrapy doCheck = false; - pythonImportsCheck = [ - "itemadapter" - ]; + pythonImportsCheck = [ "itemadapter" ]; meta = with lib; { description = "Common interface for data container classes"; diff --git a/pkgs/development/python-modules/itemdb/default.nix b/pkgs/development/python-modules/itemdb/default.nix index 6ac5deae5eaa..8af1e84a972b 100644 --- a/pkgs/development/python-modules/itemdb/default.nix +++ b/pkgs/development/python-modules/itemdb/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { @@ -23,5 +24,3 @@ buildPythonPackage rec { maintainers = [ maintainers.matthiasbeyer ]; }; } - - diff --git a/pkgs/development/python-modules/itemloaders/default.nix b/pkgs/development/python-modules/itemloaders/default.nix index 554882957f2e..09f08480f03b 100644 --- a/pkgs/development/python-modules/itemloaders/default.nix +++ b/pkgs/development/python-modules/itemloaders/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, w3lib -, parsel -, jmespath -, itemadapter -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + w3lib, + parsel, + jmespath, + itemadapter, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-DatHJnAIomVoN/GrDzM2fNnFHcXqo6zs3ucKCOCf9DU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ w3lib @@ -35,13 +34,9 @@ buildPythonPackage rec { itemadapter ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "itemloaders" - ]; + pythonImportsCheck = [ "itemloaders" ]; meta = with lib; { description = "Library to populate items using XPath and CSS with a convenient API"; diff --git a/pkgs/development/python-modules/iteration-utilities/default.nix b/pkgs/development/python-modules/iteration-utilities/default.nix index 59399e39aca4..bdd094983ecc 100644 --- a/pkgs/development/python-modules/iteration-utilities/default.nix +++ b/pkgs/development/python-modules/iteration-utilities/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-BiBbmZHo5B/u//LItqEcKtGXOA6xK+T1zoitR9XIiSU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "iteration_utilities" - ]; + pythonImportsCheck = [ "iteration_utilities" ]; meta = with lib; { description = "Utilities based on Pythons iterators and generators"; diff --git a/pkgs/development/python-modules/iterative-telemetry/default.nix b/pkgs/development/python-modules/iterative-telemetry/default.nix index ed5066dcc5fa..bc7ad3796450 100644 --- a/pkgs/development/python-modules/iterative-telemetry/default.nix +++ b/pkgs/development/python-modules/iterative-telemetry/default.nix @@ -1,14 +1,15 @@ -{ lib -, appdirs -, buildPythonPackage -, distro -, fetchFromGitHub -, filelock -, pytestCheckHook -, pytest-mock -, pythonOlder -, requests -, setuptools-scm +{ + lib, + appdirs, + buildPythonPackage, + distro, + fetchFromGitHub, + filelock, + pytestCheckHook, + pytest-mock, + pythonOlder, + requests, + setuptools-scm, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-jD1AyQTdz/NfTRpvEuTE/gUfgNIhNlnimuCks5ImhwA="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ requests @@ -41,9 +40,7 @@ buildPythonPackage rec { pytest-mock ]; - pythonImportsCheck = [ - "iterative_telemetry" - ]; + pythonImportsCheck = [ "iterative_telemetry" ]; meta = with lib; { description = "Common library to send usage telemetry"; diff --git a/pkgs/development/python-modules/iterm2/default.nix b/pkgs/development/python-modules/iterm2/default.nix index 6d12086851c6..61e835890c32 100644 --- a/pkgs/development/python-modules/iterm2/default.nix +++ b/pkgs/development/python-modules/iterm2/default.nix @@ -1,6 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, protobuf -, websockets +{ + lib, + buildPythonPackage, + fetchPypi, + protobuf, + websockets, }: buildPythonPackage rec { @@ -13,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-9vC+xGwyzsr3vn/YIpbsRpfUvyEB8MSqskzBI5kfojA="; }; - propagatedBuildInputs = [ protobuf websockets ]; + propagatedBuildInputs = [ + protobuf + websockets + ]; # The tests require pyobjc. We can't use pyobjc because at # time of writing the pyobjc derivation is disabled on python 3. diff --git a/pkgs/development/python-modules/itsdangerous/default.nix b/pkgs/development/python-modules/itsdangerous/default.nix index edd1b149905f..29d9ea285a55 100644 --- a/pkgs/development/python-modules/itsdangerous/default.nix +++ b/pkgs/development/python-modules/itsdangerous/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, freezegun -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + freezegun, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,5 +33,4 @@ buildPythonPackage rec { homepage = "https://itsdangerous.palletsprojects.com"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/itunespy/default.nix b/pkgs/development/python-modules/itunespy/default.nix index cd1f174c24b8..bae10c729876 100644 --- a/pkgs/development/python-modules/itunespy/default.nix +++ b/pkgs/development/python-modules/itunespy/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests, pycountry }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pycountry, +}: buildPythonPackage rec { pname = "itunespy"; @@ -12,7 +18,10 @@ buildPythonPackage rec { sha256 = "0yc3az5531qs8nbcw4rhgrszwczgy4bikfwfar7xb2044360sslw"; }; - propagatedBuildInputs = [ requests pycountry ]; + propagatedBuildInputs = [ + requests + pycountry + ]; # This module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/iwlib/default.nix b/pkgs/development/python-modules/iwlib/default.nix index 0a881ef1f370..01f83b80a003 100644 --- a/pkgs/development/python-modules/iwlib/default.nix +++ b/pkgs/development/python-modules/iwlib/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, wirelesstools, cffi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + wirelesstools, + cffi, + pytest, +}: buildPythonPackage rec { pname = "iwlib"; version = "1.7.0"; @@ -9,7 +16,10 @@ buildPythonPackage rec { sha256 = "a805f6597a70ee3001aba8f039fb7b2dcb75dc15c4e7852f5594fd6379196da1"; }; - propagatedBuildInputs = [ wirelesstools cffi ]; + propagatedBuildInputs = [ + wirelesstools + cffi + ]; nativeBuildInputs = [ pytest ]; pythonImportsCheck = [ "iwlib" ]; diff --git a/pkgs/development/python-modules/j2cli/default.nix b/pkgs/development/python-modules/j2cli/default.nix index b779010bc579..ad361c560a71 100644 --- a/pkgs/development/python-modules/j2cli/default.nix +++ b/pkgs/development/python-modules/j2cli/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -17,7 +18,11 @@ buildPythonPackage rec { }; doCheck = false; # tests aren't installed thus aren't found, so skip - propagatedBuildInputs = [ jinja2 pyyaml setuptools ]; + propagatedBuildInputs = [ + jinja2 + pyyaml + setuptools + ]; meta = with lib; { homepage = "https://github.com/kolypto/j2cli"; @@ -28,7 +33,9 @@ buildPythonPackage rec { J2Cli is a command-line tool for templating in shell-scripts, leveraging the Jinja2 library. ''; - maintainers = with maintainers; [ rushmorem SuperSandro2000 ]; + maintainers = with maintainers; [ + rushmorem + SuperSandro2000 + ]; }; - } diff --git a/pkgs/development/python-modules/jaconv/default.nix b/pkgs/development/python-modules/jaconv/default.nix index a7800b783a88..474b168c6042 100644 --- a/pkgs/development/python-modules/jaconv/default.nix +++ b/pkgs/development/python-modules/jaconv/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "jaconv" - ]; + pythonImportsCheck = [ "jaconv" ]; meta = with lib; { description = "Python Japanese character interconverter for Hiragana, Katakana, Hankaku and Zenkaku"; diff --git a/pkgs/development/python-modules/jaeger-client/default.nix b/pkgs/development/python-modules/jaeger-client/default.nix index c7130c8afc9d..61755ada57e0 100644 --- a/pkgs/development/python-modules/jaeger-client/default.nix +++ b/pkgs/development/python-modules/jaeger-client/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchPypi -, lib -, opentracing -, threadloop -, thrift -, tornado +{ + buildPythonPackage, + fetchPypi, + lib, + opentracing, + threadloop, + thrift, + tornado, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jamo/default.nix b/pkgs/development/python-modules/jamo/default.nix index 058df62cb041..cccd9fe6c346 100644 --- a/pkgs/development/python-modules/jamo/default.nix +++ b/pkgs/development/python-modules/jamo/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-QHI3Rqf1aQOsW49A/qnIwRnPuerbtyerf+eWIiEvyho="; }; - pythonImportsCheck = [ - "jamo" - ]; + pythonImportsCheck = [ "jamo" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/JDongian/python-jamo/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/janus/default.nix b/pkgs/development/python-modules/janus/default.nix index 15b75bc2aa3b..62041277358a 100644 --- a/pkgs/development/python-modules/janus/default.nix +++ b/pkgs/development/python-modules/janus/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder, pytest-asyncio -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + pytest-asyncio, + typing-extensions, }: buildPythonPackage rec { @@ -14,11 +20,12 @@ buildPythonPackage rec { disabled = pythonOlder "3.6"; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; - nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; # also fails upstream: https://github.com/aio-libs/janus/pull/258 disabledTests = [ "test_format" ]; diff --git a/pkgs/development/python-modules/jaraco-abode/default.nix b/pkgs/development/python-modules/jaraco-abode/default.nix index d113028361fe..a1a725ddf001 100644 --- a/pkgs/development/python-modules/jaraco-abode/default.nix +++ b/pkgs/development/python-modules/jaraco-abode/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, bx-py-utils -, colorlog -, fetchFromGitHub -, importlib-resources -, jaraco-classes -, jaraco-collections -, jaraco-itertools -, jaraco-context -, jaraco-net -, keyring -, lomond -, more-itertools -, platformdirs -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, requests-toolbelt -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + bx-py-utils, + colorlog, + fetchFromGitHub, + importlib-resources, + jaraco-classes, + jaraco-collections, + jaraco-itertools, + jaraco-context, + jaraco-net, + keyring, + lomond, + more-itertools, + platformdirs, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + requests-toolbelt, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -63,9 +64,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "jaraco.abode" - ]; + pythonImportsCheck = [ "jaraco.abode" ]; preCheck = '' export HOME=$TEMP @@ -86,6 +85,9 @@ buildPythonPackage rec { description = "Library interfacing to the Abode home security system"; mainProgram = "abode"; license = licenses.mit; - maintainers = with maintainers; [ jamiemagee dotlambda ]; + maintainers = with maintainers; [ + jamiemagee + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/jaraco-classes/default.nix b/pkgs/development/python-modules/jaraco-classes/default.nix index 8408e80217b2..399849db57d9 100644 --- a/pkgs/development/python-modules/jaraco-classes/default.nix +++ b/pkgs/development/python-modules/jaraco-classes/default.nix @@ -1,7 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27 -, setuptools-scm -, more-itertools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + setuptools-scm, + more-itertools, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jaraco-collections/default.nix b/pkgs/development/python-modules/jaraco-collections/default.nix index ecef3939c9c5..9992250b4cc9 100644 --- a/pkgs/development/python-modules/jaraco-collections/default.nix +++ b/pkgs/development/python-modules/jaraco-collections/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, jaraco-classes -, jaraco-text +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + jaraco-classes, + jaraco-text, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jaraco-context/default.nix b/pkgs/development/python-modules/jaraco-context/default.nix index 637e23b2cdd8..41837b391d89 100644 --- a/pkgs/development/python-modules/jaraco-context/default.nix +++ b/pkgs/development/python-modules/jaraco-context/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-YdbkpKv7k62uyhmjKoxeA9uf5BWnRD/rK+z46FJN4xk="; }; - pythonNamespaces = [ - "jaraco" - ]; + pythonNamespaces = [ "jaraco" ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "jaraco.context" - ]; + pythonImportsCheck = [ "jaraco.context" ]; meta = with lib; { description = "Python module for context management"; diff --git a/pkgs/development/python-modules/jaraco-email/default.nix b/pkgs/development/python-modules/jaraco-email/default.nix index b6ff349a533b..ef5e99a93fd1 100644 --- a/pkgs/development/python-modules/jaraco-email/default.nix +++ b/pkgs/development/python-modules/jaraco-email/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, aiosmtpd -, jaraco-text -, jaraco-collections -, keyring -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + aiosmtpd, + jaraco-text, + jaraco-collections, + keyring, + pytestCheckHook, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "jaraco.email" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { changelog = "https://github.com/jaraco/jaraco.email/blob/${src.rev}/CHANGES.rst"; diff --git a/pkgs/development/python-modules/jaraco-functools/default.nix b/pkgs/development/python-modules/jaraco-functools/default.nix index d3b899281887..722d707a18ae 100644 --- a/pkgs/development/python-modules/jaraco-functools/default.nix +++ b/pkgs/development/python-modules/jaraco-functools/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, more-itertools -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + more-itertools, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - more-itertools - ]; + propagatedBuildInputs = [ more-itertools ]; doCheck = false; diff --git a/pkgs/development/python-modules/jaraco-itertools/default.nix b/pkgs/development/python-modules/jaraco-itertools/default.nix index 23722cc20c4b..07c1cd338518 100644 --- a/pkgs/development/python-modules/jaraco-itertools/default.nix +++ b/pkgs/development/python-modules/jaraco-itertools/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, setuptools-scm -, inflect, more-itertools, six, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + inflect, + more-itertools, + six, + pytest, }: buildPythonPackage rec { @@ -17,7 +24,11 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ inflect more-itertools six ]; + propagatedBuildInputs = [ + inflect + more-itertools + six + ]; nativeCheckInputs = [ pytest ]; # tests no longer available through pypi diff --git a/pkgs/development/python-modules/jaraco-logging/default.nix b/pkgs/development/python-modules/jaraco-logging/default.nix index e87d01a869a6..aeb99584cce7 100644 --- a/pkgs/development/python-modules/jaraco-logging/default.nix +++ b/pkgs/development/python-modules/jaraco-logging/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, setuptools-scm -, tempora +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + setuptools-scm, + tempora, }: buildPythonPackage rec { @@ -20,25 +21,19 @@ buildPythonPackage rec { hash = "sha256-9KfPusuGqDTCiGwBo7UrxM3icowdlxfEnU3OHWJI8Hs="; }; - pythonNamespaces = [ - "jaraco" - ]; + pythonNamespaces = [ "jaraco" ]; nativeBuildInputs = [ setuptools setuptools-scm ]; - propagatedBuildInputs = [ - tempora - ]; + propagatedBuildInputs = [ tempora ]; # test no longer packaged with pypi doCheck = false; - pythonImportsCheck = [ - "jaraco.logging" - ]; + pythonImportsCheck = [ "jaraco.logging" ]; meta = with lib; { description = "Support for Python logging facility"; diff --git a/pkgs/development/python-modules/jaraco-net/default.nix b/pkgs/development/python-modules/jaraco-net/default.nix index e278c1a3832d..c5554812cbe8 100644 --- a/pkgs/development/python-modules/jaraco-net/default.nix +++ b/pkgs/development/python-modules/jaraco-net/default.nix @@ -1,33 +1,34 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, more-itertools -, beautifulsoup4 -, mechanize -, keyring -, requests -, feedparser -, icmplib -, jaraco-text -, jaraco-logging -, jaraco-email -, jaraco-functools -, jaraco-collections -, path -, python-dateutil -, pathvalidate -, jsonpickle -, ifconfig-parser -, pytestCheckHook -, cherrypy -, importlib-resources -, pyparsing -, requests-mock -, nettools +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + more-itertools, + beautifulsoup4, + mechanize, + keyring, + requests, + feedparser, + icmplib, + jaraco-text, + jaraco-logging, + jaraco-email, + jaraco-functools, + jaraco-collections, + path, + python-dateutil, + pathvalidate, + jsonpickle, + ifconfig-parser, + pytestCheckHook, + cherrypy, + importlib-resources, + pyparsing, + requests-mock, + nettools, }: buildPythonPackage rec { @@ -67,9 +68,7 @@ buildPythonPackage rec { python-dateutil pathvalidate jsonpickle - ] ++ lib.optionals stdenv.isDarwin [ - ifconfig-parser - ]; + ] ++ lib.optionals stdenv.isDarwin [ ifconfig-parser ]; pythonImportsCheck = [ "jaraco.net" ]; @@ -79,9 +78,7 @@ buildPythonPackage rec { importlib-resources pyparsing requests-mock - ] ++ lib.optionals stdenv.isDarwin [ - nettools - ]; + ] ++ lib.optionals stdenv.isDarwin [ nettools ]; disabledTestPaths = [ # doesn't actually contain tests diff --git a/pkgs/development/python-modules/jaraco-stream/default.nix b/pkgs/development/python-modules/jaraco-stream/default.nix index 1c926b831ffb..a516bf33b0b3 100644 --- a/pkgs/development/python-modules/jaraco-stream/default.nix +++ b/pkgs/development/python-modules/jaraco-stream/default.nix @@ -1,4 +1,9 @@ -{ buildPythonPackage, fetchPypi, setuptools-scm, six }: +{ + buildPythonPackage, + fetchPypi, + setuptools-scm, + six, +}: buildPythonPackage rec { pname = "jaraco-stream"; diff --git a/pkgs/development/python-modules/jaraco-test/default.nix b/pkgs/development/python-modules/jaraco-test/default.nix index fb6c3a883e93..ae018f6f8305 100644 --- a/pkgs/development/python-modules/jaraco-test/default.nix +++ b/pkgs/development/python-modules/jaraco-test/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools-scm -, toml -, jaraco-functools -, jaraco-context -, more-itertools -, jaraco-collections -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools-scm, + toml, + jaraco-functools, + jaraco-context, + more-itertools, + jaraco-collections, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-29NDh4dYrcVER9YRXEYXia2zH8QHOyEpUCQwk7oxfsI="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ toml @@ -36,18 +35,14 @@ buildPythonPackage rec { jaraco-collections ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # https://github.com/jaraco/jaraco.test/issues/6 "jaraco/test/cpython.py" ]; - pythonImportsCheck = [ - "jaraco.test" - ]; + pythonImportsCheck = [ "jaraco.test" ]; meta = with lib; { description = "Testing support by jaraco"; diff --git a/pkgs/development/python-modules/jaraco-text/default.nix b/pkgs/development/python-modules/jaraco-text/default.nix index 5f6bc4021c0f..4828e7c0b0c9 100644 --- a/pkgs/development/python-modules/jaraco-text/default.nix +++ b/pkgs/development/python-modules/jaraco-text/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, autocommand -, importlib-resources -, jaraco-functools -, jaraco-context -, inflect -, pathlib2 -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + autocommand, + importlib-resources, + jaraco-functools, + jaraco-context, + inflect, + pathlib2, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -25,32 +26,20 @@ buildPythonPackage rec { hash = "sha256-OJ4lyNSzLpcVv1MFlvqw9c06pHKW5DlpOS4YpUGvWSw="; }; - pythonNamespaces = [ - "jaraco" - ]; + pythonNamespaces = [ "jaraco" ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ autocommand jaraco-context jaraco-functools inflect - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.10") [ - pathlib2 - ]; + nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (pythonOlder "3.10") [ pathlib2 ]; - pythonImportsCheck = [ - "jaraco.text" - ]; + pythonImportsCheck = [ "jaraco.text" ]; meta = with lib; { description = "Module for text manipulation"; diff --git a/pkgs/development/python-modules/jarowinkler/default.nix b/pkgs/development/python-modules/jarowinkler/default.nix index a0196265b845..a14d2341dad5 100644 --- a/pkgs/development/python-modules/jarowinkler/default.nix +++ b/pkgs/development/python-modules/jarowinkler/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, rapidfuzz -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + rapidfuzz, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-B3upTBNqMyi+CH7Zx04wceEXjGJnr6S3BIl87AQkfbo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - rapidfuzz - ]; + propagatedBuildInputs = [ rapidfuzz ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/javaobj-py3/default.nix b/pkgs/development/python-modules/javaobj-py3/default.nix index 2c303784a87a..2bc51a204125 100644 --- a/pkgs/development/python-modules/javaobj-py3/default.nix +++ b/pkgs/development/python-modules/javaobj-py3/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, isPy27 -, lib -, numpy +{ + buildPythonPackage, + fetchPypi, + isPy27, + lib, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/javaproperties/default.nix b/pkgs/development/python-modules/javaproperties/default.nix index 28ab53ce98a4..52627e564125 100644 --- a/pkgs/development/python-modules/javaproperties/default.nix +++ b/pkgs/development/python-modules/javaproperties/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, six -, pytestCheckHook -, python-dateutil +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + six, + pytestCheckHook, + python-dateutil, }: buildPythonPackage rec { @@ -19,26 +20,18 @@ buildPythonPackage rec { sha256 = "16rcdw5gd4a21v2xb1j166lc9z2dqcv68gqvk5mvpnm0x6nwadgp"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ python-dateutil pytestCheckHook ]; - disabledTests = [ - "time" - ]; + disabledTests = [ "time" ]; - disabledTestPaths = [ - "test/test_propclass.py" - ]; + disabledTestPaths = [ "test/test_propclass.py" ]; meta = with lib; { description = "Microsoft Azure API Management Client Library for Python"; diff --git a/pkgs/development/python-modules/jax-jumpy/default.nix b/pkgs/development/python-modules/jax-jumpy/default.nix index f37677da0283..1fbda8b2cd3e 100644 --- a/pkgs/development/python-modules/jax-jumpy/default.nix +++ b/pkgs/development/python-modules/jax-jumpy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jax/default.nix b/pkgs/development/python-modules/jax/default.nix index 80b02765550f..95e85bf8e2b2 100644 --- a/pkgs/development/python-modules/jax/default.nix +++ b/pkgs/development/python-modules/jax/default.nix @@ -1,23 +1,24 @@ -{ lib -, blas -, buildPythonPackage -, callPackage -, setuptools -, importlib-metadata -, fetchFromGitHub -, jaxlib -, jaxlib-bin -, hypothesis -, lapack -, matplotlib -, ml-dtypes -, numpy -, opt-einsum -, pytestCheckHook -, pytest-xdist -, pythonOlder -, scipy -, stdenv +{ + lib, + blas, + buildPythonPackage, + callPackage, + setuptools, + importlib-metadata, + fetchFromGitHub, + jaxlib, + jaxlib-bin, + hypothesis, + lapack, + matplotlib, + ml-dtypes, + numpy, + opt-einsum, + pytestCheckHook, + pytest-xdist, + pythonOlder, + scipy, + stdenv, }: let @@ -42,9 +43,7 @@ buildPythonPackage rec { hash = "sha256-qSHPwi3is6Ts7pz5s4KzQHBMbcjGp+vAOsejW3o36Ek="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # The version is automatically set to ".dev" if this variable is not set. # https://github.com/google/jax/commit/e01f2617b85c5bdffc5ffb60b3d8d8ca9519a1f3 @@ -89,44 +88,47 @@ buildPythonPackage rec { export TEST_UNDECLARED_OUTPUTS_DIR=$(mktemp -d) ''; - disabledTests = [ - # Exceeds tolerance when the machine is busy - "test_custom_linear_solve_aux" - # UserWarning: Explicitly requested dtype - # requested in astype is not available, and will be truncated to - # dtype float32. (With numpy 1.24) - "testKde3" - "testKde5" - "testKde6" - # Invokes python manually in a subprocess, which does not have the correct dependencies - # ImportError: This version of jax requires jaxlib version >= 0.4.19. - "test_no_log_spam" - ] ++ lib.optionals usingMKL [ - # See - # * https://github.com/google/jax/issues/9705 - # * https://discourse.nixos.org/t/getting-different-results-for-the-same-build-on-two-equally-configured-machines/17921 - # * https://github.com/NixOS/nixpkgs/issues/161960 - "test_custom_linear_solve_cholesky" - "test_custom_root_with_aux" - "testEigvalsGrad_shape" - ] ++ lib.optionals stdenv.isAarch64 [ - # See https://github.com/google/jax/issues/14793. - "test_for_loop_fixpoint_correctly_identifies_loop_varying_residuals_unrolled_for_loop" - "testQdwhWithRandomMatrix3" - "testScanGrad_jit_scan" + disabledTests = + [ + # Exceeds tolerance when the machine is busy + "test_custom_linear_solve_aux" + # UserWarning: Explicitly requested dtype + # requested in astype is not available, and will be truncated to + # dtype float32. (With numpy 1.24) + "testKde3" + "testKde5" + "testKde6" + # Invokes python manually in a subprocess, which does not have the correct dependencies + # ImportError: This version of jax requires jaxlib version >= 0.4.19. + "test_no_log_spam" + ] + ++ lib.optionals usingMKL [ + # See + # * https://github.com/google/jax/issues/9705 + # * https://discourse.nixos.org/t/getting-different-results-for-the-same-build-on-two-equally-configured-machines/17921 + # * https://github.com/NixOS/nixpkgs/issues/161960 + "test_custom_linear_solve_cholesky" + "test_custom_root_with_aux" + "testEigvalsGrad_shape" + ] + ++ lib.optionals stdenv.isAarch64 [ + # See https://github.com/google/jax/issues/14793. + "test_for_loop_fixpoint_correctly_identifies_loop_varying_residuals_unrolled_for_loop" + "testQdwhWithRandomMatrix3" + "testScanGrad_jit_scan" - # See https://github.com/google/jax/issues/17867. - "test_array" - "test_async" - "test_copy0" - "test_device_put" - "test_make_array_from_callback" - "test_make_array_from_single_device_arrays" + # See https://github.com/google/jax/issues/17867. + "test_array" + "test_async" + "test_copy0" + "test_device_put" + "test_make_array_from_callback" + "test_make_array_from_single_device_arrays" - # Fails on some hardware due to some numerical error - # See https://github.com/google/jax/issues/18535 - "testQdwhWithOnRankDeficientInput5" - ]; + # Fails on some hardware due to some numerical error + # See https://github.com/google/jax/issues/18535 + "testQdwhWithOnRankDeficientInput5" + ]; disabledTestPaths = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ # RuntimeWarning: invalid value encountered in cast diff --git a/pkgs/development/python-modules/jax/test-cuda.nix b/pkgs/development/python-modules/jax/test-cuda.nix index d156061f3849..5aca523f3177 100644 --- a/pkgs/development/python-modules/jax/test-cuda.nix +++ b/pkgs/development/python-modules/jax/test-cuda.nix @@ -1,17 +1,25 @@ -{ jax -, jaxlib -, pkgs +{ + jax, + jaxlib, + pkgs, }: -pkgs.writers.writePython3Bin "jax-test-cuda" { libraries = [ jax jaxlib ]; } '' - import jax - from jax import random +pkgs.writers.writePython3Bin "jax-test-cuda" + { + libraries = [ + jax + jaxlib + ]; + } + '' + import jax + from jax import random - assert jax.devices()[0].platform == "gpu" + assert jax.devices()[0].platform == "gpu" - rng = random.PRNGKey(0) - x = random.normal(rng, (100, 100)) - x @ x + rng = random.PRNGKey(0) + x = random.normal(rng, (100, 100)) + x @ x - print("success!") -'' + print("success!") + '' diff --git a/pkgs/development/python-modules/jaxlib/bin.nix b/pkgs/development/python-modules/jaxlib/bin.nix index d2bf3604a78d..5d4943a97ced 100644 --- a/pkgs/development/python-modules/jaxlib/bin.nix +++ b/pkgs/development/python-modules/jaxlib/bin.nix @@ -4,23 +4,24 @@ # See `python3Packages.jax.passthru` for CUDA tests. -{ absl-py -, autoAddDriverRunpath -, autoPatchelfHook -, buildPythonPackage -, config -, fetchPypi -, fetchurl -, flatbuffers -, jaxlib-build -, lib -, ml-dtypes -, python -, scipy -, stdenv +{ + absl-py, + autoAddDriverRunpath, + autoPatchelfHook, + buildPythonPackage, + config, + fetchPypi, + fetchurl, + flatbuffers, + jaxlib-build, + lib, + ml-dtypes, + python, + scipy, + stdenv, # Options: -, cudaSupport ? config.cudaSupport -, cudaPackages + cudaSupport ? config.cudaSupport, + cudaPackages, }: let @@ -30,27 +31,41 @@ let inherit (python) pythonVersion; - cudaLibPath = lib.makeLibraryPath (with cudaPackages; [ - cuda_cudart.lib # libcudart.so - cuda_cupti.lib # libcupti.so - cudnn.lib # libcudnn.so - libcufft.lib # libcufft.so - libcusolver.lib # libcusolver.so - libcusparse.lib # libcusparse.so - ]); + cudaLibPath = lib.makeLibraryPath ( + with cudaPackages; + [ + cuda_cudart.lib # libcudart.so + cuda_cupti.lib # libcupti.so + cudnn.lib # libcudnn.so + libcufft.lib # libcufft.so + libcusolver.lib # libcusolver.so + libcusparse.lib # libcusparse.so + ] + ); # As of 2023-06-06, google/jax upstream is no longer publishing CPU-only wheels to their GCS bucket. Instead the # official instructions recommend installing CPU-only versions via PyPI. cpuSrcs = let - getSrcFromPypi = { platform, dist, hash }: fetchPypi { - inherit version platform dist hash; - pname = "jaxlib"; - format = "wheel"; - # See the `disabled` attr comment below. - python = dist; - abi = dist; - }; + getSrcFromPypi = + { + platform, + dist, + hash, + }: + fetchPypi { + inherit + version + platform + dist + hash + ; + pname = "jaxlib"; + format = "wheel"; + # See the `disabled` attr comment below. + python = dist; + abi = dist; + }; in { "3.9-x86_64-linux" = getSrcFromPypi { @@ -145,26 +160,33 @@ let hash = "sha256-ixWMaIChy4Ammsn23/3cCoala0lFibuUxyUr3tjfFKU="; }; }; - in buildPythonPackage { pname = "jaxlib"; inherit version; format = "wheel"; - disabled = !(pythonVersion == "3.9" || pythonVersion == "3.10" || pythonVersion == "3.11" || pythonVersion == "3.12"); + disabled = + !( + pythonVersion == "3.9" + || pythonVersion == "3.10" + || pythonVersion == "3.11" + || pythonVersion == "3.12" + ); # See https://discourse.nixos.org/t/ofborg-does-not-respect-meta-platforms/27019/6. src = if !cudaSupport then - ( - cpuSrcs."${pythonVersion}-${stdenv.hostPlatform.system}" - or (throw "jaxlib-bin is not supported on ${stdenv.hostPlatform.system}") - ) else gpuSrcs."${gpuSrcVersionString}"; + (cpuSrcs."${pythonVersion}-${stdenv.hostPlatform.system}" + or (throw "jaxlib-bin is not supported on ${stdenv.hostPlatform.system}") + ) + else + gpuSrcs."${gpuSrcVersionString}"; # Prebuilt wheels are dynamically linked against things that nix can't find. # Run `autoPatchelfHook` to automagically fix them. - nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ] + nativeBuildInputs = + lib.optionals stdenv.isLinux [ autoPatchelfHook ] ++ lib.optionals cudaSupport [ autoAddDriverRunpath ]; # Dynamic link dependencies buildInputs = [ stdenv.cc.cc.lib ]; @@ -208,7 +230,11 @@ buildPythonPackage { sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.asl20; maintainers = with maintainers; [ samuela ]; - platforms = [ "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ]; + platforms = [ + "aarch64-darwin" + "x86_64-linux" + "x86_64-darwin" + ]; broken = !(cudaSupport -> lib.versionAtLeast cudaVersion "11.1") || !(cudaSupport -> lib.versionAtLeast cudaPackages.cudnn.version "8.2") diff --git a/pkgs/development/python-modules/jaxlib/default.nix b/pkgs/development/python-modules/jaxlib/default.nix index 8854d7927ea6..8366f11d8a26 100644 --- a/pkgs/development/python-modules/jaxlib/default.nix +++ b/pkgs/development/python-modules/jaxlib/default.nix @@ -1,57 +1,63 @@ -{ lib -, pkgs -, stdenv +{ + lib, + pkgs, + stdenv, # Build-time dependencies: -, addOpenGLRunpath -, autoAddDriverRunpath -, bazel_6 -, binutils -, buildBazelPackage -, buildPythonPackage -, cctools -, curl -, cython -, fetchFromGitHub -, git -, IOKit -, jsoncpp -, nsync -, openssl -, pybind11 -, setuptools -, symlinkJoin -, wheel -, build -, which + addOpenGLRunpath, + autoAddDriverRunpath, + bazel_6, + binutils, + buildBazelPackage, + buildPythonPackage, + cctools, + curl, + cython, + fetchFromGitHub, + git, + IOKit, + jsoncpp, + nsync, + openssl, + pybind11, + setuptools, + symlinkJoin, + wheel, + build, + which, # Python dependencies: -, absl-py -, flatbuffers -, ml-dtypes -, numpy -, scipy -, six + absl-py, + flatbuffers, + ml-dtypes, + numpy, + scipy, + six, # Runtime dependencies: -, double-conversion -, giflib -, libjpeg_turbo -, python -, snappy -, zlib + double-conversion, + giflib, + libjpeg_turbo, + python, + snappy, + zlib, -, config + config, # CUDA flags: -, cudaSupport ? config.cudaSupport -, cudaPackages + cudaSupport ? config.cudaSupport, + cudaPackages, # MKL: -, mklSupport ? true + mklSupport ? true, }@inputs: let - inherit (cudaPackages) cudaFlags cudaVersion cudnn nccl; + inherit (cudaPackages) + cudaFlags + cudaVersion + cudnn + nccl + ; pname = "jaxlib"; version = "0.4.28"; @@ -169,8 +175,10 @@ let arch = # KeyError: ('Linux', 'arm64') - if effectiveStdenv.hostPlatform.isLinux && effectiveStdenv.hostPlatform.linuxArch == "arm64" then "aarch64" - else effectiveStdenv.hostPlatform.linuxArch; + if effectiveStdenv.hostPlatform.isLinux && effectiveStdenv.hostPlatform.linuxArch == "arm64" then + "aarch64" + else + effectiveStdenv.hostPlatform.linuxArch; xla = effectiveStdenv.mkDerivation { pname = "xla-src"; @@ -221,30 +229,27 @@ let wheel build which - ] ++ lib.optionals effectiveStdenv.isDarwin [ - cctools - ]; + ] ++ lib.optionals effectiveStdenv.isDarwin [ cctools ]; - buildInputs = [ - curl - double-conversion - giflib - jsoncpp - libjpeg_turbo - numpy - openssl - pkgs.flatbuffers - pkgs.protobuf - pybind11 - scipy - six - snappy - zlib - ] ++ lib.optionals effectiveStdenv.isDarwin [ - IOKit - ] ++ lib.optionals (!effectiveStdenv.isDarwin) [ - nsync - ]; + buildInputs = + [ + curl + double-conversion + giflib + jsoncpp + libjpeg_turbo + numpy + openssl + pkgs.flatbuffers + pkgs.protobuf + pybind11 + scipy + six + snappy + zlib + ] + ++ lib.optionals effectiveStdenv.isDarwin [ IOKit ] + ++ lib.optionals (!effectiveStdenv.isDarwin) [ nsync ]; # We don't want to be quite so picky regarding bazel version postPatch = '' @@ -275,30 +280,32 @@ let echo "#!${effectiveStdenv.shell}" > dummy-ldconfig/ldconfig chmod +x dummy-ldconfig/ldconfig export PATH="$PWD/dummy-ldconfig:$PATH" - '' + - - # Construct .jax_configure.bazelrc. See https://github.com/google/jax/blob/b9824d7de3cb30f1df738cc42e486db3e9d915ff/build/build.py#L259-L345 - # for more info. We assume - # * `cpu = None` - # * `enable_nccl = True` - # * `target_cpu_features = "release"` - # * `rocm_amdgpu_targets = None` - # * `enable_rocm = False` - # * `build_gpu_plugin = False` - # * `use_clang = False` (Should we use `effectiveStdenv.cc.isClang` instead?) - # - # Note: We should try just running https://github.com/google/jax/blob/ceb198582b62b9e6f6bdf20ab74839b0cf1db16e/build/build.py#L259-L266 - # instead of duplicating the logic here. Perhaps we can leverage the - # `--configure_only` flag (https://github.com/google/jax/blob/ceb198582b62b9e6f6bdf20ab74839b0cf1db16e/build/build.py#L544-L548)? '' - cat < ./.jax_configure.bazelrc - build --strategy=Genrule=standalone - build --repo_env PYTHON_BIN_PATH="${python}/bin/python" - build --action_env=PYENV_ROOT - build --python_path="${python}/bin/python" - build --distinct_host_configuration=false - build --define PROTOBUF_INCLUDE_PATH="${pkgs.protobuf}/include" - '' + lib.optionalString cudaSupport '' + + + + # Construct .jax_configure.bazelrc. See https://github.com/google/jax/blob/b9824d7de3cb30f1df738cc42e486db3e9d915ff/build/build.py#L259-L345 + # for more info. We assume + # * `cpu = None` + # * `enable_nccl = True` + # * `target_cpu_features = "release"` + # * `rocm_amdgpu_targets = None` + # * `enable_rocm = False` + # * `build_gpu_plugin = False` + # * `use_clang = False` (Should we use `effectiveStdenv.cc.isClang` instead?) + # + # Note: We should try just running https://github.com/google/jax/blob/ceb198582b62b9e6f6bdf20ab74839b0cf1db16e/build/build.py#L259-L266 + # instead of duplicating the logic here. Perhaps we can leverage the + # `--configure_only` flag (https://github.com/google/jax/blob/ceb198582b62b9e6f6bdf20ab74839b0cf1db16e/build/build.py#L544-L548)? + '' + cat < ./.jax_configure.bazelrc + build --strategy=Genrule=standalone + build --repo_env PYTHON_BIN_PATH="${python}/bin/python" + build --action_env=PYENV_ROOT + build --python_path="${python}/bin/python" + build --distinct_host_configuration=false + build --define PROTOBUF_INCLUDE_PATH="${pkgs.protobuf}/include" + '' + + lib.optionalString cudaSupport '' build --config=cuda build --action_env CUDA_TOOLKIT_PATH="${cuda_build_deps_joined}" build --action_env CUDNN_INSTALL_PATH="${cudnn}" @@ -306,67 +313,85 @@ let build --action_env TF_CUDA_VERSION="${lib.versions.majorMinor cudaVersion}" build --action_env TF_CUDNN_VERSION="${lib.versions.major cudnn.version}" build:cuda --action_env TF_CUDA_COMPUTE_CAPABILITIES="${builtins.concatStringsSep "," cudaFlags.realArches}" - '' + - # Note that upstream conditions this on `wheel_cpu == "x86_64"`. We just - # rely on `effectiveStdenv.hostPlatform.avxSupport` instead. So far so - # good. See https://github.com/google/jax/blob/b9824d7de3cb30f1df738cc42e486db3e9d915ff/build/build.py#L322 - # for upstream's version. - lib.optionalString (effectiveStdenv.hostPlatform.avxSupport && effectiveStdenv.hostPlatform.isUnix) '' - build --config=avx_posix - '' + lib.optionalString mklSupport '' - build --config=mkl_open_source_only - '' + '' + + + # Note that upstream conditions this on `wheel_cpu == "x86_64"`. We just + # rely on `effectiveStdenv.hostPlatform.avxSupport` instead. So far so + # good. See https://github.com/google/jax/blob/b9824d7de3cb30f1df738cc42e486db3e9d915ff/build/build.py#L322 + # for upstream's version. + lib.optionalString (effectiveStdenv.hostPlatform.avxSupport && effectiveStdenv.hostPlatform.isUnix) + '' + build --config=avx_posix + '' + + lib.optionalString mklSupport '' + build --config=mkl_open_source_only + '' + + '' CFG ''; # Make sure Bazel knows about our configuration flags during fetching so that the # relevant dependencies can be downloaded. - bazelFlags = [ - "-c opt" - # See https://bazel.build/external/advanced#overriding-repositories for - # information on --override_repository flag. - "--override_repository=xla=${xla}" - ] ++ lib.optionals effectiveStdenv.cc.isClang [ - # bazel depends on the compiler frontend automatically selecting these flags based on file - # extension but our clang doesn't. - # https://github.com/NixOS/nixpkgs/issues/150655 - "--cxxopt=-x" - "--cxxopt=c++" - "--host_cxxopt=-x" - "--host_cxxopt=c++" - ]; + bazelFlags = + [ + "-c opt" + # See https://bazel.build/external/advanced#overriding-repositories for + # information on --override_repository flag. + "--override_repository=xla=${xla}" + ] + ++ lib.optionals effectiveStdenv.cc.isClang [ + # bazel depends on the compiler frontend automatically selecting these flags based on file + # extension but our clang doesn't. + # https://github.com/NixOS/nixpkgs/issues/150655 + "--cxxopt=-x" + "--cxxopt=c++" + "--host_cxxopt=-x" + "--host_cxxopt=c++" + ]; # We intentionally overfetch so we can share the fetch derivation across all the different configurations fetchAttrs = { TF_SYSTEM_LIBS = lib.concatStringsSep "," tf_system_libs; # we have to force @mkl_dnn_v1 since it's not needed on darwin - bazelTargets = [ bazelRunTarget "@mkl_dnn_v1//:mkl_dnn" ]; - bazelFlags = bazelFlags ++ [ - "--config=avx_posix" - "--config=mkl_open_source_only" - ] ++ lib.optionals cudaSupport [ - # ideally we'd add this unconditionally too, but it doesn't work on darwin - # we make this conditional on `cudaSupport` instead of the system, so that the hash for both - # the cuda and the non-cuda deps can be computed on linux, since a lot of contributors don't - # have access to darwin machines - "--config=cuda" + bazelTargets = [ + bazelRunTarget + "@mkl_dnn_v1//:mkl_dnn" ]; + bazelFlags = + bazelFlags + ++ [ + "--config=avx_posix" + "--config=mkl_open_source_only" + ] + ++ lib.optionals cudaSupport [ + # ideally we'd add this unconditionally too, but it doesn't work on darwin + # we make this conditional on `cudaSupport` instead of the system, so that the hash for both + # the cuda and the non-cuda deps can be computed on linux, since a lot of contributors don't + # have access to darwin machines + "--config=cuda" + ]; - sha256 = (if cudaSupport then { - x86_64-linux = "sha256-VGNMf5/DgXbgsu1w5J1Pmrukw+7UO31BNU+crKVsX5k="; - } else { - x86_64-linux = "sha256-uOoAyMBLHPX6jzdN43b5wZV5eW0yI8sCDD7BSX2h4oQ="; - aarch64-linux = "sha256-+SnGKY9LIT1Qhu/x6Uh7sHRaAEjlc//qyKj1m4t16PA="; - }).${effectiveStdenv.system} or (throw "jaxlib: unsupported system: ${effectiveStdenv.system}"); + sha256 = + ( + if cudaSupport then + { x86_64-linux = "sha256-VGNMf5/DgXbgsu1w5J1Pmrukw+7UO31BNU+crKVsX5k="; } + else + { + x86_64-linux = "sha256-uOoAyMBLHPX6jzdN43b5wZV5eW0yI8sCDD7BSX2h4oQ="; + aarch64-linux = "sha256-+SnGKY9LIT1Qhu/x6Uh7sHRaAEjlc//qyKj1m4t16PA="; + } + ).${effectiveStdenv.system} or (throw "jaxlib: unsupported system: ${effectiveStdenv.system}"); }; buildAttrs = { outputs = [ "out" ]; - TF_SYSTEM_LIBS = lib.concatStringsSep "," (tf_system_libs ++ lib.optionals (!effectiveStdenv.isDarwin) [ - "nsync" # fails to build on darwin - ]); + TF_SYSTEM_LIBS = lib.concatStringsSep "," ( + tf_system_libs + ++ lib.optionals (!effectiveStdenv.isDarwin) [ + "nsync" # fails to build on darwin + ] + ); # Note: we cannot do most of this patching at `patch` phase as the deps # are not available yet. Framework search paths aren't added by bintools @@ -389,16 +414,18 @@ let "macosx_10_9_${arch}" else if effectiveStdenv.system == "aarch64-darwin" then "macosx_11_0_${arch}" - else throw "Unsupported target platform: ${effectiveStdenv.hostPlatform}"; - + else + throw "Unsupported target platform: ${effectiveStdenv.hostPlatform}"; in buildPythonPackage { inherit meta pname version; format = "wheel"; src = - let cp = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}"; - in "${bazel-build}/jaxlib-${version}-${cp}-${cp}-${platformTag}.whl"; + let + cp = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}"; + in + "${bazel-build}/jaxlib-${version}-${cp}-${cp}-${platformTag}.whl"; # Note that jaxlib looks for "ptxas" in $PATH. See https://github.com/NixOS/nixpkgs/pull/164176#discussion_r828801621 # for more info. @@ -407,7 +434,13 @@ buildPythonPackage { ln -s ${cudaPackages.cuda_nvcc.bin}/bin/ptxas $out/bin/ptxas find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do - patchelf --add-rpath "${lib.makeLibraryPath [cuda_libs_joined cudnn nccl]}" "$lib" + patchelf --add-rpath "${ + lib.makeLibraryPath [ + cuda_libs_joined + cudnn + nccl + ] + }" "$lib" done ''; diff --git a/pkgs/development/python-modules/jaxopt/default.nix b/pkgs/development/python-modules/jaxopt/default.nix index 1216b15f83f2..83a847b5a2f4 100644 --- a/pkgs/development/python-modules/jaxopt/default.nix +++ b/pkgs/development/python-modules/jaxopt/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, pytest-xdist -, pytestCheckHook -, setuptools -, absl-py -, cvxpy -, jax -, jaxlib -, matplotlib -, numpy -, optax -, scipy -, scikit-learn +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + pytest-xdist, + pytestCheckHook, + setuptools, + absl-py, + cvxpy, + jax, + jaxlib, + matplotlib, + numpy, + optax, + scipy, + scikit-learn, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ absl-py @@ -71,21 +70,23 @@ buildPythonPackage rec { "jaxopt.tree_util" ]; - disabledTests = [ - # https://github.com/google/jaxopt/issues/592 - "test_solve_sparse" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # https://github.com/google/jaxopt/issues/577 - "test_binary_logit_log_likelihood" - "test_solve_sparse" - "test_logreg_with_intercept_manual_loop3" + disabledTests = + [ + # https://github.com/google/jaxopt/issues/592 + "test_solve_sparse" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # https://github.com/google/jaxopt/issues/577 + "test_binary_logit_log_likelihood" + "test_solve_sparse" + "test_logreg_with_intercept_manual_loop3" - # https://github.com/google/jaxopt/issues/593 - # Makes the test suite crash - "test_dtype_consistency" - # AssertionError: Array(0.01411963, dtype=float32) not less than or equal to 0.01 - "test_multiclass_logreg6" - ]; + # https://github.com/google/jaxopt/issues/593 + # Makes the test suite crash + "test_dtype_consistency" + # AssertionError: Array(0.01411963, dtype=float32) not less than or equal to 0.01 + "test_multiclass_logreg6" + ]; meta = with lib; { homepage = "https://jaxopt.github.io"; diff --git a/pkgs/development/python-modules/jaxtyping/default.nix b/pkgs/development/python-modules/jaxtyping/default.nix index b64ab981913a..298ae13d5082 100644 --- a/pkgs/development/python-modules/jaxtyping/default.nix +++ b/pkgs/development/python-modules/jaxtyping/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, pythonRelaxDepsHook -, numpy -, typeguard -, typing-extensions -, cloudpickle -, equinox -, ipython -, jax -, jaxlib -, pytestCheckHook -, tensorflow -, torch +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + pythonRelaxDepsHook, + numpy, + typeguard, + typing-extensions, + cloudpickle, + equinox, + ipython, + jax, + jaxlib, + pytestCheckHook, + tensorflow, + torch, }: let @@ -43,9 +44,7 @@ let typing-extensions ]; - pythonRelaxDeps = [ - "typeguard" - ]; + pythonRelaxDeps = [ "typeguard" ]; nativeCheckInputs = [ cloudpickle @@ -78,4 +77,5 @@ let maintainers = with maintainers; [ GaetanLepage ]; }; }; - in self +in +self diff --git a/pkgs/development/python-modules/jaydebeapi/default.nix b/pkgs/development/python-modules/jaydebeapi/default.nix index 3aa26ca020f7..0f8b13535ca7 100644 --- a/pkgs/development/python-modules/jaydebeapi/default.nix +++ b/pkgs/development/python-modules/jaydebeapi/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jpype1 +{ + lib, + buildPythonPackage, + fetchPypi, + jpype1, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "f25e9307fbb5960cb035394c26e37731b64cc465b197c4344cee85ec450ab92f"; }; - propagatedBuildInputs = [ - jpype1 - ]; + propagatedBuildInputs = [ jpype1 ]; meta = with lib; { homepage = "https://github.com/baztian/jaydebeapi"; diff --git a/pkgs/development/python-modules/jc/default.nix b/pkgs/development/python-modules/jc/default.nix index 0b29b126af6f..23da7d1ca800 100644 --- a/pkgs/development/python-modules/jc/default.nix +++ b/pkgs/development/python-modules/jc/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPackages -, buildPythonPackage -, fetchFromGitHub -, installShellFiles -, ruamel-yaml -, xmltodict -, pygments -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPackages, + buildPythonPackage, + fetchFromGitHub, + installShellFiles, + ruamel-yaml, + xmltodict, + pygments, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,15 +25,23 @@ buildPythonPackage rec { hash = "sha256-SDZ92m4TVH5/ldGkVZspzIrR0G1vHOv1OvAOSaWYkZ0="; }; - propagatedBuildInputs = [ ruamel-yaml xmltodict pygments ]; + propagatedBuildInputs = [ + ruamel-yaml + xmltodict + pygments + ]; nativeBuildInputs = [ installShellFiles ]; - postInstall = let emulator = stdenv.hostPlatform.emulator buildPackages; in '' - installShellCompletion --cmd jc \ - --bash <(${emulator} $out/bin/jc --bash-comp) \ - --zsh <(${emulator} $out/bin/jc --zsh-comp) - ''; + postInstall = + let + emulator = stdenv.hostPlatform.emulator buildPackages; + in + '' + installShellCompletion --cmd jc \ + --bash <(${emulator} $out/bin/jc --bash-comp) \ + --zsh <(${emulator} $out/bin/jc --zsh-comp) + ''; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/jdatetime/default.nix b/pkgs/development/python-modules/jdatetime/default.nix index 5d2b4e31acea..585d730cdd76 100644 --- a/pkgs/development/python-modules/jdatetime/default.nix +++ b/pkgs/development/python-modules/jdatetime/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-HdDuIQFgx70wACgDxEPmJgrGAuplsGVlKh1WfTv9yno="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ - "jdatetime" - ]; + pythonImportsCheck = [ "jdatetime" ]; meta = with lib; { description = "Jalali datetime binding"; diff --git a/pkgs/development/python-modules/jdcal/default.nix b/pkgs/development/python-modules/jdcal/default.nix index 6278be96e10c..88557243d3a5 100644 --- a/pkgs/development/python-modules/jdcal/default.nix +++ b/pkgs/development/python-modules/jdcal/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jedi-language-server/default.nix b/pkgs/development/python-modules/jedi-language-server/default.nix index 0a67730726bc..2326fd0acb3a 100644 --- a/pkgs/development/python-modules/jedi-language-server/default.nix +++ b/pkgs/development/python-modules/jedi-language-server/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, docstring-to-markdown -, fetchFromGitHub -, jedi -, lsprotocol -, poetry-core -, pygls -, pydantic -, pyhamcrest -, pytestCheckHook -, python-lsp-jsonrpc -, pythonOlder -, stdenv +{ + lib, + buildPythonPackage, + docstring-to-markdown, + fetchFromGitHub, + jedi, + lsprotocol, + poetry-core, + pygls, + pydantic, + pyhamcrest, + pytestCheckHook, + python-lsp-jsonrpc, + pythonOlder, + stdenv, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-RDLwL9AZ3G8CzVwDtWqFFZNH/ulpHeFBhglbWNv/ZIk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ docstring-to-markdown @@ -56,9 +55,7 @@ buildPythonPackage rec { "test_publish_diagnostics_on_save" ]; - pythonImportsCheck = [ - "jedi_language_server" - ]; + pythonImportsCheck = [ "jedi_language_server" ]; meta = with lib; { description = "A Language Server for the latest version(s) of Jedi"; diff --git a/pkgs/development/python-modules/jedi/default.nix b/pkgs/development/python-modules/jedi/default.nix index eb90d3c907ed..65475c1b2c0a 100644 --- a/pkgs/development/python-modules/jedi/default.nix +++ b/pkgs/development/python-modules/jedi/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, parso + # dependencies + parso, -# tests -, attrs -, pytestCheckHook + # tests + attrs, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { fetchSubmodules = true; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - parso - ]; + propagatedBuildInputs = [ parso ]; nativeCheckInputs = [ attrs @@ -47,13 +44,15 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - # sensitive to platform, causes false negatives on darwin - "test_import" - ] ++ lib.optionals (stdenv.isAarch64 && pythonOlder "3.9") [ - # AssertionError: assert 'foo' in ['setup'] - "test_init_extension_module" - ]; + disabledTests = + [ + # sensitive to platform, causes false negatives on darwin + "test_import" + ] + ++ lib.optionals (stdenv.isAarch64 && pythonOlder "3.9") [ + # AssertionError: assert 'foo' in ['setup'] + "test_init_extension_module" + ]; meta = with lib; { description = "An autocompletion tool for Python that can be used for text editors"; diff --git a/pkgs/development/python-modules/jeepney/default.nix b/pkgs/development/python-modules/jeepney/default.nix index 3ba062e1ac54..fafcfb0df3d8 100644 --- a/pkgs/development/python-modules/jeepney/default.nix +++ b/pkgs/development/python-modules/jeepney/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core -, async-timeout -, dbus -, pytest -, pytest-trio -, pytest-asyncio -, testpath -, trio +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, + async-timeout, + dbus, + pytest, + pytest-trio, + pytest-asyncio, + testpath, + trio, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sha256 = "5efe48d255973902f6badc3ce55e2aa6c5c3b3bc642059ef3a91247bcfcc5806"; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ async-timeout diff --git a/pkgs/development/python-modules/jello/default.nix b/pkgs/development/python-modules/jello/default.nix index 0b2d6cff7882..bd945515fff8 100644 --- a/pkgs/development/python-modules/jello/default.nix +++ b/pkgs/development/python-modules/jello/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, installShellFiles -, pygments -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + installShellFiles, + pygments, + unittestCheckHook, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-EN09Kcnw4HNT2roCoQyZkoHEfkM9qxqtneZPuBg46z4="; }; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; - propagatedBuildInputs = [ - pygments - ]; + propagatedBuildInputs = [ pygments ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "jello" ]; diff --git a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix index 4413f081a635..739a0937a4aa 100644 --- a/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix +++ b/pkgs/development/python-modules/jellyfin-apiclient-python/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, certifi -, fetchPypi -, pythonOlder -, requests -, urllib3 -, websocket-client +{ + lib, + buildPythonPackage, + certifi, + fetchPypi, + pythonOlder, + requests, + urllib3, + websocket-client, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no test doCheck = false; - pythonImportsCheck = [ - "jellyfin_apiclient_python" - ]; + pythonImportsCheck = [ "jellyfin_apiclient_python" ]; meta = with lib; { description = "Python API client for Jellyfin"; diff --git a/pkgs/development/python-modules/jellyfish/default.nix b/pkgs/development/python-modules/jellyfish/default.nix index 5afe54567cb4..1bef7eeca9ed 100644 --- a/pkgs/development/python-modules/jellyfish/default.nix +++ b/pkgs/development/python-modules/jellyfish/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, isPy3k -, pytest -, unicodecsv -, rustPlatform -, libiconv +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + isPy3k, + pytest, + unicodecsv, + rustPlatform, + libiconv, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { cargoSetupHook ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; @@ -37,7 +36,10 @@ buildPythonPackage rec { hash = "sha256-Grk+n4VCPjirafcRWWI51jHw/IFUYkBtbXY739j0MFI="; }; - nativeCheckInputs = [ pytest unicodecsv ]; + nativeCheckInputs = [ + pytest + unicodecsv + ]; meta = { homepage = "https://github.com/sunlightlabs/jellyfish"; diff --git a/pkgs/development/python-modules/jenkins-job-builder/default.nix b/pkgs/development/python-modules/jenkins-job-builder/default.nix index 2ed276bfaef3..a74c54dc4149 100644 --- a/pkgs/development/python-modules/jenkins-job-builder/default.nix +++ b/pkgs/development/python-modules/jenkins-job-builder/default.nix @@ -1,10 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi, fasteners -, jinja2 -, pbr -, python-jenkins -, pyyaml -, six -, stevedore +{ + lib, + buildPythonPackage, + fetchPypi, + fasteners, + jinja2, + pbr, + python-jenkins, + pyyaml, + six, + stevedore, }: buildPythonPackage rec { @@ -21,7 +25,15 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - propagatedBuildInputs = [ pbr python-jenkins pyyaml six stevedore fasteners jinja2 ]; + propagatedBuildInputs = [ + pbr + python-jenkins + pyyaml + six + stevedore + fasteners + jinja2 + ]; # Need to fix test deps, relies on stestr and a few other packages that aren't available on nixpkgs checkPhase = "$out/bin/jenkins-jobs --help"; @@ -33,5 +45,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/jenkinsapi/default.nix b/pkgs/development/python-modules/jenkinsapi/default.nix index 0fb7c3327db4..f9a48a833894 100644 --- a/pkgs/development/python-modules/jenkinsapi/default.nix +++ b/pkgs/development/python-modules/jenkinsapi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, mock -, pbr -, pytest-mock -, pytestCheckHook -, pytz -, requests -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + mock, + pbr, + pytest-mock, + pytestCheckHook, + pytz, + requests, + setuptools, + six, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk="; }; - patches = [ - ./pytest-warn-none.patch - ]; + patches = [ ./pytest-warn-none.patch ]; nativeBuildInputs = [ flit-core @@ -59,5 +58,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ drets ] ++ teams.deshaw.members; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/jieba/default.nix b/pkgs/development/python-modules/jieba/default.nix index 99803de03c5b..d6ea70b40011 100644 --- a/pkgs/development/python-modules/jieba/default.nix +++ b/pkgs/development/python-modules/jieba/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, glibcLocales, python, isPy3k }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + glibcLocales, + python, + isPy3k, +}: buildPythonPackage rec { pname = "jieba"; diff --git a/pkgs/development/python-modules/jinja2-ansible-filters/default.nix b/pkgs/development/python-modules/jinja2-ansible-filters/default.nix index 4125a574db2b..ef9afff973b6 100644 --- a/pkgs/development/python-modules/jinja2-ansible-filters/default.nix +++ b/pkgs/development/python-modules/jinja2-ansible-filters/default.nix @@ -1,6 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, jinja2 -, pyyaml +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + pyyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jinja2-git/default.nix b/pkgs/development/python-modules/jinja2-git/default.nix index 518f62c54030..3623ea1c3b2d 100644 --- a/pkgs/development/python-modules/jinja2-git/default.nix +++ b/pkgs/development/python-modules/jinja2-git/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, jinja2 -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + jinja2, + poetry-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jinja2-pluralize/default.nix b/pkgs/development/python-modules/jinja2-pluralize/default.nix index 79416be37564..5a6013e88468 100644 --- a/pkgs/development/python-modules/jinja2-pluralize/default.nix +++ b/pkgs/development/python-modules/jinja2-pluralize/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, inflect -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + inflect, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { inflect ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jinja2_pluralize" - ]; + pythonImportsCheck = [ "jinja2_pluralize" ]; meta = with lib; { description = "Jinja2 pluralize filters"; diff --git a/pkgs/development/python-modules/jinja2-time/default.nix b/pkgs/development/python-modules/jinja2-time/default.nix index 611bc19df824..5a2a020af9c3 100644 --- a/pkgs/development/python-modules/jinja2-time/default.nix +++ b/pkgs/development/python-modules/jinja2-time/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, arrow -, freezegun -, jinja2 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + arrow, + freezegun, + jinja2, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,15 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ arrow jinja2 ]; + propagatedBuildInputs = [ + arrow + jinja2 + ]; - nativeCheckInputs = [ freezegun pytestCheckHook ]; + nativeCheckInputs = [ + freezegun + pytestCheckHook + ]; pythonImportsCheck = [ "jinja2_time" ]; diff --git a/pkgs/development/python-modules/jinja2/default.nix b/pkgs/development/python-modules/jinja2/default.nix index f36f67f1d3d2..ba8f7048c5b6 100644 --- a/pkgs/development/python-modules/jinja2/default.nix +++ b/pkgs/development/python-modules/jinja2/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, python -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, babel -, markupsafe -, pytestCheckHook -, sphinxHook -, pallets-sphinx-themes -, sphinxcontrib-log-cabinet -, sphinx-issues +{ + lib, + stdenv, + python, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + babel, + markupsafe, + pytestCheckHook, + sphinxHook, + pallets-sphinx-themes, + sphinxcontrib-log-cabinet, + sphinx-issues, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -29,27 +30,19 @@ buildPythonPackage rec { hash = "sha256-Sjruesu+cwOu3o6WSNE7i/iKQpKCqmEiqZPwrIAMs2k="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - markupsafe - ]; + propagatedBuildInputs = [ markupsafe ]; passthru.optional-dependencies = { - i18n = [ - babel - ]; + i18n = [ babel ]; }; # Multiple tests run out of stack space on 32bit systems with python2. # See https://github.com/pallets/jinja/issues/1158 doCheck = !stdenv.is32bit; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.i18n; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.i18n; passthru.doc = stdenv.mkDerivation { # Forge look and feel of multi-output derivation as best as we can. @@ -78,7 +71,9 @@ buildPythonPackage rec { inherit meta; }; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { changelog = "https://github.com/pallets/jinja/blob/${version}/CHANGES.rst"; diff --git a/pkgs/development/python-modules/jira/default.nix b/pkgs/development/python-modules/jira/default.nix index 1963fe2e8e89..5e0a57983b5f 100644 --- a/pkgs/development/python-modules/jira/default.nix +++ b/pkgs/development/python-modules/jira/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, defusedxml -, flaky -, ipython -, keyring -, packaging -, pillow -, pyjwt -, pytestCheckHook -, pythonOlder -, requests -, requests-futures -, requests-mock -, requests-oauthlib -, requests-toolbelt -, setuptools -, setuptools-scm -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + defusedxml, + flaky, + ipython, + keyring, + packaging, + pillow, + pyjwt, + pytestCheckHook, + pythonOlder, + requests, + requests-futures, + requests-mock, + requests-oauthlib, + requests-toolbelt, + setuptools, + setuptools-scm, + typing-extensions, }: buildPythonPackage rec { @@ -60,9 +61,7 @@ buildPythonPackage rec { # requests-jwt # requests-keyberos ]; - async = [ - requests-futures - ]; + async = [ requests-futures ]; }; nativeCheckInputs = [ @@ -76,9 +75,7 @@ buildPythonPackage rec { --replace "--cov-report=xml --cov jira" "" ''; - pythonImportsCheck = [ - "jira" - ]; + pythonImportsCheck = [ "jira" ]; # impure tests because of connectivity attempts to jira servers doCheck = false; diff --git a/pkgs/development/python-modules/jishaku/default.nix b/pkgs/development/python-modules/jishaku/default.nix index 4501ffc68e6b..6bff78eceea8 100644 --- a/pkgs/development/python-modules/jishaku/default.nix +++ b/pkgs/development/python-modules/jishaku/default.nix @@ -12,7 +12,7 @@ tabulate, pytestCheckHook, pytest-asyncio, - youtube-dl + youtube-dl, }: buildPythonPackage rec { pname = "jishaku"; diff --git a/pkgs/development/python-modules/jiwer/default.nix b/pkgs/development/python-modules/jiwer/default.nix index 66ab13cdd8fc..847c78c9d60b 100644 --- a/pkgs/development/python-modules/jiwer/default.nix +++ b/pkgs/development/python-modules/jiwer/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, rapidfuzz -, click -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + rapidfuzz, + click, + pythonOlder, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { click ]; - pythonRelaxDeps = [ - "rapidfuzz" - ]; + pythonRelaxDeps = [ "rapidfuzz" ]; - pythonImportsCheck = [ - "jiwer" - ]; + pythonImportsCheck = [ "jiwer" ]; meta = with lib; { description = "A simple and fast python package to evaluate an automatic speech recognition system"; diff --git a/pkgs/development/python-modules/jmespath/default.nix b/pkgs/development/python-modules/jmespath/default.nix index 6a5ef26c4fa5..f6a15f0156f6 100644 --- a/pkgs/development/python-modules/jmespath/default.nix +++ b/pkgs/development/python-modules/jmespath/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jmp/default.nix b/pkgs/development/python-modules/jmp/default.nix index 945e99310366..40f267d61f00 100644 --- a/pkgs/development/python-modules/jmp/default.nix +++ b/pkgs/development/python-modules/jmp/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, jax -, jaxlib -, lib -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + jax, + jaxlib, + lib, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { }; # Wheel requires only `numpy`, but the import needs `jax`. - propagatedBuildInputs = [ - jax - ]; + propagatedBuildInputs = [ jax ]; - pythonImportsCheck = [ - "jmp" - ]; + pythonImportsCheck = [ "jmp" ]; nativeCheckInputs = [ jaxlib diff --git a/pkgs/development/python-modules/joblib/default.nix b/pkgs/development/python-modules/joblib/default.nix index e592c8089f72..764d14a58d97 100644 --- a/pkgs/development/python-modules/joblib/default.nix +++ b/pkgs/development/python-modules/joblib/default.nix @@ -1,24 +1,24 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pythonAtLeast -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pythonAtLeast, + stdenv, -# build-system -, setuptools + # build-system + setuptools, -# propagates (optional, but unspecified) -# https://github.com/joblib/joblib#dependencies -, lz4 -, psutil + # propagates (optional, but unspecified) + # https://github.com/joblib/joblib#dependencies + lz4, + psutil, -# tests -, pytestCheckHook -, threadpoolctl + # tests + pytestCheckHook, + threadpoolctl, }: - buildPythonPackage rec { pname = "joblib"; version = "1.4.0"; @@ -31,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-HrDcCRkZzThEkN6JDLXf1ThBCm1LO1Tu8J+4xQtAmxw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ lz4 @@ -45,21 +43,22 @@ buildPythonPackage rec { threadpoolctl ]; - pytestFlagsArray = [ - "joblib/test" - ]; + pytestFlagsArray = [ "joblib/test" ]; - disabledTests = [ - "test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57 - "test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests - "test_nested_parallel_warnings" # tests is flaky under load - ] ++ lib.optionals stdenv.isDarwin [ - "test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin. - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # deprecation warnings with python3.12 https://github.com/joblib/joblib/issues/1478 - "test_main_thread_renamed_no_warning" - "test_background_thread_parallelism" - ]; + disabledTests = + [ + "test_disk_used" # test_disk_used is broken: https://github.com/joblib/joblib/issues/57 + "test_parallel_call_cached_function_defined_in_jupyter" # jupyter not available during tests + "test_nested_parallel_warnings" # tests is flaky under load + ] + ++ lib.optionals stdenv.isDarwin [ + "test_dispatch_multiprocessing" # test_dispatch_multiprocessing is broken only on Darwin. + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # deprecation warnings with python3.12 https://github.com/joblib/joblib/issues/1478 + "test_main_thread_renamed_no_warning" + "test_background_thread_parallelism" + ]; meta = with lib; { changelog = "https://github.com/joblib/joblib/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/johnnycanencrypt/default.nix b/pkgs/development/python-modules/johnnycanencrypt/default.nix index b65fbca46993..19d02b118987 100644 --- a/pkgs/development/python-modules/johnnycanencrypt/default.nix +++ b/pkgs/development/python-modules/johnnycanencrypt/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, rustPlatform -, pkg-config -, pcsclite -, nettle -, httpx -, pytestCheckHook -, pythonOlder -, vcrpy -, PCSC -, libiconv +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + rustPlatform, + pkg-config, + pcsclite, + nettle, + httpx, + pytestCheckHook, + pythonOlder, + vcrpy, + PCSC, + libiconv, }: buildPythonPackage rec { @@ -34,26 +35,23 @@ buildPythonPackage rec { format = "pyproject"; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; - nativeBuildInputs = [ - pkg-config - ] ++ (with rustPlatform; [ - bindgenHook - cargoSetupHook - maturinBuildHook - ]); + nativeBuildInputs = + [ pkg-config ] + ++ (with rustPlatform; [ + bindgenHook + cargoSetupHook + maturinBuildHook + ]); - buildInputs = [ - nettle - ] ++ lib.optionals stdenv.isLinux [ - pcsclite - ] ++ lib.optionals stdenv.isDarwin [ - PCSC - libiconv - ]; + buildInputs = + [ nettle ] + ++ lib.optionals stdenv.isLinux [ pcsclite ] + ++ lib.optionals stdenv.isDarwin [ + PCSC + libiconv + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/josepy/default.nix b/pkgs/development/python-modules/josepy/default.nix index 5332bf6c4381..955bc33cc223 100644 --- a/pkgs/development/python-modules/josepy/default.nix +++ b/pkgs/development/python-modules/josepy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, poetry-core -, pyopenssl -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + poetry-core, + pyopenssl, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-MIs7+c6CWtTUu6djcs8ZtdwcLOlqnSmPlkKXXmS9E90="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyopenssl cryptography ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "josepy" - ]; + pythonImportsCheck = [ "josepy" ]; meta = with lib; { changelog = "https://github.com/certbot/josepy/blob/v${version}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/joserfc/default.nix b/pkgs/development/python-modules/joserfc/default.nix index ce5e18ec1349..17f5e6ae3b9d 100644 --- a/pkgs/development/python-modules/joserfc/default.nix +++ b/pkgs/development/python-modules/joserfc/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, cryptography -, pycryptodome + # dependencies + cryptography, + pycryptodome, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -25,28 +26,17 @@ buildPythonPackage rec { hash = "sha256-+NFCveMPzE0hSs2Qe20/MDHApXVtU3cR/GPFKPqfVV4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - cryptography - ]; + dependencies = [ cryptography ]; optional-dependencies = { - drafts = [ - pycryptodome - ]; + drafts = [ pycryptodome ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] - ++ lib.flatten (lib.attrValues optional-dependencies); + nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - pythonImportsCheck = [ - "joserfc" - ]; + pythonImportsCheck = [ "joserfc" ]; meta = with lib; { description = "Implementations of JOSE RFCs in Python"; diff --git a/pkgs/development/python-modules/jplephem/default.nix b/pkgs/development/python-modules/jplephem/default.nix index ada4c9552e5a..654db8037d0d 100644 --- a/pkgs/development/python-modules/jplephem/default.nix +++ b/pkgs/development/python-modules/jplephem/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pytestCheckHook, +}: buildPythonPackage rec { pname = "jplephem"; diff --git a/pkgs/development/python-modules/jproperties/default.nix b/pkgs/development/python-modules/jproperties/default.nix index b01f39d0432a..83ba9855a0e2 100644 --- a/pkgs/development/python-modules/jproperties/default.nix +++ b/pkgs/development/python-modules/jproperties/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, six -, pytest-datadir -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + six, + pytest-datadir, + setuptools-scm, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-O+ALeGHMNjW1dc9IRyLzO81k8DW2vbGjuZqXxgrhYjo="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ pytest-datadir @@ -44,9 +41,7 @@ buildPythonPackage rec { "tests/test_simple_utf8.py" ]; - pythonImportsCheck = [ - "jproperties" - ]; + pythonImportsCheck = [ "jproperties" ]; meta = with lib; { description = "Java Property file parser and writer for Python"; diff --git a/pkgs/development/python-modules/jpylyzer/default.nix b/pkgs/development/python-modules/jpylyzer/default.nix index 0fc6f7cc125e..951ce91ce43c 100644 --- a/pkgs/development/python-modules/jpylyzer/default.nix +++ b/pkgs/development/python-modules/jpylyzer/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, six -, lxml -, pytestCheckHook -, doFullCheck ? false # weird filenames cause issues on some filesystems +{ + lib, + fetchFromGitHub, + buildPythonPackage, + six, + lxml, + pytestCheckHook, + doFullCheck ? false, # weird filenames cause issues on some filesystems -# for passthru.tests -, jpylyzer + # for passthru.tests + jpylyzer, }: let @@ -20,8 +21,8 @@ let rev = "0290e98bae9c5480c995954d3f14b4cf0a0395ff"; hash = "sha256-dr3hC6dGd3HNSE4nRj1xrfFSW9cepQ1mdVH8S3YQdtw="; }; - -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "jpylyzer"; version = "2.2.1"; format = "setuptools"; @@ -35,7 +36,10 @@ in buildPythonPackage rec { propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ pytestCheckHook lxml ]; + nativeCheckInputs = [ + pytestCheckHook + lxml + ]; # don't depend on testFiles unless doFullCheck as it may not be extractable # on some filesystems due to weird filenames @@ -43,9 +47,7 @@ in buildPythonPackage rec { sed -i '/^testFilesDir = /ctestFilesDir = "${testFiles}/files"' tests/unit/test_testfiles.py ''; - disabledTestPaths = lib.optionals (!doFullCheck) [ - "tests/unit/test_testfiles.py" - ]; + disabledTestPaths = lib.optionals (!doFullCheck) [ "tests/unit/test_testfiles.py" ]; pythonImportsCheck = [ "jpylyzer" ]; diff --git a/pkgs/development/python-modules/jpype1/default.nix b/pkgs/development/python-modules/jpype1/default.nix index 9aafb10c96e0..d0ffff24d8d3 100644 --- a/pkgs/development/python-modules/jpype1/default.nix +++ b/pkgs/development/python-modules/jpype1/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, packaging -, pythonOlder -, typing-extensions -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + packaging, + pythonOlder, + typing-extensions, + pytest, }: buildPythonPackage rec { @@ -20,15 +21,9 @@ buildPythonPackage rec { hash = "sha256-QlpuGWav3VhItgwmiLyut+QLpQSmhvERRYlmjgYx6Hg="; }; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; # required openjdk (easy) but then there were some class path issues # when running the tests diff --git a/pkgs/development/python-modules/jq/default.nix b/pkgs/development/python-modules/jq/default.nix index 5b369d513cb1..21a272996cf9 100644 --- a/pkgs/development/python-modules/jq/default.nix +++ b/pkgs/development/python-modules/jq/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, jq -, oniguruma -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + jq, + oniguruma, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { env.JQPY_USE_SYSTEM_LIBS = 1; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; buildInputs = [ jq @@ -37,18 +36,14 @@ buildPythonPackage rec { cython jq.pyx ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # intentional behavior change in jq 1.7.1 not reflected upstream "test_given_json_text_then_strings_containing_null_characters_are_preserved" ]; - pythonImportsCheck = [ - "jq" - ]; + pythonImportsCheck = [ "jq" ]; meta = with lib; { description = "Python bindings for jq, the flexible JSON processor"; diff --git a/pkgs/development/python-modules/js2py/default.nix b/pkgs/development/python-modules/js2py/default.nix index 3630c0b38eaf..fd28870e0e76 100644 --- a/pkgs/development/python-modules/js2py/default.nix +++ b/pkgs/development/python-modules/js2py/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonAtLeast -, setuptools -, tzlocal -, six -, pyjsparser +{ + lib, + fetchPypi, + buildPythonPackage, + pythonAtLeast, + setuptools, + tzlocal, + six, + pyjsparser, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-OfOmqoRpGA77o8hncnHfJ8MTMv0bRx3xryr1i4e4ly8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyjsparser diff --git a/pkgs/development/python-modules/jsbeautifier/default.nix b/pkgs/development/python-modules/jsbeautifier/default.nix index 85da49876eb3..ab898c22d6db 100644 --- a/pkgs/development/python-modules/jsbeautifier/default.nix +++ b/pkgs/development/python-modules/jsbeautifier/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, editorconfig -, pytestCheckHook -, pythonOlder -, six +{ + lib, + fetchPypi, + buildPythonPackage, + editorconfig, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jsbeautifier" - ]; + pythonImportsCheck = [ "jsbeautifier" ]; - pytestFlagsArray = [ - "jsbeautifier/tests/testindentation.py" - ]; + pytestFlagsArray = [ "jsbeautifier/tests/testindentation.py" ]; meta = with lib; { description = "JavaScript unobfuscator and beautifier"; diff --git a/pkgs/development/python-modules/jschema-to-python/default.nix b/pkgs/development/python-modules/jschema-to-python/default.nix index fcd80c652d41..de6d39dfbb19 100644 --- a/pkgs/development/python-modules/jschema-to-python/default.nix +++ b/pkgs/development/python-modules/jschema-to-python/default.nix @@ -1,8 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, attrs -, jsonpickle -, pbr -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + jsonpickle, + pbr, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +25,7 @@ buildPythonPackage rec { pbr ]; - nativeCheckInputs =[ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "jschema_to_python" ]; diff --git a/pkgs/development/python-modules/jsmin/default.nix b/pkgs/development/python-modules/jsmin/default.nix index a36c350264be..44b508af55c8 100644 --- a/pkgs/development/python-modules/jsmin/default.nix +++ b/pkgs/development/python-modules/jsmin/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { sha256 = "c0959a121ef94542e807a674142606f7e90214a2b3d1eb17300244bbb5cc2bfc"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "jsmin/test.py" - ]; + pytestFlagsArray = [ "jsmin/test.py" ]; - pythonImportsCheck = [ - "jsmin" - ]; + pythonImportsCheck = [ "jsmin" ]; meta = with lib; { description = "JavaScript minifier"; diff --git a/pkgs/development/python-modules/json-home-client/default.nix b/pkgs/development/python-modules/json-home-client/default.nix index 5f2fa9eaeb6e..fa74eec1676a 100644 --- a/pkgs/development/python-modules/json-home-client/default.nix +++ b/pkgs/development/python-modules/json-home-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, typing-extensions -, uri-template +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + typing-extensions, + uri-template, }: buildPythonPackage rec { @@ -36,6 +37,6 @@ buildPythonPackage rec { description = "Client class for calling http+json APIs in Python"; homepage = "https://github.com/plinss/json_home_client"; license = licenses.mit; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/json-logging/default.nix b/pkgs/development/python-modules/json-logging/default.nix index f904d6d44ac9..ee5805e39a1b 100644 --- a/pkgs/development/python-modules/json-logging/default.nix +++ b/pkgs/development/python-modules/json-logging/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fastapi -, fetchFromGitHub -, flask -, httpx -, pytestCheckHook -, pythonOlder -, pythonAtLeast -, quart -, requests -, sanic -, setuptools -, uvicorn +{ + lib, + buildPythonPackage, + fastapi, + fetchFromGitHub, + flask, + httpx, + pytestCheckHook, + pythonOlder, + pythonAtLeast, + quart, + requests, + sanic, + setuptools, + uvicorn, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace-fail '"written_at",' '"taskName", "written_at",' ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ fastapi @@ -48,17 +47,11 @@ buildPythonPackage rec { uvicorn ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "json_logging" - ]; + pythonImportsCheck = [ "json_logging" ]; - disabledTests = [ - "quart" - ]; + disabledTests = [ "quart" ]; disabledTestPaths = [ # Smoke tests don't always work diff --git a/pkgs/development/python-modules/json-merge-patch/default.nix b/pkgs/development/python-modules/json-merge-patch/default.nix index 9cafcc30fd4b..8e7bce50297e 100644 --- a/pkgs/development/python-modules/json-merge-patch/default.nix +++ b/pkgs/development/python-modules/json-merge-patch/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, }: buildPythonPackage rec { @@ -17,11 +18,11 @@ buildPythonPackage rec { patches = [ # This prevented tests from running (was using a relative import) # https://github.com/OpenDataServices/json-merge-patch/pull/1 - (fetchpatch { - name = "fully-qualified-json-merge-patch-import-on-tests"; - url = "https://patch-diff.githubusercontent.com/raw/OpenDataServices/json-merge-patch/pull/1.patch"; - sha256 = "1k6xsrxsmz03nwcqsf4gf0zsfnl2r20n83npic8z6bqlpl4lidl4"; - }) + (fetchpatch { + name = "fully-qualified-json-merge-patch-import-on-tests"; + url = "https://patch-diff.githubusercontent.com/raw/OpenDataServices/json-merge-patch/pull/1.patch"; + sha256 = "1k6xsrxsmz03nwcqsf4gf0zsfnl2r20n83npic8z6bqlpl4lidl4"; + }) ]; meta = with lib; { diff --git a/pkgs/development/python-modules/json-rpc/default.nix b/pkgs/development/python-modules/json-rpc/default.nix index 458f2edd9d9e..e9d39c3c5863 100644 --- a/pkgs/development/python-modules/json-rpc/default.nix +++ b/pkgs/development/python-modules/json-rpc/default.nix @@ -1,8 +1,16 @@ -{ lib, isPy27, buildPythonPackage, fetchPypi, pytestCheckHook, mock }: +{ + lib, + isPy27, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + mock, +}: let pythonEnv = lib.optional isPy27 mock; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "json-rpc"; version = "1.15.0"; format = "setuptools"; diff --git a/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix b/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix index ce2a48bae9c8..4baea78c8911 100644 --- a/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix +++ b/pkgs/development/python-modules/json-stream-rs-tokenizer/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, cargo -, libiconv -, fetchFromGitHub -, json-stream -, json-stream-rs-tokenizer -, pythonOlder -, rustc -, rustPlatform -, setuptools -, setuptools-rust -, wheel +{ + lib, + stdenv, + buildPythonPackage, + cargo, + libiconv, + fetchFromGitHub, + json-stream, + json-stream-rs-tokenizer, + pythonOlder, + rustc, + rustPlatform, + setuptools, + setuptools-rust, + wheel, }: buildPythonPackage rec { @@ -44,24 +45,20 @@ buildPythonPackage rec { wheel ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; # Tests depend on json-stream, which depends on this package. # To avoid infinite recursion, we only enable tests when building passthru.tests. doCheck = false; - checkInputs = [ - json-stream - ]; + checkInputs = [ json-stream ]; - pythonImportsCheck = [ - "json_stream_rs_tokenizer" - ]; + pythonImportsCheck = [ "json_stream_rs_tokenizer" ]; passthru.tests = { - runTests = json-stream-rs-tokenizer.overrideAttrs (_: { doCheck = true; }); + runTests = json-stream-rs-tokenizer.overrideAttrs (_: { + doCheck = true; + }); }; meta = with lib; { diff --git a/pkgs/development/python-modules/json-stream/default.nix b/pkgs/development/python-modules/json-stream/default.nix index ba191bdcd2e8..26b7ef5f8ea2 100644 --- a/pkgs/development/python-modules/json-stream/default.nix +++ b/pkgs/development/python-modules/json-stream/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, iconv -, pytestCheckHook -, pythonOlder -, requests -, json-stream-rs-tokenizer -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + iconv, + pytestCheckHook, + pythonOlder, + requests, + json-stream-rs-tokenizer, + setuptools, }: buildPythonPackage rec { @@ -22,30 +23,20 @@ buildPythonPackage rec { hash = "sha256-uLRQ6o6OPCOenn440S/tk053o1PBSyl/juNFpc6yW5E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = lib.optionals stdenv.isDarwin [ - iconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ iconv ]; propagatedBuildInputs = [ requests json-stream-rs-tokenizer ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "json_stream" - ]; + pythonImportsCheck = [ "json_stream" ]; - disabledTests = [ - "test_writer" - ]; + disabledTests = [ "test_writer" ]; meta = with lib; { description = "Streaming JSON parser"; diff --git a/pkgs/development/python-modules/json-tricks/default.nix b/pkgs/development/python-modules/json-tricks/default.nix index 1576cd141d4e..f7345149bfc3 100644 --- a/pkgs/development/python-modules/json-tricks/default.nix +++ b/pkgs/development/python-modules/json-tricks/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pytest7CheckHook -, numpy -, pandas -, pytz +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pytest7CheckHook, + numpy, + pandas, + pytz, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pytest7CheckHook ]; - pythonImportsCheck = [ - "json_tricks" - ]; + pythonImportsCheck = [ "json_tricks" ]; meta = with lib; { description = "Extra features for Python JSON handling"; diff --git a/pkgs/development/python-modules/json5/default.nix b/pkgs/development/python-modules/json5/default.nix index 1b071aadb59c..315037ca3648 100644 --- a/pkgs/development/python-modules/json5/default.nix +++ b/pkgs/development/python-modules/json5/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-cshP1kraLENqWuQTlm4HPAP/0ywRRLFOJI8mteWcjR4="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "json5" - ]; + pythonImportsCheck = [ "json5" ]; meta = with lib; { homepage = "https://github.com/dpranke/pyjson5"; diff --git a/pkgs/development/python-modules/jsonable/default.nix b/pkgs/development/python-modules/jsonable/default.nix index 075930f645e5..4dd7c96221e6 100644 --- a/pkgs/development/python-modules/jsonable/default.nix +++ b/pkgs/development/python-modules/jsonable/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jsonconversion/default.nix b/pkgs/development/python-modules/jsonconversion/default.nix index 49e3974e7350..dc4e89d9fa99 100644 --- a/pkgs/development/python-modules/jsonconversion/default.nix +++ b/pkgs/development/python-modules/jsonconversion/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, pytestCheckHook -, pdm-backend -, numpy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + pytestCheckHook, + pdm-backend, + numpy, + setuptools, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jsonconversion" - ]; + pythonImportsCheck = [ "jsonconversion" ]; meta = with lib; { description = "This python module helps converting arbitrary Python objects into JSON strings and back"; diff --git a/pkgs/development/python-modules/jsondate/default.nix b/pkgs/development/python-modules/jsondate/default.nix index f3b99b259b28..91190c8528fa 100644 --- a/pkgs/development/python-modules/jsondate/default.nix +++ b/pkgs/development/python-modules/jsondate/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildPythonPackage, six }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + six, +}: buildPythonPackage rec { version = "0.1.3"; diff --git a/pkgs/development/python-modules/jsondiff/default.nix b/pkgs/development/python-modules/jsondiff/default.nix index dcfa56d686ae..5b5f67ce5264 100644 --- a/pkgs/development/python-modules/jsondiff/default.nix +++ b/pkgs/development/python-modules/jsondiff/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jsonfield/default.nix b/pkgs/development/python-modules/jsonfield/default.nix index 5e36636c8409..bf7e67eb6207 100644 --- a/pkgs/development/python-modules/jsonfield/default.nix +++ b/pkgs/development/python-modules/jsonfield/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchPypi, buildPythonPackage, django, pytestCheckHook, pytest-django }: +{ + lib, + fetchPypi, + buildPythonPackage, + django, + pytestCheckHook, + pytest-django, +}: buildPythonPackage rec { pname = "jsonfield"; @@ -10,7 +17,10 @@ buildPythonPackage rec { sha256 = "0yl828cd0m8jsyr4di6hcjdqmi31ijh5vk57mbpfl7p2gmcq8kky"; }; - nativeCheckInputs = [ pytestCheckHook pytest-django ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-django + ]; preCheck = "export DJANGO_SETTINGS_MODULE=tests.settings"; diff --git a/pkgs/development/python-modules/jsonformatter/default.nix b/pkgs/development/python-modules/jsonformatter/default.nix index f800493b2c93..3fac9cadc97c 100644 --- a/pkgs/development/python-modules/jsonformatter/default.nix +++ b/pkgs/development/python-modules/jsonformatter/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "jsonformatter" - ]; + pythonImportsCheck = [ "jsonformatter" ]; meta = with lib; { description = "jsonformatter is a formatter for python output json log, e.g. output LogStash needed log"; diff --git a/pkgs/development/python-modules/jsonlines/default.nix b/pkgs/development/python-modules/jsonlines/default.nix index 6eb818013e9d..1e8a94e8e1c7 100644 --- a/pkgs/development/python-modules/jsonlines/default.nix +++ b/pkgs/development/python-modules/jsonlines/default.nix @@ -1,9 +1,10 @@ -{ lib -, attrs -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, pythonOlder +{ + lib, + attrs, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-eMpUk5s49OyD+cNGdAeKA2LvpXdKta2QjZIFDnIBKC8="; }; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jsonlines" - ]; + pythonImportsCheck = [ "jsonlines" ]; meta = with lib; { description = "Python library to simplify working with jsonlines and ndjson data"; diff --git a/pkgs/development/python-modules/jsonmerge/default.nix b/pkgs/development/python-modules/jsonmerge/default.nix index 83275f54a9b4..9f636ab57f4e 100644 --- a/pkgs/development/python-modules/jsonmerge/default.nix +++ b/pkgs/development/python-modules/jsonmerge/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jsonschema -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + jsonschema, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jsonpatch/default.nix b/pkgs/development/python-modules/jsonpatch/default.nix index bdae44eb2d42..09c61d708944 100644 --- a/pkgs/development/python-modules/jsonpatch/default.nix +++ b/pkgs/development/python-modules/jsonpatch/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jsonpointer -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jsonpointer, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-JHBB64LExzHQVoFF2xcsqGlNWX/YeEBa1M/TmfeQLWI="; }; - propagatedBuildInputs = [ - jsonpointer - ]; + propagatedBuildInputs = [ jsonpointer ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jsonpatch" - ]; + pythonImportsCheck = [ "jsonpatch" ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; meta = with lib; { description = "Library to apply JSON Patches according to RFC 6902"; diff --git a/pkgs/development/python-modules/jsonpath-ng/default.nix b/pkgs/development/python-modules/jsonpath-ng/default.nix index 0496df1622ff..5e000c6c4131 100644 --- a/pkgs/development/python-modules/jsonpath-ng/default.nix +++ b/pkgs/development/python-modules/jsonpath-ng/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ply -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ply, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Exclude tests that require oslotest "tests/test_jsonpath_rw_ext.py" ]; - pythonImportsCheck = [ - "jsonpath_ng" - ]; + pythonImportsCheck = [ "jsonpath_ng" ]; meta = with lib; { description = "JSONPath implementation"; diff --git a/pkgs/development/python-modules/jsonpath-rw/default.nix b/pkgs/development/python-modules/jsonpath-rw/default.nix index 5801ba47e21f..7542e2f64e36 100644 --- a/pkgs/development/python-modules/jsonpath-rw/default.nix +++ b/pkgs/development/python-modules/jsonpath-rw/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, ply -, six -, decorator +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + ply, + six, + decorator, }: buildPythonPackage rec { @@ -17,7 +18,11 @@ buildPythonPackage rec { sha256 = "05c471281c45ae113f6103d1268ec7a4831a2e96aa80de45edc89b11fac4fbec"; }; - propagatedBuildInputs = [ ply six decorator ]; + propagatedBuildInputs = [ + ply + six + decorator + ]; # ImportError: No module named tests doCheck = false; @@ -28,5 +33,4 @@ buildPythonPackage rec { mainProgram = "jsonpath.py"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/jsonpath/default.nix b/pkgs/development/python-modules/jsonpath/default.nix index 00205eb1907a..d290e59717a3 100644 --- a/pkgs/development/python-modules/jsonpath/default.nix +++ b/pkgs/development/python-modules/jsonpath/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-2H7yvLze1o7pa8NMGAm2lFfs7JsMTdRxZYoSvTkQAtE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jsonpath" - ]; + pythonImportsCheck = [ "jsonpath" ]; - pytestFlagsArray = [ - "test/test*.py" - ]; + pytestFlagsArray = [ "test/test*.py" ]; meta = with lib; { description = "An XPath for JSON"; diff --git a/pkgs/development/python-modules/jsonpickle/default.nix b/pkgs/development/python-modules/jsonpickle/default.nix index fbe0efd86bb3..a36d3429302e 100644 --- a/pkgs/development/python-modules/jsonpickle/default.nix +++ b/pkgs/development/python-modules/jsonpickle/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { rm pytest.ini ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # imports distutils @@ -45,5 +44,4 @@ buildPythonPackage rec { homepage = "http://jsonpickle.github.io/"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/jsonpointer/default.nix b/pkgs/development/python-modules/jsonpointer/default.nix index ff44d8ff978c..72c50ead2090 100644 --- a/pkgs/development/python-modules/jsonpointer/default.nix +++ b/pkgs/development/python-modules/jsonpointer/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { homepage = "https://github.com/stefankoegl/python-json-pointer"; license = licenses.bsd2; # "Modified BSD license, says pypi" }; - } diff --git a/pkgs/development/python-modules/jsonref/default.nix b/pkgs/development/python-modules/jsonref/default.nix index dc12c60aed48..21b128697c5d 100644 --- a/pkgs/development/python-modules/jsonref/default.nix +++ b/pkgs/development/python-modules/jsonref/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pdm-backend -, pdm-pep517 -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pdm-backend, + pdm-pep517, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { pdm-pep517 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "jsonref" - ]; + pythonImportsCheck = [ "jsonref" ]; meta = with lib; { description = "An implementation of JSON Reference for Python"; diff --git a/pkgs/development/python-modules/jsonrpc-async/default.nix b/pkgs/development/python-modules/jsonrpc-async/default.nix index 613d4478af87..1eba81e716f8 100644 --- a/pkgs/development/python-modules/jsonrpc-async/default.nix +++ b/pkgs/development/python-modules/jsonrpc-async/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, jsonrpc-base -, pytest-aiohttp -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + jsonrpc-base, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "jsonrpc_async" - ]; + pythonImportsCheck = [ "jsonrpc_async" ]; meta = with lib; { description = "A JSON-RPC client library for asyncio"; diff --git a/pkgs/development/python-modules/jsonrpc-base/default.nix b/pkgs/development/python-modules/jsonrpc-base/default.nix index f10f9bbb8b82..c4b47c0fc6de 100644 --- a/pkgs/development/python-modules/jsonrpc-base/default.nix +++ b/pkgs/development/python-modules/jsonrpc-base/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { hash = "sha256-AbpuAW+wuGc+Vj4FDFlyB2YbiwDxPLuyAGiNcmGU+Ss="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "jsonrpc_base" - ]; + pythonImportsCheck = [ "jsonrpc_base" ]; meta = with lib; { description = "A JSON-RPC client library base interface"; diff --git a/pkgs/development/python-modules/jsonrpc-websocket/default.nix b/pkgs/development/python-modules/jsonrpc-websocket/default.nix index eb50c3f3a32e..11b5ceb52f6b 100644 --- a/pkgs/development/python-modules/jsonrpc-websocket/default.nix +++ b/pkgs/development/python-modules/jsonrpc-websocket/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, jsonrpc-base -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + jsonrpc-base, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-CdYa4gcbG3EM1glxLU1hyqbNse87KJKjwSRQSFfDMM0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -44,9 +43,7 @@ buildPythonPackage rec { "tests.py" ]; - pythonImportsCheck = [ - "jsonrpc_websocket" - ]; + pythonImportsCheck = [ "jsonrpc_websocket" ]; meta = with lib; { description = "A JSON-RPC websocket client library for asyncio"; diff --git a/pkgs/development/python-modules/jsonrpclib-pelix/default.nix b/pkgs/development/python-modules/jsonrpclib-pelix/default.nix index 0ad585b3e2dc..0903e7a1f12a 100644 --- a/pkgs/development/python-modules/jsonrpclib-pelix/default.nix +++ b/pkgs/development/python-modules/jsonrpclib-pelix/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jsons/default.nix b/pkgs/development/python-modules/jsons/default.nix index 9a5116c94d6a..dc23f8817320 100644 --- a/pkgs/development/python-modules/jsons/default.nix +++ b/pkgs/development/python-modules/jsons/default.nix @@ -1,12 +1,13 @@ -{ lib -, attrs -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, typish -, tzdata +{ + lib, + attrs, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + typish, + tzdata, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-7OIByHvsqhKFOkb1q2kuxmbkkleryavYgp/T4U5hvGk="; }; - propagatedBuildInputs = [ - typish - ]; + propagatedBuildInputs = [ typish ]; nativeCheckInputs = [ attrs @@ -44,9 +43,7 @@ buildPythonPackage rec { "test_dump_load_parameterized_collections" ]; - pythonImportsCheck = [ - "jsons" - ]; + pythonImportsCheck = [ "jsons" ]; meta = with lib; { description = "Turn Python objects into dicts or json strings and back"; diff --git a/pkgs/development/python-modules/jsonschema-path/default.nix b/pkgs/development/python-modules/jsonschema-path/default.nix index 1fad4ed64e10..467c162ca545 100644 --- a/pkgs/development/python-modules/jsonschema-path/default.nix +++ b/pkgs/development/python-modules/jsonschema-path/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, pathable -, pyyaml -, referencing -, pytestCheckHook -, responses +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + pathable, + pyyaml, + referencing, + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "referencing" - ]; + pythonRelaxDeps = [ "referencing" ]; propagatedBuildInputs = [ pathable diff --git a/pkgs/development/python-modules/jsonschema-spec/default.nix b/pkgs/development/python-modules/jsonschema-spec/default.nix index c41d8b35cf09..f79283fa5160 100644 --- a/pkgs/development/python-modules/jsonschema-spec/default.nix +++ b/pkgs/development/python-modules/jsonschema-spec/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, -# build -, poetry-core + # build + poetry-core, -# propagates -, pathable -, pyyaml -, referencing -, requests + # propagates + pathable, + pyyaml, + referencing, + requests, -# tests -, pytestCheckHook -, responses + # tests + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "referencing" - ]; + pythonRelaxDeps = [ "referencing" ]; propagatedBuildInputs = [ pathable diff --git a/pkgs/development/python-modules/jsonschema-specifications/default.nix b/pkgs/development/python-modules/jsonschema-specifications/default.nix index 6d4a6478374b..989f5c5cb1e2 100644 --- a/pkgs/development/python-modules/jsonschema-specifications/default.nix +++ b/pkgs/development/python-modules/jsonschema-specifications/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, importlib-resources -, pytestCheckHook -, pythonOlder -, referencing +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + importlib-resources, + pytestCheckHook, + pythonOlder, + referencing, }: buildPythonPackage rec { @@ -29,17 +30,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ referencing - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jsonschema_specifications" - ]; + pythonImportsCheck = [ "jsonschema_specifications" ]; meta = with lib; { description = "Support files exposing JSON from the JSON Schema specifications"; diff --git a/pkgs/development/python-modules/jsonschema/default.nix b/pkgs/development/python-modules/jsonschema/default.nix index 97147b055e93..6417618eaa8f 100644 --- a/pkgs/development/python-modules/jsonschema/default.nix +++ b/pkgs/development/python-modules/jsonschema/default.nix @@ -1,29 +1,30 @@ -{ lib -, attrs -, buildPythonPackage -, fetchPypi -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, importlib-resources -, jsonschema-specifications -, pkgutil-resolve-name -, pip -, pytestCheckHook -, pythonOlder -, referencing -, rpds-py +{ + lib, + attrs, + buildPythonPackage, + fetchPypi, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + importlib-resources, + jsonschema-specifications, + pkgutil-resolve-name, + pip, + pytestCheckHook, + pythonOlder, + referencing, + rpds-py, -# optionals -, fqdn -, idna -, isoduration -, jsonpointer -, rfc3339-validator -, rfc3986-validator -, rfc3987 -, uri-template -, webcolors + # optionals + fqdn, + idna, + isoduration, + jsonpointer, + rfc3339-validator, + rfc3986-validator, + rfc3987, + uri-template, + webcolors, }: buildPythonPackage rec { @@ -48,15 +49,17 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - attrs - jsonschema-specifications - referencing - rpds-py - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - pkgutil-resolve-name - ]; + propagatedBuildInputs = + [ + attrs + jsonschema-specifications + referencing + rpds-py + ] + ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources + pkgutil-resolve-name + ]; passthru.optional-dependencies = { format = [ @@ -86,9 +89,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "jsonschema" - ]; + pythonImportsCheck = [ "jsonschema" ]; meta = with lib; { description = "An implementation of JSON Schema validation"; diff --git a/pkgs/development/python-modules/jsonstreams/default.nix b/pkgs/development/python-modules/jsonstreams/default.nix index 6fcd075c8445..3c545e39cdc5 100644 --- a/pkgs/development/python-modules/jsonstreams/default.nix +++ b/pkgs/development/python-modules/jsonstreams/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, six, }: +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + six, +}: buildPythonPackage rec { pname = "jsonstreams"; diff --git a/pkgs/development/python-modules/jstyleson/default.nix b/pkgs/development/python-modules/jstyleson/default.nix index 9c2008d1f7f7..da36508f3a1f 100644 --- a/pkgs/development/python-modules/jstyleson/default.nix +++ b/pkgs/development/python-modules/jstyleson/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-s/0DDfy+07TuUNjHPqKRT3xMMQl6spZCacB7Dweof7A="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "jstyleson" ]; diff --git a/pkgs/development/python-modules/jug/default.nix b/pkgs/development/python-modules/jug/default.nix index 315b15629041..c20bb40b4de7 100644 --- a/pkgs/development/python-modules/jug/default.nix +++ b/pkgs/development/python-modules/jug/default.nix @@ -1,12 +1,13 @@ -{ lib -, bottle -, buildPythonPackage -, fetchPypi -, numpy -, pytestCheckHook -, pythonOlder -, pyyaml -, redis +{ + lib, + bottle, + buildPythonPackage, + fetchPypi, + numpy, + pytestCheckHook, + pythonOlder, + pyyaml, + redis, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-Y2TWqJi7GjmWUFpe1b150NgwRw9VKhCk5EoN5NDcPXU="; }; - propagatedBuildInputs = [ - bottle - ]; + propagatedBuildInputs = [ bottle ]; nativeCheckInputs = [ numpy @@ -33,9 +32,7 @@ buildPythonPackage rec { redis ]; - pythonImportsCheck = [ - "jug" - ]; + pythonImportsCheck = [ "jug" ]; meta = with lib; { description = "A Task-Based Parallelization Framework"; diff --git a/pkgs/development/python-modules/julius/default.nix b/pkgs/development/python-modules/julius/default.nix index a261b43454d6..5efa7622b962 100644 --- a/pkgs/development/python-modules/julius/default.nix +++ b/pkgs/development/python-modules/julius/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, torch +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + torch, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-PA9fUwbX1gFvzJUZaydMrm8H4slZbu0xTk52QVVPuwg="; }; - propagatedBuildInputs = [ - torch - ]; + propagatedBuildInputs = [ torch ]; nativeBuildInputs = [ setuptools diff --git a/pkgs/development/python-modules/junit-xml/default.nix b/pkgs/development/python-modules/junit-xml/default.nix index 1de05ff7e067..8ec89b19beb7 100644 --- a/pkgs/development/python-modules/junit-xml/default.nix +++ b/pkgs/development/python-modules/junit-xml/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/junit2html/default.nix b/pkgs/development/python-modules/junit2html/default.nix index bc21fdb74bf7..2e26887b520b 100644 --- a/pkgs/development/python-modules/junit2html/default.nix +++ b/pkgs/development/python-modules/junit2html/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-1q6KpKdrZvp8XvxGCkoorlZDDgvGg/imTX8+NEOBbWs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - jinja2 - ]; + propagatedBuildInputs = [ jinja2 ]; # Tests are not shipped with PyPi and source is not tagged doCheck = false; - pythonImportsCheck = [ - "junit2htmlreport" - ]; + pythonImportsCheck = [ "junit2htmlreport" ]; meta = with lib; { description = "Generate HTML reports from Junit results"; diff --git a/pkgs/development/python-modules/junitparser/default.nix b/pkgs/development/python-modules/junitparser/default.nix index 490f919a712a..2ff93168391a 100644 --- a/pkgs/development/python-modules/junitparser/default.nix +++ b/pkgs/development/python-modules/junitparser/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, glibcLocales -, lxml -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + glibcLocales, + lxml, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,7 +22,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ future ]; - nativeCheckInputs = [ unittestCheckHook lxml glibcLocales ]; + nativeCheckInputs = [ + unittestCheckHook + lxml + glibcLocales + ]; unittestFlagsArray = [ "-v" ]; diff --git a/pkgs/development/python-modules/jupyter-book/default.nix b/pkgs/development/python-modules/jupyter-book/default.nix index 202c65e42a08..620ca9231208 100644 --- a/pkgs/development/python-modules/jupyter-book/default.nix +++ b/pkgs/development/python-modules/jupyter-book/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core -, click -, jinja2 -, jsonschema -, linkify-it-py -, myst-nb -, myst-parser -, pyyaml -, sphinx -, sphinx-comments -, sphinx-copybutton -, sphinx-external-toc -, sphinx-jupyterbook-latex -, sphinx-design -, sphinx-thebe -, sphinx-book-theme -, sphinx-togglebutton -, sphinxcontrib-bibtex -, sphinx-multitoc-numbering +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, + click, + jinja2, + jsonschema, + linkify-it-py, + myst-nb, + myst-parser, + pyyaml, + sphinx, + sphinx-comments, + sphinx-copybutton, + sphinx-external-toc, + sphinx-jupyterbook-latex, + sphinx-design, + sphinx-thebe, + sphinx-book-theme, + sphinx-togglebutton, + sphinxcontrib-bibtex, + sphinx-multitoc-numbering, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { hash = "sha256-U5xdBJNUYgDZ3ie9S1936uoDEV+JN/gl1P+Cs4AamH4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/jupyter-c-kernel/default.nix b/pkgs/development/python-modules/jupyter-c-kernel/default.nix index c15d8dff3f6f..77c3f6379f16 100644 --- a/pkgs/development/python-modules/jupyter-c-kernel/default.nix +++ b/pkgs/development/python-modules/jupyter-c-kernel/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ipykernel -, gcc +{ + lib, + buildPythonPackage, + fetchPypi, + ipykernel, + gcc, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jupyter-cache/default.nix b/pkgs/development/python-modules/jupyter-cache/default.nix index e2e597dd4a85..1b8b133242f9 100644 --- a/pkgs/development/python-modules/jupyter-cache/default.nix +++ b/pkgs/development/python-modules/jupyter-cache/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, attrs -, click -, flit-core -, importlib-metadata -, nbclient -, nbformat -, pyyaml -, sqlalchemy -, tabulate -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + click, + flit-core, + importlib-metadata, + nbclient, + nbformat, + pyyaml, + sqlalchemy, + tabulate, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-0Pp9dTPNV5gZjYiJMYJpqME4LtOyL2IsCak1ZSH0hoc="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ attrs diff --git a/pkgs/development/python-modules/jupyter-client/default.nix b/pkgs/development/python-modules/jupyter-client/default.nix index a556885e8439..0a43bcf920a7 100644 --- a/pkgs/development/python-modules/jupyter-client/default.nix +++ b/pkgs/development/python-modules/jupyter-client/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jupyter-core -, hatchling -, python-dateutil -, pyzmq -, tornado -, traitlets -, pythonOlder -, importlib-metadata +{ + lib, + buildPythonPackage, + fetchPypi, + jupyter-core, + hatchling, + python-dateutil, + pyzmq, + tornado, + traitlets, + pythonOlder, + importlib-metadata, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-6EJRXiurjhkYbYn9/qer0V453VgflOOZ8A4q9aFlLT8="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ jupyter-core @@ -32,13 +31,9 @@ buildPythonPackage rec { pyzmq tornado traitlets - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; - pythonImportsCheck = [ - "jupyter_client" - ]; + pythonImportsCheck = [ "jupyter_client" ]; # Circular dependency with ipykernel doCheck = false; diff --git a/pkgs/development/python-modules/jupyter-collaboration/default.nix b/pkgs/development/python-modules/jupyter-collaboration/default.nix index c4ba4a6f051b..3c54a2140cab 100644 --- a/pkgs/development/python-modules/jupyter-collaboration/default.nix +++ b/pkgs/development/python-modules/jupyter-collaboration/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, hatch-jupyter-builder -, hatch-nodejs-version -, hatchling -, jsonschema -, jupyter-events -, jupyter-server -, jupyter-server-fileid -, jupyter-ydoc -, jupyterlab -, pycrdt-websocket -, pytest-jupyter -, pytestCheckHook -, websockets +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatch-jupyter-builder, + hatch-nodejs-version, + hatchling, + jsonschema, + jupyter-events, + jupyter-server, + jupyter-server-fileid, + jupyter-ydoc, + jupyterlab, + pycrdt-websocket, + pytest-jupyter, + pytestCheckHook, + websockets, }: buildPythonPackage rec { @@ -56,17 +57,13 @@ buildPythonPackage rec { websockets ]; - pythonImportsCheck = [ - "jupyter_collaboration" - ]; + pythonImportsCheck = [ "jupyter_collaboration" ]; preCheck = '' export HOME=$TEMP ''; - pytestFlagsArray = [ - "-Wignore::DeprecationWarning" - ]; + pytestFlagsArray = [ "-Wignore::DeprecationWarning" ]; disabledTests = [ # ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) diff --git a/pkgs/development/python-modules/jupyter-console/default.nix b/pkgs/development/python-modules/jupyter-console/default.nix index 81276bcc411e..5ae844ad91ed 100644 --- a/pkgs/development/python-modules/jupyter-console/default.nix +++ b/pkgs/development/python-modules/jupyter-console/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatchling -, ipykernel -, exceptiongroup -, ipython -, jupyter-client -, jupyter-core -, prompt-toolkit -, pygments -, pyzmq -, traitlets -, flaky -, pexpect -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatchling, + ipykernel, + exceptiongroup, + ipython, + jupyter-client, + jupyter-core, + prompt-toolkit, + pygments, + pyzmq, + traitlets, + flaky, + pexpect, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-VmpL8xyHrb+t8izfhG4wabWace1dpx1rpNiqrRSlNTk="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; postPatch = '' # use wrapped executable in tests @@ -51,13 +50,9 @@ buildPythonPackage rec { pygments pyzmq traitlets - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; - pythonImportsCheck = [ - "jupyter_console" - ]; + pythonImportsCheck = [ "jupyter_console" ]; nativeCheckInputs = [ flaky diff --git a/pkgs/development/python-modules/jupyter-contrib-core/default.nix b/pkgs/development/python-modules/jupyter-contrib-core/default.nix index 0da8c5f4f151..a4e77af78b71 100644 --- a/pkgs/development/python-modules/jupyter-contrib-core/default.nix +++ b/pkgs/development/python-modules/jupyter-contrib-core/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jupyter-core -, notebook -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jupyter-core, + notebook, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix b/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix index c509a0972bed..d50dafd6fb75 100644 --- a/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix +++ b/pkgs/development/python-modules/jupyter-contrib-nbextensions/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ipython-genutils -, jupyter-contrib-core -, jupyter-highlight-selected-word -, jupyter-nbextensions-configurator -, lxml -, nose -, pytestCheckHook -, notebook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ipython-genutils, + jupyter-contrib-core, + jupyter-highlight-selected-word, + jupyter-nbextensions-configurator, + lxml, + nose, + pytestCheckHook, + notebook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jupyter-core/default.nix b/pkgs/development/python-modules/jupyter-core/default.nix index c1faa97b1ef8..22453d078491 100644 --- a/pkgs/development/python-modules/jupyter-core/default.nix +++ b/pkgs/development/python-modules/jupyter-core/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, platformdirs -, traitlets -, pip -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + platformdirs, + traitlets, + pip, + pytestCheckHook, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-qu25ryZreRPHoubFJTFusGdkTPHbl/yl94g+XU5A5Mc="; }; - patches = [ - ./tests_respect_pythonpath.patch - ]; + patches = [ ./tests_respect_pythonpath.patch ]; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ platformdirs @@ -64,7 +61,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "jupyter_core" ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Base package on which Jupyter projects rely"; diff --git a/pkgs/development/python-modules/jupyter-events/default.nix b/pkgs/development/python-modules/jupyter-events/default.nix index 855034ca4b2a..0451a3fb74ef 100644 --- a/pkgs/development/python-modules/jupyter-events/default.nix +++ b/pkgs/development/python-modules/jupyter-events/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build -, hatchling + # build + hatchling, -# runtime -, jsonschema -, python-json-logger -, pyyaml -, referencing -, traitlets + # runtime + jsonschema, + python-json-logger, + pyyaml, + referencing, + traitlets, -# optionals -, click -, rich + # optionals + click, + rich, -# tests -, pytest-asyncio -, pytest-console-scripts -, pytestCheckHook + # tests + pytest-asyncio, + pytest-console-scripts, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-8aps8aNgXw+XbDgtCvWw+Ij1Cm1N0G+wcL35ySkofOk="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ jsonschema @@ -47,8 +46,7 @@ buildPythonPackage rec { pyyaml referencing traitlets - ] - ++ jsonschema.optional-dependencies.format-nongpl; + ] ++ jsonschema.optional-dependencies.format-nongpl; passthru.optional-dependencies = { cli = [ @@ -67,9 +65,7 @@ buildPythonPackage rec { export PATH="$out/bin:$PATH" ''; - pythonImportsCheck = [ - "jupyter_events" - ]; + pythonImportsCheck = [ "jupyter_events" ]; meta = with lib; { changelog = "https://github.com/jupyter/jupyter_events/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix b/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix index 06d7247ed348..c9d84b130fdd 100644 --- a/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix +++ b/pkgs/development/python-modules/jupyter-highlight-selected-word/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jupyter-lsp/default.nix b/pkgs/development/python-modules/jupyter-lsp/default.nix index 2f1342839db3..90ed978eba27 100644 --- a/pkgs/development/python-modules/jupyter-lsp/default.nix +++ b/pkgs/development/python-modules/jupyter-lsp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, jupyter-server +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + jupyter-server, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-eTFHoFrURvgJ/VPvHNGan1JW/Qota3zpQ6mCy09UUAE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - jupyter-server - ]; + propagatedBuildInputs = [ jupyter-server ]; # tests require network doCheck = false; pythonImportsCheck = [ "jupyter_lsp" ]; @@ -34,4 +31,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ ]; }; } - diff --git a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix index bf3506e9572a..5b1bed18d96e 100644 --- a/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix +++ b/pkgs/development/python-modules/jupyter-nbextensions-configurator/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, jupyter-contrib-core -, jupyter-core -, jupyter-server -, notebook -, pyyaml -, tornado -, nose -, pytestCheckHook -, selenium +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + jupyter-contrib-core, + jupyter-core, + jupyter-server, + notebook, + pyyaml, + tornado, + nose, + pytestCheckHook, + selenium, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jupyter-packaging/default.nix b/pkgs/development/python-modules/jupyter-packaging/default.nix index 38dd7927d1eb..a0f3174f1c68 100644 --- a/pkgs/development/python-modules/jupyter-packaging/default.nix +++ b/pkgs/development/python-modules/jupyter-packaging/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, deprecation -, hatchling -, pythonOlder -, packaging -, pytestCheckHook -, pytest-timeout -, setuptools -, tomlkit +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + deprecation, + hatchling, + pythonOlder, + packaging, + pytestCheckHook, + pytest-timeout, + setuptools, + tomlkit, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ deprecation diff --git a/pkgs/development/python-modules/jupyter-repo2docker/default.nix b/pkgs/development/python-modules/jupyter-repo2docker/default.nix index c782bd78540c..2a5f0a783e14 100644 --- a/pkgs/development/python-modules/jupyter-repo2docker/default.nix +++ b/pkgs/development/python-modules/jupyter-repo2docker/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, chardet -, docker -, entrypoints -, escapism -, fetchFromGitHub -, iso8601 -, jinja2 -, pkgs-docker -, python-json-logger -, pythonOlder -, requests -, ruamel-yaml -, semver -, setuptools -, toml -, traitlets +{ + lib, + buildPythonPackage, + chardet, + docker, + entrypoints, + escapism, + fetchFromGitHub, + iso8601, + jinja2, + pkgs-docker, + python-json-logger, + pythonOlder, + requests, + ruamel-yaml, + semver, + setuptools, + toml, + traitlets, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-D8sgeyfQjEkBYck/CikAVNZzUSl1R9uXSv75DTXT5U0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ chardet diff --git a/pkgs/development/python-modules/jupyter-server-fileid/default.nix b/pkgs/development/python-modules/jupyter-server-fileid/default.nix index 9fea67c3faa2..1267f51e43aa 100644 --- a/pkgs/development/python-modules/jupyter-server-fileid/default.nix +++ b/pkgs/development/python-modules/jupyter-server-fileid/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, jupyter-events -, jupyter-server -, pytest-jupyter -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + jupyter-events, + jupyter-server, + pytest-jupyter, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-ApCDBVjJqpkC5FGEjU/LxwWBunTkL6i5Ki85M6MMLE0="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ jupyter-events diff --git a/pkgs/development/python-modules/jupyter-server-mathjax/default.nix b/pkgs/development/python-modules/jupyter-server-mathjax/default.nix index 1f6c3b354769..ec9dd063805a 100644 --- a/pkgs/development/python-modules/jupyter-server-mathjax/default.nix +++ b/pkgs/development/python-modules/jupyter-server-mathjax/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jupyter-packaging -, setuptools -, jupyter-server -, pytest-jupyter -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + jupyter-packaging, + setuptools, + jupyter-server, + pytest-jupyter, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - jupyter-server - ]; + propagatedBuildInputs = [ jupyter-server ]; nativeCheckInputs = [ pytest-jupyter diff --git a/pkgs/development/python-modules/jupyter-server-terminals/default.nix b/pkgs/development/python-modules/jupyter-server-terminals/default.nix index 192d5c6f3711..321d02c1f1b8 100644 --- a/pkgs/development/python-modules/jupyter-server-terminals/default.nix +++ b/pkgs/development/python-modules/jupyter-server-terminals/default.nix @@ -1,57 +1,58 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build -, hatchling + # build + hatchling, -# runtime -, terminado + # runtime + terminado, -# tests -, pytest-jupyter -, pytest-timeout -, pytestCheckHook + # tests + pytest-jupyter, + pytest-timeout, + pytestCheckHook, }: -let self = buildPythonPackage rec { - pname = "jupyter-server-terminals"; - version = "0.5.3"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "jupyter-server-terminals"; + version = "0.5.3"; + pyproject = true; - src = fetchFromGitHub { - owner = "jupyter-server"; - repo = "jupyter_server_terminals"; - rev = "refs/tags/v${version}"; - hash = "sha256-af7jBscGkbekXgfDxwAfrJSY1uEuIGfzzSsjaPdlYcY="; + src = fetchFromGitHub { + owner = "jupyter-server"; + repo = "jupyter_server_terminals"; + rev = "refs/tags/v${version}"; + hash = "sha256-af7jBscGkbekXgfDxwAfrJSY1uEuIGfzzSsjaPdlYcY="; + }; + + nativeBuildInputs = [ hatchling ]; + + propagatedBuildInputs = [ terminado ]; + + doCheck = false; # infinite recursion + + nativeCheckInputs = [ + pytest-jupyter + pytest-timeout + pytestCheckHook + ] ++ pytest-jupyter.optional-dependencies.server; + + passthru.tests = { + check = self.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + meta = with lib; { + changelog = "https://github.com/jupyter-server/jupyter_server_terminals/releases/tag/v${version}"; + description = "A Jupyter Server Extension Providing Support for Terminals"; + homepage = "https://github.com/jupyter-server/jupyter_server_terminals"; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; + }; }; - - nativeBuildInputs = [ - hatchling - ]; - - propagatedBuildInputs = [ - terminado - ]; - - doCheck = false; # infinite recursion - - nativeCheckInputs = [ - pytest-jupyter - pytest-timeout - pytestCheckHook - ] ++ pytest-jupyter.optional-dependencies.server; - - passthru.tests = { - check = self.overridePythonAttrs (_: { doCheck = true; }); - }; - - meta = with lib; { - changelog = "https://github.com/jupyter-server/jupyter_server_terminals/releases/tag/v${version}"; - description = "A Jupyter Server Extension Providing Support for Terminals"; - homepage = "https://github.com/jupyter-server/jupyter_server_terminals"; - license = licenses.bsd3; - maintainers = with maintainers; [ ]; - }; -}; -in self +in +self diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index f0086e09c661..f13ff454e2c4 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -1,35 +1,36 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatch-jupyter-builder -, hatchling -, pytestCheckHook -, pytest-console-scripts -, pytest-jupyter -, pytest-timeout -, argon2-cffi -, jinja2 -, tornado -, pyzmq -, ipykernel -, traitlets -, jupyter-core -, jupyter-client -, jupyter-events -, jupyter-server-terminals -, nbformat -, nbconvert -, packaging -, send2trash -, terminado -, prometheus-client -, anyio -, websocket-client -, overrides -, requests -, flaky +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatch-jupyter-builder, + hatchling, + pytestCheckHook, + pytest-console-scripts, + pytest-jupyter, + pytest-timeout, + argon2-cffi, + jinja2, + tornado, + pyzmq, + ipykernel, + traitlets, + jupyter-core, + jupyter-client, + jupyter-events, + jupyter-server-terminals, + nbformat, + nbconvert, + packaging, + send2trash, + terminado, + prometheus-client, + anyio, + websocket-client, + overrides, + requests, + flaky, }: buildPythonPackage rec { @@ -84,7 +85,8 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; preCheck = '' @@ -92,21 +94,24 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - disabledTests = [ - "test_cull_idle" - "test_server_extension_list" - "test_subscribe_websocket" - # test is presumable broken in sandbox - "test_authorized_requests" - ] ++ lib.optionals stdenv.isDarwin [ - # attempts to use trashcan, build env doesn't allow this - "test_delete" - # Insufficient access privileges for operation - "test_regression_is_hidden" - ] ++ lib.optionals stdenv.isLinux [ - # Failed: DID NOT RAISE - "test_copy_big_dir" - ]; + disabledTests = + [ + "test_cull_idle" + "test_server_extension_list" + "test_subscribe_websocket" + # test is presumable broken in sandbox + "test_authorized_requests" + ] + ++ lib.optionals stdenv.isDarwin [ + # attempts to use trashcan, build env doesn't allow this + "test_delete" + # Insufficient access privileges for operation + "test_regression_is_hidden" + ] + ++ lib.optionals stdenv.isLinux [ + # Failed: DID NOT RAISE + "test_copy_big_dir" + ]; disabledTestPaths = [ "tests/services/kernels/test_api.py" diff --git a/pkgs/development/python-modules/jupyter-sphinx/default.nix b/pkgs/development/python-modules/jupyter-sphinx/default.nix index 9fb30b5e143e..7d43784db6bd 100644 --- a/pkgs/development/python-modules/jupyter-sphinx/default.nix +++ b/pkgs/development/python-modules/jupyter-sphinx/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, ipykernel -, ipython -, ipywidgets -, nbconvert -, nbformat -, pythonOlder -, sphinx -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + ipykernel, + ipython, + ipywidgets, + nbconvert, + nbformat, + pythonOlder, + sphinx, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-o/i3WravKZPf7uw2H4SVYfAyaZGf19ZJlkmeHCWcGtE="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ ipykernel @@ -39,15 +38,11 @@ buildPythonPackage rec { sphinx ]; - pythonImportsCheck = [ - "jupyter_sphinx" - ]; + pythonImportsCheck = [ "jupyter_sphinx" ]; env.JUPYTER_PLATFORM_DIRS = 1; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/jupyter-telemetry/default.nix b/pkgs/development/python-modules/jupyter-telemetry/default.nix index f7efc0a1598c..c6c73084b12a 100644 --- a/pkgs/development/python-modules/jupyter-telemetry/default.nix +++ b/pkgs/development/python-modules/jupyter-telemetry/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, python-json-logger -, jsonschema -, ruamel-yaml -, traitlets +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + python-json-logger, + jsonschema, + ruamel-yaml, + traitlets, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - python-json-logger jsonschema ruamel-yaml traitlets + python-json-logger + jsonschema + ruamel-yaml + traitlets ]; meta = with lib; { diff --git a/pkgs/development/python-modules/jupyter-ui-poll/default.nix b/pkgs/development/python-modules/jupyter-ui-poll/default.nix index 2b6a62f886f0..0aafb336d677 100644 --- a/pkgs/development/python-modules/jupyter-ui-poll/default.nix +++ b/pkgs/development/python-modules/jupyter-ui-poll/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, ipython +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + ipython, }: buildPythonPackage rec { @@ -21,11 +22,9 @@ buildPythonPackage rec { }; nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - ipython - ]; + propagatedBuildInputs = [ ipython ]; - doCheck = false; # no tests in package :( + doCheck = false; # no tests in package :( pythonImportsCheck = [ "jupyter_ui_poll" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/jupyter-ydoc/default.nix b/pkgs/development/python-modules/jupyter-ydoc/default.nix index bf0f718796c6..7898fa90de2a 100644 --- a/pkgs/development/python-modules/jupyter-ydoc/default.nix +++ b/pkgs/development/python-modules/jupyter-ydoc/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatch-nodejs-version -, hatchling -, importlib-metadata -, pycrdt -, pytestCheckHook -, websockets -, ypy-websocket +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatch-nodejs-version, + hatchling, + importlib-metadata, + pycrdt, + pytestCheckHook, + websockets, + ypy-websocket, }: buildPythonPackage rec { @@ -29,11 +30,7 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - pycrdt - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + propagatedBuildInputs = [ pycrdt ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; pythonImportsCheck = [ "jupyter_ydoc" ]; diff --git a/pkgs/development/python-modules/jupyter/default.nix b/pkgs/development/python-modules/jupyter/default.nix index 51108eaa7a8f..72f9238edb8b 100644 --- a/pkgs/development/python-modules/jupyter/default.nix +++ b/pkgs/development/python-modules/jupyter/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, notebook -, qtconsole -, jupyter-console -, nbconvert -, ipykernel -, ipywidgets +{ + lib, + buildPythonPackage, + fetchPypi, + notebook, + qtconsole, + jupyter-console, + nbconvert, + ipykernel, + ipywidgets, }: buildPythonPackage rec { @@ -19,7 +20,14 @@ buildPythonPackage rec { sha256 = "d9dc4b3318f310e34c82951ea5d6683f67bed7def4b259fafbfe4f1beb1d8e5f"; }; - propagatedBuildInputs = [ notebook qtconsole jupyter-console nbconvert ipykernel ipywidgets ]; + propagatedBuildInputs = [ + notebook + qtconsole + jupyter-console + nbconvert + ipykernel + ipywidgets + ]; # Meta-package, no tests doCheck = false; @@ -31,5 +39,4 @@ buildPythonPackage rec { platforms = platforms.all; priority = 100; # This is a metapackage which is unimportant }; - } diff --git a/pkgs/development/python-modules/jupyterhub-ldapauthenticator/default.nix b/pkgs/development/python-modules/jupyterhub-ldapauthenticator/default.nix index 0c61557c26b6..c4da40729c0f 100644 --- a/pkgs/development/python-modules/jupyterhub-ldapauthenticator/default.nix +++ b/pkgs/development/python-modules/jupyterhub-ldapauthenticator/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, jupyterhub -, ldap3 -, fetchPypi +{ + lib, + buildPythonPackage, + jupyterhub, + ldap3, + fetchPypi, }: buildPythonPackage rec { @@ -18,11 +19,14 @@ buildPythonPackage rec { # No tests implemented doCheck = false; - propagatedBuildInputs = [ jupyterhub ldap3 ]; + propagatedBuildInputs = [ + jupyterhub + ldap3 + ]; meta = with lib; { description = "Simple LDAP Authenticator Plugin for JupyterHub"; - homepage = "https://github.com/jupyterhub/ldapauthenticator"; + homepage = "https://github.com/jupyterhub/ldapauthenticator"; license = licenses.bsd3; }; } diff --git a/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix b/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix index 1f45886c84e5..56712d25f4f4 100644 --- a/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix +++ b/pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix @@ -1,10 +1,11 @@ -{ lib -, bash -, buildPythonPackage -, fetchFromGitHub -, jupyterhub -, pythonOlder -, tornado +{ + lib, + bash, + buildPythonPackage, + fetchFromGitHub, + jupyterhub, + pythonOlder, + tornado, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace "/bin/bash" "${bash}/bin/bash" ''; - buildInputs = [ - bash - ]; + buildInputs = [ bash ]; propagatedBuildInputs = [ jupyterhub @@ -47,9 +46,7 @@ buildPythonPackage rec { patchShebangs $out/bin ''; - pythonImportsCheck = [ - "systemdspawner" - ]; + pythonImportsCheck = [ "systemdspawner" ]; meta = with lib; { description = "JupyterHub Spawner using systemd for resource isolation"; diff --git a/pkgs/development/python-modules/jupyterhub-tmpauthenticator/default.nix b/pkgs/development/python-modules/jupyterhub-tmpauthenticator/default.nix index 0c18569c4b5c..02c366d34c60 100644 --- a/pkgs/development/python-modules/jupyterhub-tmpauthenticator/default.nix +++ b/pkgs/development/python-modules/jupyterhub-tmpauthenticator/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, jupyterhub +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + jupyterhub, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-7TuAYP6mRffsZL+O+AMgt5HBu6PhwLYj5A8X8DnMfl0="; }; - propagatedBuildInputs = [ - jupyterhub - ]; + propagatedBuildInputs = [ jupyterhub ]; # No tests available in the package doCheck = false; - pythonImportsCheck = [ - "tmpauthenticator" - ]; + pythonImportsCheck = [ "tmpauthenticator" ]; meta = with lib; { description = "Simple Jupyterhub authenticator that allows anyone to log in"; diff --git a/pkgs/development/python-modules/jupyterhub/default.nix b/pkgs/development/python-modules/jupyterhub/default.nix index 2aa83c6f85af..7a08e773646d 100644 --- a/pkgs/development/python-modules/jupyterhub/default.nix +++ b/pkgs/development/python-modules/jupyterhub/default.nix @@ -1,73 +1,68 @@ -{ lib -, stdenv -, alembic -, async-generator -, beautifulsoup4 -, buildPythonPackage -, certipy -, configurable-http-proxy -, cryptography -, entrypoints -, fetchPypi -, fetchzip -, importlib-metadata -, jinja2 -, jsonschema -, jupyter-telemetry -, jupyterlab -, jupyter-core -, jupyter-server -, mock -, nbclassic -, nodePackages -, notebook -, oauthlib -, packaging -, pamela -, playwright -, prometheus-client -, pytest-asyncio -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, requests-mock -, selenium -, sqlalchemy -, tornado -, traitlets -, virtualenv +{ + lib, + stdenv, + alembic, + async-generator, + beautifulsoup4, + buildPythonPackage, + certipy, + configurable-http-proxy, + cryptography, + entrypoints, + fetchPypi, + fetchzip, + importlib-metadata, + jinja2, + jsonschema, + jupyter-telemetry, + jupyterlab, + jupyter-core, + jupyter-server, + mock, + nbclassic, + nodePackages, + notebook, + oauthlib, + packaging, + pamela, + playwright, + prometheus-client, + pytest-asyncio, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + requests-mock, + selenium, + sqlalchemy, + tornado, + traitlets, + virtualenv, }: let # js/css assets that setup.py tries to fetch via `npm install` when building # from source. https://github.com/jupyterhub/jupyterhub/blob/master/package.json - bootstrap = - fetchzip { - url = "https://registry.npmjs.org/bootstrap/-/bootstrap-3.4.1.tgz"; - sha256 = "1ywmxqdccg0mgx0xknrn1hlrfnhcwphc12y9l91zizx26fqfmzgc"; - }; - font-awesome = - fetchzip { - url = "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz"; - sha256 = "1xnxbdlfdd60z5ix152m8r2kk9dkwlqwpypky1mm3dv64ajnzdbk"; - }; - jquery = - fetchzip { - url = "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz"; - sha256 = "0yi9ql493din1qa1s923nd5zvd0klk1sx00xj1wx2yambmq86vm9"; - }; - moment = - fetchzip { - url = "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz"; - sha256 = "0ifzzla4zffw23g3xvhwx3fj3jny6cjzxfzl1x0317q8wa0c7w5i"; - }; - requirejs = - fetchzip { - url = "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz"; - sha256 = "165hkli3qcd59cjqvli9r5f92i0h7czkmhcg1cgwamw2d0b7xibz"; - }; - + bootstrap = fetchzip { + url = "https://registry.npmjs.org/bootstrap/-/bootstrap-3.4.1.tgz"; + sha256 = "1ywmxqdccg0mgx0xknrn1hlrfnhcwphc12y9l91zizx26fqfmzgc"; + }; + font-awesome = fetchzip { + url = "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz"; + sha256 = "1xnxbdlfdd60z5ix152m8r2kk9dkwlqwpypky1mm3dv64ajnzdbk"; + }; + jquery = fetchzip { + url = "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz"; + sha256 = "0yi9ql493din1qa1s923nd5zvd0klk1sx00xj1wx2yambmq86vm9"; + }; + moment = fetchzip { + url = "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz"; + sha256 = "0ifzzla4zffw23g3xvhwx3fj3jny6cjzxfzl1x0317q8wa0c7w5i"; + }; + requirejs = fetchzip { + url = "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz"; + sha256 = "165hkli3qcd59cjqvli9r5f92i0h7czkmhcg1cgwamw2d0b7xibz"; + }; in buildPythonPackage rec { @@ -142,9 +137,7 @@ buildPythonPackage rec { traitlets jupyter-core jupyter-server - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ beautifulsoup4 diff --git a/pkgs/development/python-modules/jupyterlab-git/default.nix b/pkgs/development/python-modules/jupyterlab-git/default.nix index 9377df6d75cf..c539c052d4b5 100644 --- a/pkgs/development/python-modules/jupyterlab-git/default.nix +++ b/pkgs/development/python-modules/jupyterlab-git/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, git -, jupyter-server -, hatch-jupyter-builder -, hatch-nodejs-version -, hatchling -, jupyterlab -, nbdime -, nbformat -, pexpect -, pytest-asyncio -, pytest-jupyter -, pytest-tornasync -, pytestCheckHook -, pythonOlder -, traitlets +{ + lib, + buildPythonPackage, + fetchPypi, + git, + jupyter-server, + hatch-jupyter-builder, + hatch-nodejs-version, + hatchling, + jupyterlab, + nbdime, + nbformat, + pexpect, + pytest-asyncio, + pytest-jupyter, + pytest-tornasync, + pytestCheckHook, + pythonOlder, + traitlets, }: buildPythonPackage rec { @@ -73,9 +74,7 @@ buildPythonPackage rec { "test_Git_get_nbdiff_dict" ]; - pythonImportsCheck = [ - "jupyterlab_git" - ]; + pythonImportsCheck = [ "jupyterlab_git" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/jupyterlab-lsp/default.nix b/pkgs/development/python-modules/jupyterlab-lsp/default.nix index deecae0b7ea5..408a48c7faa6 100644 --- a/pkgs/development/python-modules/jupyterlab-lsp/default.nix +++ b/pkgs/development/python-modules/jupyterlab-lsp/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, jupyterlab -, jupyter-lsp +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + jupyterlab, + jupyter-lsp, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-rqyECTrabSDvV64Ol4EcxXlqDKtyN7Mvjt35k8C7A1Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jupyterlab diff --git a/pkgs/development/python-modules/jupyterlab-pygments/default.nix b/pkgs/development/python-modules/jupyterlab-pygments/default.nix index 0d46258eb789..beefbfeddbc0 100644 --- a/pkgs/development/python-modules/jupyterlab-pygments/default.nix +++ b/pkgs/development/python-modules/jupyterlab-pygments/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatch-jupyter-builder -, hatch-nodejs-version -, hatchling -, pygments +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatch-jupyter-builder, + hatch-nodejs-version, + hatchling, + pygments, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/jupyterlab-server/default.nix b/pkgs/development/python-modules/jupyterlab-server/default.nix index 059cb1c5ac52..7aab011ea3b1 100644 --- a/pkgs/development/python-modules/jupyterlab-server/default.nix +++ b/pkgs/development/python-modules/jupyterlab-server/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatchling -, babel -, importlib-metadata -, jinja2 -, json5 -, jsonschema -, jupyter-server -, packaging -, requests -, openapi-core -, pytest-jupyter -, pytestCheckHook -, requests-mock -, ruamel-yaml -, strict-rfc3339 +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatchling, + babel, + importlib-metadata, + jinja2, + json5, + jsonschema, + jupyter-server, + packaging, + requests, + openapi-core, + pytest-jupyter, + pytestCheckHook, + requests-mock, + ruamel-yaml, + strict-rfc3339, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { sed -i "/timeout/d" pyproject.toml ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ babel @@ -48,9 +47,7 @@ buildPythonPackage rec { jupyter-server packaging requests - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; passthru.optional-dependencies = { openapi = [ @@ -71,7 +68,8 @@ buildPythonPackage rec { ''; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/jupyterlab-widgets/default.nix b/pkgs/development/python-modules/jupyterlab-widgets/default.nix index 85ec4d6d48f9..573d42bf44dc 100644 --- a/pkgs/development/python-modules/jupyterlab-widgets/default.nix +++ b/pkgs/development/python-modules/jupyterlab-widgets/default.nix @@ -1,5 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi -, jupyter-packaging +{ + lib, + buildPythonPackage, + fetchPypi, + jupyter-packaging, }: buildPythonPackage rec { @@ -19,9 +22,7 @@ buildPythonPackage rec { --replace '"jupyterlab~=4.0"' "" ''; - nativeBuildInputs = [ - jupyter-packaging - ]; + nativeBuildInputs = [ jupyter-packaging ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/jupyterlab/default.nix b/pkgs/development/python-modules/jupyterlab/default.nix index dc8c475474aa..7668dae613fd 100644 --- a/pkgs/development/python-modules/jupyterlab/default.nix +++ b/pkgs/development/python-modules/jupyterlab/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-jupyter-builder -, hatchling -, async-lru -, httpx -, packaging -, tornado -, ipykernel -, jupyter-core -, jupyter-lsp -, jupyterlab-server -, jupyter-server -, notebook-shim -, jinja2 -, tomli -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-jupyter-builder, + hatchling, + async-lru, + httpx, + packaging, + tornado, + ipykernel, + jupyter-core, + jupyter-lsp, + jupyterlab-server, + jupyter-server, + notebook-shim, + jinja2, + tomli, + pythonOlder, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { jupyter-server notebook-shim jinja2 - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; makeWrapperArgs = [ "--set" @@ -60,9 +59,7 @@ buildPythonPackage rec { # Depends on npm doCheck = false; - pythonImportsCheck = [ - "jupyterlab" - ]; + pythonImportsCheck = [ "jupyterlab" ]; meta = with lib; { changelog = "https://github.com/jupyterlab/jupyterlab/blob/v${version}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/jupytext/default.nix b/pkgs/development/python-modules/jupytext/default.nix index 6935fd46ce7e..49ec1da72d0f 100644 --- a/pkgs/development/python-modules/jupytext/default.nix +++ b/pkgs/development/python-modules/jupytext/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, hatch-jupyter-builder -, hatchling -, jupyter-client -, markdown-it-py -, mdit-py-plugins -, nbformat -, notebook -, packaging -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pyyaml -, tomli +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + hatch-jupyter-builder, + hatchling, + jupyter-client, + markdown-it-py, + mdit-py-plugins, + nbformat, + notebook, + packaging, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pyyaml, + tomli, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { nbformat packaging pyyaml - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ jupyter-client @@ -57,9 +56,7 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH; ''; - disabledTestPaths = [ - "tests/external" - ]; + disabledTestPaths = [ "tests/external" ]; disabledTests = lib.optionals stdenv.isDarwin [ # requires access to trash diff --git a/pkgs/development/python-modules/justbackoff/default.nix b/pkgs/development/python-modules/justbackoff/default.nix index f07af6df2d2a..e8c680a89d37 100644 --- a/pkgs/development/python-modules/justbackoff/default.nix +++ b/pkgs/development/python-modules/justbackoff/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { sha256 = "097j6jxgl4b3z46x9y9z10643vnr9v831vhagrxzrq6nviil2z6l"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "pytest-runner>=5.2" "" ''; - pythonImportsCheck = [ - "justbackoff" - ]; + pythonImportsCheck = [ "justbackoff" ]; meta = with lib; { description = "Simple backoff algorithm in Python"; diff --git a/pkgs/development/python-modules/justbases/default.nix b/pkgs/development/python-modules/justbases/default.nix index 3b24726087be..c3fc8dcd5ac0 100644 --- a/pkgs/development/python-modules/justbases/default.nix +++ b/pkgs/development/python-modules/justbases/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, + hypothesis, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/justbytes/default.nix b/pkgs/development/python-modules/justbytes/default.nix index 834ced10ab4b..db5c79de25dd 100644 --- a/pkgs/development/python-modules/justbytes/default.nix +++ b/pkgs/development/python-modules/justbytes/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, justbases -, unittestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + justbases, + unittestCheckHook, + hypothesis, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ justbases ]; - nativeCheckInputs = [ unittestCheckHook hypothesis ]; + nativeCheckInputs = [ + unittestCheckHook + hypothesis + ]; meta = with lib; { description = "computing with and displaying bytes"; diff --git a/pkgs/development/python-modules/justext/default.nix b/pkgs/development/python-modules/justext/default.nix index 2446dccf0823..fd9d94c399a0 100644 --- a/pkgs/development/python-modules/justext/default.nix +++ b/pkgs/development/python-modules/justext/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, lxml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + lxml, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-9i7hzCK/ijh8xw9l2ZbVhVj5IBf0WD/49/R1tSWgqrQ="; }; - propagatedBuildInputs = [ - lxml - ]; + propagatedBuildInputs = [ lxml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # patch out coverage report postPatch = '' diff --git a/pkgs/development/python-modules/justnimbus/default.nix b/pkgs/development/python-modules/justnimbus/default.nix index 013e4670aa8f..08a7592b29e2 100644 --- a/pkgs/development/python-modules/justnimbus/default.nix +++ b/pkgs/development/python-modules/justnimbus/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-JO8T0JItkkNHxlnDKOO8kM9KSzT7QML4sszPymgXSBA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "justnimbus" - ]; + pythonImportsCheck = [ "justnimbus" ]; meta = with lib; { description = "Library for the JustNimbus API"; @@ -43,4 +38,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fab ]; }; } - diff --git a/pkgs/development/python-modules/jwcrypto/default.nix b/pkgs/development/python-modules/jwcrypto/default.nix index 2c00e2be9f8d..1a418d128dfe 100644 --- a/pkgs/development/python-modules/jwcrypto/default.nix +++ b/pkgs/development/python-modules/jwcrypto/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cryptography -, deprecated -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, + deprecated, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-dxqHdioMCBrmFmlYqVT4CEiCCyqwZpN9yLg3nWWxsDk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography @@ -33,9 +32,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "jwcrypto" - ]; + pythonImportsCheck = [ "jwcrypto" ]; meta = with lib; { description = "Implementation of JOSE Web standards"; diff --git a/pkgs/development/python-modules/jwt/default.nix b/pkgs/development/python-modules/jwt/default.nix index 95c01cb64bc1..fc058f7d7004 100644 --- a/pkgs/development/python-modules/jwt/default.nix +++ b/pkgs/development/python-modules/jwt/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, cryptography -, freezegun -, pytestCheckHook -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + cryptography, + freezegun, + pytestCheckHook, + pytest-cov, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { substituteInPlace setup.cfg --replace "--flake8" "" ''; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/jxmlease/default.nix b/pkgs/development/python-modules/jxmlease/default.nix index 640b06bf352e..480bddc93ded 100644 --- a/pkgs/development/python-modules/jxmlease/default.nix +++ b/pkgs/development/python-modules/jxmlease/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + unittestCheckHook, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "17l3w3ak07p72s8kv8hg0ilxs0kkxjn7bfwnl3g2cw58v1siab31"; }; - propagatedBuildInputs = [ - lxml - ]; + propagatedBuildInputs = [ lxml ]; # tests broken in expat bump # https://github.com/Juniper/jxmlease/issues/26 diff --git a/pkgs/development/python-modules/k-diffusion/default.nix b/pkgs/development/python-modules/k-diffusion/default.nix index 8393bc6309f0..9b8aa8d17a02 100644 --- a/pkgs/development/python-modules/k-diffusion/default.nix +++ b/pkgs/development/python-modules/k-diffusion/default.nix @@ -1,25 +1,26 @@ -{ lib -, accelerate -, buildPythonPackage -, clean-fid -, clip-anytorch -, dctorch -, einops -, fetchFromGitHub -, jsonmerge -, kornia -, pillow -, pythonOlder -, rotary-embedding-torch -, safetensors -, scikit-image -, scipy -, torch -, torchdiffeq -, torchsde -, torchvision -, tqdm -, wandb +{ + lib, + accelerate, + buildPythonPackage, + clean-fid, + clip-anytorch, + dctorch, + einops, + fetchFromGitHub, + jsonmerge, + kornia, + pillow, + pythonOlder, + rotary-embedding-torch, + safetensors, + scikit-image, + scipy, + torch, + torchdiffeq, + torchsde, + torchvision, + tqdm, + wandb, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { wandb ]; - pythonImportsCheck = [ - "k_diffusion" - ]; + pythonImportsCheck = [ "k_diffusion" ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/k5test/default.nix b/pkgs/development/python-modules/k5test/default.nix index dbab01e01a54..3a6c340e00a7 100644 --- a/pkgs/development/python-modules/k5test/default.nix +++ b/pkgs/development/python-modules/k5test/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, substituteAll -, findutils -, krb5 -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + substituteAll, + findutils, + krb5, + setuptools, }: buildPythonPackage rec { @@ -30,16 +31,12 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # No tests doCheck = false; - pythonImportsCheck = [ - "k5test" - ]; + pythonImportsCheck = [ "k5test" ]; meta = with lib; { description = "Library for setting up self-contained Kerberos 5 environment"; diff --git a/pkgs/development/python-modules/kaa-base/default.nix b/pkgs/development/python-modules/kaa-base/default.nix index 8d83bdb5b110..cacf76a6cb0d 100644 --- a/pkgs/development/python-modules/kaa-base/default.nix +++ b/pkgs/development/python-modules/kaa-base/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, isPy3k -, python +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + isPy3k, + python, }: buildPythonPackage rec { @@ -48,5 +49,4 @@ buildPythonPackage rec { license = licenses.lgpl21; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/kaa-metadata/default.nix b/pkgs/development/python-modules/kaa-metadata/default.nix index 20ae66f17a9d..669060fa2ac4 100644 --- a/pkgs/development/python-modules/kaa-metadata/default.nix +++ b/pkgs/development/python-modules/kaa-metadata/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, kaa-base -, isPyPy -, isPy3k -, python -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + kaa-base, + isPyPy, + isPy3k, + python, + pkgs, }: buildPythonPackage rec { @@ -53,5 +54,4 @@ buildPythonPackage rec { license = licenses.gpl2; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/kafka-python/default.nix b/pkgs/development/python-modules/kafka-python/default.nix index 9e73dbe9bd19..730c796c951b 100644 --- a/pkgs/development/python-modules/kafka-python/default.nix +++ b/pkgs/development/python-modules/kafka-python/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, six, mock }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + six, + mock, +}: buildPythonPackage rec { version = "2.0.2"; @@ -10,7 +17,11 @@ buildPythonPackage rec { sha256 = "04dfe7fea2b63726cd6f3e79a2d86e709d608d74406638c5da33a01d45a9d7e3"; }; - nativeCheckInputs = [ pytest six mock ]; + nativeCheckInputs = [ + pytest + six + mock + ]; checkPhase = '' py.test diff --git a/pkgs/development/python-modules/kaggle/default.nix b/pkgs/development/python-modules/kaggle/default.nix index 815d1cd27e77..5d38eeaf6480 100644 --- a/pkgs/development/python-modules/kaggle/default.nix +++ b/pkgs/development/python-modules/kaggle/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, bleach -, certifi -, fetchPypi -, lib -, python-dateutil -, python-slugify -, six -, requests -, tqdm -, urllib3 +{ + buildPythonPackage, + bleach, + certifi, + fetchPypi, + lib, + python-dateutil, + python-slugify, + six, + requests, + tqdm, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/kaitaistruct/default.nix b/pkgs/development/python-modules/kaitaistruct/default.nix index 71ad13fadb55..077d24f2462e 100644 --- a/pkgs/development/python-modules/kaitaistruct/default.nix +++ b/pkgs/development/python-modules/kaitaistruct/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchFromGitHub -, brotli -, lz4 +{ + lib, + buildPythonPackage, + fetchPypi, + fetchFromGitHub, + brotli, + lz4, }: let diff --git a/pkgs/development/python-modules/kajiki/default.nix b/pkgs/development/python-modules/kajiki/default.nix index a4c92ea35ed7..4b9e78c77b86 100644 --- a/pkgs/development/python-modules/kajiki/default.nix +++ b/pkgs/development/python-modules/kajiki/default.nix @@ -1,10 +1,11 @@ -{ lib -, babel -, buildPythonPackage -, fetchFromGitHub -, linetable -, pytestCheckHook -, pythonOlder +{ + lib, + babel, + buildPythonPackage, + fetchFromGitHub, + linetable, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-EbXe4Jh2IKAYw9GE0kFgKVv9c9uAOiFFYaMF8CGaOfg="; }; - propagatedBuildInputs = [ - linetable - ]; + propagatedBuildInputs = [ linetable ]; nativeCheckInputs = [ babel pytestCheckHook ]; - pythonImportsCheck = [ - "kajiki" - ]; + pythonImportsCheck = [ "kajiki" ]; meta = with lib; { description = "Module provides fast well-formed XML templates"; diff --git a/pkgs/development/python-modules/kaldi-active-grammar/default.nix b/pkgs/development/python-modules/kaldi-active-grammar/default.nix index 10d819bf8c52..a6ba282e6d29 100644 --- a/pkgs/development/python-modules/kaldi-active-grammar/default.nix +++ b/pkgs/development/python-modules/kaldi-active-grammar/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, scikit-build -, cmake -, ush -, requests -, six -, numpy -, cffi -, openfst -, substituteAll -, callPackage +{ + lib, + buildPythonPackage, + fetchFromGitHub, + scikit-build, + cmake, + ush, + requests, + six, + numpy, + cffi, + openfst, + substituteAll, + callPackage, }: # @@ -53,11 +54,23 @@ buildPythonPackage rec { cd .. ''; - buildInputs = [ openfst kaldi ]; - nativeBuildInputs = [ scikit-build cmake ]; - propagatedBuildInputs = [ ush requests numpy cffi six ]; + buildInputs = [ + openfst + kaldi + ]; + nativeBuildInputs = [ + scikit-build + cmake + ]; + propagatedBuildInputs = [ + ush + requests + numpy + cffi + six + ]; - doCheck = false; # no tests exist + doCheck = false; # no tests exist meta = with lib; { description = "Python Kaldi speech recognition"; diff --git a/pkgs/development/python-modules/kaldi-active-grammar/fork.nix b/pkgs/development/python-modules/kaldi-active-grammar/fork.nix index 7748e34df6f2..c8983cc65a9f 100644 --- a/pkgs/development/python-modules/kaldi-active-grammar/fork.nix +++ b/pkgs/development/python-modules/kaldi-active-grammar/fork.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, blas -, lapack -, openfst -, icu -, pkg-config -, fetchFromGitHub -, python3 -, openblas -, zlib -, gfortran +{ + lib, + stdenv, + blas, + lapack, + openfst, + icu, + pkg-config, + fetchFromGitHub, + python3, + openblas, + zlib, + gfortran, }: let diff --git a/pkgs/development/python-modules/kanidm/default.nix b/pkgs/development/python-modules/kanidm/default.nix index 88b98a1b5e79..e47f7b3f608d 100644 --- a/pkgs/development/python-modules/kanidm/default.nix +++ b/pkgs/development/python-modules/kanidm/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build -, poetry-core + # build + poetry-core, -# propagates -, aiohttp -, authlib -, pydantic -, toml + # propagates + aiohttp, + authlib, + pydantic, + toml, -# tests -, pytest-asyncio -, pytest-mock -, pytestCheckHook + # tests + pytest-asyncio, + pytest-mock, + pytestCheckHook, }: let @@ -37,9 +38,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/pykanidm"; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -54,18 +53,17 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "-m 'not network'" - ]; + pytestFlagsArray = [ "-m 'not network'" ]; - pythonImportsCheck = [ - "kanidm" - ]; + pythonImportsCheck = [ "kanidm" ]; meta = with lib; { description = "Kanidm client library"; homepage = "https://github.com/kanidm/kanidm/tree/master/pykanidm"; license = licenses.mpl20; - maintainers = with maintainers; [ arianvp hexa ]; + maintainers = with maintainers; [ + arianvp + hexa + ]; }; } diff --git a/pkgs/development/python-modules/kaptan/default.nix b/pkgs/development/python-modules/kaptan/default.nix index d570ae3b0066..248a09630f51 100644 --- a/pkgs/development/python-modules/kaptan/default.nix +++ b/pkgs/development/python-modules/kaptan/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyyaml -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pyyaml, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Configuration manager for python applications"; @@ -41,5 +36,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/karton-asciimagic/default.nix b/pkgs/development/python-modules/karton-asciimagic/default.nix index ffed577e7222..59ec94d592a4 100644 --- a/pkgs/development/python-modules/karton-asciimagic/default.nix +++ b/pkgs/development/python-modules/karton-asciimagic/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, karton-core -, unittestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + karton-core, + unittestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-sY5ik9efzLBa6Fbh17Vh4q7PlwOGYjuodU9yvp/8E3k="; }; - propagatedBuildInputs = [ - karton-core - ]; + propagatedBuildInputs = [ karton-core ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "karton.asciimagic" - ]; + pythonImportsCheck = [ "karton.asciimagic" ]; meta = with lib; { description = "Decoders for ascii-encoded executables for the Karton framework"; diff --git a/pkgs/development/python-modules/karton-autoit-ripper/default.nix b/pkgs/development/python-modules/karton-autoit-ripper/default.nix index f4a8e2f5868b..7974ad57c49e 100644 --- a/pkgs/development/python-modules/karton-autoit-ripper/default.nix +++ b/pkgs/development/python-modules/karton-autoit-ripper/default.nix @@ -1,11 +1,12 @@ -{ lib -, autoit-ripper -, buildPythonPackage -, fetchFromGitHub -, karton-core -, malduck -, pythonOlder -, regex +{ + lib, + autoit-ripper, + buildPythonPackage, + fetchFromGitHub, + karton-core, + malduck, + pythonOlder, + regex, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "karton.autoit_ripper" - ]; + pythonImportsCheck = [ "karton.autoit_ripper" ]; meta = with lib; { description = "AutoIt script ripper for Karton framework"; diff --git a/pkgs/development/python-modules/karton-classifier/default.nix b/pkgs/development/python-modules/karton-classifier/default.nix index bb104b291491..21bd3f5679d8 100644 --- a/pkgs/development/python-modules/karton-classifier/default.nix +++ b/pkgs/development/python-modules/karton-classifier/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, chardet -, fetchFromGitHub -, karton-core -, pytestCheckHook -, python-magic -, pythonOlder +{ + lib, + buildPythonPackage, + chardet, + fetchFromGitHub, + karton-core, + pytestCheckHook, + python-magic, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { python-magic ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace requirements.txt \ @@ -38,9 +37,7 @@ buildPythonPackage rec { --replace "python-magic==0.4.18" "python-magic" ''; - pythonImportsCheck = [ - "karton.classifier" - ]; + pythonImportsCheck = [ "karton.classifier" ]; disabledTests = [ # Tests expecting results from a different version of libmagic diff --git a/pkgs/development/python-modules/karton-config-extractor/default.nix b/pkgs/development/python-modules/karton-config-extractor/default.nix index 90ede387f922..55b0e4f5f0a4 100644 --- a/pkgs/development/python-modules/karton-config-extractor/default.nix +++ b/pkgs/development/python-modules/karton-config-extractor/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, karton-core -, malduck -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + karton-core, + malduck, + pythonOlder, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "karton.config_extractor" - ]; + pythonImportsCheck = [ "karton.config_extractor" ]; meta = with lib; { description = "Static configuration extractor for the Karton framework"; diff --git a/pkgs/development/python-modules/karton-dashboard/default.nix b/pkgs/development/python-modules/karton-dashboard/default.nix index b90653dddd46..bac655ec8341 100644 --- a/pkgs/development/python-modules/karton-dashboard/default.nix +++ b/pkgs/development/python-modules/karton-dashboard/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, karton-core -, mistune -, networkx -, prometheus-client -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + karton-core, + mistune, + networkx, + prometheus-client, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { "prometheus-client" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ flask diff --git a/pkgs/development/python-modules/karton-mwdb-reporter/default.nix b/pkgs/development/python-modules/karton-mwdb-reporter/default.nix index 0fd9713beaf6..d67ff1a31ae2 100644 --- a/pkgs/development/python-modules/karton-mwdb-reporter/default.nix +++ b/pkgs/development/python-modules/karton-mwdb-reporter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, karton-core -, mwdblib -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + karton-core, + mwdblib, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "karton.mwdb_reporter" - ]; + pythonImportsCheck = [ "karton.mwdb_reporter" ]; meta = with lib; { description = "Karton service that uploads analyzed artifacts and metadata to MWDB Core"; diff --git a/pkgs/development/python-modules/karton-yaramatcher/default.nix b/pkgs/development/python-modules/karton-yaramatcher/default.nix index 1d5c4d56173e..c64a248c474f 100644 --- a/pkgs/development/python-modules/karton-yaramatcher/default.nix +++ b/pkgs/development/python-modules/karton-yaramatcher/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, karton-core -, unittestCheckHook -, pythonOlder -, yara-python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + karton-core, + unittestCheckHook, + pythonOlder, + yara-python, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { yara-python ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "karton.yaramatcher" - ]; + pythonImportsCheck = [ "karton.yaramatcher" ]; meta = with lib; { description = "File and analysis artifacts yara matcher for the Karton framework"; diff --git a/pkgs/development/python-modules/kazoo/default.nix b/pkgs/development/python-modules/kazoo/default.nix index 73f041f49f23..8b0c78d705ed 100644 --- a/pkgs/development/python-modules/kazoo/default.nix +++ b/pkgs/development/python-modules/kazoo/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, eventlet -, gevent -, pynose -, mock -, coverage -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + six, + eventlet, + gevent, + pynose, + mock, + coverage, + pkgs, }: buildPythonPackage rec { @@ -21,7 +22,14 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ six ]; - buildInputs = [ eventlet gevent pynose mock coverage pkgs.openjdk8 ]; + buildInputs = [ + eventlet + gevent + pynose + mock + coverage + pkgs.openjdk8 + ]; # not really needed preBuild = '' @@ -41,5 +49,4 @@ buildPythonPackage rec { description = "Higher Level Zookeeper Client"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/kbcstorage/default.nix b/pkgs/development/python-modules/kbcstorage/default.nix index a10b8ddf7316..4385c806fa0e 100644 --- a/pkgs/development/python-modules/kbcstorage/default.nix +++ b/pkgs/development/python-modules/kbcstorage/default.nix @@ -1,17 +1,18 @@ -{ lib -, azure-storage-blob -, boto3 -, buildPythonPackage -, fetchFromGitHub -, python-dotenv -, pythonOlder -, requests -, responses -, setuptools -, setuptools-git-versioning -, setuptools-scm -, unittestCheckHook -, urllib3 +{ + lib, + azure-storage-blob, + boto3, + buildPythonPackage, + fetchFromGitHub, + python-dotenv, + pythonOlder, + requests, + responses, + setuptools, + setuptools-git-versioning, + setuptools-scm, + unittestCheckHook, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/kconfiglib/default.nix b/pkgs/development/python-modules/kconfiglib/default.nix index 4e133e40df01..f9bfb1d2dd1b 100644 --- a/pkgs/development/python-modules/kconfiglib/default.nix +++ b/pkgs/development/python-modules/kconfiglib/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "kconfiglib"; diff --git a/pkgs/development/python-modules/keba-kecontact/default.nix b/pkgs/development/python-modules/keba-kecontact/default.nix index 33ece1b408cd..66ed7604fa05 100644 --- a/pkgs/development/python-modules/keba-kecontact/default.nix +++ b/pkgs/development/python-modules/keba-kecontact/default.nix @@ -1,9 +1,10 @@ -{ lib -, asyncio-dgram -, buildPythonPackage -, fetchFromGitHub -, netifaces -, pythonOlder +{ + lib, + asyncio-dgram, + buildPythonPackage, + fetchFromGitHub, + netifaces, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "keba_kecontact" - ]; + pythonImportsCheck = [ "keba_kecontact" ]; meta = with lib; { description = "Python library for controlling KEBA charging stations"; diff --git a/pkgs/development/python-modules/keep/default.nix b/pkgs/development/python-modules/keep/default.nix index 354ce597e6ec..6e9c15fd0fce 100644 --- a/pkgs/development/python-modules/keep/default.nix +++ b/pkgs/development/python-modules/keep/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pygithub -, terminaltables -, click -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pygithub, + terminaltables, + click, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/keepalive/default.nix b/pkgs/development/python-modules/keepalive/default.nix index 94a9b413c4fd..dd2c66c7d403 100644 --- a/pkgs/development/python-modules/keepalive/default.nix +++ b/pkgs/development/python-modules/keepalive/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, }: buildPythonPackage rec { @@ -20,7 +21,7 @@ buildPythonPackage rec { name = "remove-use_2to3.patch"; url = "https://github.com/wikier/keepalive/commit/64393f6c5bf9c69d946b584fd664dd4df72604e6.patch"; hash = "sha256-/G1eEt8a4Qz7x5oQnDZZD/PIQwo9+oPZoy9OrXGHvR4="; - excludes = ["README.md"]; + excludes = [ "README.md" ]; }) ]; diff --git a/pkgs/development/python-modules/keepkey-agent/default.nix b/pkgs/development/python-modules/keepkey-agent/default.nix index f9404f183c47..df3f5444772d 100644 --- a/pkgs/development/python-modules/keepkey-agent/default.nix +++ b/pkgs/development/python-modules/keepkey-agent/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, keepkey -, setuptools -, libagent -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + keepkey, + setuptools, + libagent, + wheel, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - keepkey libagent setuptools wheel + keepkey + libagent + setuptools + wheel ]; doCheck = false; @@ -29,6 +33,10 @@ buildPythonPackage rec { description = "Using KeepKey as hardware-based SSH/PGP agent"; homepage = "https://github.com/romanz/trezor-agent"; license = licenses.gpl3; - maintainers = with maintainers; [ hkjn np mmahut ]; + maintainers = with maintainers; [ + hkjn + np + mmahut + ]; }; } diff --git a/pkgs/development/python-modules/keepkey/default.nix b/pkgs/development/python-modules/keepkey/default.nix index d4a62c74a639..f0633a06b838 100644 --- a/pkgs/development/python-modules/keepkey/default.nix +++ b/pkgs/development/python-modules/keepkey/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, ecdsa -, hidapi -, libusb1 -, mnemonic -, protobuf -, pytest +{ + lib, + fetchFromGitHub, + buildPythonPackage, + ecdsa, + hidapi, + libusb1, + mnemonic, + protobuf, + pytest, }: buildPythonPackage rec { @@ -21,7 +22,13 @@ buildPythonPackage rec { sha256 = "00hqppdj3s9y25x4ad59y8axq94dd4chhw9zixq32sdrd9v8z55a"; }; - propagatedBuildInputs = [ ecdsa hidapi libusb1 mnemonic protobuf ]; + propagatedBuildInputs = [ + ecdsa + hidapi + libusb1 + mnemonic + protobuf + ]; nativeCheckInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/kegtron-ble/default.nix b/pkgs/development/python-modules/kegtron-ble/default.nix index e5ddcf01be1c..5d1928741b70 100644 --- a/pkgs/development/python-modules/kegtron-ble/default.nix +++ b/pkgs/development/python-modules/kegtron-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-O5I5shW8nL2RAQptS2Bp/GI/4L6o0xXXmwYvRq0MM8o="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -33,18 +32,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=kegtron_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "kegtron_ble" - ]; + pythonImportsCheck = [ "kegtron_ble" ]; meta = with lib; { description = "Library for Kegtron BLE devices"; diff --git a/pkgs/development/python-modules/keras-applications/default.nix b/pkgs/development/python-modules/keras-applications/default.nix index fdfbdba89cb8..cdb3beb6a403 100644 --- a/pkgs/development/python-modules/keras-applications/default.nix +++ b/pkgs/development/python-modules/keras-applications/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, numpy, h5py }: +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + h5py, +}: buildPythonPackage rec { pname = "keras-applications"; @@ -18,7 +24,10 @@ buildPythonPackage rec { # No tests in PyPI tarball doCheck = false; - propagatedBuildInputs = [ numpy h5py ]; + propagatedBuildInputs = [ + numpy + h5py + ]; meta = with lib; { description = "Reference implementations of popular deep learning models"; diff --git a/pkgs/development/python-modules/keras-preprocessing/default.nix b/pkgs/development/python-modules/keras-preprocessing/default.nix index 833a01c0f254..0e9b0bf5187f 100644 --- a/pkgs/development/python-modules/keras-preprocessing/default.nix +++ b/pkgs/development/python-modules/keras-preprocessing/default.nix @@ -1,4 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi, numpy, six, scipy, pillow, pytest, keras }: +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + six, + scipy, + pillow, + pytest, + keras, +}: buildPythonPackage rec { pname = "keras-preprocessing"; @@ -12,13 +22,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ # required - numpy six + numpy + six # optional - scipy pillow + scipy + pillow ]; nativeCheckInputs = [ - pytest keras + pytest + keras ]; checkPhase = '' diff --git a/pkgs/development/python-modules/keras/default.nix b/pkgs/development/python-modules/keras/default.nix index 156f8f5c2cd5..89e0fdbe3923 100644 --- a/pkgs/development/python-modules/keras/default.nix +++ b/pkgs/development/python-modules/keras/default.nix @@ -1,7 +1,18 @@ -{ lib, buildPythonPackage, fetchPypi -, pytest, pytest-cov, pytest-xdist -, six, numpy, scipy, pyyaml, h5py, optree -, keras-applications, keras-preprocessing +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytest-cov, + pytest-xdist, + six, + numpy, + scipy, + pyyaml, + h5py, + optree, + keras-applications, + keras-preprocessing, }: buildPythonPackage rec { @@ -23,8 +34,13 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - six pyyaml numpy scipy h5py - keras-applications keras-preprocessing + six + pyyaml + numpy + scipy + h5py + keras-applications + keras-preprocessing ]; # Couldn't get tests working diff --git a/pkgs/development/python-modules/kerberos/default.nix b/pkgs/development/python-modules/kerberos/default.nix index 4c5a8027e22d..8f6f8c7682e0 100644 --- a/pkgs/development/python-modules/kerberos/default.nix +++ b/pkgs/development/python-modules/kerberos/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, libkrb5 +{ + lib, + buildPythonPackage, + fetchPypi, + libkrb5, }: buildPythonPackage rec { @@ -23,8 +24,6 @@ buildPythonPackage rec { description = "Kerberos high-level interface"; homepage = "https://pypi.org/project/kerberos/"; license = licenses.asl20; - knownVulnerabilities = [ - "CVE-2015-3206" - ]; + knownVulnerabilities = [ "CVE-2015-3206" ]; }; } diff --git a/pkgs/development/python-modules/keyboard/default.nix b/pkgs/development/python-modules/keyboard/default.nix index 20b3453dab0d..66f5efb5693c 100644 --- a/pkgs/development/python-modules/keyboard/default.nix +++ b/pkgs/development/python-modules/keyboard/default.nix @@ -1,6 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "keyboard"; diff --git a/pkgs/development/python-modules/keyring-pass/default.nix b/pkgs/development/python-modules/keyring-pass/default.nix index 6c8d5f1e915b..bf618e9a136a 100644 --- a/pkgs/development/python-modules/keyring-pass/default.nix +++ b/pkgs/development/python-modules/keyring-pass/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gnupg -, keyring -, pass -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gnupg, + keyring, + pass, + poetry-core, + pythonOlder, }: buildPythonPackage rec { pname = "keyring-pass"; @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace 'pass_binary = "pass"' 'pass_binary = "${lib.getExe pass}"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ keyring @@ -65,9 +64,7 @@ buildPythonPackage rec { keyring del test-service test-username ''; - pythonImportsCheck = [ - "keyring_pass" - ]; + pythonImportsCheck = [ "keyring_pass" ]; meta = { description = "Password Store (pass) backend for python's keyring"; diff --git a/pkgs/development/python-modules/keyring/default.nix b/pkgs/development/python-modules/keyring/default.nix index ba2c56d99682..0fa0854d6dac 100644 --- a/pkgs/development/python-modules/keyring/default.nix +++ b/pkgs/development/python-modules/keyring/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, installShellFiles -, setuptools-scm -, shtab -, importlib-metadata -, dbus-python -, jaraco-classes -, jeepney -, secretstorage -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + installShellFiles, + setuptools-scm, + shtab, + importlib-metadata, + dbus-python, + jaraco-classes, + jeepney, + secretstorage, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,14 +32,13 @@ buildPythonPackage rec { shtab ]; - propagatedBuildInputs = [ - jaraco-classes - ] ++ lib.optionals stdenv.isLinux [ - jeepney - secretstorage - ] ++ lib.optionals (pythonOlder "3.12") [ - importlib-metadata - ]; + propagatedBuildInputs = + [ jaraco-classes ] + ++ lib.optionals stdenv.isLinux [ + jeepney + secretstorage + ] + ++ lib.optionals (pythonOlder "3.12") [ importlib-metadata ]; postInstall = '' installShellCompletion --cmd keyring \ @@ -51,23 +51,23 @@ buildPythonPackage rec { "keyring.backend" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = [ - "tests/backends/test_macOS.py" - ] - # These tests fail when sandboxing is enabled because they are unable to get a password from keychain. - ++ lib.optional stdenv.isDarwin "tests/test_multiprocess.py"; + disabledTestPaths = + [ "tests/backends/test_macOS.py" ] + # These tests fail when sandboxing is enabled because they are unable to get a password from keychain. + ++ lib.optional stdenv.isDarwin "tests/test_multiprocess.py"; meta = with lib; { description = "Store and access your passwords safely"; - homepage = "https://github.com/jaraco/keyring"; - changelog = "https://github.com/jaraco/keyring/blob/v${version}/NEWS.rst"; - license = licenses.mit; + homepage = "https://github.com/jaraco/keyring"; + changelog = "https://github.com/jaraco/keyring/blob/v${version}/NEWS.rst"; + license = licenses.mit; mainProgram = "keyring"; - maintainers = with maintainers; [ lovek323 dotlambda ]; - platforms = platforms.unix; + maintainers = with maintainers; [ + lovek323 + dotlambda + ]; + platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/keyrings-alt/default.nix b/pkgs/development/python-modules/keyrings-alt/default.nix index 2ad45c6e717f..b129e8083b52 100644 --- a/pkgs/development/python-modules/keyrings-alt/default.nix +++ b/pkgs/development/python-modules/keyrings-alt/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jaraco-classes -, jaraco-context -, keyring -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + jaraco-classes, + jaraco-context, + keyring, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-zTcqHsRGobxakGJKUsiOg7kzAhjjkEemyaSK430RZ0U="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ jaraco-classes @@ -36,9 +35,7 @@ buildPythonPackage rec { keyring ]; - pythonImportsCheck = [ - "keyrings.alt" - ]; + pythonImportsCheck = [ "keyrings.alt" ]; meta = with lib; { description = "Alternate keyring implementations"; diff --git a/pkgs/development/python-modules/keyrings-cryptfile/default.nix b/pkgs/development/python-modules/keyrings-cryptfile/default.nix index 1621bcb30d95..d9cd3f4a0e04 100644 --- a/pkgs/development/python-modules/keyrings-cryptfile/default.nix +++ b/pkgs/development/python-modules/keyrings-cryptfile/default.nix @@ -1,11 +1,12 @@ -{ lib -, argon2-cffi -, buildPythonPackage -, fetchPypi -, keyring -, pycryptodome -, pytestCheckHook -, pythonOlder +{ + lib, + argon2-cffi, + buildPythonPackage, + fetchPypi, + keyring, + pycryptodome, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { pycryptodome ]; - pythonImportsCheck = [ - "keyrings.cryptfile" - ]; + pythonImportsCheck = [ "keyrings.cryptfile" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # FileNotFoundError: [Errno 2] No such file or directory: '/build/... diff --git a/pkgs/development/python-modules/keyrings-google-artifactregistry-auth/default.nix b/pkgs/development/python-modules/keyrings-google-artifactregistry-auth/default.nix index b9204cbdabe7..337d89567415 100644 --- a/pkgs/development/python-modules/keyrings-google-artifactregistry-auth/default.nix +++ b/pkgs/development/python-modules/keyrings-google-artifactregistry-auth/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-auth -, keyring -, pluggy -, pythonOlder -, requests -, setuptools-scm -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + google-auth, + keyring, + pluggy, + pythonOlder, + requests, + setuptools-scm, + toml, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "keyrings.gauth" - ]; + pythonImportsCheck = [ "keyrings.gauth" ]; # upstream has no tests doCheck = false; diff --git a/pkgs/development/python-modules/keyrings-passwordstore/default.nix b/pkgs/development/python-modules/keyrings-passwordstore/default.nix index db8d934c9300..43f35253ddfc 100644 --- a/pkgs/development/python-modules/keyrings-passwordstore/default.nix +++ b/pkgs/development/python-modules/keyrings-passwordstore/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -, keyring -, setuptools-scm + keyring, + setuptools-scm, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-pylZw45FUtLHzUV4cDyl/nT8tCZwNj4Jf41MMlyskoU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - keyring - ]; + nativeCheckInputs = [ keyring ]; - pythonImportsCheck = [ - "keyrings.passwordstore.backend" - ]; + pythonImportsCheck = [ "keyrings.passwordstore.backend" ]; meta = { license = lib.licenses.mit; diff --git a/pkgs/development/python-modules/keystone-engine/default.nix b/pkgs/development/python-modules/keystone-engine/default.nix index 5b392186c952..61e27473ec98 100644 --- a/pkgs/development/python-modules/keystone-engine/default.nix +++ b/pkgs/development/python-modules/keystone-engine/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, buildPythonPackage, fetchPypi, keystone }: +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + keystone, +}: buildPythonPackage rec { pname = "keystone-engine"; @@ -6,11 +12,14 @@ buildPythonPackage rec { format = "setuptools"; src = fetchPypi { - inherit pname version; - sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig"; + inherit pname version; + sha256 = "1xahdr6bh3dw5swrc2r8kqa8ljhqlb7k2kxv5mrw5rhcmcnzcyig"; }; - setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ]; + setupPyBuildFlags = lib.optionals stdenv.isLinux [ + "--plat-name" + "linux" + ]; preConfigure = '' substituteInPlace setup.py --replace \ diff --git a/pkgs/development/python-modules/keystoneauth1/default.nix b/pkgs/development/python-modules/keystoneauth1/default.nix index 412080ba846f..f6caa2d8e9e9 100644 --- a/pkgs/development/python-modules/keystoneauth1/default.nix +++ b/pkgs/development/python-modules/keystoneauth1/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchPypi -, betamax -, hacking -, iso8601 -, lxml -, oauthlib -, os-service-types -, oslo-config -, oslo-utils -, pbr -, pycodestyle -, pyyaml -, requests -, requests-kerberos -, requests-mock -, setuptools -, six -, stestr -, stevedore -, testresources -, testtools +{ + lib, + buildPythonPackage, + fetchPypi, + betamax, + hacking, + iso8601, + lxml, + oauthlib, + os-service-types, + oslo-config, + oslo-utils, + pbr, + pycodestyle, + pyyaml, + requests, + requests-kerberos, + requests-mock, + setuptools, + six, + stestr, + stevedore, + testresources, + testtools, }: buildPythonPackage rec { pname = "keystoneauth1"; version = "5.6.0"; - pyproject= true; + pyproject = true; src = fetchPypi { inherit pname version; @@ -39,9 +40,7 @@ buildPythonPackage rec { rm test-requirements.txt ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ betamax diff --git a/pkgs/development/python-modules/keyutils/default.nix b/pkgs/development/python-modules/keyutils/default.nix index 3782a3b23626..e62e56c5da41 100644 --- a/pkgs/development/python-modules/keyutils/default.nix +++ b/pkgs/development/python-modules/keyutils/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, keyutils -, pytestCheckHook +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + keyutils, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { buildInputs = [ keyutils ]; nativeBuildInputs = [ cython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "A set of python bindings for keyutils"; diff --git a/pkgs/development/python-modules/khanaa/default.nix b/pkgs/development/python-modules/khanaa/default.nix index 8548def29c3d..3135e38d9173 100644 --- a/pkgs/development/python-modules/khanaa/default.nix +++ b/pkgs/development/python-modules/khanaa/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, pythonOlder + pythonOlder, -, unittestCheckHook + unittestCheckHook, -, setuptools + setuptools, }: buildPythonPackage rec { @@ -23,24 +24,22 @@ buildPythonPackage rec { hash = "sha256-BzxNHYMkp5pdJYQ80EI5jlP654yX9woW7wz1jArCln4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; pythonImportsCheck = [ "khanaa" ]; - meta = with lib; - { - description = "A tool to make spelling Thai more convenient"; - homepage = "https://github.com/cakimpei/khanaa"; - changelog = "https://github.com/cakimpei/khanaa/blob/main/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ vizid ]; - }; + meta = with lib; { + description = "A tool to make spelling Thai more convenient"; + homepage = "https://github.com/cakimpei/khanaa"; + changelog = "https://github.com/cakimpei/khanaa/blob/main/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ vizid ]; + }; } diff --git a/pkgs/development/python-modules/kinparse/default.nix b/pkgs/development/python-modules/kinparse/default.nix index 9c3286d1c62c..7024ebd21003 100644 --- a/pkgs/development/python-modules/kinparse/default.nix +++ b/pkgs/development/python-modules/kinparse/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, future -, pyparsing +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + future, + pyparsing, }: buildPythonPackage { @@ -21,9 +22,7 @@ buildPythonPackage { doCheck = true; pythonImportsCheck = [ "kinparse" ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; propagatedBuildInputs = [ future diff --git a/pkgs/development/python-modules/kiss-headers/default.nix b/pkgs/development/python-modules/kiss-headers/default.nix index 895773678ca8..f12ee172bed5 100644 --- a/pkgs/development/python-modules/kiss-headers/default.nix +++ b/pkgs/development/python-modules/kiss-headers/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, hatchling, requests, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + requests, + pytestCheckHook, +}: buildPythonPackage rec { pname = "kiss-headers"; diff --git a/pkgs/development/python-modules/kitchen/default.nix b/pkgs/development/python-modules/kitchen/default.nix index e60650594855..8aba622aee15 100644 --- a/pkgs/development/python-modules/kitchen/default.nix +++ b/pkgs/development/python-modules/kitchen/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Waiting for upstream's clean-up doCheck = false; - pythonImportsCheck = [ - "kitchen" - ]; + pythonImportsCheck = [ "kitchen" ]; meta = with lib; { description = "Kitchen contains a cornucopia of useful code"; diff --git a/pkgs/development/python-modules/kivy-garden/default.nix b/pkgs/development/python-modules/kivy-garden/default.nix index 1475b4448230..981586f4513c 100644 --- a/pkgs/development/python-modules/kivy-garden/default.nix +++ b/pkgs/development/python-modules/kivy-garden/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/kivy/default.nix b/pkgs/development/python-modules/kivy/default.nix index 0a9e006844a8..9b39aa1fd058 100644 --- a/pkgs/development/python-modules/kivy/default.nix +++ b/pkgs/development/python-modules/kivy/default.nix @@ -1,12 +1,29 @@ -{ lib, stdenv -, buildPythonPackage, fetchFromGitHub, fetchpatch -, pkg-config, cython_0, docutils -, kivy-garden -, mesa, mtdev, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer -, Accelerate, ApplicationServices, AVFoundation, libcxx -, withGstreamer ? true -, gst_all_1 -, packaging, pillow, pygments, requests +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pkg-config, + cython_0, + docutils, + kivy-garden, + mesa, + mtdev, + SDL2, + SDL2_image, + SDL2_ttf, + SDL2_mixer, + Accelerate, + ApplicationServices, + AVFoundation, + libcxx, + withGstreamer ? true, + gst_all_1, + packaging, + pillow, + pygments, + requests, }: buildPythonPackage rec { @@ -26,26 +43,33 @@ buildPythonPackage rec { docutils ]; - buildInputs = [ - SDL2 - SDL2_image - SDL2_ttf - SDL2_mixer - ] ++ lib.optionals stdenv.isLinux [ - mesa - mtdev - ] ++ lib.optionals stdenv.isDarwin [ - Accelerate - ApplicationServices - AVFoundation - libcxx - ] ++ lib.optionals withGstreamer (with gst_all_1; [ - # NOTE: The degree to which gstreamer actually works is unclear - gstreamer - gst-plugins-base - gst-plugins-good - gst-plugins-bad - ]); + buildInputs = + [ + SDL2 + SDL2_image + SDL2_ttf + SDL2_mixer + ] + ++ lib.optionals stdenv.isLinux [ + mesa + mtdev + ] + ++ lib.optionals stdenv.isDarwin [ + Accelerate + ApplicationServices + AVFoundation + libcxx + ] + ++ lib.optionals withGstreamer ( + with gst_all_1; + [ + # NOTE: The degree to which gstreamer actually works is unclear + gstreamer + gst-plugins-base + gst-plugins-good + gst-plugins-bad + ] + ); propagatedBuildInputs = [ kivy-garden diff --git a/pkgs/development/python-modules/kiwiki-client/default.nix b/pkgs/development/python-modules/kiwiki-client/default.nix index 22da8a5236e2..45f328d08fb6 100644 --- a/pkgs/development/python-modules/kiwiki-client/default.nix +++ b/pkgs/development/python-modules/kiwiki-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python-dateutil -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-dateutil, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "kiwiki" - ]; + pythonImportsCheck = [ "kiwiki" ]; meta = with lib; { description = "Module to interact with the KIWI.KI API"; diff --git a/pkgs/development/python-modules/kiwisolver/default.nix b/pkgs/development/python-modules/kiwisolver/default.nix index bc905e77269a..e68ff83c462e 100644 --- a/pkgs/development/python-modules/kiwisolver/default.nix +++ b/pkgs/development/python-modules/kiwisolver/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, stdenv -, libcxx -, cppy -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + stdenv, + libcxx, + cppy, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - cppy - ]; + buildInputs = [ cppy ]; - pythonImportsCheck = [ - "kiwisolver" - ]; + pythonImportsCheck = [ "kiwisolver" ]; meta = with lib; { description = "Implementation of the Cassowary constraint solver"; diff --git a/pkgs/development/python-modules/klaus/default.nix b/pkgs/development/python-modules/klaus/default.nix index 6b60c78465bb..71b0a485f10a 100644 --- a/pkgs/development/python-modules/klaus/default.nix +++ b/pkgs/development/python-modules/klaus/default.nix @@ -1,4 +1,18 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, flask, pygments, dulwich, httpauth, humanize, pytest, requests, python-ctags3, mock }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + flask, + pygments, + dulwich, + httpauth, + humanize, + pytest, + requests, + python-ctags3, + mock, +}: buildPythonPackage rec { pname = "klaus"; @@ -18,11 +32,17 @@ buildPythonPackage rec { ''; propagatedBuildInputs = [ - flask pygments dulwich httpauth humanize + flask + pygments + dulwich + httpauth + humanize ]; nativeCheckInputs = [ - pytest requests python-ctags3 + pytest + requests + python-ctags3 ] ++ lib.optional (!isPy3k) mock; checkPhase = '' @@ -35,8 +55,8 @@ buildPythonPackage rec { meta = with lib; { description = "The first Git web viewer that Just Works"; mainProgram = "klaus"; - homepage = "https://github.com/jonashaag/klaus"; - license = licenses.isc; + homepage = "https://github.com/jonashaag/klaus"; + license = licenses.isc; maintainers = with maintainers; [ pSub ]; }; } diff --git a/pkgs/development/python-modules/klein/default.nix b/pkgs/development/python-modules/klein/default.nix index dd9d154cba63..c6d31a9e5a0b 100644 --- a/pkgs/development/python-modules/klein/default.nix +++ b/pkgs/development/python-modules/klein/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools -, wheel + # build-system + setuptools, + wheel, -# dependencies -, attrs -, hyperlink -, incremental -, tubes -, twisted -, werkzeug -, zope-interface + # dependencies + attrs, + hyperlink, + incremental, + tubes, + twisted, + werkzeug, + zope-interface, -# tests -, idna -, python -, treq + # tests + idna, + python, + treq, }: buildPythonPackage rec { @@ -62,9 +63,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "klein" - ]; + pythonImportsCheck = [ "klein" ]; meta = with lib; { changelog = "https://github.com/twisted/klein/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/kmapper/default.nix b/pkgs/development/python-modules/kmapper/default.nix index c4f99ca613f5..dff908bf00e0 100644 --- a/pkgs/development/python-modules/kmapper/default.nix +++ b/pkgs/development/python-modules/kmapper/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, scikit-learn -, numpy -, scipy -, jinja2 -, pytestCheckHook -, networkx -, matplotlib -, igraph -, plotly -, ipywidgets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + scikit-learn, + numpy, + scipy, + jinja2, + pytestCheckHook, + networkx, + matplotlib, + igraph, + plotly, + ipywidgets, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/kml2geojson/default.nix b/pkgs/development/python-modules/kml2geojson/default.nix index 50f0097df7e8..3b392a227aae 100644 --- a/pkgs/development/python-modules/kml2geojson/default.nix +++ b/pkgs/development/python-modules/kml2geojson/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, poetry-core -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, click +{ + lib, + buildPythonPackage, + poetry-core, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + click, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-iJEcXpvy+Y3MkxAF2Q1Tkcx8GxUVjeVzv6gl134zdiI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "kml2geojson" - ]; + pythonImportsCheck = [ "kml2geojson" ]; meta = with lib; { description = "Library to convert KML to GeoJSON"; diff --git a/pkgs/development/python-modules/knack/default.nix b/pkgs/development/python-modules/knack/default.nix index 7932b4953991..6aa3b3bf3f4e 100644 --- a/pkgs/development/python-modules/knack/default.nix +++ b/pkgs/development/python-modules/knack/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, argcomplete -, colorama -, jmespath -, pygments -, pyyaml -, six -, tabulate -, mock -, vcrpy -, pytest -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + argcomplete, + colorama, + jmespath, + pygments, + pyyaml, + six, + tabulate, + mock, + vcrpy, + pytest, + pythonOlder, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { HOME=$TMPDIR pytest . ''; - pythonImportsCheck = [ - "knack" - ]; + pythonImportsCheck = [ "knack" ]; meta = with lib; { homepage = "https://github.com/microsoft/knack"; diff --git a/pkgs/development/python-modules/kneed/default.nix b/pkgs/development/python-modules/kneed/default.nix index 4510aaa1cac0..0852d12a7340 100644 --- a/pkgs/development/python-modules/kneed/default.nix +++ b/pkgs/development/python-modules/kneed/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, numpy -, scipy -, matplotlib -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + numpy, + scipy, + matplotlib, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { --replace "--cov=kneed" "" ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/knx-frontend/default.nix b/pkgs/development/python-modules/knx-frontend/default.nix index 6b6a1cff6700..060062891d9a 100644 --- a/pkgs/development/python-modules/knx-frontend/default.nix +++ b/pkgs/development/python-modules/knx-frontend/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-5u+BaZjbGpIpQd3k+u5NC099TQuiwGKdE/EoIWny01I="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "knx_frontend" - ]; + pythonImportsCheck = [ "knx_frontend" ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/kombu/default.nix b/pkgs/development/python-modules/kombu/default.nix index c4aad1fab20f..a353418fd5a3 100644 --- a/pkgs/development/python-modules/kombu/default.nix +++ b/pkgs/development/python-modules/kombu/default.nix @@ -1,28 +1,29 @@ -{ lib -, amqp -, azure-identity -, azure-servicebus -, azure-storage-queue -, backports-zoneinfo -, boto3 -, buildPythonPackage -, case -, confluent-kafka -, fetchPypi -, hypothesis -, kazoo -, msgpack -, pycurl -, pymongo +{ + lib, + amqp, + azure-identity, + azure-servicebus, + azure-storage-queue, + backports-zoneinfo, + boto3, + buildPythonPackage, + case, + confluent-kafka, + fetchPypi, + hypothesis, + kazoo, + msgpack, + pycurl, + pymongo, #, pyro4 -, pytest7CheckHook -, pythonOlder -, pyyaml -, redis -, sqlalchemy -, typing-extensions -, urllib3 -, vine + pytest7CheckHook, + pythonOlder, + pyyaml, + redis, + sqlalchemy, + typing-extensions, + urllib3, + vine, }: buildPythonPackage rec { @@ -37,49 +38,32 @@ buildPythonPackage rec { hash = "sha256-ARxM2aNVwUod6NNdJXMUodJFbVK3FAOIVhrKw88al78="; }; - propagatedBuildInputs = [ - amqp - vine - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + propagatedBuildInputs = + [ + amqp + vine + ] + ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ] + ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; passthru.optional-dependencies = { - msgpack = [ - msgpack - ]; - yaml = [ - pyyaml - ]; - redis = [ - redis - ]; - mongodb = [ - pymongo - ]; + msgpack = [ msgpack ]; + yaml = [ pyyaml ]; + redis = [ redis ]; + mongodb = [ pymongo ]; sqs = [ boto3 urllib3 pycurl ]; - zookeeper = [ - kazoo - ]; - sqlalchemy = [ - sqlalchemy - ]; + zookeeper = [ kazoo ]; + sqlalchemy = [ sqlalchemy ]; azurestoragequeues = [ azure-identity azure-storage-queue ]; - azureservicebus = [ - azure-servicebus - ]; - confluentkafka = [ - confluent-kafka - ]; + azureservicebus = [ azure-servicebus ]; + confluentkafka = [ confluent-kafka ]; # pyro4 doesn't suppport Python 3.11 #pyro = [ # pyro4 @@ -92,9 +76,7 @@ buildPythonPackage rec { pytest7CheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "kombu" - ]; + pythonImportsCheck = [ "kombu" ]; disabledTests = [ # Disable pyro4 test diff --git a/pkgs/development/python-modules/konnected/default.nix b/pkgs/development/python-modules/konnected/default.nix index c279223a5268..e7d7055dfa7d 100644 --- a/pkgs/development/python-modules/konnected/default.nix +++ b/pkgs/development/python-modules/konnected/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "b8b4e15c3228b01c9fad3651e09fea1654357ae8c333096e759a1b7d0eb4e789"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/korean-lunar-calendar/default.nix b/pkgs/development/python-modules/korean-lunar-calendar/default.nix index e9c7431b47df..92d725b150dd 100644 --- a/pkgs/development/python-modules/korean-lunar-calendar/default.nix +++ b/pkgs/development/python-modules/korean-lunar-calendar/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/kornia-rs/default.nix b/pkgs/development/python-modules/kornia-rs/default.nix index f493d74a6b8d..c1337f87f7fa 100644 --- a/pkgs/development/python-modules/kornia-rs/default.nix +++ b/pkgs/development/python-modules/kornia-rs/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, rustPlatform -, cmake -, nasm -, substituteAll -, libiconv +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + rustPlatform, + cmake, + nasm, + substituteAll, + libiconv, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; cargoRoot = "py-kornia"; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; # The path dependency doesn't vendor the dependencies correctly, so get kornia-rs from crates instead. patches = [ @@ -47,7 +46,10 @@ buildPythonPackage rec { cp ${./Cargo.lock} py-kornia/Cargo.lock ''; - maturinBuildFlags = [ "-m" "py-kornia/Cargo.toml" ]; + maturinBuildFlags = [ + "-m" + "py-kornia/Cargo.toml" + ]; dontUseCmakeConfigure = true; # We only want to use CMake to build some Rust dependencies. diff --git a/pkgs/development/python-modules/kornia/default.nix b/pkgs/development/python-modules/kornia/default.nix index 0663cfecea0c..79f9857e9677 100644 --- a/pkgs/development/python-modules/kornia/default.nix +++ b/pkgs/development/python-modules/kornia/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, packaging -, torch -, kornia-rs +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + packaging, + torch, + kornia-rs, }: buildPythonPackage rec { @@ -44,7 +45,7 @@ buildPythonPackage rec { "kornia.utils" ]; - doCheck = false; # tests hang with no single test clearly responsible + doCheck = false; # tests hang with no single test clearly responsible meta = with lib; { homepage = "https://kornia.github.io/kornia"; diff --git a/pkgs/development/python-modules/kotsu/default.nix b/pkgs/development/python-modules/kotsu/default.nix index f1f9389daf5b..9add6e9733a3 100644 --- a/pkgs/development/python-modules/kotsu/default.nix +++ b/pkgs/development/python-modules/kotsu/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pandas -, typing-extensions -, pytestCheckHook -, pytest-mock -, scikit-learn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pandas, + typing-extensions, + pytestCheckHook, + pytest-mock, + scikit-learn, }: buildPythonPackage rec { @@ -23,11 +24,12 @@ buildPythonPackage rec { hash = "sha256-V5OkgiLUTRNbNt6m94+aYUZd9Nw+/60LfhrqqdFhiUw="; }; - patches = [ - ./disable-pytest-coverage-flags.patch - ]; + patches = [ ./disable-pytest-coverage-flags.patch ]; - propagatedBuildInputs = [ pandas typing-extensions ]; + propagatedBuildInputs = [ + pandas + typing-extensions + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/krakenex/default.nix b/pkgs/development/python-modules/krakenex/default.nix index 59b0984e956b..8009a6264b53 100644 --- a/pkgs/development/python-modules/krakenex/default.nix +++ b/pkgs/development/python-modules/krakenex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-aWALkM79VOm2/EQdp2rD1sm0NxhLKZOXzAs8m+t7M0s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/krfzf-py/default.nix b/pkgs/development/python-modules/krfzf-py/default.nix index d55334d21e8c..29cec7c6c9f9 100644 --- a/pkgs/development/python-modules/krfzf-py/default.nix +++ b/pkgs/development/python-modules/krfzf-py/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-/M9Atu9MLAGmnEdx6tknMJAit2o4Xt971uQ7pb0CBCk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; pythonImportsCheck = [ "fzf" ]; diff --git a/pkgs/development/python-modules/kserve/default.nix b/pkgs/development/python-modules/kserve/default.nix index 2bbfd3a80761..7796f3bedd6e 100644 --- a/pkgs/development/python-modules/kserve/default.nix +++ b/pkgs/development/python-modules/kserve/default.nix @@ -1,35 +1,36 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, deprecation -, poetry-core -, pythonRelaxDepsHook -, async-timeout -, cloudevents -, fastapi -, grpcio -, httpx -, kubernetes -, numpy -, orjson -, pandas -, prometheus-client -, protobuf -, psutil -, python-dateutil -, ray -, six -, tabulate -, timing-asgi -, uvicorn -, avro -, azure-storage-blob -, azure-storage-file-share -, boto3 -, botocore -, google-cloud-storage -, pytestCheckHook -, tomlkit +{ + lib, + buildPythonPackage, + fetchFromGitHub, + deprecation, + poetry-core, + pythonRelaxDepsHook, + async-timeout, + cloudevents, + fastapi, + grpcio, + httpx, + kubernetes, + numpy, + orjson, + pandas, + prometheus-client, + protobuf, + psutil, + python-dateutil, + ray, + six, + tabulate, + timing-asgi, + uvicorn, + avro, + azure-storage-blob, + azure-storage-file-share, + boto3, + botocore, + google-cloud-storage, + pytestCheckHook, + tomlkit, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ async-timeout diff --git a/pkgs/development/python-modules/kubernetes/default.nix b/pkgs/development/python-modules/kubernetes/default.nix index f5bf179d48db..4f5eacab9d19 100644 --- a/pkgs/development/python-modules/kubernetes/default.nix +++ b/pkgs/development/python-modules/kubernetes/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, adal -, buildPythonPackage -, certifi -, fetchFromGitHub -, google-auth -, mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, requests -, requests-oauthlib -, setuptools -, six -, urllib3 -, websocket-client +{ + lib, + stdenv, + adal, + buildPythonPackage, + certifi, + fetchFromGitHub, + google-auth, + mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + requests, + requests-oauthlib, + setuptools, + six, + urllib3, + websocket-client, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { --replace-fail "assertEquals" "assertEqual" ''; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; build-system = [ pythonRelaxDepsHook @@ -60,14 +59,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - adal = [ - adal - ]; + adal = [ adal ]; }; - pythonImportsCheck = [ - "kubernetes" - ]; + pythonImportsCheck = [ "kubernetes" ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/kurbopy/default.nix b/pkgs/development/python-modules/kurbopy/default.nix index e4665998534d..0935e36f7c76 100644 --- a/pkgs/development/python-modules/kurbopy/default.nix +++ b/pkgs/development/python-modules/kurbopy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fonttools -, pytestCheckHook -, python -, rustPlatform -, unzip +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, + pytestCheckHook, + python, + rustPlatform, + unzip, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-dhpcDi20Na6SDbRxrC8N3SWdN1J/CWJgCUI3scJX/6s="; }; - propagatedBuildInputs = [ - fonttools - ]; + propagatedBuildInputs = [ fonttools ]; nativeBuildInputs = [ rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook @@ -33,9 +32,7 @@ buildPythonPackage rec { }; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # pytestCheckHook puts . at the front of Python's sys.path, due to: # https://github.com/NixOS/nixpkgs/issues/255262 diff --git a/pkgs/development/python-modules/l18n/default.nix b/pkgs/development/python-modules/l18n/default.nix index 29c4164097f9..3270550e87e3 100644 --- a/pkgs/development/python-modules/l18n/default.nix +++ b/pkgs/development/python-modules/l18n/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pytz -, six +{ + buildPythonPackage, + fetchPypi, + lib, + pytz, + six, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "sha256-GVbokNZz0XE1zCCRMlPBVPa8HAAmbCK31QPMGlpC2Eg="; }; - propagatedBuildInputs = [ pytz six ]; + propagatedBuildInputs = [ + pytz + six + ]; # tests are not included in sdist and building from source is none trivial doCheck = false; diff --git a/pkgs/development/python-modules/labelbox/default.nix b/pkgs/development/python-modules/labelbox/default.nix index 98c7adcc8e11..082ee58cbac3 100644 --- a/pkgs/development/python-modules/labelbox/default.nix +++ b/pkgs/development/python-modules/labelbox/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, geojson -, google-api-core -, imagesize -, nbconvert -, nbformat -, numpy -, opencv4 -, packaging -, pillow -, pydantic -, pyproj -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, requests -, setuptools -, shapely -, strenum -, tqdm -, typeguard -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + geojson, + google-api-core, + imagesize, + nbconvert, + nbformat, + numpy, + opencv4, + packaging, + pillow, + pydantic, + pyproj, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + requests, + setuptools, + shapely, + strenum, + tqdm, + typeguard, + typing-extensions, }: buildPythonPackage rec { @@ -48,17 +49,11 @@ buildPythonPackage rec { --replace-fail "pytest_plugins" "_pytest_plugins" ''; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "python-dateutil" - ]; + pythonRelaxDeps = [ "python-dateutil" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ google-api-core @@ -98,9 +93,7 @@ buildPythonPackage rec { "tests/data" ]; - pythonImportsCheck = [ - "labelbox" - ]; + pythonImportsCheck = [ "labelbox" ]; meta = with lib; { description = "Platform API for LabelBox"; diff --git a/pkgs/development/python-modules/labgrid/default.nix b/pkgs/development/python-modules/labgrid/default.nix index 31fc50197d20..d677d59d2365 100644 --- a/pkgs/development/python-modules/labgrid/default.nix +++ b/pkgs/development/python-modules/labgrid/default.nix @@ -1,28 +1,29 @@ -{ ansicolors -, attrs -, autobahn -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, lib -, mock -, openssh -, packaging -, pexpect -, psutil -, pyserial -, pytestCheckHook -, pytest-dependency -, pytest-mock -, pythonRelaxDepsHook -, pyudev -, pyusb -, pyyaml -, requests -, setuptools -, setuptools-scm -, wheel -, xmodem +{ + ansicolors, + attrs, + autobahn, + buildPythonPackage, + fetchFromGitHub, + jinja2, + lib, + mock, + openssh, + packaging, + pexpect, + psutil, + pyserial, + pytestCheckHook, + pytest-dependency, + pytest-mock, + pythonRelaxDepsHook, + pyudev, + pyusb, + pyyaml, + requests, + setuptools, + setuptools-scm, + wheel, + xmodem, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { "xmodem" ]; - pythonRemoveDeps = [ - "pyserial-labgrid" - ]; + pythonRemoveDeps = [ "pyserial-labgrid" ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/labmath/default.nix b/pkgs/development/python-modules/labmath/default.nix index 8ace5b3327e1..b17fe6ed0698 100644 --- a/pkgs/development/python-modules/labmath/default.nix +++ b/pkgs/development/python-modules/labmath/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-dzJ4szPxnck0Cgc5IEp5FBmHvIyAC0rqKRVrkt20ntQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "labmath" ]; diff --git a/pkgs/development/python-modules/laces/default.nix b/pkgs/development/python-modules/laces/default.nix index d29396658150..16f104a01a69 100644 --- a/pkgs/development/python-modules/laces/default.nix +++ b/pkgs/development/python-modules/laces/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, django -, fetchFromGitHub -, flit-core -, python3 +{ + lib, + buildPythonPackage, + django, + fetchFromGitHub, + flit-core, + python3, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-N3UUJomlihdM+6w9jmn9t10Q2meIqEOjW/rf3ZLrD78="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; pythonImportsCheck = [ "laces" ]; diff --git a/pkgs/development/python-modules/lakeside/default.nix b/pkgs/development/python-modules/lakeside/default.nix index bb33367d9647..37e0444bd66c 100644 --- a/pkgs/development/python-modules/lakeside/default.nix +++ b/pkgs/development/python-modules/lakeside/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, protobuf -, pycryptodome -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + protobuf, + pycryptodome, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "lakeside" - ]; + pythonImportsCheck = [ "lakeside" ]; meta = with lib; { description = "Library for controlling LED bulbs from Eufy"; diff --git a/pkgs/development/python-modules/langcodes/default.nix b/pkgs/development/python-modules/langcodes/default.nix index 555cc9e4795e..fc2f51f9c87a 100644 --- a/pkgs/development/python-modules/langcodes/default.nix +++ b/pkgs/development/python-modules/langcodes/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, marisa-trie -, pythonOlder -, fetchPypi -, poetry-core -, pytestCheckHook -, language-data -, setuptools +{ + lib, + buildPythonPackage, + marisa-trie, + pythonOlder, + fetchPypi, + poetry-core, + pytestCheckHook, + language-data, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { sha256 = "794d07d5a28781231ac335a1561b8442f8648ca07cd518310aeb45d6f0807ef6"; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ language-data @@ -31,18 +30,14 @@ buildPythonPackage rec { setuptools # pkg_resources import in language_data/util.py ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # AssertionError: assert 'Unknown language [aqk]' == 'Aninka' "test_updated_iana" ]; - pythonImportsCheck = [ - "langcodes" - ]; + pythonImportsCheck = [ "langcodes" ]; meta = with lib; { description = "Python toolkit for working with and comparing the standardized codes for languages"; diff --git a/pkgs/development/python-modules/langdetect/default.nix b/pkgs/development/python-modules/langdetect/default.nix index a50cbe73a32d..5db13ad9c4db 100644 --- a/pkgs/development/python-modules/langdetect/default.nix +++ b/pkgs/development/python-modules/langdetect/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { sha256 = "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "langdetect" ]; diff --git a/pkgs/development/python-modules/langid/default.nix b/pkgs/development/python-modules/langid/default.nix index 1f1c16777300..8c6bd3c211a3 100644 --- a/pkgs/development/python-modules/langid/default.nix +++ b/pkgs/development/python-modules/langid/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + numpy, }: buildPythonPackage rec { @@ -11,7 +12,8 @@ buildPythonPackage rec { version = "1.1.6"; format = "setuptools"; - src = fetchPypi { # use PyPi as source, github repository does not contain tags or release branches + src = fetchPypi { + # use PyPi as source, github repository does not contain tags or release branches inherit pname version; hash = "sha256-BEvK4ZEtq4XDPY6Y8oEbj0/xIT5emp6VEBN7hNosspM="; }; @@ -21,9 +23,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; doCheck = false; # Package has no tests pythonImportsCheck = [ "langid" ]; diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index f82c197d5190..2685a5260c16 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -58,9 +58,7 @@ buildPythonPackage rec { pytest-asyncio pytestCheckHook uvicorn - ] ++ lib.optionals stdenv.isLinux [ - attr - ]; + ] ++ lib.optionals stdenv.isLinux [ attr ]; disabledTests = [ # These tests require network access diff --git a/pkgs/development/python-modules/language-tags/default.nix b/pkgs/development/python-modules/language-tags/default.nix index 24cd835b14d6..a4397834df3a 100644 --- a/pkgs/development/python-modules/language-tags/default.nix +++ b/pkgs/development/python-modules/language-tags/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-T9K290seKhQLqW36EfA9kn3WveKCmyjN4Mx2j50qIEk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "language_tags" ]; diff --git a/pkgs/development/python-modules/lanms-neo/default.nix b/pkgs/development/python-modules/lanms-neo/default.nix index 149f98a608ae..b4d734e5cda1 100644 --- a/pkgs/development/python-modules/lanms-neo/default.nix +++ b/pkgs/development/python-modules/lanms-neo/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, pythonOlder -, pybind11 -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + pythonOlder, + pybind11, + numpy, }: let pname = "lanms-neo"; diff --git a/pkgs/development/python-modules/lark/default.nix b/pkgs/development/python-modules/lark/default.nix index ef2518189269..327c41080b4a 100644 --- a/pkgs/development/python-modules/lark/default.nix +++ b/pkgs/development/python-modules/lark/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, regex -, pytestCheckHook -, pythonOlder -, js2py -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + regex, + pytestCheckHook, + pythonOlder, + js2py, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-pWLKjELy10VNumpBHjBYCO2TltKsZx1GhQcGMHsYJNk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Optional import, but fixes some re known bugs & allows advanced regex features propagatedBuildInputs = [ regex ]; diff --git a/pkgs/development/python-modules/laspy/default.nix b/pkgs/development/python-modules/laspy/default.nix index 5375ed6f9ebe..0e89f49d55ac 100644 --- a/pkgs/development/python-modules/laspy/default.nix +++ b/pkgs/development/python-modules/laspy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, laszip -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + laszip, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-StaYkUNY6loJbaUuabzszTINnd+zZ0gKXCteCG24Erc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy laszip ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "laspy" diff --git a/pkgs/development/python-modules/laszip/default.nix b/pkgs/development/python-modules/laszip/default.nix index 85187d08f99f..bd9a89ce2414 100644 --- a/pkgs/development/python-modules/laszip/default.nix +++ b/pkgs/development/python-modules/laszip/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, scikit-build-core -, pybind11 -, cmake -, LASzip -, ninja -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + scikit-build-core, + pybind11, + cmake, + LASzip, + ninja, + pythonOlder, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - buildInputs = [ - LASzip - ]; + buildInputs = [ LASzip ]; # There are no tests doCheck = false; @@ -64,4 +63,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ matthewcroughan ]; }; } - diff --git a/pkgs/development/python-modules/latex2mathml/default.nix b/pkgs/development/python-modules/latex2mathml/default.nix index 0cf0276a73a0..0cf23f39e3e9 100644 --- a/pkgs/development/python-modules/latex2mathml/default.nix +++ b/pkgs/development/python-modules/latex2mathml/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, multidict -, xmljson +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + multidict, + xmljson, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-DLdSFMsNA0gD6Iw0kn+0IrbvyI0VEGOpz0ZYD48nRkY="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/latexcodec/default.nix b/pkgs/development/python-modules/latexcodec/default.nix index 9286792de21b..822b51053c17 100644 --- a/pkgs/development/python-modules/latexcodec/default.nix +++ b/pkgs/development/python-modules/latexcodec/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pytest, +}: buildPythonPackage rec { pname = "latexcodec"; @@ -23,5 +29,4 @@ buildPythonPackage rec { description = "Lexer and codec to work with LaTeX code in Python"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/latexify-py/default.nix b/pkgs/development/python-modules/latexify-py/default.nix index 0c00ffdacadd..e87966e3eeb3 100644 --- a/pkgs/development/python-modules/latexify-py/default.nix +++ b/pkgs/development/python-modules/latexify-py/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, dill -, fetchFromGitHub -, hatchling -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dill, + fetchFromGitHub, + hatchling, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-4924pqgc+C8VDTTK5Dac6UJV0tcicVBdnkWvE1ynyvY="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - dill - ]; + dependencies = [ dill ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "latexify" - ]; + pythonImportsCheck = [ "latexify" ]; preCheck = '' cd src diff --git a/pkgs/development/python-modules/launchpadlib/default.nix b/pkgs/development/python-modules/launchpadlib/default.nix index aef2dfb98bff..7ac075625902 100644 --- a/pkgs/development/python-modules/launchpadlib/default.nix +++ b/pkgs/development/python-modules/launchpadlib/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, httplib2 -, keyring -, lazr-restfulclient -, lazr-uri -, setuptools -, six -, testresources -, wadllib -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + httplib2, + keyring, + lazr-restfulclient, + lazr-uri, + setuptools, + six, + testresources, + wadllib, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { wadllib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/laundrify-aio/default.nix b/pkgs/development/python-modules/laundrify-aio/default.nix index 9c5e34dbf876..dfbb99d33f0a 100644 --- a/pkgs/development/python-modules/laundrify-aio/default.nix +++ b/pkgs/development/python-modules/laundrify-aio/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, aiohttp -, pyjwt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + aiohttp, + pyjwt, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "laundrify_aio" - ]; + pythonImportsCheck = [ "laundrify_aio" ]; meta = with lib; { description = "Module to communicate with the laundrify API"; diff --git a/pkgs/development/python-modules/layoutparser/default.nix b/pkgs/development/python-modules/layoutparser/default.nix index 391cb7a235ae..12bba0a9ba71 100644 --- a/pkgs/development/python-modules/layoutparser/default.nix +++ b/pkgs/development/python-modules/layoutparser/default.nix @@ -1,33 +1,45 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# build inputs -, numpy -, opencv4 -, scipy -, pandas -, pillow -, pyyaml -, iopath -, pdfplumber -, pdf2image -, google-cloud-vision -, pytesseract -, torch -, torchvision -, effdet -# check inputs -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # build inputs + numpy, + opencv4, + scipy, + pandas, + pillow, + pyyaml, + iopath, + pdfplumber, + pdf2image, + google-cloud-vision, + pytesseract, + torch, + torchvision, + effdet, + # check inputs + pytestCheckHook, }: let pname = "layoutparser"; version = "0.3.4"; optional-dependencies = { - ocr = [ google-cloud-vision pytesseract ]; + ocr = [ + google-cloud-vision + pytesseract + ]; gcv = [ google-cloud-vision ]; tesseract = [ pytesseract ]; - layoutmodels = [ torch torchvision effdet ]; - effdet = [ torch torchvision effdet ]; + layoutmodels = [ + torch + torchvision + effdet + ]; + effdet = [ + torch + torchvision + effdet + ]; # paddledetection = [ paddlepaddle ] }; in @@ -59,20 +71,16 @@ buildPythonPackage { pdf2image ]; - pythonImportsCheck = [ - "layoutparser" - ]; + pythonImportsCheck = [ "layoutparser" ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ optional-dependencies.ocr; + nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.ocr; disabledTests = [ "test_PaddleDetectionModel" # requires paddlepaddle not yet packaged - # requires detectron2 not yet packaged + # requires detectron2 not yet packaged "test_Detectron2Model" "test_AutoModel" - # requires effdet (disable for now until effdet builds on darwin) + # requires effdet (disable for now until effdet builds on darwin) "test_EffDetModel" # problems with google-cloud-vision # AttributeError: module 'google.cloud.vision' has no attribute 'types' diff --git a/pkgs/development/python-modules/lazr-restfulclient/default.nix b/pkgs/development/python-modules/lazr-restfulclient/default.nix index b8e46b8d1b26..5e11150e91fe 100644 --- a/pkgs/development/python-modules/lazr-restfulclient/default.nix +++ b/pkgs/development/python-modules/lazr-restfulclient/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, distro -, httplib2 -, oauthlib -, setuptools -, six -, wadllib -, fixtures -, lazr-uri -, pytestCheckHook -, wsgi-intercept +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + distro, + httplib2, + oauthlib, + setuptools, + six, + wadllib, + fixtures, + lazr-uri, + pytestCheckHook, + wsgi-intercept, }: buildPythonPackage rec { @@ -25,11 +26,23 @@ buildPythonPackage rec { hash = "sha256-Q/EqHTlIRjsUYgOMR7Qp3LXkLgun8uFlEbArpdKt/9s="; }; - propagatedBuildInputs = [ distro httplib2 oauthlib setuptools six wadllib ]; + propagatedBuildInputs = [ + distro + httplib2 + oauthlib + setuptools + six + wadllib + ]; # E ModuleNotFoundError: No module named 'lazr.uri' doCheck = false; - nativeCheckInputs = [ fixtures lazr-uri pytestCheckHook wsgi-intercept ]; + nativeCheckInputs = [ + fixtures + lazr-uri + pytestCheckHook + wsgi-intercept + ]; pythonImportsCheck = [ "lazr.restfulclient" ]; diff --git a/pkgs/development/python-modules/lazr-uri/default.nix b/pkgs/development/python-modules/lazr-uri/default.nix index 604086ebcaf3..5a5972edf9e4 100644 --- a/pkgs/development/python-modules/lazr-uri/default.nix +++ b/pkgs/development/python-modules/lazr-uri/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lazr/config.nix b/pkgs/development/python-modules/lazr/config.nix index 79e60a5f9880..1b5520b79b35 100644 --- a/pkgs/development/python-modules/lazr/config.nix +++ b/pkgs/development/python-modules/lazr/config.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, lazr-delegates -, zope-interface -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + lazr-delegates, + zope-interface, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,22 +19,16 @@ buildPythonPackage rec { hash = "sha256-oU5PbMCa68HUCxdhWK6g7uIlLBQAO40O8LMcfFFMNkQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ lazr-delegates zope-interface ]; - pythonImportsCheck = [ - "lazr.config" - ]; + pythonImportsCheck = [ "lazr.config" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # change the directory to avoid a namespace-related problem # ModuleNotFoundError: No module named 'lazr.delegates' @@ -41,9 +36,7 @@ buildPythonPackage rec { cd $out ''; - pythonNamespaces = [ - "lazr" - ]; + pythonNamespaces = [ "lazr" ]; meta = with lib; { description = "Create configuration schemas, and process and validate configurations"; diff --git a/pkgs/development/python-modules/lazr/delegates.nix b/pkgs/development/python-modules/lazr/delegates.nix index ef4eda0de9e5..1ebec55d7d16 100644 --- a/pkgs/development/python-modules/lazr/delegates.nix +++ b/pkgs/development/python-modules/lazr/delegates.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, zope-interface -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + zope-interface, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,25 +18,15 @@ buildPythonPackage rec { hash = "sha256-UNT7iHK5UuV6SOEmEOVQ+jBm7rV8bGx1tqUUJBi6wZw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - zope-interface - ]; + propagatedBuildInputs = [ zope-interface ]; - pythonImportsCheck = [ - "lazr.delegates" - ]; + pythonImportsCheck = [ "lazr.delegates" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonNamespaces = [ - "lazr" - ]; + pythonNamespaces = [ "lazr" ]; meta = with lib; { description = "Easily write objects that delegate behavior"; diff --git a/pkgs/development/python-modules/lazy-imports/default.nix b/pkgs/development/python-modules/lazy-imports/default.nix index e15b3226006f..f52e2cc7e093 100644 --- a/pkgs/development/python-modules/lazy-imports/default.nix +++ b/pkgs/development/python-modules/lazy-imports/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, packaging +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + packaging, }: let pname = "lazy-imports"; @@ -20,9 +21,7 @@ buildPythonPackage { hash = "sha256-i+VPlBoxNqk56U4oiEgS1Ayhi1t2O8PtLZ/bzEurUY8="; }; - pythonImportsCheck = [ - "lazy_imports" - ]; + pythonImportsCheck = [ "lazy_imports" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/lazy-loader/default.nix b/pkgs/development/python-modules/lazy-loader/default.nix index 80de565b5f62..3d95f5e62d7a 100644 --- a/pkgs/development/python-modules/lazy-loader/default.nix +++ b/pkgs/development/python-modules/lazy-loader/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-Ky9EwPYt/wBqWXopH5WFjlVG+/Rd2gc+mlCeWqG7mZg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Populate library namespace without incurring immediate import costs"; diff --git a/pkgs/development/python-modules/lazy-object-proxy/default.nix b/pkgs/development/python-modules/lazy-object-proxy/default.nix index 4026bbbe5531..d8dbab409e3a 100644 --- a/pkgs/development/python-modules/lazy-object-proxy/default.nix +++ b/pkgs/development/python-modules/lazy-object-proxy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -15,18 +16,14 @@ buildPythonPackage rec { hash = "sha256-eCR7bUX0OlLvNcJbVYFFnoURciVAikEoo9r4v5ZIrGk="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; postPatch = '' substituteInPlace pyproject.toml --replace ",<6.0" "" substituteInPlace setup.cfg --replace ",<6.0" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Broken tests. Seem to be fixed upstream according to Travis. doCheck = false; @@ -36,5 +33,4 @@ buildPythonPackage rec { homepage = "https://github.com/ionelmc/python-lazy-object-proxy"; license = with licenses; [ bsd2 ]; }; - } diff --git a/pkgs/development/python-modules/lazy/default.nix b/pkgs/development/python-modules/lazy/default.nix index 0403b47f5324..a7baf15384cd 100644 --- a/pkgs/development/python-modules/lazy/default.nix +++ b/pkgs/development/python-modules/lazy/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lc7001/default.nix b/pkgs/development/python-modules/lc7001/default.nix index 6e0f565bdc98..478fe1a2f825 100644 --- a/pkgs/development/python-modules/lc7001/default.nix +++ b/pkgs/development/python-modules/lc7001/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, pythonOlder -, poetry-core -, setuptools +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + pythonOlder, + poetry-core, + setuptools, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "lc7001" - ]; + pythonImportsCheck = [ "lc7001" ]; meta = with lib; { description = "Python module for interacting with Legrand LC7001"; diff --git a/pkgs/development/python-modules/lcd-i2c/default.nix b/pkgs/development/python-modules/lcd-i2c/default.nix index 7ba9be221dde..02008f02c2af 100644 --- a/pkgs/development/python-modules/lcd-i2c/default.nix +++ b/pkgs/development/python-modules/lcd-i2c/default.nix @@ -1,9 +1,10 @@ -{ lib -, python3 -, fetchPypi -, buildPythonPackage -, smbus2 -, poetry-core +{ + lib, + python3, + fetchPypi, + buildPythonPackage, + smbus2, + poetry-core, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-NYBaCXBmuTziT0WYEqrW10HRmRy3jpjH3YWQh5Y/TdQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - smbus2 - ]; + propagatedBuildInputs = [ smbus2 ]; meta = with lib; { description = "Library for interacting with an I2C LCD screen through Python"; diff --git a/pkgs/development/python-modules/lcgit/default.nix b/pkgs/development/python-modules/lcgit/default.nix index 0bb27d54cb1a..5164819073f0 100644 --- a/pkgs/development/python-modules/lcgit/default.nix +++ b/pkgs/development/python-modules/lcgit/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { --replace " --cov" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "lcgit" - ]; + pythonImportsCheck = [ "lcgit" ]; meta = with lib; { description = "A pythonic Linear Congruential Generator iterator"; diff --git a/pkgs/development/python-modules/lcov-cobertura/default.nix b/pkgs/development/python-modules/lcov-cobertura/default.nix index a2f91b8436de..0f1697c7f62f 100644 --- a/pkgs/development/python-modules/lcov-cobertura/default.nix +++ b/pkgs/development/python-modules/lcov-cobertura/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { }; doCheck = true; - pythonImportsCheck = [ - "lcov_cobertura" - ]; + pythonImportsCheck = [ "lcov_cobertura" ]; meta = { description = "Converts code coverage from lcov format to Cobertura's XML format"; diff --git a/pkgs/development/python-modules/ld2410-ble/default.nix b/pkgs/development/python-modules/ld2410-ble/default.nix index 774e79e5ca29..b680db42a4d9 100644 --- a/pkgs/development/python-modules/ld2410-ble/default.nix +++ b/pkgs/development/python-modules/ld2410-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, async-timeout -, bleak -, bleak-retry-connector -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + async-timeout, + bleak, + bleak-retry-connector, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace " --cov=ld2410_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ async-timeout @@ -38,13 +37,9 @@ buildPythonPackage rec { bleak-retry-connector ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ld2410_ble" - ]; + pythonImportsCheck = [ "ld2410_ble" ]; meta = with lib; { description = "Library for the LD2410B modules from HiLinks"; diff --git a/pkgs/development/python-modules/ldap3/default.nix b/pkgs/development/python-modules/ldap3/default.nix index c04ec4e49c4c..608656fbbbd3 100644 --- a/pkgs/development/python-modules/ldap3/default.nix +++ b/pkgs/development/python-modules/ldap3/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchPypi, fetchpatch, buildPythonPackage, dos2unix, pyasn1 }: +{ + lib, + fetchPypi, + fetchpatch, + buildPythonPackage, + dos2unix, + pyasn1, +}: buildPythonPackage rec { pname = "ldap3"; diff --git a/pkgs/development/python-modules/ldapdomaindump/default.nix b/pkgs/development/python-modules/ldapdomaindump/default.nix index 5f8941047bb2..8b7ba429025c 100644 --- a/pkgs/development/python-modules/ldapdomaindump/default.nix +++ b/pkgs/development/python-modules/ldapdomaindump/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, dnspython -, future -, ldap3 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + dnspython, + future, + ldap3, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # requires ldap server doCheck = false; - pythonImportsCheck = [ - "ldapdomaindump" - ]; + pythonImportsCheck = [ "ldapdomaindump" ]; meta = with lib; { description = "Active Directory information dumper via LDAP"; diff --git a/pkgs/development/python-modules/ldaptor/default.nix b/pkgs/development/python-modules/ldaptor/default.nix index 0095995ed6c1..44c4df313e9f 100644 --- a/pkgs/development/python-modules/ldaptor/default.nix +++ b/pkgs/development/python-modules/ldaptor/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twisted -, passlib -, pyparsing -, service-identity -, six -, zope-interface -, pythonOlder -, python +{ + lib, + buildPythonPackage, + fetchPypi, + twisted, + passlib, + pyparsing, + service-identity, + six, + zope-interface, + pythonOlder, + python, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { zope-interface ] ++ twisted.optional-dependencies.tls; - nativeCheckInputs = [ - twisted - ]; + nativeCheckInputs = [ twisted ]; # Test creates an excessive amount of temporary files (order of millions). # Cleaning up those files already took over 15 hours already on my zfs diff --git a/pkgs/development/python-modules/leather/default.nix b/pkgs/development/python-modules/leather/default.nix index 138a412017fe..137fb2070f2c 100644 --- a/pkgs/development/python-modules/leather/default.nix +++ b/pkgs/development/python-modules/leather/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, six -, cssselect -, lxml -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + six, + cssselect, + lxml, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/leb128/default.nix b/pkgs/development/python-modules/leb128/default.nix index 4247a4ff7549..9a955dff2a3b 100644 --- a/pkgs/development/python-modules/leb128/default.nix +++ b/pkgs/development/python-modules/leb128/default.nix @@ -1,4 +1,9 @@ -{ buildPythonPackage, fetchFromGitHub, pytestCheckHook, lib }: +{ + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + lib, +}: buildPythonPackage rec { pname = "leb128"; diff --git a/pkgs/development/python-modules/led-ble/default.nix b/pkgs/development/python-modules/led-ble/default.nix index 653d75a46da4..b02f4edb4577 100644 --- a/pkgs/development/python-modules/led-ble/default.nix +++ b/pkgs/development/python-modules/led-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, async-timeout -, bleak -, bleak-retry-connector -, buildPythonPackage -, fetchFromGitHub -, flux-led -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + async-timeout, + bleak, + bleak-retry-connector, + buildPythonPackage, + fetchFromGitHub, + flux-led, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,25 +30,17 @@ buildPythonPackage rec { --replace " --cov=led_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bleak bleak-retry-connector flux-led - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "led_ble" - ]; + pythonImportsCheck = [ "led_ble" ]; meta = with lib; { description = "Library for LED BLE devices"; diff --git a/pkgs/development/python-modules/ledger-agent/default.nix b/pkgs/development/python-modules/ledger-agent/default.nix index 28bdfb424857..e514260a8a34 100644 --- a/pkgs/development/python-modules/ledger-agent/default.nix +++ b/pkgs/development/python-modules/ledger-agent/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ledgerblue -, setuptools -, libagent -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + ledgerblue, + setuptools, + libagent, + wheel, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - ledgerblue libagent setuptools wheel + ledgerblue + libagent + setuptools + wheel ]; # no tests @@ -29,6 +33,10 @@ buildPythonPackage rec { description = "Using Ledger as hardware-based SSH/PGP agent"; homepage = "https://github.com/romanz/trezor-agent"; license = licenses.gpl3; - maintainers = with maintainers; [ hkjn np mmahut ]; + maintainers = with maintainers; [ + hkjn + np + mmahut + ]; }; } diff --git a/pkgs/development/python-modules/ledger-bitcoin/default.nix b/pkgs/development/python-modules/ledger-bitcoin/default.nix index 8298da004ccf..3387a40cb236 100644 --- a/pkgs/development/python-modules/ledger-bitcoin/default.nix +++ b/pkgs/development/python-modules/ledger-bitcoin/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, ledgercomm -, packaging -, bip32 -, coincurve -, typing-extensions - }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + ledgercomm, + packaging, + bip32, + coincurve, + typing-extensions, +}: buildPythonPackage rec { pname = "ledger-bitcoin"; @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-rZzerzOkVWK71brmdRAluGmi+B1usCZ90GKgH1klpNU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ledgercomm @@ -32,9 +31,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "ledger_bitcoin" - ]; + pythonImportsCheck = [ "ledger_bitcoin" ]; meta = with lib; { description = "Client library for Ledger Bitcoin application."; diff --git a/pkgs/development/python-modules/ledgerblue/default.nix b/pkgs/development/python-modules/ledgerblue/default.nix index 4e93a641cd01..093002f65433 100644 --- a/pkgs/development/python-modules/ledgerblue/default.nix +++ b/pkgs/development/python-modules/ledgerblue/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, bleak -, buildPythonPackage -, ecpy -, fetchPypi -, future -, hidapi -, nfcpy -, pillow -, protobuf -, pycrypto -, pycryptodomex -, pyelftools -, python-gnupg -, python-u2flib-host -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, setuptools-scm -, websocket-client +{ + lib, + stdenv, + bleak, + buildPythonPackage, + ecpy, + fetchPypi, + future, + hidapi, + nfcpy, + pillow, + protobuf, + pycrypto, + pycryptodomex, + pyelftools, + python-gnupg, + python-u2flib-host, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + setuptools-scm, + websocket-client, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "protobuf" - ]; + pythonRelaxDeps = [ "protobuf" ]; dependencies = [ ecpy @@ -56,17 +55,12 @@ buildPythonPackage rec { python-gnupg python-u2flib-host websocket-client - ] - ++ lib.optionals stdenv.isLinux [ - bleak - ]; + ] ++ lib.optionals stdenv.isLinux [ bleak ]; # No tests doCheck = false; - pythonImportsCheck = [ - "ledgerblue" - ]; + pythonImportsCheck = [ "ledgerblue" ]; meta = with lib; { description = "Python library to communicate with Ledger Blue/Nano S"; diff --git a/pkgs/development/python-modules/ledgercomm/default.nix b/pkgs/development/python-modules/ledgercomm/default.nix index b4493eaa1a88..bf76775467b4 100644 --- a/pkgs/development/python-modules/ledgercomm/default.nix +++ b/pkgs/development/python-modules/ledgercomm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm - }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, +}: buildPythonPackage rec { pname = "ledgercomm"; @@ -20,9 +21,7 @@ buildPythonPackage rec { setuptools-scm ]; - pythonImportsCheck = [ - "ledgercomm" - ]; + pythonImportsCheck = [ "ledgercomm" ]; meta = with lib; { description = "Python library to send and receive APDU through HID or TCP socket. It can be used with a Ledger Nano S/X or with the Speculos emulator."; diff --git a/pkgs/development/python-modules/ledgerwallet/default.nix b/pkgs/development/python-modules/ledgerwallet/default.nix index a8d9c612e157..b24d831b1e8f 100644 --- a/pkgs/development/python-modules/ledgerwallet/default.nix +++ b/pkgs/development/python-modules/ledgerwallet/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, fetchFromGitHub -, fetchpatch -, buildPythonPackage -, cryptography -, click -, construct -, ecdsa -, flit-core -, hidapi -, intelhex -, pillow -, protobuf3 -, requests -, setuptools -, tabulate -, toml -, AppKit +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + buildPythonPackage, + cryptography, + click, + construct, + ecdsa, + flit-core, + hidapi, + intelhex, + pillow, + protobuf3, + requests, + setuptools, + tabulate, + toml, + AppKit, }: buildPythonPackage rec { @@ -31,7 +32,10 @@ buildPythonPackage rec { hash = "sha256-IcStYYkKEdZxwgJKL8l2Y1BtO/Oncd4aKUAZD8umbHs="; }; - buildInputs = [ flit-core setuptools ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; + buildInputs = [ + flit-core + setuptools + ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; propagatedBuildInputs = [ cryptography click @@ -53,6 +57,9 @@ buildPythonPackage rec { description = "A library to control Ledger devices"; mainProgram = "ledgerctl"; license = licenses.mit; - maintainers = with maintainers; [ d-xo erdnaxe ]; + maintainers = with maintainers; [ + d-xo + erdnaxe + ]; }; } diff --git a/pkgs/development/python-modules/leidenalg/default.nix b/pkgs/development/python-modules/leidenalg/default.nix index 661ac2c71597..947b968e0def 100644 --- a/pkgs/development/python-modules/leidenalg/default.nix +++ b/pkgs/development/python-modules/leidenalg/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, ddt -, fetchFromGitHub -, igraph -, igraph-c -, libleidenalg -, pythonOlder -, setuptools-scm -, unittestCheckHook +{ + lib, + buildPythonPackage, + ddt, + fetchFromGitHub, + igraph, + igraph-c, + libleidenalg, + pythonOlder, + setuptools-scm, + unittestCheckHook, }: buildPythonPackage rec { @@ -24,18 +25,14 @@ buildPythonPackage rec { hash = "sha256-oaTV+BIB/YQBWKrVXuiIEMH/1MxPxeHhjUzbmxt6hlw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; buildInputs = [ igraph-c libleidenalg ]; - propagatedBuildInputs = [ - igraph - ]; + propagatedBuildInputs = [ igraph ]; checkInputs = [ ddt diff --git a/pkgs/development/python-modules/leveldb/default.nix b/pkgs/development/python-modules/leveldb/default.nix index e275d41f8915..7212c2c4e02b 100644 --- a/pkgs/development/python-modules/leveldb/default.nix +++ b/pkgs/development/python-modules/leveldb/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { pname = "leveldb"; @@ -13,7 +17,10 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://code.google.com/archive/p/py-leveldb/"; description = "Thread-safe Python bindings for LevelDB"; - platforms = [ "x86_64-linux" "i686-linux" ]; + platforms = [ + "x86_64-linux" + "i686-linux" + ]; license = licenses.bsd3; maintainers = [ maintainers.aanderse ]; }; diff --git a/pkgs/development/python-modules/lexid/default.nix b/pkgs/development/python-modules/lexid/default.nix index 42ebe98dccc9..3fc48bd5e914 100644 --- a/pkgs/development/python-modules/lexid/default.nix +++ b/pkgs/development/python-modules/lexid/default.nix @@ -1,4 +1,11 @@ -{ lib, pythonOlder, buildPythonPackage, fetchPypi, pytestCheckHook, click }: +{ + lib, + pythonOlder, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + click, +}: buildPythonPackage rec { pname = "lexid"; diff --git a/pkgs/development/python-modules/lexilang/default.nix b/pkgs/development/python-modules/lexilang/default.nix index 8577cb521196..6c487f45dce0 100644 --- a/pkgs/development/python-modules/lexilang/default.nix +++ b/pkgs/development/python-modules/lexilang/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + python, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-TLkaqCE9NDjN2XuYOUkeeWIRcqkxrdg31fS4mEnlcEo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/lib4sbom/default.nix b/pkgs/development/python-modules/lib4sbom/default.nix index 0840b14c70b7..e444e10bbe00 100644 --- a/pkgs/development/python-modules/lib4sbom/default.nix +++ b/pkgs/development/python-modules/lib4sbom/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyyaml -, semantic-version -, defusedxml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyyaml, + semantic-version, + defusedxml, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { defusedxml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # stub tests that always fail diff --git a/pkgs/development/python-modules/libagent/default.nix b/pkgs/development/python-modules/libagent/default.nix index 12c4ce39d759..4cfe74118908 100644 --- a/pkgs/development/python-modules/libagent/default.nix +++ b/pkgs/development/python-modules/libagent/default.nix @@ -1,21 +1,22 @@ -{ lib -, fetchFromGitHub -, bech32 -, buildPythonPackage -, cryptography -, ed25519 -, ecdsa -, gnupg -, semver -, mnemonic -, unidecode -, mock -, pytest -, backports-shutil-which -, configargparse -, python-daemon -, pymsgbox -, pynacl +{ + lib, + fetchFromGitHub, + bech32, + buildPythonPackage, + cryptography, + ed25519, + ecdsa, + gnupg, + semver, + mnemonic, + unidecode, + mock, + pytest, + backports-shutil-which, + configargparse, + python-daemon, + pymsgbox, + pynacl, }: # When changing this package, please test packages {keepkey,ledger,onlykey,trezor}-agent @@ -54,7 +55,10 @@ buildPythonPackage rec { cryptography ]; - nativeCheckInputs = [ mock pytest ]; + nativeCheckInputs = [ + mock + pytest + ]; checkPhase = '' py.test libagent/tests diff --git a/pkgs/development/python-modules/libais/default.nix b/pkgs/development/python-modules/libais/default.nix index ba42d47d346d..5422e877bacf 100644 --- a/pkgs/development/python-modules/libais/default.nix +++ b/pkgs/development/python-modules/libais/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -23,20 +24,14 @@ buildPythonPackage rec { --replace "'pytest-runner'," "" ''; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # data files missing doCheck = false; - pythonImportsCheck = [ - "ais" - ]; + pythonImportsCheck = [ "ais" ]; meta = with lib; { description = "Library for decoding maritime Automatic Identification System messages"; diff --git a/pkgs/development/python-modules/libarchive-c/default.nix b/pkgs/development/python-modules/libarchive-c/default.nix index da2f4525e3d6..5338d892df34 100644 --- a/pkgs/development/python-modules/libarchive-c/default.nix +++ b/pkgs/development/python-modules/libarchive-c/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, libarchive -, glibcLocales -, mock -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + libarchive, + glibcLocales, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,16 +21,14 @@ buildPythonPackage rec { sha256 = "sha256-CO9llPIbVTuE74AeohrMAu5ICkuT/MorRlYEEFne6Uk="; }; - LC_ALL="en_US.UTF-8"; + LC_ALL = "en_US.UTF-8"; postPatch = '' substituteInPlace libarchive/ffi.py --replace \ "find_library('archive')" "'${libarchive.lib}/lib/libarchive${stdenv.hostPlatform.extensions.sharedLibrary}'" ''; - pythonImportsCheck = [ - "libarchive" - ]; + pythonImportsCheck = [ "libarchive" ]; nativeCheckInputs = [ glibcLocales @@ -42,5 +41,4 @@ buildPythonPackage rec { description = "Python interface to libarchive"; license = licenses.cc0; }; - } diff --git a/pkgs/development/python-modules/libarcus/default.nix b/pkgs/development/python-modules/libarcus/default.nix index 989967719d09..316c604750ab 100644 --- a/pkgs/development/python-modules/libarcus/default.nix +++ b/pkgs/development/python-modules/libarcus/default.nix @@ -1,6 +1,13 @@ -{ lib, buildPythonPackage, python, fetchFromGitHub -, fetchpatch -, cmake, sip4, protobuf }: +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, + fetchpatch, + cmake, + sip4, + protobuf, +}: buildPythonPackage rec { pname = "libarcus"; @@ -36,6 +43,9 @@ buildPythonPackage rec { homepage = "https://github.com/Ultimaker/libArcus"; license = licenses.lgpl3Plus; platforms = platforms.linux; - maintainers = with maintainers; [ abbradar gebner ]; + maintainers = with maintainers; [ + abbradar + gebner + ]; }; } diff --git a/pkgs/development/python-modules/libasyncns/default.nix b/pkgs/development/python-modules/libasyncns/default.nix index bd28c2207340..730d1a9217d5 100644 --- a/pkgs/development/python-modules/libasyncns/default.nix +++ b/pkgs/development/python-modules/libasyncns/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchurl -, libasyncns -, pkg-config +{ + lib, + stdenv, + buildPythonPackage, + fetchurl, + libasyncns, + pkg-config, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/libclang/default.nix b/pkgs/development/python-modules/libclang/default.nix index 24d0e287ea03..fe9390a76e1a 100644 --- a/pkgs/development/python-modules/libclang/default.nix +++ b/pkgs/development/python-modules/libclang/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, llvmPackages -, setuptools -, writeText +{ + lib, + buildPythonPackage, + llvmPackages, + setuptools, + writeText, }: let @@ -22,7 +23,8 @@ let [options] packages = clang ''; -in buildPythonPackage { +in +buildPythonPackage { pname = "libclang"; format = "pyproject"; diff --git a/pkgs/development/python-modules/libcloud/default.nix b/pkgs/development/python-modules/libcloud/default.nix index b6bb639b3afc..4e6e7b30dde7 100644 --- a/pkgs/development/python-modules/libcloud/default.nix +++ b/pkgs/development/python-modules/libcloud/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pycrypto -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pycrypto, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # requires a certificates file doCheck = false; - pythonImportsCheck = [ - "libcloud" - ]; + pythonImportsCheck = [ "libcloud" ]; meta = with lib; { description = "A unified interface to many cloud providers"; diff --git a/pkgs/development/python-modules/libcst/default.nix b/pkgs/development/python-modules/libcst/default.nix index d1fc8ec75e33..ba7e0fa5340e 100644 --- a/pkgs/development/python-modules/libcst/default.nix +++ b/pkgs/development/python-modules/libcst/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, cargo -, hypothesis -, libiconv -, pytestCheckHook -, python -, pythonOlder -, pyyaml -, rustPlatform -, rustc -, setuptools-rust -, setuptools-scm -, typing-extensions -, typing-inspect +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + cargo, + hypothesis, + libiconv, + pytestCheckHook, + python, + pythonOlder, + pyyaml, + rustPlatform, + rustc, + setuptools-rust, + setuptools-scm, + typing-extensions, + typing-inspect, }: buildPythonPackage rec { @@ -93,15 +94,17 @@ buildPythonPackage rec { "test_codemod_formatter_error_input" ]; - pythonImportsCheck = [ - "libcst" - ]; + pythonImportsCheck = [ "libcst" ]; meta = with lib; { description = "Concrete Syntax Tree (CST) parser and serializer library for Python"; homepage = "https://github.com/Instagram/libcst"; changelog = "https://github.com/Instagram/LibCST/blob/v${version}/CHANGELOG.md"; - license = with licenses; [ mit asl20 psfl ]; + license = with licenses; [ + mit + asl20 + psfl + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/libevdev/default.nix b/pkgs/development/python-modules/libevdev/default.nix index 44213cdd14cf..e7be644cdd5a 100644 --- a/pkgs/development/python-modules/libevdev/default.nix +++ b/pkgs/development/python-modules/libevdev/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, substituteAll -, pkgs -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + substituteAll, + pkgs, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/libgpiod/default.nix b/pkgs/development/python-modules/libgpiod/default.nix index 56f225d283ba..8ea7089985bd 100644 --- a/pkgs/development/python-modules/libgpiod/default.nix +++ b/pkgs/development/python-modules/libgpiod/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, libgpiod +{ + lib, + buildPythonPackage, + libgpiod, }: buildPythonPackage { inherit (libgpiod) pname version src; diff --git a/pkgs/development/python-modules/libgpuarray/default.nix b/pkgs/development/python-modules/libgpuarray/default.nix index d186233ccdc4..d8518f30a0ae 100644 --- a/pkgs/development/python-modules/libgpuarray/default.nix +++ b/pkgs/development/python-modules/libgpuarray/default.nix @@ -1,18 +1,21 @@ -{ stdenv -, lib -, addOpenGLRunpath -, buildPythonPackage -, fetchFromGitHub -, cmake -, cython_0 -, numpy -, six -, nose -, mako -, config -, cudaSupport ? config.cudaSupport -, cudaPackages ? { } -, openclSupport ? true, ocl-icd, clblas +{ + stdenv, + lib, + addOpenGLRunpath, + buildPythonPackage, + fetchFromGitHub, + cmake, + cython_0, + numpy, + six, + nose, + mako, + config, + cudaSupport ? config.cudaSupport, + cudaPackages ? { }, + openclSupport ? true, + ocl-icd, + clblas, }: buildPythonPackage rec { @@ -33,7 +36,13 @@ buildPythonPackage rec { configurePhase = "cmakeConfigurePhase"; libraryPath = lib.makeLibraryPath ( - lib.optionals cudaSupport (with cudaPackages; [ cudatoolkit.lib cudatoolkit.out ]) + lib.optionals cudaSupport ( + with cudaPackages; + [ + cudatoolkit.lib + cudatoolkit.out + ] + ) ++ lib.optionals openclSupport ([ clblas ] ++ lib.optional (!stdenv.isDarwin) ocl-icd) ); @@ -46,18 +55,21 @@ buildPythonPackage rec { cd .. ''; - postFixup = '' - rm $out/lib/libgpuarray-static.a - '' + lib.optionalString (!stdenv.isDarwin) '' - function fixRunPath { - p=$(patchelf --print-rpath $1) - patchelf --set-rpath "$p:$libraryPath" $1 - } + postFixup = + '' + rm $out/lib/libgpuarray-static.a + '' + + lib.optionalString (!stdenv.isDarwin) '' + function fixRunPath { + p=$(patchelf --print-rpath $1) + patchelf --set-rpath "$p:$libraryPath" $1 + } - fixRunPath $out/lib/libgpuarray.so - '' + lib.optionalString cudaSupport '' - addOpenGLRunpath $out/lib/libgpuarray.so - ''; + fixRunPath $out/lib/libgpuarray.so + '' + + lib.optionalString cudaSupport '' + addOpenGLRunpath $out/lib/libgpuarray.so + ''; propagatedBuildInputs = [ numpy @@ -68,14 +80,9 @@ buildPythonPackage rec { nativeBuildInputs = [ cmake cython_0 - ] ++ lib.optionals cudaSupport [ - addOpenGLRunpath - ]; + ] ++ lib.optionals cudaSupport [ addOpenGLRunpath ]; - - buildInputs = [ - nose - ]; + buildInputs = [ nose ]; meta = with lib; { homepage = "https://github.com/Theano/libgpuarray"; @@ -84,5 +91,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ artuuge ]; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/libkeepass/default.nix b/pkgs/development/python-modules/libkeepass/default.nix index 14bbdb1ec009..90b6f78c6973 100644 --- a/pkgs/development/python-modules/libkeepass/default.nix +++ b/pkgs/development/python-modules/libkeepass/default.nix @@ -1,5 +1,11 @@ -{ lib, fetchPypi, buildPythonPackage -, lxml, pycryptodome, colorama }: +{ + lib, + fetchPypi, + buildPythonPackage, + lxml, + pycryptodome, + colorama, +}: buildPythonPackage rec { pname = "libkeepass"; @@ -11,7 +17,11 @@ buildPythonPackage rec { sha256 = "0pwg7n9xqcjia1qmz6g48h5s31slh3mxmcqag73gq4zhl4xb6bai"; }; - propagatedBuildInputs = [ lxml pycryptodome colorama ]; + propagatedBuildInputs = [ + lxml + pycryptodome + colorama + ]; # No tests on PyPI doCheck = false; diff --git a/pkgs/development/python-modules/libknot/default.nix b/pkgs/development/python-modules/libknot/default.nix index 96f900f2dd35..eb7a21ea53ef 100644 --- a/pkgs/development/python-modules/libknot/default.nix +++ b/pkgs/development/python-modules/libknot/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, hatchling + # build-system + hatchling, -# native dependencies -, knot-dns + # native dependencies + knot-dns, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { --replace "libknot.so%s" "${lib.getLib knot-dns}/lib/libknot.so%s" ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - pythonImportsCheck = [ - "libknot" - ]; + pythonImportsCheck = [ "libknot" ]; meta = with lib; { description = "Python bindings for libknot"; diff --git a/pkgs/development/python-modules/liblarch/default.nix b/pkgs/development/python-modules/liblarch/default.nix index a133b5382441..a3854791e667 100644 --- a/pkgs/development/python-modules/liblarch/default.nix +++ b/pkgs/development/python-modules/liblarch/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, python -, pygobject3 -, xvfb-run -, gobject-introspection -, gtk3 -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python, + pygobject3, + xvfb-run, + gobject-introspection, + gtk3, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { buildInputs = [ gtk3 ]; - propagatedBuildInputs = [ - pygobject3 - ]; + propagatedBuildInputs = [ pygobject3 ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/liblzfse/default.nix b/pkgs/development/python-modules/liblzfse/default.nix index 687d1df765b4..f88a096459ee 100644 --- a/pkgs/development/python-modules/liblzfse/default.nix +++ b/pkgs/development/python-modules/liblzfse/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lzfse +{ + lib, + buildPythonPackage, + fetchPypi, + lzfse, }: buildPythonPackage rec { pname = "pyliblzfse"; @@ -20,9 +21,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "liblzfse" - ]; + pythonImportsCheck = [ "liblzfse" ]; meta = with lib; { description = "Python bindings for LZFSE"; diff --git a/pkgs/development/python-modules/libmr/default.nix b/pkgs/development/python-modules/libmr/default.nix index c852ce160cd3..5771a2d25b3f 100644 --- a/pkgs/development/python-modules/libmr/default.nix +++ b/pkgs/development/python-modules/libmr/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, numpy, cython }: +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + cython, +}: buildPythonPackage rec { pname = "libmr"; @@ -11,7 +17,10 @@ buildPythonPackage rec { sha256 = "43ccd86693b725fa3abe648c8cdcef17ba5fa46b5528168829e5f9b968dfeb70"; }; - propagatedBuildInputs = [ numpy cython ]; + propagatedBuildInputs = [ + numpy + cython + ]; # No tests in the pypi tarball doCheck = false; @@ -23,4 +32,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ psyanticy ]; }; } - diff --git a/pkgs/development/python-modules/libnacl/default.nix b/pkgs/development/python-modules/libnacl/default.nix index ec6d1e442564..265bfeab5443 100644 --- a/pkgs/development/python-modules/libnacl/default.nix +++ b/pkgs/development/python-modules/libnacl/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, libsodium -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + libsodium, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,7 +25,9 @@ buildPythonPackage rec { buildInputs = [ libsodium ]; postPatch = - let soext = stdenv.hostPlatform.extensions.sharedLibrary; in + let + soext = stdenv.hostPlatform.extensions.sharedLibrary; + in '' substituteInPlace "./libnacl/__init__.py" \ --replace \ diff --git a/pkgs/development/python-modules/libpcap/default.nix b/pkgs/development/python-modules/libpcap/default.nix index 54a130659455..096aaa5c1940 100644 --- a/pkgs/development/python-modules/libpcap/default.nix +++ b/pkgs/development/python-modules/libpcap/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, dbus -, pkgsLibpcap -, pkg-about -, setuptools -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + dbus, + pkgsLibpcap, + pkg-about, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-6XhEVOO2Z2rFZiMz4d32tTR+xUu1KdMdDjChmt2wsQo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # tox is listed in build requirements but not actually used to build # keeping it as a requirement breaks the build unnecessarily @@ -49,13 +48,9 @@ buildPythonPackage rec { postCheck = '' popd ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "libpcap" - ]; + pythonImportsCheck = [ "libpcap" ]; meta = with lib; { description = "Python binding for the libpcap C library"; diff --git a/pkgs/development/python-modules/libpurecool/default.nix b/pkgs/development/python-modules/libpurecool/default.nix index 3e29ea73e2c9..26b857f0c0b9 100644 --- a/pkgs/development/python-modules/libpurecool/default.nix +++ b/pkgs/development/python-modules/libpurecool/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, netifaces -, paho-mqtt -, pycryptodome -, requests -, six -, zeroconf +{ + lib, + buildPythonPackage, + fetchPypi, + netifaces, + paho-mqtt, + pycryptodome, + requests, + six, + zeroconf, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/libpyfoscam/default.nix b/pkgs/development/python-modules/libpyfoscam/default.nix index 472c53f72ca9..5606437ffed2 100644 --- a/pkgs/development/python-modules/libpyfoscam/default.nix +++ b/pkgs/development/python-modules/libpyfoscam/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # tests need access to a camera doCheck = false; - pythonImportsCheck = [ - "libpyfoscam" - ]; + pythonImportsCheck = [ "libpyfoscam" ]; meta = with lib; { description = "Python Library for Foscam IP Cameras"; diff --git a/pkgs/development/python-modules/libpyvivotek/default.nix b/pkgs/development/python-modules/libpyvivotek/default.nix index 9a4cda0ae684..7320880a1539 100644 --- a/pkgs/development/python-modules/libpyvivotek/default.nix +++ b/pkgs/development/python-modules/libpyvivotek/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, vcrpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + vcrpy, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { sha256 = "pNlnGpDjdYE7Lxog8GGZV+UZZmfmt5bwHof5LngPQjg="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook vcrpy ]; - pythonImportsCheck = [ - "libpyvivotek" - ]; + pythonImportsCheck = [ "libpyvivotek" ]; meta = with lib; { description = "Python Library for Vivotek IP Cameras"; diff --git a/pkgs/development/python-modules/librespot/default.nix b/pkgs/development/python-modules/librespot/default.nix index 97277f68a981..7e6d2edb253b 100644 --- a/pkgs/development/python-modules/librespot/default.nix +++ b/pkgs/development/python-modules/librespot/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, protobuf -, pycryptodomex -, pyogg -, pytestCheckHook -, pythonRelaxDepsHook -, requests -, websocket-client -, zeroconf +{ + lib, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + protobuf, + pycryptodomex, + pyogg, + pytestCheckHook, + pythonRelaxDepsHook, + requests, + websocket-client, + zeroconf, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { pythonRelaxDeps = true; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ defusedxml @@ -43,9 +42,7 @@ buildPythonPackage rec { # Doesn't include any tests doCheck = false; - pythonImportsCheck = [ - "librespot" - ]; + pythonImportsCheck = [ "librespot" ]; meta = with lib; { description = "Open Source Spotify Client"; diff --git a/pkgs/development/python-modules/libretranslate/default.nix b/pkgs/development/python-modules/libretranslate/default.nix index c339a7708024..82e0377fe6ef 100644 --- a/pkgs/development/python-modules/libretranslate/default.nix +++ b/pkgs/development/python-modules/libretranslate/default.nix @@ -1,31 +1,32 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, pytestCheckHook -, hatchling -, argostranslate -, flask -, flask-swagger -, flask-swagger-ui -, flask-limiter -, flask-babel -, flask-session -, waitress -, expiringdict -, langdetect -, lexilang -, ltpycld2 -, morfessor -, appdirs -, apscheduler -, translatehtml -, argos-translate-files -, requests -, redis -, prometheus-client -, polib -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + pytestCheckHook, + hatchling, + argostranslate, + flask, + flask-swagger, + flask-swagger-ui, + flask-limiter, + flask-babel, + flask-session, + waitress, + expiringdict, + langdetect, + lexilang, + ltpycld2, + morfessor, + appdirs, + apscheduler, + translatehtml, + argos-translate-files, + requests, + redis, + prometheus-client, + polib, + python, }: buildPythonPackage rec { @@ -79,9 +80,7 @@ buildPythonPackage rec { doCheck = false; # needs network access - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # required for import check to work (argostranslate) env.HOME = "/tmp"; diff --git a/pkgs/development/python-modules/librosa/default.nix b/pkgs/development/python-modules/librosa/default.nix index 77bfb6aeca90..fa99efb4f66c 100644 --- a/pkgs/development/python-modules/librosa/default.nix +++ b/pkgs/development/python-modules/librosa/default.nix @@ -1,34 +1,35 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# runtime -, audioread -, decorator -, joblib -, lazy-loader -, matplotlib -, msgpack -, numba -, numpy -, pooch -, scikit-learn -, scipy -, soundfile -, soxr -, typing-extensions + # runtime + audioread, + decorator, + joblib, + lazy-loader, + matplotlib, + msgpack, + numba, + numpy, + pooch, + scikit-learn, + scipy, + soundfile, + soxr, + typing-extensions, -# tests -, ffmpeg-headless -, packaging -, pytest-mpl -, pytestCheckHook -, resampy -, samplerate + # tests + ffmpeg-headless, + packaging, + pytest-mpl, + pytestCheckHook, + resampy, + samplerate, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { hash = "sha256-zUKljPKWOhyb3Zv4KEUcvLsVkxVhL+rzErKycAl6jIg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postPatch = '' substituteInPlace setup.cfg \ @@ -69,14 +68,10 @@ buildPythonPackage rec { typing-extensions ]; - passthru.optional-dependencies.matplotlib = [ - matplotlib - ]; + passthru.optional-dependencies.matplotlib = [ matplotlib ]; # check that import works, this allows to capture errors like https://github.com/librosa/librosa/issues/1160 - pythonImportsCheck = [ - "librosa" - ]; + pythonImportsCheck = [ "librosa" ]; nativeCheckInputs = [ ffmpeg-headless @@ -91,26 +86,28 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - # requires network access - "test_example" - "test_example_info" - "test_load_resample" - "test_cite_released" - "test_cite_badversion" - "test_cite_unreleased" - ] ++ lib.optionals stdenv.isDarwin [ - # crashing the python interpreter - "test_unknown_time_unit" - "test_unknown_wavaxis" - "test_waveshow_unknown_wavaxis" - "test_waveshow_bad_maxpoints" - "test_waveshow_deladaptor" - "test_waveshow_disconnect" - "test_unknown_axis" - "test_axis_bound_warning" - "test_auto_aspect" - ]; + disabledTests = + [ + # requires network access + "test_example" + "test_example_info" + "test_load_resample" + "test_cite_released" + "test_cite_badversion" + "test_cite_unreleased" + ] + ++ lib.optionals stdenv.isDarwin [ + # crashing the python interpreter + "test_unknown_time_unit" + "test_unknown_wavaxis" + "test_waveshow_unknown_wavaxis" + "test_waveshow_bad_maxpoints" + "test_waveshow_deladaptor" + "test_waveshow_disconnect" + "test_unknown_axis" + "test_axis_bound_warning" + "test_auto_aspect" + ]; meta = with lib; { description = "Python library for audio and music analysis"; @@ -119,5 +116,4 @@ buildPythonPackage rec { license = licenses.isc; maintainers = with maintainers; [ GuillaumeDesforges ]; }; - } diff --git a/pkgs/development/python-modules/librouteros/default.nix b/pkgs/development/python-modules/librouteros/default.nix index 5ba5f86aab10..8db1f4a3356e 100644 --- a/pkgs/development/python-modules/librouteros/default.nix +++ b/pkgs/development/python-modules/librouteros/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-xdist -, pytest7CheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-xdist, + pytest7CheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-VwpZ1RY6Sul7xvWY7ZoOxZ7KgbRmKRwcVdF9e2b3f6Q="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-xdist @@ -42,9 +41,7 @@ buildPythonPackage rec { "test_rawCmd_calls_writeSentence" ]; - pythonImportsCheck = [ - "librouteros" - ]; + pythonImportsCheck = [ "librouteros" ]; meta = with lib; { description = "Python implementation of the MikroTik RouterOS API"; diff --git a/pkgs/development/python-modules/libsass/default.nix b/pkgs/development/python-modules/libsass/default.nix index 85f4b24533e6..13322dd79ba7 100644 --- a/pkgs/development/python-modules/libsass/default.nix +++ b/pkgs/development/python-modules/libsass/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, libsass -, six -, pytestCheckHook -, werkzeug +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libsass, + six, + pytestCheckHook, + werkzeug, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/libsavitar/default.nix b/pkgs/development/python-modules/libsavitar/default.nix index 56ce67110b90..5bb60e58ac86 100644 --- a/pkgs/development/python-modules/libsavitar/default.nix +++ b/pkgs/development/python-modules/libsavitar/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip4 }: +{ + lib, + buildPythonPackage, + python, + pythonOlder, + fetchFromGitHub, + cmake, + sip4, +}: buildPythonPackage rec { pname = "libsavitar"; @@ -27,6 +35,10 @@ buildPythonPackage rec { homepage = "https://github.com/Ultimaker/libSavitar"; license = licenses.lgpl3Plus; platforms = platforms.unix; - maintainers = with maintainers; [ abbradar orivej gebner ]; + maintainers = with maintainers; [ + abbradar + orivej + gebner + ]; }; } diff --git a/pkgs/development/python-modules/libsixel/default.nix b/pkgs/development/python-modules/libsixel/default.nix index 37bf32f31fd6..9046cc3f8130 100644 --- a/pkgs/development/python-modules/libsixel/default.nix +++ b/pkgs/development/python-modules/libsixel/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, stdenv -, libsixel +{ + buildPythonPackage, + lib, + stdenv, + libsixel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/libsoundtouch/default.nix b/pkgs/development/python-modules/libsoundtouch/default.nix index 0ca972c8bade..77c0d00d0fed 100644 --- a/pkgs/development/python-modules/libsoundtouch/default.nix +++ b/pkgs/development/python-modules/libsoundtouch/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, enum-compat -, requests -, websocket-client -, zeroconf -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + enum-compat, + requests, + websocket-client, + zeroconf, + pytestCheckHook, }: buildPythonPackage rec { - pname = "libsoundtouch"; + pname = "libsoundtouch"; version = "0.8.0"; format = "setuptools"; @@ -27,9 +28,7 @@ buildPythonPackage rec { zeroconf ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # mock data order mismatch @@ -39,7 +38,7 @@ buildPythonPackage rec { meta = with lib; { description = "Bose Soundtouch Python library"; - homepage = "https://github.com/CharlesBlonde/libsoundtouch"; - license = licenses.asl20; + homepage = "https://github.com/CharlesBlonde/libsoundtouch"; + license = licenses.asl20; }; } diff --git a/pkgs/development/python-modules/libthumbor/default.nix b/pkgs/development/python-modules/libthumbor/default.nix index 0fdb4c4fab94..40650afa0e72 100644 --- a/pkgs/development/python-modules/libthumbor/default.nix +++ b/pkgs/development/python-modules/libthumbor/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, six -, pycrypto -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + django, + six, + pycrypto, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-1PsiFZrTDVQqy8A3nkaM5LdPiBoriRgHkklTOiczN+g="; }; - buildInputs = [ - django - ]; + buildInputs = [ django ]; propagatedBuildInputs = [ six @@ -30,9 +29,7 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "libthumbor" - ]; + pythonImportsCheck = [ "libthumbor" ]; meta = with lib; { description = "Python extension to thumbor"; diff --git a/pkgs/development/python-modules/libtmux/default.nix b/pkgs/development/python-modules/libtmux/default.nix index 1d26117e5ba1..abd82ba2f25e 100644 --- a/pkgs/development/python-modules/libtmux/default.nix +++ b/pkgs/development/python-modules/libtmux/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, poetry-core -, pytest-rerunfailures -, pytestCheckHook -, procps -, tmux -, ncurses +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + poetry-core, + pytest-rerunfailures, + pytestCheckHook, + procps, + tmux, + ncurses, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { sed -i '/addopts/d' pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ procps @@ -40,24 +39,24 @@ buildPythonPackage rec { pytestFlagsArray = [ "tests" ]; - disabledTests = [ - # Fail with: 'no server running on /tmp/tmux-1000/libtmux_test8sorutj1'. - "test_new_session_width_height" - # Assertion error - "test_capture_pane_start" - ] ++ lib.optionals stdenv.isDarwin [ - # tests/test_pane.py:113: AssertionError - "test_capture_pane_start" - ]; + disabledTests = + [ + # Fail with: 'no server running on /tmp/tmux-1000/libtmux_test8sorutj1'. + "test_new_session_width_height" + # Assertion error + "test_capture_pane_start" + ] + ++ lib.optionals stdenv.isDarwin [ + # tests/test_pane.py:113: AssertionError + "test_capture_pane_start" + ]; disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/test_test.py" "tests/legacy_api/test_test.py" ]; - pythonImportsCheck = [ - "libtmux" - ]; + pythonImportsCheck = [ "libtmux" ]; meta = with lib; { description = "Typed scripting library / ORM / API wrapper for tmux"; diff --git a/pkgs/development/python-modules/libusb1/default.nix b/pkgs/development/python-modules/libusb1/default.nix index b61b78a86321..0304dd09677e 100644 --- a/pkgs/development/python-modules/libusb1/default.nix +++ b/pkgs/development/python-modules/libusb1/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, buildPythonPackage, fetchPypi, libusb1, pytestCheckHook }: +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + libusb1, + pytestCheckHook, +}: buildPythonPackage rec { pname = "libusb1"; @@ -20,14 +27,15 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "usb1/testUSB1.py" - ]; + pytestFlagsArray = [ "usb1/testUSB1.py" ]; meta = with lib; { - homepage = "https://github.com/vpelletier/python-libusb1"; + homepage = "https://github.com/vpelletier/python-libusb1"; description = "Python ctype-based wrapper around libusb1"; - license = licenses.lgpl2Plus; - maintainers = with maintainers; [ prusnak rnhmjoj ]; + license = licenses.lgpl2Plus; + maintainers = with maintainers; [ + prusnak + rnhmjoj + ]; }; } diff --git a/pkgs/development/python-modules/libusbsio/default.nix b/pkgs/development/python-modules/libusbsio/default.nix index 918bb7172666..7e60f9ab2289 100644 --- a/pkgs/development/python-modules/libusbsio/default.nix +++ b/pkgs/development/python-modules/libusbsio/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, libusbsio }: +{ + lib, + buildPythonPackage, + libusbsio, +}: buildPythonPackage rec { pname = "libusbsio"; @@ -30,6 +34,9 @@ buildPythonPackage rec { description = "NXP Secure Provisioning SDK"; homepage = "https://github.com/NXPmicro/spsdk"; license = licenses.bsd3; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/libversion/default.nix b/pkgs/development/python-modules/libversion/default.nix index dfebeaad538c..b311d6888d6c 100644 --- a/pkgs/development/python-modules/libversion/default.nix +++ b/pkgs/development/python-modules/libversion/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, libversion -, pkg-config -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libversion, + pkg-config, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,26 +27,18 @@ buildPythonPackage rec { --replace "'pkg-config'" "'$(command -v $PKG_CONFIG)'" ''; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - libversion - ]; + buildInputs = [ libversion ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # import from $out rm -r libversion ''; - pythonImportsCheck = [ - "libversion" - ]; + pythonImportsCheck = [ "libversion" ]; meta = with lib; { description = "Python bindings for libversion, which provides fast, powerful and correct generic version string comparison algorithm"; diff --git a/pkgs/development/python-modules/libvirt/default.nix b/pkgs/development/python-modules/libvirt/default.nix index e10f7c056c6b..e5ccec9371ee 100644 --- a/pkgs/development/python-modules/libvirt/default.nix +++ b/pkgs/development/python-modules/libvirt/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitLab, pkg-config, lxml, libvirt, nose }: +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pkg-config, + lxml, + libvirt, + nose, +}: buildPythonPackage rec { pname = "libvirt"; @@ -13,7 +21,10 @@ buildPythonPackage rec { }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libvirt lxml ]; + buildInputs = [ + libvirt + lxml + ]; nativeCheckInputs = [ nose ]; checkPhase = '' diff --git a/pkgs/development/python-modules/liccheck/default.nix b/pkgs/development/python-modules/liccheck/default.nix index fc2f1945888c..62d5b428c71c 100644 --- a/pkgs/development/python-modules/liccheck/default.nix +++ b/pkgs/development/python-modules/liccheck/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, configparser -, fetchFromGitHub -, pip -, pytest-mock -, pytestCheckHook -, python3-openid -, pythonOlder -, semantic-version -, toml +{ + lib, + buildPythonPackage, + configparser, + fetchFromGitHub, + pip, + pytest-mock, + pytestCheckHook, + python3-openid, + pythonOlder, + semantic-version, + toml, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { python3-openid ]; - pythonImportsCheck = [ - "liccheck" - ]; + pythonImportsCheck = [ "liccheck" ]; meta = with lib; { description = "Check python packages from requirement.txt and report issues"; diff --git a/pkgs/development/python-modules/license-expression/default.nix b/pkgs/development/python-modules/license-expression/default.nix index a17f4e829cae..3cf9532d3923 100644 --- a/pkgs/development/python-modules/license-expression/default.nix +++ b/pkgs/development/python-modules/license-expression/default.nix @@ -1,10 +1,11 @@ -{ lib -, boolean-py -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + boolean-py, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -23,21 +24,13 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - boolean-py - ]; + propagatedBuildInputs = [ boolean-py ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "license_expression" - ]; + pythonImportsCheck = [ "license_expression" ]; meta = with lib; { description = "Utility library to parse, normalize and compare License expressions"; diff --git a/pkgs/development/python-modules/life360/default.nix b/pkgs/development/python-modules/life360/default.nix index a2d958bc1083..89a097d6e565 100644 --- a/pkgs/development/python-modules/life360/default.nix +++ b/pkgs/development/python-modules/life360/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,16 +21,12 @@ buildPythonPackage rec { hash = "sha256-USqSkjOHlH0K/RlRYpn/gz6dHW8/uEVpsc4HeUZ3Emg="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "life360" - ]; + pythonImportsCheck = [ "life360" ]; meta = with lib; { description = "Python module to interact with Life360"; diff --git a/pkgs/development/python-modules/lifelines/default.nix b/pkgs/development/python-modules/lifelines/default.nix index b081bfae9d83..c0d0c8b5c71c 100644 --- a/pkgs/development/python-modules/lifelines/default.nix +++ b/pkgs/development/python-modules/lifelines/default.nix @@ -1,21 +1,22 @@ -{ lib -, autograd -, autograd-gamma -, buildPythonPackage -, dill -, fetchFromGitHub -, flaky -, formulaic -, jinja2 -, matplotlib -, numpy -, pandas -, psutil -, pytestCheckHook -, pythonOlder -, scikit-learn -, scipy -, sybil +{ + lib, + autograd, + autograd-gamma, + buildPythonPackage, + dill, + fetchFromGitHub, + flaky, + formulaic, + jinja2, + matplotlib, + numpy, + pandas, + psutil, + pytestCheckHook, + pythonOlder, + scikit-learn, + scipy, + sybil, }: buildPythonPackage rec { @@ -52,17 +53,11 @@ buildPythonPackage rec { sybil ]; - pythonImportsCheck = [ - "lifelines" - ]; + pythonImportsCheck = [ "lifelines" ]; - disabledTestPaths = [ - "lifelines/tests/test_estimation.py" - ]; + disabledTestPaths = [ "lifelines/tests/test_estimation.py" ]; - disabledTests = [ - "test_datetimes_to_durations_with_different_frequencies" - ]; + disabledTests = [ "test_datetimes_to_durations_with_different_frequencies" ]; meta = with lib; { description = "Survival analysis in Python"; diff --git a/pkgs/development/python-modules/lightgbm/default.nix b/pkgs/development/python-modules/lightgbm/default.nix index a87276c15f17..48dbe8b79229 100644 --- a/pkgs/development/python-modules/lightgbm/default.nix +++ b/pkgs/development/python-modules/lightgbm/default.nix @@ -1,36 +1,37 @@ -{ lib -, config -, stdenv -, buildPythonPackage -, fetchPypi +{ + lib, + config, + stdenv, + buildPythonPackage, + fetchPypi, -# build-system -, cmake -, ninja -, pathspec -, pyproject-metadata -, scikit-build-core + # build-system + cmake, + ninja, + pathspec, + pyproject-metadata, + scikit-build-core, -# dependencies -, llvmPackages -, numpy -, scipy -, pythonOlder + # dependencies + llvmPackages, + numpy, + scipy, + pythonOlder, -# optionals -, cffi -, dask -, pandas -, pyarrow -, scikit-learn + # optionals + cffi, + dask, + pandas, + pyarrow, + scikit-learn, -# optionals: gpu -, boost -, ocl-icd -, opencl-headers -, gpuSupport ? stdenv.isLinux && !cudaSupport -, cudaSupport ? config.cudaSupport -, cudaPackages + # optionals: gpu + boost, + ocl-icd, + opencl-headers, + gpuSupport ? stdenv.isLinux && !cudaSupport, + cudaSupport ? config.cudaSupport, + cudaPackages, }: assert gpuSupport -> cudaSupport != true; @@ -54,33 +55,30 @@ buildPythonPackage rec { pathspec pyproject-metadata scikit-build-core - ] ++ lib.optionals cudaSupport [ - cudaPackages.cuda_nvcc - ]; + ] ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc ]; dontUseCmakeConfigure = true; - buildInputs = (lib.optionals stdenv.cc.isClang [ - llvmPackages.openmp - ]) ++ (lib.optionals gpuSupport [ - boost - ocl-icd - opencl-headers - ]) ++ lib.optionals cudaSupport [ - cudaPackages.cuda_nvcc - cudaPackages.cuda_cudart - ]; + buildInputs = + (lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]) + ++ (lib.optionals gpuSupport [ + boost + ocl-icd + opencl-headers + ]) + ++ lib.optionals cudaSupport [ + cudaPackages.cuda_nvcc + cudaPackages.cuda_cudart + ]; propagatedBuildInputs = [ numpy scipy ]; - pypaBuildFlags = lib.optionals gpuSupport [ - "--config-setting=cmake.define.USE_GPU=ON" - ] ++ lib.optionals cudaSupport [ - "--config-setting=cmake.define.USE_CUDA=ON" - ]; + pypaBuildFlags = + lib.optionals gpuSupport [ "--config-setting=cmake.define.USE_GPU=ON" ] + ++ lib.optionals cudaSupport [ "--config-setting=cmake.define.USE_CUDA=ON" ]; postConfigure = '' export HOME=$(mktemp -d) @@ -91,18 +89,16 @@ buildPythonPackage rec { cffi pyarrow ]; - dask = [ - dask - pandas - ] ++ dask.optional-dependencies.array + dask = + [ + dask + pandas + ] + ++ dask.optional-dependencies.array ++ dask.optional-dependencies.dataframe ++ dask.optional-dependencies.distributed; - pandas = [ - pandas - ]; - scikit-learn = [ - scikit-learn - ]; + pandas = [ pandas ]; + scikit-learn = [ scikit-learn ]; }; # The pypi package doesn't distribute the tests from the GitHub @@ -110,9 +106,7 @@ buildPythonPackage rec { # `make check`. doCheck = false; - pythonImportsCheck = [ - "lightgbm" - ]; + pythonImportsCheck = [ "lightgbm" ]; meta = { description = "A fast, distributed, high performance gradient boosting (GBDT, GBRT, GBM or MART) framework"; diff --git a/pkgs/development/python-modules/lightning-utilities/default.nix b/pkgs/development/python-modules/lightning-utilities/default.nix index 7dba0a125f57..2d9ff6984772 100644 --- a/pkgs/development/python-modules/lightning-utilities/default.nix +++ b/pkgs/development/python-modules/lightning-utilities/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, -# build -, setuptools + # build + setuptools, -# runtime -, packaging -, typing-extensions + # runtime + packaging, + typing-extensions, -# tests -, pytest-timeout -, pytest7CheckHook + # tests + pytest-timeout, + pytest7CheckHook, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { hash = "sha256-IT9aRAUNc2cP2erLr0MglZSVLfDjOxg8PVIIe9AvO0o="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ packaging typing-extensions ]; - pythonImportsCheck = [ - "lightning_utilities" - ]; + pythonImportsCheck = [ "lightning_utilities" ]; nativeCheckInputs = [ pytest-timeout @@ -66,7 +63,8 @@ buildPythonPackage rec { pytestFlagsArray = [ # warns about distutils removal in python 3.12 - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/lightparam/default.nix b/pkgs/development/python-modules/lightparam/default.nix index 0d1e232bb195..635827b45669 100644 --- a/pkgs/development/python-modules/lightparam/default.nix +++ b/pkgs/development/python-modules/lightparam/default.nix @@ -1,8 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k -, ipython -, ipywidgets -, numpy -, pyqt5 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + ipython, + ipywidgets, + numpy, + pyqt5, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lightwave/default.nix b/pkgs/development/python-modules/lightwave/default.nix index 5536483a0d56..621f413ca885 100644 --- a/pkgs/development/python-modules/lightwave/default.nix +++ b/pkgs/development/python-modules/lightwave/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-l9hwdAKrpdXj/pkrgyiuhbPaGgT6tjfoOw/TBpR+k1I="; }; - pythonImportsCheck = [ - "lightwave" - ]; + pythonImportsCheck = [ "lightwave" ]; # Requires phyiscal hardware doCheck = false; diff --git a/pkgs/development/python-modules/lightwave2/default.nix b/pkgs/development/python-modules/lightwave2/default.nix index 4d1b01fd68a5..02ed2c606863 100644 --- a/pkgs/development/python-modules/lightwave2/default.nix +++ b/pkgs/development/python-modules/lightwave2/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-umhFqeX16c6o006MU9/9h4EnqcX7v8C5q3XjxYgi+xk="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "lightwave2" - ]; + pythonImportsCheck = [ "lightwave2" ]; meta = with lib; { description = "Library to interact with LightWaveRF 2nd Gen lights and switches"; diff --git a/pkgs/development/python-modules/lima/default.nix b/pkgs/development/python-modules/lima/default.nix index 462c104c25f2..37c1fda1a41d 100644 --- a/pkgs/development/python-modules/lima/default.nix +++ b/pkgs/development/python-modules/lima/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pytestCheckHook, +}: buildPythonPackage rec { pname = "lima"; diff --git a/pkgs/development/python-modules/lime/default.nix b/pkgs/development/python-modules/lime/default.nix index a3296f09c52c..39055c341f6f 100644 --- a/pkgs/development/python-modules/lime/default.nix +++ b/pkgs/development/python-modules/lime/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, -, matplotlib -, numpy -, scipy -, tqdm -, scikit-learn -, scikit-image + matplotlib, + numpy, + scipy, + tqdm, + scikit-learn, + scikit-image, -, pytestCheckHook -, pythonOlder + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,7 +26,7 @@ buildPythonPackage rec { hash = "sha256-dpYOTwVf61Pom1AiODuvyHtj8lusYmWYSwozPRpX94E="; }; - propagatedBuildInputs = [ + propagatedBuildInputs = [ matplotlib numpy scipy @@ -34,9 +35,7 @@ buildPythonPackage rec { scikit-image ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # touches network diff --git a/pkgs/development/python-modules/limiter/default.nix b/pkgs/development/python-modules/limiter/default.nix index f550651c104d..4da1afdb4f88 100644 --- a/pkgs/development/python-modules/limiter/default.nix +++ b/pkgs/development/python-modules/limiter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, strenum -, token-bucket +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + strenum, + token-bucket, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "limiter" - ]; + pythonImportsCheck = [ "limiter" ]; meta = with lib; { description = "Python rate-limiting, thread-safe and asynchronous decorators and context managers"; diff --git a/pkgs/development/python-modules/limitlessled/default.nix b/pkgs/development/python-modules/limitlessled/default.nix index 79a8c1136ce5..ff2d2dbc87b9 100644 --- a/pkgs/development/python-modules/limitlessled/default.nix +++ b/pkgs/development/python-modules/limitlessled/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "limitlessled"; diff --git a/pkgs/development/python-modules/limits/default.nix b/pkgs/development/python-modules/limits/default.nix index 111c55145e5f..9edaed6ee6bf 100644 --- a/pkgs/development/python-modules/limits/default.nix +++ b/pkgs/development/python-modules/limits/default.nix @@ -1,23 +1,24 @@ -{ lib -, aetcd -, buildPythonPackage -, coredis -, deprecated -, etcd3 -, fetchFromGitHub -, hiro -, importlib-resources -, motor -, packaging -, pymemcache -, pymongo -, pytest-asyncio -, pytest-lazy-fixture -, pytestCheckHook -, pythonOlder -, redis -, setuptools -, typing-extensions +{ + lib, + aetcd, + buildPythonPackage, + coredis, + deprecated, + etcd3, + fetchFromGitHub, + hiro, + importlib-resources, + motor, + packaging, + pymemcache, + pymongo, + pytest-asyncio, + pytest-lazy-fixture, + pytestCheckHook, + pythonOlder, + redis, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { echo 'def get_versions(): return {"version": "${version}"}' > limits/_version.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ deprecated @@ -64,33 +63,17 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - redis = [ - redis - ]; - rediscluster = [ - redis - ]; - memcached = [ - pymemcache - ]; - mongodb = [ - pymongo - ]; - etcd = [ - etcd3 - ]; - async-redis = [ - coredis - ]; + redis = [ redis ]; + rediscluster = [ redis ]; + memcached = [ pymemcache ]; + mongodb = [ pymongo ]; + etcd = [ etcd3 ]; + async-redis = [ coredis ]; # async-memcached = [ # emcache # Missing module # ]; - async-mongodb = [ - motor - ]; - async-etcd = [ - aetcd - ]; + async-mongodb = [ motor ]; + async-etcd = [ aetcd ]; }; doCheck = pythonOlder "3.12"; # SystemError in protobuf @@ -102,9 +85,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "limits" - ]; + pythonImportsCheck = [ "limits" ]; pytestFlagsArray = [ # All other tests require a running Docker instance diff --git a/pkgs/development/python-modules/limnoria/default.nix b/pkgs/development/python-modules/limnoria/default.nix index 3eba2971c645..a45e6d7c3dc6 100644 --- a/pkgs/development/python-modules/limnoria/default.nix +++ b/pkgs/development/python-modules/limnoria/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, chardet -, cryptography -, feedparser -, fetchPypi -, mock -, pysocks -, pytestCheckHook -, python-dateutil -, python-gnupg -, pythonOlder -, pytz +{ + lib, + buildPythonPackage, + chardet, + cryptography, + feedparser, + fetchPypi, + mock, + pysocks, + pytestCheckHook, + python-dateutil, + python-gnupg, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { pysocks python-dateutil python-gnupg - ] ++ lib.optionals (pythonOlder "3.9") [ - pytz - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ diff --git a/pkgs/development/python-modules/line-profiler/default.nix b/pkgs/development/python-modules/line-profiler/default.nix index 85d8cdf8d8af..0873eff17d0f 100644 --- a/pkgs/development/python-modules/line-profiler/default.nix +++ b/pkgs/development/python-modules/line-profiler/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, isPyPy -, ipython -, scikit-build -, cmake -, pythonOlder -, pytestCheckHook -, ubelt +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + isPyPy, + ipython, + scikit-build, + cmake, + pythonOlder, + pytestCheckHook, + ubelt, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - pythonImportsCheck = [ - "line_profiler" - ]; + pythonImportsCheck = [ "line_profiler" ]; meta = with lib; { description = "Line-by-line profiler"; diff --git a/pkgs/development/python-modules/linear-garage-door/default.nix b/pkgs/development/python-modules/linear-garage-door/default.nix index b57f8b0e47af..d3a0e21faa00 100644 --- a/pkgs/development/python-modules/linear-garage-door/default.nix +++ b/pkgs/development/python-modules/linear-garage-door/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, dnspython -, fetchFromGitHub -, poetry-core -, pythonOlder -, tenacity +{ + lib, + aiohttp, + buildPythonPackage, + dnspython, + fetchFromGitHub, + poetry-core, + pythonOlder, + tenacity, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { -e "/--no-cov/d" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -41,9 +40,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "linear_garage_door" - ]; + pythonImportsCheck = [ "linear_garage_door" ]; meta = with lib; { description = "Control Linear Garage Doors with Python"; diff --git a/pkgs/development/python-modules/linear-operator/default.nix b/pkgs/development/python-modules/linear-operator/default.nix index 8ebe174d199b..9db833d1b0d3 100644 --- a/pkgs/development/python-modules/linear-operator/default.nix +++ b/pkgs/development/python-modules/linear-operator/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jaxtyping -, pytestCheckHook -, pythonRelaxDepsHook -, scipy -, setuptools -, setuptools-scm -, torch -, typeguard -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jaxtyping, + pytestCheckHook, + pythonRelaxDepsHook, + scipy, + setuptools, + setuptools-scm, + torch, + typeguard, + wheel, }: buildPythonPackage rec { @@ -38,15 +39,11 @@ buildPythonPackage rec { typeguard ]; - pythonRelaxDeps = [ - "typeguard" - ]; + pythonRelaxDeps = [ "typeguard" ]; pythonImportsCheck = [ "linear_operator" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # flaky numerical tests diff --git a/pkgs/development/python-modules/linecache2/default.nix b/pkgs/development/python-modules/linecache2/default.nix index 1c4b2032f0d1..6c8268d3efb2 100644 --- a/pkgs/development/python-modules/linecache2/default.nix +++ b/pkgs/development/python-modules/linecache2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lineedit/default.nix b/pkgs/development/python-modules/lineedit/default.nix index 9f7bc9f2e371..242be583c638 100644 --- a/pkgs/development/python-modules/lineedit/default.nix +++ b/pkgs/development/python-modules/lineedit/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pygments -, six -, wcwidth -, pytestCheckHook -, pyte -, ptyprocess -, pexpect +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pygments, + six, + wcwidth, + pytestCheckHook, + pyte, + ptyprocess, + pexpect, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/linetable/default.nix b/pkgs/development/python-modules/linetable/default.nix index 6c1cde30e6f0..bd9c16783fc0 100644 --- a/pkgs/development/python-modules/linetable/default.nix +++ b/pkgs/development/python-modules/linetable/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-nVZVxK6uB5TP0pReaEya3/lFXFkiqpnnaWqYzxzO6bM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "linetable" - ]; + pythonImportsCheck = [ "linetable" ]; meta = with lib; { description = "Library to parse and generate co_linetable attributes in Python code objects"; diff --git a/pkgs/development/python-modules/lingua/default.nix b/pkgs/development/python-modules/lingua/default.nix index 7b1f6ba72005..d3cae940f121 100644 --- a/pkgs/development/python-modules/lingua/default.nix +++ b/pkgs/development/python-modules/lingua/default.nix @@ -1,9 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, flit-core -, polib -, click }: +{ + lib, + fetchPypi, + buildPythonPackage, + flit-core, + polib, + click, +}: buildPythonPackage rec { pname = "lingua"; @@ -20,9 +22,7 @@ buildPythonPackage rec { --replace-fail SafeConfigParser ConfigParser ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/linien-client/default.nix b/pkgs/development/python-modules/linien-client/default.nix index 8997c3454a38..631413a4e9cb 100644 --- a/pkgs/development/python-modules/linien-client/default.nix +++ b/pkgs/development/python-modules/linien-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, linien-common -, setuptools -, fabric -, typing-extensions -, numpy -, scipy +{ + lib, + buildPythonPackage, + linien-common, + setuptools, + fabric, + typing-extensions, + numpy, + scipy, }: buildPythonPackage rec { @@ -36,6 +37,9 @@ buildPythonPackage rec { description = "Client components of the Linien spectroscopy lock application"; homepage = "https://github.com/linien-org/linien/tree/develop/linien-client"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ fsagbuya doronbehar ]; + maintainers = with maintainers; [ + fsagbuya + doronbehar + ]; }; } diff --git a/pkgs/development/python-modules/linien-common/default.nix b/pkgs/development/python-modules/linien-common/default.nix index 88da8560db46..1fa188b8529c 100644 --- a/pkgs/development/python-modules/linien-common/default.nix +++ b/pkgs/development/python-modules/linien-common/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, importlib-metadata -, numpy -, rpyc4 -, scipy -, appdirs -, callPackage +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + importlib-metadata, + numpy, + rpyc4, + scipy, + appdirs, + callPackage, }: buildPythonPackage rec { @@ -48,6 +49,9 @@ buildPythonPackage rec { description = "Shared components of the Linien spectroscopy lock application"; homepage = "https://github.com/linien-org/linien/tree/develop/linien-common"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ fsagbuya doronbehar ]; + maintainers = with maintainers; [ + fsagbuya + doronbehar + ]; }; } diff --git a/pkgs/development/python-modules/linien-common/tests.nix b/pkgs/development/python-modules/linien-common/tests.nix index 7237548f2da3..b070abf40e0d 100644 --- a/pkgs/development/python-modules/linien-common/tests.nix +++ b/pkgs/development/python-modules/linien-common/tests.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, linien-common -, linien-client -, pytestCheckHook +{ + lib, + buildPythonPackage, + linien-common, + linien-client, + pytestCheckHook, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/linkify-it-py/default.nix b/pkgs/development/python-modules/linkify-it-py/default.nix index f539303a5933..856d30a024ab 100644 --- a/pkgs/development/python-modules/linkify-it-py/default.nix +++ b/pkgs/development/python-modules/linkify-it-py/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, uc-micro-py -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + uc-micro-py, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-BLwIityUZDVdSbvTpLf6QUlZUavWzG/45Nfffn18/vU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - uc-micro-py - ]; + propagatedBuildInputs = [ uc-micro-py ]; - pythonImportsCheck = [ - "linkify_it" - ]; + pythonImportsCheck = [ "linkify_it" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Links recognition library with full unicode support"; diff --git a/pkgs/development/python-modules/linode-api/default.nix b/pkgs/development/python-modules/linode-api/default.nix index 1e94825cedc5..67608a0a776d 100644 --- a/pkgs/development/python-modules/linode-api/default.nix +++ b/pkgs/development/python-modules/linode-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, requests -, pytestCheckHook -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + requests, + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-WB4CurdokRKh1eD6FZR2SeMpa3Z0BzLb0ldI7SYPEVI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/linode/default.nix b/pkgs/development/python-modules/linode/default.nix index 7f4d9b0dbd83..392743fdd163 100644 --- a/pkgs/development/python-modules/linode/default.nix +++ b/pkgs/development/python-modules/linode/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/linuxfd/default.nix b/pkgs/development/python-modules/linuxfd/default.nix index e9904d8d454e..793059dbe540 100644 --- a/pkgs/development/python-modules/linuxfd/default.nix +++ b/pkgs/development/python-modules/linuxfd/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -8,7 +9,6 @@ buildPythonPackage rec { version = "1.5"; format = "setuptools"; - src = fetchPypi { inherit pname version; sha256 = "b8c00109724b68e093f9b556edd78e41ed65fb8d969fd0e83186a97b5d3139b4"; diff --git a/pkgs/development/python-modules/lion-pytorch/default.nix b/pkgs/development/python-modules/lion-pytorch/default.nix index 3b8552837acf..33dbb08c2bff 100644 --- a/pkgs/development/python-modules/lion-pytorch/default.nix +++ b/pkgs/development/python-modules/lion-pytorch/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, torch +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + torch, }: buildPythonPackage rec { @@ -21,7 +22,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ torch ]; pythonImportsCheck = [ "lion_pytorch" ]; - doCheck = false; # no tests currently + doCheck = false; # no tests currently meta = with lib; { description = "Optimizer tuned by Google Brain using genetic algorithms"; diff --git a/pkgs/development/python-modules/liquidctl/default.nix b/pkgs/development/python-modules/liquidctl/default.nix index 94a232ef5659..8a19dd65e6e2 100644 --- a/pkgs/development/python-modules/liquidctl/default.nix +++ b/pkgs/development/python-modules/liquidctl/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, installShellFiles -, setuptools -, setuptools-scm -, wheel -, docopt -, hidapi -, pyusb -, smbus-cffi -, i2c-tools -, pytestCheckHook -, colorlog -, crcmod -, pillow -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + installShellFiles, + setuptools, + setuptools-scm, + wheel, + docopt, + hidapi, + pyusb, + smbus-cffi, + i2c-tools, + pytestCheckHook, + colorlog, + crcmod, + pillow, + fetchpatch, }: buildPythonPackage rec { @@ -58,9 +59,7 @@ buildPythonPackage rec { pillow ]; - propagatedNativeBuildInputs = [ - smbus-cffi - ]; + propagatedNativeBuildInputs = [ smbus-cffi ]; outputs = [ "out" @@ -75,25 +74,24 @@ buildPythonPackage rec { cp extra/linux/71-liquidctl.rules $out/lib/udev/rules.d/. ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postBuild = '' # needed for pythonImportsCheck export XDG_RUNTIME_DIR=$TMPDIR ''; - pythonImportsCheck = [ - "liquidctl" - ]; + pythonImportsCheck = [ "liquidctl" ]; meta = with lib; { description = "Cross-platform CLI and Python drivers for AIO liquid coolers and other devices"; homepage = "https://github.com/liquidctl/liquidctl"; changelog = "https://github.com/liquidctl/liquidctl/blob/v${version}/CHANGELOG.md"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ arturcygan evils ]; + maintainers = with maintainers; [ + arturcygan + evils + ]; mainProgram = "liquidctl"; }; } diff --git a/pkgs/development/python-modules/lit/default.nix b/pkgs/development/python-modules/lit/default.nix index 9b63a4e88377..512f0501976b 100644 --- a/pkgs/development/python-modules/lit/default.nix +++ b/pkgs/development/python-modules/lit/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, python +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + python, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-36mvm1X8RQmla+e/I0bwedf0okLVg7ny4LB4/Qq64xs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru = { inherit python; diff --git a/pkgs/development/python-modules/litellm/default.nix b/pkgs/development/python-modules/litellm/default.nix index 329d4d933029..068566ea139f 100644 --- a/pkgs/development/python-modules/litellm/default.nix +++ b/pkgs/development/python-modules/litellm/default.nix @@ -1,34 +1,35 @@ -{ lib -, aiohttp -, apscheduler -, azure-identity -, azure-keyvault-secrets -, backoff -, buildPythonPackage -, click -, fastapi -, fastapi-sso -, fetchFromGitHub -, google-cloud-kms -, gunicorn -, importlib-metadata -, jinja2 -, openai -, orjson -, poetry-core -, prisma -, pyjwt -, python-dotenv -, python-multipart -, pythonOlder -, pyyaml -, requests -, resend -, rq -, streamlit -, tiktoken -, tokenizers -, uvicorn +{ + lib, + aiohttp, + apscheduler, + azure-identity, + azure-keyvault-secrets, + backoff, + buildPythonPackage, + click, + fastapi, + fastapi-sso, + fetchFromGitHub, + google-cloud-kms, + gunicorn, + importlib-metadata, + jinja2, + openai, + orjson, + poetry-core, + prisma, + pyjwt, + python-dotenv, + python-multipart, + pythonOlder, + pyyaml, + requests, + resend, + rq, + streamlit, + tiktoken, + tokenizers, + uvicorn, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { rm -rf dist ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp diff --git a/pkgs/development/python-modules/litemapy/default.nix b/pkgs/development/python-modules/litemapy/default.nix index 6040cb1f47f1..6054593d7c2f 100644 --- a/pkgs/development/python-modules/litemapy/default.nix +++ b/pkgs/development/python-modules/litemapy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nbtlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nbtlib, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-VfEo/JLeU17bEkvc8oZYfq19RsHl6QvKv0sGZYQjYhE="; }; - propagatedBuildInputs = [ - nbtlib - ]; + propagatedBuildInputs = [ nbtlib ]; pythonImportsCheck = [ "litemapy" ]; diff --git a/pkgs/development/python-modules/littleutils/default.nix b/pkgs/development/python-modules/littleutils/default.nix index 538f4dea0a67..b4c4eb4ac3c2 100644 --- a/pkgs/development/python-modules/littleutils/default.nix +++ b/pkgs/development/python-modules/littleutils/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "littleutils" - ]; + pythonImportsCheck = [ "littleutils" ]; meta = with lib; { description = "Small collection of Python utility functions"; diff --git a/pkgs/development/python-modules/livelossplot/default.nix b/pkgs/development/python-modules/livelossplot/default.nix index 2218c01d6424..5c213fae0db5 100644 --- a/pkgs/development/python-modules/livelossplot/default.nix +++ b/pkgs/development/python-modules/livelossplot/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, bokeh -, ipython -, matplotlib -, numpy -, nbconvert -, nbformat +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + bokeh, + ipython, + matplotlib, + numpy, + nbconvert, + nbformat, }: buildPythonPackage rec { @@ -19,15 +20,24 @@ buildPythonPackage rec { disabled = pythonOlder "3.6"; src = fetchFromGitHub { - owner = "stared"; - repo = pname; - rev = "v${version}"; + owner = "stared"; + repo = pname; + rev = "v${version}"; sha256 = "sha256-YU8vX4SubI6txmC/i5fOjcvWfuDFm8+SPmie8Eb1qRs="; }; - propagatedBuildInputs = [ bokeh ipython matplotlib numpy ]; + propagatedBuildInputs = [ + bokeh + ipython + matplotlib + numpy + ]; - nativeCheckInputs = [ nbconvert nbformat pytestCheckHook ]; + nativeCheckInputs = [ + nbconvert + nbformat + pytestCheckHook + ]; meta = with lib; { description = "Live training loss plot in Jupyter for Keras, PyTorch, and others"; diff --git a/pkgs/development/python-modules/livereload/default.nix b/pkgs/development/python-modules/livereload/default.nix index 15b9d121862f..8a592823003a 100644 --- a/pkgs/development/python-modules/livereload/default.nix +++ b/pkgs/development/python-modules/livereload/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, django -, pytestCheckHook -, tornado -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + django, + pytestCheckHook, + tornado, + six, }: buildPythonPackage rec { @@ -21,13 +22,14 @@ buildPythonPackage rec { buildInputs = [ django ]; - propagatedBuildInputs = [ tornado six ]; + propagatedBuildInputs = [ + tornado + six + ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_watch_multiple_dirs" - ]; + disabledTests = [ "test_watch_multiple_dirs" ]; meta = { description = "Runs a local server that reloads as you develop"; diff --git a/pkgs/development/python-modules/lizard/default.nix b/pkgs/development/python-modules/lizard/default.nix index 027fcc2a15af..df6ab5c4b7b3 100644 --- a/pkgs/development/python-modules/lizard/default.nix +++ b/pkgs/development/python-modules/lizard/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, mock -, jinja2 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + mock, + jinja2, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { "test/test_languages/testFortran.py" ]; - pythonImportsCheck = [ - "lizard" - ]; + pythonImportsCheck = [ "lizard" ]; meta = with lib; { changelog = "https://github.com/terryyin/lizard/blob/${version}/CHANGELOG.md"; @@ -46,4 +45,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ jpetrucciani ]; }; } - diff --git a/pkgs/development/python-modules/llama-index-embeddings-gemini/default.nix b/pkgs/development/python-modules/llama-index-embeddings-gemini/default.nix index 722139cfdedc..ddbc8fc05e0f 100644 --- a/pkgs/development/python-modules/llama-index-embeddings-gemini/default.nix +++ b/pkgs/development/python-modules/llama-index-embeddings-gemini/default.nix @@ -25,13 +25,9 @@ buildPythonPackage rec { pythonRelaxDeps = [ "google-generativeai" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ google-generativeai diff --git a/pkgs/development/python-modules/llama-index-embeddings-huggingface/default.nix b/pkgs/development/python-modules/llama-index-embeddings-huggingface/default.nix index c30cb3e72e2a..b501f11c3e5b 100644 --- a/pkgs/development/python-modules/llama-index-embeddings-huggingface/default.nix +++ b/pkgs/development/python-modules/llama-index-embeddings-huggingface/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, poetry-core -, pythonOlder -, sentence-transformers +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + poetry-core, + pythonOlder, + sentence-transformers, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-3PCplFXzfE4aL91c1lyd0aRRu4aMP4DDNcTQybadAHE="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ llama-index-core @@ -32,9 +31,7 @@ buildPythonPackage rec { # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.embeddings.huggingface" - ]; + pythonImportsCheck = [ "llama_index.embeddings.huggingface" ]; meta = with lib; { description = "LlamaIndex Embeddings Integration for Huggingface"; diff --git a/pkgs/development/python-modules/llama-index-embeddings-ollama/default.nix b/pkgs/development/python-modules/llama-index-embeddings-ollama/default.nix index 509bf54d2872..cd0031854496 100644 --- a/pkgs/development/python-modules/llama-index-embeddings-ollama/default.nix +++ b/pkgs/development/python-modules/llama-index-embeddings-ollama/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-generativeai -, llama-index-core -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + google-generativeai, + llama-index-core, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-qeCAm93S5K2IjySVGe3H49M5x05OA/xaQMMGDcQdR6k="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - llama-index-core - ]; + dependencies = [ llama-index-core ]; # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.embeddings.ollama" - ]; + pythonImportsCheck = [ "llama_index.embeddings.ollama" ]; meta = with lib; { description = "LlamaIndex Llms Integration for Ollama"; diff --git a/pkgs/development/python-modules/llama-index-graph-stores-nebula/default.nix b/pkgs/development/python-modules/llama-index-graph-stores-nebula/default.nix index 3741b71a34ea..5bb617e53262 100644 --- a/pkgs/development/python-modules/llama-index-graph-stores-nebula/default.nix +++ b/pkgs/development/python-modules/llama-index-graph-stores-nebula/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, nebula3-python -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + nebula3-python, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-Mhej0nslypY1Z99VUrTgl4S9PlrBWbaKvANSwEKTMZk="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ llama-index-core nebula3-python ]; - pythonImportsCheck = [ - "llama_index.graph_stores.nebula" - ]; + pythonImportsCheck = [ "llama_index.graph_stores.nebula" ]; meta = with lib; { description = "LlamaIndex Graph Store Integration for Nebula"; diff --git a/pkgs/development/python-modules/llama-index-graph-stores-neo4j/default.nix b/pkgs/development/python-modules/llama-index-graph-stores-neo4j/default.nix index bc2664e53012..17ef629d06be 100644 --- a/pkgs/development/python-modules/llama-index-graph-stores-neo4j/default.nix +++ b/pkgs/development/python-modules/llama-index-graph-stores-neo4j/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, neo4j -, llama-index-core -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + neo4j, + llama-index-core, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-zr3EAFuLzbQKnGPVE6BsLEtNpnfYhDq9brxWPFtQiG8="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ neo4j llama-index-core ]; - pythonImportsCheck = [ - "llama_index.graph_stores.neo4j" - ]; + pythonImportsCheck = [ "llama_index.graph_stores.neo4j" ]; meta = with lib; { description = "LlamaIndex Graph Store Integration for Neo4j"; diff --git a/pkgs/development/python-modules/llama-index-graph-stores-neptune/default.nix b/pkgs/development/python-modules/llama-index-graph-stores-neptune/default.nix index 869116b58c6b..dbc2bd5238b1 100644 --- a/pkgs/development/python-modules/llama-index-graph-stores-neptune/default.nix +++ b/pkgs/development/python-modules/llama-index-graph-stores-neptune/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, boto3 -, llama-index-core -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + boto3, + llama-index-core, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-ZveFCJJT7Qal82cuVTs+3AmSuvdc7GsHqqqNvcDb3CY="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ boto3 llama-index-core ]; - pythonImportsCheck = [ - "llama_index.graph_stores.neptune" - ]; + pythonImportsCheck = [ "llama_index.graph_stores.neptune" ]; meta = with lib; { description = "LlamaIndex Graph Store Integration for Neptune"; diff --git a/pkgs/development/python-modules/llama-index-legacy/default.nix b/pkgs/development/python-modules/llama-index-legacy/default.nix index 120a210d8eeb..e7c350cdd0a0 100644 --- a/pkgs/development/python-modules/llama-index-legacy/default.nix +++ b/pkgs/development/python-modules/llama-index-legacy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-gt3EaR7b9JUz1lWCwkm6IsA/6W+9PpL3dY3M7yjkODQ="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - llama-index-core - ]; + dependencies = [ llama-index-core ]; # Tests are only available in the mono repo doCheck = false; diff --git a/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix b/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix index ccb32689f530..4415127ee30c 100644 --- a/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix +++ b/pkgs/development/python-modules/llama-index-llms-openai-like/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, llama-index-llms-openai -, poetry-core -, pythonOlder -, transformers +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + llama-index-llms-openai, + poetry-core, + pythonOlder, + transformers, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-w0EjJQd8dSY+N9YNUBMUub3HcPEtiisW51bn2ayPnj8="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ llama-index-core @@ -34,9 +33,7 @@ buildPythonPackage rec { # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.llms.openai_like" - ]; + pythonImportsCheck = [ "llama_index.llms.openai_like" ]; meta = with lib; { description = "LlamaIndex LLMS Integration for OpenAI like"; diff --git a/pkgs/development/python-modules/llama-index-program-openai/default.nix b/pkgs/development/python-modules/llama-index-program-openai/default.nix index 4f8ca5ae68c9..c3c181855218 100644 --- a/pkgs/development/python-modules/llama-index-program-openai/default.nix +++ b/pkgs/development/python-modules/llama-index-program-openai/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-agent-openai -, llama-index-core -, llama-index-llms-openai -, poetry-core -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-agent-openai, + llama-index-core, + llama-index-llms-openai, + poetry-core, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-xqSYDF6oJgiLKLTe4zZ+2yAiHm0F6w4FAZBJGQEx13I="; }; - pythonRelaxDeps = [ - "llama-index-agent-openai" - ]; + pythonRelaxDeps = [ "llama-index-agent-openai" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ llama-index-agent-openai @@ -40,9 +35,7 @@ buildPythonPackage rec { llama-index-llms-openai ]; - pythonImportsCheck = [ - "llama_index.program.openai" - ]; + pythonImportsCheck = [ "llama_index.program.openai" ]; meta = with lib; { description = "LlamaIndex Program Integration for OpenAI"; diff --git a/pkgs/development/python-modules/llama-index-question-gen-openai/default.nix b/pkgs/development/python-modules/llama-index-question-gen-openai/default.nix index aa302019772a..4633a56770ad 100644 --- a/pkgs/development/python-modules/llama-index-question-gen-openai/default.nix +++ b/pkgs/development/python-modules/llama-index-question-gen-openai/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, llama-index-llms-openai -, llama-index-program-openai -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + llama-index-llms-openai, + llama-index-program-openai, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-RIYZgRekVFfS4DauYLk69YBSiTzH14+ptvR91HuB4uE="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ llama-index-core @@ -34,9 +33,7 @@ buildPythonPackage rec { # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.question_gen.openai" - ]; + pythonImportsCheck = [ "llama_index.question_gen.openai" ]; meta = with lib; { description = "LlamaIndex Question Gen Integration for Openai Generator"; diff --git a/pkgs/development/python-modules/llama-index-readers-database/default.nix b/pkgs/development/python-modules/llama-index-readers-database/default.nix index d7aa3bf51e03..a0ded9aaddfe 100644 --- a/pkgs/development/python-modules/llama-index-readers-database/default.nix +++ b/pkgs/development/python-modules/llama-index-readers-database/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchPypi -, llama-index-core -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchPypi, + llama-index-core, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-x71+szDNDZNaVc8AMXruKvxSNXg561ibE2+kx53zHfI="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - llama-index-core - ]; + dependencies = [ llama-index-core ]; # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.readers.database" - ]; + pythonImportsCheck = [ "llama_index.readers.database" ]; meta = with lib; { description = "LlamaIndex Readers Integration for Databases"; diff --git a/pkgs/development/python-modules/llama-index-readers-json/default.nix b/pkgs/development/python-modules/llama-index-readers-json/default.nix index 4b1d670818b6..6ec922a3a262 100644 --- a/pkgs/development/python-modules/llama-index-readers-json/default.nix +++ b/pkgs/development/python-modules/llama-index-readers-json/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-H+CG+2FtoOF/DUG6EuAWzY2xe1upLX0pakVutJTZFE0="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - llama-index-core - ]; + dependencies = [ llama-index-core ]; # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.readers.json" - ]; + pythonImportsCheck = [ "llama_index.readers.json" ]; meta = with lib; { description = "LlamaIndex Readers Integration for Json"; diff --git a/pkgs/development/python-modules/llama-index-readers-llama-parse/default.nix b/pkgs/development/python-modules/llama-index-readers-llama-parse/default.nix index e24f0d850a9d..1db642215883 100644 --- a/pkgs/development/python-modules/llama-index-readers-llama-parse/default.nix +++ b/pkgs/development/python-modules/llama-index-readers-llama-parse/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, llama-parse -, poetry-core -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + llama-parse, + poetry-core, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-eGCLGTyBiJSu/u4KowPwK3+A8uTK8Thmwv07CxAj4sA="; }; - pythonRelaxDeps = [ - "llama-parse" - ]; + pythonRelaxDeps = [ "llama-parse" ]; nativeBuildInputs = [ poetry-core @@ -38,9 +37,7 @@ buildPythonPackage rec { # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.readers.llama_parse" - ]; + pythonImportsCheck = [ "llama_index.readers.llama_parse" ]; meta = with lib; { description = "LlamaIndex Readers Integration for files"; diff --git a/pkgs/development/python-modules/llama-index-readers-twitter/default.nix b/pkgs/development/python-modules/llama-index-readers-twitter/default.nix index 88ffcd410bf9..aa51724306b7 100644 --- a/pkgs/development/python-modules/llama-index-readers-twitter/default.nix +++ b/pkgs/development/python-modules/llama-index-readers-twitter/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchPypi -, llama-index-core -, poetry-core -, pythonOlder -, tweepy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchPypi, + llama-index-core, + poetry-core, + pythonOlder, + tweepy, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-ZPwluiPdSkwMZ3JQy/HHhR7erYhUE9BWtplkfHk+TK8="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ llama-index-core @@ -33,9 +32,7 @@ buildPythonPackage rec { # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.readers.twitter" - ]; + pythonImportsCheck = [ "llama_index.readers.twitter" ]; meta = with lib; { description = "LlamaIndex Readers Integration for Twitter"; diff --git a/pkgs/development/python-modules/llama-index-readers-txtai/default.nix b/pkgs/development/python-modules/llama-index-readers-txtai/default.nix index 787026f8fc4b..0e8e43b4d4d3 100644 --- a/pkgs/development/python-modules/llama-index-readers-txtai/default.nix +++ b/pkgs/development/python-modules/llama-index-readers-txtai/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-F1P3/ZICFDTqowpqu0AF2RIKfLTH9Phuw0O+VsHpI4U="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - llama-index-core - ]; + dependencies = [ llama-index-core ]; # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.readers.txtai" - ]; + pythonImportsCheck = [ "llama_index.readers.txtai" ]; meta = with lib; { description = "LlamaIndex Readers Integration for txtai"; diff --git a/pkgs/development/python-modules/llama-index-readers-weather/default.nix b/pkgs/development/python-modules/llama-index-readers-weather/default.nix index 1778322d63b4..d3f84bf306f1 100644 --- a/pkgs/development/python-modules/llama-index-readers-weather/default.nix +++ b/pkgs/development/python-modules/llama-index-readers-weather/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, llama-index-core -, poetry-core -, pyowm -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + llama-index-core, + poetry-core, + pyowm, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,25 +22,19 @@ buildPythonPackage rec { hash = "sha256-LJy2nU9f+yZZQm9stNn9mIqOkT5lOHaMIIm1Ezf2D0Q="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ llama-index-core pyowm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Tests are only available in the mono repo doCheck = false; - pythonImportsCheck = [ - "llama_index.readers.weather" - ]; + pythonImportsCheck = [ "llama_index.readers.weather" ]; meta = with lib; { description = "LlamaIndex Readers Integration for Weather"; diff --git a/pkgs/development/python-modules/llama-index-vector-stores-chroma/default.nix b/pkgs/development/python-modules/llama-index-vector-stores-chroma/default.nix index de65df2055f3..9a0dc4a656e8 100644 --- a/pkgs/development/python-modules/llama-index-vector-stores-chroma/default.nix +++ b/pkgs/development/python-modules/llama-index-vector-stores-chroma/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, chromadb -, fetchPypi -, llama-index-core -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + chromadb, + fetchPypi, + llama-index-core, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-nFdLrzcPr0Vry2e51eonOm+h8rT9IFpZxHtoESNkuec="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ chromadb llama-index-core ]; - pythonImportsCheck = [ - "llama_index.vector_stores.chroma" - ]; + pythonImportsCheck = [ "llama_index.vector_stores.chroma" ]; meta = with lib; { description = "LlamaIndex Vector Store Integration for Chroma"; diff --git a/pkgs/development/python-modules/llama-index-vector-stores-google/default.nix b/pkgs/development/python-modules/llama-index-vector-stores-google/default.nix index 419357ea30b9..47a74e8a9710 100644 --- a/pkgs/development/python-modules/llama-index-vector-stores-google/default.nix +++ b/pkgs/development/python-modules/llama-index-vector-stores-google/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, google-generativeai -, llama-index-core -, poetry-core -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + google-generativeai, + llama-index-core, + poetry-core, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-E6RNf2DzktoZW89P0VKfmeZ5SEslGkyFLRxVtnsQOYc="; }; - pythonRelaxDeps = [ - "google-generativeai" - ]; + pythonRelaxDeps = [ "google-generativeai" ]; build-system = [ poetry-core @@ -35,9 +34,7 @@ buildPythonPackage rec { llama-index-core ]; - pythonImportsCheck = [ - "llama_index.vector_stores.google" - ]; + pythonImportsCheck = [ "llama_index.vector_stores.google" ]; meta = with lib; { description = "LlamaIndex Vector Store Integration for Google"; diff --git a/pkgs/development/python-modules/llama-index/default.nix b/pkgs/development/python-modules/llama-index/default.nix index 4e269039722f..800143b8277a 100644 --- a/pkgs/development/python-modules/llama-index/default.nix +++ b/pkgs/development/python-modules/llama-index/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, llama-index-agent-openai -, llama-index-cli -, llama-index-core -, llama-index-embeddings-openai -, llama-index-indices-managed-llama-cloud -, llama-index-legacy -, llama-index-llms-openai -, llama-index-multi-modal-llms-openai -, llama-index-program-openai -, llama-index-question-gen-openai -, llama-index-readers-file -, llama-index-readers-llama-parse -, poetry-core +{ + lib, + buildPythonPackage, + llama-index-agent-openai, + llama-index-cli, + llama-index-core, + llama-index-embeddings-openai, + llama-index-indices-managed-llama-cloud, + llama-index-legacy, + llama-index-llms-openai, + llama-index-multi-modal-llms-openai, + llama-index-program-openai, + llama-index-question-gen-openai, + llama-index-readers-file, + llama-index-readers-llama-parse, + poetry-core, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { pyproject = true; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ llama-index-agent-openai @@ -41,7 +40,5 @@ buildPythonPackage rec { llama-index-readers-llama-parse ]; - pythonImportsCheck = [ - "llama_index" - ]; + pythonImportsCheck = [ "llama_index" ]; } diff --git a/pkgs/development/python-modules/llfuse/default.nix b/pkgs/development/python-modules/llfuse/default.nix index 5e1ce47bdc67..8e7028c94421 100644 --- a/pkgs/development/python-modules/llfuse/default.nix +++ b/pkgs/development/python-modules/llfuse/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cython -, fuse -, pkg-config -, pytestCheckHook -, python -, setuptools -, which +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cython, + fuse, + pkg-config, + pytestCheckHook, + python, + setuptools, + which, }: buildPythonPackage rec { @@ -27,7 +28,11 @@ buildPythonPackage rec { hash = "sha256-6/iW5eHmX6ODVPLFkOo3bN9yW8ixqy2MHwQ2r9FA0iI="; }; - nativeBuildInputs = [ cython pkg-config setuptools ]; + nativeBuildInputs = [ + cython + pkg-config + setuptools + ]; buildInputs = [ fuse ]; @@ -42,7 +47,10 @@ buildPythonPackage rec { # On Darwin, the test requires macFUSE to be installed outside of Nix. doCheck = !stdenv.isDarwin; - nativeCheckInputs = [ pytestCheckHook which ]; + nativeCheckInputs = [ + pytestCheckHook + which + ]; disabledTests = [ "test_listdir" # accesses /usr/bin @@ -54,6 +62,9 @@ buildPythonPackage rec { changelog = "https://github.com/python-llfuse/python-llfuse/raw/release-${version}/Changes.rst"; license = licenses.lgpl2Plus; platforms = platforms.unix; - maintainers = with maintainers; [ bjornfor dotlambda ]; + maintainers = with maintainers; [ + bjornfor + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 582cba89763f..899a95ab3b26 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonApplication -, buildPythonPackage -, fetchFromGitHub -, makeWrapper -, pytestCheckHook -, python3 -, pythonOlder -, ruff -, setuptools +{ + lib, + buildPythonApplication, + buildPythonPackage, + fetchFromGitHub, + makeWrapper, + pytestCheckHook, + python3, + pythonOlder, + ruff, + setuptools, }: let llm = buildPythonPackage rec { @@ -24,13 +25,9 @@ let hash = "sha256-CgGVFUsntVkF0zORAtYQQMAeGtIwBbj9hE0Ei1OCGq4="; }; - patches = [ - ./001-disable-install-uninstall-commands.patch - ]; + patches = [ ./001-disable-install-uninstall-commands.patch ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = with python3.pkgs; [ click-default-group @@ -60,11 +57,11 @@ let "tests/" ]; - pythonImportsCheck = [ - "llm" - ]; + pythonImportsCheck = [ "llm" ]; - passthru = {inherit withPlugins;}; + passthru = { + inherit withPlugins; + }; meta = with lib; { homepage = "https://github.com/simonw/llm"; @@ -72,37 +69,37 @@ let changelog = "https://github.com/simonw/llm/releases/tag/${version}"; license = licenses.asl20; mainProgram = "llm"; - maintainers = with maintainers; [aldoborrero]; + maintainers = with maintainers; [ aldoborrero ]; }; }; - withPlugins = plugins: buildPythonApplication { - inherit (llm) pname version; - format = "other"; + withPlugins = + plugins: + buildPythonApplication { + inherit (llm) pname version; + format = "other"; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.8"; - dontUnpack = true; - dontBuild = true; - doCheck = false; + dontUnpack = true; + dontBuild = true; + doCheck = false; - nativeBuildInputs = [ - makeWrapper - ]; + nativeBuildInputs = [ makeWrapper ]; - installPhase = '' - makeWrapper ${llm}/bin/llm $out/bin/llm \ - --prefix PYTHONPATH : "${llm}/${python3.sitePackages}:$PYTHONPATH" - ln -sfv ${llm}/lib $out/lib - ''; + installPhase = '' + makeWrapper ${llm}/bin/llm $out/bin/llm \ + --prefix PYTHONPATH : "${llm}/${python3.sitePackages}:$PYTHONPATH" + ln -sfv ${llm}/lib $out/lib + ''; - propagatedBuildInputs = llm.propagatedBuildInputs ++ plugins; + propagatedBuildInputs = llm.propagatedBuildInputs ++ plugins; - passthru = llm.passthru // { - withPlugins = morePlugins: withPlugins (morePlugins ++ plugins); + passthru = llm.passthru // { + withPlugins = morePlugins: withPlugins (morePlugins ++ plugins); + }; + + inherit (llm) meta; }; - - inherit (llm) meta; - }; in - llm +llm diff --git a/pkgs/development/python-modules/llvmlite/default.nix b/pkgs/development/python-modules/llvmlite/default.nix index fb4856989564..21736036bbbe 100644 --- a/pkgs/development/python-modules/llvmlite/default.nix +++ b/pkgs/development/python-modules/llvmlite/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, isPyPy -, pythonAtLeast +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + isPyPy, + pythonAtLeast, -# build-system -, llvm -, setuptools + # build-system + llvm, + setuptools, -# tests -, python + # tests + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lmdb/default.nix b/pkgs/development/python-modules/lmdb/default.nix index 3f145ed367e6..fe7a341c1480 100644 --- a/pkgs/development/python-modules/lmdb/default.nix +++ b/pkgs/development/python-modules/lmdb/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, cffi -, lmdb -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + cffi, + lmdb, + pythonOlder, }: buildPythonPackage rec { @@ -19,22 +20,23 @@ buildPythonPackage rec { hash = "sha256-H0x2ryTpB1k0h8kE7166GZO+s47Tha+CrbJahY8tZY0="; }; - buildInputs = [ - lmdb - ]; + buildInputs = [ lmdb ]; nativeCheckInputs = [ cffi pytestCheckHook ]; - LMDB_FORCE_SYSTEM=1; + LMDB_FORCE_SYSTEM = 1; meta = with lib; { description = "Universal Python binding for the LMDB 'Lightning' Database"; homepage = "https://github.com/dw/py-lmdb"; changelog = "https://github.com/jnwatson/py-lmdb/blob/py-lmdb_${version}/ChangeLog"; license = licenses.openldap; - maintainers = with maintainers; [ copumpkin ivan ]; + maintainers = with maintainers; [ + copumpkin + ivan + ]; }; } diff --git a/pkgs/development/python-modules/lmfit/default.nix b/pkgs/development/python-modules/lmfit/default.nix index a7e8c6970bdb..f62cdc60622d 100644 --- a/pkgs/development/python-modules/lmfit/default.nix +++ b/pkgs/development/python-modules/lmfit/default.nix @@ -1,4 +1,5 @@ -{ lib, +{ + lib, buildPythonPackage, fetchPypi, setuptools, diff --git a/pkgs/development/python-modules/lml/default.nix b/pkgs/development/python-modules/lml/default.nix index 4ad69e15a429..6024da51f2fa 100644 --- a/pkgs/development/python-modules/lml/default.nix +++ b/pkgs/development/python-modules/lml/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lmnotify/default.nix b/pkgs/development/python-modules/lmnotify/default.nix index bf9d857dc74d..77876dfb2174 100644 --- a/pkgs/development/python-modules/lmnotify/default.nix +++ b/pkgs/development/python-modules/lmnotify/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, oauthlib -, requests -, requests-oauthlib -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + oauthlib, + requests, + requests-oauthlib, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "lmnotify" - ]; + pythonImportsCheck = [ "lmnotify" ]; meta = with lib; { description = "Python package for sending notifications to LaMetric Time"; diff --git a/pkgs/development/python-modules/loca/default.nix b/pkgs/development/python-modules/loca/default.nix index 28a9020d7444..73b88dee28e9 100644 --- a/pkgs/development/python-modules/loca/default.nix +++ b/pkgs/development/python-modules/loca/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, flit-core }: +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromSourcehut, + flit-core, +}: buildPythonPackage rec { pname = "loca"; @@ -13,9 +19,7 @@ buildPythonPackage rec { sha256 = "1l6jimw3wd81nz1jrzsfw1zzsdm0jm998xlddcqaq0h38sx69w8g"; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; doCheck = false; # all checks are static analyses pythonImportsCheck = [ "loca" ]; diff --git a/pkgs/development/python-modules/localimport/default.nix b/pkgs/development/python-modules/localimport/default.nix index 9cb001af86a2..3c8e0f07223f 100644 --- a/pkgs/development/python-modules/localimport/default.nix +++ b/pkgs/development/python-modules/localimport/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/localstack-client/default.nix b/pkgs/development/python-modules/localstack-client/default.nix index b78cc3da7633..fe6a431ee773 100644 --- a/pkgs/development/python-modules/localstack-client/default.nix +++ b/pkgs/development/python-modules/localstack-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, boto3 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + boto3, + pytestCheckHook, -# downstream dependencies -, localstack + # downstream dependencies + localstack, }: buildPythonPackage rec { @@ -21,19 +22,13 @@ buildPythonPackage rec { hash = "sha256-MBXTiTzCwkduJPPRN7OKaWy2q9J8xCX/GGu09tyac3A="; }; - propagatedBuildInputs = [ - boto3 - ]; + propagatedBuildInputs = [ boto3 ]; - pythonImportsCheck = [ - "localstack_client" - ]; + pythonImportsCheck = [ "localstack_client" ]; # All commands test `localstack` which is a downstream dependency doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Has trouble creating a socket diff --git a/pkgs/development/python-modules/localstack-ext/default.nix b/pkgs/development/python-modules/localstack-ext/default.nix index 90e743f839e7..5508507d2067 100644 --- a/pkgs/development/python-modules/localstack-ext/default.nix +++ b/pkgs/development/python-modules/localstack-ext/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, dill -, dnslib -, dnspython -, plux -, pyaes -, python-jose -, requests -, tabulate +{ + lib, + buildPythonPackage, + fetchPypi, + dill, + dnslib, + dnspython, + plux, + pyaes, + python-jose, + requests, + tabulate, -# Sensitive downstream dependencies -, localstack + # Sensitive downstream dependencies + localstack, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/localstack/default.nix b/pkgs/development/python-modules/localstack/default.nix index 6a408c935920..6a99d2b22556 100644 --- a/pkgs/development/python-modules/localstack/default.nix +++ b/pkgs/development/python-modules/localstack/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, apispec -, boto3 -, cachetools -, click -, localstack-client -, localstack-ext -, plux -, psutil -, python-dotenv -, pyyaml -, packaging -, requests -, rich -, semver -, tailer +{ + lib, + buildPythonPackage, + fetchFromGitHub, + apispec, + boto3, + cachetools, + click, + localstack-client, + localstack-ext, + plux, + psutil, + python-dotenv, + pyyaml, + packaging, + requests, + rich, + semver, + tailer, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/locationsharinglib/default.nix b/pkgs/development/python-modules/locationsharinglib/default.nix index 98888e18df69..76f818210e1a 100644 --- a/pkgs/development/python-modules/locationsharinglib/default.nix +++ b/pkgs/development/python-modules/locationsharinglib/default.nix @@ -1,14 +1,15 @@ -{ lib -, betamax -, buildPythonPackage -, cachetools -, coloredlogs -, emoji -, fetchPypi -, nose -, pythonOlder -, pytz -, requests +{ + lib, + betamax, + buildPythonPackage, + cachetools, + coloredlogs, + emoji, + fetchPypi, + nose, + pythonOlder, + pytz, + requests, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "locationsharinglib" - ]; + pythonImportsCheck = [ "locationsharinglib" ]; meta = with lib; { description = "Python package to retrieve coordinates from a Google account"; diff --git a/pkgs/development/python-modules/locket/default.nix b/pkgs/development/python-modules/locket/default.nix index e416d8dd8288..5af41f471ca4 100644 --- a/pkgs/development/python-modules/locket/default.nix +++ b/pkgs/development/python-modules/locket/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # weird test requirements (spur.local>=0.3.7,<0.4) doCheck = false; - pythonImportsCheck = [ - "locket" - ]; + pythonImportsCheck = [ "locket" ]; meta = with lib; { description = "Library which provides a lock that can be used by multiple processes"; diff --git a/pkgs/development/python-modules/lockfile/default.nix b/pkgs/development/python-modules/lockfile/default.nix index 1ee92f4ce38a..deb05ac31dac 100644 --- a/pkgs/development/python-modules/lockfile/default.nix +++ b/pkgs/development/python-modules/lockfile/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pbr -, pynose +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pbr, + pynose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/log-symbols/default.nix b/pkgs/development/python-modules/log-symbols/default.nix index 819f771b91ee..3387508d8744 100644 --- a/pkgs/development/python-modules/log-symbols/default.nix +++ b/pkgs/development/python-modules/log-symbols/default.nix @@ -1,8 +1,10 @@ -{ buildPythonPackage -, colorama -, fetchPypi -, isPy27 -, lib }: +{ + buildPythonPackage, + colorama, + fetchPypi, + isPy27, + lib, +}: buildPythonPackage rec { pname = "log_symbols"; diff --git a/pkgs/development/python-modules/logbook/default.nix b/pkgs/development/python-modules/logbook/default.nix index c58f617b10f8..09153981a45d 100644 --- a/pkgs/development/python-modules/logbook/default.nix +++ b/pkgs/development/python-modules/logbook/default.nix @@ -1,16 +1,17 @@ -{ lib -, brotli -, buildPythonPackage -, cython -, execnet -, fetchFromGitHub -, jinja2 -, pytestCheckHook -, pythonOlder -, pyzmq -, redis -, setuptools -, sqlalchemy +{ + lib, + brotli, + buildPythonPackage, + cython, + execnet, + fetchFromGitHub, + jinja2, + pytestCheckHook, + pythonOlder, + pyzmq, + redis, + setuptools, + sqlalchemy, }: buildPythonPackage rec { @@ -33,24 +34,12 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - execnet = [ - execnet - ]; - sqlalchemy = [ - sqlalchemy - ]; - redis = [ - redis - ]; - zmq = [ - pyzmq - ]; - compression = [ - brotli - ]; - jinja = [ - jinja2 - ]; + execnet = [ execnet ]; + sqlalchemy = [ sqlalchemy ]; + redis = [ redis ]; + zmq = [ pyzmq ]; + compression = [ brotli ]; + jinja = [ jinja2 ]; all = [ brotli execnet @@ -68,9 +57,7 @@ buildPythonPackage rec { # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "logbook" - ]; + pythonImportsCheck = [ "logbook" ]; disabledTests = [ # Test require Redis instance diff --git a/pkgs/development/python-modules/logfury/default.nix b/pkgs/development/python-modules/logfury/default.nix index 9909ab410675..fcd3fd9baa83 100644 --- a/pkgs/development/python-modules/logfury/default.nix +++ b/pkgs/development/python-modules/logfury/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytestCheckHook -, pythonOlder -, testfixtures +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytestCheckHook, + pythonOlder, + testfixtures, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-EwpdrOq5rVNJJCUt33BIKqLJZmKzo4JafTCYHQO3aiY="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ pytestCheckHook @@ -33,9 +32,7 @@ buildPythonPackage rec { --replace "'setuptools_scm<6.0'" "'setuptools_scm'" ''; - pythonImportsCheck = [ - "logfury" - ]; + pythonImportsCheck = [ "logfury" ]; meta = with lib; { description = "Python module that allows for responsible, low-boilerplate logging of method calls"; diff --git a/pkgs/development/python-modules/logging-journald/default.nix b/pkgs/development/python-modules/logging-journald/default.nix index 812de51498d1..51ba2cce6ea1 100644 --- a/pkgs/development/python-modules/logging-journald/default.nix +++ b/pkgs/development/python-modules/logging-journald/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-RQ9opkAOZfhYuqOXJ2Mtnig8soL+lCveYH2YdXL1AGM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # Circular dependency with aiomisc doCheck = false; - pythonImportsCheck = [ - "logging_journald" - ]; + pythonImportsCheck = [ "logging_journald" ]; meta = with lib; { description = "Logging handler for writing logs to the journald"; diff --git a/pkgs/development/python-modules/logi-circle/default.nix b/pkgs/development/python-modules/logi-circle/default.nix index 51d66dd40672..d8209f920399 100644 --- a/pkgs/development/python-modules/logi-circle/default.nix +++ b/pkgs/development/python-modules/logi-circle/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiohttp -, python-slugify -, pytz -, aresponses -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiohttp, + python-slugify, + pytz, + aresponses, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/logical-unification/default.nix b/pkgs/development/python-modules/logical-unification/default.nix index adc6141f11db..9c47c3b6a466 100644 --- a/pkgs/development/python-modules/logical-unification/default.nix +++ b/pkgs/development/python-modules/logical-unification/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, toolz -, multipledispatch -, py -, pytestCheckHook -, pytest-html -, pytest-benchmark +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + toolz, + multipledispatch, + py, + pytestCheckHook, + pytest-html, + pytest-benchmark, }: buildPythonPackage rec { @@ -31,7 +32,7 @@ buildPythonPackage rec { py pytestCheckHook pytest-html - pytest-benchmark # Needed for the `--benchmark-skip` flag + pytest-benchmark # Needed for the `--benchmark-skip` flag ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ diff --git a/pkgs/development/python-modules/logilab/constraint.nix b/pkgs/development/python-modules/logilab/constraint.nix index 3d6b2cc7897b..419ef5b4d1c7 100644 --- a/pkgs/development/python-modules/logilab/constraint.nix +++ b/pkgs/development/python-modules/logilab/constraint.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-metadata -, logilab-common -, pip -, six -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-metadata, + logilab-common, + pip, + six, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # avoid ModuleNotFoundError: No module named 'logilab.common' due to namespace @@ -54,4 +53,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ ]; }; } - diff --git a/pkgs/development/python-modules/logmatic-python/default.nix b/pkgs/development/python-modules/logmatic-python/default.nix index 24416041f7b2..1dc8ce7d024c 100644 --- a/pkgs/development/python-modules/logmatic-python/default.nix +++ b/pkgs/development/python-modules/logmatic-python/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python-json-logger -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-json-logger, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-UYKm00KhXnPQDkKJVm7s0gOwZ3GNY07O0oKbzPhAdVE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - python-json-logger - ]; + propagatedBuildInputs = [ python-json-logger ]; # Only functional tests, no unit tests doCheck = false; - pythonImportsCheck = [ - "logmatic" - ]; + pythonImportsCheck = [ "logmatic" ]; meta = with lib; { description = "Python helpers to send logs to Logmatic.io"; diff --git a/pkgs/development/python-modules/logster/default.nix b/pkgs/development/python-modules/logster/default.nix index 2bc6981955b1..19fa5b64b9ed 100644 --- a/pkgs/development/python-modules/logster/default.nix +++ b/pkgs/development/python-modules/logster/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pygtail }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pygtail, +}: buildPythonPackage rec { pname = "logster"; diff --git a/pkgs/development/python-modules/loguru/default.nix b/pkgs/development/python-modules/loguru/default.nix index 93e9d8937bd8..b1a980782c74 100644 --- a/pkgs/development/python-modules/loguru/default.nix +++ b/pkgs/development/python-modules/loguru/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, colorama -, fetchFromGitHub -, freezegun -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + colorama, + fetchFromGitHub, + freezegun, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,30 +31,31 @@ buildPythonPackage rec { disabledTestPaths = [ "tests/test_type_hinting.py" # avoid dependency on mypy - ] ++ lib.optionals stdenv.isDarwin [ - "tests/test_multiprocessing.py" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "tests/test_multiprocessing.py" ]; - disabledTests = [ - # fails on some machine configurations - # AssertionError: assert '' != '' - "test_file_buffering" - ] ++ lib.optionals stdenv.isDarwin [ - "test_rotation_and_retention" - "test_rotation_and_retention_timed_file" - "test_renaming" - "test_await_complete_inheritance" - ]; + disabledTests = + [ + # fails on some machine configurations + # AssertionError: assert '' != '' + "test_file_buffering" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_rotation_and_retention" + "test_rotation_and_retention_timed_file" + "test_renaming" + "test_await_complete_inheritance" + ]; - pythonImportsCheck = [ - "loguru" - ]; + pythonImportsCheck = [ "loguru" ]; meta = with lib; { description = "Python logging made (stupidly) simple"; homepage = "https://github.com/Delgan/loguru"; changelog = "https://github.com/delgan/loguru/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ jakewaksbaum rmcgibbo ]; + maintainers = with maintainers; [ + jakewaksbaum + rmcgibbo + ]; }; } diff --git a/pkgs/development/python-modules/logutils/default.nix b/pkgs/development/python-modules/logutils/default.nix index b46ff4b13442..b79e6af6c978 100644 --- a/pkgs/development/python-modules/logutils/default.nix +++ b/pkgs/development/python-modules/logutils/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, redis -, redis-server -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + redis, + redis-server, + setuptools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail "'redis-server'" "'${redis-server}/bin/redis-server'" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pytestCheckHook @@ -47,9 +46,7 @@ buildPythonPackage rec { "tests/test_redis.py" ]; - pythonImportsCheck = [ - "logutils" - ]; + pythonImportsCheck = [ "logutils" ]; meta = with lib; { description = "Logging utilities"; diff --git a/pkgs/development/python-modules/logzero/default.nix b/pkgs/development/python-modules/logzero/default.nix index fa35ca73b51e..de6403d1eabd 100644 --- a/pkgs/development/python-modules/logzero/default.nix +++ b/pkgs/development/python-modules/logzero/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "logzero"; diff --git a/pkgs/development/python-modules/lomond/default.nix b/pkgs/development/python-modules/lomond/default.nix index 46d362d7a848..58e560c43e6d 100644 --- a/pkgs/development/python-modules/lomond/default.nix +++ b/pkgs/development/python-modules/lomond/default.nix @@ -1,17 +1,18 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pythonAtLeast -, pythonOlder +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pythonAtLeast, + pythonOlder, -# runtime -, six + # runtime + six, -# tests -, freezegun -, pytest-mock -, pytestCheckHook -, tornado_4 + # tests + freezegun, + pytest-mock, + pytestCheckHook, + tornado_4, }: buildPythonPackage rec { @@ -31,26 +32,24 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ freezegun pytest-mock pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.10") [ - tornado_4 - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ tornado_4 ]; - disabledTests = [ - # Makes HTTP requests - "test_proxy" - "test_live" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/wildfoundry/dataplicity-lomond/issues/91 - "test_that_on_ping_responds_with_pong" - ]; + disabledTests = + [ + # Makes HTTP requests + "test_proxy" + "test_live" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/wildfoundry/dataplicity-lomond/issues/91 + "test_that_on_ping_responds_with_pong" + ]; disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [ # requires tornado_4, which is not compatible with python3.10 diff --git a/pkgs/development/python-modules/loqedapi/default.nix b/pkgs/development/python-modules/loqedapi/default.nix index 96370c07aac4..5aabc6791057 100644 --- a/pkgs/development/python-modules/loqedapi/default.nix +++ b/pkgs/development/python-modules/loqedapi/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, wheel +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "loqedAPI" - ]; + pythonImportsCheck = [ "loqedAPI" ]; meta = with lib; { description = "Module to interact with the Loqed Smart Door Lock API"; diff --git a/pkgs/development/python-modules/lpc-checksum/default.nix b/pkgs/development/python-modules/lpc-checksum/default.nix index 9a0249980360..810878cec585 100644 --- a/pkgs/development/python-modules/lpc-checksum/default.nix +++ b/pkgs/development/python-modules/lpc-checksum/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, intelhex +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + intelhex, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { pytestCheckHook ]; - propagatedBuildInputs = [ - intelhex - ]; + propagatedBuildInputs = [ intelhex ]; pythonImportsCheck = [ "lpc_checksum" ]; diff --git a/pkgs/development/python-modules/lrcalc-python/default.nix b/pkgs/development/python-modules/lrcalc-python/default.nix index f425ec23775a..8cbe109c2edb 100644 --- a/pkgs/development/python-modules/lrcalc-python/default.nix +++ b/pkgs/development/python-modules/lrcalc-python/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, cython -, pkg-config -, lrcalc +{ + lib, + fetchPypi, + buildPythonPackage, + cython, + pkg-config, + lrcalc, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { sha256 = "e3a0509aeda487b412b391a52e817ca36b5c063a8305e09fd54d53259dd6aaa9"; }; - nativeBuildInputs = [ cython pkg-config ]; + nativeBuildInputs = [ + cython + pkg-config + ]; buildInputs = [ lrcalc ]; diff --git a/pkgs/development/python-modules/lru-dict/default.nix b/pkgs/development/python-modules/lru-dict/default.nix index 801d68dccb66..96c9c57c91fb 100644 --- a/pkgs/development/python-modules/lru-dict/default.nix +++ b/pkgs/development/python-modules/lru-dict/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: let @@ -21,17 +22,11 @@ buildPythonPackage { hash = "sha256-VP0ZZta9H83ngVlsuGBoIU7e6/8dsTos6hEHnj/Qe2s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "lru" - ]; + pythonImportsCheck = [ "lru" ]; meta = with lib; { description = "Fast and memory efficient LRU cache for Python"; diff --git a/pkgs/development/python-modules/lsprotocol/default.nix b/pkgs/development/python-modules/lsprotocol/default.nix index c8c058f47c68..8e23e7b92fda 100644 --- a/pkgs/development/python-modules/lsprotocol/default.nix +++ b/pkgs/development/python-modules/lsprotocol/default.nix @@ -1,15 +1,16 @@ -{ lib -, attrs -, buildPythonPackage -, cattrs -, fetchFromGitHub -, flit-core -, importlib-resources -, jsonschema -, nox -, pyhamcrest -, pytest -, pythonOlder +{ + lib, + attrs, + buildPythonPackage, + cattrs, + fetchFromGitHub, + flit-core, + importlib-resources, + jsonschema, + nox, + pyhamcrest, + pytest, + pythonOlder, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { cattrs ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkInputs = [ importlib-resources @@ -63,15 +62,16 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "lsprotocol" - ]; + pythonImportsCheck = [ "lsprotocol" ]; meta = with lib; { description = "Python implementation of the Language Server Protocol"; homepage = "https://github.com/microsoft/lsprotocol"; changelog = "https://github.com/microsoft/lsprotocol/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ doronbehar fab ]; + maintainers = with maintainers; [ + doronbehar + fab + ]; }; } diff --git a/pkgs/development/python-modules/ltpycld2/default.nix b/pkgs/development/python-modules/ltpycld2/default.nix index b8e19ae49990..7635b631170c 100644 --- a/pkgs/development/python-modules/ltpycld2/default.nix +++ b/pkgs/development/python-modules/ltpycld2/default.nix @@ -1,7 +1,8 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lttng/default.nix b/pkgs/development/python-modules/lttng/default.nix index 9cdb580fc474..2c41fa2c35ec 100644 --- a/pkgs/development/python-modules/lttng/default.nix +++ b/pkgs/development/python-modules/lttng/default.nix @@ -1,29 +1,39 @@ -{ toPythonModule -, python -, lttng-tools -, swig2 +{ + toPythonModule, + python, + lttng-tools, + swig2, }: -toPythonModule (lttng-tools.overrideAttrs ({ nativeBuildInputs ? [ ], configureFlags ? [ ], ... }: { - pname = "lttng"; +toPythonModule ( + lttng-tools.overrideAttrs ( + { + nativeBuildInputs ? [ ], + configureFlags ? [ ], + ... + }: + { + pname = "lttng"; - nativeBuildInputs = nativeBuildInputs ++ [ swig2 ]; + nativeBuildInputs = nativeBuildInputs ++ [ swig2 ]; - configureFlags = configureFlags ++ [ - "--enable-python-bindings" - # "--disable-bin-lttng" # The Python bindings depend on liblttng-ctl, which is only built when the binary is enabled. - "--disable-bin-lttng-consumerd" - "--disable-bin-lttng-crash" - "--disable-bin-lttng-relayd" - "--disable-bin-lttng-sessiond" - # "--disable-extras" # The Python bindings are an extra. - "--disable-man-pages" - ]; + configureFlags = configureFlags ++ [ + "--enable-python-bindings" + # "--disable-bin-lttng" # The Python bindings depend on liblttng-ctl, which is only built when the binary is enabled. + "--disable-bin-lttng-consumerd" + "--disable-bin-lttng-crash" + "--disable-bin-lttng-relayd" + "--disable-bin-lttng-sessiond" + # "--disable-extras" # The Python bindings are an extra. + "--disable-man-pages" + ]; - # Nix treats nativeBuildInputs specially for cross-compilation, but in this - # case, cross-compilation is accounted for explicitly. Using the variables - # ensures that the platform setup isn't messed with further. It also allows - # regular Python to be added in the future if it is ever needed. - PYTHON = "${python.pythonOnBuildForHost}/bin/python"; - PYTHON_CONFIG = "${python.pythonOnBuildForHost}/bin/python-config"; -})) + # Nix treats nativeBuildInputs specially for cross-compilation, but in this + # case, cross-compilation is accounted for explicitly. Using the variables + # ensures that the platform setup isn't messed with further. It also allows + # regular Python to be added in the future if it is ever needed. + PYTHON = "${python.pythonOnBuildForHost}/bin/python"; + PYTHON_CONFIG = "${python.pythonOnBuildForHost}/bin/python-config"; + } + ) +) diff --git a/pkgs/development/python-modules/luddite/default.nix b/pkgs/development/python-modules/luddite/default.nix index 4059288da674..c7db0497e0cc 100644 --- a/pkgs/development/python-modules/luddite/default.nix +++ b/pkgs/development/python-modules/luddite/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, packaging -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + packaging, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { --replace "--disable-socket" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; - pythonImportsCheck = [ - "luddite" - ]; + pythonImportsCheck = [ "luddite" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/luftdaten/default.nix b/pkgs/development/python-modules/luftdaten/default.nix index b87771380a8d..213db1480c14 100644 --- a/pkgs/development/python-modules/luftdaten/default.nix +++ b/pkgs/development/python-modules/luftdaten/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, httpx -, pytest-asyncio -, pytest-httpx -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + httpx, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-nOhJKlUJ678DJ/ilyRHaiQ2fGfoCl+x6l9lsczVLAGw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; nativeCheckInputs = [ pytest-asyncio @@ -43,6 +40,9 @@ buildPythonPackage rec { description = "Python API for interacting with luftdaten.info"; homepage = "https://github.com/home-assistant-ecosystem/python-luftdaten"; license = licenses.mit; - maintainers = with maintainers; [ dotlambda fab ]; + maintainers = with maintainers; [ + dotlambda + fab + ]; }; } diff --git a/pkgs/development/python-modules/luhn/default.nix b/pkgs/development/python-modules/luhn/default.nix index e0e0393ff1d3..b0407235fe0a 100644 --- a/pkgs/development/python-modules/luhn/default.nix +++ b/pkgs/development/python-modules/luhn/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,17 +17,11 @@ buildPythonPackage rec { hash = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; - pythonImportsCheck = [ - "luhn" - ]; + pythonImportsCheck = [ "luhn" ]; meta = with lib; { description = "Python module for generate and verify Luhn check digits"; diff --git a/pkgs/development/python-modules/lunarcalendar/default.nix b/pkgs/development/python-modules/lunarcalendar/default.nix index 03a94e5e4cdc..5baf5accd533 100644 --- a/pkgs/development/python-modules/lunarcalendar/default.nix +++ b/pkgs/development/python-modules/lunarcalendar/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, python-dateutil -, ephem -, pytz + python-dateutil, + ephem, + pytz, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lupa/default.nix b/pkgs/development/python-modules/lupa/default.nix index 4b879a90966f..8029442c5bc3 100644 --- a/pkgs/development/python-modules/lupa/default.nix +++ b/pkgs/development/python-modules/lupa/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { setuptools ]; - pythonImportsCheck = [ - "lupa" - ]; + pythonImportsCheck = [ "lupa" ]; meta = with lib; { description = "Lua in Python"; diff --git a/pkgs/development/python-modules/lupupy/default.nix b/pkgs/development/python-modules/lupupy/default.nix index 946d79da85dc..424e7a583ff0 100644 --- a/pkgs/development/python-modules/lupupy/default.nix +++ b/pkgs/development/python-modules/lupupy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, colorlog -, pyyaml -, fetchPypi -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + colorlog, + pyyaml, + fetchPypi, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-A92Jk6WlRKep3dkbqLiYYHklEh0pyncipRW6swq0mvo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ colorlog @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "lupupy" - ]; + pythonImportsCheck = [ "lupupy" ]; meta = with lib; { description = "Python module to control Lupusec alarm control panels"; diff --git a/pkgs/development/python-modules/luqum/default.nix b/pkgs/development/python-modules/luqum/default.nix index afad9262c7b3..c92f1cc8f1b6 100644 --- a/pkgs/development/python-modules/luqum/default.nix +++ b/pkgs/development/python-modules/luqum/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, elastic-transport -, elasticsearch-dsl -, fetchFromGitHub -, ply -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + elastic-transport, + elasticsearch-dsl, + fetchFromGitHub, + ply, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { --replace '--doctest-modules --doctest-glob="test_*.rst" --cov=luqum --cov-branch --cov-report html --no-cov-on-fail' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - ply - ]; + propagatedBuildInputs = [ ply ]; nativeCheckInputs = [ elastic-transport @@ -42,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "luqum" - ]; + pythonImportsCheck = [ "luqum" ]; disabledTestPaths = [ # Tests require an Elasticsearch instance diff --git a/pkgs/development/python-modules/luxor/default.nix b/pkgs/development/python-modules/luxor/default.nix index 1bd7a7bbc018..dbe1881e1833 100644 --- a/pkgs/development/python-modules/luxor/default.nix +++ b/pkgs/development/python-modules/luxor/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytest-aiohttp -, pytestCheckHook +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytest-aiohttp, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { sha256 = "GIwVEOKZAudTu2M3OM4LFVR8e22q52m/AN0anskdmWQ="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-aiohttp pytestCheckHook ]; - pythonImportsCheck = [ - "luxor" - ]; + pythonImportsCheck = [ "luxor" ]; meta = with lib; { description = "Python module to control FX Luminaire controllers"; diff --git a/pkgs/development/python-modules/luxtronik/default.nix b/pkgs/development/python-modules/luxtronik/default.nix index 14e0cece25c4..a0e72f975ffd 100644 --- a/pkgs/development/python-modules/luxtronik/default.nix +++ b/pkgs/development/python-modules/luxtronik/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "luxtronik" - ]; + pythonImportsCheck = [ "luxtronik" ]; meta = with lib; { description = "Python library to interact with Luxtronik heatpump controllers"; diff --git a/pkgs/development/python-modules/lxml-stubs/default.nix b/pkgs/development/python-modules/lxml-stubs/default.nix index abb0d17f3918..60d2baf7c685 100644 --- a/pkgs/development/python-modules/lxml-stubs/default.nix +++ b/pkgs/development/python-modules/lxml-stubs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, pytest-mypy-plugins -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + pytest-mypy-plugins, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-OwaPnCr0vylhdAvMMUfGV6DjZEh7Q71pgMOt66urg5I="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - lxml - ]; + propagatedBuildInputs = [ lxml ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/lxml/default.nix b/pkgs/development/python-modules/lxml/default.nix index d1d7036eda2e..44078adc507e 100644 --- a/pkgs/development/python-modules/lxml/default.nix +++ b/pkgs/development/python-modules/lxml/default.nix @@ -1,17 +1,18 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cython -, setuptools + # build-system + cython, + setuptools, -# native dependencies -, libxml2 -, libxslt -, zlib -, xcodebuild + # native dependencies + libxml2, + libxslt, + zlib, + xcodebuild, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { libxslt.dev cython setuptools - ] ++ lib.optionals stdenv.isDarwin [ - xcodebuild - ]; + ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ]; buildInputs = [ libxml2 libxslt diff --git a/pkgs/development/python-modules/lyricwikia/default.nix b/pkgs/development/python-modules/lyricwikia/default.nix index 05360af054fc..0a19c22ddf8e 100644 --- a/pkgs/development/python-modules/lyricwikia/default.nix +++ b/pkgs/development/python-modules/lyricwikia/default.nix @@ -1,12 +1,13 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, responses -, six +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + responses, + six, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "lyricwikia" - ]; + pythonImportsCheck = [ "lyricwikia" ]; disabledTests = [ # Test requires network access diff --git a/pkgs/development/python-modules/lz4/default.nix b/pkgs/development/python-modules/lz4/default.nix index cf1ac6294499..c37eeab5cc12 100644 --- a/pkgs/development/python-modules/lz4/default.nix +++ b/pkgs/development/python-modules/lz4/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pkgconfig -, psutil -, pytestCheckHook -, python -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pkgconfig, + psutil, + pytestCheckHook, + python, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/lzallright/default.nix b/pkgs/development/python-modules/lzallright/default.nix index a82a7980c70f..d6dbde3cc457 100644 --- a/pkgs/development/python-modules/lzallright/default.nix +++ b/pkgs/development/python-modules/lzallright/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, callPackage -, fetchFromGitHub -, rustPlatform -, libiconv +{ + lib, + stdenv, + buildPythonPackage, + callPackage, + fetchFromGitHub, + rustPlatform, + libiconv, }: buildPythonPackage rec { @@ -26,7 +27,10 @@ buildPythonPackage rec { format = "pyproject"; - nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; + nativeBuildInputs = with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; diff --git a/pkgs/development/python-modules/lzallright/tests.nix b/pkgs/development/python-modules/lzallright/tests.nix index 1093fc3c79e9..f28dd124278a 100644 --- a/pkgs/development/python-modules/lzallright/tests.nix +++ b/pkgs/development/python-modules/lzallright/tests.nix @@ -1,4 +1,8 @@ -{ lzallright, buildPythonPackage, pytestCheckHook }: +{ + lzallright, + buildPythonPackage, + pytestCheckHook, +}: buildPythonPackage { inherit (lzallright) version src; diff --git a/pkgs/development/python-modules/lzstring/default.nix b/pkgs/development/python-modules/lzstring/default.nix index 02602f1f8c20..99ae373d063b 100644 --- a/pkgs/development/python-modules/lzstring/default.nix +++ b/pkgs/development/python-modules/lzstring/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future +{ + lib, + buildPythonPackage, + fetchPypi, + future, }: buildPythonPackage rec { - pname = "lzstring"; + pname = "lzstring"; version = "1.0.4"; format = "setuptools"; @@ -18,8 +19,8 @@ buildPythonPackage rec { meta = { description = "lz-string for python"; - homepage = "https://github.com/gkovacs/lz-string-python"; - license = lib.licenses.mit; + homepage = "https://github.com/gkovacs/lz-string-python"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ obadz ]; }; } diff --git a/pkgs/development/python-modules/m2r/default.nix b/pkgs/development/python-modules/m2r/default.nix index ab94a0b5e262..28131581936f 100644 --- a/pkgs/development/python-modules/m2r/default.nix +++ b/pkgs/development/python-modules/m2r/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, docutils -, mistune -, pygments +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + docutils, + mistune, + pygments, }: buildPythonPackage rec { @@ -31,7 +32,10 @@ buildPythonPackage rec { --replace "optional" "positional" ''; - propagatedBuildInputs = [ mistune docutils ]; + propagatedBuildInputs = [ + mistune + docutils + ]; nativeCheckInputs = [ pygments ]; diff --git a/pkgs/development/python-modules/m3u8/default.nix b/pkgs/development/python-modules/m3u8/default.nix index 6dab2c26ad3c..d1f564a0c534 100644 --- a/pkgs/development/python-modules/m3u8/default.nix +++ b/pkgs/development/python-modules/m3u8/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, iso8601 -, bottle -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + iso8601, + bottle, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-vH5y/fk9dW8w54U3o+70enbTOubV4V0/NVbSSqOY9rQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - iso8601 - ]; + dependencies = [ iso8601 ]; nativeCheckInputs = [ bottle @@ -43,9 +40,7 @@ buildPythonPackage rec { "test_raise_timeout_exception_if_timeout_happens_when_loading_from_uri" ]; - pythonImportsCheck = [ - "m3u8" - ]; + pythonImportsCheck = [ "m3u8" ]; meta = with lib; { description = "Python m3u8 parser"; diff --git a/pkgs/development/python-modules/mac-alias/default.nix b/pkgs/development/python-modules/mac-alias/default.nix index 913ea42403ed..8cdb98fc6c08 100644 --- a/pkgs/development/python-modules/mac-alias/default.nix +++ b/pkgs/development/python-modules/mac-alias/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-yZxyjrUS6VXBHxpiA6D/qIg7JlSeiv5ogEAxql2oVrc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # pypi package does not include tests; # tests anyway require admin privileges to succeed diff --git a/pkgs/development/python-modules/mac-vendor-lookup/default.nix b/pkgs/development/python-modules/mac-vendor-lookup/default.nix index dbbd16dd6ea2..e5cd0d793b6a 100644 --- a/pkgs/development/python-modules/mac-vendor-lookup/default.nix +++ b/pkgs/development/python-modules/mac-vendor-lookup/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiofiles -, aiohttp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiofiles, + aiohttp, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { doCheck = false; # no tests - pythonImportsCheck = [ - "mac_vendor_lookup" - ]; + pythonImportsCheck = [ "mac_vendor_lookup" ]; meta = with lib; { description = "Find the vendor for a given MAC address"; diff --git a/pkgs/development/python-modules/macaddress/default.nix b/pkgs/development/python-modules/macaddress/default.nix index 2849506671b2..feb4ad1865dc 100644 --- a/pkgs/development/python-modules/macaddress/default.nix +++ b/pkgs/development/python-modules/macaddress/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, hypothesis -, reprshed +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + hypothesis, + reprshed, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-2eD5Ui8kUduKLJ0mSiwaz7TQSeF1+2ASirp70V/8+EA="; }; - pythonImportsCheck = [ - "macaddress" - ]; + pythonImportsCheck = [ "macaddress" ]; nativeCheckInputs = [ pytestCheckHook @@ -28,9 +27,7 @@ buildPythonPackage rec { reprshed ]; - pytestFlagsArray = [ - "$src/test.py" - ]; + pytestFlagsArray = [ "$src/test.py" ]; meta = with lib; { homepage = "https://github.com/mentalisttraceur/python-macaddress"; diff --git a/pkgs/development/python-modules/macfsevents/default.nix b/pkgs/development/python-modules/macfsevents/default.nix index db0750e1957a..065713f2f05d 100644 --- a/pkgs/development/python-modules/macfsevents/default.nix +++ b/pkgs/development/python-modules/macfsevents/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, CoreFoundation -, CoreServices +{ + lib, + buildPythonPackage, + fetchPypi, + CoreFoundation, + CoreServices, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "sha256-v3KD8dUXdkzNyBlbIWMdu6wcUGuSC/mo6ilWsxJ2Ucs="; }; - buildInputs = [ CoreFoundation CoreServices ]; + buildInputs = [ + CoreFoundation + CoreServices + ]; # Some tests fail under nix build directory doCheck = false; diff --git a/pkgs/development/python-modules/macropy/default.nix b/pkgs/development/python-modules/macropy/default.nix index 051ce068b317..d87d2de44bb5 100644 --- a/pkgs/development/python-modules/macropy/default.nix +++ b/pkgs/development/python-modules/macropy/default.nix @@ -1,11 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, isPy27 -, pythonAtLeast -, pinqSupport ? false, sqlalchemy -, pyxlSupport ? false, pyxl3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + isPy27, + pythonAtLeast, + pinqSupport ? false, + sqlalchemy, + pyxlSupport ? false, + pyxl3, }: buildPythonPackage rec { @@ -23,9 +26,8 @@ buildPythonPackage rec { }; # js_snippets extra only works with python2 - propagatedBuildInputs = [ ] - ++ lib.optional pinqSupport sqlalchemy - ++ lib.optional pyxlSupport pyxl3; + propagatedBuildInputs = + [ ] ++ lib.optional pinqSupport sqlalchemy ++ lib.optional pyxlSupport pyxl3; checkPhase = '' ${python.interpreter} run_tests.py diff --git a/pkgs/development/python-modules/maestral/default.nix b/pkgs/development/python-modules/maestral/default.nix index b58a764ece10..6f1aa28e9f0c 100644 --- a/pkgs/development/python-modules/maestral/default.nix +++ b/pkgs/development/python-modules/maestral/default.nix @@ -1,32 +1,33 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, makePythonPath -, pythonOlder -, python -, click -, dbus-python -, desktop-notifier -, dropbox -, fasteners -, importlib-metadata -, keyring -, keyrings-alt -, packaging -, pathspec -, pyro5 -, requests -, rich -, rubicon-objc -, setuptools -, survey -, typing-extensions -, watchdog -, xattr -, fetchpatch -, pytestCheckHook -, nixosTests +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + makePythonPath, + pythonOlder, + python, + click, + dbus-python, + desktop-notifier, + dropbox, + fasteners, + importlib-metadata, + keyring, + keyrings-alt, + packaging, + pathspec, + pyro5, + requests, + rich, + rubicon-objc, + setuptools, + survey, + typing-extensions, + watchdog, + xattr, + fetchpatch, + pytestCheckHook, + nixosTests, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { hash = "sha256-h7RDaCVICi3wl6/b1s01cINhFirDOpOXoxTPZIBH3jE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ click @@ -66,9 +65,7 @@ buildPythonPackage rec { typing-extensions watchdog xattr - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - rubicon-objc - ]; + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ rubicon-objc ]; patches = [ (fetchpatch { @@ -84,9 +81,7 @@ buildPythonPackage rec { "--prefix PYTHONPATH : $out/${python.sitePackages}" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # ModuleNotFoundError: No module named '_watchdog_fsevents' doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64); @@ -95,39 +90,39 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - disabledTests = [ - # We don't want to benchmark - "test_performance" - # Requires systemd - "test_autostart" - # Requires network access - "test_check_for_updates" - # Tries to look at /usr - "test_filestatus" - "test_path_exists_case_insensitive" - "test_cased_path_candidates" - # AssertionError - "test_locking_multiprocess" - # OSError: [Errno 95] Operation not supported - "test_move_preserves_xattrs" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # maetral daemon does not start but worked in real environment - "test_catching_non_ignored_events" - "test_connection" - "test_event_handler" - "test_fs_ignore_tree_creation" - "test_lifecycle" - "test_notify_level" - "test_notify_snooze" - "test_receiving_events" - "test_remote_exceptions" - "test_start_already_running" - "test_stop" - ]; + disabledTests = + [ + # We don't want to benchmark + "test_performance" + # Requires systemd + "test_autostart" + # Requires network access + "test_check_for_updates" + # Tries to look at /usr + "test_filestatus" + "test_path_exists_case_insensitive" + "test_cased_path_candidates" + # AssertionError + "test_locking_multiprocess" + # OSError: [Errno 95] Operation not supported + "test_move_preserves_xattrs" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # maetral daemon does not start but worked in real environment + "test_catching_non_ignored_events" + "test_connection" + "test_event_handler" + "test_fs_ignore_tree_creation" + "test_lifecycle" + "test_notify_level" + "test_notify_snooze" + "test_receiving_events" + "test_remote_exceptions" + "test_start_already_running" + "test_stop" + ]; - pythonImportsCheck = [ - "maestral" - ]; + pythonImportsCheck = [ "maestral" ]; passthru.tests.maestral = nixosTests.maestral; @@ -137,6 +132,10 @@ buildPythonPackage rec { homepage = "https://maestral.app"; changelog = "https://github.com/samschott/maestral/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ natsukium peterhoeg sfrijters ]; + maintainers = with maintainers; [ + natsukium + peterhoeg + sfrijters + ]; }; } diff --git a/pkgs/development/python-modules/magic-filter/default.nix b/pkgs/development/python-modules/magic-filter/default.nix index 8b4cc8068965..fa963525c6b8 100644 --- a/pkgs/development/python-modules/magic-filter/default.nix +++ b/pkgs/development/python-modules/magic-filter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, hatchling +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + hatchling, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { --replace '"1"' '"${version}"' ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "magic_filter" ]; diff --git a/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix b/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix index d74be9e45f93..af4cb08de9e0 100644 --- a/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix +++ b/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, fetchpatch -, setuptools -, six -, attrs -, twisted -, autobahn -, treq -, mock -, pythonOlder -, pythonAtLeast -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + fetchpatch, + setuptools, + six, + attrs, + twisted, + autobahn, + treq, + mock, + pythonOlder, + pythonAtLeast, + pytestCheckHook, }: buildPythonPackage rec { @@ -44,8 +45,7 @@ buildPythonPackage rec { six twisted autobahn - ] ++ autobahn.optional-dependencies.twisted - ++ twisted.optional-dependencies.tls; + ] ++ autobahn.optional-dependencies.twisted ++ twisted.optional-dependencies.tls; pythonImportsCheck = [ "wormhole_mailbox_server" ]; diff --git a/pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix b/pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix index d98080545d35..39b7d93ce0f2 100644 --- a/pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix +++ b/pkgs/development/python-modules/magic-wormhole-transit-relay/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, autobahn -, mock -, twisted -, pythonOlder -, pythonAtLeast -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + autobahn, + mock, + twisted, + pythonOlder, + pythonAtLeast, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,11 +25,18 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ autobahn twisted ]; + propagatedBuildInputs = [ + autobahn + twisted + ]; pythonImportsCheck = [ "wormhole_transit_relay" ]; - nativeCheckInputs = [ pytestCheckHook mock twisted ]; + nativeCheckInputs = [ + pytestCheckHook + mock + twisted + ]; meta = { description = "Transit Relay server for Magic-Wormhole"; diff --git a/pkgs/development/python-modules/magic-wormhole/default.nix b/pkgs/development/python-modules/magic-wormhole/default.nix index d1bf85f0530a..528b71063274 100644 --- a/pkgs/development/python-modules/magic-wormhole/default.nix +++ b/pkgs/development/python-modules/magic-wormhole/default.nix @@ -1,36 +1,37 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, spake2 -, pynacl -, six -, attrs -, twisted -, autobahn -, automat -, tqdm -, click -, humanize -, iterable-io -, txtorcon -, zipstream-ng + # dependencies + spake2, + pynacl, + six, + attrs, + twisted, + autobahn, + automat, + tqdm, + click, + humanize, + iterable-io, + txtorcon, + zipstream-ng, -# optional-dependencies -, noiseprotocol + # optional-dependencies + noiseprotocol, -# tests -, nettools -, unixtools -, mock -, magic-wormhole-transit-relay -, magic-wormhole-mailbox-server -, pytestCheckHook + # tests + nettools, + unixtools, + mock, + magic-wormhole-transit-relay, + magic-wormhole-mailbox-server, + pytestCheckHook, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { hash = "sha256-AG0jn4i/98N7wu/2CgBOJj+vklj3J5GS0Gugyc7WsIA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ spake2 @@ -61,14 +60,10 @@ buildPythonPackage rec { iterable-io txtorcon zipstream-ng - ] - ++ autobahn.optional-dependencies.twisted - ++ twisted.optional-dependencies.tls; + ] ++ autobahn.optional-dependencies.twisted ++ twisted.optional-dependencies.tls; passthru.optional-dependencies = { - dilation = [ - noiseprotocol - ]; + dilation = [ noiseprotocol ]; }; nativeCheckInputs = [ @@ -76,9 +71,7 @@ buildPythonPackage rec { magic-wormhole-transit-relay magic-wormhole-mailbox-server pytestCheckHook - ] - ++ passthru.optional-dependencies.dilation - ++ lib.optionals stdenv.isDarwin [ unixtools.locale ]; + ] ++ passthru.optional-dependencies.dilation ++ lib.optionals stdenv.isDarwin [ unixtools.locale ]; disabledTests = lib.optionals stdenv.isDarwin [ # These tests doesn't work within Darwin's sandbox diff --git a/pkgs/development/python-modules/magic/default.nix b/pkgs/development/python-modules/magic/default.nix index 45fd740e2e89..5921a80ce11b 100644 --- a/pkgs/development/python-modules/magic/default.nix +++ b/pkgs/development/python-modules/magic/default.nix @@ -1,6 +1,8 @@ -{ lib, stdenv -, buildPythonPackage -, pkgs +{ + lib, + stdenv, + buildPythonPackage, + pkgs, }: buildPythonPackage { @@ -24,5 +26,4 @@ buildPythonPackage { homepage = "http://www.darwinsys.com/file/"; license = licenses.lgpl2; }; - } diff --git a/pkgs/development/python-modules/magicgui/default.nix b/pkgs/development/python-modules/magicgui/default.nix index 2e8f1b529a14..06476b9d9243 100644 --- a/pkgs/development/python-modules/magicgui/default.nix +++ b/pkgs/development/python-modules/magicgui/default.nix @@ -1,15 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, pytestCheckHook -, typing-extensions -, qtpy -, pyside2 -, psygnal -, docstring-parser -, napari # a reverse-dependency, for tests -}: buildPythonPackage rec { +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + pytestCheckHook, + typing-extensions, + qtpy, + pyside2, + psygnal, + docstring-parser, + napari, # a reverse-dependency, for tests +}: +buildPythonPackage rec { pname = "magicgui"; version = "0.5.1"; @@ -23,12 +25,20 @@ }; nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ typing-extensions qtpy pyside2 psygnal docstring-parser ]; + propagatedBuildInputs = [ + typing-extensions + qtpy + pyside2 + psygnal + docstring-parser + ]; nativeCheckInputs = [ pytestCheckHook ]; doCheck = false; # Reports "Fatal Python error" - passthru.tests = { inherit napari; }; + passthru.tests = { + inherit napari; + }; meta = with lib; { description = "Build GUIs from python functions, using magic. (napari/magicgui)"; diff --git a/pkgs/development/python-modules/magika/default.nix b/pkgs/development/python-modules/magika/default.nix index f2a7cbd85a11..0c670a813741 100644 --- a/pkgs/development/python-modules/magika/default.nix +++ b/pkgs/development/python-modules/magika/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, magika -, numpy -, onnxruntime -, poetry-core -, python-dotenv -, pythonOlder -, stdenv -, tabulate -, testers -, tqdm +{ + lib, + buildPythonPackage, + click, + fetchPypi, + magika, + numpy, + onnxruntime, + poetry-core, + python-dotenv, + pythonOlder, + stdenv, + tabulate, + testers, + tqdm, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-Q9wRU6FjcyciWmJqFVDAo5Wh1F6jPsH11GubCAI4vuA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/mahotas/default.nix b/pkgs/development/python-modules/mahotas/default.nix index 2c5f449c139f..419c1c572de1 100644 --- a/pkgs/development/python-modules/mahotas/default.nix +++ b/pkgs/development/python-modules/mahotas/default.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pillow -, scipy -, numpy -, pytestCheckHook -, imread -, lib -, stdenv +{ + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pillow, + scipy, + numpy, + pytestCheckHook, + imread, + lib, + stdenv, }: buildPythonPackage rec { @@ -31,11 +32,8 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - # mahotas/_morph.cpp:864:10: error: no member named 'random_shuffle' in namespace 'std' - env = lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = "-std=c++14"; - }; + env = lib.optionalAttrs stdenv.cc.isClang { NIX_CFLAGS_COMPILE = "-std=c++14"; }; # tests must be run in the build directory preCheck = '' @@ -50,9 +48,7 @@ buildPythonPackage rec { "test_haralick3d" ]; - pythonImportsCheck = [ - "mahotas" - ]; + pythonImportsCheck = [ "mahotas" ]; disabled = stdenv.isi686; # Failing tests diff --git a/pkgs/development/python-modules/mail-parser/default.nix b/pkgs/development/python-modules/mail-parser/default.nix index 5364fd25c21f..fe5d25411fa4 100644 --- a/pkgs/development/python-modules/mail-parser/default.nix +++ b/pkgs/development/python-modules/mail-parser/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, python, glibcLocales, fetchFromGitHub, six, simplejson }: +{ + lib, + buildPythonPackage, + python, + glibcLocales, + fetchFromGitHub, + six, + simplejson, +}: buildPythonPackage rec { pname = "mail-parser"; @@ -15,7 +23,10 @@ buildPythonPackage rec { LC_ALL = "en_US.utf-8"; nativeBuildInputs = [ glibcLocales ]; - propagatedBuildInputs = [ simplejson six ]; + propagatedBuildInputs = [ + simplejson + six + ]; # Taken from .travis.yml checkPhase = '' diff --git a/pkgs/development/python-modules/mailcap-fix/default.nix b/pkgs/development/python-modules/mailcap-fix/default.nix index 3d644bec3a93..2c582f3b28d5 100644 --- a/pkgs/development/python-modules/mailcap-fix/default.nix +++ b/pkgs/development/python-modules/mailcap-fix/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "https://github.com/michael-lazar/mailcap_fix"; license = licenses.unlicense; }; - } diff --git a/pkgs/development/python-modules/mailchimp/default.nix b/pkgs/development/python-modules/mailchimp/default.nix index 6308e7e8e6bb..d8dc548c8136 100644 --- a/pkgs/development/python-modules/mailchimp/default.nix +++ b/pkgs/development/python-modules/mailchimp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, docopt -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + docopt, + requests, }: buildPythonPackage rec { @@ -26,5 +27,4 @@ buildPythonPackage rec { homepage = "http://apidocs.mailchimp.com/api/2.0/"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/mailmanclient/default.nix b/pkgs/development/python-modules/mailmanclient/default.nix index bb584d6797f6..4a6091aab271 100644 --- a/pkgs/development/python-modules/mailmanclient/default.nix +++ b/pkgs/development/python-modules/mailmanclient/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, + typing-extensions, }: buildPythonPackage rec { @@ -18,18 +19,12 @@ buildPythonPackage rec { hash = "sha256-Y1gcYEyn6sAhSJwVqsygaklY63b2ZXTG+rBerGVN2Fc="; }; - propagatedBuildInputs = [ - requests - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = [ requests ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; # Tests require a running Mailman instance doCheck = false; - pythonImportsCheck = [ - "mailmanclient" - ]; + pythonImportsCheck = [ "mailmanclient" ]; meta = with lib; { description = "REST client for driving Mailman 3"; diff --git a/pkgs/development/python-modules/mailsuite/default.nix b/pkgs/development/python-modules/mailsuite/default.nix index 0069defa4b89..c28126dd7199 100644 --- a/pkgs/development/python-modules/mailsuite/default.nix +++ b/pkgs/development/python-modules/mailsuite/default.nix @@ -1,16 +1,17 @@ -{ buildPythonPackage -, fetchPypi -, pythonOlder -, lib +{ + buildPythonPackage, + fetchPypi, + pythonOlder, + lib, -# pythonPackages -, hatchling -, dnspython -, expiringdict -, html2text -, mail-parser -, imapclient -, publicsuffix2 + # pythonPackages + hatchling, + dnspython, + expiringdict, + html2text, + mail-parser, + imapclient, + publicsuffix2, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-R4nAphydamZojQR7pro5Y3dZg3nYK0+X5lFBMJUpCfw="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ dnspython diff --git a/pkgs/development/python-modules/maison/default.nix b/pkgs/development/python-modules/maison/default.nix index d05376bcb279..c37ce359ef90 100644 --- a/pkgs/development/python-modules/maison/default.nix +++ b/pkgs/development/python-modules/maison/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, poetry-core -, pydantic -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, toml +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + poetry-core, + pydantic, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + toml, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-2hUmk91wr5o2cV3un2nMoXDG+3GT7SaIOKY+QaZY3nw="; }; - pythonRelaxDeps = [ - "pydantic" - ]; + pythonRelaxDeps = [ "pydantic" ]; nativeBuildInputs = [ poetry-core @@ -39,13 +38,9 @@ buildPythonPackage rec { toml ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "maison" - ]; + pythonImportsCheck = [ "maison" ]; meta = with lib; { description = "Library to read settings from config files"; diff --git a/pkgs/development/python-modules/makefun/default.nix b/pkgs/development/python-modules/makefun/default.nix index bc26604826ac..ab3428b502e6 100644 --- a/pkgs/development/python-modules/makefun/default.nix +++ b/pkgs/development/python-modules/makefun/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "makefun" ]; diff --git a/pkgs/development/python-modules/mako/default.nix b/pkgs/development/python-modules/mako/default.nix index a1629b4cf366..aa0fba8ff8b7 100644 --- a/pkgs/development/python-modules/mako/default.nix +++ b/pkgs/development/python-modules/mako/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, isPyPy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + isPyPy, -# build-system -, setuptools + # build-system + setuptools, -# propagates -, markupsafe + # propagates + markupsafe, -# optional-dependencies -, babel -, lingua + # optional-dependencies + babel, + lingua, -# tests -, chameleon -, mock -, pytestCheckHook + # tests + chameleon, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,21 +34,13 @@ buildPythonPackage rec { hash = "sha256-4WwB2aucEfcpDu8c/vwJP7WkXuSj2gni/sLk0brlTnM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - markupsafe - ]; + propagatedBuildInputs = [ markupsafe ]; passthru.optional-dependencies = { - babel = [ - babel - ]; - lingua = [ - lingua - ]; + babel = [ babel ]; + lingua = [ lingua ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/managesieve/default.nix b/pkgs/development/python-modules/managesieve/default.nix index 1f0c911d5df8..0fbe90880551 100644 --- a/pkgs/development/python-modules/managesieve/default.nix +++ b/pkgs/development/python-modules/managesieve/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,23 +19,20 @@ buildPythonPackage rec { hash = "sha256-2CCb6h69H58YT1byj/fkrfzGsMUbr0GHpJLcMpsSE/M="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "managesieve" - ]; + pythonImportsCheck = [ "managesieve" ]; meta = with lib; { description = "ManageSieve client library for remotely managing Sieve scripts"; homepage = "https://managesieve.readthedocs.io/"; # PSFL for the python module, GPLv3 only for sieveshell - license = with licenses; [ gpl3Only psfl ]; + license = with licenses; [ + gpl3Only + psfl + ]; maintainers = with maintainers; [ dadada ]; mainProgram = "sieveshell"; }; diff --git a/pkgs/development/python-modules/mando/default.nix b/pkgs/development/python-modules/mando/default.nix index dc48dd18ebe1..9d60bf3eddb8 100644 --- a/pkgs/development/python-modules/mando/default.nix +++ b/pkgs/development/python-modules/mando/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -# Python deps -, six -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + # Python deps + six, + setuptools, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-Ylrrfo57jqGuWEqCa5RyTT9AagBpUvAfviHkyJPFv08="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ - "mando" - ]; + pythonImportsCheck = [ "mando" ]; meta = with lib; { description = "Create Python CLI apps with little to no effort at all"; diff --git a/pkgs/development/python-modules/mandown/default.nix b/pkgs/development/python-modules/mandown/default.nix index d32696de51e9..1b7361b952ff 100644 --- a/pkgs/development/python-modules/mandown/default.nix +++ b/pkgs/development/python-modules/mandown/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, beautifulsoup4 -, comicon -, feedparser -, filetype -, lxml -, natsort -, nix-update-script -, pillow -, python-slugify -, requests -, typer -, pyside6 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + beautifulsoup4, + comicon, + feedparser, + filetype, + lxml, + natsort, + nix-update-script, + pillow, + python-slugify, + requests, + typer, + pyside6, }: buildPythonPackage rec { @@ -54,9 +55,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - gui = [ - pyside6 - ]; + gui = [ pyside6 ]; updateScript = nix-update-script { }; }; diff --git a/pkgs/development/python-modules/manga-ocr/default.nix b/pkgs/development/python-modules/manga-ocr/default.nix index 7f0371c356ae..03de5065e011 100644 --- a/pkgs/development/python-modules/manga-ocr/default.nix +++ b/pkgs/development/python-modules/manga-ocr/default.nix @@ -60,6 +60,6 @@ buildPythonPackage rec { homepage = "https://github.com/kha-white/manga-ocr"; changelog = "https://github.com/kha-white/manga-ocr/releases/tag/${version}"; license = licenses.asl20; - maintainers = with maintainers; [laurent-f1z1]; + maintainers = with maintainers; [ laurent-f1z1 ]; }; } diff --git a/pkgs/development/python-modules/manhole/default.nix b/pkgs/development/python-modules/manhole/default.nix index 94aa5f443596..8dab6aa75520 100644 --- a/pkgs/development/python-modules/manhole/default.nix +++ b/pkgs/development/python-modules/manhole/default.nix @@ -1,9 +1,11 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi -, pytest -, requests -, process-tests +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytest, + requests, + process-tests, }: buildPythonPackage rec { @@ -25,7 +27,11 @@ buildPythonPackage rec { # https://github.com/ionelmc/python-manhole/issues/54 is fixed doCheck = false; - nativeCheckInputs = [ pytest requests process-tests ]; + nativeCheckInputs = [ + pytest + requests + process-tests + ]; checkPhase = '' # Based on its tox.ini export PYTHONUNBUFFERED=yes diff --git a/pkgs/development/python-modules/manifest-ml/default.nix b/pkgs/development/python-modules/manifest-ml/default.nix index 4465066682c9..8b1dcaf5a090 100644 --- a/pkgs/development/python-modules/manifest-ml/default.nix +++ b/pkgs/development/python-modules/manifest-ml/default.nix @@ -1,29 +1,30 @@ -{ lib -, accelerate -, aiohttp -, buildPythonPackage -, fastapi -, fetchFromGitHub -, flask -, numpy -, pg8000 -, pillow -, pydantic -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, redis -, requests -, sentence-transformers -, setuptools -, sqlalchemy -, sqlitedict -, tenacity -, tiktoken -, torch -, transformers -, uvicorn -, xxhash +{ + lib, + accelerate, + aiohttp, + buildPythonPackage, + fastapi, + fetchFromGitHub, + flask, + numpy, + pg8000, + pillow, + pydantic, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + redis, + requests, + sentence-transformers, + setuptools, + sqlalchemy, + sqlitedict, + tenacity, + tiktoken, + torch, + transformers, + uvicorn, + xxhash, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonRelaxDeps = [ - "pydantic" - ]; + pythonRelaxDeps = [ "pydantic" ]; build-system = [ pythonRelaxDepsHook @@ -77,9 +76,7 @@ buildPythonPackage rec { fastapi uvicorn ]; - diffusers = [ - pillow - ]; + diffusers = [ pillow ]; gcp = [ pg8000 # cloud-sql-python-connector @@ -116,9 +113,7 @@ buildPythonPackage rec { "test_timing" ]; - pythonImportsCheck = [ - "manifest" - ]; + pythonImportsCheck = [ "manifest" ]; meta = with lib; { description = "Manifest for Prompting Foundation Models"; diff --git a/pkgs/development/python-modules/manifestoo-core/default.nix b/pkgs/development/python-modules/manifestoo-core/default.nix index e0101a6672aa..ce3cd3a6ef28 100644 --- a/pkgs/development/python-modules/manifestoo-core/default.nix +++ b/pkgs/development/python-modules/manifestoo-core/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, typing-extensions -, fetchPypi -, lib -, nix-update-script -, hatch-vcs -, pythonOlder -, importlib-resources +{ + buildPythonPackage, + typing-extensions, + fetchPypi, + lib, + nix-update-script, + hatch-vcs, + pythonOlder, + importlib-resources, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-a3v2WfJ42bh2LlAsH9ekpLFsAlOiTTLGNknTW2mTxCI="; }; - nativeBuildInputs = [ - hatch-vcs - ]; + nativeBuildInputs = [ hatch-vcs ]; propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ importlib-resources ] diff --git a/pkgs/development/python-modules/manifestoo/default.nix b/pkgs/development/python-modules/manifestoo/default.nix index 63383eb76ee0..3ad97022c19a 100644 --- a/pkgs/development/python-modules/manifestoo/default.nix +++ b/pkgs/development/python-modules/manifestoo/default.nix @@ -1,15 +1,16 @@ -{ buildPythonPackage -, fetchPypi -, hatch-vcs -, importlib-metadata -, lib -, manifestoo-core -, nix-update-script -, pytestCheckHook -, pythonOlder -, textual -, typer -, typing-extensions +{ + buildPythonPackage, + fetchPypi, + hatch-vcs, + importlib-metadata, + lib, + manifestoo-core, + nix-update-script, + pytestCheckHook, + pythonOlder, + textual, + typer, + typing-extensions, }: buildPythonPackage rec { @@ -22,21 +23,18 @@ buildPythonPackage rec { hash = "sha256-gCGchc+fShBgt6fVJAx80+QnH+vxWo3jsIyePkFwhYE="; }; - nativeBuildInputs = [ - hatch-vcs - ]; + nativeBuildInputs = [ hatch-vcs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ - manifestoo-core - textual - typer - ] - ++ typer.passthru.optional-dependencies.all - ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; + propagatedBuildInputs = + [ + manifestoo-core + textual + typer + ] + ++ typer.passthru.optional-dependencies.all + ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; passthru.updateScript = nix-update-script { }; diff --git a/pkgs/development/python-modules/manim-slides/default.nix b/pkgs/development/python-modules/manim-slides/default.nix index f028035d53e7..b8b236238ab5 100644 --- a/pkgs/development/python-modules/manim-slides/default.nix +++ b/pkgs/development/python-modules/manim-slides/default.nix @@ -1,36 +1,37 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -, hatchling -, pythonRelaxDepsHook -, manim -, ffmpeg + hatchling, + pythonRelaxDepsHook, + manim, + ffmpeg, -, av -, click -, click-default-group -, jinja2 -, lxml -, numpy -, opencv4 -, pillow -, pydantic -, pydantic-extra-types -, python-pptx -, qtpy -, requests -, rich -, rtoml -, tqdm -, pyqt6 + av, + click, + click-default-group, + jinja2, + lxml, + numpy, + opencv4, + pillow, + pydantic, + pydantic-extra-types, + python-pptx, + qtpy, + requests, + rich, + rtoml, + tqdm, + pyqt6, # Optional dependencies -, ipython + ipython, # As Module or application? -, withGui ? false + withGui ? false, }: buildPythonPackage rec { pname = "manim-slides"; @@ -53,36 +54,40 @@ buildPythonPackage rec { pythonRemoveDeps = [ "opencv-python" ]; - pythonRelaxDeps = [ "rtoml" "qtpy" ]; + pythonRelaxDeps = [ + "rtoml" + "qtpy" + ]; - dependencies = [ - av - click - click-default-group - jinja2 - lxml - numpy - opencv4 - pillow - pydantic - pydantic-extra-types - python-pptx - qtpy - requests - rich - rtoml - tqdm + dependencies = + [ + av + click + click-default-group + jinja2 + lxml + numpy + opencv4 + pillow + pydantic + pydantic-extra-types + python-pptx + qtpy + requests + rich + rtoml + tqdm - # avconv is a potential alternative - ffmpeg - # This could also be manimgl, but that is not (yet) packaged - manim - ] - ++ lib.lists.optional (!withGui) - ipython - ++ lib.lists.optional withGui - # dependency of qtpy (could also be pyqt5) - pyqt6; + # avconv is a potential alternative + ffmpeg + # This could also be manimgl, but that is not (yet) packaged + manim + ] + ++ lib.lists.optional (!withGui) ipython + ++ + lib.lists.optional withGui + # dependency of qtpy (could also be pyqt5) + pyqt6; pythonImportsCheck = [ "manim_slides" ]; diff --git a/pkgs/development/python-modules/manim/default.nix b/pkgs/development/python-modules/manim/default.nix index 09f2953c362e..d099cbb4b21e 100644 --- a/pkgs/development/python-modules/manim/default.nix +++ b/pkgs/development/python-modules/manim/default.nix @@ -1,43 +1,44 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, -, cairo -, ffmpeg -, texliveInfraOnly + cairo, + ffmpeg, + texliveInfraOnly, -, click -, click-default-group -, cloup -, colour -, grpcio -, grpcio-tools -, importlib-metadata -, isosurfaces -, jupyterlab -, manimpango -, mapbox-earcut -, moderngl -, moderngl-window -, networkx -, numpy -, pillow -, pycairo -, pydub -, pygments -, rich -, scipy -, screeninfo -, skia-pathops -, srt -, svgelements -, tqdm -, watchdog + click, + click-default-group, + cloup, + colour, + grpcio, + grpcio-tools, + importlib-metadata, + isosurfaces, + jupyterlab, + manimpango, + mapbox-earcut, + moderngl, + moderngl-window, + networkx, + numpy, + pillow, + pycairo, + pydub, + pygments, + rich, + scipy, + screeninfo, + skia-pathops, + srt, + svgelements, + tqdm, + watchdog, }: let @@ -52,36 +53,137 @@ let # https://github.com/yihui/tinytex/blob/master/tools/pkgs-custom.txt # # these two combined add up to: - manim-tinytex = texliveInfraOnly.withPackages (ps: with ps; [ + manim-tinytex = texliveInfraOnly.withPackages ( + ps: with ps; [ - # tinytex - amsfonts amsmath atbegshi atveryend auxhook babel bibtex - bigintcalc bitset booktabs cm dehyph dvipdfmx dvips ec epstopdf-pkg etex - etexcmds etoolbox euenc everyshi fancyvrb filehook firstaid float fontspec - framed geometry gettitlestring glyphlist graphics graphics-cfg graphics-def - grffile helvetic hycolor hyperref hyph-utf8 iftex inconsolata infwarerr - intcalc knuth-lib kvdefinekeys kvoptions kvsetkeys l3backend l3kernel - l3packages latex latex-amsmath-dev latex-bin latex-fonts latex-tools-dev - latexconfig latexmk letltxmacro lm lm-math ltxcmds lua-alt-getopt luahbtex - lualatex-math lualibs luaotfload luatex mdwtools metafont mfware natbib - pdfescape pdftex pdftexcmds plain psnfss refcount rerunfilecheck stringenc - tex tex-ini-files times tipa tools unicode-data unicode-math uniquecounter - url xcolor xetex xetexconfig xkeyval xunicode zapfding + # tinytex + amsfonts + amsmath + atbegshi + atveryend + auxhook + babel + bibtex + bigintcalc + bitset + booktabs + cm + dehyph + dvipdfmx + dvips + ec + epstopdf-pkg + etex + etexcmds + etoolbox + euenc + everyshi + fancyvrb + filehook + firstaid + float + fontspec + framed + geometry + gettitlestring + glyphlist + graphics + graphics-cfg + graphics-def + grffile + helvetic + hycolor + hyperref + hyph-utf8 + iftex + inconsolata + infwarerr + intcalc + knuth-lib + kvdefinekeys + kvoptions + kvsetkeys + l3backend + l3kernel + l3packages + latex + latex-amsmath-dev + latex-bin + latex-fonts + latex-tools-dev + latexconfig + latexmk + letltxmacro + lm + lm-math + ltxcmds + lua-alt-getopt + luahbtex + lualatex-math + lualibs + luaotfload + luatex + mdwtools + metafont + mfware + natbib + pdfescape + pdftex + pdftexcmds + plain + psnfss + refcount + rerunfilecheck + stringenc + tex + tex-ini-files + times + tipa + tools + unicode-data + unicode-math + uniquecounter + url + xcolor + xetex + xetexconfig + xkeyval + xunicode + zapfding - # manim-latex - standalone everysel preview doublestroke ms setspace rsfs relsize ragged2e - fundus-calligra microtype wasysym physics dvisvgm jknapltx wasy cm-super - babel-english gnu-freefont mathastext cbfonts-fd - ]); - -in buildPythonPackage rec { + # manim-latex + standalone + everysel + preview + doublestroke + ms + setspace + rsfs + relsize + ragged2e + fundus-calligra + microtype + wasysym + physics + dvisvgm + jknapltx + wasy + cm-super + babel-english + gnu-freefont + mathastext + cbfonts-fd + ] + ); +in +buildPythonPackage rec { pname = "manim"; pyproject = true; version = "0.18.1"; disabled = pythonOlder "3.9"; src = fetchFromGitHub { - owner = "ManimCommunity"; + owner = "ManimCommunity"; repo = "manim"; rev = "refs/tags/v${version}"; hash = "sha256-o+Wl3NMK6yopcsRVFtZuUE9c1GABa5d8rbQNHDJ4OiQ="; @@ -100,9 +202,7 @@ in buildPythonPackage rec { "watchdog" ]; - patches = [ - ./pytest-report-header.patch - ]; + patches = [ ./pytest-report-header.patch ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -142,7 +242,10 @@ in buildPythonPackage rec { ]; makeWrapperArgs = [ - "--prefix" "PATH" ":" (lib.makeBinPath [ + "--prefix" + "PATH" + ":" + (lib.makeBinPath [ ffmpeg manim-tinytex ]) diff --git a/pkgs/development/python-modules/manimpango/default.nix b/pkgs/development/python-modules/manimpango/default.nix index 9fec1f0aa243..c0f8e475b365 100644 --- a/pkgs/development/python-modules/manimpango/default.nix +++ b/pkgs/development/python-modules/manimpango/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, python -, pkg-config -, pango -, cython -, AppKit -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + python, + pkg-config, + pango, + cython, + AppKit, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,23 +26,13 @@ buildPythonPackage rec { hash = "sha256-EBSbvjQyQIXOzvQMbuTwOoV8xSAOYDlCBZ56NLneuQI="; }; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - pango - ] ++ lib.optionals stdenv.isDarwin [ - AppKit - ]; + buildInputs = [ pango ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; - propagatedBuildInputs = [ - cython - ]; + propagatedBuildInputs = [ cython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.cfg \ @@ -52,9 +43,7 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace ''; - pythonImportsCheck = [ - "manimpango" - ]; + pythonImportsCheck = [ "manimpango" ]; meta = with lib; { description = "Binding for Pango"; diff --git a/pkgs/development/python-modules/manuel/default.nix b/pkgs/development/python-modules/manuel/default.nix index 8d87e6240982..cd6cb93535a9 100644 --- a/pkgs/development/python-modules/manuel/default.nix +++ b/pkgs/development/python-modules/manuel/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, python -, isPy27 -, six -, zope-testing +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + python, + isPy27, + six, + zope-testing, }: buildPythonPackage rec { @@ -37,5 +38,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/manuel"; license = licenses.zpl20; }; - } diff --git a/pkgs/development/python-modules/manuf/default.nix b/pkgs/development/python-modules/manuf/default.nix index 19b98a12a17c..20961a139682 100644 --- a/pkgs/development/python-modules/manuf/default.nix +++ b/pkgs/development/python-modules/manuf/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, runCommand -, python3 -, wireshark-cli -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + runCommand, + python3, + wireshark-cli, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,18 +34,14 @@ buildPythonPackage rec { cat ${wireshark-cli}/share/wireshark/wka >> manuf/manuf ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_update_update" - ]; + disabledTests = [ "test_update_update" ]; pythonImportsCheck = [ "manuf" ]; passthru.tests = { - testMacAddress = runCommand "${pname}-test" {} '' + testMacAddress = runCommand "${pname}-test" { } '' ${python3.pkgs.manuf}/bin/manuf BC:EE:7B:00:00:00 > $out [ "$(cat $out | tr -d '\n')" = "Vendor(manuf='ASUSTekC', manuf_long='ASUSTek COMPUTER INC.', comment=None)" ] ''; @@ -55,7 +52,10 @@ buildPythonPackage rec { description = " Parser library for Wireshark's OUI database"; mainProgram = "manuf"; platforms = platforms.linux; - license = with licenses; [ lgpl3Plus asl20 ]; + license = with licenses; [ + lgpl3Plus + asl20 + ]; maintainers = with maintainers; [ dsuetin ]; }; } diff --git a/pkgs/development/python-modules/mapbox-earcut/default.nix b/pkgs/development/python-modules/mapbox-earcut/default.nix index fa4659ae40bd..9b3644f2f457 100644 --- a/pkgs/development/python-modules/mapbox-earcut/default.nix +++ b/pkgs/development/python-modules/mapbox-earcut/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchFromGitHub -, numpy -, pybind11 -, pytestCheckHook -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchFromGitHub, + numpy, + pybind11, + pytestCheckHook, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { pybind11 ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mapbox_earcut" - ]; + pythonImportsCheck = [ "mapbox_earcut" ]; meta = with lib; { homepage = "https://github.com/skogler/mapbox_earcut_python"; diff --git a/pkgs/development/python-modules/mapbox/default.nix b/pkgs/development/python-modules/mapbox/default.nix index 52d3eb2efbbc..80555ea8c008 100644 --- a/pkgs/development/python-modules/mapbox/default.nix +++ b/pkgs/development/python-modules/mapbox/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, boto3 -, cachecontrol -, fetchFromGitHub -, iso3166 -, python-dateutil -, requests -, responses -, polyline -, pytestCheckHook -, uritemplate +{ + lib, + buildPythonPackage, + boto3, + cachecontrol, + fetchFromGitHub, + iso3166, + python-dateutil, + requests, + responses, + polyline, + pytestCheckHook, + uritemplate, }: buildPythonPackage rec { @@ -24,8 +25,19 @@ buildPythonPackage rec { sha256 = "123wsa4j11ps5pkjgylbmw4gnzh2vi22swgmvy50w26glkszh075"; }; - propagatedBuildInputs = [ boto3 cachecontrol iso3166 python-dateutil requests polyline uritemplate ]; - nativeCheckInputs = [ pytestCheckHook responses ]; + propagatedBuildInputs = [ + boto3 + cachecontrol + iso3166 + python-dateutil + requests + polyline + uritemplate + ]; + nativeCheckInputs = [ + pytestCheckHook + responses + ]; meta = with lib; { homepage = "https://github.com/mapbox/mapbox-sdk-py"; diff --git a/pkgs/development/python-modules/mariadb/default.nix b/pkgs/development/python-modules/mariadb/default.nix index cad6afb3cd52..a2027a59f02f 100644 --- a/pkgs/development/python-modules/mariadb/default.nix +++ b/pkgs/development/python-modules/mariadb/default.nix @@ -1,4 +1,10 @@ -{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }: +{ + buildPythonPackage, + fetchPypi, + libmysqlclient, + lib, + pythonOlder, +}: buildPythonPackage rec { pname = "mariadb"; @@ -13,9 +19,7 @@ buildPythonPackage rec { extension = "zip"; }; - nativeBuildInputs = [ - libmysqlclient - ]; + nativeBuildInputs = [ libmysqlclient ]; # Requires a running MariaDB instance doCheck = false; diff --git a/pkgs/development/python-modules/marimo/default.nix b/pkgs/development/python-modules/marimo/default.nix index 8b3fd204e54c..36317c489c7b 100644 --- a/pkgs/development/python-modules/marimo/default.nix +++ b/pkgs/development/python-modules/marimo/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, black -, click -, docutils -, itsdangerous -, jedi -, markdown -, psutil -, pygments -, pymdown-extensions -, starlette -, tomlkit -, uvicorn -, websockets -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + black, + click, + docutils, + itsdangerous, + jedi, + markdown, + psutil, + pygments, + pymdown-extensions, + starlette, + tomlkit, + uvicorn, + websockets, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-L6ICaaMRrMOr/d8CJGcXxOYCWTVh8ObckW7xNeLRB2Q="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ black @@ -51,13 +50,9 @@ buildPythonPackage rec { websockets ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "marimo" - ]; + pythonImportsCheck = [ "marimo" ]; meta = with lib; { description = "A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps"; @@ -65,6 +60,9 @@ buildPythonPackage rec { changelog = "https://github.com/marimo-team/marimo/releases/tag/${version}"; license = licenses.asl20; mainProgram = "marimo"; - maintainers = with maintainers; [ akshayka dmadisetti ]; + maintainers = with maintainers; [ + akshayka + dmadisetti + ]; }; } diff --git a/pkgs/development/python-modules/marionette-harness/manifestparser.nix b/pkgs/development/python-modules/marionette-harness/manifestparser.nix index 45e24ec2e1a9..57f8fbf01254 100644 --- a/pkgs/development/python-modules/marionette-harness/manifestparser.nix +++ b/pkgs/development/python-modules/marionette-harness/manifestparser.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/marisa-trie/default.nix b/pkgs/development/python-modules/marisa-trie/default.nix index 544e2196326f..b9ce61973394 100644 --- a/pkgs/development/python-modules/marisa-trie/default.nix +++ b/pkgs/development/python-modules/marisa-trie/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, pytestCheckHook -, hypothesis -, readme-renderer -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + pytestCheckHook, + hypothesis, + readme-renderer, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-W/Q+0M82r0V4/nsDTPlfUyQ5dmUWaA5L1gNyNhHr1Ws="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; nativeCheckInputs = [ pytestCheckHook @@ -53,9 +52,7 @@ buildPythonPackage rec { "test_mmap" ]; - pythonImportsCheck = [ - "marisa_trie" - ]; + pythonImportsCheck = [ "marisa_trie" ]; meta = with lib; { description = "Static memory-efficient Trie-like structures for Python based on marisa-trie C++ library"; @@ -63,7 +60,7 @@ buildPythonPackage rec { There are official SWIG-based Python bindings included in C++ library distribution. This package provides alternative Cython-based pip-installable Python bindings. ''; - homepage = "https://github.com/kmike/marisa-trie"; + homepage = "https://github.com/kmike/marisa-trie"; changelog = "https://github.com/pytries/marisa-trie/blob/${version}/CHANGES.rst"; license = licenses.mit; }; diff --git a/pkgs/development/python-modules/marisa/default.nix b/pkgs/development/python-modules/marisa/default.nix index 6ed3d6f4bf39..1de25320bb3f 100644 --- a/pkgs/development/python-modules/marisa/default.nix +++ b/pkgs/development/python-modules/marisa/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, marisa -, swig +{ + lib, + buildPythonPackage, + marisa, + swig, }: buildPythonPackage rec { @@ -27,7 +28,10 @@ buildPythonPackage rec { meta = { description = "Python bindings for marisa"; homepage = "https://github.com/s-yata/marisa-trie"; - license = with lib.licenses; [ bsd2 lgpl21Plus ]; + license = with lib.licenses; [ + bsd2 + lgpl21Plus + ]; maintainers = with lib.maintainers; [ dotlambda ]; }; } diff --git a/pkgs/development/python-modules/markdown-include/default.nix b/pkgs/development/python-modules/markdown-include/default.nix index 96c4599d8252..3ee1e476665d 100644 --- a/pkgs/development/python-modules/markdown-include/default.nix +++ b/pkgs/development/python-modules/markdown-include/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, markdown -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + markdown, + setuptools-scm, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-1MEk0U00a5cpVhqnDZkwBIk4NYgsRXTVsI/ANNQ/OH0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - markdown - ]; + propagatedBuildInputs = [ markdown ]; - pythonImportsCheck = [ - "markdown_include" - ]; + pythonImportsCheck = [ "markdown_include" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/markdown-it-py/default.nix b/pkgs/development/python-modules/markdown-it-py/default.nix index b7f580322fdf..f64d415aa76b 100644 --- a/pkgs/development/python-modules/markdown-it-py/default.nix +++ b/pkgs/development/python-modules/markdown-it-py/default.nix @@ -1,27 +1,28 @@ -{ lib -, attrs -, buildPythonPackage -, commonmark -, fetchFromGitHub -, flit-core -, linkify-it-py -, markdown -, mdit-py-plugins -, mdurl -, mistletoe -, mistune -, myst-parser -, panflute -, pyyaml -, sphinx -, sphinx-book-theme -, sphinx-copybutton -, sphinx-design -, stdenv -, pytest-regressions -, pytestCheckHook -, pythonRelaxDepsHook -, pythonOlder +{ + lib, + attrs, + buildPythonPackage, + commonmark, + fetchFromGitHub, + flit-core, + linkify-it-py, + markdown, + mdit-py-plugins, + mdurl, + mistletoe, + mistune, + myst-parser, + panflute, + pyyaml, + sphinx, + sphinx-book-theme, + sphinx-copybutton, + sphinx-design, + stdenv, + pytest-regressions, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, }: buildPythonPackage rec { @@ -39,18 +40,14 @@ buildPythonPackage rec { }; # fix downstrem usage of markdown-it-py[linkify] - pythonRelaxDeps = [ - "linkify-it-py" - ]; + pythonRelaxDeps = [ "linkify-it-py" ]; nativeBuildInputs = [ pythonRelaxDepsHook flit-core ]; - propagatedBuildInputs = [ - mdurl - ]; + propagatedBuildInputs = [ mdurl ]; nativeCheckInputs = [ pytest-regressions @@ -63,15 +60,27 @@ buildPythonPackage rec { ''; doCheck = !stdenv.isi686; - pythonImportsCheck = [ - "markdown_it" - ]; + pythonImportsCheck = [ "markdown_it" ]; passthru.optional-dependencies = { - compare = [ commonmark markdown mistletoe mistune panflute ]; + compare = [ + commonmark + markdown + mistletoe + mistune + panflute + ]; linkify = [ linkify-it-py ]; plugins = [ mdit-py-plugins ]; - rtd = [ attrs myst-parser pyyaml sphinx sphinx-copybutton sphinx-design sphinx-book-theme ]; + rtd = [ + attrs + myst-parser + pyyaml + sphinx + sphinx-copybutton + sphinx-design + sphinx-book-theme + ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/markdown-macros/default.nix b/pkgs/development/python-modules/markdown-macros/default.nix index 2a15b4edb1c6..bc9d90eba066 100644 --- a/pkgs/development/python-modules/markdown-macros/default.nix +++ b/pkgs/development/python-modules/markdown-macros/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, markdown +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + markdown, }: buildPythonPackage rec { @@ -39,5 +40,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = [ maintainers.abigailbuccaneer ]; }; - } diff --git a/pkgs/development/python-modules/markdown/default.nix b/pkgs/development/python-modules/markdown/default.nix index 70bff8d2c854..f0858ca0da90 100644 --- a/pkgs/development/python-modules/markdown/default.nix +++ b/pkgs/development/python-modules/markdown/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, importlib-metadata -, pyyaml -, setuptools -, unittestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + importlib-metadata, + pyyaml, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-jGo9/ZS2EhMDl/o1ref7Owqckuc7am578Ojmcz2aWIE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ unittestCheckHook diff --git a/pkgs/development/python-modules/markdown2/default.nix b/pkgs/development/python-modules/markdown2/default.nix index 1c375523ae60..171b6b73a6f8 100644 --- a/pkgs/development/python-modules/markdown2/default.nix +++ b/pkgs/development/python-modules/markdown2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pygments -, pythonOlder -, wavedrom +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pygments, + pythonOlder, + wavedrom, }: buildPythonPackage rec { @@ -35,20 +36,18 @@ buildPythonPackage rec { ''; passthru.optional-dependencies = { - code_syntax_highlighting = [ - pygments - ]; - wavedrom = [ - wavedrom - ]; - all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") passthru.optional-dependencies)); + code_syntax_highlighting = [ pygments ]; + wavedrom = [ wavedrom ]; + all = lib.flatten ( + lib.attrValues (lib.filterAttrs (n: v: n != "all") passthru.optional-dependencies) + ); }; meta = with lib; { changelog = "https://github.com/trentm/python-markdown2/blob/${src.rev}/CHANGES.md"; description = "A fast and complete Python implementation of Markdown"; mainProgram = "markdown2"; - homepage = "https://github.com/trentm/python-markdown2"; + homepage = "https://github.com/trentm/python-markdown2"; license = licenses.mit; maintainers = with maintainers; [ hbunke ]; }; diff --git a/pkgs/development/python-modules/markdownify/default.nix b/pkgs/development/python-modules/markdownify/default.nix index e6b09592073a..b6d8fa20ba6c 100644 --- a/pkgs/development/python-modules/markdownify/default.nix +++ b/pkgs/development/python-modules/markdownify/default.nix @@ -1,11 +1,12 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, six +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-H7CMYYsw4O56MaObmY9EoY+yirJU9V9K8GttNaIXnic="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ beautifulsoup4 six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "markdownify" - ]; + pythonImportsCheck = [ "markdownify" ]; meta = with lib; { description = "HTML to Markdown converter"; diff --git a/pkgs/development/python-modules/markuppy/default.nix b/pkgs/development/python-modules/markuppy/default.nix index fde9ae4ceec9..ed24dc0741f6 100644 --- a/pkgs/development/python-modules/markuppy/default.nix +++ b/pkgs/development/python-modules/markuppy/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { pname = "markuppy"; diff --git a/pkgs/development/python-modules/markups/default.nix b/pkgs/development/python-modules/markups/default.nix index 163fc2539d2d..f187a8fc9d46 100644 --- a/pkgs/development/python-modules/markups/default.nix +++ b/pkgs/development/python-modules/markups/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, docutils -, fetchPypi -, importlib-metadata -, markdown -, pygments -, pytestCheckHook -, python-markdown-math -, pythonOlder -, pyyaml -, setuptools -, textile +{ + lib, + buildPythonPackage, + docutils, + fetchPypi, + importlib-metadata, + markdown, + pygments, + pytestCheckHook, + python-markdown-math, + pythonOlder, + pyyaml, + setuptools, + textile, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-Pdua+xxV0M/4EuM5LKM/RoSYwHB6T6iy4F0LoNMsAZ4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ docutils @@ -37,22 +36,16 @@ buildPythonPackage rec { python-markdown-math pyyaml textile - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # AssertionError: '.selector .ch { color: #408080' not found in 'pre... "test_get_pygments_stylesheet" ]; - pythonImportsCheck = [ - "markups" - ]; + pythonImportsCheck = [ "markups" ]; meta = with lib; { description = "Wrapper around various text markup languages"; diff --git a/pkgs/development/python-modules/markupsafe/default.nix b/pkgs/development/python-modules/markupsafe/default.nix index 17f8ce118e5b..5b4a039ae280 100644 --- a/pkgs/development/python-modules/markupsafe/default.nix +++ b/pkgs/development/python-modules/markupsafe/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, -# reverse dependencies -, jinja2 -, mkdocs -, quart -, werkzeug + # reverse dependencies + jinja2, + mkdocs, + quart, + werkzeug, }: buildPythonPackage rec { @@ -29,17 +30,11 @@ buildPythonPackage rec { hash = "sha256-0oPTeokLpMGuc/+t+ARkNcdue8Ike7tjwAvRpwnGVEs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "markupsafe" - ]; + pythonImportsCheck = [ "markupsafe" ]; passthru.tests = { inherit @@ -47,11 +42,13 @@ buildPythonPackage rec { mkdocs quart werkzeug - ; + ; }; meta = with lib; { - changelog = "https://markupsafe.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://markupsafe.palletsprojects.com/en/${versions.majorMinor version}.x/changes/#version-${ + replaceStrings [ "." ] [ "-" ] version + }"; description = "Implements a XML/HTML/XHTML Markup safe string"; homepage = "https://palletsprojects.com/p/markupsafe/"; license = licenses.bsd3; diff --git a/pkgs/development/python-modules/marshmallow-dataclass/default.nix b/pkgs/development/python-modules/marshmallow-dataclass/default.nix index 4bb06720ca23..1b9bce9c4158 100644 --- a/pkgs/development/python-modules/marshmallow-dataclass/default.nix +++ b/pkgs/development/python-modules/marshmallow-dataclass/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, marshmallow -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, typeguard -, typing-inspect +{ + lib, + buildPythonPackage, + fetchFromGitHub, + marshmallow, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + typeguard, + typing-inspect, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { "test_newtype" ]; - pythonImportsCheck = [ - "marshmallow_dataclass" - ]; + pythonImportsCheck = [ "marshmallow_dataclass" ]; meta = with lib; { description = "Automatic generation of marshmallow schemas from dataclasses"; diff --git a/pkgs/development/python-modules/marshmallow-oneofschema/default.nix b/pkgs/development/python-modules/marshmallow-oneofschema/default.nix index 933f5cc4c8b9..10690ad42657 100644 --- a/pkgs/development/python-modules/marshmallow-oneofschema/default.nix +++ b/pkgs/development/python-modules/marshmallow-oneofschema/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, marshmallow -, pytestCheckHook -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + marshmallow, + pytestCheckHook, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-HXuyUxU8bT5arpUzmgv7m+X2fNT0qHY8S8Rz6klOGiA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - marshmallow - ]; + propagatedBuildInputs = [ marshmallow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "marshmallow_oneofschema" - ]; + pythonImportsCheck = [ "marshmallow_oneofschema" ]; meta = with lib; { description = "Marshmallow library extension that allows schema (de)multiplexing"; diff --git a/pkgs/development/python-modules/marshmallow-polyfield/default.nix b/pkgs/development/python-modules/marshmallow-polyfield/default.nix index dfdb85ebf9c7..0852091f4774 100644 --- a/pkgs/development/python-modules/marshmallow-polyfield/default.nix +++ b/pkgs/development/python-modules/marshmallow-polyfield/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, marshmallow -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + marshmallow, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -26,21 +27,13 @@ buildPythonPackage rec { --replace "--cov=marshmallow_polyfield" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - marshmallow - ]; + propagatedBuildInputs = [ marshmallow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "marshmallow" - ]; + pythonImportsCheck = [ "marshmallow" ]; meta = with lib; { description = "Extension to Marshmallow to allow for polymorphic fields"; diff --git a/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix b/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix index cc73a3c229a3..ab0025afd983 100644 --- a/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/marshmallow-sqlalchemy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, marshmallow -, packaging -, sqlalchemy -, pytest-lazy-fixture -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + marshmallow, + packaging, + sqlalchemy, + pytest-lazy-fixture, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-IKDy/N1b3chkRPoBRh8X+bahKo3dTKjJs0/i8uNdAKI="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; propagatedBuildInputs = [ marshmallow @@ -33,9 +32,7 @@ buildPythonPackage rec { sqlalchemy ]; - pythonImportsCheck = [ - "marshmallow_sqlalchemy" - ]; + pythonImportsCheck = [ "marshmallow_sqlalchemy" ]; nativeCheckInputs = [ pytest-lazy-fixture diff --git a/pkgs/development/python-modules/marshmallow/default.nix b/pkgs/development/python-modules/marshmallow/default.nix index bbb336884c19..71766217fe63 100644 --- a/pkgs/development/python-modules/marshmallow/default.nix +++ b/pkgs/development/python-modules/marshmallow/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, packaging -, pytestCheckHook -, pythonOlder -, pytz -, simplejson +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + packaging, + pytestCheckHook, + pythonOlder, + pytz, + simplejson, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-KhXasYKooZRokRoFlWKOaQzSUe6tXDtUlrf65eGGUi8="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; nativeCheckInputs = [ pytestCheckHook @@ -37,9 +34,7 @@ buildPythonPackage rec { simplejson ]; - pythonImportsCheck = [ - "marshmallow" - ]; + pythonImportsCheck = [ "marshmallow" ]; meta = with lib; { description = "Library for converting complex objects to and from simple Python datatypes"; diff --git a/pkgs/development/python-modules/mashumaro/default.nix b/pkgs/development/python-modules/mashumaro/default.nix index cf79f268ffb3..4456e418c487 100644 --- a/pkgs/development/python-modules/mashumaro/default.nix +++ b/pkgs/development/python-modules/mashumaro/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, ciso8601 -, fetchFromGitHub -, msgpack -, orjson -, pendulum -, pytest-mock -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools -, tomli -, tomli-w -, typing-extensions +{ + lib, + buildPythonPackage, + ciso8601, + fetchFromGitHub, + msgpack, + orjson, + pendulum, + pytest-mock, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, + tomli, + tomli-w, + typing-extensions, }: buildPythonPackage rec { @@ -29,29 +30,15 @@ buildPythonPackage rec { hash = "sha256-ETK1rHKlByQkqibejiZmXF6c4eIiMazLa8XY2OH30q4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; passthru.optional-dependencies = { - orjson = [ - orjson - ]; - msgpack = [ - msgpack - ]; - yaml = [ - pyyaml - ]; - toml = [ - tomli-w - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + orjson = [ orjson ]; + msgpack = [ msgpack ]; + yaml = [ pyyaml ]; + toml = [ tomli-w ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; }; nativeCheckInputs = [ @@ -61,9 +48,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "mashumaro" - ]; + pythonImportsCheck = [ "mashumaro" ]; meta = with lib; { description = "Serialization library on top of dataclasses"; diff --git a/pkgs/development/python-modules/masky/default.nix b/pkgs/development/python-modules/masky/default.nix index aadd429fa881..557a02dfcc9a 100644 --- a/pkgs/development/python-modules/masky/default.nix +++ b/pkgs/development/python-modules/masky/default.nix @@ -1,12 +1,13 @@ -{ lib -, asn1crypto -, buildPythonPackage -, colorama -, cryptography -, fetchFromGitHub -, impacket -, pyasn1 -, pythonOlder +{ + lib, + asn1crypto, + buildPythonPackage, + colorama, + cryptography, + fetchFromGitHub, + impacket, + pyasn1, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "masky" - ]; + pythonImportsCheck = [ "masky" ]; meta = with lib; { description = "Library to remotely dump domain credentials"; diff --git a/pkgs/development/python-modules/mastodon-py/default.nix b/pkgs/development/python-modules/mastodon-py/default.nix index 5034346b9cfe..b8b93bc84eaa 100644 --- a/pkgs/development/python-modules/mastodon-py/default.nix +++ b/pkgs/development/python-modules/mastodon-py/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, blurhash -, cryptography -, decorator -, http-ece -, python-dateutil -, python-magic -, requests -, six -, pytestCheckHook -, pytest-mock -, pytest-vcr -, requests-mock -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + blurhash, + cryptography, + decorator, + http-ece, + python-dateutil, + python-magic, + requests, + six, + pytestCheckHook, + pytest-mock, + pytest-vcr, + requests-mock, + setuptools, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { sed -i '/addopts/d' setup.cfg ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ blurhash @@ -46,9 +45,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - blurhash = [ - blurhash - ]; + blurhash = [ blurhash ]; webpush = [ http-ece cryptography diff --git a/pkgs/development/python-modules/mat2/default.nix b/pkgs/development/python-modules/mat2/default.nix index fe627c8b99d5..c9229f2f49f7 100644 --- a/pkgs/development/python-modules/mat2/default.nix +++ b/pkgs/development/python-modules/mat2/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, buildPythonPackage -, pytestCheckHook -, pythonOlder -, fetchFromGitLab -, substituteAll -, bubblewrap -, exiftool -, ffmpeg -, mailcap -, wrapGAppsHook3 -, gdk-pixbuf -, gobject-introspection -, librsvg -, poppler_gi -, mutagen -, pygobject3 -, pycairo -, dolphinIntegration ? false -, plasma5Packages +{ + lib, + stdenv, + buildPythonPackage, + pytestCheckHook, + pythonOlder, + fetchFromGitLab, + substituteAll, + bubblewrap, + exiftool, + ffmpeg, + mailcap, + wrapGAppsHook3, + gdk-pixbuf, + gobject-introspection, + librsvg, + poppler_gi, + mutagen, + pygobject3, + pycairo, + dolphinIntegration ? false, + plasma5Packages, }: buildPythonPackage rec { @@ -37,25 +38,28 @@ buildPythonPackage rec { hash = "sha256-SuN62JjSb5O8gInvBH+elqv/Oe7j+xjCo+dmPBU7jEY="; }; - patches = [ - # hardcode paths to some binaries - (substituteAll ({ - src = ./paths.patch; - exiftool = "${exiftool}/bin/exiftool"; - ffmpeg = "${ffmpeg}/bin/ffmpeg"; - } // lib.optionalAttrs dolphinIntegration { - kdialog = "${plasma5Packages.kdialog}/bin/kdialog"; - })) - # the executable shouldn't be called .mat2-wrapped - ./executable-name.patch - # hardcode path to mat2 executable - ./tests.patch - ] ++ lib.optionals (stdenv.hostPlatform.isLinux) [ - (substituteAll { - src = ./bubblewrap-path.patch; - bwrap = "${bubblewrap}/bin/bwrap"; - }) - ]; + patches = + [ + # hardcode paths to some binaries + (substituteAll ( + { + src = ./paths.patch; + exiftool = "${exiftool}/bin/exiftool"; + ffmpeg = "${ffmpeg}/bin/ffmpeg"; + } + // lib.optionalAttrs dolphinIntegration { kdialog = "${plasma5Packages.kdialog}/bin/kdialog"; } + )) + # the executable shouldn't be called .mat2-wrapped + ./executable-name.patch + # hardcode path to mat2 executable + ./tests.patch + ] + ++ lib.optionals (stdenv.hostPlatform.isLinux) [ + (substituteAll { + src = ./bubblewrap-path.patch; + bwrap = "${bubblewrap}/bin/bwrap"; + }) + ]; postPatch = '' rm pyproject.toml @@ -81,12 +85,14 @@ buildPythonPackage rec { pycairo ]; - postInstall = '' - install -Dm 444 data/mat2.svg -t "$out/share/icons/hicolor/scalable/apps" - install -Dm 444 doc/mat2.1 -t "$out/share/man/man1" - '' + lib.optionalString dolphinIntegration '' - install -Dm 444 dolphin/mat2.desktop -t "$out/share/kservices5/ServiceMenus" - ''; + postInstall = + '' + install -Dm 444 data/mat2.svg -t "$out/share/icons/hicolor/scalable/apps" + install -Dm 444 doc/mat2.1 -t "$out/share/man/man1" + '' + + lib.optionalString dolphinIntegration '' + install -Dm 444 dolphin/mat2.desktop -t "$out/share/kservices5/ServiceMenus" + ''; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/matchpy/default.nix b/pkgs/development/python-modules/matchpy/default.nix index 259038e7774b..96f749f85d67 100644 --- a/pkgs/development/python-modules/matchpy/default.nix +++ b/pkgs/development/python-modules/matchpy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, hopcroftkarp -, multiset -, pytestCheckHook -, hypothesis -, setuptools-scm -, isPy27 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + hopcroftkarp, + multiset, + pytestCheckHook, + hypothesis, + setuptools-scm, + isPy27, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { --replace "multiset>=2.0,<3.0" "multiset" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ hopcroftkarp @@ -53,9 +52,7 @@ buildPythonPackage rec { hypothesis ]; - pythonImportsCheck = [ - "matchpy" - ]; + pythonImportsCheck = [ "matchpy" ]; meta = with lib; { description = "A library for pattern matching on symbolic expressions"; diff --git a/pkgs/development/python-modules/material-color-utilities/default.nix b/pkgs/development/python-modules/material-color-utilities/default.nix index 8c92723e4a06..527d86a6bbde 100644 --- a/pkgs/development/python-modules/material-color-utilities/default.nix +++ b/pkgs/development/python-modules/material-color-utilities/default.nix @@ -1,4 +1,12 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, pythonRelaxDepsHook, pillow, regex }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + pillow, + regex, +}: buildPythonPackage rec { pname = "material-color-utilities-python"; @@ -9,12 +17,8 @@ buildPythonPackage rec { sha256 = "sha256-PG8C585wWViFRHve83z3b9NijHyV+iGY2BdMJpyVH64="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ - "Pillow" - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; + pythonRelaxDeps = [ "Pillow" ]; propagatedBuildInputs = [ pillow diff --git a/pkgs/development/python-modules/mathlibtools/default.nix b/pkgs/development/python-modules/mathlibtools/default.nix index 0d7ad7b2528a..0253ac6d7497 100644 --- a/pkgs/development/python-modules/mathlibtools/default.nix +++ b/pkgs/development/python-modules/mathlibtools/default.nix @@ -1,16 +1,17 @@ -{ lib -, atomicwrites -, buildPythonPackage -, click -, fetchPypi -, gitpython -, networkx -, pydot -, pygithub -, pythonOlder -, pyyaml -, toml -, tqdm +{ + lib, + atomicwrites, + buildPythonPackage, + click, + fetchPypi, + gitpython, + networkx, + pydot, + pygithub, + pythonOlder, + pyyaml, + toml, + tqdm, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { # Requires internet access doCheck = false; - pythonImportsCheck = [ - "mathlibtools" - ]; + pythonImportsCheck = [ "mathlibtools" ]; meta = with lib; { description = "Supporting tool for Lean's mathlib"; diff --git a/pkgs/development/python-modules/matlink-gpapi/default.nix b/pkgs/development/python-modules/matlink-gpapi/default.nix index c88638e4391f..3df24acd72a4 100644 --- a/pkgs/development/python-modules/matlink-gpapi/default.nix +++ b/pkgs/development/python-modules/matlink-gpapi/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, cryptography -, fetchPypi -, lib -, protobuf -, pycryptodome -, requests +{ + buildPythonPackage, + cryptography, + fetchPypi, + lib, + protobuf, + pycryptodome, + requests, }: buildPythonPackage rec { @@ -23,7 +24,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "gpapi.googleplay" ]; - propagatedBuildInputs = [ cryptography protobuf pycryptodome requests ]; + propagatedBuildInputs = [ + cryptography + protobuf + pycryptodome + requests + ]; meta = with lib; { homepage = "https://github.com/NoMore201/googleplay-api"; diff --git a/pkgs/development/python-modules/matplotlib-inline/default.nix b/pkgs/development/python-modules/matplotlib-inline/default.nix index e35111fd191c..7960b5cdc2bc 100644 --- a/pkgs/development/python-modules/matplotlib-inline/default.nix +++ b/pkgs/development/python-modules/matplotlib-inline/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, traitlets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + traitlets, -# tests -, ipython + # tests + ipython, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-y7T8BshNa8NVWzH8oLS4dTAyhG+YmkkYQJFAyMXsJFA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - traitlets - ]; + dependencies = [ traitlets ]; # wants to import ipython, which creates a circular dependency doCheck = false; @@ -40,7 +37,9 @@ buildPythonPackage rec { #"matplotlib_inline" ]; - passthru.tests = { inherit ipython; }; + passthru.tests = { + inherit ipython; + }; meta = with lib; { description = "Matplotlib Inline Back-end for IPython and Jupyter"; diff --git a/pkgs/development/python-modules/matplotlib-sixel/default.nix b/pkgs/development/python-modules/matplotlib-sixel/default.nix index e1d2e80f84c4..6d74b365f15f 100644 --- a/pkgs/development/python-modules/matplotlib-sixel/default.nix +++ b/pkgs/development/python-modules/matplotlib-sixel/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, imagemagick -, matplotlib +{ + lib, + buildPythonPackage, + fetchPypi, + imagemagick, + matplotlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index a23b9540538c..c0efd43bdcad 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -1,77 +1,78 @@ -{ lib -, stdenv -, fetchPypi -, writeText -, buildPythonPackage -, isPyPy -, pythonOlder +{ + lib, + stdenv, + fetchPypi, + writeText, + buildPythonPackage, + isPyPy, + pythonOlder, -# build-system -, certifi -, pkg-config -, pybind11 -, setuptools -, setuptools-scm + # build-system + certifi, + pkg-config, + pybind11, + setuptools, + setuptools-scm, -# native libraries -, ffmpeg-headless -, freetype -, qhull + # native libraries + ffmpeg-headless, + freetype, + qhull, -# propagates -, contourpy -, cycler -, fonttools -, kiwisolver -, numpy -, packaging -, pillow -, pyparsing -, python-dateutil + # propagates + contourpy, + cycler, + fonttools, + kiwisolver, + numpy, + packaging, + pillow, + pyparsing, + python-dateutil, -# optional -, importlib-resources + # optional + importlib-resources, -# GTK3 -, enableGtk3 ? false -, cairo -, gobject-introspection -, gtk3 -, pycairo -, pygobject3 + # GTK3 + enableGtk3 ? false, + cairo, + gobject-introspection, + gtk3, + pycairo, + pygobject3, -# Tk -# Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter -, enableTk ? (!stdenv.isDarwin && !isPyPy) -, tcl -, tk -, tkinter + # Tk + # Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter + enableTk ? (!stdenv.isDarwin && !isPyPy), + tcl, + tk, + tkinter, -# Ghostscript -, enableGhostscript ? true -, ghostscript + # Ghostscript + enableGhostscript ? true, + ghostscript, -# Qt -, enableQt ? false -, pyqt5 + # Qt + enableQt ? false, + pyqt5, -# Webagg -, enableWebagg ? false -, tornado + # Webagg + enableWebagg ? false, + tornado, -# nbagg -, enableNbagg ? false -, ipykernel + # nbagg + enableNbagg ? false, + ipykernel, -# darwin -, Cocoa + # darwin + Cocoa, -# required for headless detection -, libX11 -, wayland + # required for headless detection + libX11, + wayland, -# Reverse dependency -, sage + # Reverse dependency + sage, }: let @@ -105,42 +106,39 @@ buildPythonPackage rec { '' substituteInPlace pyproject.toml \ --replace-fail '"numpy>=2.0.0rc1,<2.3",' "" - '' + lib.optionalString enableTk '' + '' + + lib.optionalString enableTk '' sed -i '/self.tcl_tk_cache = None/s|None|${tcl_tk_cache}|' setupext.py - '' + lib.optionalString (stdenv.isLinux && interactive) '' + '' + + lib.optionalString (stdenv.isLinux && interactive) '' # fix paths to libraries in dlopen calls (headless detection) substituteInPlace src/_c_internal_utils.c \ --replace libX11.so.6 ${libX11}/lib/libX11.so.6 \ --replace libwayland-client.so.0 ${wayland}/lib/libwayland-client.so.0 ''; - nativeBuildInputs = [ - pkg-config - ] ++ lib.optionals enableGtk3 [ - gobject-introspection - ]; + nativeBuildInputs = [ pkg-config ] ++ lib.optionals enableGtk3 [ gobject-introspection ]; - buildInputs = [ - ffmpeg-headless - freetype - qhull - ] ++ lib.optionals enableGhostscript [ - ghostscript - ] ++ lib.optionals enableGtk3 [ - cairo - gtk3 - ] ++ lib.optionals enableTk [ - libX11 - tcl - tk - ] ++ lib.optionals stdenv.isDarwin [ - Cocoa - ]; + buildInputs = + [ + ffmpeg-headless + freetype + qhull + ] + ++ lib.optionals enableGhostscript [ ghostscript ] + ++ lib.optionals enableGtk3 [ + cairo + gtk3 + ] + ++ lib.optionals enableTk [ + libX11 + tcl + tk + ] + ++ lib.optionals stdenv.isDarwin [ Cocoa ]; # clang-11: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument] - hardeningDisable = lib.optionals stdenv.isDarwin [ - "strictoverflow" - ]; + hardeningDisable = lib.optionals stdenv.isDarwin [ "strictoverflow" ]; build-system = [ certifi @@ -150,34 +148,33 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - # explicit - contourpy - cycler - fonttools - kiwisolver - numpy - packaging - pillow - pyparsing - python-dateutil - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-resources - ] ++ lib.optionals enableGtk3 [ - pycairo - pygobject3 - ] ++ lib.optionals enableQt [ - pyqt5 - ] ++ lib.optionals enableWebagg [ - tornado - ] ++ lib.optionals enableNbagg [ - ipykernel - ] ++ lib.optionals enableTk [ - tkinter - ]; + dependencies = + [ + # explicit + contourpy + cycler + fonttools + kiwisolver + numpy + packaging + pillow + pyparsing + python-dateutil + ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ] + ++ lib.optionals enableGtk3 [ + pycairo + pygobject3 + ] + ++ lib.optionals enableQt [ pyqt5 ] + ++ lib.optionals enableWebagg [ tornado ] + ++ lib.optionals enableNbagg [ ipykernel ] + ++ lib.optionals enableTk [ tkinter ]; passthru.config = { - directories = { basedirlist = "."; }; + directories = { + basedirlist = "."; + }; libs = { system_freetype = true; system_qhull = true; @@ -186,9 +183,11 @@ buildPythonPackage rec { }; }; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; - env.MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); + env.MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI { } passthru.config); # Encountering a ModuleNotFoundError, as describved and investigated at: # https://github.com/NixOS/nixpkgs/issues/255262 . It could be that some of @@ -200,7 +199,13 @@ buildPythonPackage rec { description = "Python plotting library, making publication quality plots"; homepage = "https://matplotlib.org/"; changelog = "https://github.com/matplotlib/matplotlib/releases/tag/v${version}"; - license = with licenses; [ psfl bsd0 ]; - maintainers = with maintainers; [ lovek323 veprbl ]; + license = with licenses; [ + psfl + bsd0 + ]; + maintainers = with maintainers; [ + lovek323 + veprbl + ]; }; } diff --git a/pkgs/development/python-modules/matplotx/default.nix b/pkgs/development/python-modules/matplotx/default.nix index 77643ece548d..978e35e2404e 100644 --- a/pkgs/development/python-modules/matplotx/default.nix +++ b/pkgs/development/python-modules/matplotx/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools -, matplotlib -, numpy -, networkx -, pypng -, scipy +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, + matplotlib, + numpy, + networkx, + pypng, + scipy, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { # Not sure of the details, but we can avoid it by changing the matplotlib backend during testing. env.MPLBACKEND = lib.optionalString stdenv.isDarwin "Agg"; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.all; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.all; disabledTestPaths = [ "tests/test_spy.py" # Requires meshzoo (non-free) and pytest-codeblocks (not packaged) @@ -65,4 +64,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ swflint ]; }; } - diff --git a/pkgs/development/python-modules/matrix-api-async/default.nix b/pkgs/development/python-modules/matrix-api-async/default.nix index d7ae05bddc96..2074c4d314fc 100644 --- a/pkgs/development/python-modules/matrix-api-async/default.nix +++ b/pkgs/development/python-modules/matrix-api-async/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, matrix-client }: +{ + lib, + buildPythonPackage, + fetchPypi, + matrix-client, +}: buildPythonPackage rec { pname = "matrix_api_async"; diff --git a/pkgs/development/python-modules/matrix-client/default.nix b/pkgs/development/python-modules/matrix-client/default.nix index c8975718b57c..034a1745b990 100644 --- a/pkgs/development/python-modules/matrix-client/default.nix +++ b/pkgs/development/python-modules/matrix-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, requests -, responses -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + requests, + responses, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/matrix-common/default.nix b/pkgs/development/python-modules/matrix-common/default.nix index 8252bc267a02..307ae00b4642 100644 --- a/pkgs/development/python-modules/matrix-common/default.nix +++ b/pkgs/development/python-modules/matrix-common/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, setuptools -, attrs -, unittestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + setuptools, + attrs, + unittestCheckHook, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-YuEhzM2fJDQXtX7DenbcRK6xmKelxnr9a4J1mS/yq9E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "matrix_common" ]; diff --git a/pkgs/development/python-modules/matrix-nio/default.nix b/pkgs/development/python-modules/matrix-nio/default.nix index 38daf62a635b..9a284a7f3478 100644 --- a/pkgs/development/python-modules/matrix-nio/default.nix +++ b/pkgs/development/python-modules/matrix-nio/default.nix @@ -1,42 +1,43 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, aiofiles -, aiohttp -, aiohttp-socks -, h11 -, h2 -, jsonschema -, pycryptodome -, unpaddedbase64 + # dependencies + aiofiles, + aiohttp, + aiohttp-socks, + h11, + h2, + jsonschema, + pycryptodome, + unpaddedbase64, -# optional-dependencies -, atomicwrites -, cachetools -, peewee -, python-olm + # optional-dependencies + atomicwrites, + cachetools, + peewee, + python-olm, -# tests -, aioresponses -, faker -, hpack -, hyperframe -, hypothesis -, pytest-aiohttp -, pytest-benchmark -, pytestCheckHook + # tests + aioresponses, + faker, + hpack, + hyperframe, + hypothesis, + pytest-aiohttp, + pytest-benchmark, + pytestCheckHook, -# passthru tests -, nixosTests -, opsdroid -, pantalaimon -, weechatScripts -, zulip + # passthru tests + nixosTests, + opsdroid, + pantalaimon, + weechatScripts, + zulip, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { hash = "sha256-XlswVHLvKOi1qr+I7Mbm4IBjn1DG7glgDsNY48NA5Ew="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiofiles @@ -86,9 +85,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.e2e; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; disabledTests = [ # touches network @@ -103,15 +100,9 @@ buildPythonPackage rec { matrix-appservice-irc matrix-conduit mjolnir - ; - inherit (weechatScripts) - weechat-matrix - ; - inherit - opsdroid - pantalaimon - zulip - ; + ; + inherit (weechatScripts) weechat-matrix; + inherit opsdroid pantalaimon zulip; }; meta = with lib; { @@ -119,6 +110,10 @@ buildPythonPackage rec { changelog = "https://github.com/poljar/matrix-nio/blob/${version}/CHANGELOG.md"; description = "A Python Matrix client library, designed according to sans I/O principles"; license = licenses.isc; - maintainers = with maintainers; [ tilpner emily symphorien ]; + maintainers = with maintainers; [ + tilpner + emily + symphorien + ]; }; } diff --git a/pkgs/development/python-modules/mattermostdriver/default.nix b/pkgs/development/python-modules/mattermostdriver/default.nix index 2089569f9b77..9602e54eeb23 100644 --- a/pkgs/development/python-modules/mattermostdriver/default.nix +++ b/pkgs/development/python-modules/mattermostdriver/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, websockets -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + websockets, + requests, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { sha256 = "2e4d7b4a17d3013e279c6f993746ea18cd60b45d8fa3be24f47bc2de22b9b3b4"; }; - propagatedBuildInputs = [ websockets requests ]; + propagatedBuildInputs = [ + websockets + requests + ]; pythonImportsCheck = [ "mattermostdriver" ]; diff --git a/pkgs/development/python-modules/mautrix/default.nix b/pkgs/development/python-modules/mautrix/default.nix index c054cc25a533..fc2bb57ced92 100644 --- a/pkgs/development/python-modules/mautrix/default.nix +++ b/pkgs/development/python-modules/mautrix/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, # deps -, aiohttp -, attrs -, yarl + aiohttp, + attrs, + yarl, # optional deps -, python-magic -, python-olm -, unpaddedbase64 -, pycryptodome + python-magic, + python-olm, + unpaddedbase64, + pycryptodome, # check deps -, pytestCheckHook -, pytest-asyncio -, aiosqlite -, asyncpg -, ruamel-yaml + pytestCheckHook, + pytest-asyncio, + aiosqlite, + asyncpg, + ruamel-yaml, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - detect_mimetype = [ - python-magic - ]; + detect_mimetype = [ python-magic ]; encryption = [ python-olm unpaddedbase64 @@ -58,15 +57,18 @@ buildPythonPackage rec { ruamel-yaml ] ++ passthru.optional-dependencies.encryption; - pythonImportsCheck = [ - "mautrix" - ]; + pythonImportsCheck = [ "mautrix" ]; meta = with lib; { description = "Asyncio Matrix framework"; homepage = "https://github.com/tulir/mautrix-python"; changelog = "https://github.com/mautrix/python/releases/tag/v${version}"; license = licenses.mpl20; - maintainers = with maintainers; [ nyanloutre ma27 sumnerevans nickcao ]; + maintainers = with maintainers; [ + nyanloutre + ma27 + sumnerevans + nickcao + ]; }; } diff --git a/pkgs/development/python-modules/maxcube-api/default.nix b/pkgs/development/python-modules/maxcube-api/default.nix index 43d0f7a1d7fb..e87568c88e51 100644 --- a/pkgs/development/python-modules/maxcube-api/default.nix +++ b/pkgs/development/python-modules/maxcube-api/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "license=license" "license='MIT'" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ "testSendRadioMsgClosesConnectionOnErrorAndRetriesIfReusingConnection" diff --git a/pkgs/development/python-modules/maxminddb/default.nix b/pkgs/development/python-modules/maxminddb/default.nix index 100191643be8..4340a7837164 100644 --- a/pkgs/development/python-modules/maxminddb/default.nix +++ b/pkgs/development/python-modules/maxminddb/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, libmaxminddb -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + libmaxminddb, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-bF1ZH2JeA7CjTfDH/4FYBnY5e4M14T7OEwxuOeSjr7k="; }; - buildInputs = [ - libmaxminddb - ]; + buildInputs = [ libmaxminddb ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "maxminddb" - ]; + pythonImportsCheck = [ "maxminddb" ]; # The multiprocessing tests fail on Darwin because multiprocessing uses spawn instead of fork, # resulting in an exception when it can’t pickle the `lookup` local function. diff --git a/pkgs/development/python-modules/maya/default.nix b/pkgs/development/python-modules/maya/default.nix index 96387c8f2575..ccb9936a7151 100644 --- a/pkgs/development/python-modules/maya/default.nix +++ b/pkgs/development/python-modules/maya/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, dateparser -, fetchFromGitHub -, freezegun -, humanize -, pendulum -, pytest-mock -, pytestCheckHook -, pythonOlder -, pytz -, setuptools -, snaptime -, tzlocal +{ + lib, + buildPythonPackage, + dateparser, + fetchFromGitHub, + freezegun, + humanize, + pendulum, + pytest-mock, + pytestCheckHook, + pythonOlder, + pytz, + setuptools, + snaptime, + tzlocal, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace-fail "humanize.time.abs_timedelta" "humanize.time._abs_timedelta" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dateparser @@ -53,9 +52,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "maya" - ]; + pythonImportsCheck = [ "maya" ]; disabledTests = [ # https://github.com/timofurrer/maya/issues/202 diff --git a/pkgs/development/python-modules/mayavi/default.nix b/pkgs/development/python-modules/mayavi/default.nix index ad41d36ee027..be2d41eb2cd9 100644 --- a/pkgs/development/python-modules/mayavi/default.nix +++ b/pkgs/development/python-modules/mayavi/default.nix @@ -1,19 +1,20 @@ -{ lib -, apptools -, buildPythonPackage -, envisage -, fetchPypi -, fetchpatch -, numpy -, packaging -, pyface -, pygments -, pyqt5 -, pythonOlder -, pythonAtLeast -, traitsui -, vtk -, wrapQtAppsHook +{ + lib, + apptools, + buildPythonPackage, + envisage, + fetchPypi, + fetchpatch, + numpy, + packaging, + pyface, + pygments, + pyqt5, + pythonOlder, + pythonAtLeast, + traitsui, + vtk, + wrapQtAppsHook, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { --replace "build.build.run(self)" "build.build.run(self); return" ''; - nativeBuildInputs = [ - wrapQtAppsHook - ]; + nativeBuildInputs = [ wrapQtAppsHook ]; propagatedBuildInputs = [ apptools @@ -74,9 +73,7 @@ buildPythonPackage rec { # Needs X server doCheck = false; - pythonImportsCheck = [ - "mayavi" - ]; + pythonImportsCheck = [ "mayavi" ]; preFixup = '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") diff --git a/pkgs/development/python-modules/mayim/default.nix b/pkgs/development/python-modules/mayim/default.nix index 3cbc740aa458..ee383cbb7ca9 100644 --- a/pkgs/development/python-modules/mayim/default.nix +++ b/pkgs/development/python-modules/mayim/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, -, psycopg -, aiosqlite -, asyncmy + psycopg, + aiosqlite, + asyncmy, -# test -, pytest-asyncio + # test + pytest-asyncio, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -37,25 +38,23 @@ buildPythonPackage rec { ''; passthru.optional-dependencies = { - postgres = [ - psycopg - ] ++ psycopg.optional-dependencies.pool; - mysql = [ - asyncmy - ]; - sqlite = [ - aiosqlite - ]; + postgres = [ psycopg ] ++ psycopg.optional-dependencies.pool; + mysql = [ asyncmy ]; + sqlite = [ aiosqlite ]; }; - nativeCheckInputs = [ - pytestCheckHook - pytest-asyncio - ] ++ (with passthru.optional-dependencies; [postgres mysql sqlite]); + nativeCheckInputs = + [ + pytestCheckHook + pytest-asyncio + ] + ++ (with passthru.optional-dependencies; [ + postgres + mysql + sqlite + ]); - pythonImportsCheck = [ - "mayim" - ]; + pythonImportsCheck = [ "mayim" ]; meta = with lib; { description = "Asynchronous SQL hydrator"; diff --git a/pkgs/development/python-modules/mbddns/default.nix b/pkgs/development/python-modules/mbddns/default.nix index 05137b56b004..d738cca95394 100644 --- a/pkgs/development/python-modules/mbddns/default.nix +++ b/pkgs/development/python-modules/mbddns/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "13xzkprqk1v0zlzx4a0n9zzpnlb1g2h6pc62ms66fj72lsmjynj7"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/mbstrdecoder/default.nix b/pkgs/development/python-modules/mbstrdecoder/default.nix index 550c69ba006c..e1c28e53003d 100644 --- a/pkgs/development/python-modules/mbstrdecoder/default.nix +++ b/pkgs/development/python-modules/mbstrdecoder/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, chardet -, pytestCheckHook -, faker +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + chardet, + pytestCheckHook, + faker, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-GcAxXcCYC2XAE8xu/jdDxjPxkLJzbmvWZ3OgmcvQcmk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - chardet - ]; + propagatedBuildInputs = [ chardet ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - faker - ]; + checkInputs = [ faker ]; meta = with lib; { homepage = "https://github.com/thombashi/mbstrdecoder"; diff --git a/pkgs/development/python-modules/mccabe/default.nix b/pkgs/development/python-modules/mccabe/default.nix index 5de63b1888ac..c8cb357cdc98 100644 --- a/pkgs/development/python-modules/mccabe/default.nix +++ b/pkgs/development/python-modules/mccabe/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, hypothesis -, hypothesmith -, python +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + hypothesis, + hypothesmith, + python, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-NI4CQMM7YLvfTlIxku+RnyjLLD19XHeU90AJKQ8jYyU="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; # https://github.com/PyCQA/mccabe/issues/93 doCheck = false; diff --git a/pkgs/development/python-modules/mcstatus/default.nix b/pkgs/development/python-modules/mcstatus/default.nix index 886cf432f7ba..d4c3059e9290 100644 --- a/pkgs/development/python-modules/mcstatus/default.nix +++ b/pkgs/development/python-modules/mcstatus/default.nix @@ -1,14 +1,15 @@ -{ lib -, asyncio-dgram -, buildPythonPackage -, dnspython -, fetchFromGitHub -, poetry-core -, poetry-dynamic-versioning -, pytest-asyncio -, pytest-rerunfailures -, pytestCheckHook -, pythonOlder +{ + lib, + asyncio-dgram, + buildPythonPackage, + dnspython, + fetchFromGitHub, + poetry-core, + poetry-dynamic-versioning, + pytest-asyncio, + pytest-rerunfailures, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "mcstatus" - ]; + pythonImportsCheck = [ "mcstatus" ]; disabledTests = [ # DNS features are limited in the sandbox diff --git a/pkgs/development/python-modules/mcuuid/default.nix b/pkgs/development/python-modules/mcuuid/default.nix index 39236f792be7..0f0a1d922d15 100644 --- a/pkgs/development/python-modules/mcuuid/default.nix +++ b/pkgs/development/python-modules/mcuuid/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -16,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-YwM7CdZVXpUXKXUzFL3AtoDhekLDIvZ/q8taLsHihNk="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # upstream code does not provide tests doCheck = false; - pythonImportsCheck = [ - "mcuuid" - ]; + pythonImportsCheck = [ "mcuuid" ]; meta = with lib; { description = "Getting Minecraft player information from Mojang API"; diff --git a/pkgs/development/python-modules/md-toc/default.nix b/pkgs/development/python-modules/md-toc/default.nix index 34887cc91fa7..2ee15c4c3003 100644 --- a/pkgs/development/python-modules/md-toc/default.nix +++ b/pkgs/development/python-modules/md-toc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fpyutils -, pyfakefs -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fpyutils, + pyfakefs, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,26 +23,18 @@ buildPythonPackage rec { hash = "sha256-nKkKtLEW0pohXiMtjWl2Kzh7SRwZJ/yzhXpDyluLodc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - fpyutils - ]; + propagatedBuildInputs = [ fpyutils ]; nativeCheckInputs = [ pyfakefs pytestCheckHook ]; - pytestFlagsArray = [ - "md_toc/tests/*.py" - ]; + pytestFlagsArray = [ "md_toc/tests/*.py" ]; - pythonImportsCheck = [ - "md_toc" - ]; + pythonImportsCheck = [ "md_toc" ]; meta = with lib; { description = "Table of contents generator for Markdown"; diff --git a/pkgs/development/python-modules/md2gemini/default.nix b/pkgs/development/python-modules/md2gemini/default.nix index a8843f25b3cd..08a39b7fb5e9 100644 --- a/pkgs/development/python-modules/md2gemini/default.nix +++ b/pkgs/development/python-modules/md2gemini/default.nix @@ -1,12 +1,23 @@ -{ lib, buildPythonPackage, fetchPypi, mistune, cjkwrap, wcwidth -, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + mistune, + cjkwrap, + wcwidth, + pytestCheckHook, +}: buildPythonPackage rec { pname = "md2gemini"; version = "1.9.1"; format = "setuptools"; - propagatedBuildInputs = [ mistune cjkwrap wcwidth ]; + propagatedBuildInputs = [ + mistune + cjkwrap + wcwidth + ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "md2gemini" ]; diff --git a/pkgs/development/python-modules/mdformat-admon/default.nix b/pkgs/development/python-modules/mdformat-admon/default.nix index 7025864b440a..a201b8c7911e 100644 --- a/pkgs/development/python-modules/mdformat-admon/default.nix +++ b/pkgs/development/python-modules/mdformat-admon/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, mdformat -, mdit-py-plugins -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + mdformat, + mdit-py-plugins, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-zKc0kKap4ipZ+P+RYDXcwqyzq9NKcTnCmx64cApFxFg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ mdformat mdit-py-plugins ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Mdformat plugin for admonitions"; diff --git a/pkgs/development/python-modules/mdformat-beautysh/default.nix b/pkgs/development/python-modules/mdformat-beautysh/default.nix index 940e4754c270..8c71b83aa264 100644 --- a/pkgs/development/python-modules/mdformat-beautysh/default.nix +++ b/pkgs/development/python-modules/mdformat-beautysh/default.nix @@ -1,13 +1,14 @@ -{ lib -, beautysh -, buildPythonPackage -, fetchFromGitHub -, mdformat -, mdformat-gfm -, mdit-py-plugins -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + beautysh, + buildPythonPackage, + fetchFromGitHub, + mdformat, + mdformat-gfm, + mdit-py-plugins, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-mH9PN6QsPmnIzh/0vxa+5mYLzANUHRruXC0ql4h8myw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ beautysh @@ -35,13 +34,9 @@ buildPythonPackage rec { mdit-py-plugins ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mdformat_beautysh" - ]; + pythonImportsCheck = [ "mdformat_beautysh" ]; meta = with lib; { description = "Mdformat plugin to beautify Bash scripts"; diff --git a/pkgs/development/python-modules/mdformat-footnote/default.nix b/pkgs/development/python-modules/mdformat-footnote/default.nix index 4d452ce5e452..759fced98020 100644 --- a/pkgs/development/python-modules/mdformat-footnote/default.nix +++ b/pkgs/development/python-modules/mdformat-footnote/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, linkify-it-py -, markdown-it-py -, mdformat -, mdit-py-plugins -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + linkify-it-py, + markdown-it-py, + mdformat, + mdit-py-plugins, + pythonOlder, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { hash = "sha256-DUCBWcmB5i6/HkqxjlU3aTRO7i0n2sj+e/doKB8ffeo="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ mdformat mdit-py-plugins ]; - pythonImportsCheck = [ - "mdformat_footnote" - ]; + pythonImportsCheck = [ "mdformat_footnote" ]; meta = with lib; { description = "Footnote format addition for mdformat"; diff --git a/pkgs/development/python-modules/mdformat-frontmatter/default.nix b/pkgs/development/python-modules/mdformat-frontmatter/default.nix index ee2fe29693b2..335aaae95317 100644 --- a/pkgs/development/python-modules/mdformat-frontmatter/default.nix +++ b/pkgs/development/python-modules/mdformat-frontmatter/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, linkify-it-py -, markdown-it-py -, mdformat -, mdit-py-plugins -, ruamel-yaml -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + linkify-it-py, + markdown-it-py, + mdformat, + mdit-py-plugins, + ruamel-yaml, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-2heQw8LL/ILY36oItBeQq33qjVBGT51qGG4CcCEDutA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ mdformat @@ -34,15 +33,16 @@ buildPythonPackage rec { ruamel-yaml ]; - pythonImportsCheck = [ - "mdformat_frontmatter" - ]; + pythonImportsCheck = [ "mdformat_frontmatter" ]; meta = with lib; { description = "Mdformat plugin to ensure frontmatter is respected"; homepage = "https://github.com/butler54/mdformat-frontmatter"; changelog = "https://github.com/butler54/mdformat-frontmatter/blob/v{version}/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ aldoborrero polarmutex ]; + maintainers = with maintainers; [ + aldoborrero + polarmutex + ]; }; } diff --git a/pkgs/development/python-modules/mdformat-gfm/default.nix b/pkgs/development/python-modules/mdformat-gfm/default.nix index 15a79eb0f4ca..dc057d9a82e0 100644 --- a/pkgs/development/python-modules/mdformat-gfm/default.nix +++ b/pkgs/development/python-modules/mdformat-gfm/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, linkify-it-py -, markdown-it-py -, mdformat -, mdformat-tables -, mdit-py-plugins -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + linkify-it-py, + markdown-it-py, + mdformat, + mdformat-tables, + mdit-py-plugins, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-c1jJwyTL8IgQnIAJFoPSuJ8VEYgnQ4slZyV0bHlUHLQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ markdown-it-py @@ -37,23 +36,22 @@ buildPythonPackage rec { linkify-it-py ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ "test_default_style__api" "test_default_style__cli" ]; - pythonImportsCheck = [ - "mdformat_gfm" - ]; + pythonImportsCheck = [ "mdformat_gfm" ]; meta = with lib; { description = "Mdformat plugin for GitHub Flavored Markdown compatibility"; homepage = "https://github.com/hukkin/mdformat-gfm"; license = licenses.mit; - maintainers = with maintainers; [ aldoborrero polarmutex ]; + maintainers = with maintainers; [ + aldoborrero + polarmutex + ]; }; } diff --git a/pkgs/development/python-modules/mdformat-mkdocs/default.nix b/pkgs/development/python-modules/mdformat-mkdocs/default.nix index 9415fee83d7a..f3b06888b6cb 100644 --- a/pkgs/development/python-modules/mdformat-mkdocs/default.nix +++ b/pkgs/development/python-modules/mdformat-mkdocs/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, mdformat -, mdformat-admon -, mdformat-gfm -, mdit-py-plugins -, more-itertools -, pythonOlder -, pytest-snapshot -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + mdformat, + mdformat-admon, + mdformat-gfm, + mdit-py-plugins, + more-itertools, + pythonOlder, + pytest-snapshot, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-wx95Lsqgi7fM/1s6fSHxXOs396mIR9S9yCRebC2VFpI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ mdformat @@ -48,9 +47,7 @@ buildPythonPackage rec { "tests/format/test_parsed_result.py" ]; - pythonImportsCheck = [ - "mdformat_mkdocs" - ]; + pythonImportsCheck = [ "mdformat_mkdocs" ]; meta = with lib; { description = "Mdformat plugin for MkDocs"; diff --git a/pkgs/development/python-modules/mdformat-nix-alejandra/default.nix b/pkgs/development/python-modules/mdformat-nix-alejandra/default.nix index d59e09f999e0..a5e55044d4c0 100644 --- a/pkgs/development/python-modules/mdformat-nix-alejandra/default.nix +++ b/pkgs/development/python-modules/mdformat-nix-alejandra/default.nix @@ -1,11 +1,12 @@ -{ lib -, alejandra -, buildPythonPackage -, fetchFromGitHub -, mdformat -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + alejandra, + buildPythonPackage, + fetchFromGitHub, + mdformat, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,21 +28,13 @@ buildPythonPackage rec { --replace-fail '"alejandra"' '"${lib.getExe alejandra}"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - mdformat - ]; + propagatedBuildInputs = [ mdformat ]; - pythonImportsCheck = [ - "mdformat_nix_alejandra" - ]; + pythonImportsCheck = [ "mdformat_nix_alejandra" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Mdformat plugin format Nix code blocks with alejandra"; diff --git a/pkgs/development/python-modules/mdformat-simple-breaks/default.nix b/pkgs/development/python-modules/mdformat-simple-breaks/default.nix index 9bff43e4d402..29a370944110 100644 --- a/pkgs/development/python-modules/mdformat-simple-breaks/default.nix +++ b/pkgs/development/python-modules/mdformat-simple-breaks/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, mdformat -, mdit-py-plugins -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + mdformat, + mdit-py-plugins, + pythonOlder, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - mdformat - ]; + propagatedBuildInputs = [ mdformat ]; - pythonImportsCheck = [ - "mdformat_simple_breaks" - ]; + pythonImportsCheck = [ "mdformat_simple_breaks" ]; meta = with lib; { description = "Mdformat plugin to render thematic breaks using three dashes"; diff --git a/pkgs/development/python-modules/mdformat-tables/default.nix b/pkgs/development/python-modules/mdformat-tables/default.nix index cfd468d9cc6e..e1226229712c 100644 --- a/pkgs/development/python-modules/mdformat-tables/default.nix +++ b/pkgs/development/python-modules/mdformat-tables/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, mdformat -, mdit-py-plugins -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + mdformat, + mdit-py-plugins, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,26 +23,21 @@ buildPythonPackage rec { hash = "sha256-Q61GmaRxjxJh9GjyR8QCZOH0njFUtAWihZ9lFQJ2nQQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - mdformat - ]; + propagatedBuildInputs = [ mdformat ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mdformat_tables" - ]; + pythonImportsCheck = [ "mdformat_tables" ]; meta = with lib; { description = "An mdformat plugin for rendering tables"; homepage = "https://github.com/executablebooks/mdformat-tables"; license = licenses.mit; - maintainers = with maintainers; [ aldoborrero polarmutex ]; + maintainers = with maintainers; [ + aldoborrero + polarmutex + ]; }; } diff --git a/pkgs/development/python-modules/mdformat-toc/default.nix b/pkgs/development/python-modules/mdformat-toc/default.nix index 1597dcec197a..c48467077d3f 100644 --- a/pkgs/development/python-modules/mdformat-toc/default.nix +++ b/pkgs/development/python-modules/mdformat-toc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mdformat -, mdit-py-plugins -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mdformat, + mdit-py-plugins, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,26 +23,21 @@ buildPythonPackage rec { hash = "sha256-3EX6kGez408tEYiR9VSvi3GTrb4ds+HJwpFflv77nkg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - mdformat - ]; + propagatedBuildInputs = [ mdformat ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mdformat_toc" - ]; + pythonImportsCheck = [ "mdformat_toc" ]; meta = with lib; { description = "Mdformat plugin to generate a table of contents"; homepage = "https://github.com/hukkin/mdformat-toc"; license = licenses.mit; - maintainers = with maintainers; [ aldoborrero polarmutex ]; + maintainers = with maintainers; [ + aldoborrero + polarmutex + ]; }; } diff --git a/pkgs/development/python-modules/mdformat/default.nix b/pkgs/development/python-modules/mdformat/default.nix index eec56ee47944..5d8233dcf2cf 100644 --- a/pkgs/development/python-modules/mdformat/default.nix +++ b/pkgs/development/python-modules/mdformat/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonApplication -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, makeWrapper -, markdown-it-py -, pytestCheckHook -, pythonOlder -, setuptools -, tomli -, typing-extensions +{ + lib, + buildPythonApplication, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + makeWrapper, + markdown-it-py, + pytestCheckHook, + pythonOlder, + setuptools, + tomli, + typing-extensions, }: buildPythonPackage rec { @@ -26,25 +27,16 @@ buildPythonPackage rec { hash = "sha256-umtfbhN6sDR/rFr1LwmJ21Ph9bK1Qq43bmMVzGCPD5s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - markdown-it-py - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + propagatedBuildInputs = + [ markdown-it-py ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mdformat" - ]; + pythonImportsCheck = [ "mdformat" ]; passthru = { withPlugins = throw "Use pkgs.mdformat.withPlugins, i.e. the top-level attribute."; @@ -55,7 +47,10 @@ buildPythonPackage rec { homepage = "https://mdformat.rtfd.io/"; changelog = "https://github.com/executablebooks/mdformat/blob/${version}/docs/users/changelog.md"; license = licenses.mit; - maintainers = with maintainers; [ fab aldoborrero ]; + maintainers = with maintainers; [ + fab + aldoborrero + ]; mainProgram = "mdformat"; }; } diff --git a/pkgs/development/python-modules/mdit-py-plugins/default.nix b/pkgs/development/python-modules/mdit-py-plugins/default.nix index ad3e8580f11d..6b68f4f64322 100644 --- a/pkgs/development/python-modules/mdit-py-plugins/default.nix +++ b/pkgs/development/python-modules/mdit-py-plugins/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, flit-core -, markdown-it-py -, pytest-regressions -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + flit-core, + markdown-it-py, + pytest-regressions, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-YBJu0vIOD747DrJLcqiZMHq34+gHdXeGLCw1OxxzIJ0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - markdown-it-py - ]; + propagatedBuildInputs = [ markdown-it-py ]; nativeCheckInputs = [ pytestCheckHook pytest-regressions ]; - pythonImportsCheck = [ - "mdit_py_plugins" - ]; + pythonImportsCheck = [ "mdit_py_plugins" ]; meta = with lib; { description = "Collection of core plugins for markdown-it-py"; diff --git a/pkgs/development/python-modules/mdp/default.nix b/pkgs/development/python-modules/mdp/default.nix index 40f57408703f..69102cddcd3f 100644 --- a/pkgs/development/python-modules/mdp/default.nix +++ b/pkgs/development/python-modules/mdp/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future -, joblib -, numpy -, pytest -, pythonOlder -, scikit-learn +{ + lib, + buildPythonPackage, + fetchPypi, + future, + joblib, + numpy, + pytest, + pythonOlder, + scikit-learn, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mdtraj/default.nix b/pkgs/development/python-modules/mdtraj/default.nix index a99b36c78765..0d2cb8f5125c 100644 --- a/pkgs/development/python-modules/mdtraj/default.nix +++ b/pkgs/development/python-modules/mdtraj/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, llvmPackages -, zlib -, cython_0 -, oldest-supported-numpy -, setuptools -, wheel -, astunparse -, numpy -, packaging -, pyparsing -, scipy -, gsd -, networkx -, pandas -, pytest-xdist -, pytestCheckHook -, tables +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + llvmPackages, + zlib, + cython_0, + oldest-supported-numpy, + setuptools, + wheel, + astunparse, + numpy, + packaging, + pyparsing, + scipy, + gsd, + networkx, + pandas, + pytest-xdist, + pytestCheckHook, + tables, }: buildPythonPackage rec { @@ -61,7 +62,7 @@ buildPythonPackage rec { name = "fix-intrinsics-flag.patch"; url = "https://github.com/mdtraj/mdtraj/commit/d6041c645d51898e2a09030633210213eec7d4c5.patch"; hash = "sha256-kcnlHMoA/exJzV8iQltH+LWXrvSk7gsUV+yWK6xn0jg="; - }) + }) ]; build-system = [ @@ -71,11 +72,7 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - zlib - ] ++ lib.optionals stdenv.cc.isClang [ - llvmPackages.openmp - ]; + buildInputs = [ zlib ] ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]; dependencies = [ astunparse diff --git a/pkgs/development/python-modules/mdurl/default.nix b/pkgs/development/python-modules/mdurl/default.nix index 4c3bde1d2dd4..6a5e3a7cdc73 100644 --- a/pkgs/development/python-modules/mdurl/default.nix +++ b/pkgs/development/python-modules/mdurl/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-wxV8DKeTwKpFTUBuGTQXaVHc0eW1//Y+2V8Kgs85TDM="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mdurl" - ]; + pythonImportsCheck = [ "mdurl" ]; meta = with lib; { description = "URL utilities for markdown-it"; diff --git a/pkgs/development/python-modules/mdutils/default.nix b/pkgs/development/python-modules/mdutils/default.nix index 7d8249547a83..22ea7ee473c1 100644 --- a/pkgs/development/python-modules/mdutils/default.nix +++ b/pkgs/development/python-modules/mdutils/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix index 823d1e26efef..07dc9f00277c 100644 --- a/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix +++ b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, markdown -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + markdown, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/measurement/default.nix b/pkgs/development/python-modules/measurement/default.nix index c16b03d8e829..d69e8d4532dc 100644 --- a/pkgs/development/python-modules/measurement/default.nix +++ b/pkgs/development/python-modules/measurement/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, isPy3k -, flit-core -, flit-scm -, sympy -, pytestCheckHook -, sphinx +{ + lib, + fetchFromGitHub, + buildPythonPackage, + isPy3k, + flit-core, + flit-scm, + sympy, + pytestCheckHook, + sphinx, }: buildPythonPackage rec { @@ -34,13 +35,9 @@ buildPythonPackage rec { --replace "--cov=measurement" "" ''; - propagatedBuildInputs = [ - sympy - ]; + propagatedBuildInputs = [ sympy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Use and manipulate unit-aware measurement objects in Python"; diff --git a/pkgs/development/python-modules/meater-python/default.nix b/pkgs/development/python-modules/meater-python/default.nix index 219af570dfe8..1d707837ebe7 100644 --- a/pkgs/development/python-modules/meater-python/default.nix +++ b/pkgs/development/python-modules/meater-python/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-86XJmKOc2MCyU9v0UAZsPCUL/kAXywOlQOIHaykNF1o="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "meater" - ]; + pythonImportsCheck = [ "meater" ]; meta = with lib; { description = "Library for the Apption Labs Meater cooking probe"; diff --git a/pkgs/development/python-modules/mecab-python3/default.nix b/pkgs/development/python-modules/mecab-python3/default.nix index f661fad48846..f448230821a7 100644 --- a/pkgs/development/python-modules/mecab-python3/default.nix +++ b/pkgs/development/python-modules/mecab-python3/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mecab -, swig -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + mecab, + swig, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -26,20 +27,20 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - mecab - ]; + buildInputs = [ mecab ]; doCheck = false; - pythonImportsCheck = [ - "MeCab" - ]; + pythonImportsCheck = [ "MeCab" ]; meta = with lib; { description = "A python wrapper for mecab: Morphological Analysis engine"; - homepage = "https://github.com/SamuraiT/mecab-python3"; + homepage = "https://github.com/SamuraiT/mecab-python3"; changelog = "https://github.com/SamuraiT/mecab-python3/releases/tag/v${version}"; - license = with licenses; [ gpl2 lgpl21 bsd3 ]; # any of the three + license = with licenses; [ + gpl2 + lgpl21 + bsd3 + ]; # any of the three }; } diff --git a/pkgs/development/python-modules/mechanicalsoup/default.nix b/pkgs/development/python-modules/mechanicalsoup/default.nix index 93b61a40972d..587d54c8004d 100644 --- a/pkgs/development/python-modules/mechanicalsoup/default.nix +++ b/pkgs/development/python-modules/mechanicalsoup/default.nix @@ -1,14 +1,15 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, lxml -, pytest-httpbin -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + lxml, + pytest-httpbin, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { @@ -48,15 +49,16 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "mechanicalsoup" - ]; + pythonImportsCheck = [ "mechanicalsoup" ]; meta = with lib; { description = "Python library for automating interaction with websites"; homepage = "https://github.com/hickford/MechanicalSoup"; changelog = "https://github.com/MechanicalSoup/MechanicalSoup/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ jgillich fab ]; + maintainers = with maintainers; [ + jgillich + fab + ]; }; } diff --git a/pkgs/development/python-modules/mediafile/default.nix b/pkgs/development/python-modules/mediafile/default.nix index 9faed762afaa..a8c82e79235b 100644 --- a/pkgs/development/python-modules/mediafile/default.nix +++ b/pkgs/development/python-modules/mediafile/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, mutagen -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + mutagen, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-5HHfG1hCIbM/QSXgB61yHNNWJTsuyAh6CQJ7SZhZuvo="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ mutagen six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mediafile" - ]; + pythonImportsCheck = [ "mediafile" ]; meta = with lib; { description = "Python interface to the metadata tags for many audio file formats"; diff --git a/pkgs/development/python-modules/mediafire-dl/default.nix b/pkgs/development/python-modules/mediafire-dl/default.nix index 3cc81a6ce09c..d4f5235007a5 100644 --- a/pkgs/development/python-modules/mediafire-dl/default.nix +++ b/pkgs/development/python-modules/mediafire-dl/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, requests -, six -, tqdm +{ + lib, + fetchFromGitHub, + buildPythonPackage, + requests, + six, + tqdm, }: buildPythonPackage { @@ -23,9 +24,7 @@ buildPythonPackage { tqdm ]; - pythonImportsCheck = [ - "mediafire_dl" - ]; + pythonImportsCheck = [ "mediafire_dl" ]; meta = with lib; { description = "Simple command-line script to download files from mediafire based on gdown"; diff --git a/pkgs/development/python-modules/mediapy/default.nix b/pkgs/development/python-modules/mediapy/default.nix index bd8ccc0e78fc..aa5e7fc24c70 100644 --- a/pkgs/development/python-modules/mediapy/default.nix +++ b/pkgs/development/python-modules/mediapy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core -, ipython -, matplotlib -, numpy -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, + ipython, + matplotlib, + numpy, + pillow, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-enxOx0hZ+fksk8ibsDWg0Bl/cJeSBHE37bN/D1ucECg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ ipython @@ -32,9 +31,7 @@ buildPythonPackage rec { pillow ]; - pythonImportsCheck = [ - "mediapy" - ]; + pythonImportsCheck = [ "mediapy" ]; meta = with lib; { description = "Read/write/show images and videos in an IPython notebook"; diff --git a/pkgs/development/python-modules/medpy/default.nix b/pkgs/development/python-modules/medpy/default.nix index 813b8ac71a52..0fc6d1fc97aa 100644 --- a/pkgs/development/python-modules/medpy/default.nix +++ b/pkgs/development/python-modules/medpy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, unittestCheckHook -, boost -, numpy -, scipy -, simpleitk +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + unittestCheckHook, + boost, + numpy, + scipy, + simpleitk, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-kzOTYBcXAAEYoe/m/BjWNaQX4ljG17NxndevAt5KxjQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ boost @@ -35,9 +34,7 @@ buildPythonPackage rec { simpleitk ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; preCheck = '' rm -r medpy/ # prevent importing from build directory at test time diff --git a/pkgs/development/python-modules/meeko/default.nix b/pkgs/development/python-modules/meeko/default.nix index 14162af458fc..a1e49a19b946 100644 --- a/pkgs/development/python-modules/meeko/default.nix +++ b/pkgs/development/python-modules/meeko/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, numpy -, pytestCheckHook -, pythonOlder -, rdkit -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + numpy, + pytestCheckHook, + pythonOlder, + rdkit, + scipy, }: buildPythonPackage rec { @@ -44,13 +45,9 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "meeko" - ]; + pythonImportsCheck = [ "meeko" ]; meta = { description = "Python package for preparing small molecule for docking"; diff --git a/pkgs/development/python-modules/meep/default.nix b/pkgs/development/python-modules/meep/default.nix index de8f8994a2fb..be76ee826ca7 100644 --- a/pkgs/development/python-modules/meep/default.nix +++ b/pkgs/development/python-modules/meep/default.nix @@ -1,33 +1,34 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, autoreconfHook -, pkg-config -, mpiCheckPhaseHook -, gfortran -, mpi -, blas -, lapack -, fftw -, hdf5-mpi -, swig -, gsl -, harminv -, libctl -, libGDSII -, openssh -, guile -, python -, numpy -, scipy -, matplotlib -, h5py-mpi -, cython -, autograd -, mpi4py +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + autoreconfHook, + pkg-config, + mpiCheckPhaseHook, + gfortran, + mpi, + blas, + lapack, + fftw, + hdf5-mpi, + swig, + gsl, + harminv, + libctl, + libGDSII, + openssh, + guile, + python, + numpy, + scipy, + matplotlib, + h5py-mpi, + cython, + autograd, + mpi4py, }: assert !blas.isILP64; @@ -75,19 +76,20 @@ buildPythonPackage rec { gsl ]; - propagatedBuildInputs = [ - mpi - numpy - scipy - matplotlib - h5py-mpi - cython - autograd - mpi4py - ] - ++ lib.optionals (!pythonOlder "3.12") [ + propagatedBuildInputs = + [ + mpi + numpy + scipy + matplotlib + h5py-mpi + cython + autograd + mpi4py + ] + ++ lib.optionals (!pythonOlder "3.12") [ setuptools # used in python/visualization.py - ]; + ]; propagatedUserEnvPkgs = [ mpi ]; @@ -110,17 +112,22 @@ buildPythonPackage rec { "--enable-maintainer-mode" ]; - passthru = { inherit mpi; }; + passthru = { + inherit mpi; + }; /* - This test is taken from the MEEP tutorial "Fields in a Waveguide" at - . - It is important, that the test actually performs a calculation - (calls `sim.run()`), as only then MPI will be initialised and MPI linking - errors can be caught. + This test is taken from the MEEP tutorial "Fields in a Waveguide" at + . + It is important, that the test actually performs a calculation + (calls `sim.run()`), as only then MPI will be initialised and MPI linking + errors can be caught. */ doCheck = true; - nativeCheckInputs = [ mpiCheckPhaseHook openssh ]; + nativeCheckInputs = [ + mpiCheckPhaseHook + openssh + ]; checkPhase = '' runHook preCheck @@ -156,6 +163,9 @@ buildPythonPackage rec { homepage = "https://meep.readthedocs.io/en/latest/"; license = licenses.gpl2Only; platforms = platforms.linux; - maintainers = with maintainers; [ sheepforce markuskowa ]; + maintainers = with maintainers; [ + sheepforce + markuskowa + ]; }; } diff --git a/pkgs/development/python-modules/meinheld/default.nix b/pkgs/development/python-modules/meinheld/default.nix index f84df9eef46f..f29125287d7a 100644 --- a/pkgs/development/python-modules/meinheld/default.nix +++ b/pkgs/development/python-modules/meinheld/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, greenlet }: +{ + lib, + fetchPypi, + buildPythonPackage, + greenlet, +}: buildPythonPackage rec { pname = "meinheld"; @@ -21,9 +26,7 @@ buildPythonPackage rec { # No tests doCheck = false; - pythonImportsCheck = [ - "meinheld" - ]; + pythonImportsCheck = [ "meinheld" ]; meta = with lib; { description = "High performance asynchronous Python WSGI Web Server"; diff --git a/pkgs/development/python-modules/meld3/default.nix b/pkgs/development/python-modules/meld3/default.nix index 039b22358d4d..53c268ca6a0d 100644 --- a/pkgs/development/python-modules/meld3/default.nix +++ b/pkgs/development/python-modules/meld3/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -20,5 +21,4 @@ buildPythonPackage rec { homepage = "https://github.com/supervisor/meld3"; license = licenses.free; }; - } diff --git a/pkgs/development/python-modules/memestra/default.nix b/pkgs/development/python-modules/memestra/default.nix index 0bbf08a84698..99e5a6df2785 100644 --- a/pkgs/development/python-modules/memestra/default.nix +++ b/pkgs/development/python-modules/memestra/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beniget -, frilouz -, gast -, nbconvert -, nbformat -, pyyaml +{ + lib, + buildPythonPackage, + fetchPypi, + beniget, + frilouz, + gast, + nbconvert, + nbformat, + pyyaml, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { # Tests are not detected and so the checkPhase fails doCheck = false; - pythonImportsCheck = [ - "memestra" - ]; + pythonImportsCheck = [ "memestra" ]; meta = with lib; { description = "A linter that tracks reference to deprecated functions."; diff --git a/pkgs/development/python-modules/memory-allocator/default.nix b/pkgs/development/python-modules/memory-allocator/default.nix index 34dd55bb8dc6..79d421dfef60 100644 --- a/pkgs/development/python-modules/memory-allocator/default.nix +++ b/pkgs/development/python-modules/memory-allocator/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, cython +{ + lib, + fetchPypi, + buildPythonPackage, + cython, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -22,7 +23,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "memory_allocator" ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "An extension class to allocate memory easily with cython"; diff --git a/pkgs/development/python-modules/memory-profiler/default.nix b/pkgs/development/python-modules/memory-profiler/default.nix index 9264f136940c..fe330f8f1c6d 100644 --- a/pkgs/development/python-modules/memory-profiler/default.nix +++ b/pkgs/development/python-modules/memory-profiler/default.nix @@ -1,6 +1,7 @@ -{ lib -, python -, fetchPypi +{ + lib, + python, + fetchPypi, }: python.pkgs.buildPythonPackage rec { diff --git a/pkgs/development/python-modules/meraki/default.nix b/pkgs/development/python-modules/meraki/default.nix index 1e1d3c3f67d6..628a8c586162 100644 --- a/pkgs/development/python-modules/meraki/default.nix +++ b/pkgs/development/python-modules/meraki/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # All tests require an API key doCheck = false; - pythonImportsCheck = [ - "meraki" - ]; + pythonImportsCheck = [ "meraki" ]; meta = with lib; { description = "Provides all current Meraki dashboard API calls to interface with the Cisco Meraki cloud-managed platform"; diff --git a/pkgs/development/python-modules/mercadopago/default.nix b/pkgs/development/python-modules/mercadopago/default.nix index dc71fc326667..c3f97069751c 100644 --- a/pkgs/development/python-modules/mercadopago/default.nix +++ b/pkgs/development/python-modules/mercadopago/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-ABxYGYUBOzeOSE0yK8jym+ldinDUCTpqO165OWhszgs="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # require internet doCheck = false; - pythonImportsCheck = [ - "mercadopago" - ]; + pythonImportsCheck = [ "mercadopago" ]; meta = with lib; { description = "This library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments."; diff --git a/pkgs/development/python-modules/mercantile/default.nix b/pkgs/development/python-modules/mercantile/default.nix index 8f496bca53c5..7fd6e040a2af 100644 --- a/pkgs/development/python-modules/mercantile/default.nix +++ b/pkgs/development/python-modules/mercantile/default.nix @@ -1,7 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, click -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { @@ -18,7 +21,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ click ]; - nativeCheckInputs = [ pytestCheckHook hypothesis ]; + nativeCheckInputs = [ + pytestCheckHook + hypothesis + ]; meta = with lib; { description = "Spherical mercator tile and coordinate utilities"; diff --git a/pkgs/development/python-modules/merge3/default.nix b/pkgs/development/python-modules/merge3/default.nix index 838bfc6a32c2..1c4d10e319bd 100644 --- a/pkgs/development/python-modules/merge3/default.nix +++ b/pkgs/development/python-modules/merge3/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { sha256 = "sha256-MEBumThvSmUoD7nEPmgYkPoqHYOcrCdZ0VbHzBYDAVk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "merge3" - ]; + pythonImportsCheck = [ "merge3" ]; meta = with lib; { description = "Python implementation of 3-way merge"; diff --git a/pkgs/development/python-modules/mergedb/default.nix b/pkgs/development/python-modules/mergedb/default.nix index e5973aa280d2..c9b92ba75df0 100644 --- a/pkgs/development/python-modules/mergedb/default.nix +++ b/pkgs/development/python-modules/mergedb/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, colorama -, fetchPypi -, jinja2 -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + colorama, + fetchPypi, + jinja2, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sha256 = "2034c18dca23456c5b166b63d94300bcd8ec9f386e6cd639c2f66e141c0313f9"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ pyyaml @@ -33,13 +32,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mergedb" - ]; + pythonImportsCheck = [ "mergedb" ]; meta = with lib; { description = "A tool/library for deep merging YAML files"; @@ -49,4 +44,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ graysonhead ]; }; } - diff --git a/pkgs/development/python-modules/mergedeep/default.nix b/pkgs/development/python-modules/mergedeep/default.nix index 7d812ceb1e4d..7dc4bb2d7e58 100644 --- a/pkgs/development/python-modules/mergedeep/default.nix +++ b/pkgs/development/python-modules/mergedeep/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, isPy27, fetchFromGitHub, pytest }: +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, + pytest, +}: buildPythonPackage rec { pname = "mergedeep"; diff --git a/pkgs/development/python-modules/mergedict/default.nix b/pkgs/development/python-modules/mergedict/default.nix index 3cfb674a9b29..2d268955bf7a 100644 --- a/pkgs/development/python-modules/mergedict/default.nix +++ b/pkgs/development/python-modules/mergedict/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/merkletools/default.nix b/pkgs/development/python-modules/merkletools/default.nix index b5dc5adf3dcc..4a50b73c5a81 100644 --- a/pkgs/development/python-modules/merkletools/default.nix +++ b/pkgs/development/python-modules/merkletools/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { --replace "install_requires=install_requires" "install_requires=[]," ''; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "merkletools" - ]; + pythonImportsCheck = [ "merkletools" ]; meta = with lib; { description = "Python tools for creating Merkle trees, generating Merkle proofs, and verification of Merkle proofs"; diff --git a/pkgs/development/python-modules/mesa/default.nix b/pkgs/development/python-modules/mesa/default.nix index a7664ca70468..7f13bcf6c53d 100644 --- a/pkgs/development/python-modules/mesa/default.nix +++ b/pkgs/development/python-modules/mesa/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, cookiecutter -, networkx -, pandas -, tornado -, tqdm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + cookiecutter, + networkx, + pandas, + tornado, + tqdm, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { tqdm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ "test_examples" diff --git a/pkgs/development/python-modules/meshcat/default.nix b/pkgs/development/python-modules/meshcat/default.nix index ff1ef37b22e5..da2329596bd4 100644 --- a/pkgs/development/python-modules/meshcat/default.nix +++ b/pkgs/development/python-modules/meshcat/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ipython -, u-msgpack-python -, numpy -, tornado -, pyzmq -, pyngrok -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + ipython, + u-msgpack-python, + numpy, + tornado, + pyzmq, + pyngrok, + pillow, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/meshio/default.nix b/pkgs/development/python-modules/meshio/default.nix index f0c170202683..91346b9c6b18 100644 --- a/pkgs/development/python-modules/meshio/default.nix +++ b/pkgs/development/python-modules/meshio/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, netcdf4 -, h5py -, exdown -, pytestCheckHook -, rich -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + netcdf4, + h5py, + exdown, + pytestCheckHook, + rich, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-8h8Bq9nym6BuoRkwSz055hBCHP6Tud0jNig0kZ+HWG0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -36,7 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = ["meshio"]; + pythonImportsCheck = [ "meshio" ]; meta = with lib; { homepage = "https://github.com/nschloe/meshio"; diff --git a/pkgs/development/python-modules/meson-python/default.nix b/pkgs/development/python-modules/meson-python/default.nix index c92c0705aaae..31361667f45d 100644 --- a/pkgs/development/python-modules/meson-python/default.nix +++ b/pkgs/development/python-modules/meson-python/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, colorama -, meson -, ninja -, pyproject-metadata -, tomli -, typing-extensions -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + colorama, + meson, + ninja, + pyproject-metadata, + tomli, + typing-extensions, + pythonOlder, }: buildPythonPackage rec { @@ -27,21 +28,15 @@ buildPythonPackage rec { ninja pyproject-metadata tomli - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; propagatedBuildInputs = [ meson ninja pyproject-metadata tomli - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; - setupHooks = [ - ./add-build-flags.sh - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; + setupHooks = [ ./add-build-flags.sh ]; meta = { changelog = "https://github.com/mesonbuild/meson-python/blob/${version}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/mesonpep517/default.nix b/pkgs/development/python-modules/mesonpep517/default.nix index 237f7f4876ec..f47f40e0d1f9 100644 --- a/pkgs/development/python-modules/mesonpep517/default.nix +++ b/pkgs/development/python-modules/mesonpep517/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, meson -, ninja -, setuptools -, toml -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + meson, + ninja, + setuptools, + toml, + wheel, }: # TODO: offer meson as a Python package so we have dist-info folder. @@ -35,7 +36,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ toml ]; - propagatedNativeBuildInputs = [ meson ninja ]; + propagatedNativeBuildInputs = [ + meson + ninja + ]; meta = { description = "Create pep517 compliant packages from the meson build system"; diff --git a/pkgs/development/python-modules/messagebird/default.nix b/pkgs/development/python-modules/messagebird/default.nix index 4365e4462374..e83244725251 100644 --- a/pkgs/development/python-modules/messagebird/default.nix +++ b/pkgs/development/python-modules/messagebird/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pyjwt -, mock -, python-dateutil -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pyjwt, + mock, + python-dateutil, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "messagebird" - ]; + pythonImportsCheck = [ "messagebird" ]; disabledTestPaths = [ # ValueError: not enough values to unpack (expected 6, got 0) diff --git a/pkgs/development/python-modules/metakernel/default.nix b/pkgs/development/python-modules/metakernel/default.nix index e888ccfe98f8..81d8e852dd52 100644 --- a/pkgs/development/python-modules/metakernel/default.nix +++ b/pkgs/development/python-modules/metakernel/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, ipykernel -, jedi -, jupyter-core -, pexpect -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + ipykernel, + jedi, + jupyter-core, + pexpect, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Siff2FO4SfASgkLFUgTuWXpajYZClPJghLry+8gU1aQ="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ ipykernel @@ -35,9 +34,7 @@ buildPythonPackage rec { # Tests hang, so disable doCheck = false; - pythonImportsCheck = [ - "metakernel" - ]; + pythonImportsCheck = [ "metakernel" ]; meta = with lib; { description = "Jupyter/IPython Kernel Tools"; diff --git a/pkgs/development/python-modules/metar/default.nix b/pkgs/development/python-modules/metar/default.nix index b130672810ec..6adcc91bda99 100644 --- a/pkgs/development/python-modules/metar/default.nix +++ b/pkgs/development/python-modules/metar/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-ZDjlXcSTUcSP7oRdhzLpXf/fLUA7Nkc6nj2I6vovbHg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "metar" - ]; + pythonImportsCheck = [ "metar" ]; meta = with lib; { description = "Python parser for coded METAR weather reports"; diff --git a/pkgs/development/python-modules/metawear/default.nix b/pkgs/development/python-modules/metawear/default.nix index 96f8c9434500..c95efd8e3188 100644 --- a/pkgs/development/python-modules/metawear/default.nix +++ b/pkgs/development/python-modules/metawear/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, gcc -, cython -, boost -, bluez -, nlohmann_json -, pyserial -, requests -, warble +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + gcc, + cython, + boost, + bluez, + nlohmann_json, + pyserial, + requests, + warble, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-gNEI6P6GslNd1DzFwCFndVIfUvSTPYollGdqkZhQ4Y8="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; buildInputs = [ boost @@ -47,7 +46,10 @@ buildPythonPackage rec { enableParallelBuilding = true; - pythonImportsCheck = [ "mbientlab" "mbientlab.metawear" ]; + pythonImportsCheck = [ + "mbientlab" + "mbientlab.metawear" + ]; meta = with lib; { description = "Python bindings for the MetaWear C++ SDK by MbientLab"; @@ -57,4 +59,3 @@ buildPythonPackage rec { platforms = platforms.linux; }; } - diff --git a/pkgs/development/python-modules/meteoalertapi/default.nix b/pkgs/development/python-modules/meteoalertapi/default.nix index 9510ae01ffa5..7f453255f46c 100644 --- a/pkgs/development/python-modules/meteoalertapi/default.nix +++ b/pkgs/development/python-modules/meteoalertapi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, xmltodict +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + xmltodict, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/meteocalc/default.nix b/pkgs/development/python-modules/meteocalc/default.nix index 886b77de0880..38c39d7d42ca 100644 --- a/pkgs/development/python-modules/meteocalc/default.nix +++ b/pkgs/development/python-modules/meteocalc/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-WuIW6hROQkjMfbCLUouECIrp4s6oCd2/N79hsrTbVTk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "meteocalc" - ]; + pythonImportsCheck = [ "meteocalc" ]; meta = with lib; { description = "Module for calculation of meteorological variables"; diff --git a/pkgs/development/python-modules/meteofrance-api/default.nix b/pkgs/development/python-modules/meteofrance-api/default.nix index ce3dbe1b44f7..3b1d5e2b95b5 100644 --- a/pkgs/development/python-modules/meteofrance-api/default.nix +++ b/pkgs/development/python-modules/meteofrance-api/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pytz -, requests -, requests-mock -, typing-extensions -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + pytz, + requests, + requests-mock, + typing-extensions, + urllib3, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; propagatedBuildInputs = [ pytz @@ -47,9 +46,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "meteofrance_api" - ]; + pythonImportsCheck = [ "meteofrance_api" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/mezzanine/default.nix b/pkgs/development/python-modules/mezzanine/default.nix index 18d06579a8a8..9dbbfe4c6d7d 100644 --- a/pkgs/development/python-modules/mezzanine/default.nix +++ b/pkgs/development/python-modules/mezzanine/default.nix @@ -1,23 +1,24 @@ -{ lib -, beautifulsoup4 -, bleach -, buildPythonPackage -, chardet -, django -, django-contrib-comments -, fetchPypi -, filebrowser-safe -, future -, grappelli-safe -, isPyPy -, pep8 -, pillow -, pyflakes -, pythonOlder -, pytz -, requests -, requests-oauthlib -, tzlocal +{ + lib, + beautifulsoup4, + bleach, + buildPythonPackage, + chardet, + django, + django-contrib-comments, + fetchPypi, + filebrowser-safe, + future, + grappelli-safe, + isPyPy, + pep8, + pillow, + pyflakes, + pythonOlder, + pytz, + requests, + requests-oauthlib, + tzlocal, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mf2py/default.nix b/pkgs/development/python-modules/mf2py/default.nix index ce50d3662f46..8d0ecc7d9937 100644 --- a/pkgs/development/python-modules/mf2py/default.nix +++ b/pkgs/development/python-modules/mf2py/default.nix @@ -1,14 +1,15 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, html5lib -, lxml -, mock -, poetry-core -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + html5lib, + lxml, + mock, + poetry-core, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-mhJ+s1rtXEJ6DqVmiyWNEK+3cdDLpR63Q4QGmD9wVio="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ beautifulsoup4 @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "mf2py" - ]; + pythonImportsCheck = [ "mf2py" ]; meta = with lib; { description = "Microformats2 parser written in Python"; diff --git a/pkgs/development/python-modules/mhcflurry/default.nix b/pkgs/development/python-modules/mhcflurry/default.nix index 2b2a7c9fcabb..efc431db552e 100644 --- a/pkgs/development/python-modules/mhcflurry/default.nix +++ b/pkgs/development/python-modules/mhcflurry/default.nix @@ -1,16 +1,17 @@ -{ appdirs -, buildPythonPackage -, fetchFromGitHub -, keras -, lib -, mhcgnomes -, nose -, pandas -, pytestCheckHook -, pyyaml -, scikit-learn -, tensorflow -, tqdm +{ + appdirs, + buildPythonPackage, + fetchFromGitHub, + keras, + lib, + mhcgnomes, + nose, + pandas, + pytestCheckHook, + pyyaml, + scikit-learn, + tensorflow, + tqdm, }: buildPythonPackage rec { @@ -37,7 +38,10 @@ buildPythonPackage rec { tqdm ]; - nativeCheckInputs = [ nose pytestCheckHook ]; + nativeCheckInputs = [ + nose + pytestCheckHook + ]; disabledTests = [ # RuntimeError: Missing MHCflurry downloadable file: /homeless-shelter/.local... diff --git a/pkgs/development/python-modules/mhcgnomes/default.nix b/pkgs/development/python-modules/mhcgnomes/default.nix index 4c5d1f6faac9..9a1a470d7a72 100644 --- a/pkgs/development/python-modules/mhcgnomes/default.nix +++ b/pkgs/development/python-modules/mhcgnomes/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pandas -, pyyaml -, serializable +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pandas, + pyyaml, + serializable, }: buildPythonPackage rec { @@ -20,7 +21,11 @@ buildPythonPackage rec { hash = "sha256-KKiBlnFlavRnaQnOpAzG0dyxmFB+zF9L6t/H05LkFZE="; }; - propagatedBuildInputs = [ pandas pyyaml serializable ]; + propagatedBuildInputs = [ + pandas + pyyaml + serializable + ]; pythonImportsCheck = [ "mhcgnomes" ]; diff --git a/pkgs/development/python-modules/miasm/default.nix b/pkgs/development/python-modules/miasm/default.nix index 4d220bf97662..ddbbd1262c53 100644 --- a/pkgs/development/python-modules/miasm/default.nix +++ b/pkgs/development/python-modules/miasm/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, future -, gcc -, llvmlite -, parameterized -, pycparser -, pyparsing -, z3-solver -, setuptools +{ + buildPythonPackage, + fetchFromGitHub, + lib, + future, + gcc, + llvmlite, + parameterized, + pycparser, + pyparsing, + z3-solver, + setuptools, }: let commit = "90dc1671b59077ee27c3d44d9d536d6659eb3bbe"; diff --git a/pkgs/development/python-modules/miauth/default.nix b/pkgs/development/python-modules/miauth/default.nix index c28c5ed96a77..7ebf4124dcc4 100644 --- a/pkgs/development/python-modules/miauth/default.nix +++ b/pkgs/development/python-modules/miauth/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, bluepy -, cryptography + # dependencies + bluepy, + cryptography, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -32,22 +33,16 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "cryptography" - ]; + pythonRelaxDeps = [ "cryptography" ]; propagatedBuildInputs = [ bluepy cryptography ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "miauth" - ]; + pythonImportsCheck = [ "miauth" ]; meta = with lib; { description = "Authenticate and interact with Xiaomi devices over BLE"; diff --git a/pkgs/development/python-modules/micawber/default.nix b/pkgs/development/python-modules/micawber/default.nix index 0a4decb49e4d..ecd06217faf7 100644 --- a/pkgs/development/python-modules/micawber/default.nix +++ b/pkgs/development/python-modules/micawber/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beautifulsoup4 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + beautifulsoup4, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "sha256-CsWBS2X/KngfsTlLkaI6ipX3NJK2u49wW67q2C6t1UM="; }; - propagatedBuildInputs = [ - beautifulsoup4 - ]; + propagatedBuildInputs = [ beautifulsoup4 ]; meta = with lib; { homepage = "https://micawber.readthedocs.io/en/latest/"; diff --git a/pkgs/development/python-modules/micloud/default.nix b/pkgs/development/python-modules/micloud/default.nix index ab934962e216..b6d325395c8f 100644 --- a/pkgs/development/python-modules/micloud/default.nix +++ b/pkgs/development/python-modules/micloud/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, pycryptodome -, requests -, tzlocal +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + pycryptodome, + requests, + tzlocal, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/microdata/default.nix b/pkgs/development/python-modules/microdata/default.nix index f7dcfc92f8b9..d53ecea8defc 100644 --- a/pkgs/development/python-modules/microdata/default.nix +++ b/pkgs/development/python-modules/microdata/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, html5lib -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + html5lib, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-BAygCLBLxZ033ZWRFSR52dSM2nPY8jXplDXQ8WW3KPo="; }; - propagatedBuildInputs = [ - html5lib - ]; + propagatedBuildInputs = [ html5lib ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "microdata" ]; diff --git a/pkgs/development/python-modules/midea-beautiful-air/default.nix b/pkgs/development/python-modules/midea-beautiful-air/default.nix index 1fde2c7a34f4..6b589b334369 100644 --- a/pkgs/development/python-modules/midea-beautiful-air/default.nix +++ b/pkgs/development/python-modules/midea-beautiful-air/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, cryptography -, requests -, pytestCheckHook -, pytest-socket -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cryptography, + requests, + pytestCheckHook, + pytest-socket, + requests-mock, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-786Q085bv8Zsm0c55I4XalRhEfwElRTJds5qnb0cWhk="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cryptography diff --git a/pkgs/development/python-modules/midiutil/default.nix b/pkgs/development/python-modules/midiutil/default.nix index 6f1e51ae9339..7c970c2b676c 100644 --- a/pkgs/development/python-modules/midiutil/default.nix +++ b/pkgs/development/python-modules/midiutil/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "midiutil"; diff --git a/pkgs/development/python-modules/mido/default.nix b/pkgs/development/python-modules/mido/default.nix index b5375b4f1dff..90ed0fb4cf48 100644 --- a/pkgs/development/python-modules/mido/default.nix +++ b/pkgs/development/python-modules/mido/default.nix @@ -1,28 +1,29 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, substituteAll +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + substituteAll, -# build-system -, setuptools -, setuptools-scm -, pythonRelaxDepsHook + # build-system + setuptools, + setuptools-scm, + pythonRelaxDepsHook, -# dependencies -, packaging + # dependencies + packaging, -# native dependencies -, portmidi + # native dependencies + portmidi, -# optional-dependencies -, pygame -, python-rtmidi -, rtmidi-python + # optional-dependencies + pygame, + python-rtmidi, + rtmidi-python, -# tests -, pytestCheckHook -, pythonOlder + # tests + pytestCheckHook, + pythonOlder, }: @@ -51,13 +52,9 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "packaging" - ]; + pythonRelaxDeps = [ "packaging" ]; - dependencies = [ - packaging - ]; + dependencies = [ packaging ]; optional-dependencies = { ports-pygame = [ pygame ]; @@ -65,13 +62,9 @@ buildPythonPackage rec { ports-rtmidi-python = [ rtmidi-python ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mido" - ]; + pythonImportsCheck = [ "mido" ]; meta = with lib; { description = "MIDI Objects for Python"; diff --git a/pkgs/development/python-modules/migen/default.nix b/pkgs/development/python-modules/migen/default.nix index d1633cbd8cfa..76c1cbba0da1 100644 --- a/pkgs/development/python-modules/migen/default.nix +++ b/pkgs/development/python-modules/migen/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, colorama +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + colorama, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-IPyhoFZLhY8d3jHB8jyvGdbey7V+X5eCzBZYSrJ18ec="; }; - propagatedBuildInputs = [ - colorama - ]; + propagatedBuildInputs = [ colorama ]; pythonImportsCheck = [ "migen" ]; diff --git a/pkgs/development/python-modules/mike/default.nix b/pkgs/development/python-modules/mike/default.nix index da3139080596..55c7f7d573ad 100644 --- a/pkgs/development/python-modules/mike/default.nix +++ b/pkgs/development/python-modules/mike/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, git -, importlib-metadata -, importlib-resources -, jinja2 -, mkdocs -, pythonOlder -, pyyaml -, unittestCheckHook -, verspec +{ + lib, + buildPythonPackage, + fetchFromGitHub, + git, + importlib-metadata, + importlib-resources, + jinja2, + mkdocs, + pythonOlder, + pyyaml, + unittestCheckHook, + verspec, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { # Difficult to setup doCheck = false; - pythonImportsCheck = [ - "mike" - ]; + pythonImportsCheck = [ "mike" ]; meta = with lib; { description = "Manage multiple versions of your MkDocs-powered documentation"; diff --git a/pkgs/development/python-modules/milc/default.nix b/pkgs/development/python-modules/milc/default.nix index 2cb630afbe48..67f39cc612fd 100644 --- a/pkgs/development/python-modules/milc/default.nix +++ b/pkgs/development/python-modules/milc/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, appdirs -, argcomplete -, colorama -, halo -, spinners -, types-colorama -, nose2 -, semver +{ + lib, + buildPythonPackage, + fetchFromGitHub, + appdirs, + argcomplete, + colorama, + halo, + spinners, + types-colorama, + nose2, + semver, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/milksnake/default.nix b/pkgs/development/python-modules/milksnake/default.nix index 567305b194e8..b422dabc4fa3 100644 --- a/pkgs/development/python-modules/milksnake/default.nix +++ b/pkgs/development/python-modules/milksnake/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, fetchpatch, cffi }: +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + cffi, +}: buildPythonPackage rec { pname = "milksnake"; @@ -19,9 +25,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; # tests rely on pip/venv doCheck = false; diff --git a/pkgs/development/python-modules/mill-local/default.nix b/pkgs/development/python-modules/mill-local/default.nix index 6c24ba8f424c..3f6a236c40d5 100644 --- a/pkgs/development/python-modules/mill-local/default.nix +++ b/pkgs/development/python-modules/mill-local/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "mill_local" - ]; + pythonImportsCheck = [ "mill_local" ]; meta = with lib; { description = "Python module to communicate locally with Mill heaters"; diff --git a/pkgs/development/python-modules/millheater/default.nix b/pkgs/development/python-modules/millheater/default.nix index be07dd2f8598..3f372790702a 100644 --- a/pkgs/development/python-modules/millheater/default.nix +++ b/pkgs/development/python-modules/millheater/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "mill" - ]; + pythonImportsCheck = [ "mill" ]; meta = with lib; { description = "Python library for Mill heater devices"; diff --git a/pkgs/development/python-modules/minari/default.nix b/pkgs/development/python-modules/minari/default.nix index 45c3f0fc36ec..055db0926e1f 100644 --- a/pkgs/development/python-modules/minari/default.nix +++ b/pkgs/development/python-modules/minari/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, wheel -, google-cloud-storage -, gymnasium -, h5py -, numpy -, packaging -, portion -, rich -, tqdm -, typer -, typing-extensions -, imageio -, nbmake -, pytest -, pytest-markdown-docs -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + wheel, + google-cloud-storage, + gymnasium, + h5py, + numpy, + packaging, + portion, + rich, + tqdm, + typer, + typing-extensions, + imageio, + nbmake, + pytest, + pytest-markdown-docs, + pytestCheckHook, }: buildPythonPackage rec { @@ -63,13 +64,9 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "minari" - ]; + pythonImportsCheck = [ "minari" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Require internet access @@ -81,7 +78,10 @@ buildPythonPackage rec { description = "A standard format for offline reinforcement learning datasets, with popular reference datasets and related utilities"; homepage = "https://github.com/Farama-Foundation/Minari"; changelog = "https://github.com/Farama-Foundation/Minari/releases/tag/v${version}"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ GaetanLepage ]; mainProgram = "minari"; }; diff --git a/pkgs/development/python-modules/mindsdb-evaluator/default.nix b/pkgs/development/python-modules/mindsdb-evaluator/default.nix index 311f8761bc44..423f3401da68 100644 --- a/pkgs/development/python-modules/mindsdb-evaluator/default.nix +++ b/pkgs/development/python-modules/mindsdb-evaluator/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, poetry-core -, dataprep-ml -, numpy -, pandas -, scikit-learn -, type-infer +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + poetry-core, + dataprep-ml, + numpy, + pandas, + scikit-learn, + type-infer, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-SW3GYe9ykbs6ZViScdAgwiBAP9ix4v1VbSm/kJK2jDA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ dataprep-ml diff --git a/pkgs/development/python-modules/minexr/default.nix b/pkgs/development/python-modules/minexr/default.nix index 3785baaa978f..1a713a900f3d 100644 --- a/pkgs/development/python-modules/minexr/default.nix +++ b/pkgs/development/python-modules/minexr/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, numpy -, pillow +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + numpy, + pillow, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "minexr" ]; - nativeCheckInputs = [ pytestCheckHook pillow ]; + nativeCheckInputs = [ + pytestCheckHook + pillow + ]; meta = with lib; { description = "Minimal, standalone OpenEXR reader for single-part, uncompressed scan line files."; diff --git a/pkgs/development/python-modules/miniaudio/default.nix b/pkgs/development/python-modules/miniaudio/default.nix index 973d4b40822e..ce4638f6e3ba 100644 --- a/pkgs/development/python-modules/miniaudio/default.nix +++ b/pkgs/development/python-modules/miniaudio/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, miniaudio -, cffi -, pytestCheckHook -, AudioToolbox -, CoreAudio +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + miniaudio, + cffi, + pytestCheckHook, + AudioToolbox, + CoreAudio, }: let @@ -53,9 +54,7 @@ buildPythonPackage rec { propagatedNativeBuildInputs = [ cffi ]; propagatedBuildInputs = [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "miniaudio" ]; diff --git a/pkgs/development/python-modules/minichain/default.nix b/pkgs/development/python-modules/minichain/default.nix index 1e69fbb1f25b..8ccac591f165 100644 --- a/pkgs/development/python-modules/minichain/default.nix +++ b/pkgs/development/python-modules/minichain/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, eliot -, fetchPypi -, google-search-results -, jinja2 -, lib -, manifest-ml -, openai -, pytestCheckHook -, pythonAtLeast -, pythonRelaxDepsHook +{ + buildPythonPackage, + eliot, + fetchPypi, + google-search-results, + jinja2, + lib, + manifest-ml, + openai, + pytestCheckHook, + pythonAtLeast, + pythonRelaxDepsHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/minidump/default.nix b/pkgs/development/python-modules/minidump/default.nix index 58d59512e8b5..1154685e6dda 100644 --- a/pkgs/development/python-modules/minidump/default.nix +++ b/pkgs/development/python-modules/minidump/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-R+tza5C/2egkajScmilp/8qowoSklYVfEB+f0KMNBqQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Upstream doesn't have tests doCheck = false; - pythonImportsCheck = [ - "minidump" - ]; + pythonImportsCheck = [ "minidump" ]; meta = with lib; { description = "Python library to parse and read Microsoft minidump file format"; diff --git a/pkgs/development/python-modules/miniful/default.nix b/pkgs/development/python-modules/miniful/default.nix index 434e8bc403bb..53bdf601899e 100644 --- a/pkgs/development/python-modules/miniful/default.nix +++ b/pkgs/development/python-modules/miniful/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, scipy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + scipy, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "miniful" - ]; + pythonImportsCheck = [ "miniful" ]; meta = with lib; { description = "Minimal Fuzzy Library"; diff --git a/pkgs/development/python-modules/minikanren/default.nix b/pkgs/development/python-modules/minikanren/default.nix index 928b288bf28b..f8be0a3d6b3b 100644 --- a/pkgs/development/python-modules/minikanren/default.nix +++ b/pkgs/development/python-modules/minikanren/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, toolz -, cons -, multipledispatch -, etuples -, logical-unification -, py -, pytestCheckHook -, pytest-html +{ + lib, + buildPythonPackage, + fetchFromGitHub, + toolz, + cons, + multipledispatch, + etuples, + logical-unification, + py, + pytestCheckHook, + pytest-html, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/minikerberos/default.nix b/pkgs/development/python-modules/minikerberos/default.nix index 54b2de45056e..44d44f3b969d 100644 --- a/pkgs/development/python-modules/minikerberos/default.nix +++ b/pkgs/development/python-modules/minikerberos/default.nix @@ -1,13 +1,14 @@ -{ lib -, asn1crypto -, asysocks -, buildPythonPackage -, fetchPypi -, oscrypto -, pythonOlder -, six -, tqdm -, unicrypto +{ + lib, + asn1crypto, + asysocks, + buildPythonPackage, + fetchPypi, + oscrypto, + pythonOlder, + six, + tqdm, + unicrypto, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # no tests are published: https://github.com/skelsec/minikerberos/pull/5 doCheck = false; - pythonImportsCheck = [ - "minikerberos" - ]; + pythonImportsCheck = [ "minikerberos" ]; meta = with lib; { description = "Kerberos manipulation library in Python"; diff --git a/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix b/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix index a15f81014cfa..dc04cb99178a 100644 --- a/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix +++ b/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, six +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + six, }: buildPythonPackage rec { @@ -23,14 +24,15 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "snowplow_tracker" - ]; + pythonImportsCheck = [ "snowplow_tracker" ]; meta = with lib; { description = "Minimal snowplow event tracker"; homepage = "https://github.com/dbt-labs/snowplow-python-tracker"; license = licenses.asl20; - maintainers = with maintainers; [ mausch tjni ]; + maintainers = with maintainers; [ + mausch + tjni + ]; }; } diff --git a/pkgs/development/python-modules/minimock/default.nix b/pkgs/development/python-modules/minimock/default.nix index 5bd48301e8ec..b3a1e6c367d5 100644 --- a/pkgs/development/python-modules/minimock/default.nix +++ b/pkgs/development/python-modules/minimock/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-Ut3iKc7Sr28uGgWCV3K3CS+gBta2icvbUPMjjo4fflU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "minimock" - ]; + pythonImportsCheck = [ "minimock" ]; meta = with lib; { description = "A minimalistic mocking library"; diff --git a/pkgs/development/python-modules/minio/default.nix b/pkgs/development/python-modules/minio/default.nix index de84597491c8..98910a55da2d 100644 --- a/pkgs/development/python-modules/minio/default.nix +++ b/pkgs/development/python-modules/minio/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, argon2-cffi -, certifi -, urllib3 -, pycryptodome -, typing-extensions + # dependencies + argon2-cffi, + certifi, + urllib3, + pycryptodome, + typing-extensions, -# test -, faker -, mock -, pytestCheckHook + # test + faker, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { --replace-fail "assertEquals" "assertEqual" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ argon2-cffi @@ -61,9 +60,7 @@ buildPythonPackage rec { "tests/unit/credentials_test.py" ]; - pythonImportsCheck = [ - "minio" - ]; + pythonImportsCheck = [ "minio" ]; meta = with lib; { description = "Simple APIs to access any Amazon S3 compatible object storage server"; diff --git a/pkgs/development/python-modules/miniupnpc/default.nix b/pkgs/development/python-modules/miniupnpc/default.nix index ec6bcbc7d970..f341bbf006f8 100644 --- a/pkgs/development/python-modules/miniupnpc/default.nix +++ b/pkgs/development/python-modules/miniupnpc/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, cctools, which }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + cctools, + which, +}: buildPythonPackage rec { pname = "miniupnpc"; @@ -10,7 +17,10 @@ buildPythonPackage rec { sha256 = "0ca94zz7sr2x57j218aypxqcwkr23n8js30f3yrvvqbg929nr93y"; }; - nativeBuildInputs = lib.optionals stdenv.isDarwin [ cctools which ]; + nativeBuildInputs = lib.optionals stdenv.isDarwin [ + cctools + which + ]; meta = with lib; { description = "miniUPnP client"; diff --git a/pkgs/development/python-modules/mip/default.nix b/pkgs/development/python-modules/mip/default.nix index 5705f1f37cfd..536d8e7cf497 100644 --- a/pkgs/development/python-modules/mip/default.nix +++ b/pkgs/development/python-modules/mip/default.nix @@ -1,23 +1,25 @@ -{ lib, stdenv -, buildPythonPackage -, cffi -, dos2unix -, fetchPypi -, matplotlib -, networkx -, numpy -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, wheel -, gurobi -, gurobipy -# Enable support for the commercial Gurobi solver (requires a license) -, gurobiSupport ? false -# If Gurobi has already been installed outside of the Nix store, specify its -# installation directory here -, gurobiHome ? null +{ + lib, + stdenv, + buildPythonPackage, + cffi, + dos2unix, + fetchPypi, + matplotlib, + networkx, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + wheel, + gurobi, + gurobipy, + # Enable support for the commercial Gurobi solver (requires a license) + gurobiSupport ? false, + # If Gurobi has already been installed outside of the Nix store, specify its + # installation directory here + gurobiHome ? null, }: buildPythonPackage rec { @@ -32,7 +34,12 @@ buildPythonPackage rec { hash = "sha256-f28Dgc/ixSwbhkAgPaLLVpdLJuI5UN37GnazfZFvGX4="; }; - nativeCheckInputs = [ matplotlib networkx numpy pytestCheckHook ]; + nativeCheckInputs = [ + matplotlib + networkx + numpy + pytestCheckHook + ]; nativeBuildInputs = [ dos2unix @@ -43,9 +50,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ cffi - ] ++ lib.optionals gurobiSupport ([ - gurobipy - ] ++ lib.optional (gurobiHome == null) gurobi); + ] ++ lib.optionals gurobiSupport ([ gurobipy ] ++ lib.optional (gurobiHome == null) gurobi); # Source files have CRLF terminators, which make patch error out when supplied # with diffs made on *nix machines @@ -67,8 +72,9 @@ buildPythonPackage rec { ''; # Make MIP use the Gurobi solver, if configured to do so - makeWrapperArgs = lib.optional gurobiSupport - "--set GUROBI_HOME ${if gurobiHome == null then gurobi.outPath else gurobiHome}"; + makeWrapperArgs = lib.optional gurobiSupport "--set GUROBI_HOME ${ + if gurobiHome == null then gurobi.outPath else gurobiHome + }"; # Tests that rely on Gurobi are activated only when Gurobi support is enabled disabledTests = lib.optional (!gurobiSupport) "gurobi"; diff --git a/pkgs/development/python-modules/mir-eval/default.nix b/pkgs/development/python-modules/mir-eval/default.nix index b06ce5960362..d94f6b97cc4d 100644 --- a/pkgs/development/python-modules/mir-eval/default.nix +++ b/pkgs/development/python-modules/mir-eval/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future -, six -, numpy -, scipy -, matplotlib +{ + lib, + buildPythonPackage, + fetchPypi, + future, + six, + numpy, + scipy, + matplotlib, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { matplotlib ]; - pythonImportsCheck = [ - "mir_eval" - ]; + pythonImportsCheck = [ "mir_eval" ]; meta = with lib; { description = "Common metrics for common audio/music processing tasks"; diff --git a/pkgs/development/python-modules/mirakuru/default.nix b/pkgs/development/python-modules/mirakuru/default.nix index 97f1cef438ae..e208daa625ef 100644 --- a/pkgs/development/python-modules/mirakuru/default.nix +++ b/pkgs/development/python-modules/mirakuru/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools -, psutil -, netcat -, ps -, python-daemon +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, + psutil, + netcat, + ps, + python-daemon, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/misaka/default.nix b/pkgs/development/python-modules/misaka/default.nix index 369196b15276..b8684ae29b4a 100644 --- a/pkgs/development/python-modules/misaka/default.nix +++ b/pkgs/development/python-modules/misaka/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, cffi }: +{ + lib, + fetchPypi, + buildPythonPackage, + cffi, +}: buildPythonPackage rec { pname = "misaka"; version = "2.1.1"; diff --git a/pkgs/development/python-modules/misoc/default.nix b/pkgs/development/python-modules/misoc/default.nix index 3fa9e3f6e472..a008316e1243 100644 --- a/pkgs/development/python-modules/misoc/default.nix +++ b/pkgs/development/python-modules/misoc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, asyncserial -, jinja2 -, migen -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + asyncserial, + jinja2, + migen, + numpy, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { migen ]; - nativeCheckInputs = [ - numpy - ]; + nativeCheckInputs = [ numpy ]; pythonImportsCheck = [ "misoc" ]; diff --git a/pkgs/development/python-modules/mistletoe/default.nix b/pkgs/development/python-modules/mistletoe/default.nix index aad3a5111da0..6a32ea2e058d 100644 --- a/pkgs/development/python-modules/mistletoe/default.nix +++ b/pkgs/development/python-modules/mistletoe/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, parameterized -, pygments -, pythonOlder -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + parameterized, + pygments, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-MMBfH4q5AtC/azQUj1a1tMz1MdUf4ad5/tl7lcQCTOw="; }; - pythonImportsCheck = [ - "mistletoe" - ]; + pythonImportsCheck = [ "mistletoe" ]; nativeCheckInputs = [ parameterized diff --git a/pkgs/development/python-modules/mistune/default.nix b/pkgs/development/python-modules/mistune/default.nix index 38e2c21ba66a..8db3bdb8ae25 100644 --- a/pkgs/development/python-modules/mistune/default.nix +++ b/pkgs/development/python-modules/mistune/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-OoTiqJ7hsFP1Yx+7xW3rL+Yc/O2lCMdhBBbaZucyZXM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "mistune" ]; diff --git a/pkgs/development/python-modules/mitmproxy-macos/default.nix b/pkgs/development/python-modules/mitmproxy-macos/default.nix index ce0b19120f1c..31f4c7d8292c 100644 --- a/pkgs/development/python-modules/mitmproxy-macos/default.nix +++ b/pkgs/development/python-modules/mitmproxy-macos/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pythonOlder, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { sourceRoot = "${src.name}/mitmproxy-macos"; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - pythonImportsCheck = [ - "mitmproxy_macos" - ]; + pythonImportsCheck = [ "mitmproxy_macos" ]; meta = with lib; { description = "The MacOS Rust bits in mitmproxy"; diff --git a/pkgs/development/python-modules/mitmproxy-rs/default.nix b/pkgs/development/python-modules/mitmproxy-rs/default.nix index fe7fb4c178e0..5b7296d81c98 100644 --- a/pkgs/development/python-modules/mitmproxy-rs/default.nix +++ b/pkgs/development/python-modules/mitmproxy-rs/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, rustPlatform -, darwin -, libiconv -, mitmproxy-macos +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + rustPlatform, + darwin, + libiconv, + mitmproxy-macos, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-nrm1T2yaGVmYsubwNJHPnPDC/A/jYiKVzwBKmuc9MD4="; }; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; buildAndTestSubdir = "mitmproxy-rs"; diff --git a/pkgs/development/python-modules/mitmproxy/default.nix b/pkgs/development/python-modules/mitmproxy/default.nix index 8de8d9b8260d..32515800195f 100644 --- a/pkgs/development/python-modules/mitmproxy/default.nix +++ b/pkgs/development/python-modules/mitmproxy/default.nix @@ -1,46 +1,47 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pythonRelaxDepsHook, # Mitmproxy requirements -, aioquic -, asgiref -, blinker -, brotli -, certifi -, cryptography -, flask -, h11 -, h2 -, hyperframe -, kaitaistruct -, ldap3 -, mitmproxy-macos -, mitmproxy-rs -, msgpack -, passlib -, protobuf -, publicsuffix2 -, pyopenssl -, pyparsing -, pyperclip -, ruamel-yaml -, setuptools -, sortedcontainers -, tornado -, urwid-mitmproxy -, wsproto -, zstandard + aioquic, + asgiref, + blinker, + brotli, + certifi, + cryptography, + flask, + h11, + h2, + hyperframe, + kaitaistruct, + ldap3, + mitmproxy-macos, + mitmproxy-rs, + msgpack, + passlib, + protobuf, + publicsuffix2, + pyopenssl, + pyparsing, + pyperclip, + ruamel-yaml, + setuptools, + sortedcontainers, + tornado, + urwid-mitmproxy, + wsproto, + zstandard, # Additional check requirements -, hypothesis -, parver -, pytest-asyncio -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, requests + hypothesis, + parver, + pytest-asyncio, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { hash = "sha256-YjvGsnpQQ8GWLyKmnd3lOxesnr+F2xCNXyahZh0JQnc="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "aioquic" @@ -94,9 +93,7 @@ buildPythonPackage rec { urwid-mitmproxy wsproto zstandard - ] ++ lib.optionals stdenv.isDarwin [ - mitmproxy-macos - ]; + ] ++ lib.optionals stdenv.isDarwin [ mitmproxy-macos ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/mixins/default.nix b/pkgs/development/python-modules/mixins/default.nix index 46af556fd11a..c6632f3b6a78 100644 --- a/pkgs/development/python-modules/mixins/default.nix +++ b/pkgs/development/python-modules/mixins/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -13,9 +14,7 @@ buildPythonPackage rec { sha256 = "sha256-SmYYRzo6wClQBMc2oRgO0CQEHOxWe8GFL24TPa6A4NQ="; }; - pythonImportsCheck = [ - "mixins" - ]; + pythonImportsCheck = [ "mixins" ]; meta = with lib; { homepage = "https://github.com/nickderobertis/py-mixins"; diff --git a/pkgs/development/python-modules/mixpanel/default.nix b/pkgs/development/python-modules/mixpanel/default.nix index 64e1f45d29de..12f3cf9dd13b 100644 --- a/pkgs/development/python-modules/mixpanel/default.nix +++ b/pkgs/development/python-modules/mixpanel/default.nix @@ -1,16 +1,16 @@ +{ + buildPythonPackage, + fetchFromGitHub, + lib, -{ buildPythonPackage -, fetchFromGitHub -, lib + # Python Dependencies + six, + urllib3, + requests, -# Python Dependencies -, six -, urllib3 -, requests - -# tests -, pytestCheckHook -, responses + # tests + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -40,8 +40,6 @@ buildPythonPackage rec { homepage = "https://github.com/mixpanel/mixpanel-python"; description = "Official Mixpanel Python library"; license = licenses.asl20; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/mizani/default.nix b/pkgs/development/python-modules/mizani/default.nix index c0620198144f..1442938bea0c 100644 --- a/pkgs/development/python-modules/mizani/default.nix +++ b/pkgs/development/python-modules/mizani/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, palettable -, pandas -, pytestCheckHook -, pythonOlder -, scipy -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + palettable, + pandas, + pytestCheckHook, + pythonOlder, + scipy, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-aEataiB432yKnQ80TxJvsU9DO9wI4ZVGq1k73qeuEv0="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ matplotlib @@ -35,18 +34,14 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=mizani --cov-report=xml" "" ''; - pythonImportsCheck = [ - "mizani" - ]; + pythonImportsCheck = [ "mizani" ]; meta = with lib; { description = "Scales for Python"; diff --git a/pkgs/development/python-modules/mkdocs-autolinks-plugin/default.nix b/pkgs/development/python-modules/mkdocs-autolinks-plugin/default.nix index 35d3e5c9cc16..8ab108e710d9 100644 --- a/pkgs/development/python-modules/mkdocs-autolinks-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-autolinks-plugin/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mkdocs -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mkdocs, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-mEbuB9VwK7po1TqtJfBSkItOVlI3/W3nD2LYRHgPpTA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ mkdocs ]; diff --git a/pkgs/development/python-modules/mkdocs-autorefs/default.nix b/pkgs/development/python-modules/mkdocs-autorefs/default.nix index 4fedc2ff0ff3..5bddee16b3ed 100644 --- a/pkgs/development/python-modules/mkdocs-autorefs/default.nix +++ b/pkgs/development/python-modules/mkdocs-autorefs/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, markdown -, mkdocs -, pytestCheckHook -, pdm-backend -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + markdown, + mkdocs, + pytestCheckHook, + pdm-backend, + pythonOlder, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { --replace 'dynamic = ["version"]' 'version = "${version}"' ''; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; propagatedBuildInputs = [ markdown mkdocs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # missing pymdownx @@ -46,9 +43,7 @@ buildPythonPackage rec { "test_reference_implicit_with_code_inlinehilite_python" ]; - pythonImportsCheck = [ - "mkdocs_autorefs" - ]; + pythonImportsCheck = [ "mkdocs_autorefs" ]; meta = with lib; { description = "Automatically link across pages in MkDocs"; diff --git a/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix b/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix index 2227b8b4f873..02064d5f4e0b 100644 --- a/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix +++ b/pkgs/development/python-modules/mkdocs-drawio-exporter/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, drawio-headless -, fetchPypi -, isPy3k -, lib -, mkdocs +{ + buildPythonPackage, + drawio-headless, + fetchPypi, + isPy3k, + lib, + mkdocs, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-9cvA186FS6bHmpOrv4OfPZ5kRfgfafBfaWxgWJIlwwA="; }; - propagatedBuildInputs = [ mkdocs drawio-headless ]; + propagatedBuildInputs = [ + mkdocs + drawio-headless + ]; pythonImportsCheck = [ "mkdocsdrawioexporter" ]; diff --git a/pkgs/development/python-modules/mkdocs-exclude/default.nix b/pkgs/development/python-modules/mkdocs-exclude/default.nix index 5e2e32a9d6bb..07060ef65225 100644 --- a/pkgs/development/python-modules/mkdocs-exclude/default.nix +++ b/pkgs/development/python-modules/mkdocs-exclude/default.nix @@ -1,8 +1,9 @@ -{ lib -, callPackage -, buildPythonPackage -, fetchFromGitHub -, mkdocs +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + mkdocs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mkdocs-git-authors-plugin/default.nix b/pkgs/development/python-modules/mkdocs-git-authors-plugin/default.nix index ddb611da7fb8..0c346aac1d0c 100644 --- a/pkgs/development/python-modules/mkdocs-git-authors-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-git-authors-plugin/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, mkdocs +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + mkdocs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix b/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix index 0a76166dd406..306369d5b762 100644 --- a/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-git-revision-date-localized-plugin/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, babel -, gitpython -, mkdocs -, pytz -, pytestCheckHook -, git +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + babel, + gitpython, + mkdocs, + pytz, + pytestCheckHook, + git, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = [ - "tests/test_builds.py" - ]; + disabledTestPaths = [ "tests/test_builds.py" ]; pythonImportsCheck = [ "mkdocs_git_revision_date_localized_plugin" ]; diff --git a/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix b/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix index b88da4eb1e4d..e27f4602cde2 100644 --- a/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-gitlab-plugin/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchzip -, isPy3k -, lib -, mkdocs +{ + buildPythonPackage, + fetchzip, + isPy3k, + lib, + mkdocs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mkdocs-jupyter/default.nix b/pkgs/development/python-modules/mkdocs-jupyter/default.nix index a83899c6c74c..af9153f32181 100644 --- a/pkgs/development/python-modules/mkdocs-jupyter/default.nix +++ b/pkgs/development/python-modules/mkdocs-jupyter/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, ipykernel -, jupytext -, mkdocs -, mkdocs-material -, nbconvert -, pygments -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + ipykernel, + jupytext, + mkdocs, + mkdocs-material, + nbconvert, + pygments, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace "[\"mkdocs\"," "[\"${mkdocs.out}/bin/mkdocs\"," ''; - pythonRelaxDeps = [ - "nbconvert" - ]; + pythonRelaxDeps = [ "nbconvert" ]; nativeBuildInputs = [ hatchling @@ -50,13 +49,9 @@ buildPythonPackage rec { pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mkdocs_jupyter" - ]; + pythonImportsCheck = [ "mkdocs_jupyter" ]; meta = with lib; { description = "Use Jupyter Notebook in mkdocs"; diff --git a/pkgs/development/python-modules/mkdocs-linkcheck/default.nix b/pkgs/development/python-modules/mkdocs-linkcheck/default.nix index 18d9a9a9ab29..e03215565300 100644 --- a/pkgs/development/python-modules/mkdocs-linkcheck/default.nix +++ b/pkgs/development/python-modules/mkdocs-linkcheck/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonPackages +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonPackages, }: buildPythonPackage rec { @@ -15,7 +16,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "byrnereese"; repo = "linkchecker-mkdocs"; - rev = "a75d765b0ec564e5ed0218880ed0b5ab4b973917" ; + rev = "a75d765b0ec564e5ed0218880ed0b5ab4b973917"; hash = "sha256-z59F7zUKZKIQSiTlE6wGbGDecPMeruNgltWUYfDf8jY="; }; diff --git a/pkgs/development/python-modules/mkdocs-macros/default.nix b/pkgs/development/python-modules/mkdocs-macros/default.nix index 50f88efcdf29..fd447ed7d6c0 100644 --- a/pkgs/development/python-modules/mkdocs-macros/default.nix +++ b/pkgs/development/python-modules/mkdocs-macros/default.nix @@ -1,16 +1,17 @@ -{ lib -, callPackage -, buildPythonPackage -, fetchPypi -, mkdocs -, mkdocs-macros -, mkdocs-material -, jinja2 -, python-dateutil -, termcolor -, pyyaml -, runCommand -, setuptools +{ + lib, + callPackage, + buildPythonPackage, + fetchPypi, + mkdocs, + mkdocs-macros, + mkdocs-material, + jinja2, + python-dateutil, + termcolor, + pyyaml, + runCommand, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mkdocs-macros/mkdocs-macros-test.nix b/pkgs/development/python-modules/mkdocs-macros/mkdocs-macros-test.nix index 8a53933b19af..3b8b53693b20 100644 --- a/pkgs/development/python-modules/mkdocs-macros/mkdocs-macros-test.nix +++ b/pkgs/development/python-modules/mkdocs-macros/mkdocs-macros-test.nix @@ -1,9 +1,10 @@ -{ lib -, callPackage -, buildPythonPackage -, fetchPypi -, runCommand -, setuptools +{ + lib, + callPackage, + buildPythonPackage, + fetchPypi, + runCommand, + setuptools, }: # Is required for properly testing mkdocs-macros diff --git a/pkgs/development/python-modules/mkdocs-macros/tests.nix b/pkgs/development/python-modules/mkdocs-macros/tests.nix index 5ddcd26e0dab..f758b6ac7745 100644 --- a/pkgs/development/python-modules/mkdocs-macros/tests.nix +++ b/pkgs/development/python-modules/mkdocs-macros/tests.nix @@ -1,9 +1,10 @@ -{ setuptools -, mkdocs -, mkdocs-macros -, mkdocs-material -, runCommand -, callPackage +{ + setuptools, + mkdocs, + mkdocs-macros, + mkdocs-material, + runCommand, + callPackage, }: let diff --git a/pkgs/development/python-modules/mkdocs-material/mkdocs-material-extensions.nix b/pkgs/development/python-modules/mkdocs-material/mkdocs-material-extensions.nix index 239d3507d59b..0dd9c1d32b61 100644 --- a/pkgs/development/python-modules/mkdocs-material/mkdocs-material-extensions.nix +++ b/pkgs/development/python-modules/mkdocs-material/mkdocs-material-extensions.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, hatchling +{ + lib, + fetchFromGitHub, + buildPythonPackage, + hatchling, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-/jU30Ol10/4haR3ZPJWZ3iWRfXG/RUOU1oclOYGjjAY="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; doCheck = false; # Circular dependency diff --git a/pkgs/development/python-modules/mkdocs-mermaid2-plugin/default.nix b/pkgs/development/python-modules/mkdocs-mermaid2-plugin/default.nix index 86037b0c18ec..15c65c6aee7d 100644 --- a/pkgs/development/python-modules/mkdocs-mermaid2-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-mermaid2-plugin/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, beautifulsoup4 -, jsbeautifier -, mkdocs -, mkdocs-material -, pymdown-extensions -, pyyaml -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + jsbeautifier, + mkdocs, + mkdocs-material, + pymdown-extensions, + pyyaml, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { # non-traditional python tests (e.g. nodejs based tests) doCheck = false; - pythonImportsCheck = [ - "mermaid2" - ]; + pythonImportsCheck = [ "mermaid2" ]; meta = with lib; { description = "A MkDocs plugin for including mermaid graphs in markdown sources"; diff --git a/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix b/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix index dbb09cc5795b..5ad7b5661625 100644 --- a/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix +++ b/pkgs/development/python-modules/mkdocs-minify-plugin/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mkdocs -, csscompressor -, htmlmin -, jsmin -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mkdocs, + csscompressor, + htmlmin, + jsmin, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mkdocs-redirects/default.nix b/pkgs/development/python-modules/mkdocs-redirects/default.nix index 2bef26944d24..485ab55189db 100644 --- a/pkgs/development/python-modules/mkdocs-redirects/default.nix +++ b/pkgs/development/python-modules/mkdocs-redirects/default.nix @@ -1,9 +1,10 @@ -{ lib -, callPackage -, buildPythonPackage -, fetchFromGitHub -, mkdocs -, pytestCheckHook +{ + lib, + callPackage, + buildPythonPackage, + fetchFromGitHub, + mkdocs, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-zv/tCsC2wrD0iH7Kvlq4nXJMPMGQ7+l68Y/q/x66LBg="; }; - propagatedBuildInputs = [ - mkdocs - ]; + propagatedBuildInputs = [ mkdocs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mkdocs_redirects" - ]; + pythonImportsCheck = [ "mkdocs_redirects" ]; meta = with lib; { description = "Open source plugin for Mkdocs page redirects"; diff --git a/pkgs/development/python-modules/mkdocs-redoc-tag/default.nix b/pkgs/development/python-modules/mkdocs-redoc-tag/default.nix index a5a379171200..a0cd6dff63ff 100644 --- a/pkgs/development/python-modules/mkdocs-redoc-tag/default.nix +++ b/pkgs/development/python-modules/mkdocs-redoc-tag/default.nix @@ -1,12 +1,13 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, mkdocs -, mkdocs-material -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + mkdocs, + mkdocs-material, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { beautifulsoup4 ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ mkdocs-material diff --git a/pkgs/development/python-modules/mkdocs-swagger-ui-tag/default.nix b/pkgs/development/python-modules/mkdocs-swagger-ui-tag/default.nix index 06fb3a3f02a9..97212019f137 100644 --- a/pkgs/development/python-modules/mkdocs-swagger-ui-tag/default.nix +++ b/pkgs/development/python-modules/mkdocs-swagger-ui-tag/default.nix @@ -1,12 +1,13 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, drawio-headless -, fetchFromGitHub -, mkdocs -, pathspec -, pytestCheckHook -, pythonOlder +{ + lib, + beautifulsoup4, + buildPythonPackage, + drawio-headless, + fetchFromGitHub, + mkdocs, + pathspec, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "mkdocs_swagger_ui_tag" - ]; + pythonImportsCheck = [ "mkdocs_swagger_ui_tag" ]; disabledTests = [ # Don't actually build results diff --git a/pkgs/development/python-modules/mkdocs/default.nix b/pkgs/development/python-modules/mkdocs/default.nix index a20958dbb747..25005b56d455 100644 --- a/pkgs/development/python-modules/mkdocs/default.nix +++ b/pkgs/development/python-modules/mkdocs/default.nix @@ -1,36 +1,36 @@ { # eval time deps - lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, -# buildtime -, hatchling + # buildtime + hatchling, -# runtime deps -, click -, ghp-import -, importlib-metadata -, jinja2 -, markdown -, markupsafe -, mergedeep -, packaging -, pathspec -, platformdirs -, pyyaml -, pyyaml-env-tag -, watchdog + # runtime deps + click, + ghp-import, + importlib-metadata, + jinja2, + markdown, + markupsafe, + mergedeep, + packaging, + pathspec, + platformdirs, + pyyaml, + pyyaml-env-tag, + watchdog, -# optional-dependencies -, babel -, setuptools + # optional-dependencies + babel, + setuptools, -# testing deps -, mock -, unittestCheckHook + # testing deps + mock, + unittestCheckHook, }: buildPythonPackage rec { @@ -47,9 +47,7 @@ buildPythonPackage rec { hash = "sha256-axH4AeL+osxoUIVJbW6YjiTfUr6TAXMB4raZ3oO0fyw="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ click @@ -64,16 +62,10 @@ buildPythonPackage rec { pyyaml pyyaml-env-tag watchdog - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; passthru.optional-dependencies = { - i18n = [ - babel - ] ++ lib.optionals (pythonAtLeast "3.12") [ - setuptools - ]; + i18n = [ babel ] ++ lib.optionals (pythonAtLeast "3.12") [ setuptools ]; }; nativeCheckInputs = [ @@ -81,7 +73,12 @@ buildPythonPackage rec { mock ] ++ passthru.optional-dependencies.i18n; - unittestFlagsArray = [ "-v" "-p" "'*tests.py'" "mkdocs" ]; + unittestFlagsArray = [ + "-v" + "-p" + "'*tests.py'" + "mkdocs" + ]; pythonImportsCheck = [ "mkdocs" ]; diff --git a/pkgs/development/python-modules/mkl-service/default.nix b/pkgs/development/python-modules/mkl-service/default.nix index 991c6e8813c3..9a2cd468db2a 100644 --- a/pkgs/development/python-modules/mkl-service/default.nix +++ b/pkgs/development/python-modules/mkl-service/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, cython, mkl, nose, six }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + mkl, + nose, + six, +}: buildPythonPackage rec { pname = "mkl-service"; @@ -16,7 +24,10 @@ buildPythonPackage rec { nativeCheckInputs = [ nose ]; nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ mkl six ]; + propagatedBuildInputs = [ + mkl + six + ]; meta = with lib; { description = "Python hooks for Intel(R) Math Kernel Library runtime control settings"; diff --git a/pkgs/development/python-modules/ml-collections/default.nix b/pkgs/development/python-modules/ml-collections/default.nix index 806b7cce5b42..c03aefa92ee1 100644 --- a/pkgs/development/python-modules/ml-collections/default.nix +++ b/pkgs/development/python-modules/ml-collections/default.nix @@ -1,10 +1,11 @@ -{ absl-py -, buildPythonPackage -, contextlib2 -, fetchPypi -, fetchurl -, lib -, pyyaml +{ + absl-py, + buildPythonPackage, + contextlib2, + fetchPypi, + fetchurl, + lib, + pyyaml, }: let @@ -36,7 +37,11 @@ buildPythonPackage rec { cp ${requirements-test} requirements-test.txt ''; - propagatedBuildInputs = [ absl-py contextlib2 pyyaml ]; + propagatedBuildInputs = [ + absl-py + contextlib2 + pyyaml + ]; # The official test suite uses bazel. With pytestCheckHook there are name # conflicts between files and tests have assumptions that are broken by the diff --git a/pkgs/development/python-modules/ml-dtypes/default.nix b/pkgs/development/python-modules/ml-dtypes/default.nix index b58887aea1d5..683514fabd2d 100644 --- a/pkgs/development/python-modules/ml-dtypes/default.nix +++ b/pkgs/development/python-modules/ml-dtypes/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, numpy -, pytestCheckHook -, absl-py +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + numpy, + pytestCheckHook, + absl-py, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { --replace "setuptools~=68.1.0" "setuptools" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ pytestCheckHook @@ -54,15 +51,16 @@ buildPythonPackage rec { rm -rf ./ml_dtypes ''; - pythonImportsCheck = [ - "ml_dtypes" - ]; + pythonImportsCheck = [ "ml_dtypes" ]; meta = with lib; { description = "A stand-alone implementation of several NumPy dtype extensions used in machine learning libraries"; homepage = "https://github.com/jax-ml/ml_dtypes"; changelog = "https://github.com/jax-ml/ml_dtypes/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ GaetanLepage samuela ]; + maintainers = with maintainers; [ + GaetanLepage + samuela + ]; }; } diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix index cf1a43e9c3ba..7ee9df1c26a7 100644 --- a/pkgs/development/python-modules/mlflow/default.nix +++ b/pkgs/development/python-modules/mlflow/default.nix @@ -1,39 +1,40 @@ -{ lib -, alembic -, buildPythonPackage -, click -, cloudpickle -, databricks-cli -, docker -, entrypoints -, fetchPypi -, flask -, gitpython -, gorilla -, graphene -, gunicorn -, importlib-metadata -, markdown -, matplotlib -, numpy -, packaging -, pandas -, prometheus-flask-exporter -, protobuf -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, pyarrow -, pytz -, pyyaml -, querystring-parser -, requests -, setuptools -, scikit-learn -, scipy -, simplejson -, sqlalchemy -, sqlparse +{ + lib, + alembic, + buildPythonPackage, + click, + cloudpickle, + databricks-cli, + docker, + entrypoints, + fetchPypi, + flask, + gitpython, + gorilla, + graphene, + gunicorn, + importlib-metadata, + markdown, + matplotlib, + numpy, + packaging, + pandas, + prometheus-flask-exporter, + protobuf, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + pyarrow, + pytz, + pyyaml, + querystring-parser, + requests, + setuptools, + scikit-learn, + scipy, + simplejson, + sqlalchemy, + sqlparse, }: buildPythonPackage rec { @@ -96,9 +97,7 @@ buildPythonPackage rec { sqlparse ]; - pythonImportsCheck = [ - "mlflow" - ]; + pythonImportsCheck = [ "mlflow" ]; # no tests in PyPI dist # run into https://stackoverflow.com/questions/51203641/attributeerror-module-alembic-context-has-no-attribute-config diff --git a/pkgs/development/python-modules/mlrose/default.nix b/pkgs/development/python-modules/mlrose/default.nix index f4e97870b331..fa12508f522e 100644 --- a/pkgs/development/python-modules/mlrose/default.nix +++ b/pkgs/development/python-modules/mlrose/default.nix @@ -1,11 +1,12 @@ -{ lib -, isPy27 -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, scikit-learn -, pytestCheckHook -, pytest-randomly +{ + lib, + isPy27, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + scikit-learn, + pytestCheckHook, + pytest-randomly, }: buildPythonPackage rec { @@ -30,7 +31,10 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ scikit-learn ]; - nativeCheckInputs = [ pytest-randomly pytestCheckHook ]; + nativeCheckInputs = [ + pytest-randomly + pytestCheckHook + ]; postPatch = '' substituteInPlace setup.py --replace sklearn scikit-learn @@ -43,8 +47,8 @@ buildPythonPackage rec { meta = with lib; { description = "Machine Learning, Randomized Optimization and SEarch"; - homepage = "https://github.com/gkhayes/mlrose"; - license = licenses.bsd3; + homepage = "https://github.com/gkhayes/mlrose"; + license = licenses.bsd3; maintainers = with maintainers; [ abbradar ]; }; } diff --git a/pkgs/development/python-modules/mlx/default.nix b/pkgs/development/python-modules/mlx/default.nix index d2d4d32d7a9a..83860499fb3b 100644 --- a/pkgs/development/python-modules/mlx/default.nix +++ b/pkgs/development/python-modules/mlx/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, fetchFromGitHub -, buildPythonPackage -, python3Packages -, pybind11 -, cmake -, xcbuild -, zsh -, darwin -, blas -, lapack +{ + stdenv, + lib, + fetchFromGitHub, + buildPythonPackage, + python3Packages, + pybind11, + cmake, + xcbuild, + zsh, + darwin, + blas, + lapack, }: let @@ -63,9 +64,19 @@ buildPythonPackage rec { ]; }; - nativeBuildInputs = [ cmake pybind11 xcbuild zsh gguf-tools nlohmann_json ] ++ (with python3Packages; [ setuptools ]); + nativeBuildInputs = [ + cmake + pybind11 + xcbuild + zsh + gguf-tools + nlohmann_json + ] ++ (with python3Packages; [ setuptools ]); - buildInputs = [ blas lapack ]; + buildInputs = [ + blas + lapack + ]; meta = with lib; { homepage = "https://github.com/ml-explore/mlx"; diff --git a/pkgs/development/python-modules/mlxtend/default.nix b/pkgs/development/python-modules/mlxtend/default.nix index 4a743ac664a9..7048829168b4 100644 --- a/pkgs/development/python-modules/mlxtend/default.nix +++ b/pkgs/development/python-modules/mlxtend/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, setuptools -, pytestCheckHook -, scipy -, numpy -, scikit-learn -, pandas -, matplotlib -, joblib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + setuptools, + pytestCheckHook, + scipy, + numpy, + scikit-learn, + pandas, + matplotlib, + joblib, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-FlP6UqX/Ejk9c3Enm0EJ0xqy7iOhDlFqjWWxd4VIczQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ scipy @@ -39,13 +38,9 @@ buildPythonPackage rec { joblib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "-sv" - ]; + pytestFlagsArray = [ "-sv" ]; disabledTestPaths = [ # image tests download files over the network @@ -55,7 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "A library of Python tools and extensions for data science"; homepage = "https://github.com/rasbt/mlxtend"; - license= licenses.bsd3; + license = licenses.bsd3; maintainers = with maintainers; [ evax ]; platforms = platforms.unix; # incompatible with nixpkgs scikit-learn version diff --git a/pkgs/development/python-modules/mmcif-pdbx/default.nix b/pkgs/development/python-modules/mmcif-pdbx/default.nix index 05d43d54f25d..43427810c523 100644 --- a/pkgs/development/python-modules/mmcif-pdbx/default.nix +++ b/pkgs/development/python-modules/mmcif-pdbx/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-ymMQ/q4IMoq+B8RvIdL0aqolKxyE/4rnVfd4bUV5OUY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pdbx" - ]; + pythonImportsCheck = [ "pdbx" ]; meta = with lib; { description = "Yet another version of PDBx/mmCIF Python implementation"; diff --git a/pkgs/development/python-modules/mmcv/default.nix b/pkgs/development/python-modules/mmcv/default.nix index 923e40d02fcf..a42ec4fe086f 100644 --- a/pkgs/development/python-modules/mmcv/default.nix +++ b/pkgs/development/python-modules/mmcv/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, torch -, torchvision -, opencv4 -, yapf -, packaging -, pillow -, addict -, ninja -, which -, pybind11 -, onnx -, onnxruntime -, scipy -, pyturbojpeg -, tifffile -, lmdb -, mmengine -, symlinkJoin +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + torch, + torchvision, + opencv4, + yapf, + packaging, + pillow, + addict, + ninja, + which, + pybind11, + onnx, + onnxruntime, + scipy, + pyturbojpeg, + tifffile, + lmdb, + mmengine, + symlinkJoin, }: let @@ -36,17 +37,19 @@ let cuda-native-redist = symlinkJoin { name = "cuda-native-redist-${cudaVersion}"; - paths = with cudaPackages; [ - cuda_cudart # cuda_runtime.h - cuda_nvcc - ] ++ cuda-common-redist; + paths = + with cudaPackages; + [ + cuda_cudart # cuda_runtime.h + cuda_nvcc + ] + ++ cuda-common-redist; }; cuda-redist = symlinkJoin { name = "cuda-redist-${cudaVersion}"; paths = cuda-common-redist; }; - in buildPythonPackage rec { pname = "mmcv"; @@ -62,14 +65,16 @@ buildPythonPackage rec { hash = "sha256-an78tRvx18zQ5Q0ca74r4Oe2gJ9F9OfWXLbuP2+rL68="; }; - preConfigure = '' - export MMCV_WITH_OPS=1 - '' + lib.optionalString cudaSupport '' - export CC=${backendStdenv.cc}/bin/cc - export CXX=${backendStdenv.cc}/bin/c++ - export TORCH_CUDA_ARCH_LIST="${lib.concatStringsSep ";" cudaCapabilities}" - export FORCE_CUDA=1 - ''; + preConfigure = + '' + export MMCV_WITH_OPS=1 + '' + + lib.optionalString cudaSupport '' + export CC=${backendStdenv.cc}/bin/cc + export CXX=${backendStdenv.cc}/bin/c++ + export TORCH_CUDA_ARCH_LIST="${lib.concatStringsSep ";" cudaCapabilities}" + export FORCE_CUDA=1 + ''; postPatch = '' substituteInPlace setup.py --replace "cpu_use = 4" "cpu_use = $NIX_BUILD_CORES" @@ -94,12 +99,26 @@ buildPythonPackage rec { "test_reader" ]; - nativeBuildInputs = [ ninja which ] - ++ lib.optionals cudaSupport [ cuda-native-redist ]; + nativeBuildInputs = [ + ninja + which + ] ++ lib.optionals cudaSupport [ cuda-native-redist ]; - buildInputs = [ pybind11 torch ] ++ lib.optionals cudaSupport [ cuda-redist ]; + buildInputs = [ + pybind11 + torch + ] ++ lib.optionals cudaSupport [ cuda-redist ]; - nativeCheckInputs = [ pytestCheckHook torchvision lmdb onnx onnxruntime scipy pyturbojpeg tifffile ]; + nativeCheckInputs = [ + pytestCheckHook + torchvision + lmdb + onnx + onnxruntime + scipy + pyturbojpeg + tifffile + ]; propagatedBuildInputs = [ mmengine @@ -111,9 +130,7 @@ buildPythonPackage rec { addict ]; - pythonImportsCheck = [ - "mmcv" - ]; + pythonImportsCheck = [ "mmcv" ]; meta = with lib; { description = "A Foundational Library for Computer Vision Research"; diff --git a/pkgs/development/python-modules/mmh3/default.nix b/pkgs/development/python-modules/mmh3/default.nix index 9aff484888ab..547c7f7b884a 100644 --- a/pkgs/development/python-modules/mmh3/default.nix +++ b/pkgs/development/python-modules/mmh3/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-oc8lNIuazSKd2kZKCU1hcPR9KFCh/Ldio7YXLSzmyko="; }; - pythonImportsCheck = [ - "mmh3" - ]; + pythonImportsCheck = [ "mmh3" ]; meta = with lib; { description = "Python wrapper for MurmurHash3, a set of fast and robust hash functions"; diff --git a/pkgs/development/python-modules/mmpython/default.nix b/pkgs/development/python-modules/mmpython/default.nix index 837a1953be5e..6a980c242e8f 100644 --- a/pkgs/development/python-modules/mmpython/default.nix +++ b/pkgs/development/python-modules/mmpython/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchurl -, isPyPy -, isPy3k +{ + lib, + buildPythonPackage, + fetchurl, + isPyPy, + isPy3k, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { homepage = "https://sourceforge.net/projects/mmpython/"; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/mmtf-python/default.nix b/pkgs/development/python-modules/mmtf-python/default.nix index 197d0cf3e65b..0cf01c7bc6fb 100644 --- a/pkgs/development/python-modules/mmtf-python/default.nix +++ b/pkgs/development/python-modules/mmtf-python/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msgpack -, numpy -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + msgpack, + numpy, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { numpy ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; unittestFlagsArray = [ "-s mmtf/tests" "-p \"*_tests.py\"" ]; - pythonImportsCheck = [ - "mmtf" - ]; + pythonImportsCheck = [ "mmtf" ]; meta = { description = "The python implementation of the MMTF API, decoder and encoder"; diff --git a/pkgs/development/python-modules/mne-python/default.nix b/pkgs/development/python-modules/mne-python/default.nix index c34d2649cda8..03a7657031c6 100644 --- a/pkgs/development/python-modules/mne-python/default.nix +++ b/pkgs/development/python-modules/mne-python/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, numpy -, scipy -, pytestCheckHook -, pytest-timeout -, pytest-harvest -, matplotlib -, decorator -, jinja2 -, pooch -, tqdm -, packaging -, importlib-resources -, lazy-loader -, h5io -, pymatreader -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + numpy, + scipy, + pytestCheckHook, + pytest-timeout, + pytest-harvest, + matplotlib, + decorator, + jinja2, + pooch, + tqdm, + packaging, + importlib-resources, + lazy-loader, + h5io, + pymatreader, + pythonOlder, }: buildPythonPackage rec { @@ -56,9 +57,7 @@ buildPythonPackage rec { packaging jinja2 lazy-loader - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; passthru.optional-dependencies = { hdf5 = [ @@ -79,9 +78,7 @@ buildPythonPackage rec { export MNE_SKIP_NETWORK_TESTS=1 ''; - pythonImportsCheck = [ - "mne" - ]; + pythonImportsCheck = [ "mne" ]; meta = with lib; { description = "Magnetoencephelography and electroencephalography in Python"; @@ -89,6 +86,9 @@ buildPythonPackage rec { homepage = "https://mne.tools"; changelog = "https://mne.tools/stable/changes/v${version}.html"; license = licenses.bsd3; - maintainers = with maintainers; [ bcdarwin mbalatsko ]; + maintainers = with maintainers; [ + bcdarwin + mbalatsko + ]; }; } diff --git a/pkgs/development/python-modules/mnemonic/default.nix b/pkgs/development/python-modules/mnemonic/default.nix index ba5fe3dc03c3..839367cc8e31 100644 --- a/pkgs/development/python-modules/mnemonic/default.nix +++ b/pkgs/development/python-modules/mnemonic/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,6 +25,9 @@ buildPythonPackage rec { description = "Reference implementation of BIP-0039"; homepage = "https://github.com/trezor/python-mnemonic"; license = licenses.mit; - maintainers = with maintainers; [ np prusnak ]; + maintainers = with maintainers; [ + np + prusnak + ]; }; } diff --git a/pkgs/development/python-modules/mnist/default.nix b/pkgs/development/python-modules/mnist/default.nix index 3e48b3198337..25f2106e20cb 100644 --- a/pkgs/development/python-modules/mnist/default.nix +++ b/pkgs/development/python-modules/mnist/default.nix @@ -1,4 +1,11 @@ -{ buildPythonPackage, fetchFromGitHub, isPy27, lib, mock, numpy, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + isPy27, + lib, + mock, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,4 +41,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ dmrauh ]; }; } - diff --git a/pkgs/development/python-modules/moat-ble/default.nix b/pkgs/development/python-modules/moat-ble/default.nix index 2e55edd7aedb..26058cb0577a 100644 --- a/pkgs/development/python-modules/moat-ble/default.nix +++ b/pkgs/development/python-modules/moat-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-dy1Fm0Z1PUsPY8QTiXUcWSi+csFnTUsobSkA92m06QI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-sensor-state-data @@ -33,18 +32,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=moat_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "moat_ble" - ]; + pythonImportsCheck = [ "moat_ble" ]; meta = with lib; { description = "Library for Moat BLE devices"; diff --git a/pkgs/development/python-modules/mobi/default.nix b/pkgs/development/python-modules/mobi/default.nix index b5c04d0bae89..c4f3af961ca3 100644 --- a/pkgs/development/python-modules/mobi/default.nix +++ b/pkgs/development/python-modules/mobi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, loguru -, poetry-core -, pythonOlder -, pythonRelaxDepsHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + loguru, + poetry-core, + pythonOlder, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-g1L72MkJdrKQRsEdew+Qsn8LfCn8+cmj2pmY6s4nv2U="; }; - pythonRelaxDeps = [ - "loguru" - ]; + pythonRelaxDeps = [ "loguru" ]; nativeBuildInputs = [ poetry-core @@ -32,13 +31,9 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - loguru - ]; + propagatedBuildInputs = [ loguru ]; - pythonImportsCheck = [ - "mobi" - ]; + pythonImportsCheck = [ "mobi" ]; meta = with lib; { description = "Library for unpacking unencrypted mobi files"; diff --git a/pkgs/development/python-modules/mobly/default.nix b/pkgs/development/python-modules/mobly/default.nix index e89a36199393..046edf9a3da1 100644 --- a/pkgs/development/python-modules/mobly/default.nix +++ b/pkgs/development/python-modules/mobly/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, portpicker -, pyserial -, pyyaml -, timeout-decorator -, typing-extensions + # dependencies + portpicker, + pyserial, + pyyaml, + timeout-decorator, + typing-extensions, -# tests -, procps -, pytestCheckHook -, pytz + # tests + procps, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-hhI1jrHJk4wo49MK8J4VTS2dGmHG2kwzgZeSWBXdXkA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ portpicker diff --git a/pkgs/development/python-modules/mock-open/default.nix b/pkgs/development/python-modules/mock-open/default.nix index 413c5f832d29..4b08c3d06027 100644 --- a/pkgs/development/python-modules/mock-open/default.nix +++ b/pkgs/development/python-modules/mock-open/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "mock-open"; diff --git a/pkgs/development/python-modules/mock-services/default.nix b/pkgs/development/python-modules/mock-services/default.nix index e1c52662f389..723ec6f78233 100644 --- a/pkgs/development/python-modules/mock-services/default.nix +++ b/pkgs/development/python-modules/mock-services/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, attrs -, funcsigs -, requests-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + attrs, + funcsigs, + requests-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { requests-mock ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require networking diff --git a/pkgs/development/python-modules/mock-ssh-server/default.nix b/pkgs/development/python-modules/mock-ssh-server/default.nix index 46608965c1c1..abf911588ba2 100644 --- a/pkgs/development/python-modules/mock-ssh-server/default.nix +++ b/pkgs/development/python-modules/mock-ssh-server/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, paramiko -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + paramiko, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-yJd+WDidW5ouofytAKTlSiZhIQg2cLs8BvEp15qwtjo="; }; - propagatedBuildInputs = [ - paramiko - ]; + propagatedBuildInputs = [ paramiko ]; # Tests are running into a timeout on Hydra, they work locally doCheck = false; - pythonImportsCheck = [ - "mockssh" - ]; + pythonImportsCheck = [ "mockssh" ]; meta = with lib; { description = "Python mock SSH server for testing purposes"; diff --git a/pkgs/development/python-modules/mock/default.nix b/pkgs/development/python-modules/mock/default.nix index 7e5a72a47fad..c5b32f6397c4 100644 --- a/pkgs/development/python-modules/mock/default.nix +++ b/pkgs/development/python-modules/mock/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { sha256 = "sha256-Xpaq1czaRxjgointlLICTfdcwtVVdbpXYtMfV2e4dn0="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mock" - ]; + pythonImportsCheck = [ "mock" ]; meta = with lib; { description = "Rolling backport of unittest.mock for all Pythons"; diff --git a/pkgs/development/python-modules/mocket/default.nix b/pkgs/development/python-modules/mocket/default.nix index 116e85ce2c34..8376b690589d 100644 --- a/pkgs/development/python-modules/mocket/default.nix +++ b/pkgs/development/python-modules/mocket/default.nix @@ -1,35 +1,36 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, stdenv +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + stdenv, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, decorator -, httptools -, python-magic -, urllib3 + # dependencies + decorator, + httptools, + python-magic, + urllib3, -# optional-dependencies -, xxhash -, pook + # optional-dependencies + xxhash, + pook, -# tests -, aiohttp -, asgiref -, fastapi -, gevent -, httpx -, psutil -, pytest-asyncio -, pytestCheckHook -, redis -, redis-server -, requests -, sure + # tests + aiohttp, + asgiref, + fastapi, + gevent, + httpx, + psutil, + pytest-asyncio, + pytestCheckHook, + redis, + redis-server, + requests, + sure, }: @@ -43,9 +44,7 @@ buildPythonPackage rec { hash = "sha256-6yWo7SBlVldK+AxUBnQOXjQBxz9HbIC+Ch977xiZxek="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ decorator @@ -55,28 +54,25 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - pook = [ - pook - ]; - speedups = [ - xxhash - ]; + pook = [ pook ]; + speedups = [ xxhash ]; }; - nativeCheckInputs = [ - asgiref - fastapi - gevent - httpx - psutil - pytest-asyncio - pytestCheckHook - redis - requests - sure - ] ++ lib.optionals (pythonOlder "3.12") [ - aiohttp - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + nativeCheckInputs = + [ + asgiref + fastapi + gevent + httpx + psutil + pytest-asyncio + pytestCheckHook + redis + requests + sure + ] + ++ lib.optionals (pythonOlder "3.12") [ aiohttp ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); preCheck = lib.optionalString stdenv.isLinux '' ${redis-server}/bin/redis-server & @@ -101,13 +97,9 @@ buildPythonPackage rec { "test_no_dangling_fds" ]; - disabledTestPaths = lib.optionals stdenv.isDarwin [ - "tests/main/test_redis.py" - ]; + disabledTestPaths = lib.optionals stdenv.isDarwin [ "tests/main/test_redis.py" ]; - pythonImportsCheck = [ - "mocket" - ]; + pythonImportsCheck = [ "mocket" ]; meta = with lib; { changelog = "https://github.com/mindflayer/python-mocket/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/mockfs/default.nix b/pkgs/development/python-modules/mockfs/default.nix index 680a6c9fc795..e318e0beb31b 100644 --- a/pkgs/development/python-modules/mockfs/default.nix +++ b/pkgs/development/python-modules/mockfs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, importlib-metadata -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + importlib-metadata, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,15 +29,11 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - importlib-metadata - ]; + propagatedBuildInputs = [ importlib-metadata ]; pythonImportsCheck = [ "mockfs" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A simple mock filesystem for use in unit tests"; diff --git a/pkgs/development/python-modules/mockito/default.nix b/pkgs/development/python-modules/mockito/default.nix index 91c03c9cb6db..709a358c368c 100644 --- a/pkgs/development/python-modules/mockito/default.nix +++ b/pkgs/development/python-modules/mockito/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-A2Eo2n2vLaiaC2N71zMh6ZL/ZbqKOYdsojPuwX63fo8="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; nativeCheckInputs = [ numpy diff --git a/pkgs/development/python-modules/mockupdb/default.nix b/pkgs/development/python-modules/mockupdb/default.nix index e06b1637b685..5ac9a946ac16 100644 --- a/pkgs/development/python-modules/mockupdb/default.nix +++ b/pkgs/development/python-modules/mockupdb/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pymongo -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pymongo, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-020OW2RF/5FB400BL6K13+WJhHqh4+y413QHSWKvlE4="; }; - propagatedBuildInputs = [ - pymongo - ]; + propagatedBuildInputs = [ pymongo ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mockupdb" - ]; + pythonImportsCheck = [ "mockupdb" ]; disabledTests = [ # AssertionError: expected to receive Request(), got nothing diff --git a/pkgs/development/python-modules/moddb/default.nix b/pkgs/development/python-modules/moddb/default.nix index a0205d5c4676..60229e37414a 100644 --- a/pkgs/development/python-modules/moddb/default.nix +++ b/pkgs/development/python-modules/moddb/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, beautifulsoup4 -, pyrate-limiter -, requests -, toolz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + beautifulsoup4, + pyrate-limiter, + requests, + toolz, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-2t5QQAmSLOrdNCl0XdsFPdP2UF10/qq69DovqeQ1Vt8="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ beautifulsoup4 @@ -37,7 +36,6 @@ buildPythonPackage rec { doCheck = false; # Tests try to access the internet. - meta = with lib; { description = "A Python scrapper to access ModDB mods, games and more as objects"; homepage = "https://github.com/ClementJ18/moddb"; diff --git a/pkgs/development/python-modules/modelcif/default.nix b/pkgs/development/python-modules/modelcif/default.nix index e3bfea707429..91282f4081c6 100644 --- a/pkgs/development/python-modules/modelcif/default.nix +++ b/pkgs/development/python-modules/modelcif/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, ihm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + ihm, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - ihm - ]; + propagatedBuildInputs = [ ihm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require network access diff --git a/pkgs/development/python-modules/modeled/default.nix b/pkgs/development/python-modules/modeled/default.nix index bcbeebf1ca37..04655a61378f 100644 --- a/pkgs/development/python-modules/modeled/default.nix +++ b/pkgs/development/python-modules/modeled/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, zetup -, six -, moretools -, path -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + zetup, + six, + moretools, + path, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,7 +23,11 @@ buildPythonPackage rec { buildInputs = [ zetup ]; - propagatedBuildInputs = [ six moretools path ]; + propagatedBuildInputs = [ + six + moretools + path + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/moderngl-window/default.nix b/pkgs/development/python-modules/moderngl-window/default.nix index abe68766a9ce..90e07d12178d 100644 --- a/pkgs/development/python-modules/moderngl-window/default.nix +++ b/pkgs/development/python-modules/moderngl-window/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, setuptools -, glfw -, moderngl -, numpy -, pillow -, pygame -, pyglet -, pyqt5 -, pyrr -, pysdl2 -, pyside2 -, pythonOlder -, scipy -, trimesh +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + setuptools, + glfw, + moderngl, + numpy, + pillow, + pygame, + pyglet, + pyqt5, + pyrr, + pysdl2, + pyside2, + pythonOlder, + scipy, + trimesh, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-zTygSXU/vQZaFCuHbRBpO9/BYYA2UOid+wvhyc2bWMI="; }; - pythonRelaxDeps = [ - "pillow" - ]; + pythonRelaxDeps = [ "pillow" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -55,29 +54,17 @@ buildPythonPackage rec { trimesh scipy ]; - glfw = [ - glfw - ]; - pygame = [ - pygame - ]; - PySDL2 = [ - pysdl2 - ]; - PySide2 = [ - pyside2 - ]; - pyqt5 = [ - pyqt5 - ]; + glfw = [ glfw ]; + pygame = [ pygame ]; + PySDL2 = [ pysdl2 ]; + PySide2 = [ pyside2 ]; + pyqt5 = [ pyqt5 ]; }; # Tests need a display to run. doCheck = false; - pythonImportsCheck = [ - "moderngl_window" - ]; + pythonImportsCheck = [ "moderngl_window" ]; meta = with lib; { description = "Cross platform helper library for ModernGL making window creation and resource loading simple"; diff --git a/pkgs/development/python-modules/moderngl/default.nix b/pkgs/development/python-modules/moderngl/default.nix index f2ff8760f02e..77ccc8d1d59c 100644 --- a/pkgs/development/python-modules/moderngl/default.nix +++ b/pkgs/development/python-modules/moderngl/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, libGL -, libX11 -, glcontext -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + libGL, + libX11, + glcontext, + pythonOlder, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { libX11 ]; - propagatedBuildInputs = [ - glcontext - ]; + propagatedBuildInputs = [ glcontext ]; # Tests need a display to run. doCheck = false; - pythonImportsCheck = [ - "moderngl" - ]; + pythonImportsCheck = [ "moderngl" ]; meta = with lib; { description = "High performance rendering for Python"; diff --git a/pkgs/development/python-modules/modestmaps/default.nix b/pkgs/development/python-modules/modestmaps/default.nix index 180baaefce77..4e4be8310ccb 100644 --- a/pkgs/development/python-modules/modestmaps/default.nix +++ b/pkgs/development/python-modules/modestmaps/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + isPy27, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { homepage = "http://modestmaps.com"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/mohawk/default.nix b/pkgs/development/python-modules/mohawk/default.nix index 99caae9ec3f6..97b44b6dc75d 100644 --- a/pkgs/development/python-modules/mohawk/default.nix +++ b/pkgs/development/python-modules/mohawk/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, mock, nose, pytest, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + nose, + pytest, + six, +}: buildPythonPackage rec { pname = "mohawk"; @@ -12,7 +20,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ mock nose pytest ]; + nativeCheckInputs = [ + mock + nose + pytest + ]; checkPhase = '' pytest mohawk/tests.py diff --git a/pkgs/development/python-modules/molecule/plugins.nix b/pkgs/development/python-modules/molecule/plugins.nix index dec568c4a936..8b7c5b8ffba5 100644 --- a/pkgs/development/python-modules/molecule/plugins.nix +++ b/pkgs/development/python-modules/molecule/plugins.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, setuptools-scm -, python-vagrant -, docker +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + setuptools-scm, + python-vagrant, + docker, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { }; # reverse the dependency - pythonRemoveDeps = [ - "molecule" - ]; + pythonRemoveDeps = [ "molecule" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -28,12 +27,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - docker = [ - docker - ]; - vagrant = [ - python-vagrant - ]; + docker = [ docker ]; + vagrant = [ python-vagrant ]; }; pythonImportsCheck = [ "molecule_plugins" ]; diff --git a/pkgs/development/python-modules/monai-deploy/default.nix b/pkgs/development/python-modules/monai-deploy/default.nix index 6e88c4b3a8df..d5a1c315d495 100644 --- a/pkgs/development/python-modules/monai-deploy/default.nix +++ b/pkgs/development/python-modules/monai-deploy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, networkx -, numpy -, pytest-lazy-fixture -, pytestCheckHook -, pythonOlder -, setuptools -, typeguard -, versioneer +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + networkx, + numpy, + pytest-lazy-fixture, + pytestCheckHook, + pythonOlder, + setuptools, + typeguard, + versioneer, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/monai/default.nix b/pkgs/development/python-modules/monai/default.nix index df1f6d552a7a..d4693fda7521 100644 --- a/pkgs/development/python-modules/monai/default.nix +++ b/pkgs/development/python-modules/monai/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonAtLeast -, ninja -, ignite -, numpy -, pybind11 -, torch -, which +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonAtLeast, + ninja, + ignite, + numpy, + pybind11, + torch, + which, }: buildPythonPackage rec { @@ -34,13 +35,20 @@ buildPythonPackage rec { export MAX_JOBS=$NIX_BUILD_CORES; ''; - nativeBuildInputs = [ ninja which ]; + nativeBuildInputs = [ + ninja + which + ]; buildInputs = [ pybind11 ]; - propagatedBuildInputs = [ numpy torch ignite ]; + propagatedBuildInputs = [ + numpy + torch + ignite + ]; BUILD_MONAI = 1; - doCheck = false; # takes too long; tries to download data + doCheck = false; # takes too long; tries to download data pythonImportsCheck = [ "monai" diff --git a/pkgs/development/python-modules/monero/default.nix b/pkgs/development/python-modules/monero/default.nix index 71554607326c..a0ef05cb3b05 100644 --- a/pkgs/development/python-modules/monero/default.nix +++ b/pkgs/development/python-modules/monero/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodomex -, pysocks -, pynacl -, requests -, six -, varint -, pytestCheckHook -, pytest-cov -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodomex, + pysocks, + pynacl, + requests, + six, + varint, + pytestCheckHook, + pytest-cov, + responses, }: buildPythonPackage rec { @@ -41,7 +42,11 @@ buildPythonPackage rec { varint ]; - nativeCheckInputs = [ pytestCheckHook pytest-cov responses ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-cov + responses + ]; meta = with lib; { description = "Comprehensive Python module for handling Monero"; diff --git a/pkgs/development/python-modules/mongodict/default.nix b/pkgs/development/python-modules/mongodict/default.nix index 26d3f0516c65..cb18f270726e 100644 --- a/pkgs/development/python-modules/mongodict/default.nix +++ b/pkgs/development/python-modules/mongodict/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pymongo +{ + lib, + buildPythonPackage, + fetchPypi, + pymongo, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "https://github.com/turicas/mongodict/"; license = licenses.gpl3; }; - } diff --git a/pkgs/development/python-modules/mongoengine/default.nix b/pkgs/development/python-modules/mongoengine/default.nix index 644f87521a2c..e19289d09b50 100644 --- a/pkgs/development/python-modules/mongoengine/default.nix +++ b/pkgs/development/python-modules/mongoengine/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pymongo -, isPy27 -, six -, blinker -, nose -, pillow -, coverage +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pymongo, + isPy27, + six, + blinker, + nose, + pillow, + coverage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mongomock/default.nix b/pkgs/development/python-modules/mongomock/default.nix index 5e66ad42197c..8c74f998f820 100644 --- a/pkgs/development/python-modules/mongomock/default.nix +++ b/pkgs/development/python-modules/mongomock/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, packaging -, pbr -, pytestCheckHook -, pythonOlder -, sentinels +{ + lib, + buildPythonPackage, + fetchPypi, + packaging, + pbr, + pytestCheckHook, + pythonOlder, + sentinels, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30="; }; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; propagatedBuildInputs = [ packaging sentinels ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mongomock" - ]; + pythonImportsCheck = [ "mongomock" ]; meta = with lib; { homepage = "https://github.com/mongomock/mongomock"; diff --git a/pkgs/development/python-modules/mongoquery/default.nix b/pkgs/development/python-modules/mongoquery/default.nix index bb17a77d3698..14f09137a1fe 100644 --- a/pkgs/development/python-modules/mongoquery/default.nix +++ b/pkgs/development/python-modules/mongoquery/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + six, + isPy27, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { sha256 = "bd19fc465f0aa9feb3070f144fde41fc68cf28ea32dd3b7565f7df3ab6fc0ac2"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ - "mongoquery" - ]; + pythonImportsCheck = [ "mongoquery" ]; meta = with lib; { description = "A python implementation of mongodb queries"; diff --git a/pkgs/development/python-modules/monitorcontrol/default.nix b/pkgs/development/python-modules/monitorcontrol/default.nix index 920074b65f0b..142c35f1e0d3 100644 --- a/pkgs/development/python-modules/monitorcontrol/default.nix +++ b/pkgs/development/python-modules/monitorcontrol/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pyudev -, pytestCheckHook -, voluptuous +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pyudev, + pytestCheckHook, + voluptuous, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-fu0Lm7Tcw7TCCBDXTTY20JBAM7oeesyeHQFFILeZxX0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pyudev - ]; + propagatedBuildInputs = [ pyudev ]; nativeCheckInputs = [ pytestCheckHook voluptuous ]; - pythonImportsCheck = [ - pname - ]; + pythonImportsCheck = [ pname ]; meta = with lib; { description = "Python monitor controls using DDC-CI"; diff --git a/pkgs/development/python-modules/monkeyhex/default.nix b/pkgs/development/python-modules/monkeyhex/default.nix index 821a6765bb6f..0a0089e9e321 100644 --- a/pkgs/development/python-modules/monkeyhex/default.nix +++ b/pkgs/development/python-modules/monkeyhex/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, future -, lib +{ + buildPythonPackage, + fetchPypi, + future, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/monotonic/default.nix b/pkgs/development/python-modules/monotonic/default.nix index f52e2b7ffbe9..8041eb88b902 100644 --- a/pkgs/development/python-modules/monotonic/default.nix +++ b/pkgs/development/python-modules/monotonic/default.nix @@ -1,6 +1,8 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -25,5 +27,4 @@ buildPythonPackage rec { homepage = "https://github.com/atdt/monotonic"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/monty/default.nix b/pkgs/development/python-modules/monty/default.nix index e88b9d585d2e..8118a92acf2c 100644 --- a/pkgs/development/python-modules/monty/default.nix +++ b/pkgs/development/python-modules/monty/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, msgpack -, numpy -, pandas -, pydantic -, pymongo -, pytestCheckHook -, pythonOlder -, ruamel-yaml -, setuptools -, setuptools-scm -, torch -, tqdm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + msgpack, + numpy, + pandas, + pydantic, + pymongo, + pytestCheckHook, + pythonOlder, + ruamel-yaml, + setuptools, + setuptools-scm, + torch, + tqdm, }: buildPythonPackage rec { @@ -54,9 +55,7 @@ buildPythonPackage rec { torch ]; - pythonImportsCheck = [ - "monty" - ]; + pythonImportsCheck = [ "monty" ]; disabledTests = [ # Test file was removed and re-added after 2022.9.9 diff --git a/pkgs/development/python-modules/moonraker-api/default.nix b/pkgs/development/python-modules/moonraker-api/default.nix index 9a0437ea056f..c06a8dc9b268 100644 --- a/pkgs/development/python-modules/moonraker-api/default.nix +++ b/pkgs/development/python-modules/moonraker-api/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-aiohttp -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { --replace 'name="moonraker-api",' 'name="moonraker-api",version="${version}",' ''; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-aiohttp pytestCheckHook ]; - pythonImportsCheck = [ - "moonraker_api" - ]; + pythonImportsCheck = [ "moonraker_api" ]; meta = with lib; { description = "Python API for the Moonraker API"; diff --git a/pkgs/development/python-modules/mopeka-iot-ble/default.nix b/pkgs/development/python-modules/mopeka-iot-ble/default.nix index 3a9ca598c43e..7ac84ff2131d 100644 --- a/pkgs/development/python-modules/mopeka-iot-ble/default.nix +++ b/pkgs/development/python-modules/mopeka-iot-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace " --cov=mopeka_iot_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -40,13 +39,9 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mopeka_iot_ble" - ]; + pythonImportsCheck = [ "mopeka_iot_ble" ]; meta = with lib; { description = "Library for Mopeka IoT BLE devices"; diff --git a/pkgs/development/python-modules/more-itertools/default.nix b/pkgs/development/python-modules/more-itertools/default.nix index 6ebdc9801030..6fd9f94525e7 100644 --- a/pkgs/development/python-modules/more-itertools/default.nix +++ b/pkgs/development/python-modules/more-itertools/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook -, six -, stdenv +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, + six, + stdenv, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-j8y0gMQ9PpmgAIdjTAbdArDVD78IizgN5aQaAV7COeE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # iterable = range(10 ** 10) # Is efficiently reversible # OverflowError: Python int too large to convert to C long diff --git a/pkgs/development/python-modules/more-properties/default.nix b/pkgs/development/python-modules/more-properties/default.nix index 05c75b8f2107..18167c4bbc57 100644 --- a/pkgs/development/python-modules/more-properties/default.nix +++ b/pkgs/development/python-modules/more-properties/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace dataclasses "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "more_properties" ]; diff --git a/pkgs/development/python-modules/moreorless/default.nix b/pkgs/development/python-modules/moreorless/default.nix index 39e467a59963..98adafc7d241 100644 --- a/pkgs/development/python-modules/moreorless/default.nix +++ b/pkgs/development/python-modules/moreorless/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, parameterized -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + parameterized, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-N11iqsxMGgzwW2QYeOoHQaR/aDEuoUnnd/2Mc5culN0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; nativeCheckInputs = [ parameterized pytestCheckHook ]; - pythonImportsCheck = [ - "moreorless" - ]; + pythonImportsCheck = [ "moreorless" ]; pytestFlagsArray = [ "moreorless/tests/click.py" diff --git a/pkgs/development/python-modules/moretools/default.nix b/pkgs/development/python-modules/moretools/default.nix index 7bbed27a8e99..7787360d5835 100644 --- a/pkgs/development/python-modules/moretools/default.nix +++ b/pkgs/development/python-modules/moretools/default.nix @@ -1,6 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi -, six, path, zetup, pytest -, decorator }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + path, + zetup, + pytest, + decorator, +}: buildPythonPackage rec { pname = "moretools"; @@ -17,7 +24,11 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ zetup ]; - nativeCheckInputs = [ six path pytest ]; + nativeCheckInputs = [ + six + path + pytest + ]; propagatedBuildInputs = [ decorator ]; meta = with lib; { diff --git a/pkgs/development/python-modules/morfessor/default.nix b/pkgs/development/python-modules/morfessor/default.nix index cf72937a7060..07c552b88d71 100644 --- a/pkgs/development/python-modules/morfessor/default.nix +++ b/pkgs/development/python-modules/morfessor/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/morphys/default.nix b/pkgs/development/python-modules/morphys/default.nix index 1f1c1f3e17ef..4ce36203a700 100644 --- a/pkgs/development/python-modules/morphys/default.nix +++ b/pkgs/development/python-modules/morphys/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, }: buildPythonPackage rec { pname = "morphys"; diff --git a/pkgs/development/python-modules/motionblinds/default.nix b/pkgs/development/python-modules/motionblinds/default.nix index 7d8aa5a78400..ddf43e7c065b 100644 --- a/pkgs/development/python-modules/motionblinds/default.nix +++ b/pkgs/development/python-modules/motionblinds/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodomex -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodomex, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-f5R58p6tMVqmXAjybae8qjeNI3vxtGJ7qxZOl9H5iKw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pycryptodomex - ]; + propagatedBuildInputs = [ pycryptodomex ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "motionblinds" - ]; + pythonImportsCheck = [ "motionblinds" ]; meta = with lib; { description = "Python library for interfacing with Motion Blinds"; diff --git a/pkgs/development/python-modules/motioneye-client/default.nix b/pkgs/development/python-modules/motioneye-client/default.nix index 4f2afc6e4113..1d27f9e0dbbb 100644 --- a/pkgs/development/python-modules/motioneye-client/default.nix +++ b/pkgs/development/python-modules/motioneye-client/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-timeout -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-timeout, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { --replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-aiohttp @@ -44,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "motioneye_client" - ]; + pythonImportsCheck = [ "motioneye_client" ]; meta = with lib; { description = "Python library for motionEye"; diff --git a/pkgs/development/python-modules/motmetrics/default.nix b/pkgs/development/python-modules/motmetrics/default.nix index 36fa2d9a7557..891497a702a1 100644 --- a/pkgs/development/python-modules/motmetrics/default.nix +++ b/pkgs/development/python-modules/motmetrics/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, numpy -, pandas -, scipy -, xmltodict + # dependencies + numpy, + pandas, + scipy, + xmltodict, -# tests -, pytestCheckHook -, pytest-benchmark + # tests + pytestCheckHook, + pytest-benchmark, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-7LKLHXWgW4QpivAgzvWl6qEG0auVvpiZ6bfDViCKsFY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -45,9 +44,7 @@ buildPythonPackage rec { pytest-benchmark ]; - pythonImportsCheck = [ - "motmetrics" - ]; + pythonImportsCheck = [ "motmetrics" ]; meta = with lib; { description = "Bar_chart: Benchmark multiple object trackers (MOT) in Python"; diff --git a/pkgs/development/python-modules/moto/default.nix b/pkgs/development/python-modules/moto/default.nix index a329d6aea971..e72fb7b5ea40 100644 --- a/pkgs/development/python-modules/moto/default.nix +++ b/pkgs/development/python-modules/moto/default.nix @@ -1,44 +1,45 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, boto3 -, botocore -, cryptography -, jinja2 -, python-dateutil -, requests -, responses -, werkzeug -, xmltodict + # dependencies + boto3, + botocore, + cryptography, + jinja2, + python-dateutil, + requests, + responses, + werkzeug, + xmltodict, -# optional-dependencies -, antlr4-python3-runtime -, aws-xray-sdk -, cfn-lint -, flask -, flask-cors -, docker -, graphql-core -, joserfc -, jsonpath-ng -, jsondiff -, multipart -, openapi-spec-validator -, py-partiql-parser -, pyparsing -, pyyaml + # optional-dependencies + antlr4-python3-runtime, + aws-xray-sdk, + cfn-lint, + flask, + flask-cors, + docker, + graphql-core, + joserfc, + jsonpath-ng, + jsondiff, + multipart, + openapi-spec-validator, + py-partiql-parser, + pyparsing, + pyyaml, -# tests -, freezegun -, pytestCheckHook -, pytest-order -, pytest-xdist + # tests + freezegun, + pytestCheckHook, + pytest-order, + pytest-xdist, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { hash = "sha256-Lqyi33dY9oaN9CC/ByXNC5PZhwlgbx+4sjQ7W9yCLZE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ boto3 @@ -89,9 +88,7 @@ buildPythonPackage rec { pyyaml setuptools ]; - cognitoidp = [ - joserfc - ]; + cognitoidp = [ joserfc ]; }; __darwinAllowLocalNetworking = true; @@ -108,10 +105,12 @@ buildPythonPackage rec { env.AWS_SECRET_ACCESS_KEY = "sk"; pytestFlagsArray = [ - "-m" "'not network and not requires_docker'" + "-m" + "'not network and not requires_docker'" # Matches upstream configuration, presumably due to expensive setup/teardown. - "--dist" "loadscope" + "--dist" + "loadscope" # Fails at local name resolution "--deselect=tests/test_s3/test_multiple_accounts_server.py::TestAccountIdResolution::test_with_custom_request_header" diff --git a/pkgs/development/python-modules/motor/default.nix b/pkgs/development/python-modules/motor/default.nix index d551aa19483b..fa9fc4da9e63 100644 --- a/pkgs/development/python-modules/motor/default.nix +++ b/pkgs/development/python-modules/motor/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mockupdb -, pymongo -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mockupdb, + pymongo, + pythonOlder, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-Rj8eYZxmw/cn/vkhLunmHgxMMHIQe80Zhc2p0q3b/AY="; }; - propagatedBuildInputs = [ - pymongo - ]; + propagatedBuildInputs = [ pymongo ]; - nativeCheckInputs = [ - mockupdb - ]; + nativeCheckInputs = [ mockupdb ]; # network connections doCheck = false; - pythonImportsCheck = [ - "motor" - ]; + pythonImportsCheck = [ "motor" ]; meta = with lib; { description = "Non-blocking MongoDB driver for Tornado or asyncio"; diff --git a/pkgs/development/python-modules/mouseinfo/default.nix b/pkgs/development/python-modules/mouseinfo/default.nix index 9d4fe2af480f..edb0785f93bf 100644 --- a/pkgs/development/python-modules/mouseinfo/default.nix +++ b/pkgs/development/python-modules/mouseinfo/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, buildPythonPackage -, pyperclip -, fetchFromGitHub -, xlib -, pillow +{ + stdenv, + lib, + buildPythonPackage, + pyperclip, + fetchFromGitHub, + xlib, + pillow, }: buildPythonPackage rec { pname = "mouseinfo"; diff --git a/pkgs/development/python-modules/mox3/default.nix b/pkgs/development/python-modules/mox3/default.nix index 48b4d3f4fc2e..1228529a0a6d 100644 --- a/pkgs/development/python-modules/mox3/default.nix +++ b/pkgs/development/python-modules/mox3/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonAtLeast -, subunit -, testrepository -, testtools -, six -, pbr -, fixtures +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonAtLeast, + subunit, + testrepository, + testtools, + six, + pbr, + fixtures, }: buildPythonPackage rec { @@ -22,8 +23,16 @@ buildPythonPackage rec { sha256 = "8a526b7b9b6341f541a9aef3e08c93fd84a5373fe89d4cc51dd571f085b2363c"; }; - buildInputs = [ subunit testrepository testtools six ]; - propagatedBuildInputs = [ pbr fixtures ]; + buildInputs = [ + subunit + testrepository + testtools + six + ]; + propagatedBuildInputs = [ + pbr + fixtures + ]; # Disabling as several tests dependencies are missing: # https://opendev.org/openstack/mox3/src/branch/master/test-requirements.txt @@ -34,5 +43,4 @@ buildPythonPackage rec { homepage = "https://docs.openstack.org/mox3/latest/"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/mpd2/default.nix b/pkgs/development/python-modules/mpd2/default.nix index ce87b43c5fb0..ded51c51d0cc 100644 --- a/pkgs/development/python-modules/mpd2/default.nix +++ b/pkgs/development/python-modules/mpd2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, twisted -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + twisted, + unittestCheckHook, }: buildPythonPackage rec { @@ -19,26 +20,22 @@ buildPythonPackage rec { hash = "sha256-S67DWEzEPtmUjVVZB5+vwmebBrKt4nPpCbNYJlSys/U="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { - twisted = [ - twisted - ]; + twisted = [ twisted ]; }; - nativeCheckInputs = [ - unittestCheckHook - ] ++ passthru.optional-dependencies.twisted; + nativeCheckInputs = [ unittestCheckHook ] ++ passthru.optional-dependencies.twisted; meta = with lib; { changelog = "https://github.com/Mic92/python-mpd2/blob/v${version}/doc/changes.rst"; description = "A Python client module for the Music Player Daemon"; homepage = "https://github.com/Mic92/python-mpd2"; license = licenses.lgpl3Plus; - maintainers = with maintainers; [ mic92 hexa ]; + maintainers = with maintainers; [ + mic92 + hexa + ]; }; - } diff --git a/pkgs/development/python-modules/mpi4py/default.nix b/pkgs/development/python-modules/mpi4py/default.nix index 9119db8a204b..1c3d0a2f850f 100644 --- a/pkgs/development/python-modules/mpi4py/default.nix +++ b/pkgs/development/python-modules/mpi4py/default.nix @@ -1,5 +1,12 @@ -{ lib, fetchPypi, fetchpatch, python, buildPythonPackage -, mpi, mpiCheckPhaseHook, openssh +{ + lib, + fetchPypi, + fetchpatch, + python, + buildPythonPackage, + mpi, + mpiCheckPhaseHook, + openssh, }: buildPythonPackage rec { @@ -42,7 +49,10 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ openssh mpiCheckPhaseHook ]; + nativeCheckInputs = [ + openssh + mpiCheckPhaseHook + ]; meta = with lib; { description = "Python bindings for the Message Passing Interface standard"; diff --git a/pkgs/development/python-modules/mpl-scatter-density/default.nix b/pkgs/development/python-modules/mpl-scatter-density/default.nix index 152c07f10a7e..832140a31397 100644 --- a/pkgs/development/python-modules/mpl-scatter-density/default.nix +++ b/pkgs/development/python-modules/mpl-scatter-density/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pytestCheckHook -, fetchFromGitHub -, fetchpatch -, pythonOlder -, setuptools-scm -, setuptools -, fast-histogram -, matplotlib -, numpy -, wheel -, pytest-mpl +{ + lib, + buildPythonPackage, + pytestCheckHook, + fetchFromGitHub, + fetchpatch, + pythonOlder, + setuptools-scm, + setuptools, + fast-histogram, + matplotlib, + numpy, + wheel, + pytest-mpl, }: buildPythonPackage rec { @@ -42,7 +43,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ matplotlib numpy fast-histogram ]; + propagatedBuildInputs = [ + matplotlib + numpy + fast-histogram + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/mpldatacursor/default.nix b/pkgs/development/python-modules/mpldatacursor/default.nix index 649d5ee814d2..4b33f34b93ed 100644 --- a/pkgs/development/python-modules/mpldatacursor/default.nix +++ b/pkgs/development/python-modules/mpldatacursor/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mplfinance/default.nix b/pkgs/development/python-modules/mplfinance/default.nix index 600c4ec0d05a..a49b2a8afcc4 100644 --- a/pkgs/development/python-modules/mplfinance/default.nix +++ b/pkgs/development/python-modules/mplfinance/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, matplotlib, pandas }: +{ + lib, + buildPythonPackage, + fetchPypi, + matplotlib, + pandas, +}: buildPythonPackage rec { pname = "mplfinance"; @@ -10,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-pATiprTELt8GrEkeKjILPfpdNDVoex5t+Mc+6Gg7cPY="; }; - propagatedBuildInputs = [ matplotlib pandas ]; + propagatedBuildInputs = [ + matplotlib + pandas + ]; # tests are only included on GitHub where this version misses a tag # and half of them fail diff --git a/pkgs/development/python-modules/mplhep-data/default.nix b/pkgs/development/python-modules/mplhep-data/default.nix index 12ec813f12b9..0c6baa8b3e3e 100644 --- a/pkgs/development/python-modules/mplhep-data/default.nix +++ b/pkgs/development/python-modules/mplhep-data/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -21,14 +22,16 @@ buildPythonPackage rec { setuptools-scm ]; - pythonImportsCheck = [ - "mplhep_data" - ]; + pythonImportsCheck = [ "mplhep_data" ]; meta = with lib; { description = "Sub-package to hold data (fonts) for mplhep"; homepage = "https://github.com/scikit-hep/mplhep_data"; - license = with licenses; [ mit gfl ofl ]; + license = with licenses; [ + mit + gfl + ofl + ]; maintainers = with maintainers; [ veprbl ]; }; } diff --git a/pkgs/development/python-modules/mplhep/default.nix b/pkgs/development/python-modules/mplhep/default.nix index 845d9942f741..bda83366dd6b 100644 --- a/pkgs/development/python-modules/mplhep/default.nix +++ b/pkgs/development/python-modules/mplhep/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hist -, matplotlib -, mplhep-data -, pytestCheckHook -, pytest-mock -, pytest-mpl -, scipy -, setuptools -, setuptools-scm -, uhi -, uproot +{ + lib, + buildPythonPackage, + fetchPypi, + hist, + matplotlib, + mplhep-data, + pytestCheckHook, + pytest-mock, + pytest-mpl, + scipy, + setuptools, + setuptools-scm, + uhi, + uproot, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { "test_uproot_versions" ]; - pythonImportsCheck = [ - "mplhep" - ]; + pythonImportsCheck = [ "mplhep" ]; meta = with lib; { description = "Extended histogram plots on top of matplotlib and HEP compatible styling similar to current collaboration requirements (ROOT)"; diff --git a/pkgs/development/python-modules/mplleaflet/default.nix b/pkgs/development/python-modules/mplleaflet/default.nix index d5d779cbd514..76a37ffefe2c 100644 --- a/pkgs/development/python-modules/mplleaflet/default.nix +++ b/pkgs/development/python-modules/mplleaflet/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, six +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + six, }: buildPythonPackage rec { @@ -10,7 +11,10 @@ buildPythonPackage rec { version = "0.0.5"; format = "setuptools"; - propagatedBuildInputs = [ jinja2 six ]; + propagatedBuildInputs = [ + jinja2 + six + ]; # No tests in archive doCheck = false; diff --git a/pkgs/development/python-modules/mpmath/default.nix b/pkgs/development/python-modules/mpmath/default.nix index 20e7049ac370..1cff95565d6c 100644 --- a/pkgs/development/python-modules/mpmath/default.nix +++ b/pkgs/development/python-modules/mpmath/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gmpy2 -, isPyPy -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gmpy2, + isPyPy, + setuptools, + pytestCheckHook, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -22,27 +23,23 @@ buildPythonPackage rec { hash = "sha256-9BGcaC3TyolGeO65/H42T/WQY6z5vc1h+MA+8MGFChU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { - gmpy = lib.optionals (!isPyPy) [ - gmpy2 - ]; + gmpy = lib.optionals (!isPyPy) [ gmpy2 ]; }; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { - homepage = "https://mpmath.org/"; + homepage = "https://mpmath.org/"; description = "A pure-Python library for multiprecision floating arithmetic"; - license = licenses.bsd3; + license = licenses.bsd3; maintainers = with maintainers; [ lovek323 ]; - platforms = platforms.unix; + platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/mpris-server/default.nix b/pkgs/development/python-modules/mpris-server/default.nix index cd790275e085..611ac8a2f864 100644 --- a/pkgs/development/python-modules/mpris-server/default.nix +++ b/pkgs/development/python-modules/mpris-server/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonRelaxDepsHook -, fetchPypi -, emoji -, pydbus -, pygobject3 -, unidecode -, setuptools +{ + lib, + buildPythonPackage, + pythonRelaxDepsHook, + fetchPypi, + emoji, + pydbus, + pygobject3, + unidecode, + setuptools, }: buildPythonPackage rec { pname = "mpris-server"; @@ -31,9 +32,7 @@ buildPythonPackage rec { unidecode ]; - pythonRelaxDeps = [ - "emoji" - ]; + pythonRelaxDeps = [ "emoji" ]; pythonImportsCheck = [ "mpris_server" ]; diff --git a/pkgs/development/python-modules/mpv/default.nix b/pkgs/development/python-modules/mpv/default.nix index 3763e25660a5..cda2eaa578e3 100644 --- a/pkgs/development/python-modules/mpv/default.nix +++ b/pkgs/development/python-modules/mpv/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, mpv -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + mpv, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-qP5Biw4sTLioAhmMZX+Pemue2PWc3N7afAe38dwJv3U="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ mpv ]; diff --git a/pkgs/development/python-modules/mpyq/default.nix b/pkgs/development/python-modules/mpyq/default.nix index f23feb21f054..9e92598261e0 100644 --- a/pkgs/development/python-modules/mpyq/default.nix +++ b/pkgs/development/python-modules/mpyq/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mqtt2influxdb/default.nix b/pkgs/development/python-modules/mqtt2influxdb/default.nix index 351e1ab69085..6f6bc9049e8b 100644 --- a/pkgs/development/python-modules/mqtt2influxdb/default.nix +++ b/pkgs/development/python-modules/mqtt2influxdb/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, influxdb -, jsonpath-ng -, paho-mqtt -, py-expression-eval -, pyaml -, pycron -, schema +{ + lib, + buildPythonPackage, + fetchFromGitHub, + influxdb, + jsonpath-ng, + paho-mqtt, + py-expression-eval, + pyaml, + pycron, + schema, }: buildPythonPackage rec { pname = "mqtt2influxdb"; diff --git a/pkgs/development/python-modules/mrjob/default.nix b/pkgs/development/python-modules/mrjob/default.nix index 0a28d82f74ad..deb6e0c6ca62 100644 --- a/pkgs/development/python-modules/mrjob/default.nix +++ b/pkgs/development/python-modules/mrjob/default.nix @@ -1,26 +1,26 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchFromGitHub, -# propagates -, pyyaml + # propagates + pyyaml, -# optionals -, boto3 -, botocore -, google-cloud-dataproc -, google-cloud-logging -, google-cloud-storage -, python-rapidjson -, simplejson -, ujson + # optionals + boto3, + botocore, + google-cloud-dataproc, + google-cloud-logging, + google-cloud-storage, + python-rapidjson, + simplejson, + ujson, - -# tests -, pyspark -, unittestCheckHook -, warcio + # tests + pyspark, + unittestCheckHook, + warcio, }: buildPythonPackage rec { @@ -37,9 +37,7 @@ buildPythonPackage rec { hash = "sha256-Yp4yUx6tkyGB622I9y+AWK2AkIDVGKQPMM+LtB/M3uo="; }; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; passthru.optional-dependencies = { aws = [ @@ -51,15 +49,9 @@ buildPythonPackage rec { google-cloud-logging google-cloud-storage ]; - rapidjson = [ - python-rapidjson - ]; - simplejson = [ - simplejson - ]; - ujson = [ - ujson - ]; + rapidjson = [ python-rapidjson ]; + simplejson = [ simplejson ]; + ujson = [ ujson ]; }; doCheck = false; # failing tests @@ -70,9 +62,7 @@ buildPythonPackage rec { warcio ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - unittestFlagsArray = [ - "-v" - ]; + unittestFlagsArray = [ "-v" ]; meta = with lib; { changelog = "https://github.com/Yelp/mrjob/blob/v${version}/CHANGES.txt"; diff --git a/pkgs/development/python-modules/mrsqm/default.nix b/pkgs/development/python-modules/mrsqm/default.nix index 89d64611836e..49afd2593d82 100644 --- a/pkgs/development/python-modules/mrsqm/default.nix +++ b/pkgs/development/python-modules/mrsqm/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, cython -, fftw -, pandas -, scikit-learn -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + cython, + fftw, + pandas, + scikit-learn, + numpy, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { buildInputs = [ fftw ]; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ pandas diff --git a/pkgs/development/python-modules/ms-active-directory/default.nix b/pkgs/development/python-modules/ms-active-directory/default.nix index ff908beaa7f2..9f0b1315a826 100644 --- a/pkgs/development/python-modules/ms-active-directory/default.nix +++ b/pkgs/development/python-modules/ms-active-directory/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchFromGitHub -, ldap3 -, pyasn1 -, pycryptodome -, pythonOlder -, pytz -, six +{ + lib, + buildPythonPackage, + dnspython, + fetchFromGitHub, + ldap3, + pyasn1, + pycryptodome, + pythonOlder, + pytz, + six, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "ms_active_directory" - ]; + pythonImportsCheck = [ "ms_active_directory" ]; meta = with lib; { description = "Python module for integrating with Microsoft Active Directory domains"; diff --git a/pkgs/development/python-modules/ms-cv/default.nix b/pkgs/development/python-modules/ms-cv/default.nix index dbcbc6b0be5b..d651ce1a3771 100644 --- a/pkgs/development/python-modules/ms-cv/default.nix +++ b/pkgs/development/python-modules/ms-cv/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { --replace "pytest-runner" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Correlation vector implementation in python"; diff --git a/pkgs/development/python-modules/msal-extensions/default.nix b/pkgs/development/python-modules/msal-extensions/default.nix index 0c7fad002e89..09afbcdc1384 100644 --- a/pkgs/development/python-modules/msal-extensions/default.nix +++ b/pkgs/development/python-modules/msal-extensions/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, msal -, portalocker -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + msal, + portalocker, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-ScInTvOgFxP5mgep5FRu6YZHPTtXhrcZGFE7Wdvcm4c="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ msal @@ -33,9 +32,7 @@ buildPythonPackage rec { # No tests found doCheck = false; - pythonImportsCheck = [ - "msal_extensions" - ]; + pythonImportsCheck = [ "msal_extensions" ]; meta = with lib; { description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python"; diff --git a/pkgs/development/python-modules/msal/default.nix b/pkgs/development/python-modules/msal/default.nix index a736cffb9b30..40e2abe609e5 100644 --- a/pkgs/development/python-modules/msal/default.nix +++ b/pkgs/development/python-modules/msal/default.nix @@ -1,11 +1,12 @@ -{ lib -, cryptography -, buildPythonPackage -, fetchPypi -, pyjwt -, pythonOlder -, requests -, setuptools +{ + lib, + cryptography, + buildPythonPackage, + fetchPypi, + pyjwt, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,24 +21,19 @@ buildPythonPackage rec { hash = "sha256-gLur40Vny3NO/S7BhpstmBlcknRVNp2Ad7PFQgiMXJ0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography pyjwt requests - ] - ++ pyjwt.optional-dependencies.crypto; + ] ++ pyjwt.optional-dependencies.crypto; # Tests assume Network Connectivity: # https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/e2958961e8ec16d0af4199f60c36c3f913497e48/tests/test_authority.py#L73 doCheck = false; - pythonImportsCheck = [ - "msal" - ]; + pythonImportsCheck = [ "msal" ]; meta = with lib; { description = "Library to access the Microsoft Cloud by supporting authentication of users with Microsoft Azure Active Directory accounts (AAD) and Microsoft Accounts (MSA) using industry standard OAuth2 and OpenID Connect"; diff --git a/pkgs/development/python-modules/mscerts/default.nix b/pkgs/development/python-modules/mscerts/default.nix index 6d7642c89470..c7579ed25d0c 100644 --- a/pkgs/development/python-modules/mscerts/default.nix +++ b/pkgs/development/python-modules/mscerts/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-Hucf3tToYm3P6ebKNlUs5V+X1B95u9P2UC1yOItZOhc="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; # extras_require contains signify -> circular dependency # Module has no tests doCheck = false; - pythonImportsCheck = [ - "mscerts" - ]; + pythonImportsCheck = [ "mscerts" ]; meta = with lib; { description = "Makes the Microsoft Trusted Root Program's Certificate Trust Lists available in Python"; diff --git a/pkgs/development/python-modules/msg-parser/default.nix b/pkgs/development/python-modules/msg-parser/default.nix index 5e45338d0787..a013a99bba72 100644 --- a/pkgs/development/python-modules/msg-parser/default.nix +++ b/pkgs/development/python-modules/msg-parser/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# dependencies -, olefile -# test dependencies -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # dependencies + olefile, + # test dependencies + pytestCheckHook, }: let pname = "msg-parser"; @@ -24,13 +25,9 @@ buildPythonPackage { hash = "sha256-srDk6w8nzt0dyGCFQWfVCnKb4LawHoqoHX6d1l1dAmM="; }; - propagatedBuildInputs = [ - olefile - ]; + propagatedBuildInputs = [ olefile ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python module to read, parse and converting Microsoft Outlook MSG E-Mail files."; diff --git a/pkgs/development/python-modules/msgpack-numpy/default.nix b/pkgs/development/python-modules/msgpack-numpy/default.nix index 640b1d2798f0..ff41fa354ebb 100644 --- a/pkgs/development/python-modules/msgpack-numpy/default.nix +++ b/pkgs/development/python-modules/msgpack-numpy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, msgpack -, numpy -, python +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + msgpack, + numpy, + python, }: buildPythonPackage rec { @@ -17,13 +18,11 @@ buildPythonPackage rec { hash = "sha256-xmfTGAUTQi+cdUW+XuxdKW3Ls1fgb3LtOcxoN5dVbmk="; }; - buildInputs = [ - cython - ]; + buildInputs = [ cython ]; propagatedBuildInputs = [ - msgpack - numpy + msgpack + numpy ]; checkPhase = '' diff --git a/pkgs/development/python-modules/msgpack/default.nix b/pkgs/development/python-modules/msgpack/default.nix index e1a114d9344b..8824d519544c 100644 --- a/pkgs/development/python-modules/msgpack/default.nix +++ b/pkgs/development/python-modules/msgpack/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, borgbackup +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + borgbackup, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-lcArDifnBuSNDlQm0XEMp44PBijW6J1bWluRpfEidPM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "msgpack" - ]; + pythonImportsCheck = [ "msgpack" ]; passthru.tests = { # borgbackup is sensible to msgpack versions: https://github.com/borgbackup/borg/issues/3753 @@ -37,7 +32,7 @@ buildPythonPackage rec { inherit borgbackup; }; - meta = with lib; { + meta = with lib; { description = "MessagePack serializer implementation"; homepage = "https://github.com/msgpack/msgpack-python"; changelog = "https://github.com/msgpack/msgpack-python/blob/v${version}/ChangeLog.rst"; diff --git a/pkgs/development/python-modules/msgspec/default.nix b/pkgs/development/python-modules/msgspec/default.nix index 6dac69d22db8..e37cb697318d 100644 --- a/pkgs/development/python-modules/msgspec/default.nix +++ b/pkgs/development/python-modules/msgspec/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, msgpack -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + msgpack, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,16 +22,12 @@ buildPythonPackage rec { hash = "sha256-xqtV60saQNINPMpOnZRSDnicedPSPBUQwPSE5zJGrTo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Requires libasan to be accessible doCheck = false; - pythonImportsCheck = [ - "msgspec" - ]; + pythonImportsCheck = [ "msgspec" ]; meta = with lib; { description = "Module to handle JSON/MessagePack"; diff --git a/pkgs/development/python-modules/msldap/default.nix b/pkgs/development/python-modules/msldap/default.nix index 6b013aa02a63..aed2317480d8 100644 --- a/pkgs/development/python-modules/msldap/default.nix +++ b/pkgs/development/python-modules/msldap/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, unicrypto -, asyauth -, asysocks -, asn1crypto -, winacl -, prompt-toolkit -, tqdm -, wcwidth -, tabulate +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + unicrypto, + asyauth, + asysocks, + asn1crypto, + winacl, + prompt-toolkit, + tqdm, + wcwidth, + tabulate, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-Zb/g5QLJTSb0XTZvVnzbYkYvJ/ZVvQri8CKP48n5ibg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ unicrypto @@ -45,9 +44,7 @@ buildPythonPackage rec { # Project doesn't have tests doCheck = false; - pythonImportsCheck = [ - "msldap" - ]; + pythonImportsCheck = [ "msldap" ]; meta = with lib; { description = "Python LDAP library for auditing MS AD"; diff --git a/pkgs/development/python-modules/msprime/default.nix b/pkgs/development/python-modules/msprime/default.nix index c09b3b8d7609..087ee01fdc55 100644 --- a/pkgs/development/python-modules/msprime/default.nix +++ b/pkgs/development/python-modules/msprime/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, demes -, fetchPypi -, gsl -, newick -, numpy -, oldest-supported-numpy -, pytest-xdist -, pytestCheckHook -, pythonOlder -, scipy -, setuptools-scm -, tskit -, wheel +{ + lib, + buildPythonPackage, + demes, + fetchPypi, + gsl, + newick, + numpy, + oldest-supported-numpy, + pytest-xdist, + pytestCheckHook, + pythonOlder, + scipy, + setuptools-scm, + tskit, + wheel, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - gsl - ]; + buildInputs = [ gsl ]; propagatedBuildInputs = [ numpy @@ -71,9 +70,7 @@ buildPythonPackage rec { preCheck = '' rm -r msprime ''; - pythonImportsCheck = [ - "msprime" - ]; + pythonImportsCheck = [ "msprime" ]; meta = with lib; { description = "Simulate genealogical trees and genomic sequence data using population genetic models"; diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix index 5f4f9869e304..2ffc88ae33d1 100644 --- a/pkgs/development/python-modules/msrest/default.nix +++ b/pkgs/development/python-modules/msrest/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiodns -, aiohttp -, azure-core -, buildPythonPackage -, certifi -, fetchFromGitHub -, httpretty -, isodate -, pytest-aiohttp -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, requests -, requests-oauthlib -, setuptools -, trio +{ + lib, + aiodns, + aiohttp, + azure-core, + buildPythonPackage, + certifi, + fetchFromGitHub, + httpretty, + isodate, + pytest-aiohttp, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + requests, + requests-oauthlib, + setuptools, + trio, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core @@ -53,31 +52,35 @@ buildPythonPackage rec { trio ]; - disabledTests = [ - # Test require network access - "test_basic_aiohttp" - "test_basic_aiohttp" - "test_basic_async_requests" - "test_basic_async_requests" - "test_conf_async_requests" - "test_conf_async_requests" - "test_conf_async_trio_requests" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # AttributeError: 'TestAuthentication' object has no attribute... - "test_apikey_auth" - "test_cs_auth" - "test_eventgrid_auth" - "test_eventgrid_domain_auth" - ]; + disabledTests = + [ + # Test require network access + "test_basic_aiohttp" + "test_basic_aiohttp" + "test_basic_async_requests" + "test_basic_async_requests" + "test_conf_async_requests" + "test_conf_async_requests" + "test_conf_async_trio_requests" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: 'TestAuthentication' object has no attribute... + "test_apikey_auth" + "test_cs_auth" + "test_eventgrid_auth" + "test_eventgrid_domain_auth" + ]; - pythonImportsCheck = [ - "msrest" - ]; + pythonImportsCheck = [ "msrest" ]; meta = with lib; { description = "The runtime library for AutoRest generated Python clients"; homepage = "https://github.com/Azure/msrest-for-python"; license = licenses.mit; - maintainers = with maintainers; [ bendlas jonringer maxwilson ]; + maintainers = with maintainers; [ + bendlas + jonringer + maxwilson + ]; }; } diff --git a/pkgs/development/python-modules/msrestazure/default.nix b/pkgs/development/python-modules/msrestazure/default.nix index b997cd9b5065..57597c3d381c 100644 --- a/pkgs/development/python-modules/msrestazure/default.nix +++ b/pkgs/development/python-modules/msrestazure/default.nix @@ -1,14 +1,15 @@ -{ lib -, adal -, buildPythonPackage -, fetchFromGitHub -, httpretty -, mock -, msrest -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + adal, + buildPythonPackage, + fetchFromGitHub, + httpretty, + mock, + msrest, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-ZZVZi0v1ucD2g5FpLaNhfNBf6Ab10fUEcEdkY4ELaEY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ adal @@ -41,14 +40,15 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "msrest" - ]; + pythonImportsCheck = [ "msrest" ]; meta = with lib; { description = "The runtime library 'msrestazure' for AutoRest generated Python clients"; homepage = "https://azure.microsoft.com/en-us/develop/python/"; license = licenses.mit; - maintainers = with maintainers; [ bendlas jonringer ]; + maintainers = with maintainers; [ + bendlas + jonringer + ]; }; } diff --git a/pkgs/development/python-modules/mss/default.nix b/pkgs/development/python-modules/mss/default.nix index ecc0787062f8..b94269a4a3b8 100644 --- a/pkgs/development/python-modules/mss/default.nix +++ b/pkgs/development/python-modules/mss/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { # Skipping tests due to most relying on DISPLAY being set doCheck = false; - pythonImportsCheck = [ - "mss" - ]; + pythonImportsCheck = [ "mss" ]; meta = with lib; { description = "Cross-platform multiple screenshots module"; diff --git a/pkgs/development/python-modules/mt-940/default.nix b/pkgs/development/python-modules/mt-940/default.nix index e8a032142254..3a664b3933f2 100644 --- a/pkgs/development/python-modules/mt-940/default.nix +++ b/pkgs/development/python-modules/mt-940/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { sed -i "/--no-cov/d" pytest.ini ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pyyaml pytestCheckHook ]; - pythonImportsCheck = [ - "mt940" - ]; + pythonImportsCheck = [ "mt940" ]; meta = with lib; { description = "Module to parse MT940 files and returns smart Python collections for statistics and manipulation"; diff --git a/pkgs/development/python-modules/mujoco/default.nix b/pkgs/development/python-modules/mujoco/default.nix index 3c8787488523..2ff364503060 100644 --- a/pkgs/development/python-modules/mujoco/default.nix +++ b/pkgs/development/python-modules/mujoco/default.nix @@ -1,18 +1,19 @@ -{ absl-py -, buildPythonPackage -, cmake -, etils -, fetchPypi -, glfw -, lib -, mujoco -, numpy -, perl -, pybind11 -, pyopengl -, python -, setuptools -, stdenv +{ + absl-py, + buildPythonPackage, + cmake, + etils, + fetchPypi, + glfw, + lib, + mujoco, + numpy, + perl, + pybind11, + pyopengl, + python, + setuptools, + stdenv, }: buildPythonPackage rec { @@ -30,9 +31,15 @@ buildPythonPackage rec { hash = "sha256-kJm6YAE0HMnji3uUuO96ZzRsdjj6PpT1IHQ6NXiR8pY="; }; - nativeBuildInputs = [ cmake setuptools ]; + nativeBuildInputs = [ + cmake + setuptools + ]; dontUseCmakeConfigure = true; - buildInputs = [ mujoco pybind11 ]; + buildInputs = [ + mujoco + pybind11 + ]; propagatedBuildInputs = [ absl-py etils @@ -53,28 +60,30 @@ buildPythonPackage rec { preConfigure = # Use non-system eigen3, lodepng, abseil: Remove mirror info and prefill # dependency directory. $build from setuptools. - (let - # E.g. 3.11.2 -> "311" - pythonVersionMajorMinor = with lib.versions; - "${major python.pythonVersion}${minor python.pythonVersion}"; + ( + let + # E.g. 3.11.2 -> "311" + pythonVersionMajorMinor = + with lib.versions; + "${major python.pythonVersion}${minor python.pythonVersion}"; - # E.g. "linux-aarch64" - platform = with stdenv.hostPlatform.parsed; - "${kernel.name}-${cpu.name}"; - in '' - ${perl}/bin/perl -0777 -i -pe "s/GIT_REPO\n.*\n.*GIT_TAG\n.*\n//gm" mujoco/CMakeLists.txt - ${perl}/bin/perl -0777 -i -pe "s/(FetchContent_Declare\(\n.*lodepng\n.*)(GIT_REPO.*\n.*GIT_TAG.*\n)(.*\))/\1\3/gm" mujoco/simulate/CMakeLists.txt + # E.g. "linux-aarch64" + platform = with stdenv.hostPlatform.parsed; "${kernel.name}-${cpu.name}"; + in + '' + ${perl}/bin/perl -0777 -i -pe "s/GIT_REPO\n.*\n.*GIT_TAG\n.*\n//gm" mujoco/CMakeLists.txt + ${perl}/bin/perl -0777 -i -pe "s/(FetchContent_Declare\(\n.*lodepng\n.*)(GIT_REPO.*\n.*GIT_TAG.*\n)(.*\))/\1\3/gm" mujoco/simulate/CMakeLists.txt - build="/build/${pname}-${version}/build/temp.${platform}-cpython-${pythonVersionMajorMinor}/" - mkdir -p $build/_deps - ln -s ${mujoco.pin.lodepng} $build/_deps/lodepng-src - ln -s ${mujoco.pin.eigen3} $build/_deps/eigen-src - ln -s ${mujoco.pin.abseil-cpp} $build/_deps/abseil-cpp-src - ''); + build="/build/${pname}-${version}/build/temp.${platform}-cpython-${pythonVersionMajorMinor}/" + mkdir -p $build/_deps + ln -s ${mujoco.pin.lodepng} $build/_deps/lodepng-src + ln -s ${mujoco.pin.eigen3} $build/_deps/eigen-src + ln -s ${mujoco.pin.abseil-cpp} $build/_deps/abseil-cpp-src + '' + ); meta = with lib; { - description = - "Python bindings for MuJoCo: a general purpose physics simulator."; + description = "Python bindings for MuJoCo: a general purpose physics simulator."; homepage = "https://mujoco.org/"; changelog = "https://github.com/google-deepmind/mujoco/releases/tag/${version}"; license = licenses.asl20; diff --git a/pkgs/development/python-modules/mujson/default.nix b/pkgs/development/python-modules/mujson/default.nix index 51a1407dff24..6d980fd74f49 100644 --- a/pkgs/development/python-modules/mujson/default.nix +++ b/pkgs/development/python-modules/mujson/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mullvad-api/default.nix b/pkgs/development/python-modules/mullvad-api/default.nix index bc09093c8d66..2074766ebe6e 100644 --- a/pkgs/development/python-modules/mullvad-api/default.nix +++ b/pkgs/development/python-modules/mullvad-api/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mullvad-closest/default.nix b/pkgs/development/python-modules/mullvad-closest/default.nix index 62537c244491..1affe574c0db 100644 --- a/pkgs/development/python-modules/mullvad-closest/default.nix +++ b/pkgs/development/python-modules/mullvad-closest/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, setuptools -, click -, geopy -, ping3 -, requests -, tabulate -, fetchFromGitHub +{ + lib, + buildPythonPackage, + setuptools, + click, + geopy, + ping3, + requests, + tabulate, + fetchFromGitHub, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-scJiYjEmnDDElE5rHdPbnnuNjjRB0/X3vNGLoi2MAmo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/mulpyplexer/default.nix b/pkgs/development/python-modules/mulpyplexer/default.nix index 29b518262ffa..5ff36083ef86 100644 --- a/pkgs/development/python-modules/mulpyplexer/default.nix +++ b/pkgs/development/python-modules/mulpyplexer/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/multi-key-dict/default.nix b/pkgs/development/python-modules/multi-key-dict/default.nix index c959f2e8f2ec..5cd962b70cf8 100644 --- a/pkgs/development/python-modules/multi-key-dict/default.nix +++ b/pkgs/development/python-modules/multi-key-dict/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,16 +16,12 @@ buildPythonPackage rec { hash = "sha256-3uvewXqjChxDLLP0N+gfhiHhwFQqDAYXp09x4jLpk54="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "multi_key_dict" - ]; + pythonImportsCheck = [ "multi_key_dict" ]; meta = with lib; { description = "multi_key_dict"; diff --git a/pkgs/development/python-modules/multidict/default.nix b/pkgs/development/python-modules/multidict/default.nix index 5588fcbdc5b0..0321c5deba97 100644 --- a/pkgs/development/python-modules/multidict/default.nix +++ b/pkgs/development/python-modules/multidict/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail '"-I",' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/multimethod/default.nix b/pkgs/development/python-modules/multimethod/default.nix index cc0ec79acdfe..defec98badfc 100644 --- a/pkgs/development/python-modules/multimethod/default.nix +++ b/pkgs/development/python-modules/multimethod/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-KfO+6bZOZOv9SWTV4eqJTWb3/PeCpnXknSF47ddZR5o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "multimethod" - ]; + pythonImportsCheck = [ "multimethod" ]; meta = with lib; { description = "Multiple argument dispatching"; diff --git a/pkgs/development/python-modules/multipart/default.nix b/pkgs/development/python-modules/multipart/default.nix index 84daaac2773f..34b12c70edfe 100644 --- a/pkgs/development/python-modules/multipart/default.nix +++ b/pkgs/development/python-modules/multipart/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "multipart" ]; diff --git a/pkgs/development/python-modules/multipledispatch/default.nix b/pkgs/development/python-modules/multipledispatch/default.nix index 2fab50a63f04..c7a4dc215b4d 100644 --- a/pkgs/development/python-modules/multipledispatch/default.nix +++ b/pkgs/development/python-modules/multipledispatch/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/multiprocess/default.nix b/pkgs/development/python-modules/multiprocess/default.nix index 2852fbcbd0d6..57e69de0e785 100644 --- a/pkgs/development/python-modules/multiprocess/default.nix +++ b/pkgs/development/python-modules/multiprocess/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, dill -, fetchFromGitHub +{ + lib, + buildPythonPackage, + dill, + fetchFromGitHub, }: buildPythonPackage rec { @@ -16,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-77F5fkZbljq/tuBTkquKEYVubfghUrMZsAdhp1QpH2k="; }; - propagatedBuildInputs = [ - dill - ]; + propagatedBuildInputs = [ dill ]; # Python-version dependent tests doCheck = false; - pythonImportsCheck = [ - "multiprocess" - ]; + pythonImportsCheck = [ "multiprocess" ]; meta = with lib; { description = "Multiprocessing and multithreading in Python"; diff --git a/pkgs/development/python-modules/multiset/default.nix b/pkgs/development/python-modules/multiset/default.nix index 27476e44b17f..c18691e2d84b 100644 --- a/pkgs/development/python-modules/multiset/default.nix +++ b/pkgs/development/python-modules/multiset/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { setuptools-scm ]; - pythonImportsCheck = [ - "multiset" - ]; + pythonImportsCheck = [ "multiset" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "An implementation of a multiset"; diff --git a/pkgs/development/python-modules/multitasking/default.nix b/pkgs/development/python-modules/multitasking/default.nix index c3401ed6530c..e5880849da73 100644 --- a/pkgs/development/python-modules/multitasking/default.nix +++ b/pkgs/development/python-modules/multitasking/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -14,7 +15,7 @@ buildPythonPackage rec { hash = "sha256-TWvDzGX5stynL7Wnh4UKiNro9iDCs2rptVJI5RvNYCY="; }; - doCheck = false; # No tests included + doCheck = false; # No tests included pythonImportsCheck = [ "multitasking" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/munch/default.nix b/pkgs/development/python-modules/munch/default.nix index 368cc0eff5ad..a7d7371d5af8 100644 --- a/pkgs/development/python-modules/munch/default.nix +++ b/pkgs/development/python-modules/munch/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, pbr -, setuptools + # build-system + pbr, + setuptools, -# tests -, pytestCheckHook -, pyyaml + # tests + pytestCheckHook, + pyyaml, }: buildPythonPackage rec { @@ -40,5 +41,4 @@ buildPythonPackage rec { license = licenses.mit; homepage = "https://github.com/Infinidat/munch"; }; - } diff --git a/pkgs/development/python-modules/mung/default.nix b/pkgs/development/python-modules/mung/default.nix index 03fcd29dba75..214b5c77c15e 100644 --- a/pkgs/development/python-modules/mung/default.nix +++ b/pkgs/development/python-modules/mung/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, lxml -, numpy -, pytestCheckHook -, scikit-image +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + lxml, + numpy, + pytestCheckHook, + scikit-image, }: let version = "1.2"; @@ -22,9 +23,7 @@ buildPythonPackage { hash = "sha256-NSKaJkJRevTy5gh6/ik8Qe46bOPdznsmXPgh7Xz7vXQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ lxml @@ -32,13 +31,9 @@ buildPythonPackage { scikit-image ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mung" - ]; + pythonImportsCheck = [ "mung" ]; meta = with lib; { description = "Music Notation Graph: a data model for optical music recognition"; diff --git a/pkgs/development/python-modules/munkres/default.nix b/pkgs/development/python-modules/munkres/default.nix index d872783d1904..1ba6a8213954 100644 --- a/pkgs/development/python-modules/munkres/default.nix +++ b/pkgs/development/python-modules/munkres/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, isPy3k -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + isPy3k, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,5 +36,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/murmurhash/default.nix b/pkgs/development/python-modules/murmurhash/default.nix index 6845d8a5b6b0..bd69447a4323 100644 --- a/pkgs/development/python-modules/murmurhash/default.nix +++ b/pkgs/development/python-modules/murmurhash/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -22,16 +23,12 @@ buildPythonPackage rec { --replace "'wheel>=0.32.0,<0.33.0'" "" ''; - buildInputs = [ - cython - ]; + buildInputs = [ cython ]; # No test doCheck = false; - pythonImportsCheck = [ - "murmurhash" - ]; + pythonImportsCheck = [ "murmurhash" ]; meta = with lib; { description = "Cython bindings for MurmurHash2"; diff --git a/pkgs/development/python-modules/muscima/default.nix b/pkgs/development/python-modules/muscima/default.nix index 37eb4950bfb7..03bdd1989b52 100644 --- a/pkgs/development/python-modules/muscima/default.nix +++ b/pkgs/development/python-modules/muscima/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, matplotlib -, numpy -, pytestCheckHook -, scikit-image -, scikit-learn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + matplotlib, + numpy, + pytestCheckHook, + scikit-image, + scikit-learn, }: let @@ -33,9 +34,7 @@ buildPythonPackage { matplotlib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # They hard-code the path to the dataset and expect you to edit the test to update it to your value diff --git a/pkgs/development/python-modules/music-tag/default.nix b/pkgs/development/python-modules/music-tag/default.nix index f997ca47253c..1c396703cd0c 100644 --- a/pkgs/development/python-modules/music-tag/default.nix +++ b/pkgs/development/python-modules/music-tag/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mutagen -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + mutagen, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,22 +16,16 @@ buildPythonPackage rec { hash = "sha256-Cqtubu2o3w9TFuwtIZC9dFYbfgNWKrCRzo1Wh828//Y="; }; - propagatedBuildInputs = [ - mutagen - ]; + propagatedBuildInputs = [ mutagen ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "test" ]; # Tests fail: ModuleNotFoundError: No module named '_test_common' doCheck = false; - pythonImportsCheck = [ - "music_tag" - ]; + pythonImportsCheck = [ "music_tag" ]; meta = with lib; { description = "Simple interface to edit audio file metadata"; diff --git a/pkgs/development/python-modules/musicbrainzngs/default.nix b/pkgs/development/python-modules/musicbrainzngs/default.nix index 4ceebd32aa63..5c3acc24846b 100644 --- a/pkgs/development/python-modules/musicbrainzngs/default.nix +++ b/pkgs/development/python-modules/musicbrainzngs/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, }: buildPythonPackage rec { @@ -16,7 +17,7 @@ buildPythonPackage rec { buildInputs = [ pkgs.glibcLocales ]; - LC_ALL="en_US.UTF-8"; + LC_ALL = "en_US.UTF-8"; preCheck = '' # Remove tests that rely on networking (breaks sandboxed builds) @@ -29,5 +30,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/mutag/default.nix b/pkgs/development/python-modules/mutag/default.nix index 9076464d457c..c0a173a7da9c 100644 --- a/pkgs/development/python-modules/mutag/default.nix +++ b/pkgs/development/python-modules/mutag/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, pyparsing +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + pyparsing, }: buildPythonPackage { pname = "mutag"; version = "0.0.2-2ffa0258ca"; format = "setuptools"; - disabled = ! isPy3k; + disabled = !isPy3k; src = fetchFromGitHub { owner = "aroig"; @@ -27,5 +28,4 @@ buildPythonPackage { license = licenses.gpl3; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/mutagen/default.nix b/pkgs/development/python-modules/mutagen/default.nix index 2ffaadaffeaa..e7219e60753f 100644 --- a/pkgs/development/python-modules/mutagen/default.nix +++ b/pkgs/development/python-modules/mutagen/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# docs -, python -, sphinx -, sphinx-rtd-theme + # docs + python, + sphinx, + sphinx-rtd-theme, -# tests -, hypothesis -, pytestCheckHook + # tests + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -56,9 +57,7 @@ buildPythonPackage rec { "test_mock_fileobj" ]; - pythonImportsCheck = [ - "mutagen" - ]; + pythonImportsCheck = [ "mutagen" ]; meta = with lib; { description = "Python module for handling audio metadata"; @@ -73,7 +72,9 @@ buildPythonPackage rec { manipulate Ogg streams on an individual packet/page level. ''; homepage = "https://mutagen.readthedocs.io"; - changelog = "https://mutagen.readthedocs.io/en/latest/changelog.html#release-${lib.replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://mutagen.readthedocs.io/en/latest/changelog.html#release-${ + lib.replaceStrings [ "." ] [ "-" ] version + }"; license = licenses.gpl2Plus; maintainers = with maintainers; [ ]; }; diff --git a/pkgs/development/python-modules/mutatormath/default.nix b/pkgs/development/python-modules/mutatormath/default.nix index 27e92103c5a9..1b259cd6ebd0 100644 --- a/pkgs/development/python-modules/mutatormath/default.nix +++ b/pkgs/development/python-modules/mutatormath/default.nix @@ -1,6 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, defcon, fontmath -, unicodedata2, fs +{ + lib, + buildPythonPackage, + fetchPypi, + defcon, + fontmath, + unicodedata2, + fs, }: buildPythonPackage rec { @@ -14,8 +19,15 @@ buildPythonPackage rec { extension = "zip"; }; - propagatedBuildInputs = [ fontmath unicodedata2 defcon ]; - nativeCheckInputs = [ unicodedata2 fs ]; + propagatedBuildInputs = [ + fontmath + unicodedata2 + defcon + ]; + nativeCheckInputs = [ + unicodedata2 + fs + ]; meta = with lib; { description = "Piecewise linear interpolation in multiple dimensions with multiple, arbitrarily placed, masters"; diff --git a/pkgs/development/python-modules/mutesync/default.nix b/pkgs/development/python-modules/mutesync/default.nix index b574717c0ece..d998c5ff8013 100644 --- a/pkgs/development/python-modules/mutesync/default.nix +++ b/pkgs/development/python-modules/mutesync/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mutf8/default.nix b/pkgs/development/python-modules/mutf8/default.nix index dd6f554a66af..c7d2afdd1308 100644 --- a/pkgs/development/python-modules/mutf8/default.nix +++ b/pkgs/development/python-modules/mutf8/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pythonOlder, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-4Ojn3t0EbOVdrYEiY8JegJuvW9sz8jt9tKFwOluiGQo="; }; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' # Using pytestCheckHook results in test failures pytest ''; - pythonImportsCheck = [ - "mutf8" - ]; + pythonImportsCheck = [ "mutf8" ]; meta = with lib; { description = "Fast MUTF-8 encoder & decoder"; diff --git a/pkgs/development/python-modules/mwcli/default.nix b/pkgs/development/python-modules/mwcli/default.nix index 1ea2a58ea8fa..c9636895d231 100644 --- a/pkgs/development/python-modules/mwcli/default.nix +++ b/pkgs/development/python-modules/mwcli/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, docopt -, para +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + docopt, + para, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { }; # Prevent circular dependency - pythonRemoveDeps = [ - "mwxml" - ]; + pythonRemoveDeps = [ "mwxml" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ docopt diff --git a/pkgs/development/python-modules/mwclient/default.nix b/pkgs/development/python-modules/mwclient/default.nix index 048364d5bb6e..72fa00155f38 100644 --- a/pkgs/development/python-modules/mwclient/default.nix +++ b/pkgs/development/python-modules/mwclient/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib -, responses -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, + responses, + six, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { --replace " --cov mwclient test" "" ''; - pythonImportsCheck = [ - "mwclient" - ]; + pythonImportsCheck = [ "mwclient" ]; meta = with lib; { description = "Python client library to the MediaWiki API"; diff --git a/pkgs/development/python-modules/mwdblib/default.nix b/pkgs/development/python-modules/mwdblib/default.nix index 363c909c303b..d6e1e60cb39a 100644 --- a/pkgs/development/python-modules/mwdblib/default.nix +++ b/pkgs/development/python-modules/mwdblib/default.nix @@ -1,15 +1,16 @@ -{ lib -, beautifultable -, buildPythonPackage -, click -, click-default-group -, fetchFromGitHub -, humanize -, keyring -, unittestCheckHook -, python-dateutil -, pythonOlder -, requests +{ + lib, + beautifultable, + buildPythonPackage, + click, + click-default-group, + fetchFromGitHub, + humanize, + keyring, + unittestCheckHook, + python-dateutil, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "mwdblib" - ]; + pythonImportsCheck = [ "mwdblib" ]; meta = with lib; { description = "Python client library for the mwdb service"; diff --git a/pkgs/development/python-modules/mwoauth/default.nix b/pkgs/development/python-modules/mwoauth/default.nix index 2e92fade6d43..e592420111d6 100644 --- a/pkgs/development/python-modules/mwoauth/default.nix +++ b/pkgs/development/python-modules/mwoauth/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, oauthlib -, pyjwt -, pythonOlder -, requests -, requests-oauthlib -, six +{ + lib, + buildPythonPackage, + fetchPypi, + oauthlib, + pyjwt, + pythonOlder, + requests, + requests-oauthlib, + six, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { # https://github.com/mediawiki-utilities/python-mwoauth/issues/44 doCheck = false; - pythonImportsCheck = [ - "mwoauth" - ]; + pythonImportsCheck = [ "mwoauth" ]; meta = with lib; { description = "Python library to perform OAuth handshakes with a MediaWiki installation"; diff --git a/pkgs/development/python-modules/mwparserfromhell/default.nix b/pkgs/development/python-modules/mwparserfromhell/default.nix index 81c1c20c5d6f..55d9c63c640d 100644 --- a/pkgs/development/python-modules/mwparserfromhell/default.nix +++ b/pkgs/development/python-modules/mwparserfromhell/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { --replace '"pytest-runner"' "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mwparserfromhell" - ]; + pythonImportsCheck = [ "mwparserfromhell" ]; meta = with lib; { description = "MWParserFromHell is a parser for MediaWiki wikicode"; diff --git a/pkgs/development/python-modules/mwtypes/default.nix b/pkgs/development/python-modules/mwtypes/default.nix index b51b5d417a13..83a91b6d7596 100644 --- a/pkgs/development/python-modules/mwtypes/default.nix +++ b/pkgs/development/python-modules/mwtypes/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jsonable -, nose -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + jsonable, + nose, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/mwxml/default.nix b/pkgs/development/python-modules/mwxml/default.nix index 28d303325209..1a4217d6dfdf 100644 --- a/pkgs/development/python-modules/mwxml/default.nix +++ b/pkgs/development/python-modules/mwxml/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jsonschema -, mwcli -, mwtypes -, nose -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + jsonschema, + mwcli, + mwtypes, + nose, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - "test_page_with_discussion" - ]; + disabledTests = [ "test_page_with_discussion" ]; pythonImportsCheck = [ "mwxml" ]; diff --git a/pkgs/development/python-modules/mxnet/default.nix b/pkgs/development/python-modules/mxnet/default.nix index df08e56fbf33..9ee368551103 100644 --- a/pkgs/development/python-modules/mxnet/default.nix +++ b/pkgs/development/python-modules/mxnet/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pkgs -, requests -, numpy -, graphviz -, python -, isPy3k -, isPy310 +{ + lib, + buildPythonPackage, + pkgs, + requests, + numpy, + graphviz, + python, + isPy3k, + isPy310, }: buildPythonPackage { @@ -15,7 +16,11 @@ buildPythonPackage { format = "setuptools"; buildInputs = [ pkgs.mxnet ]; - propagatedBuildInputs = [ requests numpy graphviz ]; + propagatedBuildInputs = [ + requests + numpy + graphviz + ]; LD_LIBRARY_PATH = lib.makeLibraryPath [ pkgs.mxnet ]; diff --git a/pkgs/development/python-modules/myfitnesspal/default.nix b/pkgs/development/python-modules/myfitnesspal/default.nix index 27ffdad65e70..47eb87233ce1 100644 --- a/pkgs/development/python-modules/myfitnesspal/default.nix +++ b/pkgs/development/python-modules/myfitnesspal/default.nix @@ -1,21 +1,22 @@ -{ lib -, blessed -, browser-cookie3 -, buildPythonPackage -, cloudscraper -, fetchPypi -, keyring -, keyrings-alt -, lxml -, measurement -, mock -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, rich -, setuptools -, typing-extensions +{ + lib, + blessed, + browser-cookie3, + buildPythonPackage, + cloudscraper, + fetchPypi, + keyring, + keyrings-alt, + lxml, + measurement, + mock, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + rich, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-H9oKSio+2x4TDCB4YN5mmERUEeETLKahPlW3TDDFE/E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ blessed @@ -63,9 +62,7 @@ buildPythonPackage rec { "test_integration" ]; - pythonImportsCheck = [ - "myfitnesspal" - ]; + pythonImportsCheck = [ "myfitnesspal" ]; meta = with lib; { description = "Python module to access meal tracking data stored in MyFitnessPal"; diff --git a/pkgs/development/python-modules/mygpoclient/default.nix b/pkgs/development/python-modules/mygpoclient/default.nix index c252f8cc294e..a3de65b76a69 100644 --- a/pkgs/development/python-modules/mygpoclient/default.nix +++ b/pkgs/development/python-modules/mygpoclient/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchFromGitHub, buildPythonPackage, nose, minimock }: +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + nose, + minimock, +}: buildPythonPackage rec { pname = "mypgoclient"; @@ -11,7 +18,10 @@ buildPythonPackage rec { sha256 = "0aa28wc55x3rxa7clwfv5v5500ffyaq0vkxaa3v01y1r93dxkdvp"; }; - nativeCheckInputs = [ nose minimock ]; + nativeCheckInputs = [ + nose + minimock + ]; checkPhase = '' nosetests @@ -22,8 +32,8 @@ buildPythonPackage rec { meta = with lib; { description = "A gpodder.net client library"; longDescription = '' - The mygpoclient library allows developers to utilize a Pythonic interface - to the gpodder.net web services. + The mygpoclient library allows developers to utilize a Pythonic interface + to the gpodder.net web services. ''; homepage = "https://github.com/gpodder/mygpoclient"; license = with licenses; [ gpl3 ]; diff --git a/pkgs/development/python-modules/myhdl/default.nix b/pkgs/development/python-modules/myhdl/default.nix index 900e188c61dd..83ae9f143f2e 100644 --- a/pkgs/development/python-modules/myhdl/default.nix +++ b/pkgs/development/python-modules/myhdl/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, verilog -, ghdl -, pytest -, pytest-xdist +{ + lib, + fetchFromGitHub, + buildPythonPackage, + verilog, + ghdl, + pytest, + pytest-xdist, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/myhome/default.nix b/pkgs/development/python-modules/myhome/default.nix index d716d6668080..ce22d1a25c63 100644 --- a/pkgs/development/python-modules/myhome/default.nix +++ b/pkgs/development/python-modules/myhome/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, python-dateutil -, pythonOlder -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + python-dateutil, + pythonOlder, + urllib3, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-DJzwvgvSA9Q0kpueUoQV64pdDDNA7WzGu7r+g5aqutk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -33,13 +32,9 @@ buildPythonPackage rec { urllib3 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "myhome" - ]; + pythonImportsCheck = [ "myhome" ]; meta = with lib; { description = "Python library for interacting with MyHomeSERVER1"; diff --git a/pkgs/development/python-modules/myjwt/default.nix b/pkgs/development/python-modules/myjwt/default.nix index d0d39dc9d087..9f58f93f60ca 100644 --- a/pkgs/development/python-modules/myjwt/default.nix +++ b/pkgs/development/python-modules/myjwt/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, click -, colorama -, cryptography -, exrex -, fetchFromGitHub -, poetry-core -, pyopenssl -, pyperclip -, pytest-mock -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, questionary -, requests -, requests-mock +{ + lib, + stdenv, + buildPythonPackage, + click, + colorama, + cryptography, + exrex, + fetchFromGitHub, + poetry-core, + pyopenssl, + pyperclip, + pytest-mock, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + questionary, + requests, + requests-mock, }: buildPythonPackage rec { @@ -65,9 +66,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "myjwt" - ]; + pythonImportsCheck = [ "myjwt" ]; meta = with lib; { description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)"; diff --git a/pkgs/development/python-modules/mypy-boto3-builder/default.nix b/pkgs/development/python-modules/mypy-boto3-builder/default.nix index 1e19b77c9c9c..3a0c97957b39 100644 --- a/pkgs/development/python-modules/mypy-boto3-builder/default.nix +++ b/pkgs/development/python-modules/mypy-boto3-builder/default.nix @@ -1,21 +1,22 @@ -{ lib -, black -, boto3 -, buildPythonPackage -, cryptography -, fetchFromGitHub -, isort -, jinja2 -, md-toc -, mdformat -, newversion -, pip -, poetry-core -, pyparsing -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + black, + boto3, + buildPythonPackage, + cryptography, + fetchFromGitHub, + isort, + jinja2, + md-toc, + mdformat, + newversion, + pip, + poetry-core, + pyparsing, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-v5/3TCEtDXbmitb3e15XWkW8VO5nJk8TCVvVyh5rAMs="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ black @@ -51,13 +50,9 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "mypy_boto3_builder" - ]; + pythonImportsCheck = [ "mypy_boto3_builder" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/mypy-boto3/default.nix b/pkgs/development/python-modules/mypy-boto3/default.nix index f37179b9d192..84c247a4fa5c 100644 --- a/pkgs/development/python-modules/mypy-boto3/default.nix +++ b/pkgs/development/python-modules/mypy-boto3/default.nix @@ -1,15 +1,17 @@ -{ lib -, boto3 -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + boto3, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + typing-extensions, }: let toUnderscore = str: builtins.replaceStrings [ "-" ] [ "_" ] str; - buildMypyBoto3Package = serviceName: version: hash: + buildMypyBoto3Package = + serviceName: version: hash: buildPythonPackage rec { pname = "mypy-boto3-${serviceName}"; inherit version; @@ -17,744 +19,1446 @@ let disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version hash; - }; + src = fetchPypi { inherit pname version hash; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - boto3 - ] ++ lib.optionals (pythonOlder "3.12") [ - typing-extensions - ]; + dependencies = [ boto3 ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "mypy_boto3_${toUnderscore serviceName}" - ]; + pythonImportsCheck = [ "mypy_boto3_${toUnderscore serviceName}" ]; meta = with lib; { description = "Type annotations for boto3 ${serviceName}"; homepage = "https://github.com/youtype/mypy_boto3_builder"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ fab mbalatsko ]; + maintainers = with maintainers; [ + fab + mbalatsko + ]; }; }; in rec { - mypy-boto3-accessanalyzer = buildMypyBoto3Package "accessanalyzer" "1.34.67" "sha256-tgiKSWgKebdPAsyuJTQoFGR9BSLfGMeTVbi1rnPnvfQ="; + mypy-boto3-accessanalyzer = + buildMypyBoto3Package "accessanalyzer" "1.34.67" + "sha256-tgiKSWgKebdPAsyuJTQoFGR9BSLfGMeTVbi1rnPnvfQ="; - mypy-boto3-account = buildMypyBoto3Package "account" "1.34.0" "sha256-C2iAiA83tZ/7XRlccf1iddDfDNkuO2F0B5aOxKbHy2Q="; + mypy-boto3-account = + buildMypyBoto3Package "account" "1.34.0" + "sha256-C2iAiA83tZ/7XRlccf1iddDfDNkuO2F0B5aOxKbHy2Q="; - mypy-boto3-acm = buildMypyBoto3Package "acm" "1.34.0" "sha256-SvDBi8A9414Hxb8twcM/6Y2OoUz+/LbZZJ86lu/zmmo="; + mypy-boto3-acm = + buildMypyBoto3Package "acm" "1.34.0" + "sha256-SvDBi8A9414Hxb8twcM/6Y2OoUz+/LbZZJ86lu/zmmo="; - mypy-boto3-acm-pca = buildMypyBoto3Package "acm-pca" "1.34.28" "sha256-4x4M49/Ot/HDZrA30PCu0OzXn3636dxCO4exR3lJAUs="; + mypy-boto3-acm-pca = + buildMypyBoto3Package "acm-pca" "1.34.28" + "sha256-4x4M49/Ot/HDZrA30PCu0OzXn3636dxCO4exR3lJAUs="; - mypy-boto3-alexaforbusiness = buildMypyBoto3Package "alexaforbusiness" "1.34.0" "sha256-wrMSoM3F0HgajmM9X6P+3i6mqD55TWGVv8eJ7XqNjrw="; + mypy-boto3-alexaforbusiness = + buildMypyBoto3Package "alexaforbusiness" "1.34.0" + "sha256-wrMSoM3F0HgajmM9X6P+3i6mqD55TWGVv8eJ7XqNjrw="; - mypy-boto3-amp = buildMypyBoto3Package "amp" "1.34.39" "sha256-XOousDfEQsZ9z48iH2wVHuUaIwoECwbkHvIAlV3+zu4="; + mypy-boto3-amp = + buildMypyBoto3Package "amp" "1.34.39" + "sha256-XOousDfEQsZ9z48iH2wVHuUaIwoECwbkHvIAlV3+zu4="; - mypy-boto3-amplify = buildMypyBoto3Package "amplify" "1.34.63" "sha256-alOtCCZwBcx6g3lm80AzI5aF8WbEABd44A0e6gfZ42o="; + mypy-boto3-amplify = + buildMypyBoto3Package "amplify" "1.34.63" + "sha256-alOtCCZwBcx6g3lm80AzI5aF8WbEABd44A0e6gfZ42o="; - mypy-boto3-amplifybackend = buildMypyBoto3Package "amplifybackend" "1.34.0" "sha256-wP6fOHAUg4dvrlQ2rUNk/lgIr6JnpWu/0Tr2prTckOk="; + mypy-boto3-amplifybackend = + buildMypyBoto3Package "amplifybackend" "1.34.0" + "sha256-wP6fOHAUg4dvrlQ2rUNk/lgIr6JnpWu/0Tr2prTckOk="; - mypy-boto3-amplifyuibuilder = buildMypyBoto3Package "amplifyuibuilder" "1.34.51" "sha256-umxA1d0jlSysBkUFP8VPRMwuwYxdsRz0yRH7lgr/Hhc="; + mypy-boto3-amplifyuibuilder = + buildMypyBoto3Package "amplifyuibuilder" "1.34.51" + "sha256-umxA1d0jlSysBkUFP8VPRMwuwYxdsRz0yRH7lgr/Hhc="; - mypy-boto3-apigateway = buildMypyBoto3Package "apigateway" "1.34.56" "sha256-WrFdsw1zAZg4TWRF1QzB/smDYbhTZt0JKxDpufShoss="; + mypy-boto3-apigateway = + buildMypyBoto3Package "apigateway" "1.34.56" + "sha256-WrFdsw1zAZg4TWRF1QzB/smDYbhTZt0JKxDpufShoss="; - mypy-boto3-apigatewaymanagementapi = buildMypyBoto3Package "apigatewaymanagementapi" "1.34.0" "sha256-911Sd+7hnHpAhDFE2lDhl+b3Pewd5QWWOPdg+TcZ6VU="; + mypy-boto3-apigatewaymanagementapi = + buildMypyBoto3Package "apigatewaymanagementapi" "1.34.0" + "sha256-911Sd+7hnHpAhDFE2lDhl+b3Pewd5QWWOPdg+TcZ6VU="; - mypy-boto3-apigatewayv2 = buildMypyBoto3Package "apigatewayv2" "1.34.0" "sha256-ydpZ3osSSMwTtGsnRn1SygX5d9Kq8jHwqdQDKcmKXTY="; + mypy-boto3-apigatewayv2 = + buildMypyBoto3Package "apigatewayv2" "1.34.0" + "sha256-ydpZ3osSSMwTtGsnRn1SygX5d9Kq8jHwqdQDKcmKXTY="; - mypy-boto3-appconfig = buildMypyBoto3Package "appconfig" "1.34.58" "sha256-f073cXEkDyzkPeOPclhS0O6ZVvEmYPkGPMXrAD8LkE4="; + mypy-boto3-appconfig = + buildMypyBoto3Package "appconfig" "1.34.58" + "sha256-f073cXEkDyzkPeOPclhS0O6ZVvEmYPkGPMXrAD8LkE4="; - mypy-boto3-appconfigdata = buildMypyBoto3Package "appconfigdata" "1.34.24" "sha256-pSo1Qw6ZKN0XzERlCRmCtvJEOjgyd+a82t6Q3pPaU8Q="; + mypy-boto3-appconfigdata = + buildMypyBoto3Package "appconfigdata" "1.34.24" + "sha256-pSo1Qw6ZKN0XzERlCRmCtvJEOjgyd+a82t6Q3pPaU8Q="; - mypy-boto3-appfabric = buildMypyBoto3Package "appfabric" "1.34.0" "sha256-wjvOtCvFrj+YPvyqvR8cKIvwvC6x15WeSX6PkNp4OWg="; + mypy-boto3-appfabric = + buildMypyBoto3Package "appfabric" "1.34.0" + "sha256-wjvOtCvFrj+YPvyqvR8cKIvwvC6x15WeSX6PkNp4OWg="; - mypy-boto3-appflow = buildMypyBoto3Package "appflow" "1.34.0" "sha256-XruMwzBrjV7QTHOcHKqszt75cHX+578wbTwFMwyXHzE="; + mypy-boto3-appflow = + buildMypyBoto3Package "appflow" "1.34.0" + "sha256-XruMwzBrjV7QTHOcHKqszt75cHX+578wbTwFMwyXHzE="; - mypy-boto3-appintegrations = buildMypyBoto3Package "appintegrations" "1.34.6" "sha256-iVaOlWOiCeocOJpcsxF0hlzKhGE3iq6Z7OifLWA3kkM="; + mypy-boto3-appintegrations = + buildMypyBoto3Package "appintegrations" "1.34.6" + "sha256-iVaOlWOiCeocOJpcsxF0hlzKhGE3iq6Z7OifLWA3kkM="; - mypy-boto3-application-autoscaling = buildMypyBoto3Package "application-autoscaling" "1.34.0" "sha256-xW+Rc6yjDBviNDBDB63ssg0aPZFytaVfrVlA32wY/D4="; + mypy-boto3-application-autoscaling = + buildMypyBoto3Package "application-autoscaling" "1.34.0" + "sha256-xW+Rc6yjDBviNDBDB63ssg0aPZFytaVfrVlA32wY/D4="; - mypy-boto3-application-insights = buildMypyBoto3Package "application-insights" "1.34.0" "sha256-p/yLWmIGBSkMcqbjMUjyTYiskfSRWW3hKvtqepJZtyM="; + mypy-boto3-application-insights = + buildMypyBoto3Package "application-insights" "1.34.0" + "sha256-p/yLWmIGBSkMcqbjMUjyTYiskfSRWW3hKvtqepJZtyM="; - mypy-boto3-applicationcostprofiler = buildMypyBoto3Package "applicationcostprofiler" "1.34.0" "sha256-ToSRJScC8711J5fkZj/TNmUrpiBNwTplGjvpu1gidys="; + mypy-boto3-applicationcostprofiler = + buildMypyBoto3Package "applicationcostprofiler" "1.34.0" + "sha256-ToSRJScC8711J5fkZj/TNmUrpiBNwTplGjvpu1gidys="; - mypy-boto3-appmesh = buildMypyBoto3Package "appmesh" "1.34.0" "sha256-AXJ4z/54qPQeHKbZF6Is4OXt9/gZNacmYnLwfxPcn+E="; + mypy-boto3-appmesh = + buildMypyBoto3Package "appmesh" "1.34.0" + "sha256-AXJ4z/54qPQeHKbZF6Is4OXt9/gZNacmYnLwfxPcn+E="; - mypy-boto3-apprunner = buildMypyBoto3Package "apprunner" "1.34.11" "sha256-p4txQ08e6jpYiJmjG/JIXyObXhTnlXB8S5QDtUPUFt0="; + mypy-boto3-apprunner = + buildMypyBoto3Package "apprunner" "1.34.11" + "sha256-p4txQ08e6jpYiJmjG/JIXyObXhTnlXB8S5QDtUPUFt0="; - mypy-boto3-appstream = buildMypyBoto3Package "appstream" "1.34.5" "sha256-1m9YDw1fzoe4Y37yW6a1545SR2QGSrr5qbqYfXEax7o="; + mypy-boto3-appstream = + buildMypyBoto3Package "appstream" "1.34.5" + "sha256-1m9YDw1fzoe4Y37yW6a1545SR2QGSrr5qbqYfXEax7o="; - mypy-boto3-appsync = buildMypyBoto3Package "appsync" "1.34.49" "sha256-J2qTVaXhqsfdupN6eLgpyGTHkPRRC1TZGNP2PRKF0v0="; + mypy-boto3-appsync = + buildMypyBoto3Package "appsync" "1.34.49" + "sha256-J2qTVaXhqsfdupN6eLgpyGTHkPRRC1TZGNP2PRKF0v0="; - mypy-boto3-arc-zonal-shift = buildMypyBoto3Package "arc-zonal-shift" "1.34.0" "sha256-FhQaiu0Sc4HkkaRuhtgvUBMOgj80DbIBzZLEbZB41Cs="; + mypy-boto3-arc-zonal-shift = + buildMypyBoto3Package "arc-zonal-shift" "1.34.0" + "sha256-FhQaiu0Sc4HkkaRuhtgvUBMOgj80DbIBzZLEbZB41Cs="; - mypy-boto3-athena = buildMypyBoto3Package "athena" "1.34.23" "sha256-PDvz2+2XcNi/nYkGjOeb8t1JbIN+SxSSifU6sDXoNyc="; + mypy-boto3-athena = + buildMypyBoto3Package "athena" "1.34.23" + "sha256-PDvz2+2XcNi/nYkGjOeb8t1JbIN+SxSSifU6sDXoNyc="; - mypy-boto3-auditmanager = buildMypyBoto3Package "auditmanager" "1.34.0" "sha256-22Xkl1A5wzKDpRQcr/lp7gQsDPtQjvjK3nBm5O2ZS+k="; + mypy-boto3-auditmanager = + buildMypyBoto3Package "auditmanager" "1.34.0" + "sha256-22Xkl1A5wzKDpRQcr/lp7gQsDPtQjvjK3nBm5O2ZS+k="; - mypy-boto3-autoscaling = buildMypyBoto3Package "autoscaling" "1.34.54" "sha256-MGACE7CeturY9BN6Gq3VAvz4TqeoQ/ASlSdbX9LLTbQ="; + mypy-boto3-autoscaling = + buildMypyBoto3Package "autoscaling" "1.34.54" + "sha256-MGACE7CeturY9BN6Gq3VAvz4TqeoQ/ASlSdbX9LLTbQ="; - mypy-boto3-autoscaling-plans = buildMypyBoto3Package "autoscaling-plans" "1.34.0" "sha256-16siojcxNe5MuSZSRJXPAz2UudJozEEyCYUrsGNDAM8="; + mypy-boto3-autoscaling-plans = + buildMypyBoto3Package "autoscaling-plans" "1.34.0" + "sha256-16siojcxNe5MuSZSRJXPAz2UudJozEEyCYUrsGNDAM8="; - mypy-boto3-backup = buildMypyBoto3Package "backup" "1.34.64" "sha256-RvxhEmrOtkvagjaj8x2H7AAp+uK9qDIDe7T9p52rKRc="; + mypy-boto3-backup = + buildMypyBoto3Package "backup" "1.34.64" + "sha256-RvxhEmrOtkvagjaj8x2H7AAp+uK9qDIDe7T9p52rKRc="; - mypy-boto3-backup-gateway = buildMypyBoto3Package "backup-gateway" "1.34.0" "sha256-nSIEEDKJfI852/WBQ7OuDPuVijEiMr1vhpkzODbhRRc="; + mypy-boto3-backup-gateway = + buildMypyBoto3Package "backup-gateway" "1.34.0" + "sha256-nSIEEDKJfI852/WBQ7OuDPuVijEiMr1vhpkzODbhRRc="; - mypy-boto3-backupstorage = buildMypyBoto3Package "backupstorage" "1.34.0" "sha256-Y8kjZ+ov8OsiJ8Sm1LlvP8YbgVc+AkLkbZIhOh4y7ZY="; + mypy-boto3-backupstorage = + buildMypyBoto3Package "backupstorage" "1.34.0" + "sha256-Y8kjZ+ov8OsiJ8Sm1LlvP8YbgVc+AkLkbZIhOh4y7ZY="; - mypy-boto3-batch = buildMypyBoto3Package "batch" "1.34.83" "sha256-mJ6t+8ov7x8tfJNavY6qZpHxwenVGhTXy6NRlD7muPc="; + mypy-boto3-batch = + buildMypyBoto3Package "batch" "1.34.83" + "sha256-mJ6t+8ov7x8tfJNavY6qZpHxwenVGhTXy6NRlD7muPc="; - mypy-boto3-billingconductor = buildMypyBoto3Package "billingconductor" "1.34.1" "sha256-uXxQkoe2u3idcYta9YFbjxoK8HsvUiRQSyYrYhVi1kU="; + mypy-boto3-billingconductor = + buildMypyBoto3Package "billingconductor" "1.34.1" + "sha256-uXxQkoe2u3idcYta9YFbjxoK8HsvUiRQSyYrYhVi1kU="; - mypy-boto3-braket = buildMypyBoto3Package "braket" "1.34.39" "sha256-laMrKu9oN5a9yvB8lyhdjpq5hm1HGAFn3iJ0lReRpOI="; + mypy-boto3-braket = + buildMypyBoto3Package "braket" "1.34.39" + "sha256-laMrKu9oN5a9yvB8lyhdjpq5hm1HGAFn3iJ0lReRpOI="; - mypy-boto3-budgets = buildMypyBoto3Package "budgets" "1.34.0" "sha256-gs8JYnpFNOMWppBO2R3DO+c6RecQC0vzaox5DqXCKOA="; + mypy-boto3-budgets = + buildMypyBoto3Package "budgets" "1.34.0" + "sha256-gs8JYnpFNOMWppBO2R3DO+c6RecQC0vzaox5DqXCKOA="; - mypy-boto3-ce = buildMypyBoto3Package "ce" "1.34.71" "sha256-VfB823/q+ie97Bv5GXhsBaGxAuXSDbfFq2rO6TjThXY="; + mypy-boto3-ce = + buildMypyBoto3Package "ce" "1.34.71" + "sha256-VfB823/q+ie97Bv5GXhsBaGxAuXSDbfFq2rO6TjThXY="; - mypy-boto3-chime = buildMypyBoto3Package "chime" "1.34.0" "sha256-/IBkHJf4t1K/Ubdf/hUw5XToNBTCziMfTSdksxMwA2Q="; + mypy-boto3-chime = + buildMypyBoto3Package "chime" "1.34.0" + "sha256-/IBkHJf4t1K/Ubdf/hUw5XToNBTCziMfTSdksxMwA2Q="; - mypy-boto3-chime-sdk-identity = buildMypyBoto3Package "chime-sdk-identity" "1.34.0" "sha256-3gXUFr3+Tc5PgwsQuQY8D2J0SKGQJRXgQz7/XKYNr5k="; + mypy-boto3-chime-sdk-identity = + buildMypyBoto3Package "chime-sdk-identity" "1.34.0" + "sha256-3gXUFr3+Tc5PgwsQuQY8D2J0SKGQJRXgQz7/XKYNr5k="; - mypy-boto3-chime-sdk-media-pipelines = buildMypyBoto3Package "chime-sdk-media-pipelines" "1.34.0" "sha256-h5RD+anRtH0UQ5pFjhygN9oZDFdIRZMfGXSKlT2HuSY="; + mypy-boto3-chime-sdk-media-pipelines = + buildMypyBoto3Package "chime-sdk-media-pipelines" "1.34.0" + "sha256-h5RD+anRtH0UQ5pFjhygN9oZDFdIRZMfGXSKlT2HuSY="; - mypy-boto3-chime-sdk-meetings = buildMypyBoto3Package "chime-sdk-meetings" "1.34.4" "sha256-AmwzLd8iLGdmo1Ajv4IVrxwyf/UljG0I06um2S3PG+E="; + mypy-boto3-chime-sdk-meetings = + buildMypyBoto3Package "chime-sdk-meetings" "1.34.4" + "sha256-AmwzLd8iLGdmo1Ajv4IVrxwyf/UljG0I06um2S3PG+E="; - mypy-boto3-chime-sdk-messaging = buildMypyBoto3Package "chime-sdk-messaging" "1.34.0" "sha256-8Pq48GBFKQRdmoAu9qxAR14xRSP8/roBrZHxzaTBB54="; + mypy-boto3-chime-sdk-messaging = + buildMypyBoto3Package "chime-sdk-messaging" "1.34.0" + "sha256-8Pq48GBFKQRdmoAu9qxAR14xRSP8/roBrZHxzaTBB54="; - mypy-boto3-chime-sdk-voice = buildMypyBoto3Package "chime-sdk-voice" "1.34.0" "sha256-9fQQgWFKeabSblJIhP6mN0CEnSixkz1r3mf/k6IL/BE="; + mypy-boto3-chime-sdk-voice = + buildMypyBoto3Package "chime-sdk-voice" "1.34.0" + "sha256-9fQQgWFKeabSblJIhP6mN0CEnSixkz1r3mf/k6IL/BE="; - mypy-boto3-cleanrooms = buildMypyBoto3Package "cleanrooms" "1.34.82" "sha256-KaCs/P3NM3IeZ9V9khIwysyBXBG/8RuGFBAlrbMYn4Y="; + mypy-boto3-cleanrooms = + buildMypyBoto3Package "cleanrooms" "1.34.82" + "sha256-KaCs/P3NM3IeZ9V9khIwysyBXBG/8RuGFBAlrbMYn4Y="; - mypy-boto3-cloud9 = buildMypyBoto3Package "cloud9" "1.34.24" "sha256-fryD7UfO5cdFS7vMxmZaT9LW4nNSGTQCd3NyD60f9wA="; + mypy-boto3-cloud9 = + buildMypyBoto3Package "cloud9" "1.34.24" + "sha256-fryD7UfO5cdFS7vMxmZaT9LW4nNSGTQCd3NyD60f9wA="; - mypy-boto3-cloudcontrol = buildMypyBoto3Package "cloudcontrol" "1.34.0" "sha256-81M2llb46sviZ874/vHVaqOU1PvQs+Zdil8bxr1pEWM="; + mypy-boto3-cloudcontrol = + buildMypyBoto3Package "cloudcontrol" "1.34.0" + "sha256-81M2llb46sviZ874/vHVaqOU1PvQs+Zdil8bxr1pEWM="; - mypy-boto3-clouddirectory = buildMypyBoto3Package "clouddirectory" "1.34.0" "sha256-lWJQClNEhyq9CN8ThcHtVcEsowIp+V8RXh4rgHAclfM="; + mypy-boto3-clouddirectory = + buildMypyBoto3Package "clouddirectory" "1.34.0" + "sha256-lWJQClNEhyq9CN8ThcHtVcEsowIp+V8RXh4rgHAclfM="; - mypy-boto3-cloudformation = buildMypyBoto3Package "cloudformation" "1.34.77" "sha256-mQAUGCaB+d8iV/GFBWEmwNswvxJg9s09Rs7bPPRn8K0="; + mypy-boto3-cloudformation = + buildMypyBoto3Package "cloudformation" "1.34.77" + "sha256-mQAUGCaB+d8iV/GFBWEmwNswvxJg9s09Rs7bPPRn8K0="; - mypy-boto3-cloudfront = buildMypyBoto3Package "cloudfront" "1.34.83" "sha256-glPRMg4IS/5Mz6ckyQWgZuu9G3IlPsfA97fx41YpSw0="; + mypy-boto3-cloudfront = + buildMypyBoto3Package "cloudfront" "1.34.83" + "sha256-glPRMg4IS/5Mz6ckyQWgZuu9G3IlPsfA97fx41YpSw0="; - mypy-boto3-cloudhsm = buildMypyBoto3Package "cloudhsm" "1.34.0" "sha256-Sd/YlKNm/1VRoJ+e+3YlOf4jKoewYVGM4FNYlST+9AY="; + mypy-boto3-cloudhsm = + buildMypyBoto3Package "cloudhsm" "1.34.0" + "sha256-Sd/YlKNm/1VRoJ+e+3YlOf4jKoewYVGM4FNYlST+9AY="; - mypy-boto3-cloudhsmv2 = buildMypyBoto3Package "cloudhsmv2" "1.34.0" "sha256-TCKdRXnA2x3LBop9boixNmkPafTdIOY8sGaUSeA9Sic="; + mypy-boto3-cloudhsmv2 = + buildMypyBoto3Package "cloudhsmv2" "1.34.0" + "sha256-TCKdRXnA2x3LBop9boixNmkPafTdIOY8sGaUSeA9Sic="; - mypy-boto3-cloudsearch = buildMypyBoto3Package "cloudsearch" "1.34.0" "sha256-S1re04NWngrjlcLIPzP4D0I1cVqvt/Taku6CTTfvtMw="; + mypy-boto3-cloudsearch = + buildMypyBoto3Package "cloudsearch" "1.34.0" + "sha256-S1re04NWngrjlcLIPzP4D0I1cVqvt/Taku6CTTfvtMw="; - mypy-boto3-cloudsearchdomain = buildMypyBoto3Package "cloudsearchdomain" "1.34.0" "sha256-jhhwFXH80aZjVqVMZulwoCvu3EmXj4BbJ3DQ6eJPS4E="; + mypy-boto3-cloudsearchdomain = + buildMypyBoto3Package "cloudsearchdomain" "1.34.0" + "sha256-jhhwFXH80aZjVqVMZulwoCvu3EmXj4BbJ3DQ6eJPS4E="; - mypy-boto3-cloudtrail = buildMypyBoto3Package "cloudtrail" "1.34.59" "sha256-0gwq1zhZcLc8gVGo337AqqC39w8MJR6JK948No/yzVA="; + mypy-boto3-cloudtrail = + buildMypyBoto3Package "cloudtrail" "1.34.59" + "sha256-0gwq1zhZcLc8gVGo337AqqC39w8MJR6JK948No/yzVA="; - mypy-boto3-cloudtrail-data = buildMypyBoto3Package "cloudtrail-data" "1.34.0" "sha256-ACiJrI+VTHr06i8PKgDY/K8houFUZQNS1lluouadCTQ="; + mypy-boto3-cloudtrail-data = + buildMypyBoto3Package "cloudtrail-data" "1.34.0" + "sha256-ACiJrI+VTHr06i8PKgDY/K8houFUZQNS1lluouadCTQ="; - mypy-boto3-cloudwatch = buildMypyBoto3Package "cloudwatch" "1.34.83" "sha256-dm4WbFtGPZiFpZKdwWu1kuD6fXvq9WmqT1AdhahIvBM="; + mypy-boto3-cloudwatch = + buildMypyBoto3Package "cloudwatch" "1.34.83" + "sha256-dm4WbFtGPZiFpZKdwWu1kuD6fXvq9WmqT1AdhahIvBM="; - mypy-boto3-codeartifact = buildMypyBoto3Package "codeartifact" "1.34.68" "sha256-Ey0cmx0OxN1/VXIyvn0EOBP9qYIuc/XyFVZniHLaNEY="; + mypy-boto3-codeartifact = + buildMypyBoto3Package "codeartifact" "1.34.68" + "sha256-Ey0cmx0OxN1/VXIyvn0EOBP9qYIuc/XyFVZniHLaNEY="; - mypy-boto3-codebuild = buildMypyBoto3Package "codebuild" "1.34.83" "sha256-nf1rO/BmEFenb/Z/bWKHRDpZVG3WZb9OPIsxcKOdATo="; + mypy-boto3-codebuild = + buildMypyBoto3Package "codebuild" "1.34.83" + "sha256-nf1rO/BmEFenb/Z/bWKHRDpZVG3WZb9OPIsxcKOdATo="; - mypy-boto3-codecatalyst = buildMypyBoto3Package "codecatalyst" "1.34.73" "sha256-jQ/DIoWXQWo1oVWi4Gn88cxr78QCs45EVtgfc6fZkFk="; + mypy-boto3-codecatalyst = + buildMypyBoto3Package "codecatalyst" "1.34.73" + "sha256-jQ/DIoWXQWo1oVWi4Gn88cxr78QCs45EVtgfc6fZkFk="; - mypy-boto3-codecommit = buildMypyBoto3Package "codecommit" "1.34.6" "sha256-wCw6e7yvMjM+A6jXfB2D4Z+i9s3e/F9Ih/VxD6iiwws="; + mypy-boto3-codecommit = + buildMypyBoto3Package "codecommit" "1.34.6" + "sha256-wCw6e7yvMjM+A6jXfB2D4Z+i9s3e/F9Ih/VxD6iiwws="; - mypy-boto3-codedeploy = buildMypyBoto3Package "codedeploy" "1.34.0" "sha256-Sxtcl/fO+A2/s/6O3VC1BPIJ3dDamshEEmKXqyg4fN8="; + mypy-boto3-codedeploy = + buildMypyBoto3Package "codedeploy" "1.34.0" + "sha256-Sxtcl/fO+A2/s/6O3VC1BPIJ3dDamshEEmKXqyg4fN8="; - mypy-boto3-codeguru-reviewer = buildMypyBoto3Package "codeguru-reviewer" "1.34.0" "sha256-20W+LBYsQE/pNs94ZbVWNw0+2817gwfGKaJHCoiDsPM="; + mypy-boto3-codeguru-reviewer = + buildMypyBoto3Package "codeguru-reviewer" "1.34.0" + "sha256-20W+LBYsQE/pNs94ZbVWNw0+2817gwfGKaJHCoiDsPM="; - mypy-boto3-codeguru-security = buildMypyBoto3Package "codeguru-security" "1.34.0" "sha256-DTtYCgcy3LWGxuxqSAkeS9qoBq1YWwAWfZU2DD44BOY="; + mypy-boto3-codeguru-security = + buildMypyBoto3Package "codeguru-security" "1.34.0" + "sha256-DTtYCgcy3LWGxuxqSAkeS9qoBq1YWwAWfZU2DD44BOY="; - mypy-boto3-codeguruprofiler = buildMypyBoto3Package "codeguruprofiler" "1.34.0" "sha256-pAZL9m0SHRYiIrXzBf+IeEkQOXS4/6OJqoDI6og3N5s="; + mypy-boto3-codeguruprofiler = + buildMypyBoto3Package "codeguruprofiler" "1.34.0" + "sha256-pAZL9m0SHRYiIrXzBf+IeEkQOXS4/6OJqoDI6og3N5s="; - mypy-boto3-codepipeline = buildMypyBoto3Package "codepipeline" "1.34.43" "sha256-omGtS0+5qBDBxCcKoOM+dsraE22m129zYUJB2yRxBtQ="; + mypy-boto3-codepipeline = + buildMypyBoto3Package "codepipeline" "1.34.43" + "sha256-omGtS0+5qBDBxCcKoOM+dsraE22m129zYUJB2yRxBtQ="; - mypy-boto3-codestar = buildMypyBoto3Package "codestar" "1.34.0" "sha256-BAueRLlYZGDiF6DtjxL24twLYYZqD3ErdJ73fsFoG1k="; + mypy-boto3-codestar = + buildMypyBoto3Package "codestar" "1.34.0" + "sha256-BAueRLlYZGDiF6DtjxL24twLYYZqD3ErdJ73fsFoG1k="; - mypy-boto3-codestar-connections = buildMypyBoto3Package "codestar-connections" "1.34.60" "sha256-WH/cN8BXG7c79gGR/0m3xvEPNdPAFRosInmO9DeAVdM="; + mypy-boto3-codestar-connections = + buildMypyBoto3Package "codestar-connections" "1.34.60" + "sha256-WH/cN8BXG7c79gGR/0m3xvEPNdPAFRosInmO9DeAVdM="; - mypy-boto3-codestar-notifications = buildMypyBoto3Package "codestar-notifications" "1.34.0" "sha256-JmXEpHbOhcO9F++G+ohXPuXoNILbcL9r5qyH4OooCtc="; + mypy-boto3-codestar-notifications = + buildMypyBoto3Package "codestar-notifications" "1.34.0" + "sha256-JmXEpHbOhcO9F++G+ohXPuXoNILbcL9r5qyH4OooCtc="; - mypy-boto3-cognito-identity = buildMypyBoto3Package "cognito-identity" "1.34.0" "sha256-6UlyNX0a1wG5FR/WHMZOwysikGffNCX6Fo1MYvFuFwM="; + mypy-boto3-cognito-identity = + buildMypyBoto3Package "cognito-identity" "1.34.0" + "sha256-6UlyNX0a1wG5FR/WHMZOwysikGffNCX6Fo1MYvFuFwM="; - mypy-boto3-cognito-idp = buildMypyBoto3Package "cognito-idp" "1.34.59" "sha256-kZpXb5MzK4IceWnNs9tWWLhQnysfWGuOLf00J4/ypvw="; + mypy-boto3-cognito-idp = + buildMypyBoto3Package "cognito-idp" "1.34.59" + "sha256-kZpXb5MzK4IceWnNs9tWWLhQnysfWGuOLf00J4/ypvw="; - mypy-boto3-cognito-sync = buildMypyBoto3Package "cognito-sync" "1.34.0" "sha256-JTkmpEHwKN5IyoGVs4beVAEOr1fZPxBoYjzNBgjTEY0="; + mypy-boto3-cognito-sync = + buildMypyBoto3Package "cognito-sync" "1.34.0" + "sha256-JTkmpEHwKN5IyoGVs4beVAEOr1fZPxBoYjzNBgjTEY0="; - mypy-boto3-comprehend = buildMypyBoto3Package "comprehend" "1.34.30" "sha256-G7mSJWcr0ntPX6WoaeTWPw/uB32yn6xXPyyQvDVfa8s="; + mypy-boto3-comprehend = + buildMypyBoto3Package "comprehend" "1.34.30" + "sha256-G7mSJWcr0ntPX6WoaeTWPw/uB32yn6xXPyyQvDVfa8s="; - mypy-boto3-comprehendmedical = buildMypyBoto3Package "comprehendmedical" "1.34.0" "sha256-4KzL56xU474te8tW5xVZo6D5Pwe3GLRQbQfX8CXTz9g="; + mypy-boto3-comprehendmedical = + buildMypyBoto3Package "comprehendmedical" "1.34.0" + "sha256-4KzL56xU474te8tW5xVZo6D5Pwe3GLRQbQfX8CXTz9g="; - mypy-boto3-compute-optimizer = buildMypyBoto3Package "compute-optimizer" "1.34.73" "sha256-WOPbzONtQ+hnVYwWCWC2Q/E1mqWNww0K2tbJhZxjAHo="; + mypy-boto3-compute-optimizer = + buildMypyBoto3Package "compute-optimizer" "1.34.73" + "sha256-WOPbzONtQ+hnVYwWCWC2Q/E1mqWNww0K2tbJhZxjAHo="; - mypy-boto3-config = buildMypyBoto3Package "config" "1.34.45" "sha256-LN1CcIOj9cgzSNCvnUVwLRNPXlitHAlt+5jj6wu6i8E="; + mypy-boto3-config = + buildMypyBoto3Package "config" "1.34.45" + "sha256-LN1CcIOj9cgzSNCvnUVwLRNPXlitHAlt+5jj6wu6i8E="; - mypy-boto3-connect = buildMypyBoto3Package "connect" "1.34.82" "sha256-QyZteRrk1d+Qwqj87uUb4f2ZK5SjPdMJV4NGv6kwrl4="; + mypy-boto3-connect = + buildMypyBoto3Package "connect" "1.34.82" + "sha256-QyZteRrk1d+Qwqj87uUb4f2ZK5SjPdMJV4NGv6kwrl4="; - mypy-boto3-connect-contact-lens = buildMypyBoto3Package "connect-contact-lens" "1.34.0" "sha256-Wx9vcjlgXdWZ2qP3Y/hTY2LAeTd+hyyV5JSIuKQ5I5k="; + mypy-boto3-connect-contact-lens = + buildMypyBoto3Package "connect-contact-lens" "1.34.0" + "sha256-Wx9vcjlgXdWZ2qP3Y/hTY2LAeTd+hyyV5JSIuKQ5I5k="; - mypy-boto3-connectcampaigns = buildMypyBoto3Package "connectcampaigns" "1.34.16" "sha256-CR1FuVJgYODKEhDmmwcWrjPyZm7HsFRlzq3HlnKe81E="; + mypy-boto3-connectcampaigns = + buildMypyBoto3Package "connectcampaigns" "1.34.16" + "sha256-CR1FuVJgYODKEhDmmwcWrjPyZm7HsFRlzq3HlnKe81E="; - mypy-boto3-connectcases = buildMypyBoto3Package "connectcases" "1.34.24" "sha256-a3P7wPx2FQ3V5T68B4fYzuq2juiqs7R8K5WSbyWu5ug="; + mypy-boto3-connectcases = + buildMypyBoto3Package "connectcases" "1.34.24" + "sha256-a3P7wPx2FQ3V5T68B4fYzuq2juiqs7R8K5WSbyWu5ug="; - mypy-boto3-connectparticipant = buildMypyBoto3Package "connectparticipant" "1.34.44" "sha256-kP4ovwHfJoeRjSyfeL0M1U70aJoApMUUWOLFRpt6H+w="; + mypy-boto3-connectparticipant = + buildMypyBoto3Package "connectparticipant" "1.34.44" + "sha256-kP4ovwHfJoeRjSyfeL0M1U70aJoApMUUWOLFRpt6H+w="; - mypy-boto3-controltower = buildMypyBoto3Package "controltower" "1.34.42" "sha256-HwVES0lu75XkBPE7WQMSP2tOSogAqO3yr+cIeWaw9Is="; + mypy-boto3-controltower = + buildMypyBoto3Package "controltower" "1.34.42" + "sha256-HwVES0lu75XkBPE7WQMSP2tOSogAqO3yr+cIeWaw9Is="; - mypy-boto3-cur = buildMypyBoto3Package "cur" "1.34.0" "sha256-vwMILmIX7uzAGXdl1Z5mxVMJlgZCtA3Svp8mFmoZ6tQ="; + mypy-boto3-cur = + buildMypyBoto3Package "cur" "1.34.0" + "sha256-vwMILmIX7uzAGXdl1Z5mxVMJlgZCtA3Svp8mFmoZ6tQ="; - mypy-boto3-customer-profiles = buildMypyBoto3Package "customer-profiles" "1.34.0" "sha256-LxonO6G0Qa8j6VORcAwvR9j+w879Di5pqTzlicC9Dp8="; + mypy-boto3-customer-profiles = + buildMypyBoto3Package "customer-profiles" "1.34.0" + "sha256-LxonO6G0Qa8j6VORcAwvR9j+w879Di5pqTzlicC9Dp8="; - mypy-boto3-databrew = buildMypyBoto3Package "databrew" "1.34.0" "sha256-DP1Cuyogrs/K6qM7fnbHWSTPcpjoy1m0XEsq1ONbhxM="; + mypy-boto3-databrew = + buildMypyBoto3Package "databrew" "1.34.0" + "sha256-DP1Cuyogrs/K6qM7fnbHWSTPcpjoy1m0XEsq1ONbhxM="; - mypy-boto3-dataexchange = buildMypyBoto3Package "dataexchange" "1.34.0" "sha256-gLJ6AJQLKSiGcwWEgDwipg0D1NqYwNFiXwAUGwCJ2+0="; + mypy-boto3-dataexchange = + buildMypyBoto3Package "dataexchange" "1.34.0" + "sha256-gLJ6AJQLKSiGcwWEgDwipg0D1NqYwNFiXwAUGwCJ2+0="; - mypy-boto3-datapipeline = buildMypyBoto3Package "datapipeline" "1.34.0" "sha256-Amn6pdW5i8+yBzuSRAmj0EnTYEGjzguQxaoLmhFFXck="; + mypy-boto3-datapipeline = + buildMypyBoto3Package "datapipeline" "1.34.0" + "sha256-Amn6pdW5i8+yBzuSRAmj0EnTYEGjzguQxaoLmhFFXck="; - mypy-boto3-datasync = buildMypyBoto3Package "datasync" "1.34.37" "sha256-uVZsnbghzbjDAuR+d6l7EET6S9fvx2NYGEllCPLtIXQ="; + mypy-boto3-datasync = + buildMypyBoto3Package "datasync" "1.34.37" + "sha256-uVZsnbghzbjDAuR+d6l7EET6S9fvx2NYGEllCPLtIXQ="; - mypy-boto3-dax = buildMypyBoto3Package "dax" "1.34.0" "sha256-DH5kqV+C4vbZ8fbvAtR93jd5YB22hkYe/xgOF4oru1Y="; + mypy-boto3-dax = + buildMypyBoto3Package "dax" "1.34.0" + "sha256-DH5kqV+C4vbZ8fbvAtR93jd5YB22hkYe/xgOF4oru1Y="; - mypy-boto3-detective = buildMypyBoto3Package "detective" "1.34.43" "sha256-VevmUTgN0UKhWAtGfSbQoqAhgv19XiOBBoNNsHfHezg="; + mypy-boto3-detective = + buildMypyBoto3Package "detective" "1.34.43" + "sha256-VevmUTgN0UKhWAtGfSbQoqAhgv19XiOBBoNNsHfHezg="; - mypy-boto3-devicefarm = buildMypyBoto3Package "devicefarm" "1.34.0" "sha256-X0D4Am4GUDFl703FmdrPcHXihFdzuch/eQBofDTameQ="; + mypy-boto3-devicefarm = + buildMypyBoto3Package "devicefarm" "1.34.0" + "sha256-X0D4Am4GUDFl703FmdrPcHXihFdzuch/eQBofDTameQ="; - mypy-boto3-devops-guru = buildMypyBoto3Package "devops-guru" "1.34.0" "sha256-IxSTAjcJcGySV1Zzlxal23nZz7m1eaCDa8UX41+9l5o="; + mypy-boto3-devops-guru = + buildMypyBoto3Package "devops-guru" "1.34.0" + "sha256-IxSTAjcJcGySV1Zzlxal23nZz7m1eaCDa8UX41+9l5o="; - mypy-boto3-directconnect = buildMypyBoto3Package "directconnect" "1.34.0" "sha256-H3xxqWZwjjzf7gFwsEfAcQmFfm3ZxNOBge0yFsfQpLM="; + mypy-boto3-directconnect = + buildMypyBoto3Package "directconnect" "1.34.0" + "sha256-H3xxqWZwjjzf7gFwsEfAcQmFfm3ZxNOBge0yFsfQpLM="; - mypy-boto3-discovery = buildMypyBoto3Package "discovery" "1.34.0" "sha256-QT3KX4bHVigaeOxMCBBtLR3lbTLOQAl1JDnMzN7gt9s="; + mypy-boto3-discovery = + buildMypyBoto3Package "discovery" "1.34.0" + "sha256-QT3KX4bHVigaeOxMCBBtLR3lbTLOQAl1JDnMzN7gt9s="; - mypy-boto3-dlm = buildMypyBoto3Package "dlm" "1.34.0" "sha256-uBcxQvYlWvhoVdWThvaETCKCmju0xtIFRcE8Eon6ovI="; + mypy-boto3-dlm = + buildMypyBoto3Package "dlm" "1.34.0" + "sha256-uBcxQvYlWvhoVdWThvaETCKCmju0xtIFRcE8Eon6ovI="; - mypy-boto3-dms = buildMypyBoto3Package "dms" "1.34.0" "sha256-xGGMtqja+ipLpWRMXO1VzxHqjlaZDZ31p634u5kmyNs="; + mypy-boto3-dms = + buildMypyBoto3Package "dms" "1.34.0" + "sha256-xGGMtqja+ipLpWRMXO1VzxHqjlaZDZ31p634u5kmyNs="; - mypy-boto3-docdb = buildMypyBoto3Package "docdb" "1.34.77" "sha256-7iJn4wzvQ6FAD2xU04fLwJW8hWRfmJmFxVH/2KnsUdE="; + mypy-boto3-docdb = + buildMypyBoto3Package "docdb" "1.34.77" + "sha256-7iJn4wzvQ6FAD2xU04fLwJW8hWRfmJmFxVH/2KnsUdE="; - mypy-boto3-docdb-elastic = buildMypyBoto3Package "docdb-elastic" "1.34.53" "sha256-sNoS7ujT0rMi4WAFXwIfwkoGP3c88+l6cW7eliHheJ4="; + mypy-boto3-docdb-elastic = + buildMypyBoto3Package "docdb-elastic" "1.34.53" + "sha256-sNoS7ujT0rMi4WAFXwIfwkoGP3c88+l6cW7eliHheJ4="; - mypy-boto3-drs = buildMypyBoto3Package "drs" "1.34.50" "sha256-UWqnQAyxBnQjGYofZMOD3nhnqxTMh2U7/FNtMId1isk="; + mypy-boto3-drs = + buildMypyBoto3Package "drs" "1.34.50" + "sha256-UWqnQAyxBnQjGYofZMOD3nhnqxTMh2U7/FNtMId1isk="; - mypy-boto3-ds = buildMypyBoto3Package "ds" "1.34.0" "sha256-qVtMpsnVLF2rN4WaEhrqlTvWvW28RcHIBjsZYwmYapc="; + mypy-boto3-ds = + buildMypyBoto3Package "ds" "1.34.0" + "sha256-qVtMpsnVLF2rN4WaEhrqlTvWvW28RcHIBjsZYwmYapc="; - mypy-boto3-dynamodb = buildMypyBoto3Package "dynamodb" "1.34.67" "sha256-CUR+8+pr3+C+TjLKIyg4IFczQdNAvqMGXe0hU8xZPSI="; + mypy-boto3-dynamodb = + buildMypyBoto3Package "dynamodb" "1.34.67" + "sha256-CUR+8+pr3+C+TjLKIyg4IFczQdNAvqMGXe0hU8xZPSI="; - mypy-boto3-dynamodbstreams = buildMypyBoto3Package "dynamodbstreams" "1.34.0" "sha256-Zx5cJE+fU9NcvK5rLR966AGIKUvfIwdpLaWWdLmuDzc="; + mypy-boto3-dynamodbstreams = + buildMypyBoto3Package "dynamodbstreams" "1.34.0" + "sha256-Zx5cJE+fU9NcvK5rLR966AGIKUvfIwdpLaWWdLmuDzc="; - mypy-boto3-ebs = buildMypyBoto3Package "ebs" "1.34.0" "sha256-xIrrXOayZed+Jcn4CFXXNgKz/G+RdiuwA04wq+Ry/fs="; + mypy-boto3-ebs = + buildMypyBoto3Package "ebs" "1.34.0" + "sha256-xIrrXOayZed+Jcn4CFXXNgKz/G+RdiuwA04wq+Ry/fs="; - mypy-boto3-ec2 = buildMypyBoto3Package "ec2" "1.34.78" "sha256-vfKasmXtPV8AlNmwyNNA6tnmtgn1w7m2eQYB6GYfikg="; + mypy-boto3-ec2 = + buildMypyBoto3Package "ec2" "1.34.78" + "sha256-vfKasmXtPV8AlNmwyNNA6tnmtgn1w7m2eQYB6GYfikg="; - mypy-boto3-ec2-instance-connect = buildMypyBoto3Package "ec2-instance-connect" "1.34.63" "sha256-kExmGXEJ5jrvOewmWx7AjVb3boD5GU0cEUp/2PQhzlw="; + mypy-boto3-ec2-instance-connect = + buildMypyBoto3Package "ec2-instance-connect" "1.34.63" + "sha256-kExmGXEJ5jrvOewmWx7AjVb3boD5GU0cEUp/2PQhzlw="; - mypy-boto3-ecr = buildMypyBoto3Package "ecr" "1.34.0" "sha256-uD+wMR6WikLUyoIbAGwY1KPj42S4zr7nWOpPqXxaw0U="; + mypy-boto3-ecr = + buildMypyBoto3Package "ecr" "1.34.0" + "sha256-uD+wMR6WikLUyoIbAGwY1KPj42S4zr7nWOpPqXxaw0U="; - mypy-boto3-ecr-public = buildMypyBoto3Package "ecr-public" "1.34.0" "sha256-38ZiRVPr9L+KUF6oL23xsIiKMW0pT/nIngFkhSS3z2Y="; + mypy-boto3-ecr-public = + buildMypyBoto3Package "ecr-public" "1.34.0" + "sha256-38ZiRVPr9L+KUF6oL23xsIiKMW0pT/nIngFkhSS3z2Y="; - mypy-boto3-ecs = buildMypyBoto3Package "ecs" "1.34.76" "sha256-y8B4Qh1WWJEgP+VHzznJdsdCsAA1pUizEh+qTDDFeoQ="; + mypy-boto3-ecs = + buildMypyBoto3Package "ecs" "1.34.76" + "sha256-y8B4Qh1WWJEgP+VHzznJdsdCsAA1pUizEh+qTDDFeoQ="; - mypy-boto3-efs = buildMypyBoto3Package "efs" "1.34.0" "sha256-VAK7mfnPBPDC8Azm6Bxl86E8CkeArTmfgqYkIcSblYA="; + mypy-boto3-efs = + buildMypyBoto3Package "efs" "1.34.0" + "sha256-VAK7mfnPBPDC8Azm6Bxl86E8CkeArTmfgqYkIcSblYA="; - mypy-boto3-eks = buildMypyBoto3Package "eks" "1.34.73" "sha256-sSVfQvBmH9wYnqInvF8ixsyb0pbvHPx0zQwfPxa5caE="; + mypy-boto3-eks = + buildMypyBoto3Package "eks" "1.34.73" + "sha256-sSVfQvBmH9wYnqInvF8ixsyb0pbvHPx0zQwfPxa5caE="; - mypy-boto3-elastic-inference = buildMypyBoto3Package "elastic-inference" "1.34.0" "sha256-gbWKw0zDQf3qBlp1KeO7MX1j/GqRUpFAxLG0BKFrHBk="; + mypy-boto3-elastic-inference = + buildMypyBoto3Package "elastic-inference" "1.34.0" + "sha256-gbWKw0zDQf3qBlp1KeO7MX1j/GqRUpFAxLG0BKFrHBk="; - mypy-boto3-elasticache = buildMypyBoto3Package "elasticache" "1.34.72" "sha256-yZd2KB7wIw23PybblyIlCo/5IEFYxAUfbLD2J91eOzw="; + mypy-boto3-elasticache = + buildMypyBoto3Package "elasticache" "1.34.72" + "sha256-yZd2KB7wIw23PybblyIlCo/5IEFYxAUfbLD2J91eOzw="; - mypy-boto3-elasticbeanstalk = buildMypyBoto3Package "elasticbeanstalk" "1.34.0" "sha256-ftVFUwY81mg/9zJ4xxVjhXF1HgKpzj1koIS32cMKRLw="; + mypy-boto3-elasticbeanstalk = + buildMypyBoto3Package "elasticbeanstalk" "1.34.0" + "sha256-ftVFUwY81mg/9zJ4xxVjhXF1HgKpzj1koIS32cMKRLw="; - mypy-boto3-elastictranscoder = buildMypyBoto3Package "elastictranscoder" "1.34.0" "sha256-tC+9Ks0DDC3zWBd9C964X8TFoL6kblWxG0jUQrzdID0="; + mypy-boto3-elastictranscoder = + buildMypyBoto3Package "elastictranscoder" "1.34.0" + "sha256-tC+9Ks0DDC3zWBd9C964X8TFoL6kblWxG0jUQrzdID0="; - mypy-boto3-elb = buildMypyBoto3Package "elb" "1.34.0" "sha256-5Eh5D872pVDd7Q+DDh3zpGMVgS8fUJsV+63H1fet73s="; + mypy-boto3-elb = + buildMypyBoto3Package "elb" "1.34.0" + "sha256-5Eh5D872pVDd7Q+DDh3zpGMVgS8fUJsV+63H1fet73s="; - mypy-boto3-elbv2 = buildMypyBoto3Package "elbv2" "1.34.63" "sha256-snXMLMHLEpJjfX1GJp6FfYgIjkS8vkbf/hESBdhxIfk="; + mypy-boto3-elbv2 = + buildMypyBoto3Package "elbv2" "1.34.63" + "sha256-snXMLMHLEpJjfX1GJp6FfYgIjkS8vkbf/hESBdhxIfk="; - mypy-boto3-emr = buildMypyBoto3Package "emr" "1.34.75" "sha256-Irxd4i5b1bbZuWBhXfLOuvoS1X5SoZH8GsgbQyy3UrY="; + mypy-boto3-emr = + buildMypyBoto3Package "emr" "1.34.75" + "sha256-Irxd4i5b1bbZuWBhXfLOuvoS1X5SoZH8GsgbQyy3UrY="; - mypy-boto3-emr-containers = buildMypyBoto3Package "emr-containers" "1.34.78" "sha256-GvoXMnpqahn3DIZFAAye0DGwIkAQhYaXektYC6hN3Ng="; + mypy-boto3-emr-containers = + buildMypyBoto3Package "emr-containers" "1.34.78" + "sha256-GvoXMnpqahn3DIZFAAye0DGwIkAQhYaXektYC6hN3Ng="; - mypy-boto3-emr-serverless = buildMypyBoto3Package "emr-serverless" "1.34.0" "sha256-YgccYi2+XhKiPGCMimrCooYPRV+iRuA1h120UdqJKUc="; + mypy-boto3-emr-serverless = + buildMypyBoto3Package "emr-serverless" "1.34.0" + "sha256-YgccYi2+XhKiPGCMimrCooYPRV+iRuA1h120UdqJKUc="; - mypy-boto3-entityresolution = buildMypyBoto3Package "entityresolution" "1.34.0" "sha256-qfRZtRaxysW+Ev16gnj48CePZzLBWrXmrq3tEGtfNbM="; + mypy-boto3-entityresolution = + buildMypyBoto3Package "entityresolution" "1.34.0" + "sha256-qfRZtRaxysW+Ev16gnj48CePZzLBWrXmrq3tEGtfNbM="; - mypy-boto3-es = buildMypyBoto3Package "es" "1.34.36" "sha256-uVLB1fjZRhlqJ/isKl5TDORmIN4ffKKqzyGZcEffa5g="; + mypy-boto3-es = + buildMypyBoto3Package "es" "1.34.36" + "sha256-uVLB1fjZRhlqJ/isKl5TDORmIN4ffKKqzyGZcEffa5g="; - mypy-boto3-events = buildMypyBoto3Package "events" "1.34.17" "sha256-L/78a975mFWw5xBH4et01j4Ba9/aGb5NUK7d/bPtsJU="; + mypy-boto3-events = + buildMypyBoto3Package "events" "1.34.17" + "sha256-L/78a975mFWw5xBH4et01j4Ba9/aGb5NUK7d/bPtsJU="; - mypy-boto3-evidently = buildMypyBoto3Package "evidently" "1.34.0" "sha256-MkBB5iTYJYg2cWFYHR3Qu7TcsDglLPEw0MnoHqij6+A="; + mypy-boto3-evidently = + buildMypyBoto3Package "evidently" "1.34.0" + "sha256-MkBB5iTYJYg2cWFYHR3Qu7TcsDglLPEw0MnoHqij6+A="; - mypy-boto3-finspace = buildMypyBoto3Package "finspace" "1.34.71" "sha256-bgPwDXqu73DjQCADmjTig6kLNOWvQ39flwhyYAbTai4="; + mypy-boto3-finspace = + buildMypyBoto3Package "finspace" "1.34.71" + "sha256-bgPwDXqu73DjQCADmjTig6kLNOWvQ39flwhyYAbTai4="; - mypy-boto3-finspace-data = buildMypyBoto3Package "finspace-data" "1.34.0" "sha256-8mND5BbdKY5srFwdpxSyfCUTIP4fa9hztP4daUJOB8k="; + mypy-boto3-finspace-data = + buildMypyBoto3Package "finspace-data" "1.34.0" + "sha256-8mND5BbdKY5srFwdpxSyfCUTIP4fa9hztP4daUJOB8k="; - mypy-boto3-firehose = buildMypyBoto3Package "firehose" "1.34.69" "sha256-GCMH/XA9ETSuo39OnlvyhfHDKylsTeLO1R1+7tl2S/E="; + mypy-boto3-firehose = + buildMypyBoto3Package "firehose" "1.34.69" + "sha256-GCMH/XA9ETSuo39OnlvyhfHDKylsTeLO1R1+7tl2S/E="; - mypy-boto3-fis = buildMypyBoto3Package "fis" "1.34.63" "sha256-TJnzgQGDcybpVqg+p7Tuvw/RoY79cQPPChyHWlMxhiY="; + mypy-boto3-fis = + buildMypyBoto3Package "fis" "1.34.63" + "sha256-TJnzgQGDcybpVqg+p7Tuvw/RoY79cQPPChyHWlMxhiY="; - mypy-boto3-fms = buildMypyBoto3Package "fms" "1.34.0" "sha256-tzaSecIXzkC+Zr5MGpU7GaoiGHGsywEglZ8+Ja0XDDo="; + mypy-boto3-fms = + buildMypyBoto3Package "fms" "1.34.0" + "sha256-tzaSecIXzkC+Zr5MGpU7GaoiGHGsywEglZ8+Ja0XDDo="; - mypy-boto3-forecast = buildMypyBoto3Package "forecast" "1.34.0" "sha256-DuNZe9Q7HuEeJYuBqo7JRBTJgclyUpU9fJ62SCGYpLQ="; + mypy-boto3-forecast = + buildMypyBoto3Package "forecast" "1.34.0" + "sha256-DuNZe9Q7HuEeJYuBqo7JRBTJgclyUpU9fJ62SCGYpLQ="; - mypy-boto3-forecastquery = buildMypyBoto3Package "forecastquery" "1.34.0" "sha256-IEKWQbwRDHiT/n5dSXXtLDqRVK12+EiSg9J+dGXfqx8="; + mypy-boto3-forecastquery = + buildMypyBoto3Package "forecastquery" "1.34.0" + "sha256-IEKWQbwRDHiT/n5dSXXtLDqRVK12+EiSg9J+dGXfqx8="; - mypy-boto3-frauddetector = buildMypyBoto3Package "frauddetector" "1.34.0" "sha256-EjiFEFpLKN0NmrNY43CFhQZHN+COTwRXx513X6X7vlE="; + mypy-boto3-frauddetector = + buildMypyBoto3Package "frauddetector" "1.34.0" + "sha256-EjiFEFpLKN0NmrNY43CFhQZHN+COTwRXx513X6X7vlE="; - mypy-boto3-fsx = buildMypyBoto3Package "fsx" "1.34.55" "sha256-XsIX4C8sF1m8jGbwrDWGoV7onHA9tRlI5Dki43bf9FM="; + mypy-boto3-fsx = + buildMypyBoto3Package "fsx" "1.34.55" + "sha256-XsIX4C8sF1m8jGbwrDWGoV7onHA9tRlI5Dki43bf9FM="; - mypy-boto3-gamelift = buildMypyBoto3Package "gamelift" "1.34.1" "sha256-EUdVrcriXRUqjcyKzyuoIdDTxMSAdyKcnbJ96s/Y8Uc="; + mypy-boto3-gamelift = + buildMypyBoto3Package "gamelift" "1.34.1" + "sha256-EUdVrcriXRUqjcyKzyuoIdDTxMSAdyKcnbJ96s/Y8Uc="; - mypy-boto3-gamesparks = buildMypyBoto3Package "gamesparks" "1.28.36" "sha256-6lQXNJ55FYvkFA14rgJGhRMjBHA3YrOybnsKNecX7So="; + mypy-boto3-gamesparks = + buildMypyBoto3Package "gamesparks" "1.28.36" + "sha256-6lQXNJ55FYvkFA14rgJGhRMjBHA3YrOybnsKNecX7So="; - mypy-boto3-glacier = buildMypyBoto3Package "glacier" "1.34.0" "sha256-j8LUD8EjjRL1av7UEXBqNPEARaSFgstaioGJtbel4oM="; + mypy-boto3-glacier = + buildMypyBoto3Package "glacier" "1.34.0" + "sha256-j8LUD8EjjRL1av7UEXBqNPEARaSFgstaioGJtbel4oM="; - mypy-boto3-globalaccelerator = buildMypyBoto3Package "globalaccelerator" "1.34.70" "sha256-7Su+rgV6KD9I4j630Qybufwn39rp/8tYQ2ldEe2Untc="; + mypy-boto3-globalaccelerator = + buildMypyBoto3Package "globalaccelerator" "1.34.70" + "sha256-7Su+rgV6KD9I4j630Qybufwn39rp/8tYQ2ldEe2Untc="; - mypy-boto3-glue = buildMypyBoto3Package "glue" "1.34.76" "sha256-bo88vETpsKBVDQ7n0a75iJrIyslBUAe0xjcfJp/y9IE="; + mypy-boto3-glue = + buildMypyBoto3Package "glue" "1.34.76" + "sha256-bo88vETpsKBVDQ7n0a75iJrIyslBUAe0xjcfJp/y9IE="; - mypy-boto3-grafana = buildMypyBoto3Package "grafana" "1.34.58" "sha256-dr+fCDf0DcWGxPPLMnzqrOCRMfoLhznyv6n679fFU/0="; + mypy-boto3-grafana = + buildMypyBoto3Package "grafana" "1.34.58" + "sha256-dr+fCDf0DcWGxPPLMnzqrOCRMfoLhznyv6n679fFU/0="; - mypy-boto3-greengrass = buildMypyBoto3Package "greengrass" "1.34.0" "sha256-ZU/xVWGlMngX0JiAhy9NEFDoXS4fsZvmLAkWqv2pocQ="; + mypy-boto3-greengrass = + buildMypyBoto3Package "greengrass" "1.34.0" + "sha256-ZU/xVWGlMngX0JiAhy9NEFDoXS4fsZvmLAkWqv2pocQ="; - mypy-boto3-greengrassv2 = buildMypyBoto3Package "greengrassv2" "1.34.0" "sha256-O3g6JHvnfvgKL0ax9R6IWgxdEoALaycfsBAhvWdERH0="; + mypy-boto3-greengrassv2 = + buildMypyBoto3Package "greengrassv2" "1.34.0" + "sha256-O3g6JHvnfvgKL0ax9R6IWgxdEoALaycfsBAhvWdERH0="; - mypy-boto3-groundstation = buildMypyBoto3Package "groundstation" "1.34.77" "sha256-g0pN7BeRZMZqyJVjABaRSE77ZMZxDRcLv+/JHjJ/cQc="; + mypy-boto3-groundstation = + buildMypyBoto3Package "groundstation" "1.34.77" + "sha256-g0pN7BeRZMZqyJVjABaRSE77ZMZxDRcLv+/JHjJ/cQc="; - mypy-boto3-guardduty = buildMypyBoto3Package "guardduty" "1.34.73" "sha256-DasHgBMa4/hnh/otzh0Zz4nalmESIS2/HkaY4vTltRs="; + mypy-boto3-guardduty = + buildMypyBoto3Package "guardduty" "1.34.73" + "sha256-DasHgBMa4/hnh/otzh0Zz4nalmESIS2/HkaY4vTltRs="; - mypy-boto3-health = buildMypyBoto3Package "health" "1.34.0" "sha256-st3ygy9yZbAbh1ZWnT8XDZTBz1qWhRWXCEfr5ILQHpo="; + mypy-boto3-health = + buildMypyBoto3Package "health" "1.34.0" + "sha256-st3ygy9yZbAbh1ZWnT8XDZTBz1qWhRWXCEfr5ILQHpo="; - mypy-boto3-healthlake = buildMypyBoto3Package "healthlake" "1.34.43" "sha256-Xci7f0/o60v1TAazFC34GjpzOBQlD+SvAMCF4xM3ymI="; + mypy-boto3-healthlake = + buildMypyBoto3Package "healthlake" "1.34.43" + "sha256-Xci7f0/o60v1TAazFC34GjpzOBQlD+SvAMCF4xM3ymI="; - mypy-boto3-honeycode = buildMypyBoto3Package "honeycode" "1.34.0" "sha256-HNp/STFuMLoO4qyL0iaYeiPpnMV3uzNBNFUDgzrHt9s="; + mypy-boto3-honeycode = + buildMypyBoto3Package "honeycode" "1.34.0" + "sha256-HNp/STFuMLoO4qyL0iaYeiPpnMV3uzNBNFUDgzrHt9s="; - mypy-boto3-iam = buildMypyBoto3Package "iam" "1.34.83" "sha256-cmExVhZ1fr91Cd8OmwkdWULkcOtRxLI8ZioGhzqajso="; + mypy-boto3-iam = + buildMypyBoto3Package "iam" "1.34.83" + "sha256-cmExVhZ1fr91Cd8OmwkdWULkcOtRxLI8ZioGhzqajso="; - mypy-boto3-identitystore = buildMypyBoto3Package "identitystore" "1.34.0" "sha256-OdJsMjraTe4qhpblBOuwr++4QfiMXtaaMHDAEOTBII4="; + mypy-boto3-identitystore = + buildMypyBoto3Package "identitystore" "1.34.0" + "sha256-OdJsMjraTe4qhpblBOuwr++4QfiMXtaaMHDAEOTBII4="; - mypy-boto3-imagebuilder = buildMypyBoto3Package "imagebuilder" "1.34.57" "sha256-r11JVMvO/IL1d2+fGZoc4nt1JnyUXir38a8i7IsZmLQ="; + mypy-boto3-imagebuilder = + buildMypyBoto3Package "imagebuilder" "1.34.57" + "sha256-r11JVMvO/IL1d2+fGZoc4nt1JnyUXir38a8i7IsZmLQ="; - mypy-boto3-importexport = buildMypyBoto3Package "importexport" "1.34.0" "sha256-GnIzCaCuRLPdvaAmmID62uY/te1Lx5DFGin2zJuDdAM="; + mypy-boto3-importexport = + buildMypyBoto3Package "importexport" "1.34.0" + "sha256-GnIzCaCuRLPdvaAmmID62uY/te1Lx5DFGin2zJuDdAM="; - mypy-boto3-inspector = buildMypyBoto3Package "inspector" "1.34.0" "sha256-85aAE1+azKZ9sFYxLOpVR4SkqrnfFQ1gXgGpzOBK1PE="; + mypy-boto3-inspector = + buildMypyBoto3Package "inspector" "1.34.0" + "sha256-85aAE1+azKZ9sFYxLOpVR4SkqrnfFQ1gXgGpzOBK1PE="; - mypy-boto3-inspector2 = buildMypyBoto3Package "inspector2" "1.34.29" "sha256-ZMdNVgKXQnEHyK4tV/XegvFX7xdk5A1AiSfpTKWCtcY="; + mypy-boto3-inspector2 = + buildMypyBoto3Package "inspector2" "1.34.29" + "sha256-ZMdNVgKXQnEHyK4tV/XegvFX7xdk5A1AiSfpTKWCtcY="; - mypy-boto3-internetmonitor = buildMypyBoto3Package "internetmonitor" "1.34.74" "sha256-VFIeJqQHHvbB+mLyzxHpZUvgGS5dJJen4AAJAMJTDqE="; + mypy-boto3-internetmonitor = + buildMypyBoto3Package "internetmonitor" "1.34.74" + "sha256-VFIeJqQHHvbB+mLyzxHpZUvgGS5dJJen4AAJAMJTDqE="; - mypy-boto3-iot = buildMypyBoto3Package "iot" "1.34.52" "sha256-YWGotOPKljY4B0JL1I+axk4MJZIk84rVxoZu9tzBGss="; + mypy-boto3-iot = + buildMypyBoto3Package "iot" "1.34.52" + "sha256-YWGotOPKljY4B0JL1I+axk4MJZIk84rVxoZu9tzBGss="; - mypy-boto3-iot-data = buildMypyBoto3Package "iot-data" "1.34.0" "sha256-N6UoHopsT3FM7bU01eWuqRSyyyaLBekkM+hsOU1byIM="; + mypy-boto3-iot-data = + buildMypyBoto3Package "iot-data" "1.34.0" + "sha256-N6UoHopsT3FM7bU01eWuqRSyyyaLBekkM+hsOU1byIM="; - mypy-boto3-iot-jobs-data = buildMypyBoto3Package "iot-jobs-data" "1.34.0" "sha256-ceqk+Gt+IcIVuLp/LMsrjnUXrPt+SY+mI8G3hKdE7TY="; + mypy-boto3-iot-jobs-data = + buildMypyBoto3Package "iot-jobs-data" "1.34.0" + "sha256-ceqk+Gt+IcIVuLp/LMsrjnUXrPt+SY+mI8G3hKdE7TY="; - mypy-boto3-iot-roborunner = buildMypyBoto3Package "iot-roborunner" "1.34.0" "sha256-TfhJHtE2zlEr80SGbxAZfK2+M/ad596fdwex+4GhBf8="; + mypy-boto3-iot-roborunner = + buildMypyBoto3Package "iot-roborunner" "1.34.0" + "sha256-TfhJHtE2zlEr80SGbxAZfK2+M/ad596fdwex+4GhBf8="; - mypy-boto3-iot1click-devices = buildMypyBoto3Package "iot1click-devices" "1.34.0" "sha256-Zpv/kw541LoC3Z58eKGe7sK5qioWMGswQS0O+jvNZgY="; + mypy-boto3-iot1click-devices = + buildMypyBoto3Package "iot1click-devices" "1.34.0" + "sha256-Zpv/kw541LoC3Z58eKGe7sK5qioWMGswQS0O+jvNZgY="; - mypy-boto3-iot1click-projects = buildMypyBoto3Package "iot1click-projects" "1.34.0" "sha256-QZ06B5UQSuDPUaXqZYPjawSEjIQjBwP7d5/obpvNivI="; + mypy-boto3-iot1click-projects = + buildMypyBoto3Package "iot1click-projects" "1.34.0" + "sha256-QZ06B5UQSuDPUaXqZYPjawSEjIQjBwP7d5/obpvNivI="; - mypy-boto3-iotanalytics = buildMypyBoto3Package "iotanalytics" "1.34.0" "sha256-aDlptQYJQ71WWYsgv+bFRoD2fmeGgiUl1Fv/oOAQJEM="; + mypy-boto3-iotanalytics = + buildMypyBoto3Package "iotanalytics" "1.34.0" + "sha256-aDlptQYJQ71WWYsgv+bFRoD2fmeGgiUl1Fv/oOAQJEM="; - mypy-boto3-iotdeviceadvisor = buildMypyBoto3Package "iotdeviceadvisor" "1.34.0" "sha256-DBI4dJXxprfHO3ipLIVb5Ii5NK7qWJRuWjzVfHTnqO4="; + mypy-boto3-iotdeviceadvisor = + buildMypyBoto3Package "iotdeviceadvisor" "1.34.0" + "sha256-DBI4dJXxprfHO3ipLIVb5Ii5NK7qWJRuWjzVfHTnqO4="; - mypy-boto3-iotevents = buildMypyBoto3Package "iotevents" "1.34.47" "sha256-ppsjLI2yY9+6SmAh1mfVBuZz+gHNNZS6eKDr3fHHmJM="; + mypy-boto3-iotevents = + buildMypyBoto3Package "iotevents" "1.34.47" + "sha256-ppsjLI2yY9+6SmAh1mfVBuZz+gHNNZS6eKDr3fHHmJM="; - mypy-boto3-iotevents-data = buildMypyBoto3Package "iotevents-data" "1.34.0" "sha256-K7yAnxjpJfSh6bWnmcdySkCQhhVFt42zU6REiy3zKrk="; + mypy-boto3-iotevents-data = + buildMypyBoto3Package "iotevents-data" "1.34.0" + "sha256-K7yAnxjpJfSh6bWnmcdySkCQhhVFt42zU6REiy3zKrk="; - mypy-boto3-iotfleethub = buildMypyBoto3Package "iotfleethub" "1.34.0" "sha256-wNm6OJUgAhvrXhtGaty19Tyva+nvonDOHsj9RT37FbY="; + mypy-boto3-iotfleethub = + buildMypyBoto3Package "iotfleethub" "1.34.0" + "sha256-wNm6OJUgAhvrXhtGaty19Tyva+nvonDOHsj9RT37FbY="; - mypy-boto3-iotfleetwise = buildMypyBoto3Package "iotfleetwise" "1.34.20" "sha256-Pe5Pw19H2y6koJxajW46oazxoFL5UHSOQHgXnhfIQJk="; + mypy-boto3-iotfleetwise = + buildMypyBoto3Package "iotfleetwise" "1.34.20" + "sha256-Pe5Pw19H2y6koJxajW46oazxoFL5UHSOQHgXnhfIQJk="; - mypy-boto3-iotsecuretunneling = buildMypyBoto3Package "iotsecuretunneling" "1.34.0" "sha256-E8658X3yWpIcRKDTtnacjuAAWqr/qnmYXFRJ/7uyKm8="; + mypy-boto3-iotsecuretunneling = + buildMypyBoto3Package "iotsecuretunneling" "1.34.0" + "sha256-E8658X3yWpIcRKDTtnacjuAAWqr/qnmYXFRJ/7uyKm8="; - mypy-boto3-iotsitewise = buildMypyBoto3Package "iotsitewise" "1.34.0" "sha256-/WDIf5WRUYbuhkzjXrX1t3BvHd7ZXBem2o8TysFWYQw="; + mypy-boto3-iotsitewise = + buildMypyBoto3Package "iotsitewise" "1.34.0" + "sha256-/WDIf5WRUYbuhkzjXrX1t3BvHd7ZXBem2o8TysFWYQw="; - mypy-boto3-iotthingsgraph = buildMypyBoto3Package "iotthingsgraph" "1.34.0" "sha256-8D0jqOuusz6SLCr+eKAZpTr9dvdonIc7+UYyXDzVzYQ="; + mypy-boto3-iotthingsgraph = + buildMypyBoto3Package "iotthingsgraph" "1.34.0" + "sha256-8D0jqOuusz6SLCr+eKAZpTr9dvdonIc7+UYyXDzVzYQ="; - mypy-boto3-iottwinmaker = buildMypyBoto3Package "iottwinmaker" "1.34.0" "sha256-K5LEh8wdXvftxGstThSBN73K+1FUVlE40JxvjWv6GMA="; + mypy-boto3-iottwinmaker = + buildMypyBoto3Package "iottwinmaker" "1.34.0" + "sha256-K5LEh8wdXvftxGstThSBN73K+1FUVlE40JxvjWv6GMA="; - mypy-boto3-iotwireless = buildMypyBoto3Package "iotwireless" "1.34.74" "sha256-57ZO7LlQ9/itiynqSjXu7SJrNLNaFo5WCJBqSXEYeLs="; + mypy-boto3-iotwireless = + buildMypyBoto3Package "iotwireless" "1.34.74" + "sha256-57ZO7LlQ9/itiynqSjXu7SJrNLNaFo5WCJBqSXEYeLs="; - mypy-boto3-ivs = buildMypyBoto3Package "ivs" "1.34.78" "sha256-ddugPjG15nmI2WsWp27TEQj8jwBLXaogznFwf1UP1nE="; + mypy-boto3-ivs = + buildMypyBoto3Package "ivs" "1.34.78" + "sha256-ddugPjG15nmI2WsWp27TEQj8jwBLXaogznFwf1UP1nE="; - mypy-boto3-ivs-realtime = buildMypyBoto3Package "ivs-realtime" "1.34.62" "sha256-/8P/S2xdYub8/tC0yaUbUfcxfDKpDnfAvmqneXFcAOo="; + mypy-boto3-ivs-realtime = + buildMypyBoto3Package "ivs-realtime" "1.34.62" + "sha256-/8P/S2xdYub8/tC0yaUbUfcxfDKpDnfAvmqneXFcAOo="; - mypy-boto3-ivschat = buildMypyBoto3Package "ivschat" "1.34.76" "sha256-y4CqrYMo6BQAhRr3adH3Ndb2q/DkOjef8Q89Vfz4QP4="; + mypy-boto3-ivschat = + buildMypyBoto3Package "ivschat" "1.34.76" + "sha256-y4CqrYMo6BQAhRr3adH3Ndb2q/DkOjef8Q89Vfz4QP4="; - mypy-boto3-kafka = buildMypyBoto3Package "kafka" "1.34.61" "sha256-nXd3Qi8IZsQN595vnsMLSn6pfZU70yPb6Ebhv4SijfE="; + mypy-boto3-kafka = + buildMypyBoto3Package "kafka" "1.34.61" + "sha256-nXd3Qi8IZsQN595vnsMLSn6pfZU70yPb6Ebhv4SijfE="; - mypy-boto3-kafkaconnect = buildMypyBoto3Package "kafkaconnect" "1.34.50" "sha256-frPPAQeFyO92uMqqzBcSC3MVK4V4hbdO9tx4awAKAUU="; + mypy-boto3-kafkaconnect = + buildMypyBoto3Package "kafkaconnect" "1.34.50" + "sha256-frPPAQeFyO92uMqqzBcSC3MVK4V4hbdO9tx4awAKAUU="; - mypy-boto3-kendra = buildMypyBoto3Package "kendra" "1.34.69" "sha256-OKUSsCfv2X9ad5XUSwm0KRwW++qb+AVtvCOurlRM/bo="; + mypy-boto3-kendra = + buildMypyBoto3Package "kendra" "1.34.69" + "sha256-OKUSsCfv2X9ad5XUSwm0KRwW++qb+AVtvCOurlRM/bo="; - mypy-boto3-kendra-ranking = buildMypyBoto3Package "kendra-ranking" "1.34.0" "sha256-hbemz5ECtfP3oi645lZT7CCx31yg8MNqbAD32Am6l1U="; + mypy-boto3-kendra-ranking = + buildMypyBoto3Package "kendra-ranking" "1.34.0" + "sha256-hbemz5ECtfP3oi645lZT7CCx31yg8MNqbAD32Am6l1U="; - mypy-boto3-keyspaces = buildMypyBoto3Package "keyspaces" "1.34.45" "sha256-Ucmttfi8oQIPpdfr3KPvrX1Tj3zbYxHGoYH0JNYX5UM="; + mypy-boto3-keyspaces = + buildMypyBoto3Package "keyspaces" "1.34.45" + "sha256-Ucmttfi8oQIPpdfr3KPvrX1Tj3zbYxHGoYH0JNYX5UM="; - mypy-boto3-kinesis = buildMypyBoto3Package "kinesis" "1.34.0" "sha256-9ATnW63Vl36fCXQbdpuIiIVL3UEcYxNEaGq4ie/ph0E="; + mypy-boto3-kinesis = + buildMypyBoto3Package "kinesis" "1.34.0" + "sha256-9ATnW63Vl36fCXQbdpuIiIVL3UEcYxNEaGq4ie/ph0E="; - mypy-boto3-kinesis-video-archived-media = buildMypyBoto3Package "kinesis-video-archived-media" "1.34.10" "sha256-B66x9erx5SlnDmTBpf4izGckF4GysChy+VRXy9tWSf4="; + mypy-boto3-kinesis-video-archived-media = + buildMypyBoto3Package "kinesis-video-archived-media" "1.34.10" + "sha256-B66x9erx5SlnDmTBpf4izGckF4GysChy+VRXy9tWSf4="; - mypy-boto3-kinesis-video-media = buildMypyBoto3Package "kinesis-video-media" "1.34.0" "sha256-YgkG14UzymthRLg4cga80ZDK9cxZzFBTISmnfTPt8nM="; + mypy-boto3-kinesis-video-media = + buildMypyBoto3Package "kinesis-video-media" "1.34.0" + "sha256-YgkG14UzymthRLg4cga80ZDK9cxZzFBTISmnfTPt8nM="; - mypy-boto3-kinesis-video-signaling = buildMypyBoto3Package "kinesis-video-signaling" "1.34.0" "sha256-aNFuruM0kQNhp+wEJr+Bo9MzLieG6a8xzbrHGAovgw8="; + mypy-boto3-kinesis-video-signaling = + buildMypyBoto3Package "kinesis-video-signaling" "1.34.0" + "sha256-aNFuruM0kQNhp+wEJr+Bo9MzLieG6a8xzbrHGAovgw8="; - mypy-boto3-kinesis-video-webrtc-storage = buildMypyBoto3Package "kinesis-video-webrtc-storage" "1.34.0" "sha256-Oi6r/AxePB0znUPg3fb22qZLDS4Cola5Vvs38Railnc="; + mypy-boto3-kinesis-video-webrtc-storage = + buildMypyBoto3Package "kinesis-video-webrtc-storage" "1.34.0" + "sha256-Oi6r/AxePB0znUPg3fb22qZLDS4Cola5Vvs38Railnc="; - mypy-boto3-kinesisanalytics = buildMypyBoto3Package "kinesisanalytics" "1.34.0" "sha256-eEoSmwMTa/hsbKbuKuzAZv4jHljGKq3b5Rw7K2Pgc50="; + mypy-boto3-kinesisanalytics = + buildMypyBoto3Package "kinesisanalytics" "1.34.0" + "sha256-eEoSmwMTa/hsbKbuKuzAZv4jHljGKq3b5Rw7K2Pgc50="; - mypy-boto3-kinesisanalyticsv2 = buildMypyBoto3Package "kinesisanalyticsv2" "1.34.64" "sha256-7sJyrWtBcbrWlCjR7pLdBLgW7sXcRazDPBW+OGwh4Xg="; + mypy-boto3-kinesisanalyticsv2 = + buildMypyBoto3Package "kinesisanalyticsv2" "1.34.64" + "sha256-7sJyrWtBcbrWlCjR7pLdBLgW7sXcRazDPBW+OGwh4Xg="; - mypy-boto3-kinesisvideo = buildMypyBoto3Package "kinesisvideo" "1.34.48" "sha256-uYSkwOuYKF3B+sj5IWbDL789Xue2yNY9g14j/2b6k6w="; + mypy-boto3-kinesisvideo = + buildMypyBoto3Package "kinesisvideo" "1.34.48" + "sha256-uYSkwOuYKF3B+sj5IWbDL789Xue2yNY9g14j/2b6k6w="; - mypy-boto3-kms = buildMypyBoto3Package "kms" "1.34.65" "sha256-jot13mfxhgvayvQkMxnDvjdwkpGLkwsC2eeAQpMW0II="; + mypy-boto3-kms = + buildMypyBoto3Package "kms" "1.34.65" + "sha256-jot13mfxhgvayvQkMxnDvjdwkpGLkwsC2eeAQpMW0II="; - mypy-boto3-lakeformation = buildMypyBoto3Package "lakeformation" "1.34.7" "sha256-/IPOF44ohg59XX+lmMbx8WsaHFpBaMH440Wm5jgrKD4="; + mypy-boto3-lakeformation = + buildMypyBoto3Package "lakeformation" "1.34.7" + "sha256-/IPOF44ohg59XX+lmMbx8WsaHFpBaMH440Wm5jgrKD4="; - mypy-boto3-lambda = buildMypyBoto3Package "lambda" "1.34.77" "sha256-e4HSpWBPtZLpL+CyhOzSWd4HFwM2CjO3HJtU30bYHJw="; + mypy-boto3-lambda = + buildMypyBoto3Package "lambda" "1.34.77" + "sha256-e4HSpWBPtZLpL+CyhOzSWd4HFwM2CjO3HJtU30bYHJw="; - mypy-boto3-lex-models = buildMypyBoto3Package "lex-models" "1.34.0" "sha256-LkD3CCjJYGwlSYRP0meJUCEdVSGGdSRrL9uBtimX4GU="; + mypy-boto3-lex-models = + buildMypyBoto3Package "lex-models" "1.34.0" + "sha256-LkD3CCjJYGwlSYRP0meJUCEdVSGGdSRrL9uBtimX4GU="; - mypy-boto3-lex-runtime = buildMypyBoto3Package "lex-runtime" "1.34.0" "sha256-oFUSsfT7RXHRAVUUk014lqPylPa+TZuyNuvHRixIxt8="; + mypy-boto3-lex-runtime = + buildMypyBoto3Package "lex-runtime" "1.34.0" + "sha256-oFUSsfT7RXHRAVUUk014lqPylPa+TZuyNuvHRixIxt8="; - mypy-boto3-lexv2-models = buildMypyBoto3Package "lexv2-models" "1.34.53" "sha256-xeuLY+rMoqtJc75pf2A/DYcsG86qqsIDO225QIwjlDw="; + mypy-boto3-lexv2-models = + buildMypyBoto3Package "lexv2-models" "1.34.53" + "sha256-xeuLY+rMoqtJc75pf2A/DYcsG86qqsIDO225QIwjlDw="; - mypy-boto3-lexv2-runtime = buildMypyBoto3Package "lexv2-runtime" "1.34.0" "sha256-V1OkUcwFYp8TVS2ASFjARJUrIKAx/9zcfQbQMngU5Uc="; + mypy-boto3-lexv2-runtime = + buildMypyBoto3Package "lexv2-runtime" "1.34.0" + "sha256-V1OkUcwFYp8TVS2ASFjARJUrIKAx/9zcfQbQMngU5Uc="; - mypy-boto3-license-manager = buildMypyBoto3Package "license-manager" "1.34.0" "sha256-93G6q8UIQ/6VtreLOSTQm99tFvsW917t0UgfKkp0kqs="; + mypy-boto3-license-manager = + buildMypyBoto3Package "license-manager" "1.34.0" + "sha256-93G6q8UIQ/6VtreLOSTQm99tFvsW917t0UgfKkp0kqs="; - mypy-boto3-license-manager-linux-subscriptions = buildMypyBoto3Package "license-manager-linux-subscriptions" "1.34.0" "sha256-yHvpZZn49SjTn/DLjSRhzGc2vg0IVv5GCeOFnhtScKA="; + mypy-boto3-license-manager-linux-subscriptions = + buildMypyBoto3Package "license-manager-linux-subscriptions" "1.34.0" + "sha256-yHvpZZn49SjTn/DLjSRhzGc2vg0IVv5GCeOFnhtScKA="; - mypy-boto3-license-manager-user-subscriptions = buildMypyBoto3Package "license-manager-user-subscriptions" "1.34.0" "sha256-PR+u+i5zSHFTN6+GuOcWBcON1E2SNABbPavByXz3unE="; + mypy-boto3-license-manager-user-subscriptions = + buildMypyBoto3Package "license-manager-user-subscriptions" "1.34.0" + "sha256-PR+u+i5zSHFTN6+GuOcWBcON1E2SNABbPavByXz3unE="; - mypy-boto3-lightsail = buildMypyBoto3Package "lightsail" "1.34.75" "sha256-ICBUixptVS5sWBHgYms9GgrY2XQblTZkq3Qr614qZMc="; + mypy-boto3-lightsail = + buildMypyBoto3Package "lightsail" "1.34.75" + "sha256-ICBUixptVS5sWBHgYms9GgrY2XQblTZkq3Qr614qZMc="; - mypy-boto3-location = buildMypyBoto3Package "location" "1.34.18" "sha256-rsjIGenXgdEdgxvilA3IKJkYkpDDQNDfjDQRoj/mxSU="; + mypy-boto3-location = + buildMypyBoto3Package "location" "1.34.18" + "sha256-rsjIGenXgdEdgxvilA3IKJkYkpDDQNDfjDQRoj/mxSU="; - mypy-boto3-logs = buildMypyBoto3Package "logs" "1.34.66" "sha256-z1+sSAHdkvBQB/sbRET/mCWFRNHyHmTpIo40GIBG+EE="; + mypy-boto3-logs = + buildMypyBoto3Package "logs" "1.34.66" + "sha256-z1+sSAHdkvBQB/sbRET/mCWFRNHyHmTpIo40GIBG+EE="; - mypy-boto3-lookoutequipment = buildMypyBoto3Package "lookoutequipment" "1.34.47" "sha256-M7NaoRHxlH5/zkuMnOlrco2BCPXErv/N7TAVwv2oZuA="; + mypy-boto3-lookoutequipment = + buildMypyBoto3Package "lookoutequipment" "1.34.47" + "sha256-M7NaoRHxlH5/zkuMnOlrco2BCPXErv/N7TAVwv2oZuA="; - mypy-boto3-lookoutmetrics = buildMypyBoto3Package "lookoutmetrics" "1.34.0" "sha256-2SRBUd8fZ7i2GbDgBWJcYS0Fbr/U65UmrLbHx57IZ5A="; + mypy-boto3-lookoutmetrics = + buildMypyBoto3Package "lookoutmetrics" "1.34.0" + "sha256-2SRBUd8fZ7i2GbDgBWJcYS0Fbr/U65UmrLbHx57IZ5A="; - mypy-boto3-lookoutvision = buildMypyBoto3Package "lookoutvision" "1.34.0" "sha256-+zl9JmGel0rkmGeYaHMlBIfPQfHdJQOk+sG/nuHnzD0="; + mypy-boto3-lookoutvision = + buildMypyBoto3Package "lookoutvision" "1.34.0" + "sha256-+zl9JmGel0rkmGeYaHMlBIfPQfHdJQOk+sG/nuHnzD0="; - mypy-boto3-m2 = buildMypyBoto3Package "m2" "1.34.0" "sha256-ZF3ZViV0pN64OEc8aHuCRR0lnVyHOiTRfqVQGCmMMKE="; + mypy-boto3-m2 = + buildMypyBoto3Package "m2" "1.34.0" + "sha256-ZF3ZViV0pN64OEc8aHuCRR0lnVyHOiTRfqVQGCmMMKE="; - mypy-boto3-machinelearning = buildMypyBoto3Package "machinelearning" "1.34.0" "sha256-DeiBu3PQMageEUlVdjH/1uELsPwo4IVhYzDlJFBohKg="; + mypy-boto3-machinelearning = + buildMypyBoto3Package "machinelearning" "1.34.0" + "sha256-DeiBu3PQMageEUlVdjH/1uELsPwo4IVhYzDlJFBohKg="; - mypy-boto3-macie = buildMypyBoto3Package "macie" "1.29.0" "sha256-lFOPbIBrGuv9W83fsyzyI5fyOleXf4j3sCh9IM0gaQ4="; + mypy-boto3-macie = + buildMypyBoto3Package "macie" "1.29.0" + "sha256-lFOPbIBrGuv9W83fsyzyI5fyOleXf4j3sCh9IM0gaQ4="; - mypy-boto3-macie2 = buildMypyBoto3Package "macie2" "1.34.20" "sha256-erqa/ptOBMd8x+N1A6ibSULfBH75gEWsKDd/jhc/9tg="; + mypy-boto3-macie2 = + buildMypyBoto3Package "macie2" "1.34.20" + "sha256-erqa/ptOBMd8x+N1A6ibSULfBH75gEWsKDd/jhc/9tg="; - mypy-boto3-managedblockchain = buildMypyBoto3Package "managedblockchain" "1.34.0" "sha256-gUPuS8/ygIdsfCx6S1zpxP936Ah0o5BT4TaDiEW4wPQ="; + mypy-boto3-managedblockchain = + buildMypyBoto3Package "managedblockchain" "1.34.0" + "sha256-gUPuS8/ygIdsfCx6S1zpxP936Ah0o5BT4TaDiEW4wPQ="; - mypy-boto3-managedblockchain-query = buildMypyBoto3Package "managedblockchain-query" "1.34.67" "sha256-c2BoAKpgurKaNOTkl3cqc3X1CiaQVfQL5kvQV3/WLww="; + mypy-boto3-managedblockchain-query = + buildMypyBoto3Package "managedblockchain-query" "1.34.67" + "sha256-c2BoAKpgurKaNOTkl3cqc3X1CiaQVfQL5kvQV3/WLww="; - mypy-boto3-marketplace-catalog = buildMypyBoto3Package "marketplace-catalog" "1.34.74" "sha256-+ehJMgzEt0R0sV1IL4/eEEltEIcFDqr4GzeTraabW90="; + mypy-boto3-marketplace-catalog = + buildMypyBoto3Package "marketplace-catalog" "1.34.74" + "sha256-+ehJMgzEt0R0sV1IL4/eEEltEIcFDqr4GzeTraabW90="; - mypy-boto3-marketplace-entitlement = buildMypyBoto3Package "marketplace-entitlement" "1.34.0" "sha256-yGaeDZLEmp/Nap++wI6GgQvVW3HxQFcM+ipk7RAuG4g="; + mypy-boto3-marketplace-entitlement = + buildMypyBoto3Package "marketplace-entitlement" "1.34.0" + "sha256-yGaeDZLEmp/Nap++wI6GgQvVW3HxQFcM+ipk7RAuG4g="; - mypy-boto3-marketplacecommerceanalytics = buildMypyBoto3Package "marketplacecommerceanalytics" "1.34.0" "sha256-Gzmd4GQnM2sRrL4/FE9kI0R9ItKJ5xdaC/cCGqQ0XAY="; + mypy-boto3-marketplacecommerceanalytics = + buildMypyBoto3Package "marketplacecommerceanalytics" "1.34.0" + "sha256-Gzmd4GQnM2sRrL4/FE9kI0R9ItKJ5xdaC/cCGqQ0XAY="; - mypy-boto3-mediaconnect = buildMypyBoto3Package "mediaconnect" "1.34.7" "sha256-A8Sal8qNijZ/PdwLLC3mGAt8btMGOHXzOAOVFn+JDtU="; + mypy-boto3-mediaconnect = + buildMypyBoto3Package "mediaconnect" "1.34.7" + "sha256-A8Sal8qNijZ/PdwLLC3mGAt8btMGOHXzOAOVFn+JDtU="; - mypy-boto3-mediaconvert = buildMypyBoto3Package "mediaconvert" "1.34.81" "sha256-MGULtrMziQpOXF4eNZabcu83rR13AHBMZrN5RgkqATk="; + mypy-boto3-mediaconvert = + buildMypyBoto3Package "mediaconvert" "1.34.81" + "sha256-MGULtrMziQpOXF4eNZabcu83rR13AHBMZrN5RgkqATk="; - mypy-boto3-medialive = buildMypyBoto3Package "medialive" "1.34.83" "sha256-VFyz2fNgx2fFFsU3843vwpZBQxGrVzNbyZWF1kv6KaY="; + mypy-boto3-medialive = + buildMypyBoto3Package "medialive" "1.34.83" + "sha256-VFyz2fNgx2fFFsU3843vwpZBQxGrVzNbyZWF1kv6KaY="; - mypy-boto3-mediapackage = buildMypyBoto3Package "mediapackage" "1.34.0" "sha256-4DJ2zVk0satmVn+TZdDExx/+ClJpc1bdmbvl72Joe5U="; + mypy-boto3-mediapackage = + buildMypyBoto3Package "mediapackage" "1.34.0" + "sha256-4DJ2zVk0satmVn+TZdDExx/+ClJpc1bdmbvl72Joe5U="; - mypy-boto3-mediapackage-vod = buildMypyBoto3Package "mediapackage-vod" "1.34.0" "sha256-XwGc3+WD8o/MUfcBocl52TPK/RhiCjEb2qDqcuYwB+g="; + mypy-boto3-mediapackage-vod = + buildMypyBoto3Package "mediapackage-vod" "1.34.0" + "sha256-XwGc3+WD8o/MUfcBocl52TPK/RhiCjEb2qDqcuYwB+g="; - mypy-boto3-mediapackagev2 = buildMypyBoto3Package "mediapackagev2" "1.34.60" "sha256-tm54AEKAAuhp8+KeoW/yesl0M8utg7iIbkOpLyotpa8="; + mypy-boto3-mediapackagev2 = + buildMypyBoto3Package "mediapackagev2" "1.34.60" + "sha256-tm54AEKAAuhp8+KeoW/yesl0M8utg7iIbkOpLyotpa8="; - mypy-boto3-mediastore = buildMypyBoto3Package "mediastore" "1.34.0" "sha256-v2G2wDXGJwMalYnHTRGvdRTUv41bm8adIOj9tgQV0ys="; + mypy-boto3-mediastore = + buildMypyBoto3Package "mediastore" "1.34.0" + "sha256-v2G2wDXGJwMalYnHTRGvdRTUv41bm8adIOj9tgQV0ys="; - mypy-boto3-mediastore-data = buildMypyBoto3Package "mediastore-data" "1.34.0" "sha256-bYlKkBh7Kq4PsToHQ4+K5B3h8+IwyS+7ngEJ5AALBus="; + mypy-boto3-mediastore-data = + buildMypyBoto3Package "mediastore-data" "1.34.0" + "sha256-bYlKkBh7Kq4PsToHQ4+K5B3h8+IwyS+7ngEJ5AALBus="; - mypy-boto3-mediatailor = buildMypyBoto3Package "mediatailor" "1.34.65" "sha256-JJDQuyACp+y5PntLhMZ2rIb1wR/IW0PPPqS8HB54mNk="; + mypy-boto3-mediatailor = + buildMypyBoto3Package "mediatailor" "1.34.65" + "sha256-JJDQuyACp+y5PntLhMZ2rIb1wR/IW0PPPqS8HB54mNk="; - mypy-boto3-medical-imaging = buildMypyBoto3Package "medical-imaging" "1.34.77" "sha256-biBe/kSBJRnGrYFr55Lc1GEZ5O457qOlujjiYQxp9hc="; + mypy-boto3-medical-imaging = + buildMypyBoto3Package "medical-imaging" "1.34.77" + "sha256-biBe/kSBJRnGrYFr55Lc1GEZ5O457qOlujjiYQxp9hc="; - mypy-boto3-memorydb = buildMypyBoto3Package "memorydb" "1.34.0" "sha256-bq2FQsYZ/7xi2o4cdacva510FjDRfbNRO2IrA0oxtAg="; + mypy-boto3-memorydb = + buildMypyBoto3Package "memorydb" "1.34.0" + "sha256-bq2FQsYZ/7xi2o4cdacva510FjDRfbNRO2IrA0oxtAg="; - mypy-boto3-meteringmarketplace = buildMypyBoto3Package "meteringmarketplace" "1.34.0" "sha256-1un4l+XXDAen0NS1lQ2e1XOyUaoOjt+n8AU0VvGlTP0="; + mypy-boto3-meteringmarketplace = + buildMypyBoto3Package "meteringmarketplace" "1.34.0" + "sha256-1un4l+XXDAen0NS1lQ2e1XOyUaoOjt+n8AU0VvGlTP0="; - mypy-boto3-mgh = buildMypyBoto3Package "mgh" "1.34.0" "sha256-tyA+ywgjdRkIU2vbZwCsQfWIYctw/kLjIGTEAZuf8oU="; + mypy-boto3-mgh = + buildMypyBoto3Package "mgh" "1.34.0" + "sha256-tyA+ywgjdRkIU2vbZwCsQfWIYctw/kLjIGTEAZuf8oU="; - mypy-boto3-mgn = buildMypyBoto3Package "mgn" "1.34.80" "sha256-eLfAHkhqlU9HK6bLfBFOZ+UzFI1q/vJLFmxQcBRJNt8="; + mypy-boto3-mgn = + buildMypyBoto3Package "mgn" "1.34.80" + "sha256-eLfAHkhqlU9HK6bLfBFOZ+UzFI1q/vJLFmxQcBRJNt8="; - mypy-boto3-migration-hub-refactor-spaces = buildMypyBoto3Package "migration-hub-refactor-spaces" "1.34.0" "sha256-T37s/ubwuU1zsKk8DmTFum6Ml3+WNZCJ+q8T6F75iUY="; + mypy-boto3-migration-hub-refactor-spaces = + buildMypyBoto3Package "migration-hub-refactor-spaces" "1.34.0" + "sha256-T37s/ubwuU1zsKk8DmTFum6Ml3+WNZCJ+q8T6F75iUY="; - mypy-boto3-migrationhub-config = buildMypyBoto3Package "migrationhub-config" "1.34.0" "sha256-feqiUjFrwYaAyRh1MZ96VILeEa/WBzUytsnRxXZMxoQ="; + mypy-boto3-migrationhub-config = + buildMypyBoto3Package "migrationhub-config" "1.34.0" + "sha256-feqiUjFrwYaAyRh1MZ96VILeEa/WBzUytsnRxXZMxoQ="; - mypy-boto3-migrationhuborchestrator = buildMypyBoto3Package "migrationhuborchestrator" "1.34.53" "sha256-kreU8blZ61EaKmKJpZ17iS6xFUig5FrMnOs5/1JTn4s="; + mypy-boto3-migrationhuborchestrator = + buildMypyBoto3Package "migrationhuborchestrator" "1.34.53" + "sha256-kreU8blZ61EaKmKJpZ17iS6xFUig5FrMnOs5/1JTn4s="; - mypy-boto3-migrationhubstrategy = buildMypyBoto3Package "migrationhubstrategy" "1.34.0" "sha256-N/NcnXF14SAs9F1ZwUYxc/5kp7iUWIFJisUfZxMStLU="; + mypy-boto3-migrationhubstrategy = + buildMypyBoto3Package "migrationhubstrategy" "1.34.0" + "sha256-N/NcnXF14SAs9F1ZwUYxc/5kp7iUWIFJisUfZxMStLU="; - mypy-boto3-mobile = buildMypyBoto3Package "mobile" "1.34.0" "sha256-fzP70K6S7KPi6GnEj92shU+Dr07ieqDkmrAUEBxMVdI="; + mypy-boto3-mobile = + buildMypyBoto3Package "mobile" "1.34.0" + "sha256-fzP70K6S7KPi6GnEj92shU+Dr07ieqDkmrAUEBxMVdI="; - mypy-boto3-mq = buildMypyBoto3Package "mq" "1.34.0" "sha256-yua6b3bSoXnJjAvsDHa+aE6DebBjQkAKdsy+nM7TcTE="; + mypy-boto3-mq = + buildMypyBoto3Package "mq" "1.34.0" + "sha256-yua6b3bSoXnJjAvsDHa+aE6DebBjQkAKdsy+nM7TcTE="; - mypy-boto3-mturk = buildMypyBoto3Package "mturk" "1.34.0" "sha256-qhyVd+9KIaL4hxjjDnw7qdyJdcT6ApCxhoTggOVDr80="; + mypy-boto3-mturk = + buildMypyBoto3Package "mturk" "1.34.0" + "sha256-qhyVd+9KIaL4hxjjDnw7qdyJdcT6ApCxhoTggOVDr80="; - mypy-boto3-mwaa = buildMypyBoto3Package "mwaa" "1.34.57" "sha256-D0W/03zhllRLYGyXQ/XvMBlcsKuEb2MPr0hmyUVy5xc="; + mypy-boto3-mwaa = + buildMypyBoto3Package "mwaa" "1.34.57" + "sha256-D0W/03zhllRLYGyXQ/XvMBlcsKuEb2MPr0hmyUVy5xc="; - mypy-boto3-neptune = buildMypyBoto3Package "neptune" "1.34.0" "sha256-oMS6e1cPfOZhh+obhOZTMjmwScEzwCBtvmjtpPIjltA="; + mypy-boto3-neptune = + buildMypyBoto3Package "neptune" "1.34.0" + "sha256-oMS6e1cPfOZhh+obhOZTMjmwScEzwCBtvmjtpPIjltA="; - mypy-boto3-neptunedata = buildMypyBoto3Package "neptunedata" "1.34.0" "sha256-ZKTaSuLNtxUyP1mW2q8RF8jvXKSfEyHZfJp77xRqbZc="; + mypy-boto3-neptunedata = + buildMypyBoto3Package "neptunedata" "1.34.0" + "sha256-ZKTaSuLNtxUyP1mW2q8RF8jvXKSfEyHZfJp77xRqbZc="; - mypy-boto3-network-firewall = buildMypyBoto3Package "network-firewall" "1.34.0" "sha256-I861Vg32yZJjg9/6q2KmFhysk/ysLZAg2ukNlWMEpuY="; + mypy-boto3-network-firewall = + buildMypyBoto3Package "network-firewall" "1.34.0" + "sha256-I861Vg32yZJjg9/6q2KmFhysk/ysLZAg2ukNlWMEpuY="; - mypy-boto3-networkmanager = buildMypyBoto3Package "networkmanager" "1.34.0" "sha256-vubUkzOk3bBuXVgHzMhYszMOhUqhBoupc7COdP0nneA="; + mypy-boto3-networkmanager = + buildMypyBoto3Package "networkmanager" "1.34.0" + "sha256-vubUkzOk3bBuXVgHzMhYszMOhUqhBoupc7COdP0nneA="; - mypy-boto3-nimble = buildMypyBoto3Package "nimble" "1.34.0" "sha256-i0E9kLunDRl+XzU3Ti3vxqHNa2oGHQQ9xDjCtNKi1Lw="; + mypy-boto3-nimble = + buildMypyBoto3Package "nimble" "1.34.0" + "sha256-i0E9kLunDRl+XzU3Ti3vxqHNa2oGHQQ9xDjCtNKi1Lw="; - mypy-boto3-oam = buildMypyBoto3Package "oam" "1.34.73" "sha256-MAnS/E6BKcaubeOdblitGzS7y7YUZr35M4679iJL6lE="; + mypy-boto3-oam = + buildMypyBoto3Package "oam" "1.34.73" + "sha256-MAnS/E6BKcaubeOdblitGzS7y7YUZr35M4679iJL6lE="; - mypy-boto3-omics = buildMypyBoto3Package "omics" "1.34.83" "sha256-66IykobW8D/oemTVIGf0xw7H+mb4yNzXMQHv/dnzqGg="; + mypy-boto3-omics = + buildMypyBoto3Package "omics" "1.34.83" + "sha256-66IykobW8D/oemTVIGf0xw7H+mb4yNzXMQHv/dnzqGg="; - mypy-boto3-opensearch = buildMypyBoto3Package "opensearch" "1.34.43" "sha256-EOl56YqzuIUWlSewnVCtEdzt3Ei5yueP4emtTQq3QrA="; + mypy-boto3-opensearch = + buildMypyBoto3Package "opensearch" "1.34.43" + "sha256-EOl56YqzuIUWlSewnVCtEdzt3Ei5yueP4emtTQq3QrA="; - mypy-boto3-opensearchserverless = buildMypyBoto3Package "opensearchserverless" "1.34.0" "sha256-YpbQWnVIXMqTzieWya4MiFz9HpN5YYSSmBjUvmO0VMo="; + mypy-boto3-opensearchserverless = + buildMypyBoto3Package "opensearchserverless" "1.34.0" + "sha256-YpbQWnVIXMqTzieWya4MiFz9HpN5YYSSmBjUvmO0VMo="; - mypy-boto3-opsworks = buildMypyBoto3Package "opsworks" "1.34.0" "sha256-398ugKoRKeRqIH/1upx1K6d0Y/WIsMJCNM2Mmwk+S/A="; + mypy-boto3-opsworks = + buildMypyBoto3Package "opsworks" "1.34.0" + "sha256-398ugKoRKeRqIH/1upx1K6d0Y/WIsMJCNM2Mmwk+S/A="; - mypy-boto3-opsworkscm = buildMypyBoto3Package "opsworkscm" "1.34.0" "sha256-HsUXwbXRPmEaSJjs4EezSHugssLtP2g/NvaI0CnGStA="; + mypy-boto3-opsworkscm = + buildMypyBoto3Package "opsworkscm" "1.34.0" + "sha256-HsUXwbXRPmEaSJjs4EezSHugssLtP2g/NvaI0CnGStA="; - mypy-boto3-organizations = buildMypyBoto3Package "organizations" "1.34.56" "sha256-iVOUgkTI0sNixbfr/Z/H9Hsc2thCqDCqHrlthneZLVU="; + mypy-boto3-organizations = + buildMypyBoto3Package "organizations" "1.34.56" + "sha256-iVOUgkTI0sNixbfr/Z/H9Hsc2thCqDCqHrlthneZLVU="; - mypy-boto3-osis = buildMypyBoto3Package "osis" "1.34.0" "sha256-2mSI1VTmQWuwxsCgQtmr1w8xE3zIcwztvMuKMqXFF3k="; + mypy-boto3-osis = + buildMypyBoto3Package "osis" "1.34.0" + "sha256-2mSI1VTmQWuwxsCgQtmr1w8xE3zIcwztvMuKMqXFF3k="; - mypy-boto3-outposts = buildMypyBoto3Package "outposts" "1.34.27" "sha256-nkXVo8Qr2k+pV3SChRezoiU0e2kT9kz1vr2J8MLfm+0="; + mypy-boto3-outposts = + buildMypyBoto3Package "outposts" "1.34.27" + "sha256-nkXVo8Qr2k+pV3SChRezoiU0e2kT9kz1vr2J8MLfm+0="; - mypy-boto3-panorama = buildMypyBoto3Package "panorama" "1.34.0" "sha256-Pw0yRgawY5TC0OIgcYmzK3KEQusyRf3coThpeHL4X30="; + mypy-boto3-panorama = + buildMypyBoto3Package "panorama" "1.34.0" + "sha256-Pw0yRgawY5TC0OIgcYmzK3KEQusyRf3coThpeHL4X30="; - mypy-boto3-payment-cryptography = buildMypyBoto3Package "payment-cryptography" "1.34.20" "sha256-WdyhWl00Khf3gA6OeWeKrlgFnTvWhk+AFoS2UhM5Haw="; + mypy-boto3-payment-cryptography = + buildMypyBoto3Package "payment-cryptography" "1.34.20" + "sha256-WdyhWl00Khf3gA6OeWeKrlgFnTvWhk+AFoS2UhM5Haw="; - mypy-boto3-payment-cryptography-data = buildMypyBoto3Package "payment-cryptography-data" "1.34.58" "sha256-mc4NO3yjdLlXc9TBkmIsGFqNfW2RT7/jVMC9uhug4tc="; + mypy-boto3-payment-cryptography-data = + buildMypyBoto3Package "payment-cryptography-data" "1.34.58" + "sha256-mc4NO3yjdLlXc9TBkmIsGFqNfW2RT7/jVMC9uhug4tc="; - mypy-boto3-pca-connector-ad = buildMypyBoto3Package "pca-connector-ad" "1.34.0" "sha256-pSGVZPLuj8xcSfLqa+xvf4UL/l2Xb5t43KuXlTCfskc="; + mypy-boto3-pca-connector-ad = + buildMypyBoto3Package "pca-connector-ad" "1.34.0" + "sha256-pSGVZPLuj8xcSfLqa+xvf4UL/l2Xb5t43KuXlTCfskc="; - mypy-boto3-personalize = buildMypyBoto3Package "personalize" "1.34.20" "sha256-1Q+rXczO15oM/KXRLVP8D96HW4nILpxig4stjT1KwuY="; + mypy-boto3-personalize = + buildMypyBoto3Package "personalize" "1.34.20" + "sha256-1Q+rXczO15oM/KXRLVP8D96HW4nILpxig4stjT1KwuY="; - mypy-boto3-personalize-events = buildMypyBoto3Package "personalize-events" "1.34.0" "sha256-dklttvls5In+d9uWONxmhfSOP1TQf+4VMW56JjKICr4="; + mypy-boto3-personalize-events = + buildMypyBoto3Package "personalize-events" "1.34.0" + "sha256-dklttvls5In+d9uWONxmhfSOP1TQf+4VMW56JjKICr4="; - mypy-boto3-personalize-runtime = buildMypyBoto3Package "personalize-runtime" "1.34.20" "sha256-sKEXkOlMb7t4jBQrLLx90wFhCN1R4ZOk8w9kMpKI0os="; + mypy-boto3-personalize-runtime = + buildMypyBoto3Package "personalize-runtime" "1.34.20" + "sha256-sKEXkOlMb7t4jBQrLLx90wFhCN1R4ZOk8w9kMpKI0os="; - mypy-boto3-pi = buildMypyBoto3Package "pi" "1.34.0" "sha256-97giGYtpINPHxtcUU6cE/mPF0/r6YfLixAdcC/LGKC0="; + mypy-boto3-pi = + buildMypyBoto3Package "pi" "1.34.0" + "sha256-97giGYtpINPHxtcUU6cE/mPF0/r6YfLixAdcC/LGKC0="; - mypy-boto3-pinpoint = buildMypyBoto3Package "pinpoint" "1.34.81" "sha256-vs7gJCsMrpXBhPFwcHmQ/IT4sOYBMJ6IlcCLGMPuog8="; + mypy-boto3-pinpoint = + buildMypyBoto3Package "pinpoint" "1.34.81" + "sha256-vs7gJCsMrpXBhPFwcHmQ/IT4sOYBMJ6IlcCLGMPuog8="; - mypy-boto3-pinpoint-email = buildMypyBoto3Package "pinpoint-email" "1.34.0" "sha256-AHwJtYsAxFiEX16L0HZXz9JzjNZck9V40bFwzicMKUE="; + mypy-boto3-pinpoint-email = + buildMypyBoto3Package "pinpoint-email" "1.34.0" + "sha256-AHwJtYsAxFiEX16L0HZXz9JzjNZck9V40bFwzicMKUE="; - mypy-boto3-pinpoint-sms-voice = buildMypyBoto3Package "pinpoint-sms-voice" "1.34.0" "sha256-oDhem97q9QpsQNy9zCfWOC1cHup3pvLflClVxeWEBuw="; + mypy-boto3-pinpoint-sms-voice = + buildMypyBoto3Package "pinpoint-sms-voice" "1.34.0" + "sha256-oDhem97q9QpsQNy9zCfWOC1cHup3pvLflClVxeWEBuw="; - mypy-boto3-pinpoint-sms-voice-v2 = buildMypyBoto3Package "pinpoint-sms-voice-v2" "1.34.0" "sha256-Ci/nnvgq6YbVPHLZVmLDHjF8GHpViVP7mfUJREFKndg="; + mypy-boto3-pinpoint-sms-voice-v2 = + buildMypyBoto3Package "pinpoint-sms-voice-v2" "1.34.0" + "sha256-Ci/nnvgq6YbVPHLZVmLDHjF8GHpViVP7mfUJREFKndg="; - mypy-boto3-pipes = buildMypyBoto3Package "pipes" "1.34.83" "sha256-Z//eO1IEEolh+5loNBmS5R5W5sdyGt/0T88kI726PKA="; + mypy-boto3-pipes = + buildMypyBoto3Package "pipes" "1.34.83" + "sha256-Z//eO1IEEolh+5loNBmS5R5W5sdyGt/0T88kI726PKA="; - mypy-boto3-polly = buildMypyBoto3Package "polly" "1.34.43" "sha256-rx5sW32N6H47fpy5yGvwlKKVKS/uIKOtLfsjoGoNPJg="; + mypy-boto3-polly = + buildMypyBoto3Package "polly" "1.34.43" + "sha256-rx5sW32N6H47fpy5yGvwlKKVKS/uIKOtLfsjoGoNPJg="; - mypy-boto3-pricing = buildMypyBoto3Package "pricing" "1.34.69" "sha256-0+bak3+4FQK0vAjI1r7uKvhwspZxt/zLCJRVMvH41qs="; + mypy-boto3-pricing = + buildMypyBoto3Package "pricing" "1.34.69" + "sha256-0+bak3+4FQK0vAjI1r7uKvhwspZxt/zLCJRVMvH41qs="; - mypy-boto3-privatenetworks = buildMypyBoto3Package "privatenetworks" "1.34.0" "sha256-WFX0KaJRo0LCPKEAq8LES0P3WJkt6ywLXqTlOFZyZ1w="; + mypy-boto3-privatenetworks = + buildMypyBoto3Package "privatenetworks" "1.34.0" + "sha256-WFX0KaJRo0LCPKEAq8LES0P3WJkt6ywLXqTlOFZyZ1w="; - mypy-boto3-proton = buildMypyBoto3Package "proton" "1.34.0" "sha256-wRBMw/7PWi0s9sJTfnDq3MXcbA5pKwogMDC3UZtLJoY="; + mypy-boto3-proton = + buildMypyBoto3Package "proton" "1.34.0" + "sha256-wRBMw/7PWi0s9sJTfnDq3MXcbA5pKwogMDC3UZtLJoY="; - mypy-boto3-qldb = buildMypyBoto3Package "qldb" "1.34.49" "sha256-yiqWryr4vKt/6k+dVoDMDdtL6yP4ClVY0rFwZDDcvWY="; + mypy-boto3-qldb = + buildMypyBoto3Package "qldb" "1.34.49" + "sha256-yiqWryr4vKt/6k+dVoDMDdtL6yP4ClVY0rFwZDDcvWY="; - mypy-boto3-qldb-session = buildMypyBoto3Package "qldb-session" "1.34.0" "sha256-JHePiaFCfIJPxZzvC1U38xrBGkDvB9+yKwPecaZl7BY="; + mypy-boto3-qldb-session = + buildMypyBoto3Package "qldb-session" "1.34.0" + "sha256-JHePiaFCfIJPxZzvC1U38xrBGkDvB9+yKwPecaZl7BY="; - mypy-boto3-quicksight = buildMypyBoto3Package "quicksight" "1.34.79" "sha256-oHaZrX3aRoaFs5VLC7dQMihSocWLmCupHGhReXPbGBo="; + mypy-boto3-quicksight = + buildMypyBoto3Package "quicksight" "1.34.79" + "sha256-oHaZrX3aRoaFs5VLC7dQMihSocWLmCupHGhReXPbGBo="; - mypy-boto3-ram = buildMypyBoto3Package "ram" "1.34.0" "sha256-9sOspEfirpVQ8cT9ILUSWypxBswpAD75A0hHRV7glNg="; + mypy-boto3-ram = + buildMypyBoto3Package "ram" "1.34.0" + "sha256-9sOspEfirpVQ8cT9ILUSWypxBswpAD75A0hHRV7glNg="; - mypy-boto3-rbin = buildMypyBoto3Package "rbin" "1.34.0" "sha256-Y+a/p3r5IgWk4oH6MOeq0e7rMiNvLCqoz1ZE+xXNtOw="; + mypy-boto3-rbin = + buildMypyBoto3Package "rbin" "1.34.0" + "sha256-Y+a/p3r5IgWk4oH6MOeq0e7rMiNvLCqoz1ZE+xXNtOw="; - mypy-boto3-rds = buildMypyBoto3Package "rds" "1.34.83" "sha256-/H99xDRpX9egs39pRaYkvJ3GM6syh+famJmTTRsCgYs="; + mypy-boto3-rds = + buildMypyBoto3Package "rds" "1.34.83" + "sha256-/H99xDRpX9egs39pRaYkvJ3GM6syh+famJmTTRsCgYs="; - mypy-boto3-rds-data = buildMypyBoto3Package "rds-data" "1.34.6" "sha256-d+WXt3cSUe5ZxynSjPSJxXgv6evP/rhZrX1ua9rtSx8="; + mypy-boto3-rds-data = + buildMypyBoto3Package "rds-data" "1.34.6" + "sha256-d+WXt3cSUe5ZxynSjPSJxXgv6evP/rhZrX1ua9rtSx8="; - mypy-boto3-redshift = buildMypyBoto3Package "redshift" "1.34.57" "sha256-MDhI9DW5I6SWXIAnENiPqSanDjCB3vf2n24eVxzmtso="; + mypy-boto3-redshift = + buildMypyBoto3Package "redshift" "1.34.57" + "sha256-MDhI9DW5I6SWXIAnENiPqSanDjCB3vf2n24eVxzmtso="; - mypy-boto3-redshift-data = buildMypyBoto3Package "redshift-data" "1.34.0" "sha256-NdBZxkLTwnY7fgmoqGZKTN/lhCyY/3VGFWWOGeCf//0="; + mypy-boto3-redshift-data = + buildMypyBoto3Package "redshift-data" "1.34.0" + "sha256-NdBZxkLTwnY7fgmoqGZKTN/lhCyY/3VGFWWOGeCf//0="; - mypy-boto3-redshift-serverless = buildMypyBoto3Package "redshift-serverless" "1.34.16" "sha256-ag5tKb1+4cHiG99OszDNGdnX9RPRPraaqM8p3IqgLBg="; + mypy-boto3-redshift-serverless = + buildMypyBoto3Package "redshift-serverless" "1.34.16" + "sha256-ag5tKb1+4cHiG99OszDNGdnX9RPRPraaqM8p3IqgLBg="; - mypy-boto3-rekognition = buildMypyBoto3Package "rekognition" "1.34.82" "sha256-qy7yacSuG6cARR2L/YjBGWYM1BU5/qtMr/H08x3XFIM="; + mypy-boto3-rekognition = + buildMypyBoto3Package "rekognition" "1.34.82" + "sha256-qy7yacSuG6cARR2L/YjBGWYM1BU5/qtMr/H08x3XFIM="; - mypy-boto3-resiliencehub = buildMypyBoto3Package "resiliencehub" "1.34.0" "sha256-F/ZRCp/M/6kBI4Apb3mISzqe1Zi4Y7gq/vu0dvyyTvM="; + mypy-boto3-resiliencehub = + buildMypyBoto3Package "resiliencehub" "1.34.0" + "sha256-F/ZRCp/M/6kBI4Apb3mISzqe1Zi4Y7gq/vu0dvyyTvM="; - mypy-boto3-resource-explorer-2 = buildMypyBoto3Package "resource-explorer-2" "1.34.41" "sha256-Q4MCAvEZkYRnDLEF9d8x+FOMUJ9O2eCb2mZr/e8Ut24="; + mypy-boto3-resource-explorer-2 = + buildMypyBoto3Package "resource-explorer-2" "1.34.41" + "sha256-Q4MCAvEZkYRnDLEF9d8x+FOMUJ9O2eCb2mZr/e8Ut24="; - mypy-boto3-resource-groups = buildMypyBoto3Package "resource-groups" "1.34.79" "sha256-tSCHhtaSb+dnXD8D2aNR6DBAlhHbvU3zx6YceGTlzgM="; + mypy-boto3-resource-groups = + buildMypyBoto3Package "resource-groups" "1.34.79" + "sha256-tSCHhtaSb+dnXD8D2aNR6DBAlhHbvU3zx6YceGTlzgM="; - mypy-boto3-resourcegroupstaggingapi = buildMypyBoto3Package "resourcegroupstaggingapi" "1.34.0" "sha256-ko55TJeH/EGsAp1Y8ZTYhmGEqWGKQTnN3IQEF31V6Ns="; + mypy-boto3-resourcegroupstaggingapi = + buildMypyBoto3Package "resourcegroupstaggingapi" "1.34.0" + "sha256-ko55TJeH/EGsAp1Y8ZTYhmGEqWGKQTnN3IQEF31V6Ns="; - mypy-boto3-robomaker = buildMypyBoto3Package "robomaker" "1.34.0" "sha256-dAL2P2bxhSc5oLZXhhekrt9y4bWXg7kIr+/FVbkFTww="; + mypy-boto3-robomaker = + buildMypyBoto3Package "robomaker" "1.34.0" + "sha256-dAL2P2bxhSc5oLZXhhekrt9y4bWXg7kIr+/FVbkFTww="; - mypy-boto3-rolesanywhere = buildMypyBoto3Package "rolesanywhere" "1.34.76" "sha256-y346Go7PySWVFPZI7CvFElW2cK708Q1D3K0LdfPDp0Q="; + mypy-boto3-rolesanywhere = + buildMypyBoto3Package "rolesanywhere" "1.34.76" + "sha256-y346Go7PySWVFPZI7CvFElW2cK708Q1D3K0LdfPDp0Q="; - mypy-boto3-route53 = buildMypyBoto3Package "route53" "1.34.31" "sha256-MtmEtt57vhFRG1O+VnFXFUhSWAQ7JrnV3hBZx4TpOh8="; + mypy-boto3-route53 = + buildMypyBoto3Package "route53" "1.34.31" + "sha256-MtmEtt57vhFRG1O+VnFXFUhSWAQ7JrnV3hBZx4TpOh8="; - mypy-boto3-route53-recovery-cluster = buildMypyBoto3Package "route53-recovery-cluster" "1.34.0" "sha256-1IUmycikAtBBNykch2aj7tI6XLRjN7D56YwJn6QRmIQ="; + mypy-boto3-route53-recovery-cluster = + buildMypyBoto3Package "route53-recovery-cluster" "1.34.0" + "sha256-1IUmycikAtBBNykch2aj7tI6XLRjN7D56YwJn6QRmIQ="; - mypy-boto3-route53-recovery-control-config = buildMypyBoto3Package "route53-recovery-control-config" "1.34.0" "sha256-hlwovA3tocSTUzsj+TH4VMO/bDrxDNALrAFiTpcgNa0="; + mypy-boto3-route53-recovery-control-config = + buildMypyBoto3Package "route53-recovery-control-config" "1.34.0" + "sha256-hlwovA3tocSTUzsj+TH4VMO/bDrxDNALrAFiTpcgNa0="; - mypy-boto3-route53-recovery-readiness = buildMypyBoto3Package "route53-recovery-readiness" "1.34.0" "sha256-DyNRWZ9daJ6VFa7moTjgEIdxcCRgjvZ2n7UKyNfr9z4="; + mypy-boto3-route53-recovery-readiness = + buildMypyBoto3Package "route53-recovery-readiness" "1.34.0" + "sha256-DyNRWZ9daJ6VFa7moTjgEIdxcCRgjvZ2n7UKyNfr9z4="; - mypy-boto3-route53domains = buildMypyBoto3Package "route53domains" "1.34.40" "sha256-N81sytOFacuG3pHSk35QbxVxUVEZUx8DK4Y7uUonyh4="; + mypy-boto3-route53domains = + buildMypyBoto3Package "route53domains" "1.34.40" + "sha256-N81sytOFacuG3pHSk35QbxVxUVEZUx8DK4Y7uUonyh4="; - mypy-boto3-route53resolver = buildMypyBoto3Package "route53resolver" "1.34.15" "sha256-ER9jhGIeEeHc0llpy4aqRnI9iFfubJFIik04gB81vr0="; + mypy-boto3-route53resolver = + buildMypyBoto3Package "route53resolver" "1.34.15" + "sha256-ER9jhGIeEeHc0llpy4aqRnI9iFfubJFIik04gB81vr0="; - mypy-boto3-rum = buildMypyBoto3Package "rum" "1.34.49" "sha256-Mq2H+13cjxYRwFfxJpWTAb+W5bx+Vew+jl+zbreRIkQ="; + mypy-boto3-rum = + buildMypyBoto3Package "rum" "1.34.49" + "sha256-Mq2H+13cjxYRwFfxJpWTAb+W5bx+Vew+jl+zbreRIkQ="; - mypy-boto3-s3 = buildMypyBoto3Package "s3" "1.34.65" "sha256-L830Es4pJLLws021mr8GqcC75M0zYfFPDSweIRwPfd0="; + mypy-boto3-s3 = + buildMypyBoto3Package "s3" "1.34.65" + "sha256-L830Es4pJLLws021mr8GqcC75M0zYfFPDSweIRwPfd0="; - mypy-boto3-s3control = buildMypyBoto3Package "s3control" "1.34.83" "sha256-A0P6rAebwt9IUKTderlE8tWQJexUjthpO6KClrDbNyc="; + mypy-boto3-s3control = + buildMypyBoto3Package "s3control" "1.34.83" + "sha256-A0P6rAebwt9IUKTderlE8tWQJexUjthpO6KClrDbNyc="; - mypy-boto3-s3outposts = buildMypyBoto3Package "s3outposts" "1.34.0" "sha256-xLuGP9Fe0S7zRimt1AKd9KOrytmNd/GTRg5OVi5Xpos="; + mypy-boto3-s3outposts = + buildMypyBoto3Package "s3outposts" "1.34.0" + "sha256-xLuGP9Fe0S7zRimt1AKd9KOrytmNd/GTRg5OVi5Xpos="; - mypy-boto3-sagemaker = buildMypyBoto3Package "sagemaker" "1.34.74" "sha256-gTSksOsEH4IRLqw+AZ/CNLO28Ir18oy7iP2h6a38rmE="; + mypy-boto3-sagemaker = + buildMypyBoto3Package "sagemaker" "1.34.74" + "sha256-gTSksOsEH4IRLqw+AZ/CNLO28Ir18oy7iP2h6a38rmE="; - mypy-boto3-sagemaker-a2i-runtime = buildMypyBoto3Package "sagemaker-a2i-runtime" "1.34.0" "sha256-jMZ3aWKQPhNec4A/02S1waQi6Mx9JVdENc3kblhsKjA="; + mypy-boto3-sagemaker-a2i-runtime = + buildMypyBoto3Package "sagemaker-a2i-runtime" "1.34.0" + "sha256-jMZ3aWKQPhNec4A/02S1waQi6Mx9JVdENc3kblhsKjA="; - mypy-boto3-sagemaker-edge = buildMypyBoto3Package "sagemaker-edge" "1.34.0" "sha256-F3IN/KA7uzS16HZydXmFXlXseNIdhCais6Abfq7gRdI="; + mypy-boto3-sagemaker-edge = + buildMypyBoto3Package "sagemaker-edge" "1.34.0" + "sha256-F3IN/KA7uzS16HZydXmFXlXseNIdhCais6Abfq7gRdI="; - mypy-boto3-sagemaker-featurestore-runtime = buildMypyBoto3Package "sagemaker-featurestore-runtime" "1.34.22" "sha256-4dFjwJSTgudHHgpVl2TxUl8fWskuzWO+BhTqa5k+4mw="; + mypy-boto3-sagemaker-featurestore-runtime = + buildMypyBoto3Package "sagemaker-featurestore-runtime" "1.34.22" + "sha256-4dFjwJSTgudHHgpVl2TxUl8fWskuzWO+BhTqa5k+4mw="; - mypy-boto3-sagemaker-geospatial = buildMypyBoto3Package "sagemaker-geospatial" "1.34.0" "sha256-9hKKH/025QQYLrlXCOAQoxuWzTMQlmLSov/hVsubF7M="; + mypy-boto3-sagemaker-geospatial = + buildMypyBoto3Package "sagemaker-geospatial" "1.34.0" + "sha256-9hKKH/025QQYLrlXCOAQoxuWzTMQlmLSov/hVsubF7M="; - mypy-boto3-sagemaker-metrics = buildMypyBoto3Package "sagemaker-metrics" "1.34.0" "sha256-KniU+0ZJKfjrBKDDZz+QyLb1oomSeD/K6fcJgmMAcJQ="; + mypy-boto3-sagemaker-metrics = + buildMypyBoto3Package "sagemaker-metrics" "1.34.0" + "sha256-KniU+0ZJKfjrBKDDZz+QyLb1oomSeD/K6fcJgmMAcJQ="; - mypy-boto3-sagemaker-runtime = buildMypyBoto3Package "sagemaker-runtime" "1.34.0" "sha256-OJYEdi4xILUZoePcGBcLRHAhwppeybNO+l0kyW3a0Co="; + mypy-boto3-sagemaker-runtime = + buildMypyBoto3Package "sagemaker-runtime" "1.34.0" + "sha256-OJYEdi4xILUZoePcGBcLRHAhwppeybNO+l0kyW3a0Co="; - mypy-boto3-savingsplans = buildMypyBoto3Package "savingsplans" "1.34.67" "sha256-t+0Ko+Onv24p1Sn59mvR/auXkDTowOEpKwpzuMUqk8w="; + mypy-boto3-savingsplans = + buildMypyBoto3Package "savingsplans" "1.34.67" + "sha256-t+0Ko+Onv24p1Sn59mvR/auXkDTowOEpKwpzuMUqk8w="; - mypy-boto3-scheduler = buildMypyBoto3Package "scheduler" "1.34.0" "sha256-+gnQjWPtp7KVI/qIY2aXHD9iM7RZIDl0JwRostfhjzc="; + mypy-boto3-scheduler = + buildMypyBoto3Package "scheduler" "1.34.0" + "sha256-+gnQjWPtp7KVI/qIY2aXHD9iM7RZIDl0JwRostfhjzc="; - mypy-boto3-schemas = buildMypyBoto3Package "schemas" "1.34.0" "sha256-OyWnGUQZKwmAw7tRMt63wG7puIWA7WPyV/rZfPO/KSc="; + mypy-boto3-schemas = + buildMypyBoto3Package "schemas" "1.34.0" + "sha256-OyWnGUQZKwmAw7tRMt63wG7puIWA7WPyV/rZfPO/KSc="; - mypy-boto3-sdb = buildMypyBoto3Package "sdb" "1.34.0" "sha256-13BuAQD8uDwwDhCw+8O3V882H6/oor5Z8mBmjb7HHAU="; + mypy-boto3-sdb = + buildMypyBoto3Package "sdb" "1.34.0" + "sha256-13BuAQD8uDwwDhCw+8O3V882H6/oor5Z8mBmjb7HHAU="; - mypy-boto3-secretsmanager = buildMypyBoto3Package "secretsmanager" "1.34.72" "sha256-0HM8W1Potee9oA9LQu2ErxLjaiDISJF+ScFzoEIu8Dw="; + mypy-boto3-secretsmanager = + buildMypyBoto3Package "secretsmanager" "1.34.72" + "sha256-0HM8W1Potee9oA9LQu2ErxLjaiDISJF+ScFzoEIu8Dw="; - mypy-boto3-securityhub = buildMypyBoto3Package "securityhub" "1.34.76" "sha256-3Y3uF5b+Mr6YZu9YPM70fFCgkveIeD1BrNfYuuIjay4="; + mypy-boto3-securityhub = + buildMypyBoto3Package "securityhub" "1.34.76" + "sha256-3Y3uF5b+Mr6YZu9YPM70fFCgkveIeD1BrNfYuuIjay4="; - mypy-boto3-securitylake = buildMypyBoto3Package "securitylake" "1.34.53" "sha256-O/RHRoeUYT5DerEXIQ1NL288bcgA6bGdI29sN7WoQac="; + mypy-boto3-securitylake = + buildMypyBoto3Package "securitylake" "1.34.53" + "sha256-O/RHRoeUYT5DerEXIQ1NL288bcgA6bGdI29sN7WoQac="; - mypy-boto3-serverlessrepo = buildMypyBoto3Package "serverlessrepo" "1.34.0" "sha256-abWCJqFbD/AyPV+7hmY4OlsedFs+p8WpNSXG7hjrj3s="; + mypy-boto3-serverlessrepo = + buildMypyBoto3Package "serverlessrepo" "1.34.0" + "sha256-abWCJqFbD/AyPV+7hmY4OlsedFs+p8WpNSXG7hjrj3s="; - mypy-boto3-service-quotas = buildMypyBoto3Package "service-quotas" "1.34.0" "sha256-wWbm/udCn5Je1gJZ+uDJ4LE8NbQlq1yHVQc6eQ2umIw="; + mypy-boto3-service-quotas = + buildMypyBoto3Package "service-quotas" "1.34.0" + "sha256-wWbm/udCn5Je1gJZ+uDJ4LE8NbQlq1yHVQc6eQ2umIw="; - mypy-boto3-servicecatalog = buildMypyBoto3Package "servicecatalog" "1.34.13" "sha256-60XUP/uZDAkB0RaJgUD4wk+DknbsuygMnTmc3bKlr3U="; + mypy-boto3-servicecatalog = + buildMypyBoto3Package "servicecatalog" "1.34.13" + "sha256-60XUP/uZDAkB0RaJgUD4wk+DknbsuygMnTmc3bKlr3U="; - mypy-boto3-servicecatalog-appregistry = buildMypyBoto3Package "servicecatalog-appregistry" "1.34.0" "sha256-XYqa3aiC9pasmkMDXFmHKuK/PWwi6fZs/pt7rXuRFDw="; + mypy-boto3-servicecatalog-appregistry = + buildMypyBoto3Package "servicecatalog-appregistry" "1.34.0" + "sha256-XYqa3aiC9pasmkMDXFmHKuK/PWwi6fZs/pt7rXuRFDw="; - mypy-boto3-servicediscovery = buildMypyBoto3Package "servicediscovery" "1.34.0" "sha256-h9wTiaEakgBlrlwzUulqoEMWmVAKV/METiQppUC+FVI="; + mypy-boto3-servicediscovery = + buildMypyBoto3Package "servicediscovery" "1.34.0" + "sha256-h9wTiaEakgBlrlwzUulqoEMWmVAKV/METiQppUC+FVI="; - mypy-boto3-ses = buildMypyBoto3Package "ses" "1.34.0" "sha256-ieFDjZ8tTPM5wCRWFjNNUuDKOj8K4s4NH1SiJXxbnaQ="; + mypy-boto3-ses = + buildMypyBoto3Package "ses" "1.34.0" + "sha256-ieFDjZ8tTPM5wCRWFjNNUuDKOj8K4s4NH1SiJXxbnaQ="; - mypy-boto3-sesv2 = buildMypyBoto3Package "sesv2" "1.34.56" "sha256-xW5M8RMTSqRvRfbb3+zeL3i3tWO3w8+G9eMgbhI6K9I="; + mypy-boto3-sesv2 = + buildMypyBoto3Package "sesv2" "1.34.56" + "sha256-xW5M8RMTSqRvRfbb3+zeL3i3tWO3w8+G9eMgbhI6K9I="; - mypy-boto3-shield = buildMypyBoto3Package "shield" "1.34.0" "sha256-w0D4JKdlitCBIF3NaKn+POYch5CPGIiUZXqBoFzjzz4="; + mypy-boto3-shield = + buildMypyBoto3Package "shield" "1.34.0" + "sha256-w0D4JKdlitCBIF3NaKn+POYch5CPGIiUZXqBoFzjzz4="; - mypy-boto3-signer = buildMypyBoto3Package "signer" "1.34.0" "sha256-wR7ZQ8zTjuVPwMqQ7TR+93DWld9JU16rlt2X+z29xZI="; + mypy-boto3-signer = + buildMypyBoto3Package "signer" "1.34.0" + "sha256-wR7ZQ8zTjuVPwMqQ7TR+93DWld9JU16rlt2X+z29xZI="; - mypy-boto3-simspaceweaver = buildMypyBoto3Package "simspaceweaver" "1.34.0" "sha256-3J7s6FMRBcI7XaVoXjB3gSNI/Eh7TrE5ij8wRmagK/M="; + mypy-boto3-simspaceweaver = + buildMypyBoto3Package "simspaceweaver" "1.34.0" + "sha256-3J7s6FMRBcI7XaVoXjB3gSNI/Eh7TrE5ij8wRmagK/M="; - mypy-boto3-sms = buildMypyBoto3Package "sms" "1.34.0" "sha256-ktneEYqlmdhb386de2oQuDN5W4FLTxjWBmnZ0COVASA="; + mypy-boto3-sms = + buildMypyBoto3Package "sms" "1.34.0" + "sha256-ktneEYqlmdhb386de2oQuDN5W4FLTxjWBmnZ0COVASA="; - mypy-boto3-sms-voice = buildMypyBoto3Package "sms-voice" "1.34.0" "sha256-KaF8cWo+vin1YA63S6PDTpvjKWtz0Akl18yMVvhjdLo="; + mypy-boto3-sms-voice = + buildMypyBoto3Package "sms-voice" "1.34.0" + "sha256-KaF8cWo+vin1YA63S6PDTpvjKWtz0Akl18yMVvhjdLo="; - mypy-boto3-snow-device-management = buildMypyBoto3Package "snow-device-management" "1.34.0" "sha256-buPLN3Qu+asEf2qrv1Jvhu3gKN6aBrK55jB8IxPoFMs="; + mypy-boto3-snow-device-management = + buildMypyBoto3Package "snow-device-management" "1.34.0" + "sha256-buPLN3Qu+asEf2qrv1Jvhu3gKN6aBrK55jB8IxPoFMs="; - mypy-boto3-snowball = buildMypyBoto3Package "snowball" "1.34.58" "sha256-z60jinh1shgZv2Q4uW2eFphJXRC0ONVN5bPE1UBgC9Y="; + mypy-boto3-snowball = + buildMypyBoto3Package "snowball" "1.34.58" + "sha256-z60jinh1shgZv2Q4uW2eFphJXRC0ONVN5bPE1UBgC9Y="; - mypy-boto3-sns = buildMypyBoto3Package "sns" "1.34.44" "sha256-qYW1KB0AoVbdfJCT5YE8EMTqa5Hy67cVZ/57t7IQplI="; + mypy-boto3-sns = + buildMypyBoto3Package "sns" "1.34.44" + "sha256-qYW1KB0AoVbdfJCT5YE8EMTqa5Hy67cVZ/57t7IQplI="; - mypy-boto3-sqs = buildMypyBoto3Package "sqs" "1.34.0" "sha256-C/iZX1iRmrKVOYEA5y6qfaiYrc/Z0zmkLzxIzkc0GdU="; + mypy-boto3-sqs = + buildMypyBoto3Package "sqs" "1.34.0" + "sha256-C/iZX1iRmrKVOYEA5y6qfaiYrc/Z0zmkLzxIzkc0GdU="; - mypy-boto3-ssm = buildMypyBoto3Package "ssm" "1.34.61" "sha256-TLyZ9CtpE8U2xsxBwC0/Flkg0ee6u5uxd4K0EFVs3gA="; + mypy-boto3-ssm = + buildMypyBoto3Package "ssm" "1.34.61" + "sha256-TLyZ9CtpE8U2xsxBwC0/Flkg0ee6u5uxd4K0EFVs3gA="; - mypy-boto3-ssm-contacts = buildMypyBoto3Package "ssm-contacts" "1.34.0" "sha256-wkKPGLm24/zgMKitcF9ZaPt/W4m+yHerR1wbEqJALBM="; + mypy-boto3-ssm-contacts = + buildMypyBoto3Package "ssm-contacts" "1.34.0" + "sha256-wkKPGLm24/zgMKitcF9ZaPt/W4m+yHerR1wbEqJALBM="; - mypy-boto3-ssm-incidents = buildMypyBoto3Package "ssm-incidents" "1.34.0" "sha256-OB5/E5ZArGtLZ/UaVjDEnzoH4J4vEFehULG8RKCB6gg="; + mypy-boto3-ssm-incidents = + buildMypyBoto3Package "ssm-incidents" "1.34.0" + "sha256-OB5/E5ZArGtLZ/UaVjDEnzoH4J4vEFehULG8RKCB6gg="; - mypy-boto3-ssm-sap = buildMypyBoto3Package "ssm-sap" "1.34.0" "sha256-Sz3inwP5mRKJdFqrf5FYmTp6M9o8J/S4H6k/7SMq25E="; + mypy-boto3-ssm-sap = + buildMypyBoto3Package "ssm-sap" "1.34.0" + "sha256-Sz3inwP5mRKJdFqrf5FYmTp6M9o8J/S4H6k/7SMq25E="; - mypy-boto3-sso = buildMypyBoto3Package "sso" "1.34.0" "sha256-Iu1KwyWW8DjFJcV46L50gK/G8p2nAqxzzjgBAVTX6nU="; + mypy-boto3-sso = + buildMypyBoto3Package "sso" "1.34.0" + "sha256-Iu1KwyWW8DjFJcV46L50gK/G8p2nAqxzzjgBAVTX6nU="; - mypy-boto3-sso-admin = buildMypyBoto3Package "sso-admin" "1.34.0" "sha256-befPkyehC4AKxMotvRzyfZpkqlpkfpI2OKVSw4IFnjo="; + mypy-boto3-sso-admin = + buildMypyBoto3Package "sso-admin" "1.34.0" + "sha256-befPkyehC4AKxMotvRzyfZpkqlpkfpI2OKVSw4IFnjo="; - mypy-boto3-sso-oidc = buildMypyBoto3Package "sso-oidc" "1.34.0" "sha256-uDHRoc7H3vtM/KYSeH95PdibjiEq/pSSJFcm5kgMMAg="; + mypy-boto3-sso-oidc = + buildMypyBoto3Package "sso-oidc" "1.34.0" + "sha256-uDHRoc7H3vtM/KYSeH95PdibjiEq/pSSJFcm5kgMMAg="; - mypy-boto3-stepfunctions = buildMypyBoto3Package "stepfunctions" "1.34.0" "sha256-BtIpbO51DRfLYhcUIO6kYU8g8pvkXuNhhU+LWZpugRA="; + mypy-boto3-stepfunctions = + buildMypyBoto3Package "stepfunctions" "1.34.0" + "sha256-BtIpbO51DRfLYhcUIO6kYU8g8pvkXuNhhU+LWZpugRA="; - mypy-boto3-storagegateway = buildMypyBoto3Package "storagegateway" "1.34.27" "sha256-iKn048AdvM6XSOqT/w6edWoe0VMi3V305oHMth/QkF0="; + mypy-boto3-storagegateway = + buildMypyBoto3Package "storagegateway" "1.34.27" + "sha256-iKn048AdvM6XSOqT/w6edWoe0VMi3V305oHMth/QkF0="; - mypy-boto3-sts = buildMypyBoto3Package "sts" "1.34.0" "sha256-s0fgozbWAWLdlAdNnRD2FPKwmkVcm0JBWFDVTWduIGc="; + mypy-boto3-sts = + buildMypyBoto3Package "sts" "1.34.0" + "sha256-s0fgozbWAWLdlAdNnRD2FPKwmkVcm0JBWFDVTWduIGc="; - mypy-boto3-support = buildMypyBoto3Package "support" "1.34.0" "sha256-3y+uFRJKahLAPoG9gqxK8gqZKJ+OL1Rom/dr/zWIq+k="; + mypy-boto3-support = + buildMypyBoto3Package "support" "1.34.0" + "sha256-3y+uFRJKahLAPoG9gqxK8gqZKJ+OL1Rom/dr/zWIq+k="; - mypy-boto3-support-app = buildMypyBoto3Package "support-app" "1.34.0" "sha256-/aYEPAnGgAPB6Tnh5jwYASbP2kVJth+3ZxcMCYgo9n0="; + mypy-boto3-support-app = + buildMypyBoto3Package "support-app" "1.34.0" + "sha256-/aYEPAnGgAPB6Tnh5jwYASbP2kVJth+3ZxcMCYgo9n0="; - mypy-boto3-swf = buildMypyBoto3Package "swf" "1.34.0" "sha256-T8QYHzRjjQyLGqSwc7J6hPXqpeoeCUvlpHbXwnT99rQ="; + mypy-boto3-swf = + buildMypyBoto3Package "swf" "1.34.0" + "sha256-T8QYHzRjjQyLGqSwc7J6hPXqpeoeCUvlpHbXwnT99rQ="; - mypy-boto3-synthetics = buildMypyBoto3Package "synthetics" "1.34.0" "sha256-gGEu4vQ5T1gSLM33V8Ouj+ZlPQIoY+RRbUz7nvD7PbY="; + mypy-boto3-synthetics = + buildMypyBoto3Package "synthetics" "1.34.0" + "sha256-gGEu4vQ5T1gSLM33V8Ouj+ZlPQIoY+RRbUz7nvD7PbY="; - mypy-boto3-textract = buildMypyBoto3Package "textract" "1.34.0" "sha256-AeukQ85jOCNpUxfnedEyacm/bK6pFA32tmhQrieLoMo="; + mypy-boto3-textract = + buildMypyBoto3Package "textract" "1.34.0" + "sha256-AeukQ85jOCNpUxfnedEyacm/bK6pFA32tmhQrieLoMo="; - mypy-boto3-timestream-query = buildMypyBoto3Package "timestream-query" "1.34.65" "sha256-RSGOulFIOZi/9Z5grP/Zv0A5fy3MJTzph+D9a45MkHA="; + mypy-boto3-timestream-query = + buildMypyBoto3Package "timestream-query" "1.34.65" + "sha256-RSGOulFIOZi/9Z5grP/Zv0A5fy3MJTzph+D9a45MkHA="; - mypy-boto3-timestream-write = buildMypyBoto3Package "timestream-write" "1.34.0" "sha256-fKi5nIyU5BffflHVh21HjcuYE+RXDiq0gXbFOKOAYPE="; + mypy-boto3-timestream-write = + buildMypyBoto3Package "timestream-write" "1.34.0" + "sha256-fKi5nIyU5BffflHVh21HjcuYE+RXDiq0gXbFOKOAYPE="; - mypy-boto3-tnb = buildMypyBoto3Package "tnb" "1.34.0" "sha256-32Pcqs7DamX+sZt3pDF+gCjnAs8JhtJm9+Jl0agIuOA="; + mypy-boto3-tnb = + buildMypyBoto3Package "tnb" "1.34.0" + "sha256-32Pcqs7DamX+sZt3pDF+gCjnAs8JhtJm9+Jl0agIuOA="; - mypy-boto3-transcribe = buildMypyBoto3Package "transcribe" "1.34.0" "sha256-cKiJ306Y96xLHB7vX46uaw145BPLK/1g3OrMIMB0pPo="; + mypy-boto3-transcribe = + buildMypyBoto3Package "transcribe" "1.34.0" + "sha256-cKiJ306Y96xLHB7vX46uaw145BPLK/1g3OrMIMB0pPo="; - mypy-boto3-transfer = buildMypyBoto3Package "transfer" "1.34.77" "sha256-fqta7EJ7rP8dIKJTG8sJCYCNmcqqNljqf9jyk0j6feA="; + mypy-boto3-transfer = + buildMypyBoto3Package "transfer" "1.34.77" + "sha256-fqta7EJ7rP8dIKJTG8sJCYCNmcqqNljqf9jyk0j6feA="; - mypy-boto3-translate = buildMypyBoto3Package "translate" "1.34.0" "sha256-4tjjmwMtIPpMwKZ3yqB96XEb1WidCxMIj2Cfjn0nTy8="; + mypy-boto3-translate = + buildMypyBoto3Package "translate" "1.34.0" + "sha256-4tjjmwMtIPpMwKZ3yqB96XEb1WidCxMIj2Cfjn0nTy8="; - mypy-boto3-verifiedpermissions = buildMypyBoto3Package "verifiedpermissions" "1.34.79" "sha256-su6Lq/NVOp2Shgb6UPdrJLqAv9qG8Mx3bQk9PwihybM="; + mypy-boto3-verifiedpermissions = + buildMypyBoto3Package "verifiedpermissions" "1.34.79" + "sha256-su6Lq/NVOp2Shgb6UPdrJLqAv9qG8Mx3bQk9PwihybM="; - mypy-boto3-voice-id = buildMypyBoto3Package "voice-id" "1.34.0" "sha256-c6HseKIqRPs8NmFZYsg+9jWCMGpMi+VpvM9BiWq16PY="; + mypy-boto3-voice-id = + buildMypyBoto3Package "voice-id" "1.34.0" + "sha256-c6HseKIqRPs8NmFZYsg+9jWCMGpMi+VpvM9BiWq16PY="; - mypy-boto3-vpc-lattice = buildMypyBoto3Package "vpc-lattice" "1.34.0" "sha256-zyqcDplqAYFrUjrz28SHrIemPSTzvfUb7x6CXxXCTNc="; + mypy-boto3-vpc-lattice = + buildMypyBoto3Package "vpc-lattice" "1.34.0" + "sha256-zyqcDplqAYFrUjrz28SHrIemPSTzvfUb7x6CXxXCTNc="; - mypy-boto3-waf = buildMypyBoto3Package "waf" "1.34.0" "sha256-TVOBwTITXBYFoGvXULoi8OL7OJXZKJbCpZPaZ5siWXk="; + mypy-boto3-waf = + buildMypyBoto3Package "waf" "1.34.0" + "sha256-TVOBwTITXBYFoGvXULoi8OL7OJXZKJbCpZPaZ5siWXk="; - mypy-boto3-waf-regional = buildMypyBoto3Package "waf-regional" "1.34.0" "sha256-zv/IPDU6lqmmIfTq57d7VH3SyA7UkgWW2Hysk2zamcM="; + mypy-boto3-waf-regional = + buildMypyBoto3Package "waf-regional" "1.34.0" + "sha256-zv/IPDU6lqmmIfTq57d7VH3SyA7UkgWW2Hysk2zamcM="; - mypy-boto3-wafv2 = buildMypyBoto3Package "wafv2" "1.34.58" "sha256-gPNY3XJr/50nejQFzti9igktryZHsgQDiB9BOYnT94I="; + mypy-boto3-wafv2 = + buildMypyBoto3Package "wafv2" "1.34.58" + "sha256-gPNY3XJr/50nejQFzti9igktryZHsgQDiB9BOYnT94I="; - mypy-boto3-wellarchitected = buildMypyBoto3Package "wellarchitected" "1.34.0" "sha256-tzXpOWC6/WJ+/wUgwYtgI7scq7wRpACW8q1z9RwyhbA="; + mypy-boto3-wellarchitected = + buildMypyBoto3Package "wellarchitected" "1.34.0" + "sha256-tzXpOWC6/WJ+/wUgwYtgI7scq7wRpACW8q1z9RwyhbA="; - mypy-boto3-wisdom = buildMypyBoto3Package "wisdom" "1.34.16" "sha256-VhRrQLqmrHn/uWI6lWFJ27hiSmZbW1y+VE2Uf8ssrOw="; + mypy-boto3-wisdom = + buildMypyBoto3Package "wisdom" "1.34.16" + "sha256-VhRrQLqmrHn/uWI6lWFJ27hiSmZbW1y+VE2Uf8ssrOw="; - mypy-boto3-workdocs = buildMypyBoto3Package "workdocs" "1.34.0" "sha256-96V+xgJ+DvqA4A7teCEpVVirlTVxCehXzNcPWUojPH4="; + mypy-boto3-workdocs = + buildMypyBoto3Package "workdocs" "1.34.0" + "sha256-96V+xgJ+DvqA4A7teCEpVVirlTVxCehXzNcPWUojPH4="; - mypy-boto3-worklink = buildMypyBoto3Package "worklink" "1.34.0" "sha256-dEWnbAtuUH14ojkOdeQvPvnVYZYxEsPvXuamyil2AHE="; + mypy-boto3-worklink = + buildMypyBoto3Package "worklink" "1.34.0" + "sha256-dEWnbAtuUH14ojkOdeQvPvnVYZYxEsPvXuamyil2AHE="; - mypy-boto3-workmail = buildMypyBoto3Package "workmail" "1.34.0" "sha256-D0gfIW2sbxQ/JOi5f9S6/KezsEKz4239srdL8EfFjG8="; + mypy-boto3-workmail = + buildMypyBoto3Package "workmail" "1.34.0" + "sha256-D0gfIW2sbxQ/JOi5f9S6/KezsEKz4239srdL8EfFjG8="; - mypy-boto3-workmailmessageflow = buildMypyBoto3Package "workmailmessageflow" "1.34.0" "sha256-e4wgFvtlfx0u6eGphRU7viGzZ4gbZijj4vjziPLPWX8="; + mypy-boto3-workmailmessageflow = + buildMypyBoto3Package "workmailmessageflow" "1.34.0" + "sha256-e4wgFvtlfx0u6eGphRU7viGzZ4gbZijj4vjziPLPWX8="; - mypy-boto3-workspaces = buildMypyBoto3Package "workspaces" "1.34.58" "sha256-EtAL93MtIZppL57xP4JDGoWT/SqgptRgCJyq/3bm9ts="; + mypy-boto3-workspaces = + buildMypyBoto3Package "workspaces" "1.34.58" + "sha256-EtAL93MtIZppL57xP4JDGoWT/SqgptRgCJyq/3bm9ts="; - mypy-boto3-workspaces-web = buildMypyBoto3Package "workspaces-web" "1.34.0" "sha256-RImlbT5Lpu2IoTrEQv5Bzk3NnkMV9jQjHGDnxCK3x18="; - - mypy-boto3-xray = buildMypyBoto3Package "xray" "1.34.0" "sha256-8weFeYAit/DBFOhReQr5uSy0Am7Sh1fpYtMPtDka+OI="; + mypy-boto3-workspaces-web = + buildMypyBoto3Package "workspaces-web" "1.34.0" + "sha256-RImlbT5Lpu2IoTrEQv5Bzk3NnkMV9jQjHGDnxCK3x18="; + mypy-boto3-xray = + buildMypyBoto3Package "xray" "1.34.0" + "sha256-8weFeYAit/DBFOhReQr5uSy0Am7Sh1fpYtMPtDka+OI="; } diff --git a/pkgs/development/python-modules/mypy/default.nix b/pkgs/development/python-modules/mypy/default.nix index c94b83bbb4fb..8d55e3009416 100644 --- a/pkgs/development/python-modules/mypy/default.nix +++ b/pkgs/development/python-modules/mypy/default.nix @@ -1,30 +1,31 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, -# build-system -, setuptools -, types-psutil -, types-setuptools -, wheel + # build-system + setuptools, + types-psutil, + types-setuptools, + wheel, -# propagates -, mypy-extensions -, tomli -, typing-extensions + # propagates + mypy-extensions, + tomli, + typing-extensions, -# optionals -, lxml -, psutil + # optionals + lxml, + psutil, -# tests -, attrs -, filelock -, pytest-xdist -, pytestCheckHook + # tests + attrs, + filelock, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -48,24 +49,16 @@ buildPythonPackage rec { types-setuptools typing-extensions wheel - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; dependencies = [ mypy-extensions typing-extensions - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; optional-dependencies = { - dmypy = [ - psutil - ]; - reports = [ - lxml - ]; + dmypy = [ psutil ]; + reports = [ lxml ]; }; # Compile mypy with mypyc, which makes mypy about 4 times faster. The compiled @@ -76,17 +69,19 @@ buildPythonPackage rec { # when testing reduce optimisation level to reduce build time by 20% env.MYPYC_OPT_LEVEL = 1; - pythonImportsCheck = [ - "mypy" - "mypy.api" - "mypy.fastparse" - "mypy.types" - "mypyc" - "mypyc.analysis" - ] ++ lib.optionals (!stdenv.hostPlatform.isi686) [ - # ImportError: cannot import name 'map_instance_to_supertype' from partially initialized module 'mypy.maptype' (most likely due to a circular import) - "mypy.report" - ]; + pythonImportsCheck = + [ + "mypy" + "mypy.api" + "mypy.fastparse" + "mypy.types" + "mypyc" + "mypyc.analysis" + ] + ++ lib.optionals (!stdenv.hostPlatform.isi686) [ + # ImportError: cannot import name 'map_instance_to_supertype' from partially initialized module 'mypy.maptype' (most likely due to a circular import) + "mypy.report" + ]; nativeCheckInputs = [ attrs @@ -97,27 +92,31 @@ buildPythonPackage rec { tomli ] ++ lib.flatten (lib.attrValues optional-dependencies); - disabledTests = [ - # fails with typing-extensions>=4.10 - # https://github.com/python/mypy/issues/17005 - "test_runtime_typing_objects" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # requires distutils - "test_c_unit_test" - ]; + disabledTests = + [ + # fails with typing-extensions>=4.10 + # https://github.com/python/mypy/issues/17005 + "test_runtime_typing_objects" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # requires distutils + "test_c_unit_test" + ]; - disabledTestPaths = [ - # fails to find tyoing_extensions - "mypy/test/testcmdline.py" - "mypy/test/testdaemon.py" - # fails to find setuptools - "mypyc/test/test_commandline.py" - # fails to find hatchling - "mypy/test/testpep561.py" - ] ++ lib.optionals stdenv.hostPlatform.isi686 [ - # https://github.com/python/mypy/issues/15221 - "mypyc/test/test_run.py" - ]; + disabledTestPaths = + [ + # fails to find tyoing_extensions + "mypy/test/testcmdline.py" + "mypy/test/testdaemon.py" + # fails to find setuptools + "mypyc/test/test_commandline.py" + # fails to find hatchling + "mypy/test/testpep561.py" + ] + ++ lib.optionals stdenv.hostPlatform.isi686 [ + # https://github.com/python/mypy/issues/15221 + "mypyc/test/test_run.py" + ]; meta = with lib; { description = "Optional static typing for Python"; diff --git a/pkgs/development/python-modules/mypy/extensions.nix b/pkgs/development/python-modules/mypy/extensions.nix index e8622b84eb7c..3282a6b6e863 100644 --- a/pkgs/development/python-modules/mypy/extensions.nix +++ b/pkgs/development/python-modules/mypy/extensions.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, typing -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + typing, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing; # make the testsuite run with pytest, so we can disable individual tests - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/testextensions.py" - ]; + pytestFlagsArray = [ "tests/testextensions.py" ]; disabledTests = lib.optionals (pythonAtLeast "3.11") [ # https://github.com/python/mypy_extensions/issues/24 "test_typeddict_errors" ]; - pythonImportsCheck = [ - "mypy_extensions" - ]; + pythonImportsCheck = [ "mypy_extensions" ]; meta = with lib; { description = "Experimental type system extensions for programs checked with the mypy typechecker"; diff --git a/pkgs/development/python-modules/mysql-connector/default.nix b/pkgs/development/python-modules/mysql-connector/default.nix index 575c438eb551..57db1206a8fb 100644 --- a/pkgs/development/python-modules/mysql-connector/default.nix +++ b/pkgs/development/python-modules/mysql-connector/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, lib -, buildPythonPackage -, django -, dnspython -, fetchFromGitHub -, protobuf -, pythonOlder -, mysql80 -, openssl -, pkgs +{ + stdenv, + lib, + buildPythonPackage, + django, + dnspython, + fetchFromGitHub, + protobuf, + pythonOlder, + mysql80, + openssl, + pkgs, }: buildPythonPackage rec { @@ -41,10 +42,7 @@ buildPythonPackage rec { ./0001-Revert-Fix-MacOS-wheels-platform-tag.patch ]; - nativeBuildInputs = [ - mysql80 - ]; - + nativeBuildInputs = [ mysql80 ]; propagatedBuildInputs = [ dnspython @@ -54,9 +52,7 @@ buildPythonPackage rec { pkgs.zstd ]; - pythonImportsCheck = [ - "mysql" - ]; + pythonImportsCheck = [ "mysql" ]; # Tests require a running MySQL instance doCheck = false; @@ -70,6 +66,9 @@ buildPythonPackage rec { homepage = "https://github.com/mysql/mysql-connector-python"; changelog = "https://raw.githubusercontent.com/mysql/mysql-connector-python/${version}/CHANGES.txt"; license = licenses.gpl2Only; - maintainers = with maintainers; [ neosimsim turion ]; + maintainers = with maintainers; [ + neosimsim + turion + ]; }; } diff --git a/pkgs/development/python-modules/mysqlclient/default.nix b/pkgs/development/python-modules/mysqlclient/default.nix index e27ee3f7c7be..e15e7545b75b 100644 --- a/pkgs/development/python-modules/mysqlclient/default.nix +++ b/pkgs/development/python-modules/mysqlclient/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, libmysqlclient -, pkg-config +{ + lib, + buildPythonPackage, + fetchPypi, + libmysqlclient, + pkg-config, }: buildPythonPackage rec { @@ -10,13 +11,9 @@ buildPythonPackage rec { version = "2.2.4"; format = "setuptools"; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - libmysqlclient - ]; + buildInputs = [ libmysqlclient ]; # Tests need a MySQL database doCheck = false; diff --git a/pkgs/development/python-modules/myst-docutils/default.nix b/pkgs/development/python-modules/myst-docutils/default.nix index 8fa7ddd6e934..d4feaa4d0db3 100644 --- a/pkgs/development/python-modules/myst-docutils/default.nix +++ b/pkgs/development/python-modules/myst-docutils/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, docutils -, fetchPypi -, flit-core -, jinja2 -, markdown-it-py -, mdit-py-plugins -, pythonOlder -, pyyaml -, typing-extensions +{ + lib, + buildPythonPackage, + docutils, + fetchPypi, + flit-core, + jinja2, + markdown-it-py, + mdit-py-plugins, + pythonOlder, + pyyaml, + typing-extensions, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-alQvF0OWNjDck022ORJ1Nl4t1jgzMZKEbJxPHsrmBcI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ docutils diff --git a/pkgs/development/python-modules/myst-nb/default.nix b/pkgs/development/python-modules/myst-nb/default.nix index 8f23ad5dee84..d1729c67f9dd 100644 --- a/pkgs/development/python-modules/myst-nb/default.nix +++ b/pkgs/development/python-modules/myst-nb/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, importlib-metadata -, ipython -, jupyter-cache -, nbclient -, myst-parser -, nbformat -, pyyaml -, sphinx -, sphinx-togglebutton -, typing-extensions -, ipykernel +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + importlib-metadata, + ipython, + jupyter-cache, + nbclient, + myst-parser, + nbformat, + pyyaml, + sphinx, + sphinx-togglebutton, + typing-extensions, + ipykernel, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-kniEDoRPXXgLWsxUAMv2PZfKrM+OtEKlXr2aA+JSLV4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ importlib-metadata diff --git a/pkgs/development/python-modules/myst-parser/default.nix b/pkgs/development/python-modules/myst-parser/default.nix index 12ddb2ec769e..bbf92943bf53 100644 --- a/pkgs/development/python-modules/myst-parser/default.nix +++ b/pkgs/development/python-modules/myst-parser/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, flit-core -, pythonOlder -, defusedxml -, docutils -, jinja2 -, markdown-it-py -, mdit-py-plugins -, pyyaml -, sphinx -, typing-extensions -, beautifulsoup4 -, pytest-param-files -, pytest-regressions -, sphinx-pytest -, pytestCheckHook -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + flit-core, + pythonOlder, + defusedxml, + docutils, + jinja2, + markdown-it-py, + mdit-py-plugins, + pyyaml, + sphinx, + typing-extensions, + beautifulsoup4, + pytest-param-files, + pytest-regressions, + sphinx-pytest, + pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -66,13 +67,9 @@ buildPythonPackage rec { pytestCheckHook ] ++ markdown-it-py.optional-dependencies.linkify; - pythonImportsCheck = [ - "myst_parser" - ]; + pythonImportsCheck = [ "myst_parser" ]; - pythonRelaxDeps = [ - "docutils" - ]; + pythonRelaxDeps = [ "docutils" ]; disabledTests = [ # AssertionError due to different files diff --git a/pkgs/development/python-modules/n3fit/default.nix b/pkgs/development/python-modules/n3fit/default.nix index 5c8b06b74a65..01c56659465c 100644 --- a/pkgs/development/python-modules/n3fit/default.nix +++ b/pkgs/development/python-modules/n3fit/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, hyperopt -, keras -, nnpdf -, psutil -, tensorflow -, validphys2 +{ + lib, + buildPythonPackage, + hyperopt, + keras, + nnpdf, + psutil, + tensorflow, + validphys2, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nad-receiver/default.nix b/pkgs/development/python-modules/nad-receiver/default.nix index a53ff6f84f22..1eb1000f0259 100644 --- a/pkgs/development/python-modules/nad-receiver/default.nix +++ b/pkgs/development/python-modules/nad-receiver/default.nix @@ -1,8 +1,9 @@ -{ lib -, pyserial -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + pyserial, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-jRMk/yMA48ei+g/33+mMYwfwixaKTMYcU/z/VOoJbvY="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "nad_receiver" ]; diff --git a/pkgs/development/python-modules/nagiosplugin/default.nix b/pkgs/development/python-modules/nagiosplugin/default.nix index a7e7b016577d..4ba887fb71d7 100644 --- a/pkgs/development/python-modules/nagiosplugin/default.nix +++ b/pkgs/development/python-modules/nagiosplugin/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pytestCheckHook -, pythonOlder -, twine +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pytestCheckHook, + pythonOlder, + twine, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-vOr67DWfAyOT3dVgrizI0WNhODPsY8k85xifhZBOU9Y="; }; - nativeBuildInputs = [ - twine - ]; + nativeBuildInputs = [ twine ]; nativeCheckInputs = [ numpy @@ -33,9 +32,7 @@ buildPythonPackage rec { "test_check_users" ]; - pythonImportsCheck = [ - "nagiosplugin" - ]; + pythonImportsCheck = [ "nagiosplugin" ]; meta = with lib; { description = "Python class library which helps with writing Nagios (Icinga) compatible plugins"; diff --git a/pkgs/development/python-modules/naked/default.nix b/pkgs/development/python-modules/naked/default.nix index 7a37d66861aa..9314aab277b7 100644 --- a/pkgs/development/python-modules/naked/default.nix +++ b/pkgs/development/python-modules/naked/default.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, requests -, pyyaml -, setuptools -, wheel -, nodejs -, ruby -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + lib, + requests, + pyyaml, + setuptools, + wheel, + nodejs, + ruby, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,16 +29,23 @@ buildPythonPackage rec { --replace /Users/ces/Desktop/code/naked /build/source ''; - nativeBuildInputs = [ wheel setuptools ]; + nativeBuildInputs = [ + wheel + setuptools + ]; propagatedBuildInputs = [ requests pyyaml ]; - nativeCheckInputs = [ pytestCheckHook nodejs ruby ]; + nativeCheckInputs = [ + pytestCheckHook + nodejs + ruby + ]; - preCheck ='' + preCheck = '' cd tests PATH=$PATH:$out/bin diff --git a/pkgs/development/python-modules/name-that-hash/default.nix b/pkgs/development/python-modules/name-that-hash/default.nix index e68764b13ff7..ae094b0a142c 100644 --- a/pkgs/development/python-modules/name-that-hash/default.nix +++ b/pkgs/development/python-modules/name-that-hash/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, click -, rich +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + click, + rich, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { substituteInPlace pyproject.toml --replace 'rich = ">=9.9,<11.0"' 'rich = ">=9.9"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/namedlist/default.nix b/pkgs/development/python-modules/namedlist/default.nix index 86d5a9f5b3b2..f4ddbb7dd7ab 100644 --- a/pkgs/development/python-modules/namedlist/default.nix +++ b/pkgs/development/python-modules/namedlist/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-NPifyZJZLICzmnCeE27c9B6hfyS6Mer4SjFKAsi5vO8="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; patches = [ # Deprecation warning using collections.abc, https://gitlab.com/ericvsmith/namedlist/-/merge_requests/1 @@ -36,9 +35,7 @@ buildPythonPackage rec { substituteInPlace test/test_namedlist.py --replace "unittest.main()" "" ''; - pythonImportsCheck = [ - "namedlist" - ]; + pythonImportsCheck = [ "namedlist" ]; disabledTests = [ # AttributeError: module 'collections' has no attribute 'Container' diff --git a/pkgs/development/python-modules/nameko/default.nix b/pkgs/development/python-modules/nameko/default.nix index 93bc03bcde95..556ab2bcab0a 100644 --- a/pkgs/development/python-modules/nameko/default.nix +++ b/pkgs/development/python-modules/nameko/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# install_requires -, dnspython -, eventlet -, kombu -, mock -, packaging -, path -, pyyaml -, requests -, setuptools -, six -, werkzeug -, wrapt + # install_requires + dnspython, + eventlet, + kombu, + mock, + packaging, + path, + pyyaml, + requests, + setuptools, + six, + werkzeug, + wrapt, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "path.py" "path" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dnspython @@ -57,9 +56,7 @@ buildPythonPackage rec { # and most of the tests are network based doCheck = false; - pythonImportsCheck = [ - "nameko" - ]; + pythonImportsCheck = [ "nameko" ]; meta = with lib; { description = "A microservices framework that lets service developers concentrate on application logic and encourages testability"; diff --git a/pkgs/development/python-modules/nameparser/default.nix b/pkgs/development/python-modules/nameparser/default.nix index 370a5300a04e..daafd9190c16 100644 --- a/pkgs/development/python-modules/nameparser/default.nix +++ b/pkgs/development/python-modules/nameparser/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-qiQArXHM+AcGdbQDEaJXyTRln5GFSxVOG6bCZHYcBJ0="; }; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "nameparser" - ]; + pythonImportsCheck = [ "nameparser" ]; meta = with lib; { description = "Module for parsing human names into their individual components"; diff --git a/pkgs/development/python-modules/names/default.nix b/pkgs/development/python-modules/names/default.nix index 3661e7f0d119..c4648e171a72 100644 --- a/pkgs/development/python-modules/names/default.nix +++ b/pkgs/development/python-modules/names/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, -# pythonPackages -, pytest + # pythonPackages + pytest, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "0jfn11bl05k3qkqw0f4vi2i2lhllxdrbb1732qiisdy9fbvv8611"; }; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' pytest @@ -31,8 +30,6 @@ buildPythonPackage rec { mainProgram = "names"; homepage = "https://github.com/treyhunner/names"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ - kamadorueda - ]; + maintainers = with lib.maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/nampa/default.nix b/pkgs/development/python-modules/nampa/default.nix index abeedb716ad5..cc31702c94aa 100644 --- a/pkgs/development/python-modules/nampa/default.nix +++ b/pkgs/development/python-modules/nampa/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,20 +27,14 @@ buildPythonPackage rec { --replace "0.1.1" "${version}" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - future - ]; + dependencies = [ future ]; # Not used for binaryninja as plugin doCheck = false; - pythonImportsCheck = [ - "nampa" - ]; + pythonImportsCheck = [ "nampa" ]; meta = with lib; { description = "Python implementation of the FLIRT technology"; diff --git a/pkgs/development/python-modules/nanoid/default.nix b/pkgs/development/python-modules/nanoid/default.nix index 5054756a3092..7bd738b25313 100644 --- a/pkgs/development/python-modules/nanoid/default.nix +++ b/pkgs/development/python-modules/nanoid/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { doCheck = false; # tests not in sdist, git not tagged - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nanoid" - ]; + pythonImportsCheck = [ "nanoid" ]; meta = with lib; { description = "A tiny, secure, URL-friendly, unique string ID generator for Python"; diff --git a/pkgs/development/python-modules/napalm/default.nix b/pkgs/development/python-modules/napalm/default.nix index 2c3f2b76f0ae..bfd35c2fd099 100644 --- a/pkgs/development/python-modules/napalm/default.nix +++ b/pkgs/development/python-modules/napalm/default.nix @@ -1,36 +1,37 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools -, cffi + # build-system + setuptools, + cffi, -# dependencies -, future -, jinja2 -, junos-eznc -, lxml -, ncclient -, netaddr -, netmiko -, netutils -, paramiko -, pyeapi -, pyyaml -, requests -, scp -, textfsm -, ttp -, ttp-templates -, typing-extensions + # dependencies + future, + jinja2, + junos-eznc, + lxml, + ncclient, + netaddr, + netmiko, + netutils, + paramiko, + pyeapi, + pyyaml, + requests, + scp, + textfsm, + ttp, + ttp-templates, + typing-extensions, -# tests -, pytestCheckHook -, ddt -, mock - }: + # tests + pytestCheckHook, + ddt, + mock, +}: buildPythonPackage rec { pname = "napalm"; @@ -46,9 +47,7 @@ buildPythonPackage rec { hash = "sha256-Abw3h69qTFwOOFeAfivqAIWLozErJ1yZZfx7CbMy1AI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cffi @@ -72,11 +71,14 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ pytestCheckHook mock ddt ]; + nativeCheckInputs = [ + pytestCheckHook + mock + ddt + ]; meta = with lib; { - description = - "Network Automation and Programmability Abstraction Layer with Multivendor support"; + description = "Network Automation and Programmability Abstraction Layer with Multivendor support"; homepage = "https://github.com/napalm-automation/napalm"; license = licenses.asl20; maintainers = with maintainers; [ ] ++ teams.c3d2.members; diff --git a/pkgs/development/python-modules/napalm/hp-procurve.nix b/pkgs/development/python-modules/napalm/hp-procurve.nix index 6402005bed6e..e7492f0f55ff 100644 --- a/pkgs/development/python-modules/napalm/hp-procurve.nix +++ b/pkgs/development/python-modules/napalm/hp-procurve.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, napalm -, netmiko -, pip -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + napalm, + netmiko, + pip, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,21 +30,13 @@ buildPythonPackage rec { --replace "--cov=napalm_procurve --cov-report term-missing -vs --pylama" "" ''; - nativeBuildInputs = [ - pip - ]; + nativeBuildInputs = [ pip ]; - buildInputs = [ - napalm - ]; + buildInputs = [ napalm ]; - propagatedBuildInputs = [ - netmiko - ]; + propagatedBuildInputs = [ netmiko ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # AssertionError: Some methods vary. @@ -55,9 +48,7 @@ buildPythonPackage rec { "test_get_facts" ]; - pythonImportsCheck = [ - "napalm_procurve" - ]; + pythonImportsCheck = [ "napalm_procurve" ]; meta = with lib; { description = "HP ProCurve Driver for NAPALM automation frontend"; diff --git a/pkgs/development/python-modules/napari-npe2/default.nix b/pkgs/development/python-modules/napari-npe2/default.nix index 298a333f3206..1affda693c99 100644 --- a/pkgs/development/python-modules/napari-npe2/default.nix +++ b/pkgs/development/python-modules/napari-npe2/default.nix @@ -1,19 +1,20 @@ -{ lib -, appdirs -, build -, buildPythonPackage -, fetchFromGitHub -, hatchling -, hatch-vcs -, magicgui -, napari # reverse dependency, for tests -, pydantic -, pythonOlder -, pytomlpp -, pyyaml -, rich -, typer -, tomli-w +{ + lib, + appdirs, + build, + buildPythonPackage, + fetchFromGitHub, + hatchling, + hatch-vcs, + magicgui, + napari, # reverse dependency, for tests + pydantic, + pythonOlder, + pytomlpp, + pyyaml, + rich, + typer, + tomli-w, }: buildPythonPackage rec { @@ -50,11 +51,11 @@ buildPythonPackage rec { tomli-w ]; - pythonImportsCheck = [ - "npe2" - ]; + pythonImportsCheck = [ "npe2" ]; - passthru.tests = { inherit napari; }; + passthru.tests = { + inherit napari; + }; meta = with lib; { description = "Plugin system for napari (the image visualizer)"; diff --git a/pkgs/development/python-modules/napari-plugin-engine/default.nix b/pkgs/development/python-modules/napari-plugin-engine/default.nix index 499f87ecf716..419c949b4ebc 100644 --- a/pkgs/development/python-modules/napari-plugin-engine/default.nix +++ b/pkgs/development/python-modules/napari-plugin-engine/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,16 +21,12 @@ buildPythonPackage rec { hash = "sha256-cKpCAEYYRq3UPje7REjzhEe1J9mmrtXs8TBnxWukcNE="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # Circular dependency: napari doCheck = false; - pythonImportsCheck = [ - "napari_plugin_engine" - ]; + pythonImportsCheck = [ "napari_plugin_engine" ]; meta = with lib; { description = "First generation napari plugin engine"; diff --git a/pkgs/development/python-modules/napari-svg/default.nix b/pkgs/development/python-modules/napari-svg/default.nix index 3094327dd422..fcbf8dd47a1d 100644 --- a/pkgs/development/python-modules/napari-svg/default.nix +++ b/pkgs/development/python-modules/napari-svg/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, imageio -, napari-plugin-engine -, numpy -, pythonOlder -, setuptools-scm -, vispy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + imageio, + napari-plugin-engine, + numpy, + pythonOlder, + setuptools-scm, + vispy, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-ywN9lUwBFW8zP7ivP7MNTYFbTCcmaZxAuKr056uY68Q="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ imageio diff --git a/pkgs/development/python-modules/nasdaq-data-link/default.nix b/pkgs/development/python-modules/nasdaq-data-link/default.nix index f72edadaf262..e560d7033ce5 100644 --- a/pkgs/development/python-modules/nasdaq-data-link/default.nix +++ b/pkgs/development/python-modules/nasdaq-data-link/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, factory-boy -, fetchFromGitHub -, httpretty -, inflection -, jsondate -, mock -, more-itertools -, numpy -, pandas -, parameterized -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + factory-boy, + fetchFromGitHub, + httpretty, + inflection, + jsondate, + mock, + more-itertools, + numpy, + pandas, + parameterized, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nasdaqdatalink" - ]; + pythonImportsCheck = [ "nasdaqdatalink" ]; meta = with lib; { description = "Library for Nasdaq Data Link's RESTful API"; diff --git a/pkgs/development/python-modules/natasha/default.nix b/pkgs/development/python-modules/natasha/default.nix index 3d25ccf73fc9..50283389107b 100644 --- a/pkgs/development/python-modules/natasha/default.nix +++ b/pkgs/development/python-modules/natasha/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pymorphy2 -, razdel -, navec -, slovnet -, yargy -, ipymarkup -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pymorphy2, + razdel, + navec, + slovnet, + yargy, + ipymarkup, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,7 +21,14 @@ buildPythonPackage rec { hash = "sha256-Rgguazgq06a8B9jeRnfHD5VTR+Xrd+8OCsQUfaGLEq0="; }; - propagatedBuildInputs = [ pymorphy2 navec razdel slovnet yargy ipymarkup ]; + propagatedBuildInputs = [ + pymorphy2 + navec + razdel + slovnet + yargy + ipymarkup + ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests/" ]; diff --git a/pkgs/development/python-modules/natsort/default.nix b/pkgs/development/python-modules/natsort/default.nix index aef526b4290e..d8001e5bd108 100644 --- a/pkgs/development/python-modules/natsort/default.nix +++ b/pkgs/development/python-modules/natsort/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fastnumbers -, fetchPypi -, glibcLocales -, hypothesis -, pyicu -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fastnumbers, + fetchPypi, + glibcLocales, + hypothesis, + pyicu, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { "test_string_component_transform_factory" ]; - pythonImportsCheck = [ - "natsort" - ]; + pythonImportsCheck = [ "natsort" ]; meta = with lib; { description = "Natural sorting for Python"; diff --git a/pkgs/development/python-modules/navec/default.nix b/pkgs/development/python-modules/navec/default.nix index e5712212eb69..8369edba2169 100644 --- a/pkgs/development/python-modules/navec/default.nix +++ b/pkgs/development/python-modules/navec/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, razdel -, gensim -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + razdel, + gensim, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,8 +18,14 @@ buildPythonPackage rec { hash = "sha256-TyNHSxwnmvbGBfhOeHPofEfKWLDFOKP50w2QxgnJ/SE="; }; - propagatedBuildInputs = [ numpy razdel ]; - nativeCheckInputs = [ pytestCheckHook gensim ]; + propagatedBuildInputs = [ + numpy + razdel + ]; + nativeCheckInputs = [ + pytestCheckHook + gensim + ]; # TODO: remove when gensim usage will be fixed in `navec`. disabledTests = [ "test_gensim" ]; pythonImportsCheck = [ "navec" ]; diff --git a/pkgs/development/python-modules/nbclassic/default.nix b/pkgs/development/python-modules/nbclassic/default.nix index d4730414006c..6b9cfcd9ba6a 100644 --- a/pkgs/development/python-modules/nbclassic/default.nix +++ b/pkgs/development/python-modules/nbclassic/default.nix @@ -1,27 +1,28 @@ -{ lib -, argon2-cffi -, buildPythonPackage -, fetchPypi -, ipykernel -, ipython-genutils -, jinja2 -, jupyter-client -, jupyter-core -, jupyter-server -, nbconvert -, nbformat -, nest-asyncio -, notebook-shim -, prometheus-client -, pytest-jupyter -, pytest-tornasync -, pytestCheckHook -, pythonOlder -, pyzmq -, send2trash -, terminado -, tornado -, traitlets +{ + lib, + argon2-cffi, + buildPythonPackage, + fetchPypi, + ipykernel, + ipython-genutils, + jinja2, + jupyter-client, + jupyter-core, + jupyter-server, + nbconvert, + nbformat, + nest-asyncio, + notebook-shim, + prometheus-client, + pytest-jupyter, + pytest-tornasync, + pytestCheckHook, + pythonOlder, + pyzmq, + send2trash, + terminado, + tornado, + traitlets, }: buildPythonPackage rec { @@ -62,9 +63,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nbclassic" - ]; + pythonImportsCheck = [ "nbclassic" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/nbclient/default.nix b/pkgs/development/python-modules/nbclient/default.nix index 7935d99a527e..98540c2d85e4 100644 --- a/pkgs/development/python-modules/nbclient/default.nix +++ b/pkgs/development/python-modules/nbclient/default.nix @@ -1,75 +1,78 @@ -{ async-generator -, buildPythonPackage -, fetchFromGitHub -, hatchling -, ipykernel -, ipywidgets -, jupyter-client -, lib -, nbconvert -, nbformat -, nest-asyncio -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, testpath -, traitlets -, xmltodict +{ + async-generator, + buildPythonPackage, + fetchFromGitHub, + hatchling, + ipykernel, + ipywidgets, + jupyter-client, + lib, + nbconvert, + nbformat, + nest-asyncio, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + testpath, + traitlets, + xmltodict, }: -let nbclient = buildPythonPackage rec { - pname = "nbclient"; - version = "0.10.0"; - format = "pyproject"; +let + nbclient = buildPythonPackage rec { + pname = "nbclient"; + version = "0.10.0"; + format = "pyproject"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.7"; - src = fetchFromGitHub { - owner = "jupyter"; - repo = pname; - rev = "refs/tags/v${version}"; - hash = "sha256-8OLkpwX4Gpam9VSFUtNS41Ypxe4+2yN3ng6iVY9DSqY="; + src = fetchFromGitHub { + owner = "jupyter"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-8OLkpwX4Gpam9VSFUtNS41Ypxe4+2yN3ng6iVY9DSqY="; + }; + + nativeBuildInputs = [ hatchling ]; + + propagatedBuildInputs = [ + async-generator + traitlets + nbformat + nest-asyncio + jupyter-client + ]; + + # circular dependencies if enabled by default + doCheck = false; + + nativeCheckInputs = [ + ipykernel + ipywidgets + nbconvert + pytest-asyncio + pytestCheckHook + testpath + xmltodict + ]; + + preCheck = '' + export HOME=$(mktemp -d) + ''; + + passthru.tests = { + check = nbclient.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + meta = with lib; { + homepage = "https://github.com/jupyter/nbclient"; + description = "A client library for executing notebooks"; + mainProgram = "jupyter-execute"; + license = licenses.bsd3; + maintainers = [ ]; + }; }; - - nativeBuildInputs = [ - hatchling - ]; - - propagatedBuildInputs = [ - async-generator - traitlets - nbformat - nest-asyncio - jupyter-client - ]; - - # circular dependencies if enabled by default - doCheck = false; - - nativeCheckInputs = [ - ipykernel - ipywidgets - nbconvert - pytest-asyncio - pytestCheckHook - testpath - xmltodict - ]; - - preCheck = '' - export HOME=$(mktemp -d) - ''; - - passthru.tests = { - check = nbclient.overridePythonAttrs (_: { doCheck = true; }); - }; - - meta = with lib; { - homepage = "https://github.com/jupyter/nbclient"; - description = "A client library for executing notebooks"; - mainProgram = "jupyter-execute"; - license = licenses.bsd3; - maintainers = [ ]; - }; -}; -in nbclient +in +nbclient diff --git a/pkgs/development/python-modules/nbconflux/default.nix b/pkgs/development/python-modules/nbconflux/default.nix index 25d9cc73df53..1de1a82ac6f1 100644 --- a/pkgs/development/python-modules/nbconflux/default.nix +++ b/pkgs/development/python-modules/nbconflux/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, nbconvert -, pytestCheckHook -, requests -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + nbconvert, + pytestCheckHook, + requests, + responses, }: buildPythonPackage rec { @@ -21,16 +22,22 @@ buildPythonPackage rec { hash = "sha256-kHIuboFKLVsu5zlZ0bM1BUoQR8f1l0XWcaaVI9bECJw="; }; - propagatedBuildInputs = [ nbconvert requests ]; + propagatedBuildInputs = [ + nbconvert + requests + ]; - nativeCheckInputs = [ pytestCheckHook responses ]; + nativeCheckInputs = [ + pytestCheckHook + responses + ]; patches = [ # The original setup.py file is missing commas in the install_requires list ./setup-py.patch ]; - JUPYTER_PATH="${nbconvert}/share/jupyter"; + JUPYTER_PATH = "${nbconvert}/share/jupyter"; disabledTests = [ "test_post_to_confluence" "test_optional_components" diff --git a/pkgs/development/python-modules/nbconvert/default.nix b/pkgs/development/python-modules/nbconvert/default.nix index 4375b18486d2..870b0dba1088 100644 --- a/pkgs/development/python-modules/nbconvert/default.nix +++ b/pkgs/development/python-modules/nbconvert/default.nix @@ -1,28 +1,29 @@ -{ lib -, fetchurl -, buildPythonPackage -, pythonOlder -, fetchPypi -, hatchling -, beautifulsoup4 -, bleach -, defusedxml -, jinja2 -, jupyter-core -, jupyterlab-pygments -, markupsafe -, mistune -, nbclient -, packaging -, pandocfilters -, pygments -, tinycss2 -, traitlets -, importlib-metadata -, flaky -, ipykernel -, ipywidgets -, pytestCheckHook +{ + lib, + fetchurl, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatchling, + beautifulsoup4, + bleach, + defusedxml, + jinja2, + jupyter-core, + jupyterlab-pygments, + markupsafe, + mistune, + nbclient, + packaging, + pandocfilters, + pygments, + tinycss2, + traitlets, + importlib-metadata, + flaky, + ipykernel, + ipywidgets, + pytestCheckHook, }: let @@ -31,7 +32,8 @@ let url = "https://cdn.jupyter.org/notebook/5.4.0/style/style.min.css"; hash = "sha256-WGWmCfRDewRkvBIc1We2GQdOVAoFFaO4LyIvdk61HgE="; }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "nbconvert"; version = "7.16.4"; pyproject = true; @@ -45,9 +47,7 @@ in buildPythonPackage rec { # Add $out/share/jupyter to the list of paths that are used to search for # various exporter templates - patches = [ - ./templates.patch - ]; + patches = [ ./templates.patch ]; postPatch = '' substituteAllInPlace ./nbconvert/exporters/templateexporter.py @@ -56,9 +56,7 @@ in buildPythonPackage rec { cp ${style-css} share/templates/classic/static/style.css ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ beautifulsoup4 @@ -75,9 +73,7 @@ in buildPythonPackage rec { pygments tinycss2 traitlets - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/nbdev/default.nix b/pkgs/development/python-modules/nbdev/default.nix index b014aed1ae01..cd97c4b5380e 100644 --- a/pkgs/development/python-modules/nbdev/default.nix +++ b/pkgs/development/python-modules/nbdev/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, setuptools -, ipywidgets -, fastcore -, astunparse -, watchdog -, execnb -, ghapi -, pyyaml -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + setuptools, + ipywidgets, + fastcore, + astunparse, + watchdog, + execnb, + ghapi, + pyyaml, + pythonOlder, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { hash = "sha256-+HbGHyJ2TX6qnBBPNivFVklrf+Ma2QM3u/2a67NxfIs="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "ipywidgets" - ]; + pythonRelaxDeps = [ "ipywidgets" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ astunparse @@ -50,9 +45,7 @@ buildPythonPackage rec { # no real tests doCheck = false; - pythonImportsCheck = [ - "nbdev" - ]; + pythonImportsCheck = [ "nbdev" ]; meta = with lib; { homepage = "https://github.com/fastai/nbdev"; diff --git a/pkgs/development/python-modules/nbdime/default.nix b/pkgs/development/python-modules/nbdime/default.nix index 855192fa5ec5..7441a6123d23 100644 --- a/pkgs/development/python-modules/nbdime/default.nix +++ b/pkgs/development/python-modules/nbdime/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, hatch-jupyter-builder -, hatchling -, jupyterlab -, nbformat -, colorama -, pygments -, tornado -, requests -, gitpython -, jupyter-server -, jupyter-server-mathjax -, jinja2 -, git -, pytest-tornado -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatch-jupyter-builder, + hatchling, + jupyterlab, + nbformat, + colorama, + pygments, + tornado, + requests, + gitpython, + jupyter-server, + jupyter-server-mathjax, + jinja2, + git, + pytest-tornado, + pytestCheckHook, }: buildPythonPackage rec { @@ -76,9 +77,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "nbdime" - ]; + pythonImportsCheck = [ "nbdime" ]; meta = with lib; { homepage = "https://github.com/jupyter/nbdime"; diff --git a/pkgs/development/python-modules/nbexec/default.nix b/pkgs/development/python-modules/nbexec/default.nix index faed2eedb471..05964e464144 100644 --- a/pkgs/development/python-modules/nbexec/default.nix +++ b/pkgs/development/python-modules/nbexec/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, jupyter-client -, nbformat -, nbconvert -# check inputs -, unittestCheckHook -, ipykernel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + jupyter-client, + nbformat, + nbconvert, + # check inputs + unittestCheckHook, + ipykernel, }: let pname = "nbexec"; @@ -44,12 +45,12 @@ buildPythonPackage { ''; unittestFlagsArray = [ - "-s" "test" "-v" + "-s" + "test" + "-v" ]; - pythonImportsCheck = [ - "nbexec" - ]; + pythonImportsCheck = [ "nbexec" ]; meta = with lib; { description = "A dead-simple tool for executing Jupyter notebooks from the command line."; diff --git a/pkgs/development/python-modules/nbformat/default.nix b/pkgs/development/python-modules/nbformat/default.nix index 9cf08897935e..3a03b9a3c26f 100644 --- a/pkgs/development/python-modules/nbformat/default.nix +++ b/pkgs/development/python-modules/nbformat/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, hatchling -, hatch-nodejs-version -, fastjsonschema -, jsonschema -, jupyter-core -, traitlets -, pep440 -, pytestCheckHook -, testpath +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatchling, + hatch-nodejs-version, + fastjsonschema, + jsonschema, + jupyter-core, + traitlets, + pep440, + pytestCheckHook, + testpath, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { traitlets ]; - pythonImportsCheck = [ - "nbformat" - ]; + pythonImportsCheck = [ "nbformat" ]; nativeCheckInputs = [ pep440 diff --git a/pkgs/development/python-modules/nbmake/default.nix b/pkgs/development/python-modules/nbmake/default.nix index 03606d7b0787..be7d9d628cac 100644 --- a/pkgs/development/python-modules/nbmake/default.nix +++ b/pkgs/development/python-modules/nbmake/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, setuptools -, wheel -, ipykernel -, nbclient -, nbformat -, pygments -, pytest -, pyyaml -, pytest-xdist -, pytestCheckHook -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + setuptools, + wheel, + ipykernel, + nbclient, + nbformat, + pygments, + pytest, + pyyaml, + pytest-xdist, + pytestCheckHook, + typing-extensions, }: buildPythonPackage rec { @@ -47,13 +48,9 @@ buildPythonPackage rec { pyyaml ]; - pythonRelaxDeps = [ - "nbclient" - ]; + pythonRelaxDeps = [ "nbclient" ]; - pythonImportsCheck = [ - "nbmake" - ]; + pythonImportsCheck = [ "nbmake" ]; nativeCheckInputs = [ pytest-xdist @@ -63,7 +60,6 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - meta = with lib; { description = "Pytest plugin for testing notebooks"; homepage = "https://github.com/treebeardtech/nbmake"; diff --git a/pkgs/development/python-modules/nbmerge/default.nix b/pkgs/development/python-modules/nbmerge/default.nix index 6aaee680582c..cadc1e2166e1 100644 --- a/pkgs/development/python-modules/nbmerge/default.nix +++ b/pkgs/development/python-modules/nbmerge/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, nbformat -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + nbformat, + nose, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-Uqs/SO/AculHCFYcbjW08kLQX5GSU/eAwkN2iy/vhLM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ nbformat ]; @@ -36,9 +35,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "nbmerge" - ]; + pythonImportsCheck = [ "nbmerge" ]; meta = { description = "A tool to merge/concatenate Jupyter (IPython) notebooks"; diff --git a/pkgs/development/python-modules/nbsmoke/default.nix b/pkgs/development/python-modules/nbsmoke/default.nix index afea038d6db7..14cd544647a6 100644 --- a/pkgs/development/python-modules/nbsmoke/default.nix +++ b/pkgs/development/python-modules/nbsmoke/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, jupyter-client -, ipykernel -, holoviews -, nbformat -, nbconvert -, pyflakes -, requests -, beautifulsoup4 +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + jupyter-client, + ipykernel, + holoviews, + nbformat, + nbconvert, + pyflakes, + requests, + beautifulsoup4, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nbsphinx/default.nix b/pkgs/development/python-modules/nbsphinx/default.nix index 8fd5a9ce5263..4a15448d0839 100644 --- a/pkgs/development/python-modules/nbsphinx/default.nix +++ b/pkgs/development/python-modules/nbsphinx/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, docutils -, jinja2 -, nbconvert -, nbformat -, sphinx -, traitlets -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + docutils, + jinja2, + nbconvert, + nbformat, + sphinx, + traitlets, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-BCpggG/CPVGbxb71nZVXBxORP+RC/adZ1T46r2IQR5Q="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ docutils @@ -41,9 +40,7 @@ buildPythonPackage rec { JUPYTER_PATH = "${nbconvert}/share/jupyter"; - pythonImportsCheck = [ - "nbsphinx" - ]; + pythonImportsCheck = [ "nbsphinx" ]; meta = with lib; { description = "Jupyter Notebook Tools for Sphinx"; diff --git a/pkgs/development/python-modules/nbtlib/default.nix b/pkgs/development/python-modules/nbtlib/default.nix index 3ec7ade6a90b..b41ca72b1166 100644 --- a/pkgs/development/python-modules/nbtlib/default.nix +++ b/pkgs/development/python-modules/nbtlib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + numpy, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { }; prePatch = '' - substituteInPlace pyproject.toml \ - --replace "poetry>=0.12" "poetry-core" \ - --replace "poetry.masonry" "poetry.core.masonry" + substituteInPlace pyproject.toml \ + --replace "poetry>=0.12" "poetry-core" \ + --replace "poetry.masonry" "poetry.core.masonry" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "nbtlib" ]; diff --git a/pkgs/development/python-modules/nbval/default.nix b/pkgs/development/python-modules/nbval/default.nix index cce567bfacb3..380a22e59dfd 100644 --- a/pkgs/development/python-modules/nbval/default.nix +++ b/pkgs/development/python-modules/nbval/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, coverage -, ipykernel -, jupyter-client -, nbformat -, pytestCheckHook -, pytest -, glibcLocales -, matplotlib -, sympy +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + coverage, + ipykernel, + jupyter-client, + nbformat, + pytestCheckHook, + pytest, + glibcLocales, + matplotlib, + sympy, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-d8lXl2B7CpaLq9JZfuNJQQLSXDrTdDXeu9rA5G43kJQ="; }; - buildInputs = [ - glibcLocales - ]; + buildInputs = [ glibcLocales ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ coverage @@ -65,9 +62,7 @@ buildPythonPackage rec { # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "nbval" - ]; + pythonImportsCheck = [ "nbval" ]; meta = with lib; { description = "A py.test plugin to validate Jupyter notebooks"; diff --git a/pkgs/development/python-modules/nbxmpp/default.nix b/pkgs/development/python-modules/nbxmpp/default.nix index 22cc74504f67..e15a8a081d7a 100644 --- a/pkgs/development/python-modules/nbxmpp/default.nix +++ b/pkgs/development/python-modules/nbxmpp/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, gobject-introspection -, idna -, libsoup_3 -, packaging -, precis-i18n -, pygobject3 -, pyopenssl -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitLab, + gobject-introspection, + idna, + libsoup_3, + packaging, + precis-i18n, + pygobject3, + pyopenssl, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - precis-i18n - ]; + buildInputs = [ precis-i18n ]; propagatedBuildInputs = [ gobject-introspection @@ -47,13 +46,9 @@ buildPythonPackage rec { pyopenssl ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nbxmpp" - ]; + pythonImportsCheck = [ "nbxmpp" ]; meta = with lib; { homepage = "https://dev.gajim.org/gajim/python-nbxmpp"; diff --git a/pkgs/development/python-modules/nc-dnsapi/default.nix b/pkgs/development/python-modules/nc-dnsapi/default.nix index 4229fa613f19..cf6511b1eb97 100644 --- a/pkgs/development/python-modules/nc-dnsapi/default.nix +++ b/pkgs/development/python-modules/nc-dnsapi/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -27,6 +28,9 @@ buildPythonPackage rec { description = "API wrapper for the netcup DNS api"; homepage = "https://github.com/nbuchwitz/nc_dnsapi"; license = licenses.gpl3; - maintainers = with maintainers; [ veehaitch trundle ]; + maintainers = with maintainers; [ + veehaitch + trundle + ]; }; } diff --git a/pkgs/development/python-modules/ncclient/default.nix b/pkgs/development/python-modules/ncclient/default.nix index c3040475cf2e..11f3424083cb 100644 --- a/pkgs/development/python-modules/ncclient/default.nix +++ b/pkgs/development/python-modules/ncclient/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, paramiko -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + paramiko, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ncclient" - ]; + pythonImportsCheck = [ "ncclient" ]; meta = with lib; { description = "Python library for NETCONF clients"; diff --git a/pkgs/development/python-modules/nclib/default.nix b/pkgs/development/python-modules/nclib/default.nix index f803a2b39980..67217d4c2253 100644 --- a/pkgs/development/python-modules/nclib/default.nix +++ b/pkgs/development/python-modules/nclib/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "nclib" - ]; + pythonImportsCheck = [ "nclib" ]; meta = with lib; { description = "Python module that provides netcat features"; diff --git a/pkgs/development/python-modules/ndeflib/default.nix b/pkgs/development/python-modules/ndeflib/default.nix index 165aed8942df..9c410e4d24f9 100644 --- a/pkgs/development/python-modules/ndeflib/default.nix +++ b/pkgs/development/python-modules/ndeflib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,24 +22,16 @@ buildPythonPackage rec { hash = "sha256-cpfztE+/AW7P0J7QeTDfVGYc2gEkr7gzA352hC9bdTM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ndef" - ]; + pythonImportsCheck = [ "ndef" ]; disabledTests = [ # AssertionError caused due to wrong size "test_decode_error" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - "test_encode_error" - ]; + ] ++ lib.optionals (pythonAtLeast "3.12") [ "test_encode_error" ]; meta = with lib; { description = "Python package for parsing and generating NFC Data Exchange Format messages"; diff --git a/pkgs/development/python-modules/ndg-httpsclient/default.nix b/pkgs/development/python-modules/ndg-httpsclient/default.nix index 71acebc14e01..7ebffc30c449 100644 --- a/pkgs/development/python-modules/ndg-httpsclient/default.nix +++ b/pkgs/development/python-modules/ndg-httpsclient/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyasn1 -, pyopenssl +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyasn1, + pyopenssl, }: buildPythonPackage rec { @@ -17,7 +18,6 @@ buildPythonPackage rec { sha256 = "0lhsgs4am4xyjssng5p0vkfwqncczj1dpa0vss4lrhzq86mnn5rz"; }; - propagatedBuildInputs = [ pyasn1 pyopenssl @@ -33,5 +33,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/ndindex/default.nix b/pkgs/development/python-modules/ndindex/default.nix index 55704e1eef08..567476d4985c 100644 --- a/pkgs/development/python-modules/ndindex/default.nix +++ b/pkgs/development/python-modules/ndindex/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cython + # build-system + cython, -# optional -, numpy + # optional + numpy, -# tests -, hypothesis -, pytest-cov -, pytestCheckHook + # tests + hypothesis, + pytest-cov, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,22 +27,16 @@ buildPythonPackage rec { hash = "sha256-F52ly3NkrZ0H9XoomMqmWfLl+8X0z26Yx67DB8DUqyU="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; postPatch = '' substituteInPlace pytest.ini \ --replace "--cov=ndindex/ --cov-report=term-missing --flakes" "" ''; - passthru.optional-dependencies.arrays = [ - numpy - ]; + passthru.optional-dependencies.arrays = [ numpy ]; - pythonImportsCheck = [ - "ndindex" - ]; + pythonImportsCheck = [ "ndindex" ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/ndjson/default.nix b/pkgs/development/python-modules/ndjson/default.nix index 4bd84a73be0a..37cc55f33666 100644 --- a/pkgs/development/python-modules/ndjson/default.nix +++ b/pkgs/development/python-modules/ndjson/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, six -, watchdog +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + six, + watchdog, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { watchdog ]; - pythonImportsCheck = [ - "ndjson" - ]; + pythonImportsCheck = [ "ndjson" ]; meta = with lib; { description = "Module supports ndjson"; diff --git a/pkgs/development/python-modules/ndms2-client/default.nix b/pkgs/development/python-modules/ndms2-client/default.nix index ff872aa6f386..573188d482ee 100644 --- a/pkgs/development/python-modules/ndms2-client/default.nix +++ b/pkgs/development/python-modules/ndms2-client/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-A19olC1rTHTy0xyeSP45fqvv9GUynQSrMgXBgW8ySOs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ndms2_client" ]; diff --git a/pkgs/development/python-modules/ndspy/default.nix b/pkgs/development/python-modules/ndspy/default.nix index c4a7a6bf5578..2a5ef941e1b3 100644 --- a/pkgs/development/python-modules/ndspy/default.nix +++ b/pkgs/development/python-modules/ndspy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-V7phRZCA0WbUpYLgS/4nJbje/JM61RksDUZQ2pnbQyU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ndspy" - ]; + pythonImportsCheck = [ "ndspy" ]; preCheck = '' cd tests diff --git a/pkgs/development/python-modules/ndtypes/default.nix b/pkgs/development/python-modules/ndtypes/default.nix index bf9c2ad59d6f..55ec525d4420 100644 --- a/pkgs/development/python-modules/ndtypes/default.nix +++ b/pkgs/development/python-modules/ndtypes/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, python -, numpy -, libndtypes -, isPy27 +{ + lib, + stdenv, + buildPythonPackage, + python, + numpy, + libndtypes, + isPy27, }: buildPythonPackage { @@ -13,7 +14,10 @@ buildPythonPackage { disabled = isPy27; inherit (libndtypes) version src meta; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; propagatedBuildInputs = [ numpy ]; @@ -27,12 +31,14 @@ buildPythonPackage { 'runtime_library_dirs = ["${libndtypes}/lib"]' ''; - postInstall = '' - mkdir $out/include - cp python/ndtypes/*.h $out/include - '' + lib.optionalString stdenv.isDarwin '' - install_name_tool -add_rpath ${libndtypes}/lib $out/${python.sitePackages}/ndtypes/_ndtypes.*.so - ''; + postInstall = + '' + mkdir $out/include + cp python/ndtypes/*.h $out/include + '' + + lib.optionalString stdenv.isDarwin '' + install_name_tool -add_rpath ${libndtypes}/lib $out/${python.sitePackages}/ndtypes/_ndtypes.*.so + ''; checkPhase = '' pushd python diff --git a/pkgs/development/python-modules/nengo/default.nix b/pkgs/development/python-modules/nengo/default.nix index 86231c3f0401..5d523ac0d397 100644 --- a/pkgs/development/python-modules/nengo/default.nix +++ b/pkgs/development/python-modules/nengo/default.nix @@ -1,10 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools -, numpy -, scipySupport ? false, scipy -, scikitSupport ? false, scikit-learn +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + numpy, + scipySupport ? false, + scipy, + scikitSupport ? false, + scikit-learn, }: buildPythonPackage rec { @@ -19,13 +22,11 @@ buildPythonPackage rec { sha256 = "sha256-b9mPjKdewIqIeRrddV1/M3bghSyox7Lz6VbfSLCHZjA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ numpy ] - ++ lib.optionals scipySupport [ scipy ] - ++ lib.optionals scikitSupport [ scikit-learn ]; + propagatedBuildInputs = [ + numpy + ] ++ lib.optionals scipySupport [ scipy ] ++ lib.optionals scikitSupport [ scikit-learn ]; # checks req missing: # pytest-allclose @@ -37,8 +38,8 @@ buildPythonPackage rec { meta = with lib; { description = "A Python library for creating and simulating large-scale brain models"; - homepage = "https://nengo.ai/"; - license = licenses.unfreeRedistributable; + homepage = "https://nengo.ai/"; + license = licenses.unfreeRedistributable; maintainers = with maintainers; [ arjix ]; }; } diff --git a/pkgs/development/python-modules/neo/default.nix b/pkgs/development/python-modules/neo/default.nix index d4b5265ba8ed..b74e8c3a4df1 100644 --- a/pkgs/development/python-modules/neo/default.nix +++ b/pkgs/development/python-modules/neo/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, numpy -, packaging -, quantities -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + numpy, + packaging, + quantities, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -29,17 +30,13 @@ buildPythonPackage rec { quantities ]; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; checkPhase = '' nosetests --exclude=iotest ''; - pythonImportsCheck = [ - "neo" - ]; + pythonImportsCheck = [ "neo" ]; meta = with lib; { description = "Package for representing electrophysiology data"; diff --git a/pkgs/development/python-modules/neoteroi-mkdocs/default.nix b/pkgs/development/python-modules/neoteroi-mkdocs/default.nix index ee4c4a172359..66ae368c2b24 100644 --- a/pkgs/development/python-modules/neoteroi-mkdocs/default.nix +++ b/pkgs/development/python-modules/neoteroi-mkdocs/default.nix @@ -26,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-gpU3G1PeZTKO4fWr4x8Ek0GIBEP3oRAgu7OFn2OZbRE="; }; - buildInputs = [ - hatchling - ]; + buildInputs = [ hatchling ]; nativeCheckInputs = [ pytestCheckHook @@ -49,15 +47,16 @@ buildPythonPackage rec { "test_contribs" # checks against its own git repository ]; - pythonImportsCheck = [ - "neoteroi.mkdocs" - ]; + pythonImportsCheck = [ "neoteroi.mkdocs" ]; meta = with lib; { homepage = "https://github.com/Neoteroi/mkdocs-plugins"; description = "Plugins for MkDocs"; changelog = "https://github.com/Neoteroi/mkdocs-plugins/releases/v${version}"; license = licenses.mit; - maintainers = with maintainers; [aldoborrero zimbatm]; + maintainers = with maintainers; [ + aldoborrero + zimbatm + ]; }; } diff --git a/pkgs/development/python-modules/nessclient/default.nix b/pkgs/development/python-modules/nessclient/default.nix index 73b6d83dbe86..160cb669be55 100644 --- a/pkgs/development/python-modules/nessclient/default.nix +++ b/pkgs/development/python-modules/nessclient/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, justbackoff -, pythonOlder -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + justbackoff, + pythonOlder, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nessclient" - ]; + pythonImportsCheck = [ "nessclient" ]; meta = with lib; { description = "Python implementation/abstraction of the Ness D8x/D16x Serial Interface ASCII protocol"; diff --git a/pkgs/development/python-modules/nest-asyncio/default.nix b/pkgs/development/python-modules/nest-asyncio/default.nix index 3daac2f31d16..45dc089f74d5 100644 --- a/pkgs/development/python-modules/nest-asyncio/default.nix +++ b/pkgs/development/python-modules/nest-asyncio/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nest_asyncio" - ]; + pythonImportsCheck = [ "nest_asyncio" ]; meta = with lib; { description = "Patch asyncio to allow nested event loops"; diff --git a/pkgs/development/python-modules/nested-lookup/default.nix b/pkgs/development/python-modules/nested-lookup/default.nix index 0a59a372d00e..3eff01d9480d 100644 --- a/pkgs/development/python-modules/nested-lookup/default.nix +++ b/pkgs/development/python-modules/nested-lookup/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pytestCheckHook -, six +{ + buildPythonPackage, + fetchPypi, + lib, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-b6gydIyQOB8ikdhQgJ4ySSUZ7l8lPWpay8Kdk37KAug="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "nested_lookup" ]; diff --git a/pkgs/development/python-modules/nestedtext/default.nix b/pkgs/development/python-modules/nestedtext/default.nix index d0a925859d03..0fd4faaa02b5 100644 --- a/pkgs/development/python-modules/nestedtext/default.nix +++ b/pkgs/development/python-modules/nestedtext/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, flit-core -, hypothesis -, inform -, nestedtext -, pytestCheckHook -, pythonOlder -, quantiphy -, voluptuous +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + flit-core, + hypothesis, + inform, + nestedtext, + pytestCheckHook, + pythonOlder, + quantiphy, + voluptuous, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-lNqSmEmzuRGdXs/4mwKSh7yDGHnAykpIDIR+abbLCns="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - inform - ]; + propagatedBuildInputs = [ inform ]; nativeCheckInputs = [ docopt @@ -57,12 +54,12 @@ buildPythonPackage rec { ]; passthru.tests = { - runTests = nestedtext.overrideAttrs (_: { doCheck = true; }); + runTests = nestedtext.overrideAttrs (_: { + doCheck = true; + }); }; - pythonImportsCheck = [ - "nestedtext" - ]; + pythonImportsCheck = [ "nestedtext" ]; meta = with lib; { description = "A human friendly data format"; diff --git a/pkgs/development/python-modules/netaddr/default.nix b/pkgs/development/python-modules/netaddr/default.nix index bcb478e238b9..22ff0cf9949a 100644 --- a/pkgs/development/python-modules/netaddr/default.nix +++ b/pkgs/development/python-modules/netaddr/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { sha256 = "sha256-brj+3wQSxtKU0GiFwRDelFz00i0rUQ0EBPTgaVCFeYc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "netaddr" - ]; + pythonImportsCheck = [ "netaddr" ]; meta = with lib; { description = "A network address manipulation library for Python"; diff --git a/pkgs/development/python-modules/netapp-lib/default.nix b/pkgs/development/python-modules/netapp-lib/default.nix index b84ff5613ecc..4155d3bff0c9 100644 --- a/pkgs/development/python-modules/netapp-lib/default.nix +++ b/pkgs/development/python-modules/netapp-lib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, six -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + six, + xmltodict, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/netapp-ontap/default.nix b/pkgs/development/python-modules/netapp-ontap/default.nix index a770cb63b0b2..9b114fd1bb04 100644 --- a/pkgs/development/python-modules/netapp-ontap/default.nix +++ b/pkgs/development/python-modules/netapp-ontap/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cliche -, marshmallow -, pytestCheckHook -, recline -, requests -, requests-toolbelt -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + cliche, + marshmallow, + pytestCheckHook, + recline, + requests, + requests-toolbelt, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/netcdf4/default.nix b/pkgs/development/python-modules/netcdf4/default.nix index 72b03ef5d7f6..d6b76137657e 100644 --- a/pkgs/development/python-modules/netcdf4/default.nix +++ b/pkgs/development/python-modules/netcdf4/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, isPyPy -, python -, oldest-supported-numpy -, setuptools -, wheel -, certifi -, numpy -, zlib -, netcdf -, hdf5 -, curl -, libjpeg -, cython -, cftime +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + isPyPy, + python, + oldest-supported-numpy, + setuptools, + wheel, + certifi, + numpy, + zlib, + netcdf, + hdf5, + curl, + libjpeg, + cython, + cftime, }: buildPythonPackage rec { @@ -61,9 +62,7 @@ buildPythonPackage rec { NETCDF4_DIR = netcdf; CURL_DIR = curl.dev; JPEG_DIR = libjpeg.dev; - } // lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion"; - }; + } // lib.optionalAttrs stdenv.cc.isClang { NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion"; }; pythonImportsCheck = [ "netCDF4" ]; diff --git a/pkgs/development/python-modules/netdata/default.nix b/pkgs/development/python-modules/netdata/default.nix index a585aa5975e9..7799bddb8589 100644 --- a/pkgs/development/python-modules/netdata/default.nix +++ b/pkgs/development/python-modules/netdata/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, httpx -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, yarl +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + httpx, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + yarl, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-ViiGh5CsRpMJ6zvPmje+eB5LuO6t47bjObaYh5a2Kw8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ httpx @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "netdata" - ]; + pythonImportsCheck = [ "netdata" ]; meta = with lib; { description = "Python API for interacting with Netdata"; diff --git a/pkgs/development/python-modules/netdisco/default.nix b/pkgs/development/python-modules/netdisco/default.nix index 6ea7841dff87..db1d17de07ca 100644 --- a/pkgs/development/python-modules/netdisco/default.nix +++ b/pkgs/development/python-modules/netdisco/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }: +{ + lib, + buildPythonPackage, + isPy3k, + fetchPypi, + requests, + zeroconf, + pytestCheckHook, +}: buildPythonPackage rec { pname = "netdisco"; @@ -12,7 +20,10 @@ buildPythonPackage rec { hash = "sha256-TbtZBILzd8zEYeAXQnB8y+jx0tGyhXivkdybf+vNy9I="; }; - propagatedBuildInputs = [ requests zeroconf ]; + propagatedBuildInputs = [ + requests + zeroconf + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/nethsm/default.nix b/pkgs/development/python-modules/nethsm/default.nix index 9120b29638fc..5285d609d747 100644 --- a/pkgs/development/python-modules/nethsm/default.nix +++ b/pkgs/development/python-modules/nethsm/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, flit-core -, certifi -, cryptography -, python-dateutil -, typing-extensions -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + flit-core, + certifi, + cryptography, + python-dateutil, + typing-extensions, + urllib3, }: let diff --git a/pkgs/development/python-modules/netifaces/default.nix b/pkgs/development/python-modules/netifaces/default.nix index 6d34bc3df4a5..381b8818e77d 100644 --- a/pkgs/development/python-modules/netifaces/default.nix +++ b/pkgs/development/python-modules/netifaces/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # No tests implemented doCheck = false; - pythonImportsCheck = [ - "netifaces" - ]; + pythonImportsCheck = [ "netifaces" ]; meta = with lib; { description = "Portable access to network interfaces from Python"; diff --git a/pkgs/development/python-modules/netio/default.nix b/pkgs/development/python-modules/netio/default.nix index 29159d6288ba..bf33aa47ddc1 100644 --- a/pkgs/development/python-modules/netio/default.nix +++ b/pkgs/development/python-modules/netio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyopenssl -, pythonOlder -, pythonRelaxDepsHook -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyopenssl, + pythonOlder, + pythonRelaxDepsHook, + requests, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pyopenssl" - ]; + pythonRelaxDeps = [ "pyopenssl" ]; propagatedBuildInputs = [ requests pyopenssl ]; - pythonImportsCheck = [ - "Netio" - ]; + pythonImportsCheck = [ "Netio" ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/netmap/default.nix b/pkgs/development/python-modules/netmap/default.nix index 11133c44f880..c863ae189dcb 100644 --- a/pkgs/development/python-modules/netmap/default.nix +++ b/pkgs/development/python-modules/netmap/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, nmap -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + nmap, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/netmiko/default.nix b/pkgs/development/python-modules/netmiko/default.nix index f893ce204455..868de524a05e 100644 --- a/pkgs/development/python-modules/netmiko/default.nix +++ b/pkgs/development/python-modules/netmiko/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, ntc-templates -, paramiko -, pyserial -, pyyaml -, scp -, textfsm + # dependencies + ntc-templates, + paramiko, + pyserial, + pyyaml, + scp, + textfsm, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "poetry.masonry.api" "poetry.core.masonry.api" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ ntc-templates @@ -47,8 +46,7 @@ buildPythonPackage rec { doCheck = false; meta = with lib; { - description = - "Multi-vendor library to simplify Paramiko SSH connections to network devices"; + description = "Multi-vendor library to simplify Paramiko SSH connections to network devices"; homepage = "https://github.com/ktbyers/netmiko/"; license = licenses.mit; maintainers = [ maintainers.astro ]; diff --git a/pkgs/development/python-modules/networkx/default.nix b/pkgs/development/python-modules/networkx/default.nix index ac0bd456bcda..eb3051d8e14b 100644 --- a/pkgs/development/python-modules/networkx/default.nix +++ b/pkgs/development/python-modules/networkx/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# optional-dependencies -, lxml -, matplotlib -, numpy -, pandas -, pydot -, pygraphviz -, scipy -, sympy + # optional-dependencies + lxml, + matplotlib, + numpy, + pandas, + pydot, + pygraphviz, + scipy, + sympy, -# tests -, pytest-xdist -, pytestCheckHook + # tests + pytest-xdist, + pytestCheckHook, -# reverse dependency -, sage + # reverse dependency + sage, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-DBJ9iy9IZfWa6cuKr81gtccPMkHr1m997618SrkBJsk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { default = [ @@ -56,7 +55,9 @@ buildPythonPackage rec { ]; }; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; nativeCheckInputs = [ pytest-xdist diff --git a/pkgs/development/python-modules/nevow/default.nix b/pkgs/development/python-modules/nevow/default.nix index af5b5374b5b0..65350eb230b1 100644 --- a/pkgs/development/python-modules/nevow/default.nix +++ b/pkgs/development/python-modules/nevow/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, twisted }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + twisted, +}: buildPythonPackage rec { pname = "nevow"; diff --git a/pkgs/development/python-modules/newick/default.nix b/pkgs/development/python-modules/newick/default.nix index 317a9c582b3d..6fdfec5fb1ea 100644 --- a/pkgs/development/python-modules/newick/default.nix +++ b/pkgs/development/python-modules/newick/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,22 +20,16 @@ buildPythonPackage rec { hash = "sha256-TxyR6RYvy2oIcDNZnHrExtPYGspyWOtZqNy488OmWwk="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; postPatch = '' # remove coverage arguments to pytest sed -i '/--cov/d' setup.cfg ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "newick" - ]; + pythonImportsCheck = [ "newick" ]; meta = with lib; { description = "A python package to read and write the Newick format"; diff --git a/pkgs/development/python-modules/newversion/default.nix b/pkgs/development/python-modules/newversion/default.nix index fec4f1b0f41f..5017d68ebe4d 100644 --- a/pkgs/development/python-modules/newversion/default.nix +++ b/pkgs/development/python-modules/newversion/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-v9hfk2/hBkWtOobQdaYXNOZTTcEqnMV6JYqtjjoidOs="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "newversion" - ]; + pythonImportsCheck = [ "newversion" ]; meta = with lib; { description = "PEP 440 version manager"; diff --git a/pkgs/development/python-modules/nexia/default.nix b/pkgs/development/python-modules/nexia/default.nix index 79edcd2d1bdf..48fa24155c7c 100644 --- a/pkgs/development/python-modules/nexia/default.nix +++ b/pkgs/development/python-modules/nexia/default.nix @@ -1,14 +1,15 @@ -{ lib -, aioresponses -, buildPythonPackage -, orjson -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools +{ + lib, + aioresponses, + buildPythonPackage, + orjson, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace '"pytest-runner",' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ orjson @@ -46,9 +45,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nexia" - ]; + pythonImportsCheck = [ "nexia" ]; meta = with lib; { description = "Python module for Nexia thermostats"; diff --git a/pkgs/development/python-modules/nextcloudmonitor/default.nix b/pkgs/development/python-modules/nextcloudmonitor/default.nix index 473f7b6b5904..89ab454cae1b 100644 --- a/pkgs/development/python-modules/nextcloudmonitor/default.nix +++ b/pkgs/development/python-modules/nextcloudmonitor/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-3RVGE1vMLtVkZ4+/GwnNs4onctSw1dz6bsV1CC/gnpM="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/nextcord/default.nix b/pkgs/development/python-modules/nextcord/default.nix index 4a5faf4c33a8..83b34084a0a5 100644 --- a/pkgs/development/python-modules/nextcord/default.nix +++ b/pkgs/development/python-modules/nextcord/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, substituteAll -, ffmpeg -, libopus -, aiohttp -, aiodns -, brotli -, faust-cchardet -, orjson -, pynacl +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + ffmpeg, + libopus, + aiohttp, + aiodns, + brotli, + faust-cchardet, + orjson, + pynacl, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nfcpy/default.nix b/pkgs/development/python-modules/nfcpy/default.nix index bf5f538da33c..c1fba877eeaa 100644 --- a/pkgs/development/python-modules/nfcpy/default.nix +++ b/pkgs/development/python-modules/nfcpy/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, libusb1 -, mock -, ndeflib -, pydes -, pyserial -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libusb1, + mock, + ndeflib, + pydes, + pyserial, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nfc" - ]; + pythonImportsCheck = [ "nfc" ]; disabledTestPaths = [ # AttributeError: 'NoneType' object has no attribute 'EC_KEY' @@ -58,4 +57,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fab ]; }; } - diff --git a/pkgs/development/python-modules/nh3/default.nix b/pkgs/development/python-modules/nh3/default.nix index 5c627edadeeb..7c7a8895edff 100644 --- a/pkgs/development/python-modules/nh3/default.nix +++ b/pkgs/development/python-modules/nh3/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, rustPlatform -, libiconv -, fetchFromGitHub -, darwin +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + rustPlatform, + libiconv, + fetchFromGitHub, + darwin, }: let pname = "nh3"; @@ -28,7 +29,10 @@ buildPythonPackage { hash = "sha256-fetAE3cj9hh4SoPE72Bqco5ytUMiDqbazeS2MHdUibM="; }; - nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; + nativeBuildInputs = with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv diff --git a/pkgs/development/python-modules/niaaml/default.nix b/pkgs/development/python-modules/niaaml/default.nix index d2b9868cacac..88bcb450fbf5 100644 --- a/pkgs/development/python-modules/niaaml/default.nix +++ b/pkgs/development/python-modules/niaaml/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, niapy -, numpy -, pandas -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, scikit-learn -, toml-adapt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + niapy, + numpy, + pandas, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + scikit-learn, + toml-adapt, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-d6UlpMrT0GBZlcD1BCZxInXTdyFMBVltxnSyUFbSy0g="; }; - pythonRelaxDeps = [ - "pandas" - ]; + pythonRelaxDeps = [ "pandas" ]; nativeBuildInputs = [ poetry-core @@ -49,13 +48,9 @@ buildPythonPackage rec { toml-adapt -path pyproject.toml -a change -dep niapy -ver X ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "niaaml" - ]; + pythonImportsCheck = [ "niaaml" ]; meta = with lib; { description = "Python automated machine learning framework"; diff --git a/pkgs/development/python-modules/niaarm/default.nix b/pkgs/development/python-modules/niaarm/default.nix index ff61dfd1eb8d..09615a1a228a 100644 --- a/pkgs/development/python-modules/niaarm/default.nix +++ b/pkgs/development/python-modules/niaarm/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, niapy -, nltk -, numpy -, pandas -, poetry-core -, pytestCheckHook -, pythonOlder -, tomli +{ + lib, + buildPythonPackage, + fetchFromGitHub, + niapy, + nltk, + numpy, + pandas, + poetry-core, + pytestCheckHook, + pythonOlder, + tomli, }: buildPythonPackage rec { @@ -25,31 +26,23 @@ buildPythonPackage rec { hash = "sha256-J3126RSJYBCSyxoPsvsDgmx9E+9fP2h6avPiCHISL7c="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ niapy nltk numpy pandas - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; disabledTests = [ # Test requires extra nltk data dependency "test_text_mining" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "niaarm" - ]; + pythonImportsCheck = [ "niaarm" ]; meta = with lib; { description = "A minimalistic framework for Numerical Association Rule Mining"; diff --git a/pkgs/development/python-modules/niaclass/default.nix b/pkgs/development/python-modules/niaclass/default.nix index 796bb17063f9..f5c6d10f6302 100644 --- a/pkgs/development/python-modules/niaclass/default.nix +++ b/pkgs/development/python-modules/niaclass/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, niapy -, numpy -, pandas -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, scikit-learn -, toml-adapt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + niapy, + numpy, + pandas, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + scikit-learn, + toml-adapt, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-C3EF18lzheE+dXHJA6WJNFECAH4HfPiCDo7QxtHvOLI="; }; - pythonRelaxDeps = [ - "pandas" - ]; + pythonRelaxDeps = [ "pandas" ]; nativeBuildInputs = [ poetry-core @@ -48,13 +47,9 @@ buildPythonPackage rec { toml-adapt -path pyproject.toml -a change -dep scikit-learn -ver X ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "niaclass" - ]; + pythonImportsCheck = [ "niaclass" ]; meta = with lib; { description = "A framework for solving classification tasks using Nature-inspired algorithms"; @@ -64,4 +59,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ firefly-cpp ]; }; } - diff --git a/pkgs/development/python-modules/nianet/default.nix b/pkgs/development/python-modules/nianet/default.nix index d91f278a5906..6a9761783838 100644 --- a/pkgs/development/python-modules/nianet/default.nix +++ b/pkgs/development/python-modules/nianet/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, niapy -, numpy -, poetry-core -, pytestCheckHook -, pythonOlder -, scikit-learn -, toml-adapt -, tomli -, torch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + niapy, + numpy, + poetry-core, + pytestCheckHook, + pythonOlder, + scikit-learn, + toml-adapt, + tomli, + torch, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { tomli ]; - pythonImportsCheck = [ - "nianet" - ]; + pythonImportsCheck = [ "nianet" ]; meta = with lib; { description = "Designing and constructing neural network topologies using nature-inspired algorithms"; diff --git a/pkgs/development/python-modules/nibabel/default.nix b/pkgs/development/python-modules/nibabel/default.nix index 9b70a4fe2074..1fb80ed06f34 100644 --- a/pkgs/development/python-modules/nibabel/default.nix +++ b/pkgs/development/python-modules/nibabel/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pythonOlder -, hatchling -, hatch-vcs -, numpy -, packaging -, importlib-resources -, pydicom -, pillow -, h5py -, scipy -, git -, pytest-doctestplus -, pytest-httpserver -, pytest-xdist -, pytest7CheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + pythonOlder, + hatchling, + hatch-vcs, + numpy, + packaging, + importlib-resources, + pydicom, + pillow, + h5py, + scipy, + git, + pytest-doctestplus, + pytest-httpserver, + pytest-xdist, + pytest7CheckHook, }: buildPythonPackage rec { @@ -39,28 +40,14 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy packaging - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; passthru.optional-dependencies = rec { - all = dicom - ++ dicomfs - ++ minc2 - ++ spm - ++ zstd; - dicom = [ - pydicom - ]; - dicomfs = [ - pillow - ] ++ dicom; - minc2 = [ - h5py - ]; - spm = [ - scipy - ]; + all = dicom ++ dicomfs ++ minc2 ++ spm ++ zstd; + dicom = [ pydicom ]; + dicomfs = [ pillow ] ++ dicom; + minc2 = [ h5py ]; + spm = [ scipy ]; zstd = [ # TODO: pyzstd ]; diff --git a/pkgs/development/python-modules/nibe/default.nix b/pkgs/development/python-modules/nibe/default.nix index d065f93ade21..e424523b6d8f 100644 --- a/pkgs/development/python-modules/nibe/default.nix +++ b/pkgs/development/python-modules/nibe/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, aresponses -, async-modbus -, async-timeout -, asyncclick -, buildPythonPackage -, construct -, exceptiongroup -, fetchFromGitHub -, pandas -, pytest-asyncio -, pytestCheckHook -, python-slugify -, pythonOlder -, setuptools -, tenacity +{ + lib, + aiohttp, + aresponses, + async-modbus, + async-timeout, + asyncclick, + buildPythonPackage, + construct, + exceptiongroup, + fetchFromGitHub, + pandas, + pytest-asyncio, + pytestCheckHook, + python-slugify, + pythonOlder, + setuptools, + tenacity, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-j8P/lhBjlsmnOc4Cv/a2Hdf2EPO8CEpT4IOQHtiBgQA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ async-modbus @@ -48,9 +47,7 @@ buildPythonPackage rec { pandas python-slugify ]; - cli = [ - asyncclick - ]; + cli = [ asyncclick ]; }; nativeCheckInputs = [ @@ -59,9 +56,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nibe" - ]; + pythonImportsCheck = [ "nibe" ]; meta = with lib; { description = "Library for the communication with Nibe heatpumps"; diff --git a/pkgs/development/python-modules/nidaqmx/default.nix b/pkgs/development/python-modules/nidaqmx/default.nix index 04ae611925db..c7efc2f3fb12 100644 --- a/pkgs/development/python-modules/nidaqmx/default.nix +++ b/pkgs/development/python-modules/nidaqmx/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, numpy -, pytestCheckHook -, pykka -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + numpy, + pytestCheckHook, + pykka, + pythonAtLeast, }: # Note we currently do not patch the path to the drivers @@ -44,9 +45,7 @@ buildPythonPackage rec { # Fixture "x_series_device" called directly. Fixtures are not meant to be called directly doCheck = false; - pythonImportsCheck = [ - "nidaqmx.task" - ]; + pythonImportsCheck = [ "nidaqmx.task" ]; meta = { description = "API for interacting with the NI-DAQmx driver"; diff --git a/pkgs/development/python-modules/niko-home-control/default.nix b/pkgs/development/python-modules/niko-home-control/default.nix index 46707205e863..7d60e6982073 100644 --- a/pkgs/development/python-modules/niko-home-control/default.nix +++ b/pkgs/development/python-modules/niko-home-control/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nclib -, netaddr -, netifaces -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nclib, + netaddr, + netifaces, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "nikohomecontrol" - ]; + pythonImportsCheck = [ "nikohomecontrol" ]; meta = with lib; { description = "Python SDK for Niko Home Control"; diff --git a/pkgs/development/python-modules/nikola/default.nix b/pkgs/development/python-modules/nikola/default.nix index 2b9e37d62dae..3af0fd4b9eb6 100644 --- a/pkgs/development/python-modules/nikola/default.nix +++ b/pkgs/development/python-modules/nikola/default.nix @@ -1,44 +1,45 @@ -{ lib -, aiohttp -, babel -, blinker -, buildPythonPackage -, docutils -, doit -, feedparser -, fetchPypi -, fetchpatch2 -, freezegun -, ghp-import -, hsluv -, html5lib -, ipykernel -, jinja2 -, lxml -, mako -, markdown -, micawber -, mock -, natsort -, notebook -, phpserialize -, piexif -, pillow -, pygal -, pygments -, pyphen -, pyrss2gen -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, ruamel-yaml -, setuptools -, toml -, typogrify -, unidecode -, watchdog -, yapsy +{ + lib, + aiohttp, + babel, + blinker, + buildPythonPackage, + docutils, + doit, + feedparser, + fetchPypi, + fetchpatch2, + freezegun, + ghp-import, + hsluv, + html5lib, + ipykernel, + jinja2, + lxml, + mako, + markdown, + micawber, + mock, + natsort, + notebook, + phpserialize, + piexif, + pillow, + pygal, + pygments, + pyphen, + pyrss2gen, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + ruamel-yaml, + setuptools, + toml, + typogrify, + unidecode, + watchdog, + yapsy, }: buildPythonPackage rec { @@ -67,9 +68,7 @@ buildPythonPackage rec { --replace-fail "--cov nikola --cov-report term-missing" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -122,9 +121,7 @@ buildPythonPackage rec { "test_format_date_locale_variants" ]; - pythonImportsCheck = [ - "nikola" - ]; + pythonImportsCheck = [ "nikola" ]; meta = with lib; { description = "Static website and blog generator"; diff --git a/pkgs/development/python-modules/nilearn/default.nix b/pkgs/development/python-modules/nilearn/default.nix index c4088ca7e42d..89c0c7136247 100644 --- a/pkgs/development/python-modules/nilearn/default.nix +++ b/pkgs/development/python-modules/nilearn/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook -, hatch-vcs -, lxml -, matplotlib -, nibabel -, numpy -, pandas -, scikit-learn -, scipy -, joblib -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + hatch-vcs, + lxml, + matplotlib, + nibabel, + numpy, + pandas, + scikit-learn, + scipy, + joblib, + requests, }: buildPythonPackage rec { @@ -30,7 +31,7 @@ buildPythonPackage rec { nativeBuildInputs = [ hatch-vcs ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ "test_clean_confounds" ]; # https://github.com/nilearn/nilearn/issues/2608 + disabledTests = [ "test_clean_confounds" ]; # https://github.com/nilearn/nilearn/issues/2608 # do subset of tests which don't fetch resources pytestFlagsArray = [ "nilearn/connectome/tests" ]; diff --git a/pkgs/development/python-modules/niluclient/default.nix b/pkgs/development/python-modules/niluclient/default.nix index 7f6aa69da61e..6e667a277616 100644 --- a/pkgs/development/python-modules/niluclient/default.nix +++ b/pkgs/development/python-modules/niluclient/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "11ymn0cr4lchrcnf2xxlgljw223gwln01gxwr7mcgf95yc4006iq"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/nimfa/default.nix b/pkgs/development/python-modules/nimfa/default.nix index a253b04228f6..53c9fd3f41f4 100644 --- a/pkgs/development/python-modules/nimfa/default.nix +++ b/pkgs/development/python-modules/nimfa/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, numpy -, scipy -, matplotlib -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + numpy, + scipy, + matplotlib, + pytest, }: buildPythonPackage rec { @@ -18,9 +19,15 @@ buildPythonPackage rec { sha256 = "39cff2b86856d03ca8a3d9c38598034ecf1a768c325fd3a728bb9eadb8c6b919"; }; - propagatedBuildInputs = [ numpy scipy ]; - nativeCheckInputs = [ matplotlib pytest ]; - doCheck = !isPy3k; # https://github.com/marinkaz/nimfa/issues/42 + propagatedBuildInputs = [ + numpy + scipy + ]; + nativeCheckInputs = [ + matplotlib + pytest + ]; + doCheck = !isPy3k; # https://github.com/marinkaz/nimfa/issues/42 meta = with lib; { description = "Nonnegative matrix factorization library"; diff --git a/pkgs/development/python-modules/nine/default.nix b/pkgs/development/python-modules/nine/default.nix index a969399d3384..70caf70ca065 100644 --- a/pkgs/development/python-modules/nine/default.nix +++ b/pkgs/development/python-modules/nine/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "https://github.com/nandoflorestan/nine"; license = licenses.free; }; - } diff --git a/pkgs/development/python-modules/ninebot-ble/default.nix b/pkgs/development/python-modules/ninebot-ble/default.nix index 79f00a7e19ff..fc57a8c7de3f 100644 --- a/pkgs/development/python-modules/ninebot-ble/default.nix +++ b/pkgs/development/python-modules/ninebot-ble/default.nix @@ -1,14 +1,15 @@ -{ lib -, bleak -, bleak-retry-connector -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, miauth -, pythonOlder -, setuptools -, wheel +{ + lib, + bleak, + bleak-retry-connector, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + miauth, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { # Module has no test doCheck = false; - pythonImportsCheck = [ - "ninebot_ble" - ]; + pythonImportsCheck = [ "ninebot_ble" ]; meta = with lib; { description = "Ninebot scooter BLE client"; @@ -53,4 +52,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fab ]; }; } - diff --git a/pkgs/development/python-modules/ninja/default.nix b/pkgs/development/python-modules/ninja/default.nix index 4bf4c83ad434..03cce9fae929 100644 --- a/pkgs/development/python-modules/ninja/default.nix +++ b/pkgs/development/python-modules/ninja/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, flit-core -, ninja +{ + lib, + buildPythonPackage, + flit-core, + ninja, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { inherit (ninja) setupHook; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; preBuild = '' cp "${ninja.src}/misc/ninja_syntax.py" ninja/ninja_syntax.py @@ -44,6 +43,9 @@ buildPythonPackage rec { ''; homepage = "https://github.com/scikit-build/ninja-python-distributions"; license = licenses.asl20; - maintainers = with maintainers; [ _999eagle tjni ]; + maintainers = with maintainers; [ + _999eagle + tjni + ]; }; } diff --git a/pkgs/development/python-modules/nipreps-versions/default.nix b/pkgs/development/python-modules/nipreps-versions/default.nix index 1c54ab9d905e..ab824cdda0c2 100644 --- a/pkgs/development/python-modules/nipreps-versions/default.nix +++ b/pkgs/development/python-modules/nipreps-versions/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, flit-scm -, packaging -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + flit-scm, + packaging, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "nipreps_versions" ]; diff --git a/pkgs/development/python-modules/nipy/default.nix b/pkgs/development/python-modules/nipy/default.nix index a5807ae224d5..e245aafa0791 100644 --- a/pkgs/development/python-modules/nipy/default.nix +++ b/pkgs/development/python-modules/nipy/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, cython -, meson-python -, ninja -, setuptools + # build-system + cython, + meson-python, + ninja, + setuptools, -# dependencies -, numpy -, scipy -, nibabel -, sympy -, transforms3d + # dependencies + numpy, + scipy, + nibabel, + sympy, + transforms3d, -# optional-dependencies -, matplotlib + # optional-dependencies + matplotlib, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -52,13 +53,9 @@ buildPythonPackage rec { transforms3d ]; - optional-dependencies.optional = [ - matplotlib - ]; + optional-dependencies.optional = [ matplotlib ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ optional-dependencies.optional; + nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.optional; doCheck = false; # partial imports … circular dependencies. needs more time to figure out. @@ -74,5 +71,4 @@ buildPythonPackage rec { downloadPage = "https://github.com/nipy/nipy"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/nipype/default.nix b/pkgs/development/python-modules/nipype/default.nix index 2c6d00517df1..c592b35c076b 100644 --- a/pkgs/development/python-modules/nipype/default.nix +++ b/pkgs/development/python-modules/nipype/default.nix @@ -1,43 +1,45 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook -# python dependencies -, click -, python-dateutil -, etelemetry -, filelock -, funcsigs -, future -, looseversion -, mock -, networkx -, nibabel -, numpy -, packaging -, prov -, psutil -, pybids -, pydot -, pytest -, pytest-xdist -, pytest-forked -, rdflib -, scipy -, simplejson -, traits -, xvfbwrapper -, codecov -# other dependencies -, which -, bash -, glibcLocales -, callPackage -# causes Python packaging conflict with any package requiring rdflib, -# so use the unpatched rdflib by default (disables Nipype provenance tracking); -# see https://github.com/nipy/nipype/issues/2888: -, useNeurdflib ? false +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, + # python dependencies + click, + python-dateutil, + etelemetry, + filelock, + funcsigs, + future, + looseversion, + mock, + networkx, + nibabel, + numpy, + packaging, + prov, + psutil, + pybids, + pydot, + pytest, + pytest-xdist, + pytest-forked, + rdflib, + scipy, + simplejson, + traits, + xvfbwrapper, + codecov, + # other dependencies + which, + bash, + glibcLocales, + callPackage, + # causes Python packaging conflict with any package requiring rdflib, + # so use the unpatched rdflib by default (disables Nipype provenance tracking); + # see https://github.com/nipy/nipype/issues/2888: + useNeurdflib ? false, }: buildPythonPackage rec { @@ -56,9 +58,7 @@ buildPythonPackage rec { --replace "/usr/bin/env bash" "${bash}/bin/bash" ''; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "traits" ]; diff --git a/pkgs/development/python-modules/nitime/default.nix b/pkgs/development/python-modules/nitime/default.nix index cba5f0da29db..3e711b1bc7a7 100644 --- a/pkgs/development/python-modules/nitime/default.nix +++ b/pkgs/development/python-modules/nitime/default.nix @@ -1,18 +1,19 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook -, cython -, setuptools -, setuptools-scm -, wheel -, numpy -, scipy -, matplotlib -, networkx -, nibabel +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + cython, + setuptools, + setuptools-scm, + wheel, + numpy, + scipy, + matplotlib, + networkx, + nibabel, }: buildPythonPackage rec { @@ -50,7 +51,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - doCheck = !stdenv.isDarwin; # tests hang indefinitely + doCheck = !stdenv.isDarwin; # tests hang indefinitely pythonImportsCheck = [ "nitime" ]; diff --git a/pkgs/development/python-modules/nitransforms/default.nix b/pkgs/development/python-modules/nitransforms/default.nix index a05c9661e69e..2729f23eab35 100644 --- a/pkgs/development/python-modules/nitransforms/default.nix +++ b/pkgs/development/python-modules/nitransforms/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook -, h5py -, nibabel -, numpy -, scipy -, setuptools-scm -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, + h5py, + nibabel, + numpy, + scipy, + setuptools-scm, + toml, }: buildPythonPackage rec { @@ -23,8 +24,16 @@ buildPythonPackage rec { }; nativeBuildInputs = [ pythonRelaxDepsHook ]; - buildInputs = [ setuptools-scm toml ]; - propagatedBuildInputs = [ h5py nibabel numpy scipy ]; + buildInputs = [ + setuptools-scm + toml + ]; + propagatedBuildInputs = [ + h5py + nibabel + numpy + scipy + ]; pythonRelaxDeps = [ "scipy" ]; diff --git a/pkgs/development/python-modules/niworkflows/default.nix b/pkgs/development/python-modules/niworkflows/default.nix index 1616cfff4637..28e6cffca08b 100644 --- a/pkgs/development/python-modules/niworkflows/default.nix +++ b/pkgs/development/python-modules/niworkflows/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, pytestCheckHook -, attrs -, importlib-resources -, jinja2 -, looseversion -, matplotlib -, nibabel -, nilearn -, nipype -, nitransforms -, numpy -, packaging -, pandas -, pybids -, pyyaml -, scikit-image -, scipy -, seaborn -, svgutils -, templateflow -, traits -, transforms3d +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + pytestCheckHook, + attrs, + importlib-resources, + jinja2, + looseversion, + matplotlib, + nibabel, + nilearn, + nipype, + nitransforms, + numpy, + packaging, + pandas, + pybids, + pyyaml, + scikit-image, + scipy, + seaborn, + svgutils, + templateflow, + traits, + transforms3d, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nix-kernel/default.nix b/pkgs/development/python-modules/nix-kernel/default.nix index c03db9cf42f2..a0b65797ff43 100644 --- a/pkgs/development/python-modules/nix-kernel/default.nix +++ b/pkgs/development/python-modules/nix-kernel/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, pexpect -, notebook -, nix +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + pexpect, + notebook, + nix, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nix-prefetch-github/default.nix b/pkgs/development/python-modules/nix-prefetch-github/default.nix index 6424c5a7bc0f..de23fe6548bd 100644 --- a/pkgs/development/python-modules/nix-prefetch-github/default.nix +++ b/pkgs/development/python-modules/nix-prefetch-github/default.nix @@ -1,14 +1,15 @@ -{ fetchFromGitHub -, lib -, buildPythonPackage -, git -, which -, pythonOlder -, unittestCheckHook -, sphinxHook -, sphinx-argparse -, parameterized -, setuptools +{ + fetchFromGitHub, + lib, + buildPythonPackage, + git, + which, + pythonOlder, + unittestCheckHook, + sphinxHook, + sphinx-argparse, + parameterized, + setuptools, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { version = "7.1.0"; pyproject = true; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; disabled = pythonOlder "3.9"; src = fetchFromGitHub { @@ -26,8 +30,17 @@ buildPythonPackage rec { hash = "sha256-eQd/MNlnuzXzgFzvwUMchvHoIvkIrbpGKV7iknO14Cc="; }; - nativeBuildInputs = [ sphinxHook sphinx-argparse setuptools ]; - nativeCheckInputs = [ unittestCheckHook git which parameterized ]; + nativeBuildInputs = [ + sphinxHook + sphinx-argparse + setuptools + ]; + nativeCheckInputs = [ + unittestCheckHook + git + which + parameterized + ]; sphinxBuilders = [ "man" ]; sphinxRoot = "docs"; diff --git a/pkgs/development/python-modules/nixpkgs-pytools/default.nix b/pkgs/development/python-modules/nixpkgs-pytools/default.nix index d6c3c89887ec..a8bedf7bc2e0 100644 --- a/pkgs/development/python-modules/nixpkgs-pytools/default.nix +++ b/pkgs/development/python-modules/nixpkgs-pytools/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, setuptools -, rope -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + setuptools, + rope, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nixpkgs/default.nix b/pkgs/development/python-modules/nixpkgs/default.nix index 6deb9bac96ed..989eb91287d8 100644 --- a/pkgs/development/python-modules/nixpkgs/default.nix +++ b/pkgs/development/python-modules/nixpkgs/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, pythonix -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + pythonix, + pythonAtLeast, }: buildPythonPackage rec { pname = "nixpkgs"; version = "0.2.4"; format = "setuptools"; - disabled = ! pythonAtLeast "3.5"; + disabled = !pythonAtLeast "3.5"; src = fetchPypi { inherit pname version; @@ -30,5 +31,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ t184256 ]; }; - } diff --git a/pkgs/development/python-modules/nkdfu/default.nix b/pkgs/development/python-modules/nkdfu/default.nix index 28274467efb9..0ebb513c2b18 100644 --- a/pkgs/development/python-modules/nkdfu/default.nix +++ b/pkgs/development/python-modules/nkdfu/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi, flit-core, fire, tqdm, intelhex, libusb1 }: +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + fire, + tqdm, + intelhex, + libusb1, +}: buildPythonPackage rec { pname = "nkdfu"; @@ -10,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-8l913dOCxHKFtpQ83p9RV3sUlu0oT5PVi14FSuYJ9fg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ fire diff --git a/pkgs/development/python-modules/nlpcloud/default.nix b/pkgs/development/python-modules/nlpcloud/default.nix index cbc28feb1577..f9e16e828652 100644 --- a/pkgs/development/python-modules/nlpcloud/default.nix +++ b/pkgs/development/python-modules/nlpcloud/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-NmNu1Rf6mN+Q8FdpeNYQ508ksqkIV7oOp8CrlDN1qPU="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "nlpcloud" - ]; + pythonImportsCheck = [ "nlpcloud" ]; meta = with lib; { description = "Python client for the NLP Cloud API"; diff --git a/pkgs/development/python-modules/nltk/default.nix b/pkgs/development/python-modules/nltk/default.nix index cfac189b06f5..7ce26cdb7a1c 100644 --- a/pkgs/development/python-modules/nltk/default.nix +++ b/pkgs/development/python-modules/nltk/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, click -, joblib -, regex -, tqdm +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + click, + joblib, + regex, + tqdm, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # best. doCheck = false; - pythonImportsCheck = [ - "nltk" - ]; + pythonImportsCheck = [ "nltk" ]; meta = with lib; { description = "Natural Language Processing ToolKit"; diff --git a/pkgs/development/python-modules/nmapthon2/default.nix b/pkgs/development/python-modules/nmapthon2/default.nix index 4c8a66c91a55..8f2ade7951a5 100644 --- a/pkgs/development/python-modules/nmapthon2/default.nix +++ b/pkgs/development/python-modules/nmapthon2/default.nix @@ -1,9 +1,10 @@ -{ lib -, appdirs -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + appdirs, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-4Na75TdKDywUomJF4tDWUWwCCtcOSxBUMOF7+FDhbpY="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/scanner_tests.py" - ]; + pytestFlagsArray = [ "tests/scanner_tests.py" ]; - pythonImportsCheck = [ - "nmapthon2" - ]; + pythonImportsCheck = [ "nmapthon2" ]; meta = with lib; { description = "Python library to automate nmap"; diff --git a/pkgs/development/python-modules/nocasedict/default.nix b/pkgs/development/python-modules/nocasedict/default.nix index eb9677438e62..0dc0ab862994 100644 --- a/pkgs/development/python-modules/nocasedict/default.nix +++ b/pkgs/development/python-modules/nocasedict/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest7CheckHook -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytest7CheckHook, + six, }: buildPythonPackage rec { @@ -15,17 +16,11 @@ buildPythonPackage rec { hash = "sha256-HJImx/WoqXrVHcsK4xV6cg4/fLnEVo0i6joF4/hWWKk="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytest7CheckHook - ]; + nativeCheckInputs = [ pytest7CheckHook ]; - pythonImportsCheck = [ - "nocasedict" - ]; + pythonImportsCheck = [ "nocasedict" ]; meta = with lib; { description = "A case-insensitive ordered dictionary for Python"; diff --git a/pkgs/development/python-modules/nocaselist/default.nix b/pkgs/development/python-modules/nocaselist/default.nix index dd667c0a3c71..176426b101bb 100644 --- a/pkgs/development/python-modules/nocaselist/default.nix +++ b/pkgs/development/python-modules/nocaselist/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest7CheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytest7CheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-MnCLcAoaUxM+a7XMUzMsl3Wwx8lZpflyV5MXH9L0yKU="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytest7CheckHook - ]; + nativeCheckInputs = [ pytest7CheckHook ]; - pythonImportsCheck = [ - "nocaselist" - ]; + pythonImportsCheck = [ "nocaselist" ]; meta = with lib; { description = "A case-insensitive list for Python"; diff --git a/pkgs/development/python-modules/nocturne/default.nix b/pkgs/development/python-modules/nocturne/default.nix index 036c3af91e19..f0a4978e45c1 100644 --- a/pkgs/development/python-modules/nocturne/default.nix +++ b/pkgs/development/python-modules/nocturne/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, cmake -, fetchFromGitHub -, gtest -, hydra-core -, lib -, nlohmann_json -, pybind11 -, pyvirtualdisplay -, sfml -, substituteAll +{ + buildPythonPackage, + cmake, + fetchFromGitHub, + gtest, + hydra-core, + lib, + nlohmann_json, + pybind11, + pyvirtualdisplay, + sfml, + substituteAll, }: buildPythonPackage rec { @@ -43,14 +44,15 @@ buildPythonPackage rec { buildInputs = [ sfml ]; # hydra-core and pyvirtualdisplay are not declared as dependences but they are requirements - propagatedBuildInputs = [ hydra-core pyvirtualdisplay ]; + propagatedBuildInputs = [ + hydra-core + pyvirtualdisplay + ]; # Test suite requires hydra-submitit-launcher which is not packaged as of 2022-01-02 doCheck = false; - pythonImportsCheck = [ - "nocturne" - ]; + pythonImportsCheck = [ "nocturne" ]; meta = with lib; { description = "A data-driven, fast driving simulator for multi-agent coordination under partial observability"; diff --git a/pkgs/development/python-modules/node-semver/default.nix b/pkgs/development/python-modules/node-semver/default.nix index 2fb460bc006d..ca1d2493368d 100644 --- a/pkgs/development/python-modules/node-semver/default.nix +++ b/pkgs/development/python-modules/node-semver/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-Ncl+RUvy9G9lF3EzLz2HfiDB02tEgAlZ34Wbn4mlF6Y="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nodesemver" - ]; + pythonImportsCheck = [ "nodesemver" ]; meta = with lib; { changelog = "https://github.com/podhmo/python-node-semver/blob/${version}/CHANGES.txt"; diff --git a/pkgs/development/python-modules/nodeenv/default.nix b/pkgs/development/python-modules/nodeenv/default.nix index 8efd0b492e76..32d5973f5cd6 100644 --- a/pkgs/development/python-modules/nodeenv/default.nix +++ b/pkgs/development/python-modules/nodeenv/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, python -, pythonOlder -, setuptools -, which +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + python, + pythonOlder, + setuptools, + which, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-aW/aNZbFXfP4bF/Nlvv419IDfaJRA1pJYM7awj+6Hz0="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; nativeCheckInputs = [ mock @@ -37,9 +36,7 @@ buildPythonPackage rec { --replace '["which", candidate]' '["${lib.getBin which}/bin/which", candidate]' ''; - pythonImportsCheck = [ - "nodeenv" - ]; + pythonImportsCheck = [ "nodeenv" ]; disabledTests = [ # Test requires coverage diff --git a/pkgs/development/python-modules/nodepy-runtime/default.nix b/pkgs/development/python-modules/nodepy-runtime/default.nix index baa078f9082e..ed76a6c56c95 100644 --- a/pkgs/development/python-modules/nodepy-runtime/default.nix +++ b/pkgs/development/python-modules/nodepy-runtime/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, localimport -, pathlib2 -, six +{ + lib, + buildPythonPackage, + fetchPypi, + localimport, + pathlib2, + six, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { six ]; - pythonImportsCheck = [ - "nodepy" - ]; + pythonImportsCheck = [ "nodepy" ]; meta = with lib; { homepage = "https://github.com/nodepy/nodepy"; diff --git a/pkgs/development/python-modules/noise/default.nix b/pkgs/development/python-modules/noise/default.nix index 10521f06723a..940447c711a8 100644 --- a/pkgs/development/python-modules/noise/default.nix +++ b/pkgs/development/python-modules/noise/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "noise"; diff --git a/pkgs/development/python-modules/norfair/default.nix b/pkgs/development/python-modules/norfair/default.nix index 17c4e3553531..11afdd9533d0 100644 --- a/pkgs/development/python-modules/norfair/default.nix +++ b/pkgs/development/python-modules/norfair/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, filterpy -, importlib-metadata -, numpy -, rich -, scipy -, motmetrics -, opencv4 -, pytestCheckHook -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + filterpy, + importlib-metadata, + numpy, + rich, + scipy, + motmetrics, + opencv4, + pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "rich" - ]; + pythonRelaxDeps = [ "rich" ]; propagatedBuildInputs = [ filterpy @@ -43,21 +42,13 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - metrics = [ - motmetrics - ]; - video = [ - opencv4 - ]; + metrics = [ motmetrics ]; + video = [ opencv4 ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "norfair" - ]; + pythonImportsCheck = [ "norfair" ]; meta = with lib; { description = "Lightweight Python library for adding real-time multi-object tracking to any detector"; diff --git a/pkgs/development/python-modules/nose-exclude/default.nix b/pkgs/development/python-modules/nose-exclude/default.nix index 38d6cd3bb78e..81d4e1a3cb75 100644 --- a/pkgs/development/python-modules/nose-exclude/default.nix +++ b/pkgs/development/python-modules/nose-exclude/default.nix @@ -1,8 +1,9 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, nose +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + nose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nose-pattern-exclude/default.nix b/pkgs/development/python-modules/nose-pattern-exclude/default.nix index cb0ef287cef1..62fc26fe7b7a 100644 --- a/pkgs/development/python-modules/nose-pattern-exclude/default.nix +++ b/pkgs/development/python-modules/nose-pattern-exclude/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + nose, +}: buildPythonPackage rec { pname = "nose-pattern-exclude"; diff --git a/pkgs/development/python-modules/nose-timer/default.nix b/pkgs/development/python-modules/nose-timer/default.nix index 51b4bf80d0e8..07854ada5e11 100644 --- a/pkgs/development/python-modules/nose-timer/default.nix +++ b/pkgs/development/python-modules/nose-timer/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, mock -, parameterized -, termcolor +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + mock, + parameterized, + termcolor, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nose-warnings-filters/default.nix b/pkgs/development/python-modules/nose-warnings-filters/default.nix index 4de67b60c468..39ad8c46f723 100644 --- a/pkgs/development/python-modules/nose-warnings-filters/default.nix +++ b/pkgs/development/python-modules/nose-warnings-filters/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + nose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nose-xunitmp/default.nix b/pkgs/development/python-modules/nose-xunitmp/default.nix index ee344b2e07ca..18c235dfaade 100644 --- a/pkgs/development/python-modules/nose-xunitmp/default.nix +++ b/pkgs/development/python-modules/nose-xunitmp/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + nose, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { wheel ]; - dependencies = [ - nose - ]; + dependencies = [ nose ]; - pythonImportsCheck = [ - "nose_xunitmp" - ]; + pythonImportsCheck = [ "nose_xunitmp" ]; meta = { description = "Xunit output when running multiprocess tests using nose"; diff --git a/pkgs/development/python-modules/nose/default.nix b/pkgs/development/python-modules/nose/default.nix index d59dd0db6461..6b6417348f63 100644 --- a/pkgs/development/python-modules/nose/default.nix +++ b/pkgs/development/python-modules/nose/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, isPyPy -, python - ,pythonAtLeast -, coverage +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + isPyPy, + python, + pythonAtLeast, + coverage, }: buildPythonPackage rec { @@ -37,12 +38,17 @@ buildPythonPackage rec { propagatedBuildInputs = [ coverage ]; doCheck = false; # lot's of transient errors, too much hassle - checkPhase = if isPy3k then '' - ${python.pythonOnBuildForHost.interpreter} setup.py build_tests - '' else "" + '' - rm functional_tests/test_multiprocessing/test_concurrent_shared.py* # see https://github.com/nose-devs/nose/commit/226bc671c73643887b36b8467b34ad485c2df062 - ${python.pythonOnBuildForHost.interpreter} selftest.py - ''; + checkPhase = + if isPy3k then + '' + ${python.pythonOnBuildForHost.interpreter} setup.py build_tests + '' + else + "" + + '' + rm functional_tests/test_multiprocessing/test_concurrent_shared.py* # see https://github.com/nose-devs/nose/commit/226bc671c73643887b36b8467b34ad485c2df062 + ${python.pythonOnBuildForHost.interpreter} selftest.py + ''; meta = with lib; { broken = isPyPy; # missing 2to3 conversion utility diff --git a/pkgs/development/python-modules/nose2/default.nix b/pkgs/development/python-modules/nose2/default.nix index 4d6e6b3e5c83..9155ae68a6b9 100644 --- a/pkgs/development/python-modules/nose2/default.nix +++ b/pkgs/development/python-modules/nose2/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# optional-dependencies -, coverage + # optional-dependencies + coverage, -# tests -, unittestCheckHook + # tests + unittestCheckHook, }: buildPythonPackage rec { @@ -25,19 +26,13 @@ buildPythonPackage rec { hash = "sha256-f48Dohyd4sMwFZM6/O9yv45KLV3+w7QAkih95uQbCTo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { - coverage = [ - coverage - ]; + coverage = [ coverage ]; }; - pythonImportsCheck = [ - "nose2" - ]; + pythonImportsCheck = [ "nose2" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/nose3/default.nix b/pkgs/development/python-modules/nose3/default.nix index df6d75a07dc5..df0fde3fc4a3 100644 --- a/pkgs/development/python-modules/nose3/default.nix +++ b/pkgs/development/python-modules/nose3/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, coverage -, fetchPypi -, isPyPy -, isPy311 -, python -, pythonAtLeast -, stdenv +{ + lib, + buildPythonPackage, + coverage, + fetchPypi, + isPyPy, + isPy311, + python, + pythonAtLeast, + stdenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nosexcover/default.nix b/pkgs/development/python-modules/nosexcover/default.nix index 19d34904739b..0790e7aa227c 100644 --- a/pkgs/development/python-modules/nosexcover/default.nix +++ b/pkgs/development/python-modules/nosexcover/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, coverage -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + coverage, + nose, }: buildPythonPackage rec { @@ -19,12 +20,14 @@ buildPythonPackage rec { sha256 = "298c3c655da587f6cab8a666e9f4b150320032431062dea91353988d45c8b883"; }; - propagatedBuildInputs = [ coverage nose ]; + propagatedBuildInputs = [ + coverage + nose + ]; meta = with lib; { description = "Extends nose.plugins.cover to add Cobertura-style XML reports"; homepage = "https://github.com/cmheisel/nose-xcover/"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/notebook-shim/default.nix b/pkgs/development/python-modules/notebook-shim/default.nix index c352bd00083c..470c9d91586d 100644 --- a/pkgs/development/python-modules/notebook-shim/default.nix +++ b/pkgs/development/python-modules/notebook-shim/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, jupyter-server -, pytestCheckHook -, pytest-tornasync +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + jupyter-server, + pytestCheckHook, + pytest-tornasync, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/notebook/default.nix b/pkgs/development/python-modules/notebook/default.nix index c1a55c2f0203..6b18e5133301 100644 --- a/pkgs/development/python-modules/notebook/default.nix +++ b/pkgs/development/python-modules/notebook/default.nix @@ -1,17 +1,18 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, hatch-jupyter-builder -, hatchling -, jupyter-server -, jupyterlab -, jupyterlab-server -, notebook-shim -, tornado -, pytest-jupyter -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hatch-jupyter-builder, + hatchling, + jupyter-server, + jupyterlab, + jupyterlab-server, + notebook-shim, + tornado, + pytest-jupyter, + pytestCheckHook, }: buildPythonPackage rec { @@ -51,7 +52,8 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; env = { diff --git a/pkgs/development/python-modules/notedown/default.nix b/pkgs/development/python-modules/notedown/default.nix index f272f5cb0d4b..72666397f044 100644 --- a/pkgs/development/python-modules/notedown/default.nix +++ b/pkgs/development/python-modules/notedown/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchPypi -, lib -, nbconvert -, nbformat -, notebook -, pandoc-attributes -, six +{ + buildPythonPackage, + fetchPypi, + lib, + nbconvert, + nbformat, + notebook, + pandoc-attributes, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/notifications-android-tv/default.nix b/pkgs/development/python-modules/notifications-android-tv/default.nix index 00e43cfe1879..e8ed0bd97f69 100644 --- a/pkgs/development/python-modules/notifications-android-tv/default.nix +++ b/pkgs/development/python-modules/notifications-android-tv/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, poetry-core -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + poetry-core, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,19 +23,13 @@ buildPythonPackage rec { hash = "sha256-Xr+d2uYzgFp/Fb00ymov02+GYnwjGc3FbJ/rIvQXzCE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; pythonImportsCheck = [ "notifications_android_tv" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/notifications-python-client/default.nix b/pkgs/development/python-modules/notifications-python-client/default.nix index 353c5fc3d42e..3ec2874c4591 100644 --- a/pkgs/development/python-modules/notifications-python-client/default.nix +++ b/pkgs/development/python-modules/notifications-python-client/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, freezegun -, mock -, pyjwt -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + freezegun, + mock, + pyjwt, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace "pytest-runner" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ docopt @@ -50,9 +49,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "notifications_python_client" - ]; + pythonImportsCheck = [ "notifications_python_client" ]; meta = with lib; { description = "Python client for the GOV.UK Notify API"; diff --git a/pkgs/development/python-modules/notify-events/default.nix b/pkgs/development/python-modules/notify-events/default.nix index 97d888ae23ce..6a5d1a4bd07a 100644 --- a/pkgs/development/python-modules/notify-events/default.nix +++ b/pkgs/development/python-modules/notify-events/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "e63ba935c3300ff7f48cba115f7cb4474906e83c2e9b60b95a0881eb949701e7"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # upstream has no tests doCheck = false; diff --git a/pkgs/development/python-modules/notify-py/default.nix b/pkgs/development/python-modules/notify-py/default.nix index 9e4a97238699..a0c0b0b96aed 100644 --- a/pkgs/development/python-modules/notify-py/default.nix +++ b/pkgs/development/python-modules/notify-py/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, substituteAll -, alsa-utils -, libnotify -, which -, poetry-core -, pythonRelaxDepsHook -, jeepney -, loguru -, pytest -, dbus -, coreutils +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + alsa-utils, + libnotify, + which, + poetry-core, + pythonRelaxDepsHook, + jeepney, + loguru, + pytest, + dbus, + coreutils, }: buildPythonPackage rec { @@ -30,54 +31,52 @@ buildPythonPackage rec { hash = "sha256-XtjJImH9UwPPZS/Yqs8S5xGXOLBRmJRawzxWXoPWvrM="; }; - patches = lib.optionals stdenv.isLinux [ - # hardcode paths to aplay and notify-send - (substituteAll { - src = ./linux-paths.patch; - aplay = "${alsa-utils}/bin/aplay"; - notifysend = "${libnotify}/bin/notify-send"; - }) - ] ++ lib.optionals stdenv.isDarwin [ - # hardcode path to which - (substituteAll { - src = ./darwin-paths.patch; - which = "${which}/bin/which"; - }) - ]; + patches = + lib.optionals stdenv.isLinux [ + # hardcode paths to aplay and notify-send + (substituteAll { + src = ./linux-paths.patch; + aplay = "${alsa-utils}/bin/aplay"; + notifysend = "${libnotify}/bin/notify-send"; + }) + ] + ++ lib.optionals stdenv.isDarwin [ + # hardcode path to which + (substituteAll { + src = ./darwin-paths.patch; + which = "${which}/bin/which"; + }) + ]; nativeBuildInputs = [ poetry-core pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "loguru" - ]; + pythonRelaxDeps = [ "loguru" ]; - propagatedBuildInputs = [ - loguru - ] ++ lib.optionals stdenv.isLinux [ - jeepney - ]; + propagatedBuildInputs = [ loguru ] ++ lib.optionals stdenv.isLinux [ jeepney ]; - nativeCheckInputs = [ - pytest - ] ++ lib.optionals stdenv.isLinux [ - dbus - ]; + nativeCheckInputs = [ pytest ] ++ lib.optionals stdenv.isLinux [ dbus ]; - checkPhase = if stdenv.isDarwin then '' - # Tests search for "afplay" binary which is built in to macOS and not available in nixpkgs - mkdir $TMP/bin - ln -s ${coreutils}/bin/true $TMP/bin/afplay - PATH="$TMP/bin:$PATH" pytest - '' else if stdenv.isLinux then '' - dbus-run-session \ - --config-file=${dbus}/share/dbus-1/session.conf \ - pytest - '' else '' - pytest - ''; + checkPhase = + if stdenv.isDarwin then + '' + # Tests search for "afplay" binary which is built in to macOS and not available in nixpkgs + mkdir $TMP/bin + ln -s ${coreutils}/bin/true $TMP/bin/afplay + PATH="$TMP/bin:$PATH" pytest + '' + else if stdenv.isLinux then + '' + dbus-run-session \ + --config-file=${dbus}/share/dbus-1/session.conf \ + pytest + '' + else + '' + pytest + ''; # GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name # org.freedesktop.Notifications was not provided by any .service files @@ -91,6 +90,9 @@ buildPythonPackage rec { homepage = "https://github.com/ms7m/notify-py"; changelog = "https://github.com/ms7m/notify-py/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ austinbutler dotlambda ]; + maintainers = with maintainers; [ + austinbutler + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/notify2/default.nix b/pkgs/development/python-modules/notify2/default.nix index 1f087cb77a36..b2e5c33faaa4 100644 --- a/pkgs/development/python-modules/notify2/default.nix +++ b/pkgs/development/python-modules/notify2/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, lib -, fetchPypi -, pygobject3 -, dbus-python +{ + buildPythonPackage, + lib, + fetchPypi, + pygobject3, + dbus-python, }: buildPythonPackage rec { @@ -15,11 +16,12 @@ buildPythonPackage rec { sha256 = "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"; }; - # Tests require Xorg and Dbus instance doCheck = false; - propagatedBuildInputs = [ pygobject3 - dbus-python ]; + propagatedBuildInputs = [ + pygobject3 + dbus-python + ]; meta = { description = "Pure Python interface to DBus notifications"; diff --git a/pkgs/development/python-modules/notion-client/default.nix b/pkgs/development/python-modules/notion-client/default.nix index 1f9f5f1d65e9..6ec520c3ae47 100644 --- a/pkgs/development/python-modules/notion-client/default.nix +++ b/pkgs/development/python-modules/notion-client/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools -, anyio -, httpx -, pytest-asyncio -, pytest-vcr +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, + anyio, + httpx, + pytest-asyncio, + pytest-vcr, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-IEWFrdqrawFbuwA8bUewanmBoGWsjHJ7ucgvHQEaMcA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; # disable coverage options as they don't provide us value, and they break the default pytestCheckHook preCheck = '' @@ -44,9 +41,7 @@ buildPythonPackage rec { pytest-vcr ]; - pythonImportsCheck = [ - "notion_client" - ]; + pythonImportsCheck = [ "notion_client" ]; meta = with lib; { description = "Python client for the official Notion API"; diff --git a/pkgs/development/python-modules/notmuch/default.nix b/pkgs/development/python-modules/notmuch/default.nix index a67888564c6b..6d8c415700d6 100644 --- a/pkgs/development/python-modules/notmuch/default.nix +++ b/pkgs/development/python-modules/notmuch/default.nix @@ -1,8 +1,9 @@ -{ lib +{ + lib, -, buildPythonPackage -, notmuch -, python + buildPythonPackage, + notmuch, + python, }: buildPythonPackage { @@ -12,7 +13,10 @@ buildPythonPackage { format = "setuptools"; - buildInputs = [ python notmuch ]; + buildInputs = [ + python + notmuch + ]; postPatch = '' sed -i -e '/CDLL/s@"libnotmuch\.@"${notmuch}/lib/libnotmuch.@' \ @@ -29,5 +33,4 @@ buildPythonPackage { license = licenses.gpl3; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/notmuch2/default.nix b/pkgs/development/python-modules/notmuch2/default.nix index 08d0cd0929f6..14eb6e67d09f 100644 --- a/pkgs/development/python-modules/notmuch2/default.nix +++ b/pkgs/development/python-modules/notmuch2/default.nix @@ -1,9 +1,10 @@ -{ stdenv -, lib -, buildPythonPackage -, notmuch -, python -, cffi +{ + stdenv, + lib, + buildPythonPackage, + notmuch, + python, + cffi, }: buildPythonPackage { @@ -13,11 +14,10 @@ buildPythonPackage { sourceRoot = "notmuch-${notmuch.version}/bindings/python-cffi"; - nativeBuildInputs = [ - cffi - ]; + nativeBuildInputs = [ cffi ]; buildInputs = [ - python notmuch + python + notmuch ]; propagatedBuildInputs = [ cffi ]; diff --git a/pkgs/development/python-modules/nototools/default.nix b/pkgs/development/python-modules/nototools/default.nix index 4b20eba21b0a..a712a936c4ef 100644 --- a/pkgs/development/python-modules/nototools/default.nix +++ b/pkgs/development/python-modules/nototools/default.nix @@ -1,9 +1,38 @@ -{ fetchFromGitHub, lib, buildPythonPackage, pythonOlder -, afdko, appdirs, attrs, booleanoperations, brotlipy, click -, defcon, fontmath, fontparts, fontpens, fonttools, lxml -, mutatormath, pathspec, psautohint, pyclipper, pytz, regex, scour -, toml, typed-ast, ufonormalizer, ufoprocessor, unicodedata2, zopfli -, pillow, six, bash, setuptools-scm }: +{ + fetchFromGitHub, + lib, + buildPythonPackage, + pythonOlder, + afdko, + appdirs, + attrs, + booleanoperations, + brotlipy, + click, + defcon, + fontmath, + fontparts, + fontpens, + fonttools, + lxml, + mutatormath, + pathspec, + psautohint, + pyclipper, + pytz, + regex, + scour, + toml, + typed-ast, + ufonormalizer, + ufoprocessor, + unicodedata2, + zopfli, + pillow, + six, + bash, + setuptools-scm, +}: buildPythonPackage rec { pname = "nototools"; diff --git a/pkgs/development/python-modules/nox/default.nix b/pkgs/development/python-modules/nox/default.nix index a006c0cbd2d6..2f60f1199180 100644 --- a/pkgs/development/python-modules/nox/default.nix +++ b/pkgs/development/python-modules/nox/default.nix @@ -1,17 +1,18 @@ -{ lib -, argcomplete -, buildPythonPackage -, colorlog -, fetchFromGitHub -, hatchling -, importlib-metadata -, jinja2 -, packaging -, pytestCheckHook -, pythonOlder -, tox -, typing-extensions -, virtualenv +{ + lib, + argcomplete, + buildPythonPackage, + colorlog, + fetchFromGitHub, + hatchling, + importlib-metadata, + jinja2, + packaging, + pytestCheckHook, + pythonOlder, + tox, + typing-extensions, + virtualenv, }: buildPythonPackage rec { @@ -28,19 +29,19 @@ buildPythonPackage rec { hash = "sha256-PagZR2IdS1gS/ukl4b0Al9sdEsFnFwP8oy0eOGKJHMs="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - argcomplete - colorlog - packaging - virtualenv - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - importlib-metadata - ]; + propagatedBuildInputs = + [ + argcomplete + colorlog + packaging + virtualenv + ] + ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + importlib-metadata + ]; nativeCheckInputs = [ jinja2 @@ -48,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "nox" - ]; + pythonImportsCheck = [ "nox" ]; disabledTests = [ # our conda is not available on 3.11 @@ -67,6 +66,9 @@ buildPythonPackage rec { homepage = "https://nox.thea.codes/"; changelog = "https://github.com/wntrblm/nox/blob/${version}/CHANGELOG.md"; license = licenses.asl20; - maintainers = with maintainers; [ doronbehar fab ]; + maintainers = with maintainers; [ + doronbehar + fab + ]; }; } diff --git a/pkgs/development/python-modules/nplusone/default.nix b/pkgs/development/python-modules/nplusone/default.nix index ff0aa18a2d36..76b22857f172 100644 --- a/pkgs/development/python-modules/nplusone/default.nix +++ b/pkgs/development/python-modules/nplusone/default.nix @@ -1,18 +1,19 @@ -{ lib -, blinker -, buildPythonPackage -, django -, fetchFromGitHub -, flake8 -, flask-sqlalchemy -, isPy27 -, mock -, peewee -, pytest-django -, pytestCheckHook -, six -, sqlalchemy -, webtest +{ + lib, + blinker, + buildPythonPackage, + django, + fetchFromGitHub, + flake8, + flask-sqlalchemy, + isPy27, + mock, + peewee, + pytest-django, + pytestCheckHook, + six, + sqlalchemy, + webtest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nptyping/default.nix b/pkgs/development/python-modules/nptyping/default.nix index eeb12a570fbd..ac53dc38d35b 100644 --- a/pkgs/development/python-modules/nptyping/default.nix +++ b/pkgs/development/python-modules/nptyping/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, beartype -, invoke -, numpy -, pandas -, feedparser +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + beartype, + invoke, + numpy, + pandas, + feedparser, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-hz4YrcvARCAA7TXapmneIwle/F4pzcIYLPSmiFHC0VQ="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ beartype @@ -55,9 +54,7 @@ buildPythonPackage rec { "tests/test_beartype.py" ]; - pythonImportsCheck = [ - "nptyping" - ]; + pythonImportsCheck = [ "nptyping" ]; meta = with lib; { description = "Type hints for numpy"; diff --git a/pkgs/development/python-modules/npyscreen/default.nix b/pkgs/development/python-modules/npyscreen/default.nix index 764e46dcadec..f2a250b2cba9 100644 --- a/pkgs/development/python-modules/npyscreen/default.nix +++ b/pkgs/development/python-modules/npyscreen/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "npyscreen"; @@ -6,8 +10,8 @@ buildPythonPackage rec { format = "setuptools"; src = fetchPypi { - inherit pname version; - sha256 = "0vhjwn0dan3zmffvh80dxb4x67jysvvf1imp6pk4dsfslpwy0bk2"; + inherit pname version; + sha256 = "0vhjwn0dan3zmffvh80dxb4x67jysvvf1imp6pk4dsfslpwy0bk2"; }; # Tests are outdated diff --git a/pkgs/development/python-modules/nsapi/default.nix b/pkgs/development/python-modules/nsapi/default.nix index 4e3a7bc5bf3c..63bd70151c89 100644 --- a/pkgs/development/python-modules/nsapi/default.nix +++ b/pkgs/development/python-modules/nsapi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, pythonOlder -, pytz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + pythonOlder, + pytz, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nsz/default.nix b/pkgs/development/python-modules/nsz/default.nix index 7e8c3b4cdf8d..64fb82e1ea06 100644 --- a/pkgs/development/python-modules/nsz/default.nix +++ b/pkgs/development/python-modules/nsz/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodome -, pythonOlder -, enlighten -, zstandard -, withGUI ? true -, kivy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodome, + pythonOlder, + enlighten, + zstandard, + withGUI ? true, + kivy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ntc-templates/default.nix b/pkgs/development/python-modules/ntc-templates/default.nix index 04b2c8c17f1a..f329a00589d2 100644 --- a/pkgs/development/python-modules/ntc-templates/default.nix +++ b/pkgs/development/python-modules/ntc-templates/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, textfsm -, invoke -, pytestCheckHook -, ruamel-yaml -, toml -, yamllint +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + textfsm, + invoke, + pytestCheckHook, + ruamel-yaml, + toml, + yamllint, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-8Lzh6ku2TUQFatqbOb5JIc/WkRPegx/gNnT53DErMuk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - textfsm - ]; + propagatedBuildInputs = [ textfsm ]; nativeCheckInputs = [ invoke diff --git a/pkgs/development/python-modules/ntplib/default.nix b/pkgs/development/python-modules/ntplib/default.nix index 8c937e36f414..9c388e0437d3 100644 --- a/pkgs/development/python-modules/ntplib/default.nix +++ b/pkgs/development/python-modules/ntplib/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "http://code.google.com/p/ntplib/"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/nuheat/default.nix b/pkgs/development/python-modules/nuheat/default.nix index 97607ceab3dc..b05f151f797a 100644 --- a/pkgs/development/python-modules/nuheat/default.nix +++ b/pkgs/development/python-modules/nuheat/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, parameterized -, pytestCheckHook -, pythonOlder -, requests -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + parameterized, + pytestCheckHook, + pythonOlder, + requests, + responses, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-EsPuwILfKc1Bpvu0Qos7yooC3dBaqf46lWhiSZdu3sc="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ mock @@ -34,9 +33,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "nuheat" - ]; + pythonImportsCheck = [ "nuheat" ]; meta = with lib; { description = "Library to interact with NuHeat Signature and Mapei Mapeheat radiant floor thermostats"; diff --git a/pkgs/development/python-modules/nuitka/default.nix b/pkgs/development/python-modules/nuitka/default.nix index 936084c98399..60ffcb13c044 100644 --- a/pkgs/development/python-modules/nuitka/default.nix +++ b/pkgs/development/python-modules/nuitka/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, ccache -, fetchFromGitHub -, isPyPy -, ordered-set -, python3 -, setuptools -, zstandard -, wheel +{ + lib, + buildPythonPackage, + ccache, + fetchFromGitHub, + isPyPy, + ordered-set, + python3, + setuptools, + zstandard, + wheel, }: buildPythonPackage rec { @@ -25,8 +26,11 @@ buildPythonPackage rec { # default lto off for darwin patches = [ ./darwin-lto.patch ]; - build-system = [ setuptools wheel ]; - nativeCheckInputs = [ ccache ]; + build-system = [ + setuptools + wheel + ]; + nativeCheckInputs = [ ccache ]; dependencies = [ ordered-set @@ -51,5 +55,4 @@ buildPythonPackage rec { license = licenses.asl20; homepage = "https://nuitka.net/"; }; - } diff --git a/pkgs/development/python-modules/nulltype/default.nix b/pkgs/development/python-modules/nulltype/default.nix index f04f9df780dc..0d735b695eaf 100644 --- a/pkgs/development/python-modules/nulltype/default.nix +++ b/pkgs/development/python-modules/nulltype/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { sha256 = "0wpjbsmm0c9ifg9y6cnfz49qq9pa5f99nnqp6wdlv42ymfr3rak4"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nulltype" - ]; + pythonImportsCheck = [ "nulltype" ]; meta = with lib; { description = "Python library to handle Null values and sentinels like (but not) None, False and True"; diff --git a/pkgs/development/python-modules/num2words/default.nix b/pkgs/development/python-modules/num2words/default.nix index 0a492b32f310..0cda8c4cf083 100644 --- a/pkgs/development/python-modules/num2words/default.nix +++ b/pkgs/development/python-modules/num2words/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, lib -, fetchPypi -, docopt -, delegator-py -, pytest +{ + buildPythonPackage, + lib, + fetchPypi, + docopt, + delegator-py, + pytest, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ docopt ]; - nativeCheckInputs = [ delegator-py pytest ]; + nativeCheckInputs = [ + delegator-py + pytest + ]; checkPhase = '' pytest -k 'not cli_with_lang' @@ -31,7 +35,6 @@ buildPythonPackage rec { license = licenses.lgpl21; maintainers = with maintainers; [ jonringer ]; - longDescription = - "num2words is a library that converts numbers like 42 to words like forty-two. It supports multiple languages (see the list below for full list of languages) and can even generate ordinal numbers like forty-second"; + longDescription = "num2words is a library that converts numbers like 42 to words like forty-two. It supports multiple languages (see the list below for full list of languages) and can even generate ordinal numbers like forty-second"; }; } diff --git a/pkgs/development/python-modules/numba-scipy/default.nix b/pkgs/development/python-modules/numba-scipy/default.nix index 22e3db22f302..0eae5c9a9b98 100644 --- a/pkgs/development/python-modules/numba-scipy/default.nix +++ b/pkgs/development/python-modules/numba-scipy/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, scipy -, numba -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + scipy, + numba, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { "numba" ]; - pythonImportsCheck = [ - "numba_scipy" - ]; + pythonImportsCheck = [ "numba_scipy" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index bc199e2c6edc..2e219e018dd1 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -1,35 +1,37 @@ -{ lib -, stdenv -, pythonAtLeast -, pythonOlder -, fetchFromGitHub -, python -, buildPythonPackage -, setuptools -, numpy -, llvmlite -, libcxx -, importlib-metadata -, substituteAll -, runCommand -, symlinkJoin -, writers -, numba +{ + lib, + stdenv, + pythonAtLeast, + pythonOlder, + fetchFromGitHub, + python, + buildPythonPackage, + setuptools, + numpy, + llvmlite, + libcxx, + importlib-metadata, + substituteAll, + runCommand, + symlinkJoin, + writers, + numba, -, config + config, -# CUDA-only dependencies: -, addDriverRunpath -, autoAddDriverRunpath -, cudaPackages + # CUDA-only dependencies: + addDriverRunpath, + autoAddDriverRunpath, + cudaPackages, -# CUDA flags: -, cudaSupport ? config.cudaSupport + # CUDA flags: + cudaSupport ? config.cudaSupport, }: let cudatoolkit = cudaPackages.cuda_nvcc; -in buildPythonPackage rec { +in +buildPythonPackage rec { # Using an untagged version, with numpy 1.25 support, when it's released # also drop the versioneer patch in postPatch version = "0.59.1"; @@ -66,24 +68,20 @@ in buildPythonPackage rec { env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; - nativeBuildInputs = [ - numpy - ] ++ lib.optionals cudaSupport [ - autoAddDriverRunpath - cudaPackages.cuda_nvcc - ]; + nativeBuildInputs = + [ numpy ] + ++ lib.optionals cudaSupport [ + autoAddDriverRunpath + cudaPackages.cuda_nvcc + ]; - buildInputs = lib.optionals cudaSupport [ - cudaPackages.cuda_cudart - ]; + buildInputs = lib.optionals cudaSupport [ cudaPackages.cuda_cudart ]; propagatedBuildInputs = [ numpy llvmlite setuptools - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-metadata ]; patches = lib.optionals cudaSupport [ (substituteAll { @@ -107,9 +105,7 @@ in buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "numba" - ]; + pythonImportsCheck = [ "numba" ]; passthru.testers.cuda-detect = writers.writePython3Bin "numba-cuda-detect" @@ -124,17 +120,22 @@ in buildPythonPackage rec { # sandbox manually if you have the appropriate hardware; support will be detected # and the corresponding tests enabled automatically. # Also, the full suite currently does not complete on anything but x86_64-linux. - fullSuite = runCommand "${pname}-test" {} '' + fullSuite = runCommand "${pname}-test" { } '' pushd $(mktemp -d) # pip and python in $PATH is needed for the test suite to pass fully - PATH=${python.withPackages (p: [ p.numba p.pip ])}/bin:$PATH + PATH=${ + python.withPackages (p: [ + p.numba + p.pip + ]) + }/bin:$PATH HOME=$PWD python -m numba.runtests -m $NIX_BUILD_CORES popd touch $out # stop Nix from complaining no output was generated and failing the build ''; }; - meta = with lib; { + meta = with lib; { description = "Compiling Python code using LLVM"; homepage = "https://numba.pydata.org/"; license = licenses.bsd2; diff --git a/pkgs/development/python-modules/numcodecs/default.nix b/pkgs/development/python-modules/numcodecs/default.nix index a0a452a0ecc2..23f49c77ad43 100644 --- a/pkgs/development/python-modules/numcodecs/default.nix +++ b/pkgs/development/python-modules/numcodecs/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchpatch -, fetchPypi -, setuptools -, setuptools-scm -, cython -, numpy -, msgpack -, py-cpuinfo -, pytestCheckHook -, python -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchpatch, + fetchPypi, + setuptools, + setuptools-scm, + cython, + numpy, + msgpack, + py-cpuinfo, + pytestCheckHook, + python, + pythonOlder, }: buildPythonPackage rec { @@ -42,27 +43,27 @@ buildPythonPackage rec { py-cpuinfo ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; passthru.optional-dependencies = { msgpack = [ msgpack ]; # zfpy = [ zfpy ]; }; - preBuild = if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then '' - export DISABLE_NUMCODECS_AVX2= - '' else null; + preBuild = + if (stdenv.hostPlatform.isx86 && !stdenv.hostPlatform.avx2Support) then + '' + export DISABLE_NUMCODECS_AVX2= + '' + else + null; nativeCheckInputs = [ pytestCheckHook msgpack ]; - pytestFlagsArray = [ - "$out/${python.sitePackages}/numcodecs" - ]; + pytestFlagsArray = [ "$out/${python.sitePackages}/numcodecs" ]; disabledTests = [ "test_backwards_compatibility" @@ -76,7 +77,7 @@ buildPythonPackage rec { "test_non_numpy_inputs" ]; - meta = with lib;{ + meta = with lib; { homepage = "https://github.com/zarr-developers/numcodecs"; license = licenses.mit; description = "Buffer compression and transformation codecs for use in data storage and communication applications"; diff --git a/pkgs/development/python-modules/numdifftools/default.nix b/pkgs/development/python-modules/numdifftools/default.nix index fced2ae4cead..dc2831a52472 100644 --- a/pkgs/development/python-modules/numdifftools/default.nix +++ b/pkgs/development/python-modules/numdifftools/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, + scipy, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { --replace "statsmodels>=0.6" "" ''; - pythonImportsCheck = [ - "numdifftools" - ]; + pythonImportsCheck = [ "numdifftools" ]; meta = with lib; { description = "Library to solve automatic numerical differentiation problems in one or more variables"; diff --git a/pkgs/development/python-modules/numericalunits/default.nix b/pkgs/development/python-modules/numericalunits/default.nix index cc04bea1e3a1..7b4c77d1f921 100644 --- a/pkgs/development/python-modules/numericalunits/default.nix +++ b/pkgs/development/python-modules/numericalunits/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/numexpr/default.nix b/pkgs/development/python-modules/numexpr/default.nix index ca8e329771fe..0368e3217968 100644 --- a/pkgs/development/python-modules/numexpr/default.nix +++ b/pkgs/development/python-modules/numexpr/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pytestCheckHook -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pytestCheckHook, + setuptools, + wheel, }: buildPythonPackage rec { @@ -32,18 +33,14 @@ buildPythonPackage rec { numpy ]; - dependencies = [ - numpy - ]; + dependencies = [ numpy ]; preBuild = '' # Remove existing site.cfg, use the one we built for numpy ln -s ${numpy.cfg} site.cfg ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' pushd $out @@ -60,9 +57,7 @@ buildPythonPackage rec { "test_omp_num_threads_empty_string" ]; - pythonImportsCheck = [ - "numexpr" - ]; + pythonImportsCheck = [ "numexpr" ]; meta = with lib; { description = "Fast numerical array expression evaluator for NumPy"; diff --git a/pkgs/development/python-modules/numpy-stl/default.nix b/pkgs/development/python-modules/numpy-stl/default.nix index 056d893ba75f..100adcfc424f 100644 --- a/pkgs/development/python-modules/numpy-stl/default.nix +++ b/pkgs/development/python-modules/numpy-stl/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, enum34 -, fetchPypi -, nine -, numpy -, pytestCheckHook -, python-utils +{ + lib, + buildPythonPackage, + cython, + enum34, + fetchPypi, + nine, + numpy, + pytestCheckHook, + python-utils, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { python-utils ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "stl" ]; diff --git a/pkgs/development/python-modules/numpy/default.nix b/pkgs/development/python-modules/numpy/default.nix index f0acca333f85..f20bd095cf97 100644 --- a/pkgs/development/python-modules/numpy/default.nix +++ b/pkgs/development/python-modules/numpy/default.nix @@ -1,33 +1,34 @@ -{ lib -, stdenv -, fetchPypi -, python -, pythonAtLeast -, pythonOlder -, buildPythonPackage -, writeTextFile +{ + lib, + stdenv, + fetchPypi, + python, + pythonAtLeast, + pythonOlder, + buildPythonPackage, + writeTextFile, -# build-system -, cython -, gfortran -, meson-python -, mesonEmulatorHook -, pkg-config -, xcbuild + # build-system + cython, + gfortran, + meson-python, + mesonEmulatorHook, + pkg-config, + xcbuild, -# native dependencies -, blas -, lapack + # native dependencies + blas, + lapack, -# Reverse dependency -, sage + # Reverse dependency + sage, -# tests -, hypothesis -, pytest-xdist -, pytestCheckHook -, setuptools -, typing-extensions + # tests + hypothesis, + pytest-xdist, + pytestCheckHook, + setuptools, + typing-extensions, }: assert (!blas.isILP64) && (!lapack.isILP64); @@ -35,7 +36,7 @@ assert (!blas.isILP64) && (!lapack.isILP64); let cfg = writeTextFile { name = "site.cfg"; - text = lib.generators.toINI {} { + text = lib.generators.toINI { } { ${blas.implementation} = { include_dirs = "${lib.getDev blas}/include:${lib.getDev lapack}/include"; library_dirs = "${blas}/lib:${lapack}/lib"; @@ -54,7 +55,8 @@ let }; }; }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "numpy"; version = "1.26.4"; pyproject = true; @@ -66,18 +68,17 @@ in buildPythonPackage rec { hash = "sha256-KgKrqe0S5KxOs+qUIcQgMBoMZGDZgw10qd+H76SRIBA="; }; - patches = [ - # Disable `numpy/core/tests/test_umath.py::TestComplexFunctions::test_loss_of_precision[complex256]` - # on x86_64-darwin because it fails under Rosetta 2 due to issues with trig functions and - # 80-bit long double complex numbers. - ./disable-failing-long-double-test-Rosetta-2.patch - ] - # We patch cpython/distutils to fix https://bugs.python.org/issue1222585 - # Patching of numpy.distutils is needed to prevent it from undoing the - # patch to distutils. - ++ lib.optionals python.hasDistutilsCxxPatch [ - ./numpy-distutils-C++.patch - ]; + patches = + [ + # Disable `numpy/core/tests/test_umath.py::TestComplexFunctions::test_loss_of_precision[complex256]` + # on x86_64-darwin because it fails under Rosetta 2 due to issues with trig functions and + # 80-bit long double complex numbers. + ./disable-failing-long-double-test-Rosetta-2.patch + ] + # We patch cpython/distutils to fix https://bugs.python.org/issue1222585 + # Patching of numpy.distutils is needed to prevent it from undoing the + # patch to distutils. + ++ lib.optionals python.hasDistutilsCxxPatch [ ./numpy-distutils-C++.patch ]; postPatch = '' # fails with multiple errors because we are not using the pinned setuptools version @@ -96,16 +97,15 @@ in buildPythonPackage rec { --replace-fail "meson-python>=0.15.0,<0.16.0" "meson-python" ''; - nativeBuildInputs = [ - cython - gfortran - meson-python - pkg-config - ] ++ lib.optionals (stdenv.isDarwin) [ - xcbuild.xcrun - ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ - mesonEmulatorHook - ]; + nativeBuildInputs = + [ + cython + gfortran + meson-python + pkg-config + ] + ++ lib.optionals (stdenv.isDarwin) [ xcbuild.xcrun ] + ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ mesonEmulatorHook ]; buildInputs = [ blas @@ -148,39 +148,46 @@ in buildPythonPackage rec { # https://github.com/numpy/numpy/blob/a277f6210739c11028f281b8495faf7da298dbef/numpy/_pytesttester.py#L180 pytestFlagsArray = [ - "-m" "not\\ slow" # fast test suite + "-m" + "not\\ slow" # fast test suite ]; # https://github.com/numpy/numpy/issues/24548 - disabledTests = lib.optionals stdenv.isi686 [ - "test_new_policy" # AssertionError: assert False - "test_identityless_reduction_huge_array" # ValueError: Maximum allowed dimension exceeded - "test_float_remainder_overflow" # AssertionError: FloatingPointError not raised by divmod - "test_int" # AssertionError: selectedintkind(19): expected 16 but got -1 - ] ++ lib.optionals stdenv.isAarch32 [ - "test_impossible_feature_enable" # AssertionError: Failed to generate error - "test_features" # AssertionError: Failure Detection - "test_new_policy" # AssertionError: assert False - "test_identityless_reduction_huge_array" # ValueError: Maximum allowed dimension exceeded - "test_unary_spurious_fpexception"# AssertionError: Got warnings: [] - "test_int" # AssertionError: selectedintkind(19): expected 16 but got -1 - "test_real" # AssertionError: selectedrealkind(16): expected 10 but got -1 - "test_quad_precision" # AssertionError: selectedrealkind(32): expected 16 but got -1 - "test_big_arrays" # ValueError: array is too big; `arr.size * arr.dtype.itemsize` is larger tha... - "test_multinomial_pvals_float32" # Failed: DID NOT RAISE - ] ++ lib.optionals stdenv.isAarch64 [ - "test_big_arrays" # OOM on a 16G machine - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - # can fail on virtualized machines confused over their cpu identity - "test_dispatcher" - ]; + disabledTests = + lib.optionals stdenv.isi686 [ + "test_new_policy" # AssertionError: assert False + "test_identityless_reduction_huge_array" # ValueError: Maximum allowed dimension exceeded + "test_float_remainder_overflow" # AssertionError: FloatingPointError not raised by divmod + "test_int" # AssertionError: selectedintkind(19): expected 16 but got -1 + ] + ++ lib.optionals stdenv.isAarch32 [ + "test_impossible_feature_enable" # AssertionError: Failed to generate error + "test_features" # AssertionError: Failure Detection + "test_new_policy" # AssertionError: assert False + "test_identityless_reduction_huge_array" # ValueError: Maximum allowed dimension exceeded + "test_unary_spurious_fpexception" # AssertionError: Got warnings: [] + "test_int" # AssertionError: selectedintkind(19): expected 16 but got -1 + "test_real" # AssertionError: selectedrealkind(16): expected 10 but got -1 + "test_quad_precision" # AssertionError: selectedrealkind(32): expected 16 but got -1 + "test_big_arrays" # ValueError: array is too big; `arr.size * arr.dtype.itemsize` is larger tha... + "test_multinomial_pvals_float32" # Failed: DID NOT RAISE + ] + ++ lib.optionals stdenv.isAarch64 [ + "test_big_arrays" # OOM on a 16G machine + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ + # can fail on virtualized machines confused over their cpu identity + "test_dispatcher" + ]; passthru = { # just for backwards compatibility blas = blas.provider; blasImplementation = blas.implementation; inherit cfg; - tests = { inherit sage; }; + tests = { + inherit sage; + }; }; # Disable test diff --git a/pkgs/development/python-modules/numpydoc/default.nix b/pkgs/development/python-modules/numpydoc/default.nix index 01ee7116febd..bbf4482452d3 100644 --- a/pkgs/development/python-modules/numpydoc/default.nix +++ b/pkgs/development/python-modules/numpydoc/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, setuptools -, jinja2 -, sphinx -, tabulate -, pytestCheckHook -, matplotlib +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + setuptools, + jinja2, + sphinx, + tabulate, + pytestCheckHook, + matplotlib, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace "--cov=numpydoc" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jinja2 @@ -51,9 +50,7 @@ buildPythonPackage rec { "test_reference" ]; - pythonImportsCheck = [ - "numpydoc" - ]; + pythonImportsCheck = [ "numpydoc" ]; meta = { changelog = "https://github.com/numpy/numpydoc/releases/tag/v${version}"; @@ -61,5 +58,5 @@ buildPythonPackage rec { mainProgram = "validate-docstrings"; homepage = "https://github.com/numpy/numpydoc"; license = lib.licenses.free; - }; + }; } diff --git a/pkgs/development/python-modules/numpyro/default.nix b/pkgs/development/python-modules/numpyro/default.nix index 857ce48b90f2..b26e61b945ce 100644 --- a/pkgs/development/python-modules/numpyro/default.nix +++ b/pkgs/development/python-modules/numpyro/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, jax -, jaxlib -, multipledispatch -, numpy -, tqdm -, funsor -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + jax, + jaxlib, + multipledispatch, + numpy, + tqdm, + funsor, + pytestCheckHook, # TODO: uncomment when tensorflow-probability gets fixed. # , tensorflow-probability }: @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-4WyfR8wx4qollYSgtslEMSCB0zypJAYCJjKtWEsOYA0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ jax @@ -45,9 +44,7 @@ buildPythonPackage rec { # tensorflow-probability ]; - pythonImportsCheck = [ - "numpyro" - ]; + pythonImportsCheck = [ "numpyro" ]; disabledTests = [ # AssertionError due to tolerance issues @@ -70,9 +67,7 @@ buildPythonPackage rec { ]; # TODO: remove when tensorflow-probability gets fixed. - disabledTestPaths = [ - "test/test_distributions.py" - ]; + disabledTestPaths = [ "test/test_distributions.py" ]; meta = with lib; { description = "Library for probabilistic programming with NumPy"; diff --git a/pkgs/development/python-modules/nunavut/default.nix b/pkgs/development/python-modules/nunavut/default.nix index a0b82d76ff2a..da474a88e727 100644 --- a/pkgs/development/python-modules/nunavut/default.nix +++ b/pkgs/development/python-modules/nunavut/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, importlib-resources -, pydsdl -, pyyaml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + importlib-resources, + pydsdl, + pyyaml, }: - buildPythonPackage rec { +buildPythonPackage rec { pname = "nunavut"; version = "2.3.1"; format = "setuptools"; @@ -39,9 +40,7 @@ # https://github.com/UAVCAN/nunavut/issues/182 doCheck = false; - pythonImportsCheck = [ - "nunavut" - ]; + pythonImportsCheck = [ "nunavut" ]; meta = with lib; { description = "A UAVCAN DSDL template engine"; @@ -53,6 +52,9 @@ homepage = "https://nunavut.readthedocs.io/"; changelog = "https://github.com/OpenCyphal/nunavut/releases/tag/${version}"; maintainers = with maintainers; [ wucke13 ]; - license = with licenses; [ bsd3 mit ]; + license = with licenses; [ + bsd3 + mit + ]; }; } diff --git a/pkgs/development/python-modules/nutils/default.nix b/pkgs/development/python-modules/nutils/default.nix index 3447f4deddf3..2a170ebe3e44 100644 --- a/pkgs/development/python-modules/nutils/default.nix +++ b/pkgs/development/python-modules/nutils/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, numpy -, treelog -, stringly -, flit-core -, bottombar -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + numpy, + treelog, + stringly, + flit-core, + bottombar, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-vfdb7+jcJ5EuWDoZyRExWEPEWt+lgbzmAL3QhguLtHE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ numpy @@ -36,13 +35,9 @@ buildPythonPackage rec { bottombar ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nutils" - ]; + pythonImportsCheck = [ "nutils" ]; disabledTestPaths = [ # AttributeError: type object 'setup' has no attribute '__code__' diff --git a/pkgs/development/python-modules/nvchecker/default.nix b/pkgs/development/python-modules/nvchecker/default.nix index a9dde5d6626a..d0c88698a6c0 100644 --- a/pkgs/development/python-modules/nvchecker/default.nix +++ b/pkgs/development/python-modules/nvchecker/default.nix @@ -1,22 +1,23 @@ -{ lib -, platformdirs -, buildPythonPackage -, docutils -, fetchFromGitHub -, flaky -, installShellFiles -, pycurl -, pytest-asyncio -, pytest-httpbin -, pytestCheckHook -, pythonOlder -, setuptools -, structlog -, tomli -, tornado -, awesomeversion -, packaging -, lxml +{ + lib, + platformdirs, + buildPythonPackage, + docutils, + fetchFromGitHub, + flaky, + installShellFiles, + pycurl, + pytest-asyncio, + pytest-httpbin, + pytestCheckHook, + pythonOlder, + setuptools, + structlog, + tomli, + tornado, + awesomeversion, + packaging, + lxml, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { platformdirs tornado pycurl - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; __darwinAllowLocalNetworking = true; @@ -66,13 +65,9 @@ buildPythonPackage rec { installManPage docs/_build/man/nvchecker.1 ''; - pythonImportsCheck = [ - "nvchecker" - ]; + pythonImportsCheck = [ "nvchecker" ]; - pytestFlagsArray = [ - "-m 'not needs_net'" - ]; + pytestFlagsArray = [ "-m 'not needs_net'" ]; optional-dependencies = { # vercmp = [ pyalpm ]; diff --git a/pkgs/development/python-modules/nvdlib/default.nix b/pkgs/development/python-modules/nvdlib/default.nix index e79b8c0513cd..2a7d4537d4ae 100644 --- a/pkgs/development/python-modules/nvdlib/default.nix +++ b/pkgs/development/python-modules/nvdlib/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, responses -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + responses, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-p2xx+QC0P30FR+nMiFW/PoINbcTM49ufADW9B9u2WxI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; - pythonImportsCheck = [ - "nvdlib" - ]; + pythonImportsCheck = [ "nvdlib" ]; meta = with lib; { description = "Module to interact with the National Vulnerability CVE/CPE API"; diff --git a/pkgs/development/python-modules/nvidia-ml-py/default.nix b/pkgs/development/python-modules/nvidia-ml-py/default.nix index b88947b15c70..1ca2a21d64f8 100644 --- a/pkgs/development/python-modules/nvidia-ml-py/default.nix +++ b/pkgs/development/python-modules/nvidia-ml-py/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, substituteAll -, addOpenGLRunpath +{ + lib, + fetchPypi, + buildPythonPackage, + substituteAll, + addOpenGLRunpath, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/nwdiag/default.nix b/pkgs/development/python-modules/nwdiag/default.nix index 54bd6a1f9fea..9f5365633104 100644 --- a/pkgs/development/python-modules/nwdiag/default.nix +++ b/pkgs/development/python-modules/nwdiag/default.nix @@ -1,11 +1,12 @@ -{ lib -, blockdiag -, fetchFromGitHub -, buildPythonPackage -, pynose -, pytestCheckHook -, setuptools -, pythonOlder +{ + lib, + blockdiag, + fetchFromGitHub, + buildPythonPackage, + pynose, + pytestCheckHook, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-uKrdkXpL5YBr953sRsHknYg+2/WwrZmyDf8BMA2+0tU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - blockdiag - ]; + dependencies = [ blockdiag ]; nativeCheckInputs = [ pynose pytestCheckHook ]; - pytestFlagsArray = [ - "src/nwdiag/tests/" - ]; + pytestFlagsArray = [ "src/nwdiag/tests/" ]; disabledTests = [ # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches' @@ -45,9 +40,7 @@ buildPythonPackage rec { "noviewbox" ]; - pythonImportsCheck = [ - "nwdiag" - ]; + pythonImportsCheck = [ "nwdiag" ]; meta = with lib; { description = "Generate network-diagram image from spec-text file (similar to Graphviz)"; diff --git a/pkgs/development/python-modules/nxt-python/default.nix b/pkgs/development/python-modules/nxt-python/default.nix index efbec58b936a..e7d9de8e1c7a 100644 --- a/pkgs/development/python-modules/nxt-python/default.nix +++ b/pkgs/development/python-modules/nxt-python/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pybluez -, pytestCheckHook -, pythonOlder -, pyusb +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pybluez, + pytestCheckHook, + pythonOlder, + pyusb, }: buildPythonPackage rec { @@ -22,27 +23,17 @@ buildPythonPackage rec { hash = "sha256-v65KEP5DuJsZAifd1Rh46x9lSAgBZgyo+e8PKSDKnhw="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - pyusb - ]; + dependencies = [ pyusb ]; optional-dependencies = { - bluetooth = [ - pybluez - ]; + bluetooth = [ pybluez ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "nxt" - ]; + pythonImportsCheck = [ "nxt" ]; meta = with lib; { description = "Python driver/interface for Lego Mindstorms NXT robot"; diff --git a/pkgs/development/python-modules/oasatelematics/default.nix b/pkgs/development/python-modules/oasatelematics/default.nix index c4d7ca121387..5313b8a6fbd6 100644 --- a/pkgs/development/python-modules/oasatelematics/default.nix +++ b/pkgs/development/python-modules/oasatelematics/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -20,16 +21,12 @@ buildPythonPackage rec { hash = "sha256-3O7XbNVj1S3ZwheklEhm0ivw16Tj7drML/xYC9383Kg="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "oasatelematics" - ]; + pythonImportsCheck = [ "oasatelematics" ]; meta = with lib; { description = "Python wrapper for the OASA Telematics API"; diff --git a/pkgs/development/python-modules/oath/default.nix b/pkgs/development/python-modules/oath/default.nix index 525988d2dd65..3eb51d6866fe 100644 --- a/pkgs/development/python-modules/oath/default.nix +++ b/pkgs/development/python-modules/oath/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -13,13 +14,9 @@ buildPythonPackage rec { inherit pname version; hash = "sha256-vWsg0g8sTj9TUj7pACEdynWu7KcvT1qf2NyswXX+HAs="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "oath" - ]; + pythonImportsCheck = [ "oath" ]; meta = with lib; { description = "Python implementation of the three main OATH specifications: HOTP, TOTP and OCRA"; diff --git a/pkgs/development/python-modules/oauth/default.nix b/pkgs/development/python-modules/oauth/default.nix index 434f40b17cd9..3510461dba3c 100644 --- a/pkgs/development/python-modules/oauth/default.nix +++ b/pkgs/development/python-modules/oauth/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { description = "Library for OAuth version 1.0a"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/oauth2/default.nix b/pkgs/development/python-modules/oauth2/default.nix index 981299a9ac05..a45aa21abf37 100644 --- a/pkgs/development/python-modules/oauth2/default.nix +++ b/pkgs/development/python-modules/oauth2/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, httplib2 -, mock -, coverage +{ + lib, + buildPythonPackage, + fetchPypi, + httplib2, + mock, + coverage, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ httplib2 ]; - buildInputs = [ mock coverage ]; + buildInputs = [ + mock + coverage + ]; # ServerNotFoundError: Unable to find the server at oauth-sandbox.sevengoslings.net doCheck = false; @@ -29,5 +33,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ ]; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/oauth2client/default.nix b/pkgs/development/python-modules/oauth2client/default.nix index a924fa81c7ae..f79ed3c0926f 100644 --- a/pkgs/development/python-modules/oauth2client/default.nix +++ b/pkgs/development/python-modules/oauth2client/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi -, six, httplib2, pyasn1-modules, rsa }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + httplib2, + pyasn1-modules, + rsa, +}: buildPythonPackage rec { pname = "oauth2client"; @@ -11,7 +18,12 @@ buildPythonPackage rec { sha256 = "d486741e451287f69568a4d26d70d9acd73a2bbfa275746c535b4209891cccc6"; }; - propagatedBuildInputs = [ six httplib2 pyasn1-modules rsa ]; + propagatedBuildInputs = [ + six + httplib2 + pyasn1-modules + rsa + ]; doCheck = false; meta = with lib; { diff --git a/pkgs/development/python-modules/oauthenticator/default.nix b/pkgs/development/python-modules/oauthenticator/default.nix index 1e5bd396cd8b..267a9a7c4ab6 100644 --- a/pkgs/development/python-modules/oauthenticator/default.nix +++ b/pkgs/development/python-modules/oauthenticator/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, google-api-python-client -, google-auth-oauthlib -, jupyterhub -, mwoauth -, pyjwt -, pytest-asyncio -, pytestCheckHook -, requests-mock -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + google-api-python-client, + google-auth-oauthlib, + jupyterhub, + mwoauth, + pyjwt, + pytest-asyncio, + pytestCheckHook, + requests-mock, + setuptools, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace-fail " --cov=oauthenticator" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ jupyterhub @@ -44,9 +43,7 @@ buildPythonPackage rec { google-api-python-client google-auth-oauthlib ]; - mediawiki = [ - mwoauth - ]; + mediawiki = [ mwoauth ]; }; nativeCheckInputs = [ @@ -71,13 +68,11 @@ buildPythonPackage rec { "test_openshift" ]; - pythonImportsCheck = [ - "oauthenticator" - ]; + pythonImportsCheck = [ "oauthenticator" ]; meta = with lib; { description = "Authenticate JupyterHub users with common OAuth providers"; - homepage = "https://github.com/jupyterhub/oauthenticator"; + homepage = "https://github.com/jupyterhub/oauthenticator"; changelog = "https://github.com/jupyterhub/oauthenticator/blob/${version}/docs/source/reference/changelog.md"; license = licenses.bsd3; maintainers = with maintainers; [ ]; diff --git a/pkgs/development/python-modules/oauthlib/default.nix b/pkgs/development/python-modules/oauthlib/default.nix index 9f240535256a..e8211953bb44 100644 --- a/pkgs/development/python-modules/oauthlib/default.nix +++ b/pkgs/development/python-modules/oauthlib/default.nix @@ -1,19 +1,20 @@ -{ lib -, blinker -, buildPythonPackage -, cryptography -, fetchFromGitHub -, mock -, pyjwt -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + blinker, + buildPythonPackage, + cryptography, + fetchFromGitHub, + mock, + pyjwt, + pytestCheckHook, + pythonOlder, + setuptools, -# for passthru.tests -, django-allauth -, django-oauth-toolkit -, google-auth-oauthlib -, requests-oauthlib + # for passthru.tests + django-allauth, + django-oauth-toolkit, + google-auth-oauthlib, + requests-oauthlib, }: buildPythonPackage rec { @@ -30,13 +31,14 @@ buildPythonPackage rec { hash = "sha256-KADS1pEaLYi86LEt2VVuz8FVTBANzxC8EeQLgGMxuBU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { rsa = [ cryptography ]; - signedtoken = [ cryptography pyjwt ]; + signedtoken = [ + cryptography + pyjwt + ]; signals = [ blinker ]; }; @@ -45,16 +47,15 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "oauthlib" - ]; + pythonImportsCheck = [ "oauthlib" ]; passthru.tests = { inherit django-allauth django-oauth-toolkit google-auth-oauthlib - requests-oauthlib; + requests-oauthlib + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/obfsproxy/default.nix b/pkgs/development/python-modules/obfsproxy/default.nix index cb00eb5dafd5..a6c54763e2e5 100644 --- a/pkgs/development/python-modules/obfsproxy/default.nix +++ b/pkgs/development/python-modules/obfsproxy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchgit -, pyptlib -, twisted -, pycrypto -, pyyaml +{ + lib, + buildPythonPackage, + fetchgit, + pyptlib, + twisted, + pycrypto, + pyyaml, }: buildPythonPackage rec { @@ -23,7 +24,12 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "argparse" "" ''; - propagatedBuildInputs = [ pyptlib twisted pycrypto pyyaml ]; + propagatedBuildInputs = [ + pyptlib + twisted + pycrypto + pyyaml + ]; # No tests in archive doCheck = false; @@ -33,5 +39,4 @@ buildPythonPackage rec { homepage = "https://www.torproject.org/projects/obfsproxy"; maintainers = with maintainers; [ thoughtpolice ]; }; - } diff --git a/pkgs/development/python-modules/objax/default.nix b/pkgs/development/python-modules/objax/default.nix index 68ef0f449287..4d8a0d607dbf 100644 --- a/pkgs/development/python-modules/objax/default.nix +++ b/pkgs/development/python-modules/objax/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jax -, jaxlib -, keras -, numpy -, parameterized -, pillow -, pytestCheckHook -, pythonOlder -, scipy -, setuptools -, tensorboard -, tensorflow +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jax, + jaxlib, + keras, + numpy, + parameterized, + pillow, + pytestCheckHook, + pythonOlder, + scipy, + setuptools, + tensorboard, + tensorflow, }: buildPythonPackage rec { @@ -34,15 +35,11 @@ buildPythonPackage rec { ./replace-deprecated-device_buffers.patch ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; # Avoid propagating the dependency on `jaxlib`, see # https://github.com/NixOS/nixpkgs/issues/156767 - buildInputs = [ - jaxlib - ]; + buildInputs = [ jaxlib ]; dependencies = [ jax @@ -53,9 +50,7 @@ buildPythonPackage rec { tensorboard ]; - pythonImportsCheck = [ - "objax" - ]; + pythonImportsCheck = [ "objax" ]; # This is necessay to ignore the presence of two protobufs version (tensorflow is bringing an # older version). @@ -67,9 +62,7 @@ buildPythonPackage rec { tensorflow ]; - pytestFlagsArray = [ - "tests/*.py" - ]; + pytestFlagsArray = [ "tests/*.py" ]; disabledTests = [ # Test requires internet access for prefetching some weights diff --git a/pkgs/development/python-modules/objgraph/default.nix b/pkgs/development/python-modules/objgraph/default.nix index c0c88870f352..36017bb2e1e8 100644 --- a/pkgs/development/python-modules/objgraph/default.nix +++ b/pkgs/development/python-modules/objgraph/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, graphviz -, graphvizPkgs -, isPyPy -, python -, pythonOlder -, substituteAll +{ + lib, + buildPythonPackage, + fetchPypi, + graphviz, + graphvizPkgs, + isPyPy, + python, + pythonOlder, + substituteAll, }: buildPythonPackage rec { @@ -29,14 +30,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - ipython = [ - graphviz - ]; + ipython = [ graphviz ]; }; - pythonImportsCheck = [ - "objgraph" - ]; + pythonImportsCheck = [ "objgraph" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/objsize/default.nix b/pkgs/development/python-modules/objsize/default.nix index a002597da50a..d5e93d99e24b 100644 --- a/pkgs/development/python-modules/objsize/default.nix +++ b/pkgs/development/python-modules/objsize/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { pname = "objsize"; version = "0.7.0"; - pyproject= true; + pyproject = true; disabled = pythonOlder "3.7"; @@ -26,17 +27,11 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "objsize" - ]; + pythonImportsCheck = [ "objsize" ]; - pytestFlagsArray = [ - "test_objsize.py" - ]; + pytestFlagsArray = [ "test_objsize.py" ]; meta = with lib; { description = "Traversal over objects subtree and calculate the total size"; diff --git a/pkgs/development/python-modules/obspy/default.nix b/pkgs/development/python-modules/obspy/default.nix index 422a0553e101..be94fa1bd0c7 100644 --- a/pkgs/development/python-modules/obspy/default.nix +++ b/pkgs/development/python-modules/obspy/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, decorator -, future -, lxml -, matplotlib -, numpy -, requests -, scipy -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchPypi, + decorator, + future, + lxml, + matplotlib, + numpy, + requests, + scipy, + sqlalchemy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/oca-port/default.nix b/pkgs/development/python-modules/oca-port/default.nix index c6429d3582bc..93a7dafb02d0 100644 --- a/pkgs/development/python-modules/oca-port/default.nix +++ b/pkgs/development/python-modules/oca-port/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, click -, fetchPypi -, gitpython -, lib -, nix-update-script -, requests -, setuptools-scm -, setuptools +{ + buildPythonPackage, + click, + fetchPypi, + gitpython, + lib, + nix-update-script, + requests, + setuptools-scm, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ochre/default.nix b/pkgs/development/python-modules/ochre/default.nix index e3604446e7e2..e1e4e63b5ddf 100644 --- a/pkgs/development/python-modules/ochre/default.nix +++ b/pkgs/development/python-modules/ochre/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-U6qycLnldwNze3XMAn6DS3XGX4RaCZgW0pH/y/FEAkk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/oci/default.nix b/pkgs/development/python-modules/oci/default.nix index c0d759db7b22..c09d9873c82f 100644 --- a/pkgs/development/python-modules/oci/default.nix +++ b/pkgs/development/python-modules/oci/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, certifi -, circuitbreaker -, cryptography -, fetchFromGitHub -, pyopenssl -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, pytz -, setuptools +{ + lib, + buildPythonPackage, + certifi, + circuitbreaker, + cryptography, + fetchFromGitHub, + pyopenssl, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + pytz, + setuptools, }: buildPythonPackage rec { @@ -48,15 +49,16 @@ buildPythonPackage rec { # Tests fail: https://github.com/oracle/oci-python-sdk/issues/164 doCheck = false; - pythonImportsCheck = [ - "oci" - ]; + pythonImportsCheck = [ "oci" ]; meta = with lib; { description = "Oracle Cloud Infrastructure Python SDK"; homepage = "https://github.com/oracle/oci-python-sdk"; changelog = "https://github.com/oracle/oci-python-sdk/blob/v${version}/CHANGELOG.rst"; - license = with licenses; [ asl20 /* or */ upl ]; + license = with licenses; [ + asl20 # or + upl + ]; maintainers = with maintainers; [ ilian ]; }; } diff --git a/pkgs/development/python-modules/ocifs/default.nix b/pkgs/development/python-modules/ocifs/default.nix index 8fab505c310d..d613106bc718 100644 --- a/pkgs/development/python-modules/ocifs/default.nix +++ b/pkgs/development/python-modules/ocifs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, fsspec -, oci -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + fsspec, + oci, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-IGl9G4NyzhcqrfYfgeZin+wt1OwHmh6780MPfZBwsXA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ fsspec @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "ocifs" - ]; + pythonImportsCheck = [ "ocifs" ]; meta = with lib; { description = "Oracle Cloud Infrastructure Object Storage fsspec implementation"; diff --git a/pkgs/development/python-modules/ocrmypdf/default.nix b/pkgs/development/python-modules/ocrmypdf/default.nix index eb5cf1ecfed2..50610647ac98 100644 --- a/pkgs/development/python-modules/ocrmypdf/default.nix +++ b/pkgs/development/python-modules/ocrmypdf/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, deprecation -, fetchFromGitHub -, ghostscript -, hypothesis -, img2pdf -, importlib-resources -, jbig2enc -, packaging -, pdfminer-six -, pillow-heif -, pikepdf -, pillow -, pluggy -, pngquant -, pytest-xdist -, pytestCheckHook -, pythonOlder -, rich -, reportlab -, setuptools-scm -, substituteAll -, tesseract -, tqdm -, unpaper -, installShellFiles +{ + lib, + buildPythonPackage, + deprecation, + fetchFromGitHub, + ghostscript, + hypothesis, + img2pdf, + importlib-resources, + jbig2enc, + packaging, + pdfminer-six, + pillow-heif, + pikepdf, + pillow, + pluggy, + pngquant, + pytest-xdist, + pytestCheckHook, + pythonOlder, + rich, + reportlab, + setuptools-scm, + substituteAll, + tesseract, + tqdm, + unpaper, + installShellFiles, }: buildPythonPackage rec { @@ -60,13 +61,9 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; dependencies = [ deprecation @@ -87,9 +84,7 @@ buildPythonPackage rec { reportlab ]; - pythonImportsCheck = [ - "ocrmypdf" - ]; + pythonImportsCheck = [ "ocrmypdf" ]; postInstall = '' installShellCompletion --cmd ocrmypdf \ @@ -100,8 +95,14 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/ocrmypdf/OCRmyPDF"; description = "Adds an OCR text layer to scanned PDF files, allowing them to be searched"; - license = with licenses; [ mpl20 mit ]; - maintainers = with maintainers; [ kiwi dotlambda ]; + license = with licenses; [ + mpl20 + mit + ]; + maintainers = with maintainers; [ + kiwi + dotlambda + ]; changelog = "https://github.com/ocrmypdf/OCRmyPDF/blob/${src.rev}/docs/release_notes.rst"; mainProgram = "ocrmypdf"; }; diff --git a/pkgs/development/python-modules/od/default.nix b/pkgs/development/python-modules/od/default.nix index 510d042e7296..f9e9a5bee056 100644 --- a/pkgs/development/python-modules/od/default.nix +++ b/pkgs/development/python-modules/od/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, repeated-test +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + repeated-test, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-uGkj2Z8mLg51IV+FOqwZl1hT7zVyjmD1CcY/VbH4tKk="; }; - nativeCheckInputs = [ - repeated-test - ]; + nativeCheckInputs = [ repeated-test ]; - pythonImportsCheck = [ - "od" - ]; + pythonImportsCheck = [ "od" ]; meta = with lib; { description = "Shorthand syntax for building OrderedDicts"; diff --git a/pkgs/development/python-modules/odfpy/default.nix b/pkgs/development/python-modules/odfpy/default.nix index 9b9f44d211bc..9d063ebe463a 100644 --- a/pkgs/development/python-modules/odfpy/default.nix +++ b/pkgs/development/python-modules/odfpy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, defusedxml -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + defusedxml, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/odp-amsterdam/default.nix b/pkgs/development/python-modules/odp-amsterdam/default.nix index a9a2770efd6b..4b66456a416d 100644 --- a/pkgs/development/python-modules/odp-amsterdam/default.nix +++ b/pkgs/development/python-modules/odp-amsterdam/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, pythonOlder -, pytest-asyncio -, pytestCheckHook -, pytz +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + pythonOlder, + pytest-asyncio, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pytz" - ]; + pythonRelaxDeps = [ "pytz" ]; propagatedBuildInputs = [ aiohttp @@ -51,9 +50,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "odp_amsterdam" - ]; + pythonImportsCheck = [ "odp_amsterdam" ]; meta = with lib; { description = "Python client for getting garage occupancy in Amsterdam"; diff --git a/pkgs/development/python-modules/oelint-parser/default.nix b/pkgs/development/python-modules/oelint-parser/default.nix index 288d560fa7fa..be36594a57cf 100644 --- a/pkgs/development/python-modules/oelint-parser/default.nix +++ b/pkgs/development/python-modules/oelint-parser/default.nix @@ -1,10 +1,11 @@ -{ lib -, nix-update-script -, fetchPypi -, buildPythonPackage -, deprecated -, regex -, pip +{ + lib, + nix-update-script, + fetchPypi, + buildPythonPackage, + deprecated, + regex, + pip, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/offtrac/default.nix b/pkgs/development/python-modules/offtrac/default.nix index 51ce4210e561..268346ce38d3 100644 --- a/pkgs/development/python-modules/offtrac/default.nix +++ b/pkgs/development/python-modules/offtrac/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -20,5 +21,4 @@ buildPythonPackage rec { description = "Trac xmlrpc library"; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/ofxclient/default.nix b/pkgs/development/python-modules/ofxclient/default.nix index c0c06b1ca91e..f763c6f23294 100644 --- a/pkgs/development/python-modules/ofxclient/default.nix +++ b/pkgs/development/python-modules/ofxclient/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, - ofxhome, ofxparse, beautifulsoup4, lxml, keyring +{ + lib, + buildPythonPackage, + fetchPypi, + ofxhome, + ofxparse, + beautifulsoup4, + lxml, + keyring, }: buildPythonPackage rec { @@ -19,7 +26,13 @@ buildPythonPackage rec { # ImportError: No module named tests doCheck = false; - propagatedBuildInputs = [ ofxhome ofxparse beautifulsoup4 lxml keyring ]; + propagatedBuildInputs = [ + ofxhome + ofxparse + beautifulsoup4 + lxml + keyring + ]; meta = with lib; { homepage = "https://github.com/captin411/ofxclient"; diff --git a/pkgs/development/python-modules/ofxhome/default.nix b/pkgs/development/python-modules/ofxhome/default.nix index 09f901a30008..7f4aa00dd213 100644 --- a/pkgs/development/python-modules/ofxhome/default.nix +++ b/pkgs/development/python-modules/ofxhome/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + nose, +}: buildPythonPackage rec { version = "0.3.3"; diff --git a/pkgs/development/python-modules/ofxparse/default.nix b/pkgs/development/python-modules/ofxparse/default.nix index c133db4b4265..6d1da80a8c04 100644 --- a/pkgs/development/python-modules/ofxparse/default.nix +++ b/pkgs/development/python-modules/ofxparse/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, beautifulsoup4 -, lxml +{ + lib, + buildPythonPackage, + fetchPypi, + six, + beautifulsoup4, + lxml, }: buildPythonPackage rec { @@ -16,12 +17,15 @@ buildPythonPackage rec { sha256 = "19y4sp5l9jqiqzzlbqdfiab42qx7d84n4xm4s7jfq397666vcyh5"; }; - propagatedBuildInputs = [ six beautifulsoup4 lxml ]; + propagatedBuildInputs = [ + six + beautifulsoup4 + lxml + ]; meta = with lib; { homepage = "http://sites.google.com/site/ofxparse"; description = "Tools for working with the OFX (Open Financial Exchange) file format"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/ofxtools/default.nix b/pkgs/development/python-modules/ofxtools/default.nix index 67bb7ded1042..552267ee759d 100644 --- a/pkgs/development/python-modules/ofxtools/default.nix +++ b/pkgs/development/python-modules/ofxtools/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/okonomiyaki/default.nix b/pkgs/development/python-modules/okonomiyaki/default.nix index 4c51df76f14e..d68f9d5b9283 100644 --- a/pkgs/development/python-modules/okonomiyaki/default.nix +++ b/pkgs/development/python-modules/okonomiyaki/default.nix @@ -1,16 +1,17 @@ -{ buildPythonPackage -, stdenv -, fetchFromGitHub -, lib -, attrs -, distro -, jsonschema -, six -, zipfile2 -, hypothesis -, mock -, packaging -, testfixtures +{ + buildPythonPackage, + stdenv, + fetchFromGitHub, + lib, + attrs, + distro, + jsonschema, + six, + zipfile2, + hypothesis, + mock, + packaging, + testfixtures, }: buildPythonPackage rec { @@ -25,17 +26,30 @@ buildPythonPackage rec { hash = "sha256-MEll1H7l41m8uz2/WK/Ilm7Dubg0uqYwe+ZgakO1aXQ="; }; - propagatedBuildInputs = [ distro attrs jsonschema six zipfile2 ]; + propagatedBuildInputs = [ + distro + attrs + jsonschema + six + zipfile2 + ]; - preCheck = '' - substituteInPlace okonomiyaki/runtimes/tests/test_runtime.py \ - --replace 'runtime_info = PythonRuntime.from_running_python()' 'raise unittest.SkipTest() #' - '' + lib.optionalString stdenv.isDarwin '' - substituteInPlace okonomiyaki/platforms/tests/test_pep425.py \ - --replace 'self.assertEqual(platform_tag, self.tag.platform)' 'raise unittest.SkipTest()' - ''; + preCheck = + '' + substituteInPlace okonomiyaki/runtimes/tests/test_runtime.py \ + --replace 'runtime_info = PythonRuntime.from_running_python()' 'raise unittest.SkipTest() #' + '' + + lib.optionalString stdenv.isDarwin '' + substituteInPlace okonomiyaki/platforms/tests/test_pep425.py \ + --replace 'self.assertEqual(platform_tag, self.tag.platform)' 'raise unittest.SkipTest()' + ''; - checkInputs = [ hypothesis mock packaging testfixtures ]; + checkInputs = [ + hypothesis + mock + packaging + testfixtures + ]; pythonImportsCheck = [ "okonomiyaki" ]; diff --git a/pkgs/development/python-modules/okta/default.nix b/pkgs/development/python-modules/okta/default.nix index 6b4787570c36..d825547bd4d5 100644 --- a/pkgs/development/python-modules/okta/default.nix +++ b/pkgs/development/python-modules/okta/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, aenum -, aiohttp -, buildPythonPackage -, fetchPypi -, flatdict -, pycryptodome -, pycryptodomex -, pydash -, pyfakefs -, pytest-asyncio -, pytest-mock -, pytest-recording -, pytestCheckHook -, python-jose -, pythonOlder -, pyyaml -, xmltodict -, yarl +{ + lib, + stdenv, + aenum, + aiohttp, + buildPythonPackage, + fetchPypi, + flatdict, + pycryptodome, + pycryptodomex, + pydash, + pyfakefs, + pytest-asyncio, + pytest-mock, + pytest-recording, + pytestCheckHook, + python-jose, + pythonOlder, + pyyaml, + xmltodict, + yarl, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; disabledTests = [ "test_client_raise_exception" diff --git a/pkgs/development/python-modules/oldest-supported-numpy/default.nix b/pkgs/development/python-modules/oldest-supported-numpy/default.nix index a0ec902984e1..521094a8e4c0 100644 --- a/pkgs/development/python-modules/oldest-supported-numpy/default.nix +++ b/pkgs/development/python-modules/oldest-supported-numpy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { --replace 'numpy==' 'numpy>=' ''; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; # package has no tests doCheck = false; diff --git a/pkgs/development/python-modules/olefile/default.nix b/pkgs/development/python-modules/olefile/default.nix index f0df020d39c3..d69d11a331e6 100644 --- a/pkgs/development/python-modules/olefile/default.nix +++ b/pkgs/development/python-modules/olefile/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,20 +16,19 @@ buildPythonPackage rec { sha256 = "sha256-WZODOBoL89+9kyygymUVrNF07UiHDL9/7hI9aYwZLBw="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "olefile" - ]; + pythonImportsCheck = [ "olefile" ]; meta = with lib; { description = "Python package to parse, read and write Microsoft OLE2 files"; homepage = "https://www.decalage.info/python/olefileio"; # BSD2 + reference to Pillow # http://olefile.readthedocs.io/en/latest/License.html - license = with licenses; [ bsd2 /* and */ hpnd ]; + license = with licenses; [ + bsd2 # and + hpnd + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/oletools/default.nix b/pkgs/development/python-modules/oletools/default.nix index d7df0523eac5..72fc64e65c5b 100644 --- a/pkgs/development/python-modules/oletools/default.nix +++ b/pkgs/development/python-modules/oletools/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, colorclass -, easygui -, fetchFromGitHub -, msoffcrypto-tool -, olefile -, pcodedmp -, pyparsing -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + colorclass, + easygui, + fetchFromGitHub, + msoffcrypto-tool, + olefile, + pcodedmp, + pyparsing, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pyparsing ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ @@ -50,14 +49,15 @@ buildPythonPackage rec { "test_xlm" ]; - pythonImportsCheck = [ - "oletools" - ]; + pythonImportsCheck = [ "oletools" ]; meta = with lib; { description = "Module to analyze MS OLE2 files and MS Office documents"; homepage = "https://github.com/decalage2/oletools"; - license = with licenses; [ bsd2 /* and */ mit ]; + license = with licenses; [ + bsd2 # and + mit + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/ome-zarr/default.nix b/pkgs/development/python-modules/ome-zarr/default.nix index b87e8f925931..d14f7a7cca0d 100644 --- a/pkgs/development/python-modules/ome-zarr/default.nix +++ b/pkgs/development/python-modules/ome-zarr/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, aiohttp -, dask -, distributed -, fsspec -, numpy -, requests -, scikit-image -, toolz -, zarr +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + aiohttp, + dask, + distributed, + fsspec, + numpy, + requests, + scikit-image, + toolz, + zarr, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { toolz ] ++ fsspec.passthru.optional-dependencies.s3; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # attempts to access network diff --git a/pkgs/development/python-modules/omegaconf/default.nix b/pkgs/development/python-modules/omegaconf/default.nix index 445d15f43940..4386f2170c2f 100644 --- a/pkgs/development/python-modules/omegaconf/default.nix +++ b/pkgs/development/python-modules/omegaconf/default.nix @@ -1,17 +1,18 @@ -{ lib -, antlr4 -, antlr4-python3-runtime -, attrs -, buildPythonPackage -, fetchFromGitHub -, setuptools -, jre_minimal -, pydevd -, pytest-mock -, pytestCheckHook -, pythonOlder -, pyyaml -, substituteAll +{ + lib, + antlr4, + antlr4-python3-runtime, + attrs, + buildPythonPackage, + fetchFromGitHub, + setuptools, + jre_minimal, + pydevd, + pytest-mock, + pytestCheckHook, + pythonOlder, + pyyaml, + substituteAll, }: buildPythonPackage rec { @@ -46,13 +47,9 @@ buildPythonPackage rec { sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements/base.txt ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeBuildInputs = [ - jre_minimal - ]; + nativeBuildInputs = [ jre_minimal ]; dependencies = [ antlr4-python3-runtime @@ -66,18 +63,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "omegaconf" - ]; + pythonImportsCheck = [ "omegaconf" ]; pytestFlagsArray = [ "-W" "ignore::DeprecationWarning" ]; - disabledTests = [ - "test_eq" - ]; + disabledTests = [ "test_eq" ]; meta = with lib; { description = "Framework for configuring complex applications"; diff --git a/pkgs/development/python-modules/omemo-dr/default.nix b/pkgs/development/python-modules/omemo-dr/default.nix index 03850fc8cca7..e6b1317738c1 100644 --- a/pkgs/development/python-modules/omemo-dr/default.nix +++ b/pkgs/development/python-modules/omemo-dr/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, protobuf -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + protobuf, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-KoqMdyMdc5Sb3TdSeNTVomElK9ruUstiQayyUcIC02E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography protobuf ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "omemo_dr" - ]; + pythonImportsCheck = [ "omemo_dr" ]; meta = with lib; { description = "OMEMO Double Ratchet"; diff --git a/pkgs/development/python-modules/omnikinverter/default.nix b/pkgs/development/python-modules/omnikinverter/default.nix index 4d9a2c97c566..3c4ba18ba995 100644 --- a/pkgs/development/python-modules/omnikinverter/default.nix +++ b/pkgs/development/python-modules/omnikinverter/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "omnikinverter" - ]; + pythonImportsCheck = [ "omnikinverter" ]; meta = with lib; { description = "Python module for the Omnik Inverter"; diff --git a/pkgs/development/python-modules/omnilogic/default.nix b/pkgs/development/python-modules/omnilogic/default.nix index 343b65522cae..4e8f8234f4d1 100644 --- a/pkgs/development/python-modules/omnilogic/default.nix +++ b/pkgs/development/python-modules/omnilogic/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, xmltodict -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + aiohttp, + xmltodict, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "omnilogic" - ]; + pythonImportsCheck = [ "omnilogic" ]; meta = with lib; { description = "Python interface for the Hayward Omnilogic pool control system"; diff --git a/pkgs/development/python-modules/omorfi/default.nix b/pkgs/development/python-modules/omorfi/default.nix index 55fe7a0454ae..c73147faddfd 100644 --- a/pkgs/development/python-modules/omorfi/default.nix +++ b/pkgs/development/python-modules/omorfi/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, pkgs -, lib -, stdenv -, hfst +{ + buildPythonPackage, + pkgs, + lib, + stdenv, + hfst, }: buildPythonPackage rec { @@ -12,9 +13,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/src/python"; - propagatedBuildInputs = [ - hfst - ]; + propagatedBuildInputs = [ hfst ]; # Fixes some improper import paths patches = [ ./importfix.patch ]; diff --git a/pkgs/development/python-modules/omrdatasettools/default.nix b/pkgs/development/python-modules/omrdatasettools/default.nix index c210349ad631..a61bc96dc78f 100644 --- a/pkgs/development/python-modules/omrdatasettools/default.nix +++ b/pkgs/development/python-modules/omrdatasettools/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, h5py -, ipython -, lxml -, mung -, muscima -, numpy -, pillow -, pytestCheckHook -, scikit-image -, sphinx-rtd-theme -, sympy -, pandas -, pyhamcrest -, tqdm -, twine +{ + lib, + buildPythonPackage, + fetchPypi, + h5py, + ipython, + lxml, + mung, + muscima, + numpy, + pillow, + pytestCheckHook, + scikit-image, + sphinx-rtd-theme, + sympy, + pandas, + pyhamcrest, + tqdm, + twine, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { ipython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # The download tests require internet access diff --git a/pkgs/development/python-modules/oncalendar/default.nix b/pkgs/development/python-modules/oncalendar/default.nix index f37261a058bd..02c85147f996 100644 --- a/pkgs/development/python-modules/oncalendar/default.nix +++ b/pkgs/development/python-modules/oncalendar/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/onetimepad/default.nix b/pkgs/development/python-modules/onetimepad/default.nix index a1baab63934a..fd4d2312bbe2 100644 --- a/pkgs/development/python-modules/onetimepad/default.nix +++ b/pkgs/development/python-modules/onetimepad/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/onigurumacffi/default.nix b/pkgs/development/python-modules/onigurumacffi/default.nix index 5bb8abcff64d..09be23993652 100644 --- a/pkgs/development/python-modules/onigurumacffi/default.nix +++ b/pkgs/development/python-modules/onigurumacffi/default.nix @@ -1,4 +1,9 @@ -{ lib, python3Packages, fetchPypi, oniguruma }: +{ + lib, + python3Packages, + fetchPypi, + oniguruma, +}: python3Packages.buildPythonPackage rec { pname = "onigurumacffi"; version = "1.3.0"; diff --git a/pkgs/development/python-modules/onkyo-eiscp/default.nix b/pkgs/development/python-modules/onkyo-eiscp/default.nix index 2a54df8e5e8c..ab82ef0b7bdf 100644 --- a/pkgs/development/python-modules/onkyo-eiscp/default.nix +++ b/pkgs/development/python-modules/onkyo-eiscp/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, docopt, netifaces }: +{ + lib, + buildPythonPackage, + fetchPypi, + docopt, + netifaces, +}: buildPythonPackage rec { pname = "onkyo-eiscp"; @@ -11,7 +16,10 @@ buildPythonPackage rec { sha256 = "761abb16c654a1136763b927d094174d41f282809e44ea32cd47e199dd79d9c9"; }; - propagatedBuildInputs = [ docopt netifaces ]; + propagatedBuildInputs = [ + docopt + netifaces + ]; meta = with lib; { description = "Control Onkyo receivers over ethernet"; diff --git a/pkgs/development/python-modules/online-judge-api-client/default.nix b/pkgs/development/python-modules/online-judge-api-client/default.nix index 8c17aed69179..964f6232303b 100644 --- a/pkgs/development/python-modules/online-judge-api-client/default.nix +++ b/pkgs/development/python-modules/online-judge-api-client/default.nix @@ -1,24 +1,33 @@ -{ lib -, appdirs -, beautifulsoup4 -, buildPythonPackage -, colorlog -, fetchFromGitHub -, git -, jsonschema -, lxml -, markdown -, python -, requests -, substituteAll -, toml +{ + lib, + appdirs, + beautifulsoup4, + buildPythonPackage, + colorlog, + fetchFromGitHub, + git, + jsonschema, + lxml, + markdown, + python, + requests, + substituteAll, + toml, }: let # NOTE This is needed to download & run another Python program internally in # order to generate test cases for library-checker problems. - pythonEnv = python.withPackages (ps: with ps; [ colorlog jinja2 markdown toml ]); -in buildPythonPackage rec { + pythonEnv = python.withPackages ( + ps: with ps; [ + colorlog + jinja2 + markdown + toml + ] + ); +in +buildPythonPackage rec { pname = "online-judge-api-client"; version = "10.10.1"; format = "setuptools"; @@ -50,7 +59,10 @@ in buildPythonPackage rec { # Requires internet access doCheck = false; - pythonImportsCheck = [ "onlinejudge" "onlinejudge_api" ]; + pythonImportsCheck = [ + "onlinejudge" + "onlinejudge_api" + ]; meta = with lib; { description = "API client to develop tools for competitive programming"; diff --git a/pkgs/development/python-modules/online-judge-tools/default.nix b/pkgs/development/python-modules/online-judge-tools/default.nix index a86b41145237..00be2701e604 100644 --- a/pkgs/development/python-modules/online-judge-tools/default.nix +++ b/pkgs/development/python-modules/online-judge-tools/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, online-judge-api-client -, requests +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + online-judge-api-client, + requests, }: buildPythonPackage rec { @@ -18,7 +19,11 @@ buildPythonPackage rec { sha256 = "0zkzmmjgjb6lyrzq1ip54cpnp7al9a7mcyjyi5vx58bvnx3q0c6m"; }; - propagatedBuildInputs = [ colorama online-judge-api-client requests ]; + propagatedBuildInputs = [ + colorama + online-judge-api-client + requests + ]; # Requires internet access doCheck = false; diff --git a/pkgs/development/python-modules/onlykey-solo-python/default.nix b/pkgs/development/python-modules/onlykey-solo-python/default.nix index 23e11bc7c307..53831b63c40c 100644 --- a/pkgs/development/python-modules/onlykey-solo-python/default.nix +++ b/pkgs/development/python-modules/onlykey-solo-python/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, click -, ecdsa -, fetchpatch -, fetchPypi -, fido2 -, intelhex -, lib -, pyserial -, pyusb -, requests +{ + buildPythonPackage, + click, + ecdsa, + fetchpatch, + fetchPypi, + fido2, + intelhex, + lib, + pyserial, + pyusb, + requests, }: buildPythonPackage rec { @@ -34,7 +35,15 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ click ecdsa fido2 intelhex pyserial pyusb requests ]; + propagatedBuildInputs = [ + click + ecdsa + fido2 + intelhex + pyserial + pyusb + requests + ]; # no tests doCheck = false; @@ -48,4 +57,3 @@ buildPythonPackage rec { license = licenses.asl20; }; } - diff --git a/pkgs/development/python-modules/onnx/default.nix b/pkgs/development/python-modules/onnx/default.nix index bcfd0cf6e3cf..d4257e4489d8 100644 --- a/pkgs/development/python-modules/onnx/default.nix +++ b/pkgs/development/python-modules/onnx/default.nix @@ -1,28 +1,30 @@ -{ lib -, stdenv -, buildPythonPackage -, cmake -, fetchFromGitHub -, fetchpatch -, gtest -, nbval -, numpy -, parameterized -, protobuf_21 -, pybind11 -, pytestCheckHook -, pythonOlder -, tabulate -, typing-extensions -, abseil-cpp -, google-re2 -, pillow -, protobuf +{ + lib, + stdenv, + buildPythonPackage, + cmake, + fetchFromGitHub, + fetchpatch, + gtest, + nbval, + numpy, + parameterized, + protobuf_21, + pybind11, + pytestCheckHook, + pythonOlder, + tabulate, + typing-extensions, + abseil-cpp, + google-re2, + pillow, + protobuf, }: let gtestStatic = gtest.override { static = true; }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "onnx"; version = "1.15.0"; format = "setuptools"; @@ -117,28 +119,30 @@ in buildPythonPackage rec { "onnx/examples" ]; - disabledTests = [ - # attempts to fetch data from web - "test_bvlc_alexnet_cpu" - "test_densenet121_cpu" - "test_inception_v1_cpu" - "test_inception_v2_cpu" - "test_resnet50_cpu" - "test_shufflenet_cpu" - "test_squeezenet_cpu" - "test_vgg19_cpu" - "test_zfnet512_cpu" - ] ++ lib.optionals stdenv.isAarch64 [ - # AssertionError: Output 0 of test 0 in folder - "test__pytorch_converted_Conv2d_depthwise_padded" - "test__pytorch_converted_Conv2d_dilated" - "test_dft" - "test_dft_axis" - # AssertionError: Mismatch in test 'test_Conv2d_depthwise_padded' - "test_xor_bcast4v4d" - # AssertionError: assert 1 == 0 - "test_ops_tested" - ]; + disabledTests = + [ + # attempts to fetch data from web + "test_bvlc_alexnet_cpu" + "test_densenet121_cpu" + "test_inception_v1_cpu" + "test_inception_v2_cpu" + "test_resnet50_cpu" + "test_shufflenet_cpu" + "test_squeezenet_cpu" + "test_vgg19_cpu" + "test_zfnet512_cpu" + ] + ++ lib.optionals stdenv.isAarch64 [ + # AssertionError: Output 0 of test 0 in folder + "test__pytorch_converted_Conv2d_depthwise_padded" + "test__pytorch_converted_Conv2d_dilated" + "test_dft" + "test_dft_axis" + # AssertionError: Mismatch in test 'test_Conv2d_depthwise_padded' + "test_xor_bcast4v4d" + # AssertionError: assert 1 == 0 + "test_ops_tested" + ]; disabledTestPaths = [ # Unexpected output fields from running code: {'stderr'} @@ -152,9 +156,7 @@ in buildPythonPackage rec { .setuptools-cmake-build/onnx_gtests ''; - pythonImportsCheck = [ - "onnx" - ]; + pythonImportsCheck = [ "onnx" ]; meta = with lib; { description = "Open Neural Network Exchange"; diff --git a/pkgs/development/python-modules/onnxconverter-common/default.nix b/pkgs/development/python-modules/onnxconverter-common/default.nix index 1da4168d22b7..94cc0b881351 100644 --- a/pkgs/development/python-modules/onnxconverter-common/default.nix +++ b/pkgs/development/python-modules/onnxconverter-common/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, packaging -, protobuf -, onnx -, unittestCheckHook -, onnxruntime +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + packaging, + protobuf, + onnx, + unittestCheckHook, + onnxruntime, }: buildPythonPackage rec { @@ -29,16 +30,17 @@ buildPythonPackage rec { onnx ]; - pythonImportsCheck = [ - "onnxconverter_common" - ]; + pythonImportsCheck = [ "onnxconverter_common" ]; nativeCheckInputs = [ onnxruntime unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; # Failing tests # https://github.com/microsoft/onnxconverter-common/issues/242 diff --git a/pkgs/development/python-modules/onnxmltools/default.nix b/pkgs/development/python-modules/onnxmltools/default.nix index b24537ddcdf3..656e3631a9ca 100644 --- a/pkgs/development/python-modules/onnxmltools/default.nix +++ b/pkgs/development/python-modules/onnxmltools/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, onnx -, skl2onnx -# native check inputs -, pytestCheckHook -, pandas -, xgboost -, onnxruntime -, scikit-learn -, pyspark -, lightgbm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + onnx, + skl2onnx, + # native check inputs + pytestCheckHook, + pandas, + xgboost, + onnxruntime, + scikit-learn, + pyspark, + lightgbm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/onnxruntime-tools/default.nix b/pkgs/development/python-modules/onnxruntime-tools/default.nix index 6f8a5001b1ff..462cdb7f2336 100644 --- a/pkgs/development/python-modules/onnxruntime-tools/default.nix +++ b/pkgs/development/python-modules/onnxruntime-tools/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, coloredlogs -, numpy -, onnx -, packaging -, psutil -, py-cpuinfo -, py3nvml -, sympy +{ + lib, + buildPythonPackage, + fetchPypi, + coloredlogs, + numpy, + onnx, + packaging, + psutil, + py-cpuinfo, + py3nvml, + sympy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/onnxruntime/default.nix b/pkgs/development/python-modules/onnxruntime/default.nix index 328825698f89..612e76354a00 100644 --- a/pkgs/development/python-modules/onnxruntime/default.nix +++ b/pkgs/development/python-modules/onnxruntime/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, autoPatchelfHook -, pythonRelaxDepsHook -, onnxruntime -, coloredlogs -, numpy -, packaging -, oneDNN -, re2 +{ + lib, + stdenv, + buildPythonPackage, + autoPatchelfHook, + pythonRelaxDepsHook, + onnxruntime, + coloredlogs, + numpy, + packaging, + oneDNN, + re2, }: @@ -35,11 +36,7 @@ buildPythonPackage { chmod +w dist ''; - nativeBuildInputs = [ - pythonRelaxDepsHook - ] ++ lib.optionals stdenv.isLinux [ - autoPatchelfHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; # This project requires fairly large dependencies such as sympy which we really don't always need. pythonRemoveDeps = [ @@ -49,17 +46,22 @@ buildPythonPackage { ]; # Libraries are not linked correctly. - buildInputs = [ - oneDNN - re2 - onnxruntime.protobuf - ] ++ lib.optionals onnxruntime.passthru.cudaSupport (with onnxruntime.passthru.cudaPackages; [ - libcublas # libcublasLt.so.XX libcublas.so.XX - libcurand # libcurand.so.XX - libcufft # libcufft.so.XX - cudnn # libcudnn.soXX - cuda_cudart # libcudart.so.XX - ]); + buildInputs = + [ + oneDNN + re2 + onnxruntime.protobuf + ] + ++ lib.optionals onnxruntime.passthru.cudaSupport ( + with onnxruntime.passthru.cudaPackages; + [ + libcublas # libcublasLt.so.XX libcublas.so.XX + libcurand # libcurand.so.XX + libcufft # libcufft.so.XX + cudnn # libcudnn.soXX + cuda_cudart # libcudart.so.XX + ] + ); propagatedBuildInputs = [ coloredlogs diff --git a/pkgs/development/python-modules/onvif-zeep-async/default.nix b/pkgs/development/python-modules/onvif-zeep-async/default.nix index aacdb41fda1f..8da15eabe811 100644 --- a/pkgs/development/python-modules/onvif-zeep-async/default.nix +++ b/pkgs/development/python-modules/onvif-zeep-async/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, ciso8601 -, fetchPypi -, httpx -, pythonOlder -, zeep +{ + lib, + buildPythonPackage, + ciso8601, + fetchPypi, + httpx, + pythonOlder, + zeep, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { zeep ]; - pythonImportsCheck = [ - "onvif" - ]; + pythonImportsCheck = [ "onvif" ]; # Tests are not shipped doCheck = false; diff --git a/pkgs/development/python-modules/onvif-zeep/default.nix b/pkgs/development/python-modules/onvif-zeep/default.nix index 2c2946d53c00..07a7141e4867 100644 --- a/pkgs/development/python-modules/onvif-zeep/default.nix +++ b/pkgs/development/python-modules/onvif-zeep/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, zeep +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + zeep, }: buildPythonPackage rec { @@ -16,17 +17,11 @@ buildPythonPackage rec { hash = "sha256-qou8Aqc+qlCJSwwY45+o0xilg6ZkxlvzWzyAKdHEC0k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - zeep - ]; + propagatedBuildInputs = [ zeep ]; - pythonImportsCheck = [ - "onvif" - ]; + pythonImportsCheck = [ "onvif" ]; # Tests require hardware doCheck = false; diff --git a/pkgs/development/python-modules/oocsi/default.nix b/pkgs/development/python-modules/oocsi/default.nix index 073909891389..0bf286c3263b 100644 --- a/pkgs/development/python-modules/oocsi/default.nix +++ b/pkgs/development/python-modules/oocsi/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Tests are not shipped doCheck = false; - pythonImportsCheck = [ - "oocsi" - ]; + pythonImportsCheck = [ "oocsi" ]; meta = with lib; { description = "OOCSI library for Python"; diff --git a/pkgs/development/python-modules/opcua-widgets/default.nix b/pkgs/development/python-modules/opcua-widgets/default.nix index 0f078aa6fc47..4d0ff49f2cce 100644 --- a/pkgs/development/python-modules/opcua-widgets/default.nix +++ b/pkgs/development/python-modules/opcua-widgets/default.nix @@ -1,9 +1,10 @@ -{ pkgs -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pyqt5 -, asyncua +{ + pkgs, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pyqt5, + asyncua, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/open-clip-torch/default.nix b/pkgs/development/python-modules/open-clip-torch/default.nix index 81b686332883..0003c289adff 100644 --- a/pkgs/development/python-modules/open-clip-torch/default.nix +++ b/pkgs/development/python-modules/open-clip-torch/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, braceexpand -, ftfy -, huggingface-hub -, pandas -, protobuf -, pytestCheckHook -, regex -, sentencepiece -, timm -, torch -, torchvision -, tqdm -, transformers -, setuptools -, webdataset -, wheel -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + braceexpand, + ftfy, + huggingface-hub, + pandas, + protobuf, + pytestCheckHook, + regex, + sentencepiece, + timm, + torch, + torchvision, + tqdm, + transformers, + setuptools, + webdataset, + wheel, + fetchFromGitHub, }: buildPythonPackage rec { pname = "open-clip-torch"; @@ -58,25 +59,25 @@ buildPythonPackage rec { pythonImportsCheck = [ "open_clip" ]; - disabledTestPaths = lib.optionals (stdenv.isAarch64 || stdenv.isDarwin) [ - "tests/test_wds.py" - ]; + disabledTestPaths = lib.optionals (stdenv.isAarch64 || stdenv.isDarwin) [ "tests/test_wds.py" ]; - disabledTests = [ - # requires network - "test_download_pretrained_from_hfh" - "test_inference_simple" - "test_inference_with_data" - "test_pretrained_text_encoder" - "test_training_mt5" - # fails due to type errors - "test_num_shards" - ] ++ lib.optionals (stdenv.isAarch64 && stdenv.isLinux) [ - "test_training" - "test_training_coca" - "test_training_unfreezing_vit" - "test_training_clip_with_jit" - ]; + disabledTests = + [ + # requires network + "test_download_pretrained_from_hfh" + "test_inference_simple" + "test_inference_with_data" + "test_pretrained_text_encoder" + "test_training_mt5" + # fails due to type errors + "test_num_shards" + ] + ++ lib.optionals (stdenv.isAarch64 && stdenv.isLinux) [ + "test_training" + "test_training_coca" + "test_training_unfreezing_vit" + "test_training_clip_with_jit" + ]; meta = with lib; { description = "An open source implementation of CLIP"; diff --git a/pkgs/development/python-modules/open-garage/default.nix b/pkgs/development/python-modules/open-garage/default.nix index 3064bceda1a0..ff50be9476e4 100644 --- a/pkgs/development/python-modules/open-garage/default.nix +++ b/pkgs/development/python-modules/open-garage/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "opengarage" - ]; + pythonImportsCheck = [ "opengarage" ]; meta = with lib; { description = "Python module to communicate with opengarage.io"; diff --git a/pkgs/development/python-modules/open-interpreter/default.nix b/pkgs/development/python-modules/open-interpreter/default.nix index 2f256aa32701..726a312b38e2 100644 --- a/pkgs/development/python-modules/open-interpreter/default.nix +++ b/pkgs/development/python-modules/open-interpreter/default.nix @@ -1,29 +1,30 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, pythonRelaxDepsHook -, poetry-core +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + pythonRelaxDepsHook, + poetry-core, -, appdirs -, astor -, inquirer -, litellm -, pyyaml -, rich -, six -, tiktoken -, tokentrim -, wget -, psutil -, html2image -, ipykernel -, jupyter-client -, matplotlib -, toml -, posthog -, openai -, setuptools + appdirs, + astor, + inquirer, + litellm, + pyyaml, + rich, + six, + tiktoken, + tokentrim, + wget, + psutil, + html2image, + ipykernel, + jupyter-client, + matplotlib, + toml, + posthog, + openai, + setuptools, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { substituteInPlace pyproject.toml --replace 'git-python = "^1.0.3"' "" ''; - pythonRelaxDeps = [ - "tiktoken" - ]; + pythonRelaxDeps = [ "tiktoken" ]; nativeBuildInputs = [ poetry-core diff --git a/pkgs/development/python-modules/open-meteo/default.nix b/pkgs/development/python-modules/open-meteo/default.nix index 6da363372369..88d54404cf1f 100644 --- a/pkgs/development/python-modules/open-meteo/default.nix +++ b/pkgs/development/python-modules/open-meteo/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "open_meteo" - ]; + pythonImportsCheck = [ "open_meteo" ]; meta = with lib; { changelog = "https://github.com/frenck/python-open-meteo/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/openai-triton/bin.nix b/pkgs/development/python-modules/openai-triton/bin.nix index f5a4148d28a7..e800b6521b24 100644 --- a/pkgs/development/python-modules/openai-triton/bin.nix +++ b/pkgs/development/python-modules/openai-triton/bin.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, addOpenGLRunpath -, cudaPackages -, buildPythonPackage -, fetchurl -, isPy38 -, isPy39 -, isPy310 -, isPy311 -, python -, autoPatchelfHook -, filelock -, lit -, pythonRelaxDepsHook -, zlib +{ + lib, + stdenv, + addOpenGLRunpath, + cudaPackages, + buildPythonPackage, + fetchurl, + isPy38, + isPy39, + isPy310, + isPy311, + python, + autoPatchelfHook, + filelock, + lit, + pythonRelaxDepsHook, + zlib, }: buildPythonPackage rec { @@ -22,14 +23,19 @@ buildPythonPackage rec { format = "wheel"; src = - let pyVerNoDot = lib.replaceStrings [ "." ] [ "" ] python.pythonVersion; - unsupported = throw "Unsupported system"; - srcs = (import ./binary-hashes.nix version)."${stdenv.system}-${pyVerNoDot}" or unsupported; - in fetchurl srcs; + let + pyVerNoDot = lib.replaceStrings [ "." ] [ "" ] python.pythonVersion; + unsupported = throw "Unsupported system"; + srcs = (import ./binary-hashes.nix version)."${stdenv.system}-${pyVerNoDot}" or unsupported; + in + fetchurl srcs; disabled = !(isPy38 || isPy39 || isPy310 || isPy311); - pythonRemoveDeps = [ "cmake" "torch" ]; + pythonRemoveDeps = [ + "cmake" + "torch" + ]; buildInputs = [ zlib ]; @@ -47,24 +53,31 @@ buildPythonPackage rec { dontStrip = true; # If this breaks, consider replacing with "${cuda_nvcc}/bin/ptxas" - postFixup = '' - chmod +x "$out/${python.sitePackages}/triton/third_party/cuda/bin/ptxas" - '' + - (let - # Bash was getting weird without linting, - # but basically upstream contains [cc, ..., "-lcuda", ...] - # and we replace it with [..., "-lcuda", "-L/run/opengl-driver/lib", "-L$stubs", ...] - old = [ "-lcuda" ]; - new = [ "-lcuda" "-L${addOpenGLRunpath.driverLink}" "-L${cudaPackages.cuda_cudart}/lib/stubs/" ]; - - quote = x: ''"${x}"''; - oldStr = lib.concatMapStringsSep ", " quote old; - newStr = lib.concatMapStringsSep ", " quote new; - in + postFixup = '' - substituteInPlace $out/${python.sitePackages}/triton/common/build.py \ - --replace '${oldStr}' '${newStr}' - ''); + chmod +x "$out/${python.sitePackages}/triton/third_party/cuda/bin/ptxas" + '' + + ( + let + # Bash was getting weird without linting, + # but basically upstream contains [cc, ..., "-lcuda", ...] + # and we replace it with [..., "-lcuda", "-L/run/opengl-driver/lib", "-L$stubs", ...] + old = [ "-lcuda" ]; + new = [ + "-lcuda" + "-L${addOpenGLRunpath.driverLink}" + "-L${cudaPackages.cuda_cudart}/lib/stubs/" + ]; + + quote = x: ''"${x}"''; + oldStr = lib.concatMapStringsSep ", " quote old; + newStr = lib.concatMapStringsSep ", " quote new; + in + '' + substituteInPlace $out/${python.sitePackages}/triton/common/build.py \ + --replace '${oldStr}' '${newStr}' + '' + ); meta = with lib; { description = "A language and compiler for custom Deep Learning operations"; @@ -74,7 +87,10 @@ buildPythonPackage rec { # https://docs.nvidia.com/cuda/eula/index.html # triton's license is MIT. # openai-triton-bin includes ptxas binary, therefore unfreeRedistributable is set. - license = with licenses; [ unfreeRedistributable mit ]; + license = with licenses; [ + unfreeRedistributable + mit + ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ junjihashimoto ]; diff --git a/pkgs/development/python-modules/openai-triton/binary-hashes.nix b/pkgs/development/python-modules/openai-triton/binary-hashes.nix index d5f588dc947c..5c542ac187ee 100644 --- a/pkgs/development/python-modules/openai-triton/binary-hashes.nix +++ b/pkgs/development/python-modules/openai-triton/binary-hashes.nix @@ -5,7 +5,8 @@ # To add a new version, run "prefetch.sh 'new-version'" to paste the generated file as follows. -version : builtins.getAttr version { +version: +builtins.getAttr version { "2.1.0" = { x86_64-linux-38 = { name = "triton-2.1.0-cp38-cp38-linux_x86_64.whl"; diff --git a/pkgs/development/python-modules/openai-triton/default.nix b/pkgs/development/python-modules/openai-triton/default.nix index e4679a7bbdee..1b4d713311ee 100644 --- a/pkgs/development/python-modules/openai-triton/default.nix +++ b/pkgs/development/python-modules/openai-triton/default.nix @@ -1,29 +1,30 @@ -{ lib -, config -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, addOpenGLRunpath -, setuptools -, pytestCheckHook -, pythonRelaxDepsHook -, cmake -, ninja -, pybind11 -, gtest -, zlib -, ncurses -, libxml2 -, lit -, llvm -, filelock -, torchWithRocm -, python +{ + lib, + config, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + addOpenGLRunpath, + setuptools, + pytestCheckHook, + pythonRelaxDepsHook, + cmake, + ninja, + pybind11, + gtest, + zlib, + ncurses, + libxml2, + lit, + llvm, + filelock, + torchWithRocm, + python, -, runCommand + runCommand, -, cudaPackages -, cudaSupport ? config.cudaSupport + cudaPackages, + cudaSupport ? config.cudaSupport, }: let @@ -41,18 +42,20 @@ buildPythonPackage rec { hash = "sha256-8UTUwLH+SriiJnpejdrzz9qIquP2zBp1/uwLdHmv0XQ="; }; - patches = [ - # fix overflow error - (fetchpatch { - url = "https://github.com/openai/triton/commit/52c146f66b79b6079bcd28c55312fc6ea1852519.patch"; - hash = "sha256-098/TCQrzvrBAbQiaVGCMaF3o5Yc3yWDxzwSkzIuAtY="; - }) - ] ++ lib.optionals (!cudaSupport) [ - ./0000-dont-download-ptxas.patch - # openai-triton wants to get ptxas version even if ptxas is not - # used, resulting in ptxas not found error. - ./0001-ptxas-disable-version-key-for-non-cuda-targets.patch - ]; + patches = + [ + # fix overflow error + (fetchpatch { + url = "https://github.com/openai/triton/commit/52c146f66b79b6079bcd28c55312fc6ea1852519.patch"; + hash = "sha256-098/TCQrzvrBAbQiaVGCMaF3o5Yc3yWDxzwSkzIuAtY="; + }) + ] + ++ lib.optionals (!cudaSupport) [ + ./0000-dont-download-ptxas.patch + # openai-triton wants to get ptxas version even if ptxas is not + # used, resulting in ptxas not found error. + ./0001-ptxas-disable-version-key-for-non-cuda-targets.patch + ]; nativeBuildInputs = [ setuptools @@ -84,58 +87,67 @@ buildPythonPackage rec { setuptools ]; - postPatch = let - # Bash was getting weird without linting, - # but basically upstream contains [cc, ..., "-lcuda", ...] - # and we replace it with [..., "-lcuda", "-L/run/opengl-driver/lib", "-L$stubs", ...] - old = [ "-lcuda" ]; - new = [ "-lcuda" "-L${addOpenGLRunpath.driverLink}" "-L${cudaPackages.cuda_cudart}/lib/stubs/" ]; + postPatch = + let + # Bash was getting weird without linting, + # but basically upstream contains [cc, ..., "-lcuda", ...] + # and we replace it with [..., "-lcuda", "-L/run/opengl-driver/lib", "-L$stubs", ...] + old = [ "-lcuda" ]; + new = [ + "-lcuda" + "-L${addOpenGLRunpath.driverLink}" + "-L${cudaPackages.cuda_cudart}/lib/stubs/" + ]; - quote = x: ''"${x}"''; - oldStr = lib.concatMapStringsSep ", " quote old; - newStr = lib.concatMapStringsSep ", " quote new; - in '' - # Use our `cmakeFlags` instead and avoid downloading dependencies - substituteInPlace python/setup.py \ - --replace "= get_thirdparty_packages(triton_cache_path)" "= os.environ[\"cmakeFlags\"].split()" + quote = x: ''"${x}"''; + oldStr = lib.concatMapStringsSep ", " quote old; + newStr = lib.concatMapStringsSep ", " quote new; + in + '' + # Use our `cmakeFlags` instead and avoid downloading dependencies + substituteInPlace python/setup.py \ + --replace "= get_thirdparty_packages(triton_cache_path)" "= os.environ[\"cmakeFlags\"].split()" - # Already defined in llvm, when built with -DLLVM_INSTALL_UTILS - substituteInPlace bin/CMakeLists.txt \ - --replace "add_subdirectory(FileCheck)" "" + # Already defined in llvm, when built with -DLLVM_INSTALL_UTILS + substituteInPlace bin/CMakeLists.txt \ + --replace "add_subdirectory(FileCheck)" "" - # Don't fetch googletest - substituteInPlace unittest/CMakeLists.txt \ - --replace "include (\''${CMAKE_CURRENT_SOURCE_DIR}/googletest.cmake)" ""\ - --replace "include(GoogleTest)" "find_package(GTest REQUIRED)" - '' + lib.optionalString cudaSupport '' - # Use our linker flags - substituteInPlace python/triton/common/build.py \ - --replace '${oldStr}' '${newStr}' - ''; + # Don't fetch googletest + substituteInPlace unittest/CMakeLists.txt \ + --replace "include (\''${CMAKE_CURRENT_SOURCE_DIR}/googletest.cmake)" ""\ + --replace "include(GoogleTest)" "find_package(GTest REQUIRED)" + '' + + lib.optionalString cudaSupport '' + # Use our linker flags + substituteInPlace python/triton/common/build.py \ + --replace '${oldStr}' '${newStr}' + ''; # Avoid GLIBCXX mismatch with other cuda-enabled python packages - preConfigure = '' - # Ensure that the build process uses the requested number of cores - export MAX_JOBS="$NIX_BUILD_CORES" + preConfigure = + '' + # Ensure that the build process uses the requested number of cores + export MAX_JOBS="$NIX_BUILD_CORES" - # Upstream's setup.py tries to write cache somewhere in ~/ - export HOME=$(mktemp -d) + # Upstream's setup.py tries to write cache somewhere in ~/ + export HOME=$(mktemp -d) - # Upstream's github actions patch setup.cfg to write base-dir. May be redundant - echo " - [build_ext] - base-dir=$PWD" >> python/setup.cfg + # Upstream's github actions patch setup.cfg to write base-dir. May be redundant + echo " + [build_ext] + base-dir=$PWD" >> python/setup.cfg - # The rest (including buildPhase) is relative to ./python/ - cd python - '' + lib.optionalString cudaSupport '' - export CC=${cudaPackages.backendStdenv.cc}/bin/cc; - export CXX=${cudaPackages.backendStdenv.cc}/bin/c++; + # The rest (including buildPhase) is relative to ./python/ + cd python + '' + + lib.optionalString cudaSupport '' + export CC=${cudaPackages.backendStdenv.cc}/bin/cc; + export CXX=${cudaPackages.backendStdenv.cc}/bin/c++; - # Work around download_and_copy_ptxas() - mkdir -p $PWD/triton/third_party/cuda/bin - ln -s ${ptxas} $PWD/triton/third_party/cuda/bin - ''; + # Work around download_and_copy_ptxas() + mkdir -p $PWD/triton/third_party/cuda/bin + ln -s ${ptxas} $PWD/triton/third_party/cuda/bin + ''; # CMake is run by setup.py instead dontUseCmakeConfigure = true; @@ -168,13 +180,16 @@ buildPythonPackage rec { inherit torchWithRocm; # Implemented as alternative to pythonImportsCheck, in case if circular dependency on torch occurs again, # and pythonImportsCheck is commented back. - import-triton = runCommand "import-triton" { nativeBuildInputs = [(python.withPackages (ps: [ps.openai-triton]))]; } '' - python << \EOF - import triton - import triton.language - EOF - touch "$out" - ''; + import-triton = + runCommand "import-triton" + { nativeBuildInputs = [ (python.withPackages (ps: [ ps.openai-triton ])) ]; } + '' + python << \EOF + import triton + import triton.language + EOF + touch "$out" + ''; }; pythonRemoveDeps = [ @@ -191,6 +206,9 @@ buildPythonPackage rec { homepage = "https://github.com/openai/triton"; platforms = platforms.linux; license = licenses.mit; - maintainers = with maintainers; [ SomeoneSerge Madouura ]; + maintainers = with maintainers; [ + SomeoneSerge + Madouura + ]; }; } diff --git a/pkgs/development/python-modules/openai-whisper/default.nix b/pkgs/development/python-modules/openai-whisper/default.nix index 88f0ffab5dc7..d6933e1aeea1 100644 --- a/pkgs/development/python-modules/openai-whisper/default.nix +++ b/pkgs/development/python-modules/openai-whisper/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, substituteAll +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + substituteAll, -# build-system -, setuptools + # build-system + setuptools, -# runtime -, ffmpeg-headless + # runtime + ffmpeg-headless, -# propagates -, more-itertools -, numba -, numpy -, openai-triton -, tiktoken -, torch -, tqdm + # propagates + more-itertools, + numba, + numpy, + openai-triton, + tiktoken, + torch, + tqdm, -# tests -, pytestCheckHook -, scipy + # tests + pytestCheckHook, + scipy, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ more-itertools @@ -54,9 +53,7 @@ buildPythonPackage rec { tiktoken torch tqdm - ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform openai-triton) [ - openai-triton - ]; + ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform openai-triton) [ openai-triton ]; preCheck = '' export HOME=$TMPDIR @@ -81,6 +78,9 @@ buildPythonPackage rec { mainProgram = "whisper"; homepage = "https://github.com/openai/whisper"; license = licenses.mit; - maintainers = with maintainers; [ hexa MayNiklas ]; + maintainers = with maintainers; [ + hexa + MayNiklas + ]; }; } diff --git a/pkgs/development/python-modules/openaiauth/default.nix b/pkgs/development/python-modules/openaiauth/default.nix index 1b33438e070f..834ca3ed258b 100644 --- a/pkgs/development/python-modules/openaiauth/default.nix +++ b/pkgs/development/python-modules/openaiauth/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, tls-client +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + tls-client, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-9SrptiheiM5s9YI6Ht68ahDGMFADWfBQgAWUBY3EEJ8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - tls-client - ]; + propagatedBuildInputs = [ tls-client ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "OpenAIAuth" - ]; + pythonImportsCheck = [ "OpenAIAuth" ]; meta = with lib; { description = "Library for authenticating with the OpenAI API"; diff --git a/pkgs/development/python-modules/openant/default.nix b/pkgs/development/python-modules/openant/default.nix index 0a655030a37d..a4a54e9a879d 100644 --- a/pkgs/development/python-modules/openant/default.nix +++ b/pkgs/development/python-modules/openant/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pyusb -, influxdb-client -, pyserial -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pyusb, + influxdb-client, + pyserial, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-wDtHlkVyD7mMDXZ4LGMgatr9sSlQKVbgkYsKvHGr9Pc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postInstall = '' install -dm755 "$out/etc/udev/rules.d" @@ -35,21 +34,13 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyusb ]; passthru.optional-dependencies = { - serial = [ - pyserial - ]; - influx = [ - influxdb-client - ]; + serial = [ pyserial ]; + influx = [ influxdb-client ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "openant" - ]; + pythonImportsCheck = [ "openant" ]; meta = with lib; { homepage = "https://github.com/Tigge/openant"; @@ -57,5 +48,4 @@ buildPythonPackage rec { mainProgram = "openant"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/openapi-core/default.nix b/pkgs/development/python-modules/openapi-core/default.nix index 5e1c1d8ae960..15b02bf4bd10 100644 --- a/pkgs/development/python-modules/openapi-core/default.nix +++ b/pkgs/development/python-modules/openapi-core/default.nix @@ -1,31 +1,32 @@ -{ lib -, aiohttp -, aioitertools -, asgiref -, buildPythonPackage -, django -, falcon -, fastapi -, fetchFromGitHub -, flask -, httpx -, isodate -, jsonschema -, jsonschema-spec -, more-itertools -, multidict -, openapi-schema-validator -, openapi-spec-validator -, parse -, poetry-core -, pytest-aiohttp -, pytest7CheckHook -, pythonOlder -, responses -, requests -, starlette -, webob -, werkzeug +{ + lib, + aiohttp, + aioitertools, + asgiref, + buildPythonPackage, + django, + falcon, + fastapi, + fetchFromGitHub, + flask, + httpx, + isodate, + jsonschema, + jsonschema-spec, + more-itertools, + multidict, + openapi-schema-validator, + openapi-spec-validator, + parse, + poetry-core, + pytest-aiohttp, + pytest7CheckHook, + pythonOlder, + responses, + requests, + starlette, + webob, + werkzeug, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { sed -i "/--cov/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ isodate @@ -67,21 +66,11 @@ buildPythonPackage rec { aiohttp multidict ]; - django = [ - django - ]; - falcon = [ - falcon - ]; - fastapi = [ - fastapi - ]; - flask = [ - flask - ]; - requests = [ - requests - ]; + django = [ django ]; + falcon = [ falcon ]; + fastapi = [ fastapi ]; + flask = [ flask ]; + requests = [ requests ]; starlette = [ aioitertools starlette @@ -99,7 +88,8 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/openapi-schema-validator/default.nix b/pkgs/development/python-modules/openapi-schema-validator/default.nix index 4b0608c7572e..f8a391805562 100644 --- a/pkgs/development/python-modules/openapi-schema-validator/default.nix +++ b/pkgs/development/python-modules/openapi-schema-validator/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, jsonschema -, jsonschema-specifications -, rfc3339-validator + # propagates + jsonschema, + jsonschema-specifications, + rfc3339-validator, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { sed -i "/--cov/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ jsonschema @@ -43,9 +42,7 @@ buildPythonPackage rec { rfc3339-validator ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/python-openapi/openapi-schema-validator/issues/153 diff --git a/pkgs/development/python-modules/openapi-spec-validator/default.nix b/pkgs/development/python-modules/openapi-spec-validator/default.nix index c43439e36ba0..54c7d5fc19b9 100644 --- a/pkgs/development/python-modules/openapi-spec-validator/default.nix +++ b/pkgs/development/python-modules/openapi-spec-validator/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, importlib-resources -, jsonschema -, jsonschema-path -, lazy-object-proxy -, openapi-schema-validator + # propagates + importlib-resources, + jsonschema, + jsonschema-path, + lazy-object-proxy, + openapi-schema-validator, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -36,22 +37,16 @@ buildPythonPackage rec { sed -i '/--cov/d' pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ jsonschema jsonschema-path lazy-object-proxy openapi-schema-validator - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # network access diff --git a/pkgs/development/python-modules/openapi3/default.nix b/pkgs/development/python-modules/openapi3/default.nix index 72e852d209c9..aa98a11f6bf4 100644 --- a/pkgs/development/python-modules/openapi3/default.nix +++ b/pkgs/development/python-modules/openapi3/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, requests -, pyyaml -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + requests, + pyyaml, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,22 +20,16 @@ buildPythonPackage rec { hash = "sha256-ohpJBXPYnKaa2ny+WFrbL8pJZCV/bzod9THxKBVFXSw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests pyyaml ]; - nativeCheckinputs = [ - pytestCheckHook - ]; + nativeCheckinputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "openapi3" - ]; + pythonImportsCheck = [ "openapi3" ]; meta = with lib; { changelog = "https://github.com/Dorthu/openapi3/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/openbabel-bindings/default.nix b/pkgs/development/python-modules/openbabel-bindings/default.nix index 6cac1fb385b2..b0e935061743 100644 --- a/pkgs/development/python-modules/openbabel-bindings/default.nix +++ b/pkgs/development/python-modules/openbabel-bindings/default.nix @@ -1,4 +1,9 @@ -{ lib, openbabel, python, buildPythonPackage }: +{ + lib, + openbabel, + python, + buildPythonPackage, +}: buildPythonPackage rec { inherit (openbabel) pname version; diff --git a/pkgs/development/python-modules/opencensus-context/default.nix b/pkgs/development/python-modules/opencensus-context/default.nix index ae7897eae7ac..1cd1b16a14ab 100644 --- a/pkgs/development/python-modules/opencensus-context/default.nix +++ b/pkgs/development/python-modules/opencensus-context/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, lib -, unittestCheckHook +{ + buildPythonPackage, + fetchPypi, + lib, + unittestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-oDEIw8ENjIC7Xd9cih8DMWH6YZcqmRf5ubOhhRfwCIw="; }; - pythonNamespaces = [ - "opencensus.common" - ]; + pythonNamespaces = [ "opencensus.common" ]; doCheck = false; # No tests in archive diff --git a/pkgs/development/python-modules/opencensus-ext-azure/default.nix b/pkgs/development/python-modules/opencensus-ext-azure/default.nix index 121b162b2fe1..dc0aa827b99b 100644 --- a/pkgs/development/python-modules/opencensus-ext-azure/default.nix +++ b/pkgs/development/python-modules/opencensus-ext-azure/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, azure-core -, azure-identity -, opencensus -, psutil -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + azure-core, + azure-identity, + opencensus, + psutil, + requests, }: buildPythonPackage rec { @@ -34,6 +35,9 @@ buildPythonPackage rec { homepage = "https://github.com/census-instrumentation/opencensus-python/tree/master/contrib/opencensus-ext-azure"; description = "OpenCensus Azure Monitor Exporter"; license = licenses.asl20; - maintainers = with maintainers; [ billhuang evilmav ]; + maintainers = with maintainers; [ + billhuang + evilmav + ]; }; } diff --git a/pkgs/development/python-modules/opencensus/default.nix b/pkgs/development/python-modules/opencensus/default.nix index a1fde6da755d..ccf41cdf1839 100644 --- a/pkgs/development/python-modules/opencensus/default.nix +++ b/pkgs/development/python-modules/opencensus/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchPypi -, lib -, unittestCheckHook -, google-api-core -, opencensus-context +{ + buildPythonPackage, + fetchPypi, + lib, + unittestCheckHook, + google-api-core, + opencensus-context, }: buildPythonPackage rec { @@ -21,15 +22,11 @@ buildPythonPackage rec { opencensus-context ]; - pythonNamespaces = [ - "opencensus.common" - ]; + pythonNamespaces = [ "opencensus.common" ]; doCheck = false; # No tests in sdist - pythonImportsCheck = [ - "opencensus.common" - ]; + pythonImportsCheck = [ "opencensus.common" ]; meta = with lib; { description = "A stats collection and distributed tracing framework"; diff --git a/pkgs/development/python-modules/opencontainers/default.nix b/pkgs/development/python-modules/opencontainers/default.nix index f60eb0dd6568..b2677b7044e4 100644 --- a/pkgs/development/python-modules/opencontainers/default.nix +++ b/pkgs/development/python-modules/opencontainers/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { sed -i "/pytest-runner/d" setup.py ''; - passthru.optional-dependencies.reggie = [ - requests - ]; + passthru.optional-dependencies.reggie = [ requests ]; - pythonImportsCheck = [ - "opencontainers" - ]; + pythonImportsCheck = [ "opencontainers" ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.reggie; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.reggie; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/openerz-api/default.nix b/pkgs/development/python-modules/openerz-api/default.nix index 698816a62620..500aa9ca3af2 100644 --- a/pkgs/development/python-modules/openerz-api/default.nix +++ b/pkgs/development/python-modules/openerz-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, testfixtures +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + testfixtures, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-CwK61StspZJt0TALv76zfibUzlriwp9HRoYOtX9bU+c="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook testfixtures ]; - pythonImportsCheck = [ - "openerz_api" - ]; + pythonImportsCheck = [ "openerz_api" ]; meta = with lib; { description = "Python module to interact with the OpenERZ API"; diff --git a/pkgs/development/python-modules/openevsewifi/default.nix b/pkgs/development/python-modules/openevsewifi/default.nix index 86bb9636a2e3..8a65b3e56f34 100644 --- a/pkgs/development/python-modules/openevsewifi/default.nix +++ b/pkgs/development/python-modules/openevsewifi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, deprecated -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytestCheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + buildPythonPackage, + deprecated, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-7+BC5WG0JoyHNjgsoJBQRVDpmdXMJCV4bMf6pIaS5qo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ deprecated @@ -52,9 +51,7 @@ buildPythonPackage rec { --replace 'pytest-cov = "^2.8.1"' "" ''; - pythonImportsCheck = [ - "openevsewifi" - ]; + pythonImportsCheck = [ "openevsewifi" ]; meta = with lib; { description = "Module for communicating with the wifi module from OpenEVSE"; diff --git a/pkgs/development/python-modules/openidc-client/default.nix b/pkgs/development/python-modules/openidc-client/default.nix index a2110cb6a309..26820852206b 100644 --- a/pkgs/development/python-modules/openidc-client/default.nix +++ b/pkgs/development/python-modules/openidc-client/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "openidc-client"; diff --git a/pkgs/development/python-modules/openllm-client/default.nix b/pkgs/development/python-modules/openllm-client/default.nix index 221f0ab8011c..1cb07bc76d05 100644 --- a/pkgs/development/python-modules/openllm-client/default.nix +++ b/pkgs/development/python-modules/openllm-client/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, bentoml -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, anyio -, distro -, httpx -, httpx-auth -, openllm-core -, soundfile -, transformers +{ + lib, + buildPythonPackage, + pythonOlder, + bentoml, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + anyio, + distro, + httpx, + httpx-auth, + openllm-core, + soundfile, + transformers, }: buildPythonPackage rec { @@ -44,12 +45,8 @@ buildPythonPackage rec { ]; optional-dependencies = { - grpc = [ - bentoml - ] ++ bentoml.optional-dependencies.grpc; - auth = [ - httpx-auth - ]; + grpc = [ bentoml ] ++ bentoml.optional-dependencies.grpc; + auth = [ httpx-auth ]; agents = [ transformers # diffusers diff --git a/pkgs/development/python-modules/openllm-core/default.nix b/pkgs/development/python-modules/openllm-core/default.nix index f59d92615cf8..928a47a43d75 100644 --- a/pkgs/development/python-modules/openllm-core/default.nix +++ b/pkgs/development/python-modules/openllm-core/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, accelerate -, attrs -, bitsandbytes -, bentoml -, cattrs -, click-option-group -, datasets -, deepmerge -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, inflection -, mypy-extensions -, orjson -, peft -, transformers -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + accelerate, + attrs, + bitsandbytes, + bentoml, + cattrs, + click-option-group, + datasets, + deepmerge, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + inflection, + mypy-extensions, + orjson, + peft, + transformers, + typing-extensions, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/openllm-core"; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -49,9 +48,7 @@ buildPythonPackage rec { --replace-fail "hatch-fancy-pypi-readme==23.1.0" "hatch-fancy-pypi-readme" ''; - pythonRelaxDeps = [ - "cattrs" - ]; + pythonRelaxDeps = [ "cattrs" ]; build-system = [ hatch-fancy-pypi-readme @@ -75,9 +72,7 @@ buildPythonPackage rec { vllm = [ # vllm ]; - bentoml = [ - bentoml - ]; + bentoml = [ bentoml ]; fine-tune = [ accelerate bitsandbytes @@ -85,13 +80,15 @@ buildPythonPackage rec { peft transformers # trl - ] ++ transformers.optional-dependencies.torch - ++ transformers.optional-dependencies.tokenizers; - full = with optional-dependencies; ( - vllm - # use absolute path to disambiguate with derivbation argument - ++ optional-dependencies.bentoml - ++ fine-tune ); + ] ++ transformers.optional-dependencies.torch ++ transformers.optional-dependencies.tokenizers; + full = + with optional-dependencies; + ( + vllm + # use absolute path to disambiguate with derivbation argument + ++ optional-dependencies.bentoml + ++ fine-tune + ); }; # there is no tests diff --git a/pkgs/development/python-modules/openllm/default.nix b/pkgs/development/python-modules/openllm/default.nix index 8a37e257ffa9..6ed4db129e58 100644 --- a/pkgs/development/python-modules/openllm/default.nix +++ b/pkgs/development/python-modules/openllm/default.nix @@ -1,47 +1,48 @@ -{ lib -, buildPythonPackage -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, accelerate -, bentoml -, bitsandbytes -, build -, click -, ctranslate2 -, datasets -, docker -, einops -, ghapi -, huggingface-hub -, hypothesis -, ipython -, jupyter -, jupytext -, nbformat -, notebook -, openai -, openllm-client -, openllm-core -, optimum -, peft -, pytest-mock -, pytest-randomly -, pytest-rerunfailures -, pytest-xdist -, safetensors -, scipy -, sentencepiece -, soundfile -, syrupy -, tabulate -, tiktoken -, transformers -, openai-triton -, xformers +{ + lib, + buildPythonPackage, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + accelerate, + bentoml, + bitsandbytes, + build, + click, + ctranslate2, + datasets, + docker, + einops, + ghapi, + huggingface-hub, + hypothesis, + ipython, + jupyter, + jupytext, + nbformat, + notebook, + openai, + openllm-client, + openllm-core, + optimum, + peft, + pytest-mock, + pytest-randomly, + pytest-rerunfailures, + pytest-xdist, + safetensors, + scipy, + sentencepiece, + soundfile, + syrupy, + tabulate, + tiktoken, + transformers, + openai-triton, + xformers, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/openllm-python"; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRemoveDeps = [ # remove cuda-python as it has an unfree license @@ -68,25 +67,27 @@ buildPythonPackage rec { hatchling ]; - dependencies = [ - accelerate - bentoml - bitsandbytes - build - click - einops - ghapi - openllm-client - openllm-core - optimum - safetensors - scipy - sentencepiece - transformers - ] ++ bentoml.optional-dependencies.io - ++ tabulate.optional-dependencies.widechars - ++ transformers.optional-dependencies.tokenizers - ++ transformers.optional-dependencies.torch; + dependencies = + [ + accelerate + bentoml + bitsandbytes + build + click + einops + ghapi + openllm-client + openllm-core + optimum + safetensors + scipy + sentencepiece + transformers + ] + ++ bentoml.optional-dependencies.io + ++ tabulate.optional-dependencies.widechars + ++ transformers.optional-dependencies.tokenizers + ++ transformers.optional-dependencies.torch; optional-dependencies = { agents = [ @@ -103,12 +104,8 @@ buildPythonPackage rec { chatglm = [ # cpm-kernels ]; - ctranslate = [ - ctranslate2 - ]; - falcon = [ - xformers - ]; + ctranslate = [ ctranslate2 ]; + falcon = [ xformers ]; fine-tune = [ datasets huggingface-hub @@ -121,12 +118,8 @@ buildPythonPackage rec { gptq = [ # auto-gptq ]; # ++ autogptq.optional-dependencies.triton; - grpc = [ - bentoml - ] ++ bentoml.optional-dependencies.grpc; - mpt = [ - openai-triton - ]; + grpc = [ bentoml ] ++ bentoml.optional-dependencies.grpc; + mpt = [ openai-triton ]; openai = [ openai tiktoken @@ -138,18 +131,29 @@ buildPythonPackage rec { nbformat notebook ]; - starcoder = [ - bitsandbytes - ]; + starcoder = [ bitsandbytes ]; vllm = [ # vllm ]; - full = with optional-dependencies; ( - agents ++ awq ++ baichuan ++ chatglm ++ ctranslate ++ falcon ++ fine-tune ++ ggml ++ gptq ++ mpt - # disambiguate between derivation input and passthru field - ++ optional-dependencies.openai - ++ playground ++ starcoder ++ vllm - ); + full = + with optional-dependencies; + ( + agents + ++ awq + ++ baichuan + ++ chatglm + ++ ctranslate + ++ falcon + ++ fine-tune + ++ ggml + ++ gptq + ++ mpt + # disambiguate between derivation input and passthru field + ++ optional-dependencies.openai + ++ playground + ++ starcoder + ++ vllm + ); all = optional-dependencies.full; }; @@ -190,6 +194,9 @@ buildPythonPackage rec { homepage = "https://github.com/bentoml/OpenLLM/tree/main/openllm-python"; changelog = "https://github.com/bentoml/OpenLLM/blob/${src.rev}/CHANGELOG.md"; license = licenses.asl20; - maintainers = with maintainers; [ happysalada natsukium ]; + maintainers = with maintainers; [ + happysalada + natsukium + ]; }; } diff --git a/pkgs/development/python-modules/openpyxl/default.nix b/pkgs/development/python-modules/openpyxl/default.nix index c8934bf888a1..7fdf319f9e61 100644 --- a/pkgs/development/python-modules/openpyxl/default.nix +++ b/pkgs/development/python-modules/openpyxl/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, et-xmlfile -, fetchFromGitLab -, lxml -, pandas -, pillow -, pytest7CheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + et-xmlfile, + fetchFromGitLab, + lxml, + pandas, + pillow, + pytest7CheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-SWRbjA83AOLrfe6on2CSb64pH5EWXkfyYcTqWJNBEP0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - et-xmlfile - ]; + propagatedBuildInputs = [ et-xmlfile ]; nativeCheckInputs = [ lxml @@ -45,31 +42,31 @@ buildPythonPackage rec { "-W" "ignore::DeprecationWarning" ]; - disabledTests = [ - # Tests broken since lxml 2.12; https://foss.heptapod.net/openpyxl/openpyxl/-/issues/2116 - "test_read" - "test_read_comments" - "test_ignore_external_blip" - "test_from_xml" - "test_filenames" - "test_exts" - "test_from_complex" - "test_merge_named_styles" - "test_unprotected_cell" - "test_none_values" - "test_rgb_colors" - "test_named_styles" - "test_read_ole_link" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - "test_broken_sheet_ref" - "test_name_invalid_index" - "test_defined_names_print_area" - "test_no_styles" - ]; + disabledTests = + [ + # Tests broken since lxml 2.12; https://foss.heptapod.net/openpyxl/openpyxl/-/issues/2116 + "test_read" + "test_read_comments" + "test_ignore_external_blip" + "test_from_xml" + "test_filenames" + "test_exts" + "test_from_complex" + "test_merge_named_styles" + "test_unprotected_cell" + "test_none_values" + "test_rgb_colors" + "test_named_styles" + "test_read_ole_link" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + "test_broken_sheet_ref" + "test_name_invalid_index" + "test_defined_names_print_area" + "test_no_styles" + ]; - pythonImportsCheck = [ - "openpyxl" - ]; + pythonImportsCheck = [ "openpyxl" ]; meta = with lib; { description = "Python library to read/write Excel 2010 xlsx/xlsm files"; diff --git a/pkgs/development/python-modules/openrazer/common.nix b/pkgs/development/python-modules/openrazer/common.nix index e263f07e0d02..2d5db38d963a 100644 --- a/pkgs/development/python-modules/openrazer/common.nix +++ b/pkgs/development/python-modules/openrazer/common.nix @@ -1,6 +1,5 @@ -{ lib -, fetchFromGitHub -}: rec { +{ lib, fetchFromGitHub }: +rec { version = "3.8.0"; pyproject = true; diff --git a/pkgs/development/python-modules/openrazer/daemon.nix b/pkgs/development/python-modules/openrazer/daemon.nix index aa6055c19c70..fb23b17b3261 100644 --- a/pkgs/development/python-modules/openrazer/daemon.nix +++ b/pkgs/development/python-modules/openrazer/daemon.nix @@ -1,56 +1,63 @@ -{ lib -, buildPythonPackage -, daemonize -, dbus-python -, fetchFromGitHub -, gobject-introspection -, gtk3 -, makeWrapper -, pygobject3 -, pyudev -, setproctitle -, setuptools -, wrapGAppsHook3 -, notify2 +{ + lib, + buildPythonPackage, + daemonize, + dbus-python, + fetchFromGitHub, + gobject-introspection, + gtk3, + makeWrapper, + pygobject3, + pyudev, + setproctitle, + setuptools, + wrapGAppsHook3, + notify2, }: let common = import ./common.nix { inherit lib fetchFromGitHub; }; in -buildPythonPackage (common // { - pname = "openrazer-daemon"; +buildPythonPackage ( + common + // { + pname = "openrazer-daemon"; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; - sourceRoot = "${common.src.name}/daemon"; + sourceRoot = "${common.src.name}/daemon"; - postPatch = '' - substituteInPlace openrazer_daemon/daemon.py \ - --replace-fail "plugdev" "openrazer" - ''; + postPatch = '' + substituteInPlace openrazer_daemon/daemon.py \ + --replace-fail "plugdev" "openrazer" + ''; - nativeBuildInputs = [ setuptools ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - daemonize - dbus-python - gobject-introspection - gtk3 - pygobject3 - pyudev - setproctitle - notify2 - ]; + propagatedBuildInputs = [ + daemonize + dbus-python + gobject-introspection + gtk3 + pygobject3 + pyudev + setproctitle + notify2 + ]; - postInstall = '' - DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd - ''; + postInstall = '' + DESTDIR="$out" PREFIX="" make manpages install-resources install-systemd + ''; - # no tests run - doCheck = false; + # no tests run + doCheck = false; - meta = common.meta // { - description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux"; - mainProgram = "openrazer-daemon"; - }; -}) + meta = common.meta // { + description = "An entirely open source user-space daemon that allows you to manage your Razer peripherals on GNU/Linux"; + mainProgram = "openrazer-daemon"; + }; + } +) diff --git a/pkgs/development/python-modules/openrazer/pylib.nix b/pkgs/development/python-modules/openrazer/pylib.nix index d4da892c3058..96371319687d 100644 --- a/pkgs/development/python-modules/openrazer/pylib.nix +++ b/pkgs/development/python-modules/openrazer/pylib.nix @@ -1,32 +1,36 @@ -{ lib -, buildPythonPackage -, dbus-python -, fetchFromGitHub -, numpy -, openrazer-daemon -, setuptools +{ + lib, + buildPythonPackage, + dbus-python, + fetchFromGitHub, + numpy, + openrazer-daemon, + setuptools, }: let common = import ./common.nix { inherit lib fetchFromGitHub; }; in -buildPythonPackage (common // { - pname = "openrazer"; +buildPythonPackage ( + common + // { + pname = "openrazer"; - sourceRoot = "${common.src.name}/pylib"; + sourceRoot = "${common.src.name}/pylib"; - nativeBuildInputs = [ setuptools ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - dbus-python - numpy - openrazer-daemon - ]; + propagatedBuildInputs = [ + dbus-python + numpy + openrazer-daemon + ]; - # no tests run - doCheck = false; + # no tests run + doCheck = false; - meta = common.meta // { - description = "An entirely open source Python library that allows you to manage your Razer peripherals on GNU/Linux"; - }; -}) + meta = common.meta // { + description = "An entirely open source Python library that allows you to manage your Razer peripherals on GNU/Linux"; + }; + } +) diff --git a/pkgs/development/python-modules/openrgb-python/default.nix b/pkgs/development/python-modules/openrgb-python/default.nix index c41c1d9760b5..90b710c6e035 100644 --- a/pkgs/development/python-modules/openrgb-python/default.nix +++ b/pkgs/development/python-modules/openrgb-python/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-2eeb2XHYvBaHkHHs9KxZKDGXtcLaT28c/aLC9pxrRmM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "openrgb" - ]; + pythonImportsCheck = [ "openrgb" ]; meta = with lib; { description = "Module for the OpenRGB SDK"; diff --git a/pkgs/development/python-modules/openrouteservice/default.nix b/pkgs/development/python-modules/openrouteservice/default.nix index 72945907d4eb..ff279f3e3f28 100644 --- a/pkgs/development/python-modules/openrouteservice/default.nix +++ b/pkgs/development/python-modules/openrouteservice/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, responses, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + responses, + pytestCheckHook, +}: buildPythonPackage rec { pname = "openrouteservice"; @@ -12,7 +18,10 @@ buildPythonPackage rec { sha256 = "1d5qbygb81fhpwfdm1a118r3xv45xz9n9avfkgxkvw1n8y6ywz2q"; }; - nativeCheckInputs = [ pytestCheckHook responses ]; + nativeCheckInputs = [ + pytestCheckHook + responses + ]; disabledTests = [ # touches network diff --git a/pkgs/development/python-modules/opensearch-py/default.nix b/pkgs/development/python-modules/opensearch-py/default.nix index da0c13d63d61..dafc633a5632 100644 --- a/pkgs/development/python-modules/opensearch-py/default.nix +++ b/pkgs/development/python-modules/opensearch-py/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, certifi -, python-dateutil -, requests -, six -, urllib3 + # dependencies + certifi, + python-dateutil, + requests, + six, + urllib3, -# optional-dependencies -, aiohttp + # optional-dependencies + aiohttp, -# tests -, botocore -, mock -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pyyaml -, pytz + # tests + botocore, + mock, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pyyaml, + pytz, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-MPuHdjhsrccKYUIDlDYGoXBbBu/V+q43Puf0e5j8vhU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ certifi @@ -49,9 +48,7 @@ buildPythonPackage rec { urllib3 ]; - passthru.optional-dependencies.async = [ - aiohttp - ]; + passthru.optional-dependencies.async = [ aiohttp ]; nativeCheckInputs = [ botocore diff --git a/pkgs/development/python-modules/opensensemap-api/default.nix b/pkgs/development/python-modules/opensensemap-api/default.nix index a5730f8ba9fd..ab9b93fc6f38 100644 --- a/pkgs/development/python-modules/opensensemap-api/default.nix +++ b/pkgs/development/python-modules/opensensemap-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "opensensemap_api" - ]; + pythonImportsCheck = [ "opensensemap_api" ]; meta = with lib; { description = "OpenSenseMap API Python client"; diff --git a/pkgs/development/python-modules/opensfm/default.nix b/pkgs/development/python-modules/opensfm/default.nix index 674ec572e140..dc7f6d4163a8 100644 --- a/pkgs/development/python-modules/opensfm/default.nix +++ b/pkgs/development/python-modules/opensfm/default.nix @@ -1,46 +1,43 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, cmake -, opencv4 -, ceres-solver -, suitesparse -, metis -, eigen -, pkg-config -, pybind11 -, numpy -, pyyaml -, lapack -, gtest -, gflags -, glog -, pytestCheckHook -, networkx -, pillow -, exifread -, gpxpy -, pyproj -, python-dateutil -, joblib -, repoze-lru -, xmltodict -, cloudpickle -, scipy -, sphinx -, matplotlib -, fpdf -, +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + cmake, + opencv4, + ceres-solver, + suitesparse, + metis, + eigen, + pkg-config, + pybind11, + numpy, + pyyaml, + lapack, + gtest, + gflags, + glog, + pytestCheckHook, + networkx, + pillow, + exifread, + gpxpy, + pyproj, + python-dateutil, + joblib, + repoze-lru, + xmltodict, + cloudpickle, + scipy, + sphinx, + matplotlib, + fpdf, }: let ceresSplit = (builtins.length ceres-solver.outputs) > 1; - ceres' = - if ceresSplit - then ceres-solver.dev - else ceres-solver; + ceres' = if ceresSplit then ceres-solver.dev else ceres-solver; in buildPythonPackage rec { pname = "opensfm"; @@ -71,7 +68,11 @@ buildPythonPackage rec { sed -i -e 's/^.*BuildDoc.*$//' setup.py ''; - nativeBuildInputs = [ cmake pkg-config sphinx ]; + nativeBuildInputs = [ + cmake + pkg-config + sphinx + ]; buildInputs = [ ceres' suitesparse @@ -109,12 +110,14 @@ buildPythonPackage rec { "-Sopensfm/src" ]; - disabledTests = [ - "test_run_all" # Matplotlib issues. Broken integration is less useless than a broken build - ] ++ lib.optionals stdenv.isDarwin [ - "test_reconstruction_incremental" - "test_reconstruction_triangulation" - ]; + disabledTests = + [ + "test_run_all" # Matplotlib issues. Broken integration is less useless than a broken build + ] + ++ lib.optionals stdenv.isDarwin [ + "test_reconstruction_incremental" + "test_reconstruction_triangulation" + ]; pythonImportsCheck = [ "opensfm" ]; diff --git a/pkgs/development/python-modules/openshift/default.nix b/pkgs/development/python-modules/openshift/default.nix index 0a75792644b1..1e257094a18d 100644 --- a/pkgs/development/python-modules/openshift/default.nix +++ b/pkgs/development/python-modules/openshift/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, kubernetes -, ruamel-yaml -, six -, python-string-utils -, pytest-bdd -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + kubernetes, + ruamel-yaml, + six, + python-string-utils, + pytest-bdd, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,7 +38,7 @@ buildPythonPackage rec { six ]; - pythonImportsCheck = ["openshift"]; + pythonImportsCheck = [ "openshift" ]; nativeCheckInputs = [ pytest-bdd diff --git a/pkgs/development/python-modules/opensimplex/default.nix b/pkgs/development/python-modules/opensimplex/default.nix index 6ddf5c6d0378..634efaf196b2 100644 --- a/pkgs/development/python-modules/opensimplex/default.nix +++ b/pkgs/development/python-modules/opensimplex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/openstackdocstheme/default.nix b/pkgs/development/python-modules/openstackdocstheme/default.nix index 1ac6b6cae546..20c0dd9c176c 100644 --- a/pkgs/development/python-modules/openstackdocstheme/default.nix +++ b/pkgs/development/python-modules/openstackdocstheme/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, dulwich -, pbr -, sphinx -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + dulwich, + pbr, + sphinx, + pythonAtLeast, }: buildPythonPackage rec { @@ -26,7 +27,11 @@ buildPythonPackage rec { rm test-requirements.txt ''; - propagatedBuildInputs = [ dulwich pbr sphinx ]; + propagatedBuildInputs = [ + dulwich + pbr + sphinx + ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/openstacksdk/default.nix b/pkgs/development/python-modules/openstacksdk/default.nix index 3f997d4d4ced..569337cc0051 100644 --- a/pkgs/development/python-modules/openstacksdk/default.nix +++ b/pkgs/development/python-modules/openstacksdk/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchPypi -, platformdirs -, cryptography -, dogpile-cache -, jmespath -, jsonpatch -, keystoneauth1 -, munch -, netifaces -, os-service-types -, pbr -, pythonOlder -, pyyaml -, requestsexceptions +{ + lib, + buildPythonPackage, + callPackage, + fetchPypi, + platformdirs, + cryptography, + dogpile-cache, + jmespath, + jsonpatch, + keystoneauth1, + munch, + netifaces, + os-service-types, + pbr, + pythonOlder, + pyyaml, + requestsexceptions, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { tests = callPackage ./tests.nix { }; }; - pythonImportsCheck = [ - "openstack" - ]; + pythonImportsCheck = [ "openstack" ]; meta = with lib; { description = "An SDK for building applications to work with OpenStack"; diff --git a/pkgs/development/python-modules/openstacksdk/tests.nix b/pkgs/development/python-modules/openstacksdk/tests.nix index c3f16f7d9ef6..0b71fc111b8b 100644 --- a/pkgs/development/python-modules/openstacksdk/tests.nix +++ b/pkgs/development/python-modules/openstacksdk/tests.nix @@ -1,16 +1,17 @@ -{ buildPythonPackage -, ddt -, hacking -, jsonschema -, lib -, openstacksdk -, oslo-config -, oslotest -, prometheus-client -, requests-mock -, stdenv -, stestr -, testscenarios +{ + buildPythonPackage, + ddt, + hacking, + jsonschema, + lib, + openstacksdk, + oslo-config, + oslotest, + prometheus-client, + requests-mock, + stdenv, + stestr, + testscenarios, }: buildPythonPackage { @@ -34,32 +35,35 @@ buildPythonPackage { testscenarios ]; - checkPhase = '' - stestr run -e <(echo " - '' + lib.optionalString stdenv.isAarch64 '' - openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_node_set_provision_state_with_retries - openstack.tests.unit.cloud.test_role_assignment.TestRoleAssignment.test_grant_role_user_domain_exists - openstack.tests.unit.cloud.test_volume_backups.TestVolumeBackups.test_delete_volume_backup_force - openstack.tests.unit.object_store.v1.test_proxy.TestTempURLBytesPathAndKey.test_set_account_temp_url_key_second - openstack.tests.unit.cloud.test_security_groups.TestSecurityGroups.test_delete_security_group_neutron_not_found - '' + '' - openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_wait_for_baremetal_node_lock_locked - openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_inspect_machine_inspect_failed - openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_inspect_machine_available_wait - openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_inspect_machine_wait - openstack.tests.unit.cloud.test_image.TestImage.test_create_image_task - openstack.tests.unit.image.v2.test_proxy.TestImageProxy.test_wait_for_task_error_396 - openstack.tests.unit.image.v2.test_proxy.TestImageProxy.test_wait_for_task_wait - openstack.tests.unit.test_resource.TestWaitForStatus.test_callback - openstack.tests.unit.test_resource.TestWaitForStatus.test_status_fails - openstack.tests.unit.test_resource.TestWaitForStatus.test_status_fails_different_attribute - openstack.tests.unit.test_resource.TestWaitForStatus.test_status_match - openstack.tests.unit.test_resource.TestWaitForStatus.test_status_match_with_none - openstack.tests.unit.test_stats.TestStats.test_list_projects - openstack.tests.unit.test_stats.TestStats.test_projects - openstack.tests.unit.test_stats.TestStats.test_servers - openstack.tests.unit.test_stats.TestStats.test_servers_no_detail - openstack.tests.unit.test_stats.TestStats.test_timeout - ") - ''; + checkPhase = + '' + stestr run -e <(echo " + '' + + lib.optionalString stdenv.isAarch64 '' + openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_node_set_provision_state_with_retries + openstack.tests.unit.cloud.test_role_assignment.TestRoleAssignment.test_grant_role_user_domain_exists + openstack.tests.unit.cloud.test_volume_backups.TestVolumeBackups.test_delete_volume_backup_force + openstack.tests.unit.object_store.v1.test_proxy.TestTempURLBytesPathAndKey.test_set_account_temp_url_key_second + openstack.tests.unit.cloud.test_security_groups.TestSecurityGroups.test_delete_security_group_neutron_not_found + '' + + '' + openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_wait_for_baremetal_node_lock_locked + openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_inspect_machine_inspect_failed + openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_inspect_machine_available_wait + openstack.tests.unit.cloud.test_baremetal_node.TestBaremetalNode.test_inspect_machine_wait + openstack.tests.unit.cloud.test_image.TestImage.test_create_image_task + openstack.tests.unit.image.v2.test_proxy.TestImageProxy.test_wait_for_task_error_396 + openstack.tests.unit.image.v2.test_proxy.TestImageProxy.test_wait_for_task_wait + openstack.tests.unit.test_resource.TestWaitForStatus.test_callback + openstack.tests.unit.test_resource.TestWaitForStatus.test_status_fails + openstack.tests.unit.test_resource.TestWaitForStatus.test_status_fails_different_attribute + openstack.tests.unit.test_resource.TestWaitForStatus.test_status_match + openstack.tests.unit.test_resource.TestWaitForStatus.test_status_match_with_none + openstack.tests.unit.test_stats.TestStats.test_list_projects + openstack.tests.unit.test_stats.TestStats.test_projects + openstack.tests.unit.test_stats.TestStats.test_servers + openstack.tests.unit.test_stats.TestStats.test_servers_no_detail + openstack.tests.unit.test_stats.TestStats.test_timeout + ") + ''; } diff --git a/pkgs/development/python-modules/openstep-plist/default.nix b/pkgs/development/python-modules/openstep-plist/default.nix index 7921023f2942..28680e26b091 100644 --- a/pkgs/development/python-modules/openstep-plist/default.nix +++ b/pkgs/development/python-modules/openstep-plist/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, setuptools -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + setuptools, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "openstep_plist" - ]; + pythonImportsCheck = [ "openstep_plist" ]; meta = { changelog = "https://github.com/fonttools/openstep-plist/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/opentelemetry-api/default.nix b/pkgs/development/python-modules/opentelemetry-api/default.nix index 153400f30ace..8116626b94d8 100644 --- a/pkgs/development/python-modules/opentelemetry-api/default.nix +++ b/pkgs/development/python-modules/opentelemetry-api/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, deprecated -, hatchling -, importlib-metadata -, opentelemetry-test-utils -, setuptools -, pytestCheckHook -, pythonRelaxDepsHook -, writeScript +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + deprecated, + hatchling, + importlib-metadata, + opentelemetry-test-utils, + setuptools, + pytestCheckHook, + pythonRelaxDepsHook, + writeScript, }: let @@ -30,22 +31,16 @@ let sourceRoot = "${src.name}/opentelemetry-api"; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ deprecated importlib-metadata ]; - pythonRelaxDeps = [ - "importlib-metadata" - ]; + pythonRelaxDeps = [ "importlib-metadata" ]; nativeCheckInputs = [ opentelemetry-test-utils @@ -77,4 +72,5 @@ let maintainers = teams.deshaw.members ++ [ maintainers.natsukium ]; }; }; -in self +in +self diff --git a/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-common/default.nix b/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-common/default.nix index bc8bbec64e97..0dc9b6a42382 100644 --- a/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-common/default.nix +++ b/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-common/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, opentelemetry-proto -, opentelemetry-test-utils -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + opentelemetry-proto, + opentelemetry-test-utils, + pytestCheckHook, }: buildPythonPackage { @@ -17,13 +18,9 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-otlp-proto-common"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - opentelemetry-proto - ]; + dependencies = [ opentelemetry-proto ]; nativeCheckInputs = [ opentelemetry-test-utils diff --git a/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-grpc/default.nix b/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-grpc/default.nix index 9f1fe62dfbb4..5df83c4ad433 100644 --- a/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-grpc/default.nix +++ b/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-grpc/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, deprecated -, googleapis-common-protos -, grpcio -, hatchling -, opentelemetry-api -, opentelemetry-exporter-otlp-proto-common -, opentelemetry-proto -, opentelemetry-test-utils -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + deprecated, + googleapis-common-protos, + grpcio, + hatchling, + opentelemetry-api, + opentelemetry-exporter-otlp-proto-common, + opentelemetry-proto, + opentelemetry-test-utils, + pytestCheckHook, }: buildPythonPackage { @@ -21,9 +22,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-otlp-proto-grpc"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ deprecated @@ -39,9 +38,7 @@ buildPythonPackage { pytestCheckHook ]; - disabledTestPaths = [ - "tests/performance/benchmarks/" - ]; + disabledTestPaths = [ "tests/performance/benchmarks/" ]; pythonImportsCheck = [ "opentelemetry.exporter.otlp.proto.grpc" ]; diff --git a/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-http/default.nix b/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-http/default.nix index 8c82d0b8b580..2bab0a3bb80c 100644 --- a/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-http/default.nix +++ b/pkgs/development/python-modules/opentelemetry-exporter-otlp-proto-http/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, deprecated -, googleapis-common-protos -, hatchling -, opentelemetry-api -, opentelemetry-exporter-otlp-proto-common -, opentelemetry-proto -, opentelemetry-sdk -, opentelemetry-test-utils -, requests -, responses -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + deprecated, + googleapis-common-protos, + hatchling, + opentelemetry-api, + opentelemetry-exporter-otlp-proto-common, + opentelemetry-proto, + opentelemetry-sdk, + opentelemetry-test-utils, + requests, + responses, + pytestCheckHook, }: buildPythonPackage { @@ -23,9 +24,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-otlp-proto-http"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ deprecated diff --git a/pkgs/development/python-modules/opentelemetry-exporter-otlp/default.nix b/pkgs/development/python-modules/opentelemetry-exporter-otlp/default.nix index 75748e3b70ac..710674a0b9bb 100644 --- a/pkgs/development/python-modules/opentelemetry-exporter-otlp/default.nix +++ b/pkgs/development/python-modules/opentelemetry-exporter-otlp/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, opentelemetry-exporter-otlp-proto-grpc -, opentelemetry-exporter-otlp-proto-http -, opentelemetry-test-utils -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + opentelemetry-exporter-otlp-proto-grpc, + opentelemetry-exporter-otlp-proto-http, + opentelemetry-test-utils, + pytestCheckHook, }: buildPythonPackage { @@ -18,9 +19,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-otlp"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ opentelemetry-exporter-otlp-proto-grpc diff --git a/pkgs/development/python-modules/opentelemetry-exporter-prometheus/default.nix b/pkgs/development/python-modules/opentelemetry-exporter-prometheus/default.nix index 1ccd6b472e18..933006554d86 100644 --- a/pkgs/development/python-modules/opentelemetry-exporter-prometheus/default.nix +++ b/pkgs/development/python-modules/opentelemetry-exporter-prometheus/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, opentelemetry-sdk -, opentelemetry-test-utils -, prometheus-client -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + opentelemetry-sdk, + opentelemetry-test-utils, + prometheus-client, + pytestCheckHook, }: buildPythonPackage { @@ -19,9 +20,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/exporter/opentelemetry-exporter-prometheus"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ opentelemetry-api diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-aiohttp-client/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-aiohttp-client/default.nix index df5a9b037652..0da97f5a2316 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-aiohttp-client/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-aiohttp-client/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, opentelemetry-util-http -, wrapt -, pytestCheckHook -, aiohttp +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + opentelemetry-util-http, + wrapt, + pytestCheckHook, + aiohttp, }: buildPythonPackage { @@ -21,9 +22,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-aiohttp-client"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ aiohttp diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-asgi/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-asgi/default.nix index 7eb2a6679745..9d745e0261d3 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-asgi/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-asgi/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, asgiref -, hatchling -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, opentelemetry-util-http -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + asgiref, + hatchling, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + opentelemetry-util-http, + pytestCheckHook, }: buildPythonPackage { @@ -20,9 +21,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-asgi"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ asgiref diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-django/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-django/default.nix index 9e27e60e2dde..30b2fd0e35fc 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-django/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-django/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, django -, hatchling -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-instrumentation-asgi -, opentelemetry-instrumentation-wsgi -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, opentelemetry-util-http -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + django, + hatchling, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-instrumentation-asgi, + opentelemetry-instrumentation-wsgi, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + opentelemetry-util-http, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-django"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ django diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-fastapi/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-fastapi/default.nix index a4da7665172e..178c39fffb34 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-fastapi/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-fastapi/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fastapi -, hatchling -, httpx -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-instrumentation-asgi -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, opentelemetry-util-http -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fastapi, + hatchling, + httpx, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-instrumentation-asgi, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + opentelemetry-util-http, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage { @@ -23,9 +24,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-fastapi"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ fastapi @@ -43,9 +42,7 @@ buildPythonPackage { requests ]; - pythonImportsCheck = [ - "opentelemetry.instrumentation.fastapi" - ]; + pythonImportsCheck = [ "opentelemetry.instrumentation.fastapi" ]; meta = opentelemetry-instrumentation.meta // { description = "OpenTelemetry Instrumentation for fastapi"; diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-flask/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-flask/default.nix index 0e1daa3f3a91..779e018ae413 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-flask/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-flask/default.nix @@ -1,15 +1,16 @@ -{ buildPythonPackage -, flask -, hatchling -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-instrumentation-wsgi -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, opentelemetry-util-http -, packaging -, pytestCheckHook -, pythonOlder +{ + buildPythonPackage, + flask, + hatchling, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-instrumentation-wsgi, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + opentelemetry-util-http, + packaging, + pytestCheckHook, + pythonOlder, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-grpc/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-grpc/default.nix index 2a2cae6f6de4..1d400f8e53b0 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-grpc/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-grpc/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-sdk -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, wrapt -, pytestCheckHook -, grpcio +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-sdk, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + wrapt, + pytestCheckHook, + grpcio, }: buildPythonPackage { @@ -22,9 +23,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-grpc"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ opentelemetry-api diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation-wsgi/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation-wsgi/default.nix index 2e3d60b28442..eaca2e81e161 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation-wsgi/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation-wsgi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, opentelemetry-instrumentation -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, opentelemetry-util-http -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + opentelemetry-instrumentation, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + opentelemetry-util-http, + pytestCheckHook, }: buildPythonPackage { @@ -19,9 +20,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-wsgi"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ opentelemetry-instrumentation diff --git a/pkgs/development/python-modules/opentelemetry-instrumentation/default.nix b/pkgs/development/python-modules/opentelemetry-instrumentation/default.nix index 38205814d047..1068b33036a9 100644 --- a/pkgs/development/python-modules/opentelemetry-instrumentation/default.nix +++ b/pkgs/development/python-modules/opentelemetry-instrumentation/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, opentelemetry-api -, opentelemetry-test-utils -, setuptools -, wrapt -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + opentelemetry-api, + opentelemetry-test-utils, + setuptools, + wrapt, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/opentelemetry-instrumentation"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ opentelemetry-api diff --git a/pkgs/development/python-modules/opentelemetry-proto/default.nix b/pkgs/development/python-modules/opentelemetry-proto/default.nix index 58869327a1ae..a2036ddfb77b 100644 --- a/pkgs/development/python-modules/opentelemetry-proto/default.nix +++ b/pkgs/development/python-modules/opentelemetry-proto/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, protobuf -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + protobuf, + pytestCheckHook, }: buildPythonPackage { @@ -16,17 +17,11 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/opentelemetry-proto"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - protobuf - ]; + dependencies = [ protobuf ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "opentelemetry.proto" ]; diff --git a/pkgs/development/python-modules/opentelemetry-sdk/default.nix b/pkgs/development/python-modules/opentelemetry-sdk/default.nix index bee9dc01e6b0..29f69f428b88 100644 --- a/pkgs/development/python-modules/opentelemetry-sdk/default.nix +++ b/pkgs/development/python-modules/opentelemetry-sdk/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, flaky -, hatchling -, opentelemetry-api -, opentelemetry-semantic-conventions -, opentelemetry-test-utils -, setuptools -, typing-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + flaky, + hatchling, + opentelemetry-api, + opentelemetry-semantic-conventions, + opentelemetry-test-utils, + setuptools, + typing-extensions, + pytestCheckHook, }: let @@ -21,9 +22,7 @@ let sourceRoot = "${opentelemetry-api.src.name}/opentelemetry-sdk"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ opentelemetry-api @@ -37,9 +36,7 @@ let pytestCheckHook ]; - disabledTestPaths = [ - "tests/performance/benchmarks/" - ]; + disabledTestPaths = [ "tests/performance/benchmarks/" ]; pythonImportsCheck = [ "opentelemetry.sdk" ]; @@ -53,4 +50,5 @@ let description = "OpenTelemetry Python SDK"; }; }; -in self +in +self diff --git a/pkgs/development/python-modules/opentelemetry-semantic-conventions/default.nix b/pkgs/development/python-modules/opentelemetry-semantic-conventions/default.nix index a2a88906ec07..cadd60634ab2 100644 --- a/pkgs/development/python-modules/opentelemetry-semantic-conventions/default.nix +++ b/pkgs/development/python-modules/opentelemetry-semantic-conventions/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-api -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-api, + pytestCheckHook, }: buildPythonPackage { @@ -16,13 +17,9 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/opentelemetry-semantic-conventions"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "opentelemetry.semconv" ]; diff --git a/pkgs/development/python-modules/opentelemetry-test-utils/default.nix b/pkgs/development/python-modules/opentelemetry-test-utils/default.nix index d255845658c2..64cca503a407 100644 --- a/pkgs/development/python-modules/opentelemetry-test-utils/default.nix +++ b/pkgs/development/python-modules/opentelemetry-test-utils/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, asgiref -, hatchling -, opentelemetry-api -, opentelemetry-sdk +{ + lib, + buildPythonPackage, + pythonOlder, + asgiref, + hatchling, + opentelemetry-api, + opentelemetry-sdk, }: buildPythonPackage { @@ -17,9 +18,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-api.src.name}/tests/opentelemetry-test-utils"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ asgiref diff --git a/pkgs/development/python-modules/opentelemetry-util-http/default.nix b/pkgs/development/python-modules/opentelemetry-util-http/default.nix index 128f503d832d..ee1d76c04a99 100644 --- a/pkgs/development/python-modules/opentelemetry-util-http/default.nix +++ b/pkgs/development/python-modules/opentelemetry-util-http/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, hatchling -, opentelemetry-instrumentation -, opentelemetry-test-utils -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + hatchling, + opentelemetry-instrumentation, + opentelemetry-test-utils, + pytestCheckHook, }: buildPythonPackage { @@ -16,9 +17,7 @@ buildPythonPackage { sourceRoot = "${opentelemetry-instrumentation.src.name}/util/opentelemetry-util-http"; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; nativeCheckInputs = [ opentelemetry-instrumentation diff --git a/pkgs/development/python-modules/opentimestamps/default.nix b/pkgs/development/python-modules/opentimestamps/default.nix index fbd3b2852eed..c7edcd84370d 100644 --- a/pkgs/development/python-modules/opentimestamps/default.nix +++ b/pkgs/development/python-modules/opentimestamps/default.nix @@ -1,12 +1,13 @@ -{ lib -, bitcoinlib -, buildPythonPackage -, fetchFromGitHub -, git -, gitpython -, pycryptodomex -, pytestCheckHook -, pythonOlder +{ + lib, + bitcoinlib, + buildPythonPackage, + fetchFromGitHub, + git, + gitpython, + pycryptodomex, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pycryptodomex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Remove a failing test which expects the test source file to reside in the # project's Git repo @@ -39,9 +38,7 @@ buildPythonPackage rec { rm opentimestamps/tests/core/test_git.py ''; - pythonImportsCheck = [ - "opentimestamps" - ]; + pythonImportsCheck = [ "opentimestamps" ]; meta = with lib; { description = "Create and verify OpenTimestamps proofs"; diff --git a/pkgs/development/python-modules/opentracing/default.nix b/pkgs/development/python-modules/opentracing/default.nix index 706c47714afe..c0f61bb10743 100644 --- a/pkgs/development/python-modules/opentracing/default.nix +++ b/pkgs/development/python-modules/opentracing/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, isPy27 -, futures ? null -, gevent -, mock -, pytestCheckHook -, tornado -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + isPy27, + futures ? null, + gevent, + mock, + pytestCheckHook, + tornado, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/opentsne/default.nix b/pkgs/development/python-modules/opentsne/default.nix index ba3e0b8460b1..9dfe9b1ebde3 100644 --- a/pkgs/development/python-modules/opentsne/default.nix +++ b/pkgs/development/python-modules/opentsne/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, numpy -, oldest-supported-numpy -, scipy -, scikit-learn -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + numpy, + oldest-supported-numpy, + scipy, + scikit-learn, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: let @@ -40,9 +41,7 @@ let scikit-learn ]; - pythonImportsCheck = [ - "openTSNE" - ]; + pythonImportsCheck = [ "openTSNE" ]; doCheck = false; @@ -57,7 +56,10 @@ let doInstall = false; doCheck = true; - nativeCheckInputs = [ pytestCheckHook self ]; + nativeCheckInputs = [ + pytestCheckHook + self + ]; }); }; @@ -69,4 +71,5 @@ let maintainers = with maintainers; [ lucasew ]; }; }; -in self +in +self diff --git a/pkgs/development/python-modules/opentypespec/default.nix b/pkgs/development/python-modules/opentypespec/default.nix index 0355ec02146d..ea4f2ca3530d 100644 --- a/pkgs/development/python-modules/opentypespec/default.nix +++ b/pkgs/development/python-modules/opentypespec/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + unittestCheckHook, }: buildPythonPackage rec { @@ -15,10 +16,12 @@ buildPythonPackage rec { }; doCheck = true; - nativeCheckInputs = [ - unittestCheckHook + nativeCheckInputs = [ unittestCheckHook ]; + unittestFlagsArray = [ + "-s" + "test" + "-v" ]; - unittestFlagsArray = [ "-s" "test" "-v" ]; meta = with lib; { description = "Python library for OpenType specification metadata"; @@ -27,4 +30,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/openvino/default.nix b/pkgs/development/python-modules/openvino/default.nix index 660e6c41c014..b43534bfd8af 100644 --- a/pkgs/development/python-modules/openvino/default.nix +++ b/pkgs/development/python-modules/openvino/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, openvino-native -, numpy -, python +{ + lib, + buildPythonPackage, + openvino-native, + numpy, + python, }: buildPythonPackage { @@ -12,9 +13,7 @@ buildPythonPackage { src = openvino-native.python; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; installPhase = '' runHook preInstall diff --git a/pkgs/development/python-modules/openwebifpy/default.nix b/pkgs/development/python-modules/openwebifpy/default.nix index 160a7708bdf6..a43b7c872e54 100644 --- a/pkgs/development/python-modules/openwebifpy/default.nix +++ b/pkgs/development/python-modules/openwebifpy/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, aiohttp -, yarl + # dependencies + aiohttp, + yarl, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -26,22 +27,16 @@ buildPythonPackage rec { hash = "sha256-qL/H2F+/d/JWwmUbZhvoMlZZDGgEpRBmHabt1MWjGAs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp yarl ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "openwebif" - ]; + pythonImportsCheck = [ "openwebif" ]; disabledTests = [ # https://github.com/autinerd/openwebifpy/issues/1 @@ -57,4 +52,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ hexa ]; }; } - diff --git a/pkgs/development/python-modules/openwrt-luci-rpc/default.nix b/pkgs/development/python-modules/openwrt-luci-rpc/default.nix index b1e47f13c436..1d955c7c8446 100644 --- a/pkgs/development/python-modules/openwrt-luci-rpc/default.nix +++ b/pkgs/development/python-modules/openwrt-luci-rpc/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, packaging -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + click, + fetchPypi, + packaging, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "openwrt_luci_rpc" ]; diff --git a/pkgs/development/python-modules/opsdroid-get-image-size/default.nix b/pkgs/development/python-modules/opsdroid-get-image-size/default.nix index 777788eeb48d..06b64b0cc718 100644 --- a/pkgs/development/python-modules/opsdroid-get-image-size/default.nix +++ b/pkgs/development/python-modules/opsdroid-get-image-size/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-Cp2tvsdCZ+/86DF7FRNwx5diGcUWLYcFwQns7nYXkog="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # test data not included on pypi doCheck = false; diff --git a/pkgs/development/python-modules/opt-einsum/default.nix b/pkgs/development/python-modules/opt-einsum/default.nix index e943d67c7baa..801c1b49841a 100644 --- a/pkgs/development/python-modules/opt-einsum/default.nix +++ b/pkgs/development/python-modules/opt-einsum/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, setuptools -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + setuptools, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,21 +31,13 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "opt_einsum" - ]; + pythonImportsCheck = [ "opt_einsum" ]; meta = with lib; { description = "Optimizing NumPy's einsum function with order optimization and GPU support"; diff --git a/pkgs/development/python-modules/optax/default.nix b/pkgs/development/python-modules/optax/default.nix index 950e9c91dbf5..14082067893a 100644 --- a/pkgs/development/python-modules/optax/default.nix +++ b/pkgs/development/python-modules/optax/default.nix @@ -1,13 +1,14 @@ -{ lib -, absl-py -, buildPythonPackage -, flit-core -, chex -, fetchFromGitHub -, jaxlib -, numpy -, callPackage -, pythonOlder +{ + lib, + absl-py, + buildPythonPackage, + flit-core, + chex, + fetchFromGitHub, + jaxlib, + numpy, + callPackage, + pythonOlder, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { "testsout" ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - buildInputs = [ - jaxlib - ]; + buildInputs = [ jaxlib ]; propagatedBuildInputs = [ absl-py @@ -48,9 +45,7 @@ buildPythonPackage rec { cp -R examples $testsout/examples ''; - pythonImportsCheck = [ - "optax" - ]; + pythonImportsCheck = [ "optax" ]; # check in passthru.tests.pytest to escape infinite recursion with flax doCheck = false; diff --git a/pkgs/development/python-modules/optax/tests.nix b/pkgs/development/python-modules/optax/tests.nix index 1ab548f2f399..ae5c8fe6d441 100644 --- a/pkgs/development/python-modules/optax/tests.nix +++ b/pkgs/development/python-modules/optax/tests.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, dm-haiku -, pytest-xdist -, pytestCheckHook -, tensorflow -, tensorflow-datasets -, flax -, optax +{ + buildPythonPackage, + dm-haiku, + pytest-xdist, + pytestCheckHook, + tensorflow, + tensorflow-datasets, + flax, + optax, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/optimum/default.nix b/pkgs/development/python-modules/optimum/default.nix index ecc214e1051d..bf0185b98c2c 100644 --- a/pkgs/development/python-modules/optimum/default.nix +++ b/pkgs/development/python-modules/optimum/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, coloredlogs -, datasets -, evaluate -, h5py -, huggingface-hub -, numpy -, onnx -, onnxruntime -, packaging -, protobuf -, sympy -, tensorflow -, tf2onnx -, timm -, torch -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + coloredlogs, + datasets, + evaluate, + h5py, + huggingface-hub, + numpy, + onnx, + onnxruntime, + packaging, + protobuf, + sympy, + tensorflow, + tf2onnx, + timm, + torch, + transformers, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/optree/default.nix b/pkgs/development/python-modules/optree/default.nix index d592c6d51f39..27a057b24ddd 100644 --- a/pkgs/development/python-modules/optree/default.nix +++ b/pkgs/development/python-modules/optree/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, lib -, cmake -, setuptools -, typing-extensions -, pybind11 -, pytestCheckHook +{ + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + lib, + cmake, + setuptools, + typing-extensions, + pybind11, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeBuildInputs = [ setuptools pybind11 cmake ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # prevent import failures from pytest preCheck = '' rm -r optree @@ -46,9 +43,7 @@ buildPythonPackage rec { # Fails because the 'test_treespec' module can't be found "test_treespec_pickle_missing_registration" ]; - pythonImportsCheck = [ - "optree" - ]; + pythonImportsCheck = [ "optree" ]; meta = with lib; { homepage = "https://github.com/metaopt/optree"; diff --git a/pkgs/development/python-modules/optuna/default.nix b/pkgs/development/python-modules/optuna/default.nix index 97f065323c72..86b39519741f 100644 --- a/pkgs/development/python-modules/optuna/default.nix +++ b/pkgs/development/python-modules/optuna/default.nix @@ -1,44 +1,45 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, alembic -, boto3 -, botorch -, catboost -, cma -, cmaes -, colorlog -, distributed -, fakeredis -, google-cloud-storage -, lightgbm -, matplotlib -, mlflow -, moto -, numpy -, packaging -, pandas -, plotly -, pytest-xdist -, pytorch-lightning -, pyyaml -, redis -, scikit-learn -, scikit-optimize -, scipy -, setuptools -, shap -, sqlalchemy -, tensorflow -, torch -, torchaudio -, torchvision -, tqdm -, wandb -, wheel -, xgboost +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + alembic, + boto3, + botorch, + catboost, + cma, + cmaes, + colorlog, + distributed, + fakeredis, + google-cloud-storage, + lightgbm, + matplotlib, + mlflow, + moto, + numpy, + packaging, + pandas, + plotly, + pytest-xdist, + pytorch-lightning, + pyyaml, + redis, + scikit-learn, + scikit-optimize, + scipy, + setuptools, + shap, + sqlalchemy, + tensorflow, + torch, + torchaudio, + torchvision, + tqdm, + wandb, + wheel, + xgboost, }: buildPythonPackage rec { @@ -114,12 +115,9 @@ buildPythonPackage rec { pytest-xdist pytestCheckHook scipy - ] ++ fakeredis.optional-dependencies.lua - ++ passthru.optional-dependencies.optional; + ] ++ fakeredis.optional-dependencies.lua ++ passthru.optional-dependencies.optional; - pytestFlagsArray = [ - "-m 'not integration'" - ]; + pytestFlagsArray = [ "-m 'not integration'" ]; disabledTestPaths = [ # require unpackaged kaleido and building it is a bit difficult @@ -128,9 +126,7 @@ buildPythonPackage rec { "tests/artifacts_tests/test_boto3.py" ]; - pythonImportsCheck = [ - "optuna" - ]; + pythonImportsCheck = [ "optuna" ]; meta = with lib; { description = "A hyperparameter optimization framework"; diff --git a/pkgs/development/python-modules/opuslib/default.nix b/pkgs/development/python-modules/opuslib/default.nix index 2f5bbf8b2581..3e6ea255621d 100644 --- a/pkgs/development/python-modules/opuslib/default.nix +++ b/pkgs/development/python-modules/opuslib/default.nix @@ -44,9 +44,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pynose ]; diff --git a/pkgs/development/python-modules/opytimark/default.nix b/pkgs/development/python-modules/opytimark/default.nix index 69eb61f795bf..29b5fcee2c51 100644 --- a/pkgs/development/python-modules/opytimark/default.nix +++ b/pkgs/development/python-modules/opytimark/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # several tests are failing disabledTests = [ @@ -44,9 +41,7 @@ buildPythonPackage rec { "cec_benchmark" ]; - pythonImportsCheck = [ - "opytimark" - ]; + pythonImportsCheck = [ "opytimark" ]; meta = with lib; { description = "Library consisting of optimization benchmarking functions"; diff --git a/pkgs/development/python-modules/oralb-ble/default.nix b/pkgs/development/python-modules/oralb-ble/default.nix index 08b0abb2ded8..11eba7e06ab1 100644 --- a/pkgs/development/python-modules/oralb-ble/default.nix +++ b/pkgs/development/python-modules/oralb-ble/default.nix @@ -1,15 +1,16 @@ -{ lib -, bleak -, bleak-retry-connector -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + bleak, + bleak-retry-connector, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace-fail " --cov=oralb_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bleak @@ -48,9 +47,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "oralb_ble" - ]; + pythonImportsCheck = [ "oralb_ble" ]; disabledTests = [ # Test is outdated, TypeError: BLEDevice.__init__() missing 2 required... diff --git a/pkgs/development/python-modules/orange-canvas-core/default.nix b/pkgs/development/python-modules/orange-canvas-core/default.nix index 37683a999488..49bd8f996fc0 100644 --- a/pkgs/development/python-modules/orange-canvas-core/default.nix +++ b/pkgs/development/python-modules/orange-canvas-core/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, anyqt -, cachecontrol -, commonmark -, dictdiffer -, docutils -, filelock -, lockfile -, numpy -, pytest-qt -, pytestCheckHook -, qasync -, qt5 -, requests-cache +{ + lib, + buildPythonPackage, + fetchPypi, + anyqt, + cachecontrol, + commonmark, + dictdiffer, + docutils, + filelock, + lockfile, + numpy, + pytest-qt, + pytestCheckHook, + qasync, + qt5, + requests-cache, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - "orangecanvas/canvas/items/tests/test_graphicstextitem.py" - ]; + disabledTestPaths = [ "orangecanvas/canvas/items/tests/test_graphicstextitem.py" ]; meta = { description = "Orange framework for building graphical user interfaces for editing workflows"; diff --git a/pkgs/development/python-modules/orange-widget-base/default.nix b/pkgs/development/python-modules/orange-widget-base/default.nix index 3a1d5cd6e893..61d63c17344b 100644 --- a/pkgs/development/python-modules/orange-widget-base/default.nix +++ b/pkgs/development/python-modules/orange-widget-base/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pyqt5 -, pyqtwebengine -, matplotlib -, orange-canvas-core -, pyqtgraph -, typing-extensions -, qt5 -, pytestCheckHook -, pytest-qt -, appnope +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pyqt5, + pyqtwebengine, + matplotlib, + orange-canvas-core, + pyqtgraph, + typing-extensions, + qt5, + pytestCheckHook, + pytest-qt, + appnope, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { pyqtgraph pyqtwebengine typing-extensions - ] ++ lib.optionals stdenv.isDarwin [ - appnope - ]; + ] ++ lib.optionals stdenv.isDarwin [ appnope ]; pythonImportsCheck = [ "orangewidget" ]; diff --git a/pkgs/development/python-modules/orange3/default.nix b/pkgs/development/python-modules/orange3/default.nix index a5f9d5f85fd4..e59e2a5dfaad 100644 --- a/pkgs/development/python-modules/orange3/default.nix +++ b/pkgs/development/python-modules/orange3/default.nix @@ -1,51 +1,52 @@ -{ lib -, stdenv -, baycomp -, bottleneck -, buildPythonPackage -, chardet -, copyDesktopItems -, pythonRelaxDepsHook -, cython -, catboost -, xgboost -, fetchFromGitHub -, fetchurl -, httpx -, joblib -, keyring -, keyrings-alt -, makeDesktopItem -, matplotlib -, nix-update-script -, numpy -, oldest-supported-numpy -, openpyxl -, opentsne -, orange-canvas-core -, orange-widget-base -, pandas -, pytestCheckHook -, pytest-qt -, pyqtgraph -, pyqtwebengine -, python -, python-louvain -, pythonOlder -, pyyaml -, pip -, qt5 -, qtconsole -, recommonmark -, requests -, scikit-learn -, scipy -, serverfiles -, setuptools -, sphinx -, wheel -, xlrd -, xlsxwriter +{ + lib, + stdenv, + baycomp, + bottleneck, + buildPythonPackage, + chardet, + copyDesktopItems, + pythonRelaxDepsHook, + cython, + catboost, + xgboost, + fetchFromGitHub, + fetchurl, + httpx, + joblib, + keyring, + keyrings-alt, + makeDesktopItem, + matplotlib, + nix-update-script, + numpy, + oldest-supported-numpy, + openpyxl, + opentsne, + orange-canvas-core, + orange-widget-base, + pandas, + pytestCheckHook, + pytest-qt, + pyqtgraph, + pyqtwebengine, + python, + python-louvain, + pythonOlder, + pyyaml, + pip, + qt5, + qtconsole, + recommonmark, + requests, + scikit-learn, + scipy, + serverfiles, + setuptools, + sphinx, + wheel, + xlrd, + xlsxwriter, }: let @@ -125,7 +126,10 @@ let # FIXME: pythonRelaxDeps is not relaxing the scikit-learn version constraint, had to disable this dontCheckRuntimeDeps = true; - pythonImportsCheck = [ "Orange" "Orange.data._variable" ]; + pythonImportsCheck = [ + "Orange" + "Orange.data._variable" + ]; desktopItems = [ (makeDesktopItem { @@ -136,8 +140,19 @@ let comment = "Explore, analyze, and visualize your data"; icon = "orange-canvas"; mimeTypes = [ "application/x-extension-ows" ]; - categories = [ "Science" "Education" "ArtificialIntelligence" "DataVisualization" "NumericalAnalysis" "Qt" ]; - keywords = [ "Machine Learning" "Scientific Visualization" "Statistical Analysis" ]; + categories = [ + "Science" + "Education" + "ArtificialIntelligence" + "DataVisualization" + "NumericalAnalysis" + "Qt" + ]; + keywords = [ + "Machine Learning" + "Scientific Visualization" + "Statistical Analysis" + ]; }) ]; @@ -180,7 +195,10 @@ let ''; - nativeBuildInputs = [ pytestCheckHook pytest-qt ]; + nativeBuildInputs = [ + pytestCheckHook + pytest-qt + ]; postCheck = '' touch $out diff --git a/pkgs/development/python-modules/ordered-set/default.nix b/pkgs/development/python-modules/ordered-set/default.nix index d0ac537171a5..e45451f3276a 100644 --- a/pkgs/development/python-modules/ordered-set/default.nix +++ b/pkgs/development/python-modules/ordered-set/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-aUqORMh2V8WSku3nKJHrkdNBMfZTFGOqswCRkcdzZKg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ordered_set" - ]; + pythonImportsCheck = [ "ordered_set" ]; meta = with lib; { description = "A MutableSet that remembers its order, so that every entry has an index."; diff --git a/pkgs/development/python-modules/orderedmultidict/default.nix b/pkgs/development/python-modules/orderedmultidict/default.nix index fb7c4395e56c..8abe7d593065 100644 --- a/pkgs/development/python-modules/orderedmultidict/default.nix +++ b/pkgs/development/python-modules/orderedmultidict/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, flake8, six, pythonOlder, importlib-metadata }: +{ + lib, + buildPythonPackage, + fetchPypi, + flake8, + six, + pythonOlder, + importlib-metadata, +}: buildPythonPackage rec { pname = "orderedmultidict"; @@ -12,10 +20,7 @@ buildPythonPackage rec { nativeCheckInputs = [ flake8 ]; - propagatedBuildInputs = [ six ] - ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ six ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; meta = with lib; { description = "Ordered Multivalue Dictionary."; diff --git a/pkgs/development/python-modules/orderedset/default.nix b/pkgs/development/python-modules/orderedset/default.nix index 1ab63309c391..ce69d63b56dd 100644 --- a/pkgs/development/python-modules/orderedset/default.nix +++ b/pkgs/development/python-modules/orderedset/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "orderedset"; diff --git a/pkgs/development/python-modules/orgparse/default.nix b/pkgs/development/python-modules/orgparse/default.nix index 67988d5529ff..488a0e6e4d98 100644 --- a/pkgs/development/python-modules/orgparse/default.nix +++ b/pkgs/development/python-modules/orgparse/default.nix @@ -1,4 +1,8 @@ -{ lib, python3Packages, fetchPypi }: +{ + lib, + python3Packages, + fetchPypi, +}: python3Packages.buildPythonPackage rec { pname = "orgparse"; diff --git a/pkgs/development/python-modules/orjson/default.nix b/pkgs/development/python-modules/orjson/default.nix index bd1d06e5c266..75440aeaa860 100644 --- a/pkgs/development/python-modules/orjson/default.nix +++ b/pkgs/development/python-modules/orjson/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, rustPlatform -, cffi + # build-system + rustPlatform, + cffi, -# native dependencies -, libiconv + # native dependencies + libiconv, -# tests -, numpy -, psutil -, pytestCheckHook -, python-dateutil -, pytz -, xxhash -, python + # tests + numpy, + psutil, + pytestCheckHook, + python-dateutil, + pytz, + xxhash, + python, -# for passthru.tests -, falcon -, fastapi -, gradio -, mashumaro -, ufolib2 + # for passthru.tests + falcon, + fastapi, + gradio, + mashumaro, + ufolib2, }: buildPythonPackage rec { @@ -50,16 +51,14 @@ buildPythonPackage rec { maturinBuildFlags = [ "--interpreter ${python.executable}" ]; - nativeBuildInputs = [ - cffi - ] ++ (with rustPlatform; [ - cargoSetupHook - maturinBuildHook - ]); + nativeBuildInputs = + [ cffi ] + ++ (with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]); - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; nativeCheckInputs = [ numpy @@ -70,9 +69,7 @@ buildPythonPackage rec { xxhash ]; - pythonImportsCheck = [ - "orjson" - ]; + pythonImportsCheck = [ "orjson" ]; passthru.tests = { inherit @@ -81,14 +78,17 @@ buildPythonPackage rec { gradio mashumaro ufolib2 - ; + ; }; meta = with lib; { description = "Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy"; homepage = "https://github.com/ijl/orjson"; changelog = "https://github.com/ijl/orjson/blob/${version}/CHANGELOG.md"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; platforms = platforms.unix; maintainers = with maintainers; [ misuzu ]; }; diff --git a/pkgs/development/python-modules/orm/default.nix b/pkgs/development/python-modules/orm/default.nix index 1b3ed285029f..2744be988fe9 100644 --- a/pkgs/development/python-modules/orm/default.nix +++ b/pkgs/development/python-modules/orm/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiomysql -, aiosqlite -, asyncpg -, buildPythonPackage -, databases -, fetchFromGitHub -, pythonOlder -, typesystem +{ + lib, + aiomysql, + aiosqlite, + asyncpg, + buildPythonPackage, + databases, + fetchFromGitHub, + pythonOlder, + typesystem, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { # Tests require databases doCheck = false; - pythonImportsCheck = [ - "orm" - ]; + pythonImportsCheck = [ "orm" ]; meta = with lib; { description = "An async ORM"; diff --git a/pkgs/development/python-modules/ormar/default.nix b/pkgs/development/python-modules/ormar/default.nix index e50d9b2788fa..2400ed2b223f 100644 --- a/pkgs/development/python-modules/ormar/default.nix +++ b/pkgs/development/python-modules/ormar/default.nix @@ -1,28 +1,29 @@ -{ lib -, aiomysql -, aiopg -, aiosqlite -, asyncpg -, buildPythonPackage -, cryptography -, databases -, fastapi -, fetchFromGitHub -, httpx -, importlib-metadata -, mysqlclient -, nest-asyncio -, orjson -, poetry-core -, psycopg2 -, pydantic -, pymysql -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, sqlalchemy -, typing-extensions +{ + lib, + aiomysql, + aiopg, + aiosqlite, + asyncpg, + buildPythonPackage, + cryptography, + databases, + fastapi, + fetchFromGitHub, + httpx, + importlib-metadata, + mysqlclient, + nest-asyncio, + orjson, + poetry-core, + psycopg2, + pydantic, + pymysql, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + sqlalchemy, + typing-extensions, }: buildPythonPackage rec { @@ -50,39 +51,27 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - propagatedBuildInputs = [ - databases - psycopg2 - pydantic - sqlalchemy - psycopg2 - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - importlib-metadata - ]; + propagatedBuildInputs = + [ + databases + psycopg2 + pydantic + sqlalchemy + psycopg2 + ] + ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions + importlib-metadata + ]; passthru.optional-dependencies = { - postgresql = [ - asyncpg - ]; - postgres = [ - asyncpg - ]; - aiopg = [ - aiopg - ]; - mysql = [ - aiomysql - ]; - sqlite = [ - aiosqlite - ]; - orjson = [ - orjson - ]; - crypto = [ - cryptography - ]; + postgresql = [ asyncpg ]; + postgres = [ asyncpg ]; + aiopg = [ aiopg ]; + mysql = [ aiomysql ]; + sqlite = [ aiosqlite ]; + orjson = [ orjson ]; + crypto = [ cryptography ]; all = [ aiomysql aiopg @@ -95,9 +84,7 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ fastapi @@ -106,9 +93,7 @@ buildPythonPackage rec { pytest-asyncio ] ++ passthru.optional-dependencies.all; - disabledTestPaths = [ - "benchmarks/test_benchmark_*.py" - ]; + disabledTestPaths = [ "benchmarks/test_benchmark_*.py" ]; disabledTests = [ # TypeError: Object of type bytes is not JSON serializable @@ -154,9 +139,7 @@ buildPythonPackage rec { "test_quering_of_related_model_works_but_no_result" ]; - pythonImportsCheck = [ - "ormar" - ]; + pythonImportsCheck = [ "ormar" ]; meta = with lib; { description = "Async ORM with fastapi in mind and pydantic validation"; diff --git a/pkgs/development/python-modules/orvibo/default.nix b/pkgs/development/python-modules/orvibo/default.nix index 0b08b3d1a0c1..15ff4dcee51b 100644 --- a/pkgs/development/python-modules/orvibo/default.nix +++ b/pkgs/development/python-modules/orvibo/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/os-service-types/default.nix b/pkgs/development/python-modules/os-service-types/default.nix index 7ec653e4fcad..e17e8f5fffe4 100644 --- a/pkgs/development/python-modules/os-service-types/default.nix +++ b/pkgs/development/python-modules/os-service-types/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, six -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + six, + callPackage, }: buildPythonPackage rec { @@ -22,7 +23,10 @@ buildPythonPackage rec { rm test-requirements.txt ''; - propagatedBuildInputs = [ pbr six ]; + propagatedBuildInputs = [ + pbr + six + ]; # check in passthru.tests.pytest to escape infinite recursion with other oslo components doCheck = false; diff --git a/pkgs/development/python-modules/os-service-types/tests.nix b/pkgs/development/python-modules/os-service-types/tests.nix index a0996765cb6b..f5cbe994e9e8 100644 --- a/pkgs/development/python-modules/os-service-types/tests.nix +++ b/pkgs/development/python-modules/os-service-types/tests.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, keystoneauth1 -, os-service-types -, oslotest -, requests-mock -, stestr -, testscenarios +{ + buildPythonPackage, + keystoneauth1, + os-service-types, + oslotest, + requests-mock, + stestr, + testscenarios, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/osc-diagram/default.nix b/pkgs/development/python-modules/osc-diagram/default.nix index f2802ed08e76..a411e2b4824e 100644 --- a/pkgs/development/python-modules/osc-diagram/default.nix +++ b/pkgs/development/python-modules/osc-diagram/default.nix @@ -1,10 +1,10 @@ { - lib - , buildPythonPackage - , diagrams - , fetchFromGitHub - , osc-sdk-python - , setuptools + lib, + buildPythonPackage, + diagrams, + fetchFromGitHub, + osc-sdk-python, + setuptools, }: buildPythonPackage { @@ -19,9 +19,7 @@ buildPythonPackage { hash = "sha256-2Iaar2twemw4xv1GGqHd3xiNCHrZLsZXtP7e9tNVpEU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ diagrams diff --git a/pkgs/development/python-modules/osc-lib/default.nix b/pkgs/development/python-modules/osc-lib/default.nix index 1bde4e8eedb5..84443f5b7733 100644 --- a/pkgs/development/python-modules/osc-lib/default.nix +++ b/pkgs/development/python-modules/osc-lib/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, cliff -, oslo-i18n -, oslo-utils -, openstacksdk -, pbr -, requests-mock -, simplejson -, stestr +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + cliff, + oslo-i18n, + oslo-utils, + openstacksdk, + pbr, + requests-mock, + simplejson, + stestr, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # fake version to make pbr.packaging happy and not reject it... PBR_VERSION = version; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; propagatedBuildInputs = [ cliff diff --git a/pkgs/development/python-modules/osc-sdk-python/default.nix b/pkgs/development/python-modules/osc-sdk-python/default.nix index 2475ef8bc784..0bbfc103b041 100644 --- a/pkgs/development/python-modules/osc-sdk-python/default.nix +++ b/pkgs/development/python-modules/osc-sdk-python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, requests -, ruamel-yaml -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + requests, + ruamel-yaml, + setuptools, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { fetchSubmodules = true; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests ruamel-yaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ @@ -39,13 +36,9 @@ buildPythonPackage rec { ''; # Only keep test not requiring access and secret keys - pytestFlagsArray = [ - "tests/test_net.py" - ]; + pytestFlagsArray = [ "tests/test_net.py" ]; - pythonImportsCheck = [ - "osc_sdk_python" - ]; + pythonImportsCheck = [ "osc_sdk_python" ]; meta = with lib; { description = "SDK to perform actions on Outscale API"; diff --git a/pkgs/development/python-modules/osc/default.nix b/pkgs/development/python-modules/osc/default.nix index ef9691075962..eeb9f9df6f2a 100644 --- a/pkgs/development/python-modules/osc/default.nix +++ b/pkgs/development/python-modules/osc/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, bashInteractive -, buildPythonPackage -, cryptography -, diffstat -, fetchFromGitHub -, lib -, rpm -, urllib3 -, keyring +{ + stdenv, + bashInteractive, + buildPythonPackage, + cryptography, + diffstat, + fetchFromGitHub, + lib, + rpm, + urllib3, + keyring, }: buildPythonPackage rec { @@ -23,8 +24,15 @@ buildPythonPackage rec { }; buildInputs = [ bashInteractive ]; # needed for bash-completion helper - nativeCheckInputs = [ rpm diffstat ]; - propagatedBuildInputs = [ urllib3 cryptography keyring ]; + nativeCheckInputs = [ + rpm + diffstat + ]; + propagatedBuildInputs = [ + urllib3 + cryptography + keyring + ]; postInstall = '' install -D -m444 contrib/osc.fish $out/etc/fish/completions/osc.fish @@ -45,8 +53,10 @@ buildPythonPackage rec { homepage = "https://github.com/openSUSE/osc"; description = "opensuse-commander with svn like handling"; mainProgram = "osc"; - maintainers = with maintainers; [ peti saschagrunert ]; + maintainers = with maintainers; [ + peti + saschagrunert + ]; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/oscpy/default.nix b/pkgs/development/python-modules/oscpy/default.nix index 9ccbedb18060..5f79ae15e73f 100644 --- a/pkgs/development/python-modules/oscpy/default.nix +++ b/pkgs/development/python-modules/oscpy/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, +}: buildPythonPackage rec { pname = "oscpy"; diff --git a/pkgs/development/python-modules/oscrypto/default.nix b/pkgs/development/python-modules/oscrypto/default.nix index c3cea1d5bcde..1ddfce166c38 100644 --- a/pkgs/development/python-modules/oscrypto/default.nix +++ b/pkgs/development/python-modules/oscrypto/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, asn1crypto -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, openssl -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + asn1crypto, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + openssl, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -41,17 +42,11 @@ buildPythonPackage rec { done ''; - propagatedBuildInputs = [ - asn1crypto - ]; + propagatedBuildInputs = [ asn1crypto ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "oscrypto" - ]; + pythonImportsCheck = [ "oscrypto" ]; doCheck = !stdenv.isDarwin; diff --git a/pkgs/development/python-modules/oscscreen/default.nix b/pkgs/development/python-modules/oscscreen/default.nix index c0eab771d148..a9f9a9873df5 100644 --- a/pkgs/development/python-modules/oscscreen/default.nix +++ b/pkgs/development/python-modules/oscscreen/default.nix @@ -1,8 +1,8 @@ { - lib - , buildPythonPackage - , fetchFromGitHub - , setuptools + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage rec { @@ -17,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-0Im1kVFa11AW+7Oe95XvkfxSlaux6bkKaHSQy6hJCN8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "oscscreen" ]; diff --git a/pkgs/development/python-modules/oset/default.nix b/pkgs/development/python-modules/oset/default.nix index 7cc323806029..e1c79446e397 100644 --- a/pkgs/development/python-modules/oset/default.nix +++ b/pkgs/development/python-modules/oset/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "oset"; @@ -16,5 +20,4 @@ buildPythonPackage rec { description = "Ordered set"; license = licenses.psfl; }; - } diff --git a/pkgs/development/python-modules/oslo-concurrency/default.nix b/pkgs/development/python-modules/oslo-concurrency/default.nix index 13fbdbcaac64..ef4b6f2c4bc5 100644 --- a/pkgs/development/python-modules/oslo-concurrency/default.nix +++ b/pkgs/development/python-modules/oslo-concurrency/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, bash -, coreutils -, eventlet -, fasteners -, fixtures -, iana-etc -, libredirect -, oslo-config -, oslo-utils -, oslotest -, pbr -, stestr +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + bash, + coreutils, + eventlet, + fasteners, + fixtures, + iana-etc, + libredirect, + oslo-config, + oslo-utils, + oslotest, + pbr, + stestr, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/oslo-config/default.nix b/pkgs/development/python-modules/oslo-config/default.nix index f73090cf812a..172c7a56b9a7 100644 --- a/pkgs/development/python-modules/oslo-config/default.nix +++ b/pkgs/development/python-modules/oslo-config/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, debtcollector -, netaddr -, oslo-i18n -, pbr -, pyyaml -, requests -, rfc3986 -, stevedore -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + debtcollector, + netaddr, + oslo-i18n, + pbr, + pyyaml, + requests, + rfc3986, + stevedore, + callPackage, }: buildPythonPackage rec { @@ -44,7 +45,7 @@ buildPythonPackage rec { doCheck = false; passthru.tests = { - tests = callPackage ./tests.nix {}; + tests = callPackage ./tests.nix { }; }; pythonImportsCheck = [ "oslo_config" ]; diff --git a/pkgs/development/python-modules/oslo-config/tests.nix b/pkgs/development/python-modules/oslo-config/tests.nix index 0540760e57a0..7f6a3dfbf6f0 100644 --- a/pkgs/development/python-modules/oslo-config/tests.nix +++ b/pkgs/development/python-modules/oslo-config/tests.nix @@ -1,16 +1,17 @@ -{ buildPythonPackage -, oslo-config -, docutils -, oslo-log -, oslotest -, requests-mock -, sphinx -, stestr -, testscenarios +{ + buildPythonPackage, + oslo-config, + docutils, + oslo-log, + oslotest, + requests-mock, + sphinx, + stestr, + testscenarios, }: buildPythonPackage { -pname = "oslo-config-tests"; + pname = "oslo-config-tests"; inherit (oslo-config) version src; format = "other"; diff --git a/pkgs/development/python-modules/oslo-context/default.nix b/pkgs/development/python-modules/oslo-context/default.nix index ce9b5d6dcf99..cbb8cad1bbae 100644 --- a/pkgs/development/python-modules/oslo-context/default.nix +++ b/pkgs/development/python-modules/oslo-context/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, debtcollector, oslotest, stestr, pbr }: +{ + lib, + buildPythonPackage, + fetchPypi, + debtcollector, + oslotest, + stestr, + pbr, +}: buildPythonPackage rec { pname = "oslo.context"; diff --git a/pkgs/development/python-modules/oslo-db/default.nix b/pkgs/development/python-modules/oslo-db/default.nix index b4dce2cc09b5..3bb388329b65 100644 --- a/pkgs/development/python-modules/oslo-db/default.nix +++ b/pkgs/development/python-modules/oslo-db/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, alembic -, debtcollector -, oslo-config -, oslo-context -, oslo-i18n -, oslo-utils -, oslotest -, pbr -, psycopg2 -, setuptools -, sqlalchemy -, stevedore -, stestr -, testresources -, testscenarios +{ + lib, + buildPythonPackage, + fetchPypi, + alembic, + debtcollector, + oslo-config, + oslo-context, + oslo-i18n, + oslo-utils, + oslotest, + pbr, + psycopg2, + setuptools, + sqlalchemy, + stevedore, + stestr, + testresources, + testscenarios, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/oslo-i18n/default.nix b/pkgs/development/python-modules/oslo-i18n/default.nix index 814c7dfc0dc1..ca79dec476ea 100644 --- a/pkgs/development/python-modules/oslo-i18n/default.nix +++ b/pkgs/development/python-modules/oslo-i18n/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, oslotest -, pbr -, setuptools -, testscenarios -, stestr +{ + lib, + buildPythonPackage, + fetchPypi, + oslotest, + pbr, + setuptools, + testscenarios, + stestr, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/oslo-log/default.nix b/pkgs/development/python-modules/oslo-log/default.nix index bc4584bcee5a..9f18906cb875 100644 --- a/pkgs/development/python-modules/oslo-log/default.nix +++ b/pkgs/development/python-modules/oslo-log/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, eventlet -, oslo-config -, oslo-context -, oslo-serialization -, oslo-utils -, oslotest -, pbr -, pyinotify -, python-dateutil -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + eventlet, + oslo-config, + oslo-context, + oslo-serialization, + oslo-utils, + oslotest, + pbr, + pyinotify, + python-dateutil, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { oslo-utils pbr python-dateutil - ] ++ lib.optionals stdenv.isLinux [ - pyinotify - ]; + ] ++ lib.optionals stdenv.isLinux [ pyinotify ]; nativeCheckInputs = [ eventlet @@ -52,9 +51,7 @@ buildPythonPackage rec { "test_log_config_append_invalid" ]; - pythonImportsCheck = [ - "oslo_log" - ]; + pythonImportsCheck = [ "oslo_log" ]; meta = with lib; { description = "oslo.log library"; diff --git a/pkgs/development/python-modules/oslo-serialization/default.nix b/pkgs/development/python-modules/oslo-serialization/default.nix index 1399503c0f9d..28be76c8d13f 100644 --- a/pkgs/development/python-modules/oslo-serialization/default.nix +++ b/pkgs/development/python-modules/oslo-serialization/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, msgpack -, oslo-utils -, oslotest -, pbr -, pytz -, stestr +{ + lib, + buildPythonPackage, + fetchPypi, + msgpack, + oslo-utils, + oslotest, + pbr, + pytz, + stestr, }: buildPythonPackage rec { @@ -28,9 +29,16 @@ buildPythonPackage rec { nativeBuildInputs = [ pbr ]; - propagatedBuildInputs = [ msgpack oslo-utils pytz ]; + propagatedBuildInputs = [ + msgpack + oslo-utils + pytz + ]; - nativeCheckInputs = [ oslotest stestr ]; + nativeCheckInputs = [ + oslotest + stestr + ]; checkPhase = '' stestr run diff --git a/pkgs/development/python-modules/oslo-utils/default.nix b/pkgs/development/python-modules/oslo-utils/default.nix index 503143f75d31..b812207a5abb 100644 --- a/pkgs/development/python-modules/oslo-utils/default.nix +++ b/pkgs/development/python-modules/oslo-utils/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ddt -, debtcollector -, eventlet -, fixtures -, iso8601 -, netaddr -, netifaces -, oslo-i18n -, oslotest -, packaging -, pbr -, pyparsing -, pytz -, setuptools -, stestr -, testscenarios -, tzdata -, pyyaml -, iana-etc -, libredirect +{ + lib, + buildPythonPackage, + fetchPypi, + ddt, + debtcollector, + eventlet, + fixtures, + iso8601, + netaddr, + netifaces, + oslo-i18n, + oslotest, + packaging, + pbr, + pyparsing, + pytz, + setuptools, + stestr, + testscenarios, + tzdata, + pyyaml, + iana-etc, + libredirect, }: buildPythonPackage rec { @@ -70,7 +71,7 @@ buildPythonPackage rec { # disabled tests: # https://bugs.launchpad.net/oslo.utils/+bug/2054134 # netaddr default behaviour changed to be stricter - checkPhase ='' + checkPhase = '' echo "nameserver 127.0.0.1" > resolv.conf export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) export LD_PRELOAD=${libredirect}/lib/libredirect.so diff --git a/pkgs/development/python-modules/oslotest/default.nix b/pkgs/development/python-modules/oslotest/default.nix index 2f400b0312a1..55553b98e1e3 100644 --- a/pkgs/development/python-modules/oslotest/default.nix +++ b/pkgs/development/python-modules/oslotest/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fixtures -, pbr -, six -, subunit -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + fixtures, + pbr, + six, + subunit, + callPackage, }: buildPythonPackage rec { @@ -30,7 +31,7 @@ buildPythonPackage rec { doCheck = false; passthru.tests = { - tests = callPackage ./tests.nix {}; + tests = callPackage ./tests.nix { }; }; pythonImportsCheck = [ "oslotest" ]; diff --git a/pkgs/development/python-modules/oslotest/tests.nix b/pkgs/development/python-modules/oslotest/tests.nix index f80073e1c1bd..d7667166b18b 100644 --- a/pkgs/development/python-modules/oslotest/tests.nix +++ b/pkgs/development/python-modules/oslotest/tests.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, oslo-config -, oslotest -, stestr +{ + buildPythonPackage, + oslo-config, + oslotest, + stestr, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/osmnx/default.nix b/pkgs/development/python-modules/osmnx/default.nix index 0800d71a8dfb..97488f2810fd 100644 --- a/pkgs/development/python-modules/osmnx/default.nix +++ b/pkgs/development/python-modules/osmnx/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, folium -, gdal -, geopandas -, hatchling -, matplotlib -, networkx -, numpy -, pandas -, pythonOlder -, rasterio -, requests -, rtree -, scikit-learn -, scipy -, shapely +{ + lib, + buildPythonPackage, + fetchFromGitHub, + folium, + gdal, + geopandas, + hatchling, + matplotlib, + networkx, + numpy, + pandas, + pythonOlder, + rasterio, + requests, + rtree, + scikit-learn, + scipy, + shapely, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-od/0IuiK2CvrD0lfcTzkImK/5hcm6m61ULYzEtv/YeA="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ geopandas @@ -55,9 +54,7 @@ buildPythonPackage rec { # Tests require network doCheck = false; - pythonImportsCheck = [ - "osmnx" - ]; + pythonImportsCheck = [ "osmnx" ]; meta = with lib; { description = "Package to easily download, construct, project, visualize, and analyze complex street networks from OpenStreetMap with NetworkX"; @@ -67,4 +64,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ psyanticy ]; }; } - diff --git a/pkgs/development/python-modules/osmpythontools/default.nix b/pkgs/development/python-modules/osmpythontools/default.nix index 1e4f8fd9f822..abf38d4d4b79 100644 --- a/pkgs/development/python-modules/osmpythontools/default.nix +++ b/pkgs/development/python-modules/osmpythontools/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, beautifulsoup4 -, geojson -, lxml -, matplotlib -, numpy -, pandas -, ujson -, xarray +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + geojson, + lxml, + matplotlib, + numpy, + pandas, + ujson, + xarray, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ospd/default.nix b/pkgs/development/python-modules/ospd/default.nix index a9e6ba10d981..e18bc804cfda 100644 --- a/pkgs/development/python-modules/ospd/default.nix +++ b/pkgs/development/python-modules/ospd/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, defusedxml -, deprecated -, fetchFromGitHub -, lxml -, paramiko -, psutil -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + defusedxml, + deprecated, + fetchFromGitHub, + lxml, + paramiko, + psutil, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { psutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ospd" - ]; + pythonImportsCheck = [ "ospd" ]; meta = with lib; { description = "Framework for vulnerability scanners which support OSP"; diff --git a/pkgs/development/python-modules/osqp/default.nix b/pkgs/development/python-modules/osqp/default.nix index 38004632402b..4d7cc0cad795 100644 --- a/pkgs/development/python-modules/osqp/default.nix +++ b/pkgs/development/python-modules/osqp/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cmake -, cvxopt -, fetchPypi -, future -, numpy -, oldest-supported-numpy -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, qdldl -, scipy -, setuptools-scm +{ + lib, + buildPythonPackage, + cmake, + cvxopt, + fetchPypi, + future, + numpy, + oldest-supported-numpy, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + qdldl, + scipy, + setuptools-scm, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "scipy" - ]; + pythonRelaxDeps = [ "scipy" ]; propagatedBuildInputs = [ future @@ -51,22 +50,21 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "osqp" - ]; + pythonImportsCheck = [ "osqp" ]; - disabledTests = [ - # Need an unfree license package - mkl - "test_issue14" - ] - # disable tests failing after scipy 1.12 update - # https://github.com/osqp/osqp-python/issues/121 - # re-enable once unit tests fixed - ++ [ - "feasibility_tests" - "polish_tests" - "update_matrices_tests" - ]; + disabledTests = + [ + # Need an unfree license package - mkl + "test_issue14" + ] + # disable tests failing after scipy 1.12 update + # https://github.com/osqp/osqp-python/issues/121 + # re-enable once unit tests fixed + ++ [ + "feasibility_tests" + "polish_tests" + "update_matrices_tests" + ]; meta = with lib; { description = "The Operator Splitting QP Solver"; diff --git a/pkgs/development/python-modules/oss2/default.nix b/pkgs/development/python-modules/oss2/default.nix index a62410ecdc42..79c0b50e2235 100644 --- a/pkgs/development/python-modules/oss2/default.nix +++ b/pkgs/development/python-modules/oss2/default.nix @@ -1,17 +1,18 @@ -{ lib -, aliyun-python-sdk-core -, aliyun-python-sdk-kms -, aliyun-python-sdk-sts -, buildPythonPackage -, crcmod -, fetchFromGitHub -, mock -, pycryptodome -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, six +{ + lib, + aliyun-python-sdk-core, + aliyun-python-sdk-kms, + aliyun-python-sdk-sts, + buildPythonPackage, + crcmod, + fetchFromGitHub, + mock, + pycryptodome, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + six, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-jDSXPVyy8XvPgsGZXsdfavFPptq28pCwr9C63OZvNrY="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ requests @@ -49,9 +48,7 @@ buildPythonPackage rec { pythonRelaxDeps = true; - pythonImportsCheck = [ - "oss2" - ]; + pythonImportsCheck = [ "oss2" ]; disabledTestPaths = [ # Tests require network access diff --git a/pkgs/development/python-modules/ossfs/default.nix b/pkgs/development/python-modules/ossfs/default.nix index 97f61f62199b..833b22995af5 100644 --- a/pkgs/development/python-modules/ossfs/default.nix +++ b/pkgs/development/python-modules/ossfs/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiooss2 -, buildPythonPackage -, fetchFromGitHub -, fsspec -, oss2 -, pythonOlder -, pythonRelaxDepsHook -, setuptools-scm +{ + lib, + aiooss2, + buildPythonPackage, + fetchFromGitHub, + fsspec, + oss2, + pythonOlder, + pythonRelaxDepsHook, + setuptools-scm, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # Most tests require network access doCheck = false; - pythonImportsCheck = [ - "ossfs" - ]; + pythonImportsCheck = [ "ossfs" ]; meta = with lib; { description = "Filesystem for Alibaba Cloud (Aliyun) Object Storage System (OSS)"; diff --git a/pkgs/development/python-modules/ots-python/default.nix b/pkgs/development/python-modules/ots-python/default.nix index f6a86a564136..7aba8368fd8b 100644 --- a/pkgs/development/python-modules/ots-python/default.nix +++ b/pkgs/development/python-modules/ots-python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, substituteAll -, opentype-sanitizer -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + substituteAll, + opentype-sanitizer, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - opentype-sanitizer - ]; - nativeBuildInputs = [ - setuptools-scm - ]; + propagatedBuildInputs = [ opentype-sanitizer ]; + nativeBuildInputs = [ setuptools-scm ]; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python wrapper for ots (OpenType Sanitizer)"; diff --git a/pkgs/development/python-modules/outcome/default.nix b/pkgs/development/python-modules/outcome/default.nix index 7aa65b2d1d22..2cfcb84cac55 100644 --- a/pkgs/development/python-modules/outcome/default.nix +++ b/pkgs/development/python-modules/outcome/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, attrs -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + attrs, + pytest, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-nc8C5l8pcbgAR7N3Ro5yomjhXArzzxI45v8U9/kRQ7g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest ]; propagatedBuildInputs = [ attrs ]; @@ -27,7 +26,10 @@ buildPythonPackage rec { meta = { description = "Capture the outcome of Python function calls."; homepage = "https://github.com/python-trio/outcome"; - license = with lib.licenses; [ mit asl20 ]; + license = with lib.licenses; [ + mit + asl20 + ]; maintainers = with lib.maintainers; [ catern ]; }; } diff --git a/pkgs/development/python-modules/outlines/default.nix b/pkgs/development/python-modules/outlines/default.nix index 5e33127f3e0c..6f7ee0ee37a0 100644 --- a/pkgs/development/python-modules/outlines/default.nix +++ b/pkgs/development/python-modules/outlines/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, interegular -, cloudpickle -, diskcache -, joblib -, jsonschema -, pydantic -, lark -, nest-asyncio -, numba -, scipy -, torch -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + interegular, + cloudpickle, + diskcache, + joblib, + jsonschema, + pydantic, + lark, + nest-asyncio, + numba, + scipy, + torch, + transformers, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { transformers ]; - pythonImportsCheck = [ - "outlines" - ]; + pythonImportsCheck = [ "outlines" ]; meta = with lib; { description = "Structured text generation"; diff --git a/pkgs/development/python-modules/overly/default.nix b/pkgs/development/python-modules/overly/default.nix index 8fec61e13845..257c61254bc5 100644 --- a/pkgs/development/python-modules/overly/default.nix +++ b/pkgs/development/python-modules/overly/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, h11 -, sansio-multipart +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + h11, + sansio-multipart, }: buildPythonPackage rec { @@ -35,6 +36,6 @@ buildPythonPackage rec { homepage = "https://github.com/theelous3/overly"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; - broken = stdenv.isDarwin; # https://github.com/theelous3/overly/issues/2 + broken = stdenv.isDarwin; # https://github.com/theelous3/overly/issues/2 }; } diff --git a/pkgs/development/python-modules/overpy/default.nix b/pkgs/development/python-modules/overpy/default.nix index 37abe9551117..ad08945d95e3 100644 --- a/pkgs/development/python-modules/overpy/default.nix +++ b/pkgs/development/python-modules/overpy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "overpy" - ]; + pythonImportsCheck = [ "overpy" ]; meta = with lib; { description = "Python Wrapper to access the Overpass API"; diff --git a/pkgs/development/python-modules/overrides/default.nix b/pkgs/development/python-modules/overrides/default.nix index 93dea37791a5..a19db6995ee8 100644 --- a/pkgs/development/python-modules/overrides/default.nix +++ b/pkgs/development/python-modules/overrides/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { hash = "sha256-gQDw5/RpAFNYWFOuxIAArPkCOoBYWUnsDtv1FEFteHo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # KeyError: 'assertRaises' "test_enforcing_when_incompatible" ]; - pythonImportsCheck = [ - "overrides" - ]; + pythonImportsCheck = [ "overrides" ]; meta = with lib; { description = "Decorator to automatically detect mismatch when overriding a method"; diff --git a/pkgs/development/python-modules/ovh/default.nix b/pkgs/development/python-modules/ovh/default.nix index 7ac42a4ff0de..1f741962c902 100644 --- a/pkgs/development/python-modules/ovh/default.nix +++ b/pkgs/development/python-modules/ovh/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-EI+bWjtHEZPOSkWJx3gvS8y//gugMWl3TrBHKsKO9nk="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ovh" - ]; + pythonImportsCheck = [ "ovh" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/ovmfvartool/default.nix b/pkgs/development/python-modules/ovmfvartool/default.nix index fd15a3a12a4f..aaee10b25a37 100644 --- a/pkgs/development/python-modules/ovmfvartool/default.nix +++ b/pkgs/development/python-modules/ovmfvartool/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pyyaml }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyyaml, +}: buildPythonPackage rec { pname = "ovmfvartool"; @@ -24,6 +29,9 @@ buildPythonPackage rec { mainProgram = "ovmfvartool"; homepage = "https://github.com/hlandau/ovmfvartool"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ baloo raitobezarius ]; + maintainers = with maintainers; [ + baloo + raitobezarius + ]; }; } diff --git a/pkgs/development/python-modules/owslib/default.nix b/pkgs/development/python-modules/owslib/default.nix index efa0a744f4b5..e67dc18143fb 100644 --- a/pkgs/development/python-modules/owslib/default.nix +++ b/pkgs/development/python-modules/owslib/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -, lxml -, pyproj -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, pyyaml -, requests + lxml, + pyproj, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + pyyaml, + requests, }: buildPythonPackage rec { @@ -41,33 +42,31 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "owslib" - ]; + pythonImportsCheck = [ "owslib" ]; preCheck = '' # _pytest.pathlib.ImportPathMismatchError: ('owslib.swe.sensor.sml', '/build/source/build/... export PY_IGNORE_IMPORTMISMATCH=1 ''; - disabledTests = [ - # Tests require network access - "test_ows_interfaces_wcs" - "test_wfs_110_remotemd" - "test_wfs_200_remotemd" - "test_wms_130_remotemd" - "test_wmts_example_informatievlaanderen" - "test_opensearch_creodias" - ] ++ lib.optionals stdenv.isDarwin [ - "test_ogcapi_processes_pygeoapi" - "test_ogcapi_records_pycsw" - "test_ogcapi_records_pygeoapi" - "test_wms_getfeatureinfo_130" - ]; + disabledTests = + [ + # Tests require network access + "test_ows_interfaces_wcs" + "test_wfs_110_remotemd" + "test_wfs_200_remotemd" + "test_wms_130_remotemd" + "test_wmts_example_informatievlaanderen" + "test_opensearch_creodias" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_ogcapi_processes_pygeoapi" + "test_ogcapi_records_pycsw" + "test_ogcapi_records_pygeoapi" + "test_wms_getfeatureinfo_130" + ]; meta = with lib; { description = "Client for Open Geospatial Consortium web service interface standards"; diff --git a/pkgs/development/python-modules/oyaml/default.nix b/pkgs/development/python-modules/oyaml/default.nix index 6e43b4c0e9c6..ffa881c8c06e 100644 --- a/pkgs/development/python-modules/oyaml/default.nix +++ b/pkgs/development/python-modules/oyaml/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, # pythonPackages -, pytestCheckHook -, pythonOlder -, pyyaml + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-1rSEhiULlAweLDqUFX+JBFxe3iW9kNlRA2zjcG8MYSg="; }; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "oyaml" - ]; + pythonImportsCheck = [ "oyaml" ]; meta = with lib; { description = "Drop-in replacement for PyYAML which preserves dict ordering"; diff --git a/pkgs/development/python-modules/p1monitor/default.nix b/pkgs/development/python-modules/p1monitor/default.nix index c45af36a8633..039f24c98356 100644 --- a/pkgs/development/python-modules/p1monitor/default.nix +++ b/pkgs/development/python-modules/p1monitor/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace 'addopts = "--cov"' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "p1monitor" - ]; + pythonImportsCheck = [ "p1monitor" ]; meta = with lib; { description = "Module for interacting with the P1 Monitor"; diff --git a/pkgs/development/python-modules/pa-ringbuffer/default.nix b/pkgs/development/python-modules/pa-ringbuffer/default.nix index a18eda1f92bf..4ddd9af2b063 100644 --- a/pkgs/development/python-modules/pa-ringbuffer/default.nix +++ b/pkgs/development/python-modules/pa-ringbuffer/default.nix @@ -1,4 +1,8 @@ -{ fetchFromGitHub, buildPythonPackage, lib }: +{ + fetchFromGitHub, + buildPythonPackage, + lib, +}: buildPythonPackage rec { pname = "pa-ringbuffer"; diff --git a/pkgs/development/python-modules/packageurl-python/default.nix b/pkgs/development/python-modules/packageurl-python/default.nix index 430cd58024dd..1946c3087fbf 100644 --- a/pkgs/development/python-modules/packageurl-python/default.nix +++ b/pkgs/development/python-modules/packageurl-python/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-8hmyzmNIGFonvWpy5v3J+YTmyfoVfv+ny5PjQcSc3MI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "packageurl" - ]; + pythonImportsCheck = [ "packageurl" ]; meta = with lib; { description = "Python parser and builder for package URLs"; diff --git a/pkgs/development/python-modules/packaging/default.nix b/pkgs/development/python-modules/packaging/default.nix index 32ce7fd8accb..58327bc57543 100644 --- a/pkgs/development/python-modules/packaging/default.nix +++ b/pkgs/development/python-modules/packaging/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, flit-core + # build-system + flit-core, -# tests -, pretend -, pytestCheckHook + # tests + pretend, + pytestCheckHook, }: let @@ -24,9 +25,7 @@ let hash = "sha256-64LF4+ViCQdHZuaIW7BLjDigwBXQowA26+fs40yZiek="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook @@ -45,14 +44,19 @@ let # Prevent circular dependency with pytest doCheck = false; - passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; }); + passthru.tests = packaging.overridePythonAttrs (_: { + doCheck = true; + }); meta = with lib; { changelog = "https://github.com/pypa/packaging/blob/${version}/CHANGELOG.rst"; description = "Core utilities for Python packages"; downloadPage = "https://github.com/pypa/packaging"; homepage = "https://packaging.pypa.io/"; - license = with licenses; [ bsd2 asl20 ]; + license = with licenses; [ + bsd2 + asl20 + ]; maintainers = teams.python.members ++ (with maintainers; [ bennofs ]); }; }; diff --git a/pkgs/development/python-modules/packbits/default.nix b/pkgs/development/python-modules/packbits/default.nix index 8e9b655c0a3b..acca93d0c57b 100644 --- a/pkgs/development/python-modules/packbits/default.nix +++ b/pkgs/development/python-modules/packbits/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, buildPythonPackage -, fetchPypi -, pyparsing -, six -, pytest -, pretend -, lib +{ + stdenv, + buildPythonPackage, + fetchPypi, + pyparsing, + six, + pytest, + pretend, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/packet-python/default.nix b/pkgs/development/python-modules/packet-python/default.nix index 8c88e6dc6ea7..bc50624aa03b 100644 --- a/pkgs/development/python-modules/packet-python/default.nix +++ b/pkgs/development/python-modules/packet-python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { @@ -24,18 +25,14 @@ buildPythonPackage rec { --replace "pytest-runner" "" ''; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook requests-mock ]; - pythonImportsCheck = [ - "packet" - ]; + pythonImportsCheck = [ "packet" ]; meta = with lib; { description = "Python client for the Packet API"; diff --git a/pkgs/development/python-modules/packvers/default.nix b/pkgs/development/python-modules/packvers/default.nix index 5ec3bd628c3e..50bdaff9db6f 100644 --- a/pkgs/development/python-modules/packvers/default.nix +++ b/pkgs/development/python-modules/packvers/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pretend -, pyparsing -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pretend, + pyparsing, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,24 +22,23 @@ buildPythonPackage rec { hash = "sha256-nCSYL0g7mXi9pGFt24pOXbmmYsaRuB+rRZrygf8DTLE="; }; - propagatedBuildInputs = [ - pyparsing - ]; + propagatedBuildInputs = [ pyparsing ]; nativeCheckInputs = [ pretend pytestCheckHook ]; - pythonImportsCheck = [ - "packvers" - ]; + pythonImportsCheck = [ "packvers" ]; meta = with lib; { description = "Module for version handling of modules"; homepage = "https://github.com/nexB/dparse2"; changelog = "https://github.com/nexB/packvers/blob/${version}/CHANGELOG.rst"; - license = with licenses; [ asl20 /* and */ bsd2 ]; + license = with licenses; [ + asl20 # and + bsd2 + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/pad4pi/default.nix b/pkgs/development/python-modules/pad4pi/default.nix index bc6c0d27aff4..a5e0a8ebca69 100644 --- a/pkgs/development/python-modules/pad4pi/default.nix +++ b/pkgs/development/python-modules/pad4pi/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, rpi-gpio }: +{ + lib, + buildPythonPackage, + fetchPypi, + rpi-gpio, +}: buildPythonPackage rec { pname = "pad4pi"; diff --git a/pkgs/development/python-modules/paddle-bfloat/default.nix b/pkgs/development/python-modules/paddle-bfloat/default.nix index a1d6c591fcf2..351c617d8ca0 100644 --- a/pkgs/development/python-modules/paddle-bfloat/default.nix +++ b/pkgs/development/python-modules/paddle-bfloat/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonAtLeast -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonAtLeast, + numpy, }: let pname = "paddle-bfloat"; @@ -28,13 +29,11 @@ buildPythonPackage { disabled = pythonOlder "3.9" || pythonAtLeast "3.12"; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "paddle_bfloat" ]; -# upstream has no tests + # upstream has no tests doCheck = false; meta = with lib; { diff --git a/pkgs/development/python-modules/paddle2onnx/default.nix b/pkgs/development/python-modules/paddle2onnx/default.nix index 0ba25c3046c4..ce01eef3ec27 100644 --- a/pkgs/development/python-modules/paddle2onnx/default.nix +++ b/pkgs/development/python-modules/paddle2onnx/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, python -, onnx -, isPy311 +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + python, + onnx, + isPy311, }: let pname = "paddle2onnx"; version = "1.2.0"; format = "wheel"; - pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}"; + pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}"; src = fetchPypi { inherit pname version format; dist = pyShortVersion; @@ -22,13 +23,16 @@ let }; in buildPythonPackage { - inherit pname version src format; + inherit + pname + version + src + format + ; disabled = pythonOlder "3.8" || isPy311; - propagatedBuildInputs = [ - onnx - ]; + propagatedBuildInputs = [ onnx ]; meta = with lib; { description = "ONNX Model Exporter for PaddlePaddle"; diff --git a/pkgs/development/python-modules/paddleocr/default.nix b/pkgs/development/python-modules/paddleocr/default.nix index 4cc4d283a831..c263fce2c649 100644 --- a/pkgs/development/python-modules/paddleocr/default.nix +++ b/pkgs/development/python-modules/paddleocr/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, pythonRelaxDepsHook -, fetchFromGitHub -, attrdict -, beautifulsoup4 -, cython -, fire -, fonttools -, lmdb -, lxml -, numpy -, opencv4 -, openpyxl -, pdf2docx -, pillow -, premailer -, pyclipper -, pymupdf -, python-docx -, rapidfuzz -, scikit-image -, shapely -, tqdm -, paddlepaddle -, lanms-neo -, polygon3 +{ + lib, + buildPythonPackage, + pythonRelaxDepsHook, + fetchFromGitHub, + attrdict, + beautifulsoup4, + cython, + fire, + fonttools, + lmdb, + lxml, + numpy, + opencv4, + openpyxl, + pdf2docx, + pillow, + premailer, + pyclipper, + pymupdf, + python-docx, + rapidfuzz, + scikit-image, + shapely, + tqdm, + paddlepaddle, + lanms-neo, + polygon3, }: let @@ -106,6 +107,10 @@ buildPythonPackage { ''; changelog = "https://github.com/PaddlePaddle/PaddleOCR/releases/tag/v${version}"; maintainers = with maintainers; [ happysalada ]; - platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; }; } diff --git a/pkgs/development/python-modules/paddlepaddle/default.nix b/pkgs/development/python-modules/paddlepaddle/default.nix index b9cc87b21e33..b263cdc8e1b9 100644 --- a/pkgs/development/python-modules/paddlepaddle/default.nix +++ b/pkgs/development/python-modules/paddlepaddle/default.nix @@ -1,40 +1,47 @@ -{ stdenv -, config -, lib -, buildPythonPackage -, fetchPypi -, python -, pythonOlder -, pythonAtLeast -, openssl_1_1 -, zlib -, setuptools -, cudaSupport ? config.cudaSupport or false -, cudaPackages_11 ? {} -, addOpenGLRunpath -# runtime dependencies -, httpx -, numpy -, protobuf -, pillow -, decorator -, astor -, paddle-bfloat -, opt-einsum +{ + stdenv, + config, + lib, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, + pythonAtLeast, + openssl_1_1, + zlib, + setuptools, + cudaSupport ? config.cudaSupport or false, + cudaPackages_11 ? { }, + addOpenGLRunpath, + # runtime dependencies + httpx, + numpy, + protobuf, + pillow, + decorator, + astor, + paddle-bfloat, + opt-einsum, }: let pname = "paddlepaddle" + lib.optionalString cudaSupport "-gpu"; version = "2.5.0"; format = "wheel"; - pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}"; + pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}"; cpuOrGpu = if cudaSupport then "gpu" else "cpu"; allHashAndPlatform = import ./binary-hashes.nix; - hash = allHashAndPlatform."${stdenv.system}"."${cpuOrGpu}"."${pyShortVersion}" - or (throw "${pname} has no binary-hashes.nix entry for '${stdenv.system}.${cpuOrGpu}.${pyShortVersion}' attribute"); + hash = + allHashAndPlatform."${stdenv.system}"."${cpuOrGpu}"."${pyShortVersion}" + or (throw "${pname} has no binary-hashes.nix entry for '${stdenv.system}.${cpuOrGpu}.${pyShortVersion}' attribute"); platform = allHashAndPlatform."${stdenv.system}".platform; src = fetchPypi ({ - inherit version format hash platform; + inherit + version + format + hash + platform + ; pname = builtins.replaceStrings [ "-" ] [ "_" ] pname; dist = pyShortVersion; python = pyShortVersion; @@ -42,7 +49,12 @@ let }); in buildPythonPackage { - inherit pname version format src; + inherit + pname + version + format + src + ; disabled = pythonOlder "3.9" || pythonAtLeast "3.11"; @@ -50,11 +62,18 @@ buildPythonPackage { # TODO: remove openssl_1_1 and zlib, maybe by building paddlepaddle from # source as suggested in the following comment: # https://github.com/NixOS/nixpkgs/pull/243583#issuecomment-1641450848 - [ openssl_1_1 zlib ] ++ lib.optionals cudaSupport (with cudaPackages_11; [ - cudatoolkit.lib - cudatoolkit.out - cudnn - ]) + [ + openssl_1_1 + zlib + ] + ++ lib.optionals cudaSupport ( + with cudaPackages_11; + [ + cudatoolkit.lib + cudatoolkit.out + cudnn + ] + ) ); postFixup = lib.optionalString stdenv.isLinux '' @@ -68,9 +87,7 @@ buildPythonPackage { fixRunPath $out/${python.sitePackages}/paddle/fluid/libpaddle.so ''; - nativeBuildInputs = [ - addOpenGLRunpath - ]; + nativeBuildInputs = [ addOpenGLRunpath ]; propagatedBuildInputs = [ setuptools @@ -94,6 +111,11 @@ buildPythonPackage { homepage = "https://github.com/PaddlePaddle/Paddle"; license = licenses.asl20; maintainers = with maintainers; [ happysalada ]; - platforms = [ "x86_64-linux" ] ++ optionals (!cudaSupport) [ "x86_64-darwin" "aarch64-darwin" ]; + platforms = + [ "x86_64-linux" ] + ++ optionals (!cudaSupport) [ + "x86_64-darwin" + "aarch64-darwin" + ]; }; } diff --git a/pkgs/development/python-modules/pagelabels/default.nix b/pkgs/development/python-modules/pagelabels/default.nix index 44b246869aa5..32d791ce1c8a 100644 --- a/pkgs/development/python-modules/pagelabels/default.nix +++ b/pkgs/development/python-modules/pagelabels/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pdfrw }: +{ + lib, + buildPythonPackage, + fetchPypi, + pdfrw, +}: buildPythonPackage rec { pname = "pagelabels"; diff --git a/pkgs/development/python-modules/paginate/default.nix b/pkgs/development/python-modules/paginate/default.nix index ad22a818aee3..891e02814b85 100644 --- a/pkgs/development/python-modules/paginate/default.nix +++ b/pkgs/development/python-modules/paginate/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-HZWwOYOCk4mAmz8OnM9hhlf8HA+jC75dYVeo0l4a09o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "paginate" - ]; + pythonImportsCheck = [ "paginate" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # https://github.com/Pylons/paginate/issues/19 diff --git a/pkgs/development/python-modules/paho-mqtt/default.nix b/pkgs/development/python-modules/paho-mqtt/default.nix index 8c0e54d18d60..83582102767b 100644 --- a/pkgs/development/python-modules/paho-mqtt/default.nix +++ b/pkgs/development/python-modules/paho-mqtt/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, pytestCheckHook -, mock -, six +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + pytestCheckHook, + mock, + six, }: buildPythonPackage rec { @@ -23,20 +24,19 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook six - ] ++ lib.optionals (!isPy3k) [ - mock - ]; + ] ++ lib.optionals (!isPy3k) [ mock ]; doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "paho.mqtt" - ]; + pythonImportsCheck = [ "paho.mqtt" ]; meta = with lib; { description = "MQTT version 3.1.1 client class"; homepage = "https://eclipse.org/paho"; license = licenses.epl10; - maintainers = with maintainers; [ mog dotlambda ]; + maintainers = with maintainers; [ + mog + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/palace/default.nix b/pkgs/development/python-modules/palace/default.nix index 5529d344dfff..43d7e9aa3333 100644 --- a/pkgs/development/python-modules/palace/default.nix +++ b/pkgs/development/python-modules/palace/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromSourcehut -, pythonOlder -, cmake -, cython_0 -, setuptools -, alure2 -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromSourcehut, + pythonOlder, + cmake, + cython_0, + setuptools, + alure2, + typing-extensions, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - propagatedBuildInputs = [ - alure2 - ]; + propagatedBuildInputs = [ alure2 ]; doCheck = false; # FIXME: tests need an audio device diff --git a/pkgs/development/python-modules/palettable/default.nix b/pkgs/development/python-modules/palettable/default.nix index 2f7cb7138c4c..2ac4da95dca3 100644 --- a/pkgs/development/python-modules/palettable/default.nix +++ b/pkgs/development/python-modules/palettable/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { sha256 = "sha256-CU3X2aX8HMpIVHc+XB/GoxWzO9WzqPRwZJKPrK8EkKg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "palettable" diff --git a/pkgs/development/python-modules/pallets-sphinx-themes/default.nix b/pkgs/development/python-modules/pallets-sphinx-themes/default.nix index 9020e458bc08..a021db9db307 100644 --- a/pkgs/development/python-modules/pallets-sphinx-themes/default.nix +++ b/pkgs/development/python-modules/pallets-sphinx-themes/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, sphinx, packaging }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sphinx, + packaging, +}: buildPythonPackage rec { pname = "pallets-sphinx-themes"; @@ -12,7 +18,10 @@ buildPythonPackage rec { sha256 = "sha256-Z03rsqkwF2rYaqRZflf5qc5EdHPIEcEcB1ftYIm5DQs="; }; - propagatedBuildInputs = [ packaging sphinx ]; + propagatedBuildInputs = [ + packaging + sphinx + ]; pythonImportsCheck = [ "pallets_sphinx_themes" ]; diff --git a/pkgs/development/python-modules/pamela/default.nix b/pkgs/development/python-modules/pamela/default.nix index 389cf10a772e..ad16f250130f 100644 --- a/pkgs/development/python-modules/pamela/default.nix +++ b/pkgs/development/python-modules/pamela/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { homepage = "https://github.com/minrk/pamela"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pamqp/default.nix b/pkgs/development/python-modules/pamqp/default.nix index b3ad60e7d1c8..184df403f5e7 100644 --- a/pkgs/development/python-modules/pamqp/default.nix +++ b/pkgs/development/python-modules/pamqp/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-0vjiPBLd8afnATjmV2sINsBd4j7L544u5DA3jLiLSsY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pamqp.base" diff --git a/pkgs/development/python-modules/panacotta/default.nix b/pkgs/development/python-modules/panacotta/default.nix index a70add0e9b80..d9f198ea9ba8 100644 --- a/pkgs/development/python-modules/panacotta/default.nix +++ b/pkgs/development/python-modules/panacotta/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "panacotta" - ]; + pythonImportsCheck = [ "panacotta" ]; meta = with lib; { description = "Python API for controlling Panasonic Blu-Ray players"; diff --git a/pkgs/development/python-modules/panasonic-viera/default.nix b/pkgs/development/python-modules/panasonic-viera/default.nix index 78d726b92a8b..aff9ad947807 100644 --- a/pkgs/development/python-modules/panasonic-viera/default.nix +++ b/pkgs/development/python-modules/panasonic-viera/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, pycryptodome -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + pycryptodome, + xmltodict, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pandas-datareader/default.nix b/pkgs/development/python-modules/pandas-datareader/default.nix index de9f285a4a5f..0520c04d2391 100644 --- a/pkgs/development/python-modules/pandas-datareader/default.nix +++ b/pkgs/development/python-modules/pandas-datareader/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, pythonAtLeast -, fetchPypi -, setuptools -, pandas -, lxml -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + pythonAtLeast, + fetchPypi, + setuptools, + pandas, + lxml, + requests, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { sha256 = "9fc3c63d39bc0c10c2683f1c6d503ff625020383e38f6cbe14134826b454d5a6"; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pandas @@ -38,7 +37,7 @@ buildPythonPackage rec { meta = with lib; { description = "Up to date remote data access for pandas, works for multiple versions of pandas"; homepage = "https://github.com/pydata/pandas-datareader"; - license= licenses.bsd3; + license = licenses.bsd3; maintainers = with maintainers; [ evax ]; platforms = platforms.unix; }; diff --git a/pkgs/development/python-modules/pandas-stubs/default.nix b/pkgs/development/python-modules/pandas-stubs/default.nix index c0a753f5c02a..322c3a39744a 100644 --- a/pkgs/development/python-modules/pandas-stubs/default.nix +++ b/pkgs/development/python-modules/pandas-stubs/default.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, html5lib -, jinja2 -, lxml -, matplotlib -, odfpy -, openpyxl -, pandas -, poetry-core -, pyarrow -, pyreadstat -, pytestCheckHook -, pythonOlder -, scipy -, sqlalchemy -, tables -, tabulate -, types-pytz -, typing-extensions -, xarray -, xlsxwriter +{ + lib, + stdenv, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + html5lib, + jinja2, + lxml, + matplotlib, + odfpy, + openpyxl, + pandas, + poetry-core, + pyarrow, + pyreadstat, + pytestCheckHook, + pythonOlder, + scipy, + sqlalchemy, + tables, + tabulate, + types-pytz, + typing-extensions, + xarray, + xlsxwriter, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { hash = "sha256-416vyaHcSfTfkSNKZ05edozfsMmNKcpOZAoPenCLFzQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pandas @@ -68,20 +67,20 @@ buildPythonPackage rec { xlsxwriter ]; - disabledTests = [ - # AttributeErrors, missing dependencies, error and warning checks - "test_types_groupby" - "test_frame_groupby_resample" - "test_orc" - "test_all_read_without_lxml_dtype_backend" - "test_show_version" - ] ++ lib.optionals stdenv.isDarwin [ - "test_plotting" # Fatal Python error: Illegal instruction - ]; + disabledTests = + [ + # AttributeErrors, missing dependencies, error and warning checks + "test_types_groupby" + "test_frame_groupby_resample" + "test_orc" + "test_all_read_without_lxml_dtype_backend" + "test_show_version" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_plotting" # Fatal Python error: Illegal instruction + ]; - pythonImportsCheck = [ - "pandas" - ]; + pythonImportsCheck = [ "pandas" ]; meta = with lib; { description = "Type annotations for Pandas"; diff --git a/pkgs/development/python-modules/pandas/default.nix b/pkgs/development/python-modules/pandas/default.nix index a5bb890a398d..93ac3fe7771c 100644 --- a/pkgs/development/python-modules/pandas/default.nix +++ b/pkgs/development/python-modules/pandas/default.nix @@ -1,272 +1,266 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, -# build-system -, cython -, meson-python -, meson -, oldest-supported-numpy -, pkg-config -, versioneer -, wheel + # build-system + cython, + meson-python, + meson, + oldest-supported-numpy, + pkg-config, + versioneer, + wheel, -# propagates -, numpy -, python-dateutil -, pytz -, tzdata + # propagates + numpy, + python-dateutil, + pytz, + tzdata, -# optionals -, beautifulsoup4 -, bottleneck -, blosc2 -, fsspec -, gcsfs -, html5lib -, jinja2 -, lxml -, matplotlib -, numba -, numexpr -, odfpy -, openpyxl -, psycopg2 -, pyarrow -, pymysql -, pyqt5 -, pyreadstat -, qtpy -, s3fs -, scipy -, sqlalchemy -, tables -, tabulate -, xarray -, xlrd -, xlsxwriter -, zstandard + # optionals + beautifulsoup4, + bottleneck, + blosc2, + fsspec, + gcsfs, + html5lib, + jinja2, + lxml, + matplotlib, + numba, + numexpr, + odfpy, + openpyxl, + psycopg2, + pyarrow, + pymysql, + pyqt5, + pyreadstat, + qtpy, + s3fs, + scipy, + sqlalchemy, + tables, + tabulate, + xarray, + xlrd, + xlsxwriter, + zstandard, -# tests -, adv_cmds -, glibc -, glibcLocales -, hypothesis -, pytestCheckHook -, pytest-xdist -, pytest-asyncio -, python -, runtimeShell + # tests + adv_cmds, + glibc, + glibcLocales, + hypothesis, + pytestCheckHook, + pytest-xdist, + pytest-asyncio, + python, + runtimeShell, }: -let pandas = buildPythonPackage rec { - pname = "pandas"; - version = "2.2.1"; - pyproject = true; +let + pandas = buildPythonPackage rec { + pname = "pandas"; + version = "2.2.1"; + pyproject = true; - disabled = pythonOlder "3.9"; + disabled = pythonOlder "3.9"; - src = fetchFromGitHub { - owner = "pandas-dev"; - repo = "pandas"; - rev = "refs/tags/v${version}"; - hash = "sha256-eyVUIYG0KCAEJbh/qZiEjGpdXq7A+2Lab+5bp+7t4cw="; - }; + src = fetchFromGitHub { + owner = "pandas-dev"; + repo = "pandas"; + rev = "refs/tags/v${version}"; + hash = "sha256-eyVUIYG0KCAEJbh/qZiEjGpdXq7A+2Lab+5bp+7t4cw="; + }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "Cython==3.0.5" "Cython>=3.0.5" \ - --replace-fail "meson-python==0.13.1" "meson-python>=0.13.1" \ - --replace-fail "meson==1.2.1" "meson>=1.2.1" - ''; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "Cython==3.0.5" "Cython>=3.0.5" \ + --replace-fail "meson-python==0.13.1" "meson-python>=0.13.1" \ + --replace-fail "meson==1.2.1" "meson>=1.2.1" + ''; - nativeBuildInputs = [ - cython - meson-python - meson - numpy - pkg-config - versioneer - wheel - ] - ++ versioneer.optional-dependencies.toml - ++ lib.optionals (pythonOlder "3.12") [ - oldest-supported-numpy - ]; + nativeBuildInputs = + [ + cython + meson-python + meson + numpy + pkg-config + versioneer + wheel + ] + ++ versioneer.optional-dependencies.toml + ++ lib.optionals (pythonOlder "3.12") [ oldest-supported-numpy ]; - enableParallelBuilding = true; + enableParallelBuilding = true; - propagatedBuildInputs = [ - numpy - python-dateutil - pytz - tzdata - ]; + propagatedBuildInputs = [ + numpy + python-dateutil + pytz + tzdata + ]; - passthru.optional-dependencies = let - extras = { - aws = [ - s3fs + passthru.optional-dependencies = + let + extras = { + aws = [ s3fs ]; + clipboard = [ + pyqt5 + qtpy + ]; + compression = [ zstandard ]; + computation = [ + scipy + xarray + ]; + excel = [ + odfpy + openpyxl + # TODO: pyxlsb + xlrd + xlsxwriter + ]; + feather = [ pyarrow ]; + fss = [ fsspec ]; + gcp = [ + gcsfs + # TODO: pandas-gqb + ]; + hdf5 = [ + blosc2 + tables + ]; + html = [ + beautifulsoup4 + html5lib + lxml + ]; + mysql = [ + sqlalchemy + pymysql + ]; + output_formatting = [ + jinja2 + tabulate + ]; + parquet = [ pyarrow ]; + performance = [ + bottleneck + numba + numexpr + ]; + plot = [ matplotlib ]; + postgresql = [ + sqlalchemy + psycopg2 + ]; + spss = [ pyreadstat ]; + sql-other = [ sqlalchemy ]; + xml = [ lxml ]; + }; + in + extras // { all = lib.concatLists (lib.attrValues extras); }; + + doCheck = false; # various infinite recursions + + passthru.tests.pytest = pandas.overridePythonAttrs (_: { + doCheck = true; + }); + + nativeCheckInputs = + [ + glibcLocales + hypothesis + pytest-asyncio + pytest-xdist + pytestCheckHook + ] + ++ lib.flatten (lib.attrValues passthru.optional-dependencies) + ++ lib.optionals (stdenv.isLinux) [ + # for locale executable + glibc + ] + ++ lib.optionals (stdenv.isDarwin) [ + # for locale executable + adv_cmds ]; - clipboard = [ - pyqt5 - qtpy + + # don't max out build cores, it breaks tests + dontUsePytestXdist = true; + + __darwinAllowLocalNetworking = true; + + pytestFlagsArray = [ + # https://github.com/pandas-dev/pandas/blob/main/test_fast.sh + "-m" + "'not single_cpu and not slow and not network and not db and not slow_arm'" + # https://github.com/pandas-dev/pandas/issues/54907 + "--no-strict-data-files" + "--numprocesses" + "4" + ]; + + disabledTests = + [ + # AssertionError: Did not see expected warning of class 'FutureWarning' + "test_parsing_tzlocal_deprecated" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # tests/generic/test_finalize.py::test_binops[and_-args4-right] - AssertionError: assert {} == {'a': 1} + "test_binops" + # These tests are unreliable on aarch64-darwin. See https://github.com/pandas-dev/pandas/issues/38921. + "test_rolling" + ] + ++ lib.optional stdenv.is32bit [ + # https://github.com/pandas-dev/pandas/issues/37398 + "test_rolling_var_numerical_issues" ]; - compression = [ - zstandard - ]; - computation = [ - scipy - xarray - ]; - excel = [ - odfpy - openpyxl - # TODO: pyxlsb - xlrd - xlsxwriter - ]; - feather = [ - pyarrow - ]; - fss = [ - fsspec - ]; - gcp = [ - gcsfs - # TODO: pandas-gqb - ]; - hdf5 = [ - blosc2 - tables - ]; - html = [ - beautifulsoup4 - html5lib - lxml - ]; - mysql = [ - sqlalchemy - pymysql - ]; - output_formatting = [ - jinja2 - tabulate - ]; - parquet = [ - pyarrow - ]; - performance = [ - bottleneck - numba - numexpr - ]; - plot = [ - matplotlib - ]; - postgresql = [ - sqlalchemy - psycopg2 - ]; - spss = [ - pyreadstat - ]; - sql-other = [ - sqlalchemy - ]; - xml = [ - lxml + + # Tests have relative paths, and need to reference compiled C extensions + # so change directory where `import .test` is able to be resolved + preCheck = + '' + export HOME=$TMPDIR + export LC_ALL="en_US.UTF-8" + cd $out/${python.sitePackages}/pandas + '' + # TODO: Get locale and clipboard support working on darwin. + # Until then we disable the tests. + + lib.optionalString stdenv.isDarwin '' + # Fake the impure dependencies pbpaste and pbcopy + echo "#!${runtimeShell}" > pbcopy + echo "#!${runtimeShell}" > pbpaste + chmod a+x pbcopy pbpaste + export PATH=$(pwd):$PATH + ''; + + pythonImportsCheck = [ "pandas" ]; + + meta = with lib; { + # pandas devs no longer test i686, it's commonly broken + # broken = stdenv.isi686; + changelog = "https://pandas.pydata.org/docs/whatsnew/index.html"; + description = "Powerful data structures for data analysis, time series, and statistics"; + downloadPage = "https://github.com/pandas-dev/pandas"; + homepage = "https://pandas.pydata.org"; + license = licenses.bsd3; + longDescription = '' + Flexible and powerful data analysis / manipulation library for + Python, providing labeled data structures similar to R data.frame + objects, statistical functions, and much more. + ''; + maintainers = with maintainers; [ + raskin + knedlsepp ]; }; - in extras // { - all = lib.concatLists (lib.attrValues extras); }; - - doCheck = false; # various infinite recursions - - passthru.tests.pytest = pandas.overridePythonAttrs (_: { doCheck = true; }); - - nativeCheckInputs = [ - glibcLocales - hypothesis - pytest-asyncio - pytest-xdist - pytestCheckHook - ] - ++ lib.flatten (lib.attrValues passthru.optional-dependencies) - ++ lib.optionals (stdenv.isLinux) [ - # for locale executable - glibc - ] - ++ lib.optionals (stdenv.isDarwin) [ - # for locale executable - adv_cmds - ]; - - # don't max out build cores, it breaks tests - dontUsePytestXdist = true; - - __darwinAllowLocalNetworking = true; - - pytestFlagsArray = [ - # https://github.com/pandas-dev/pandas/blob/main/test_fast.sh - "-m" "'not single_cpu and not slow and not network and not db and not slow_arm'" - # https://github.com/pandas-dev/pandas/issues/54907 - "--no-strict-data-files" - "--numprocesses" "4" - ]; - - disabledTests = [ - # AssertionError: Did not see expected warning of class 'FutureWarning' - "test_parsing_tzlocal_deprecated" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # tests/generic/test_finalize.py::test_binops[and_-args4-right] - AssertionError: assert {} == {'a': 1} - "test_binops" - # These tests are unreliable on aarch64-darwin. See https://github.com/pandas-dev/pandas/issues/38921. - "test_rolling" - ] ++ lib.optional stdenv.is32bit [ - # https://github.com/pandas-dev/pandas/issues/37398 - "test_rolling_var_numerical_issues" - ]; - - # Tests have relative paths, and need to reference compiled C extensions - # so change directory where `import .test` is able to be resolved - preCheck = '' - export HOME=$TMPDIR - export LC_ALL="en_US.UTF-8" - cd $out/${python.sitePackages}/pandas - '' - # TODO: Get locale and clipboard support working on darwin. - # Until then we disable the tests. - + lib.optionalString stdenv.isDarwin '' - # Fake the impure dependencies pbpaste and pbcopy - echo "#!${runtimeShell}" > pbcopy - echo "#!${runtimeShell}" > pbpaste - chmod a+x pbcopy pbpaste - export PATH=$(pwd):$PATH - ''; - - pythonImportsCheck = [ - "pandas" - ]; - - meta = with lib; { - # pandas devs no longer test i686, it's commonly broken - # broken = stdenv.isi686; - changelog = "https://pandas.pydata.org/docs/whatsnew/index.html"; - description = "Powerful data structures for data analysis, time series, and statistics"; - downloadPage = "https://github.com/pandas-dev/pandas"; - homepage = "https://pandas.pydata.org"; - license = licenses.bsd3; - longDescription = '' - Flexible and powerful data analysis / manipulation library for - Python, providing labeled data structures similar to R data.frame - objects, statistical functions, and much more. - ''; - maintainers = with maintainers; [ raskin knedlsepp ]; - }; -}; -in pandas +in +pandas diff --git a/pkgs/development/python-modules/pandoc-attributes/default.nix b/pkgs/development/python-modules/pandoc-attributes/default.nix index 8c97744e9a11..128a3c905d49 100644 --- a/pkgs/development/python-modules/pandoc-attributes/default.nix +++ b/pkgs/development/python-modules/pandoc-attributes/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pandocfilters +{ + buildPythonPackage, + fetchPypi, + lib, + pandocfilters, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "69221502dac74f5df1317011ce62c85a83eef5da3b71c63b1908e98224304a8c"; }; - propagatedBuildInputs = [ - pandocfilters - ]; + propagatedBuildInputs = [ pandocfilters ]; # No tests in pypi source doCheck = false; diff --git a/pkgs/development/python-modules/pandoc-xnos/default.nix b/pkgs/development/python-modules/pandoc-xnos/default.nix index 8d5a4694b1ac..c41e2811ae31 100644 --- a/pkgs/development/python-modules/pandoc-xnos/default.nix +++ b/pkgs/development/python-modules/pandoc-xnos/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pandocfilters -, psutil -, setuptools +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pandocfilters, + psutil, + setuptools, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { hash = "sha256-beiGvN0DS6s8wFjcDKozDuwAM2OApX3lTRaUDRUqLeU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pandocfilters psutil ]; - pythonImportsCheck = [ - "pandocxnos" - ]; + pythonImportsCheck = [ "pandocxnos" ]; # tests need some patching doCheck = false; diff --git a/pkgs/development/python-modules/pandocfilters/default.nix b/pkgs/development/python-modules/pandocfilters/default.nix index b9310fdbae84..cbb3e702ff9f 100644 --- a/pkgs/development/python-modules/pandocfilters/default.nix +++ b/pkgs/development/python-modules/pandocfilters/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "https://github.com/jgm/pandocfilters"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/panel/default.nix b/pkgs/development/python-modules/panel/default.nix index d8e0e071df4d..30c6c52c6780 100644 --- a/pkgs/development/python-modules/panel/default.nix +++ b/pkgs/development/python-modules/panel/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, bleach -, bokeh -, param -, pyviz-comms -, markdown -, pyct -, requests -, setuptools -, tqdm -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + bleach, + bokeh, + param, + pyviz-comms, + markdown, + pyct, + requests, + setuptools, + tqdm, + typing-extensions, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { python = "py3"; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "bokeh" - ]; + pythonRelaxDeps = [ "bokeh" ]; propagatedBuildInputs = [ bleach @@ -51,9 +48,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "panel" - ]; + pythonImportsCheck = [ "panel" ]; # infinite recursion in test dependencies (hvplot) doCheck = false; diff --git a/pkgs/development/python-modules/panflute/default.nix b/pkgs/development/python-modules/panflute/default.nix index 0d145759842e..d33e3b6cd0a4 100644 --- a/pkgs/development/python-modules/panflute/default.nix +++ b/pkgs/development/python-modules/panflute/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, click -, pyyaml -, buildPythonPackage -, pythonOlder +{ + lib, + fetchPypi, + click, + pyyaml, + buildPythonPackage, + pythonOlder, }: -buildPythonPackage rec{ +buildPythonPackage rec { pname = "panflute"; version = "2.3.1"; format = "setuptools"; @@ -23,9 +24,7 @@ buildPythonPackage rec{ pyyaml ]; - pythonImportsCheck = [ - "panflute" - ]; + pythonImportsCheck = [ "panflute" ]; meta = with lib; { description = "Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions"; diff --git a/pkgs/development/python-modules/panphon/default.nix b/pkgs/development/python-modules/panphon/default.nix index 6ae629134505..22bd61f6f9bc 100644 --- a/pkgs/development/python-modules/panphon/default.nix +++ b/pkgs/development/python-modules/panphon/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, unittestCheckHook + unittestCheckHook, -, setuptools + setuptools, -, unicodecsv -, pyyaml -, regex -, numpy -, editdistance -, munkres -, levenshtein + unicodecsv, + pyyaml, + regex, + numpy, + editdistance, + munkres, + levenshtein, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-gio52n1NZWeyCK+eJW/Fp827wjvwnMNDFAR4pKa8VcY="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ setuptools # need for pkg_resources @@ -40,11 +39,12 @@ buildPythonPackage rec { levenshtein # need for align_wordlists.py script ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "test" ]; + unittestFlagsArray = [ + "-s" + "test" + ]; pythonImportsCheck = [ "panphon" diff --git a/pkgs/development/python-modules/papermill/default.nix b/pkgs/development/python-modules/papermill/default.nix index 743812b84b62..280f541b32f4 100644 --- a/pkgs/development/python-modules/papermill/default.nix +++ b/pkgs/development/python-modules/papermill/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, aiohttp -, ansicolors -, azure-datalake-store -, azure-identity -, azure-storage-blob -, boto3 -, buildPythonPackage -, click -, entrypoints -, fetchFromGitHub -, gcsfs -, ipykernel -, moto -, nbclient -, nbformat -, pyarrow -, pygithub -, pytest-mock -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, pyyaml -, requests -, setuptools -, tenacity -, tqdm +{ + lib, + stdenv, + aiohttp, + ansicolors, + azure-datalake-store, + azure-identity, + azure-storage-blob, + boto3, + buildPythonPackage, + click, + entrypoints, + fetchFromGitHub, + gcsfs, + ipykernel, + moto, + nbclient, + nbformat, + pyarrow, + pygithub, + pytest-mock, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + pyyaml, + requests, + setuptools, + tenacity, + tqdm, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { hash = "sha256-NxC5+hRDdMCl/7ZIho5ml4hdENrgO+wzi87GRPeMv8Q="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ click @@ -56,9 +55,7 @@ buildPythonPackage rec { entrypoints tenacity ansicolors - ] ++ lib.optionals (pythonAtLeast "3.12") [ - aiohttp - ]; + ] ++ lib.optionals (pythonAtLeast "3.12") [ aiohttp ]; passthru.optional-dependencies = { azure = [ @@ -66,26 +63,20 @@ buildPythonPackage rec { azure-identity azure-storage-blob ]; - gcs = [ - gcsfs - ]; - github = [ - pygithub - ]; - hdfs = [ - pyarrow - ]; - s3 = [ - boto3 - ]; + gcs = [ gcsfs ]; + github = [ pygithub ]; + hdfs = [ pyarrow ]; + s3 = [ boto3 ]; }; - nativeCheckInputs = [ - ipykernel - moto - pytest-mock - pytestCheckHook - ] ++ passthru.optional-dependencies.azure + nativeCheckInputs = + [ + ipykernel + moto + pytest-mock + pytestCheckHook + ] + ++ passthru.optional-dependencies.azure ++ passthru.optional-dependencies.s3 ++ passthru.optional-dependencies.gcs; @@ -93,17 +84,17 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "papermill" - ]; + pythonImportsCheck = [ "papermill" ]; - disabledTests = [ - # pytest 8 compat - "test_read_with_valid_file_extension" - ] ++ lib.optionals stdenv.isDarwin [ - # might fail due to the sandbox - "test_end2end_autosave_slow_notebook" - ]; + disabledTests = + [ + # pytest 8 compat + "test_read_with_valid_file_extension" + ] + ++ lib.optionals stdenv.isDarwin [ + # might fail due to the sandbox + "test_end2end_autosave_slow_notebook" + ]; disabledTestPaths = [ # ImportError: cannot import name 'mock_s3' from 'moto' diff --git a/pkgs/development/python-modules/papis-python-rofi/default.nix b/pkgs/development/python-modules/papis-python-rofi/default.nix index 53bf62c5db15..6ec1122950a3 100644 --- a/pkgs/development/python-modules/papis-python-rofi/default.nix +++ b/pkgs/development/python-modules/papis-python-rofi/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, lib, fetchPypi }: +{ + buildPythonPackage, + lib, + fetchPypi, +}: buildPythonPackage rec { pname = "papis-python-rofi"; diff --git a/pkgs/development/python-modules/papis/default.nix b/pkgs/development/python-modules/papis/default.nix index fe56f71ed4eb..8f9dfbe49291 100644 --- a/pkgs/development/python-modules/papis/default.nix +++ b/pkgs/development/python-modules/papis/default.nix @@ -1,33 +1,34 @@ -{ lib -, stdenv -, arxiv2bib -, beautifulsoup4 -, bibtexparser -, buildPythonPackage -, chardet -, click -, colorama -, configparser -, dominate -, fetchFromGitHub -, filetype -, habanero -, isbnlib -, lxml -, prompt-toolkit -, pygments -, pyparsing -, pytestCheckHook -, python-doi -, python-slugify -, pythonAtLeast -, pythonOlder -, pyyaml -, requests -, stevedore -, tqdm -, typing-extensions -, whoosh +{ + lib, + stdenv, + arxiv2bib, + beautifulsoup4, + bibtexparser, + buildPythonPackage, + chardet, + click, + colorama, + configparser, + dominate, + fetchFromGitHub, + filetype, + habanero, + isbnlib, + lxml, + prompt-toolkit, + pygments, + pyparsing, + pytestCheckHook, + python-doi, + python-slugify, + pythonAtLeast, + pythonOlder, + pyyaml, + requests, + stevedore, + tqdm, + typing-extensions, + whoosh, }: buildPythonPackage rec { @@ -75,17 +76,13 @@ buildPythonPackage rec { --replace "--cov=papis" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d); ''; - pytestFlagsArray = [ - "papis tests" - ]; + pytestFlagsArray = [ "papis tests" ]; disabledTestPaths = [ "tests/downloaders" @@ -104,13 +101,9 @@ buildPythonPackage rec { "test_valid_dblp_key" "test_validate_arxivid" "test_yaml" - ] ++ lib.optionals stdenv.isDarwin [ - "test_default_opener" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_default_opener" ]; - pythonImportsCheck = [ - "papis" - ]; + pythonImportsCheck = [ "papis" ]; meta = with lib; { description = "Powerful command-line document and bibliography manager"; @@ -118,6 +111,9 @@ buildPythonPackage rec { homepage = "https://papis.readthedocs.io/"; changelog = "https://github.com/papis/papis/blob/v${version}/CHANGELOG.md"; license = licenses.gpl3Only; - maintainers = with maintainers; [ nico202 teto ]; + maintainers = with maintainers; [ + nico202 + teto + ]; }; } diff --git a/pkgs/development/python-modules/para/default.nix b/pkgs/development/python-modules/para/default.nix index 765672d7a362..114c5bedcfe9 100644 --- a/pkgs/development/python-modules/para/default.nix +++ b/pkgs/development/python-modules/para/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/param/default.nix b/pkgs/development/python-modules/param/default.nix index b80f6199ad56..40d813731278 100644 --- a/pkgs/development/python-modules/param/default.nix +++ b/pkgs/development/python-modules/param/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, hatchling -, hatch-vcs + # build-system + hatchling, + hatch-vcs, -# tests -, numpy -, pandas -, pytest-asyncio -, pytestCheckHook + # tests + numpy, + pandas, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,12 +42,11 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; - pythonImportsCheck = [ - "param" - ]; + pythonImportsCheck = [ "param" ]; meta = with lib; { description = "Declarative Python programming using Parameters"; diff --git a/pkgs/development/python-modules/parameter-expansion-patched/default.nix b/pkgs/development/python-modules/parameter-expansion-patched/default.nix index 8e73457557f7..0ef429721408 100644 --- a/pkgs/development/python-modules/parameter-expansion-patched/default.nix +++ b/pkgs/development/python-modules/parameter-expansion-patched/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-/128ifveWC8zNlYtGWtxB3HpK6p7bVk1ahSwhaC2dAs="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "parameter_expansion" - ]; + pythonImportsCheck = [ "parameter_expansion" ]; meta = with lib; { description = "POSIX parameter expansion in Python"; diff --git a/pkgs/development/python-modules/parameterized/default.nix b/pkgs/development/python-modules/parameterized/default.nix index 9f8fa4ad1e9f..04bcad91f36f 100644 --- a/pkgs/development/python-modules/parameterized/default.nix +++ b/pkgs/development/python-modules/parameterized/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,22 +29,16 @@ buildPythonPackage rec { --replace "assertRaisesRegexp" "assertRaisesRegex" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; checkInputs = [ mock pytestCheckHook ]; - pytestFlagsArray = [ - "parameterized/test.py" - ]; + pytestFlagsArray = [ "parameterized/test.py" ]; - pythonImportsCheck = [ - "parameterized" - ]; + pythonImportsCheck = [ "parameterized" ]; meta = with lib; { description = "Parameterized testing with any Python test framework"; diff --git a/pkgs/development/python-modules/parametrize-from-file/default.nix b/pkgs/development/python-modules/parametrize-from-file/default.nix index 2bfd6411631a..1f116f46e7e6 100644 --- a/pkgs/development/python-modules/parametrize-from-file/default.nix +++ b/pkgs/development/python-modules/parametrize-from-file/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook -, numpy -, decopatch -, more-itertools -, nestedtext -, pyyaml -, tidyexc -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, + numpy, + decopatch, + more-itertools, + nestedtext, + pyyaml, + tidyexc, + toml, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace "more_itertools~=8.10" "more_itertools" ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ numpy @@ -49,9 +48,7 @@ buildPythonPackage rec { toml ]; - pythonImportsCheck = [ - "parametrize_from_file" - ]; + pythonImportsCheck = [ "parametrize_from_file" ]; disabledTests = [ # https://github.com/kalekundert/parametrize_from_file/issues/19 diff --git a/pkgs/development/python-modules/paramiko/default.nix b/pkgs/development/python-modules/paramiko/default.nix index 36bc0c793f7a..e5909fca7b3c 100644 --- a/pkgs/development/python-modules/paramiko/default.nix +++ b/pkgs/development/python-modules/paramiko/default.nix @@ -1,17 +1,18 @@ -{ lib -, bcrypt -, buildPythonPackage -, cryptography -, fetchpatch -, fetchPypi -, gssapi -, icecream -, invoke -, mock -, pyasn1 -, pynacl -, pytestCheckHook -, six +{ + lib, + bcrypt, + buildPythonPackage, + cryptography, + fetchpatch, + fetchPypi, + gssapi, + icecream, + invoke, + mock, + pyasn1, + pynacl, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -46,8 +47,14 @@ buildPythonPackage rec { ] ++ passthru.optional-dependencies.ed25519; # remove on 3.0 update passthru.optional-dependencies = { - gssapi = [ pyasn1 gssapi ]; - ed25519 = [ pynacl bcrypt ]; + gssapi = [ + pyasn1 + gssapi + ]; + ed25519 = [ + pynacl + bcrypt + ]; invoke = [ invoke ]; }; @@ -63,9 +70,7 @@ buildPythonPackage rec { "tests/test_ssh_gss.py" ]; - pythonImportsCheck = [ - "paramiko" - ]; + pythonImportsCheck = [ "paramiko" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/paramz/default.nix b/pkgs/development/python-modules/paramz/default.nix index bed92d7a3565..c2c817a58d71 100644 --- a/pkgs/development/python-modules/paramz/default.nix +++ b/pkgs/development/python-modules/paramz/default.nix @@ -1,4 +1,14 @@ -{ lib, buildPythonPackage, fetchpatch, fetchPypi, numpy, scipy, six, decorator, nose }: +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + numpy, + scipy, + six, + decorator, + nose, +}: buildPythonPackage rec { pname = "paramz"; @@ -23,13 +33,18 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ numpy scipy six decorator ]; + propagatedBuildInputs = [ + numpy + scipy + six + decorator + ]; nativeCheckInputs = [ nose ]; pythonImportsCheck = [ "paramz" ]; checkPhase = '' - nosetests -v paramz/tests + nosetests -v paramz/tests ''; meta = with lib; { diff --git a/pkgs/development/python-modules/paranoid-crypto/default.nix b/pkgs/development/python-modules/paranoid-crypto/default.nix index f4ee6d2fe0b7..206fd2acf1c3 100644 --- a/pkgs/development/python-modules/paranoid-crypto/default.nix +++ b/pkgs/development/python-modules/paranoid-crypto/default.nix @@ -1,16 +1,17 @@ -{ lib -, absl-py -, buildPythonPackage -, cryptography -, fetchFromGitHub -, fpylll -, gmpy -, protobuf -, pybind11 -, pytestCheckHook -, pythonOlder -, scipy -, sympy +{ + lib, + absl-py, + buildPythonPackage, + cryptography, + fetchFromGitHub, + fpylll, + gmpy, + protobuf, + pybind11, + pytestCheckHook, + pythonOlder, + scipy, + sympy, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { "paranoid_crypto/lib/randomness_tests/" ]; - pythonImportsCheck = [ - "paranoid_crypto" - ]; + pythonImportsCheck = [ "paranoid_crypto" ]; meta = with lib; { description = "Library contains checks for well known weaknesses on cryptographic artifacts"; diff --git a/pkgs/development/python-modules/parfive/default.nix b/pkgs/development/python-modules/parfive/default.nix index 22f0c1c39eca..8e788bc850b9 100644 --- a/pkgs/development/python-modules/parfive/default.nix +++ b/pkgs/development/python-modules/parfive/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiofiles -, aioftp -, aiohttp -, buildPythonPackage -, fetchPypi -, pytest-asyncio -, pytest-localserver -, pytest-socket -, pytestCheckHook -, pythonOlder -, setuptools-scm -, tqdm +{ + lib, + aiofiles, + aioftp, + aiohttp, + buildPythonPackage, + fetchPypi, + pytest-asyncio, + pytest-localserver, + pytest-socket, + pytestCheckHook, + pythonOlder, + setuptools-scm, + tqdm, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-zWy0GSQhMHMM9B1M9vKE6/UPGnHObJUI4EZ+yY8X3I4="; }; - buildInputs = [ - setuptools-scm - ]; + buildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aioftp @@ -50,9 +49,7 @@ buildPythonPackage rec { "test_ftp_http" ]; - pythonImportsCheck = [ - "parfive" - ]; + pythonImportsCheck = [ "parfive" ]; meta = with lib; { description = "A HTTP and FTP parallel file downloader"; diff --git a/pkgs/development/python-modules/parse-type/default.nix b/pkgs/development/python-modules/parse-type/default.nix index 45af3a0e7fb2..69f562f512ff 100644 --- a/pkgs/development/python-modules/parse-type/default.nix +++ b/pkgs/development/python-modules/parse-type/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, parse -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + parse, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pytest.ini \ diff --git a/pkgs/development/python-modules/parse/default.nix b/pkgs/development/python-modules/parse/default.nix index b1aa2baedfac..6ab9af132478 100644 --- a/pkgs/development/python-modules/parse/default.nix +++ b/pkgs/development/python-modules/parse/default.nix @@ -1,7 +1,9 @@ -{ lib, fetchFromGitHub -, buildPythonPackage -, setuptools -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { pname = "parse"; @@ -19,13 +21,9 @@ buildPythonPackage rec { rm .pytest.ini ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/r1chardj0n3s/parse"; diff --git a/pkgs/development/python-modules/parsedatetime/default.nix b/pkgs/development/python-modules/parsedatetime/default.nix index ccb5bbcfda18..f07e2a1e043f 100644 --- a/pkgs/development/python-modules/parsedatetime/default.nix +++ b/pkgs/development/python-modules/parsedatetime/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, future -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + future, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/parsedmarc/default.nix b/pkgs/development/python-modules/parsedmarc/default.nix index 3a2dbe638dbb..6b3044636fee 100644 --- a/pkgs/development/python-modules/parsedmarc/default.nix +++ b/pkgs/development/python-modules/parsedmarc/default.nix @@ -1,36 +1,37 @@ -{ lib -, azure-identity -, azure-monitor-ingestion -, boto3 -, buildPythonPackage -, dateparser -, dnspython -, elastic-transport -, elasticsearch -, elasticsearch-dsl -, expiringdict -, fetchPypi -, fetchurl -, geoip2 -, google-api-core -, google-api-python-client -, google-auth -, google-auth-httplib2 -, google-auth-oauthlib -, hatchling -, imapclient -, kafka-python -, lxml -, mailsuite -, msgraph-core -, nixosTests -, opensearch-py -, publicsuffixlist -, pythonOlder -, pythonRelaxDepsHook -, requests -, tqdm -, xmltodict +{ + lib, + azure-identity, + azure-monitor-ingestion, + boto3, + buildPythonPackage, + dateparser, + dnspython, + elastic-transport, + elasticsearch, + elasticsearch-dsl, + expiringdict, + fetchPypi, + fetchurl, + geoip2, + google-api-core, + google-api-python-client, + google-auth, + google-auth-httplib2, + google-auth-oauthlib, + hatchling, + imapclient, + kafka-python, + lxml, + mailsuite, + msgraph-core, + nixosTests, + opensearch-py, + publicsuffixlist, + pythonOlder, + pythonRelaxDepsHook, + requests, + tqdm, + xmltodict, }: let @@ -93,9 +94,7 @@ buildPythonPackage rec { # https://github.com/domainaware/parsedmarc/issues/426 doCheck = false; - pythonImportsCheck = [ - "parsedmarc" - ]; + pythonImportsCheck = [ "parsedmarc" ]; passthru = { inherit dashboard; @@ -105,7 +104,9 @@ buildPythonPackage rec { meta = with lib; { description = "Python module and CLI utility for parsing DMARC reports"; homepage = "https://domainaware.github.io/parsedmarc/"; - changelog = "https://github.com/domainaware/parsedmarc/blob/master/CHANGELOG.md#${lib.replaceStrings [ "." ] [ "" ] version}"; + changelog = "https://github.com/domainaware/parsedmarc/blob/master/CHANGELOG.md#${ + lib.replaceStrings [ "." ] [ "" ] version + }"; license = licenses.asl20; maintainers = with maintainers; [ talyz ]; mainProgram = "parsedmarc"; diff --git a/pkgs/development/python-modules/parsel/default.nix b/pkgs/development/python-modules/parsel/default.nix index 639f973e7754..457456c678bf 100644 --- a/pkgs/development/python-modules/parsel/default.nix +++ b/pkgs/development/python-modules/parsel/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cssselect -, fetchPypi -, jmespath -, lxml -, packaging -, psutil -, pytestCheckHook -, pythonOlder -, w3lib +{ + lib, + buildPythonPackage, + cssselect, + fetchPypi, + jmespath, + lxml, + packaging, + psutil, + pytestCheckHook, + pythonOlder, + w3lib, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "parsel" - ]; + pythonImportsCheck = [ "parsel" ]; meta = with lib; { description = "Python library to extract data from HTML and XML using XPath and CSS selectors"; diff --git a/pkgs/development/python-modules/parsimonious/default.nix b/pkgs/development/python-modules/parsimonious/default.nix index b156321cefec..1c25d44e39c6 100644 --- a/pkgs/development/python-modules/parsimonious/default.nix +++ b/pkgs/development/python-modules/parsimonious/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, regex -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + regex, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-goFgDaGA7IrjVCekq097gr/sHj0eUvgMtg6oK5USUBw="; }; - propagatedBuildInputs = [ - regex - ]; + propagatedBuildInputs = [ regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # test_benchmarks.py tests are actually benchmarks and may fail due to diff --git a/pkgs/development/python-modules/parsley/default.nix b/pkgs/development/python-modules/parsley/default.nix index f8972ac33805..2c8077c21555 100644 --- a/pkgs/development/python-modules/parsley/default.nix +++ b/pkgs/development/python-modules/parsley/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/parso/default.nix b/pkgs/development/python-modules/parso/default.nix index 03b052a46dd7..bb0bf239d95a 100644 --- a/pkgs/development/python-modules/parso/default.nix +++ b/pkgs/development/python-modules/parso/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pythonAtLeast -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pythonAtLeast, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/parsy/default.nix b/pkgs/development/python-modules/parsy/default.nix index 07e9bfb2be76..3c60ec41fcec 100644 --- a/pkgs/development/python-modules/parsy/default.nix +++ b/pkgs/development/python-modules/parsy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-/Bu3xZUpXI4WiYJKKWTJTdSFq8pwC1PFDw0Kr8s3Fe8="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "parsy" - ]; + pythonImportsCheck = [ "parsy" ]; meta = with lib; { homepage = "https://github.com/python-parsy/parsy"; diff --git a/pkgs/development/python-modules/partd/default.nix b/pkgs/development/python-modules/partd/default.nix index b5f8afce9d3b..0dd614644d2d 100644 --- a/pkgs/development/python-modules/partd/default.nix +++ b/pkgs/development/python-modules/partd/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, locket -, toolz + # dependencies + locket, + toolz, -# optional-dependencies -, blosc2 -, numpy -, pandas -, pyzmq + # optional-dependencies + blosc2, + numpy, + pandas, + pyzmq, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ locket @@ -61,9 +60,7 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Appendable key-value storage"; diff --git a/pkgs/development/python-modules/particle/default.nix b/pkgs/development/python-modules/particle/default.nix index 1b99947b58ec..519c1f8f5b46 100644 --- a/pkgs/development/python-modules/particle/default.nix +++ b/pkgs/development/python-modules/particle/default.nix @@ -1,17 +1,18 @@ -{ lib -, attrs -, buildPythonPackage -, deprecated -, fetchFromGitHub -, fetchPypi -, hatch-vcs -, hatchling -, hepunits -, pandas -, pytestCheckHook -, pythonOlder -, setuptools-scm -, tabulate +{ + lib, + attrs, + buildPythonPackage, + deprecated, + fetchFromGitHub, + fetchPypi, + hatch-vcs, + hatchling, + hepunits, + pandas, + pytestCheckHook, + pythonOlder, + setuptools-scm, + tabulate, }: buildPythonPackage rec { @@ -50,13 +51,9 @@ buildPythonPackage rec { pandas ]; - pythonImportsCheck = [ - "particle" - ]; + pythonImportsCheck = [ "particle" ]; - disabledTestPaths = [ - "tests/particle/test_performance.py" - ]; + disabledTestPaths = [ "tests/particle/test_performance.py" ]; meta = with lib; { description = "Package to deal with particles, the PDG particle data table and others"; diff --git a/pkgs/development/python-modules/parts/default.nix b/pkgs/development/python-modules/parts/default.nix index 126cabfc8f67..1df8298ba68f 100644 --- a/pkgs/development/python-modules/parts/default.nix +++ b/pkgs/development/python-modules/parts/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "parts" - ]; + pythonImportsCheck = [ "parts" ]; meta = with lib; { description = "Library for common list functions related to partitioning lists"; diff --git a/pkgs/development/python-modules/parver/default.nix b/pkgs/development/python-modules/parver/default.nix index b18d7db34766..546699b2ab0c 100644 --- a/pkgs/development/python-modules/parver/default.nix +++ b/pkgs/development/python-modules/parver/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, attrs -, pytestCheckHook -, hypothesis -, pretend -, arpeggio -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + attrs, + pytestCheckHook, + hypothesis, + pretend, + arpeggio, + typing-extensions, }: buildPythonPackage rec { @@ -21,16 +22,12 @@ buildPythonPackage rec { hash = "sha256-uf3h5ruc6fB+COnEvqjYglxeeOGKAFLQLgK/lRfrR3c="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ attrs arpeggio - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pasimple/default.nix b/pkgs/development/python-modules/pasimple/default.nix index 6dc52b210158..30827419359e 100644 --- a/pkgs/development/python-modules/pasimple/default.nix +++ b/pkgs/development/python-modules/pasimple/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pulseaudio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pulseaudio, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { "_libpulse_simple = ctypes.CDLL('${lib.getLib pulseaudio}/lib/libpulse-simple.so.0')" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "pasimple" diff --git a/pkgs/development/python-modules/passlib/default.nix b/pkgs/development/python-modules/passlib/default.nix index cf264c504353..86ab1201969b 100644 --- a/pkgs/development/python-modules/passlib/default.nix +++ b/pkgs/development/python-modules/passlib/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, argon2-cffi -, bcrypt -, cryptography -, pytestCheckHook -, pythonOlder -, pytest-xdist +{ + lib, + buildPythonPackage, + fetchPypi, + argon2-cffi, + bcrypt, + cryptography, + pytestCheckHook, + pythonOlder, + pytest-xdist, }: buildPythonPackage rec { @@ -27,16 +28,16 @@ buildPythonPackage rec { totp = [ cryptography ]; }; - nativeCheckInputs = [ - pytestCheckHook - pytest-xdist - ] ++ passthru.optional-dependencies.argon2 - ++ passthru.optional-dependencies.bcrypt - ++ passthru.optional-dependencies.totp; + nativeCheckInputs = + [ + pytestCheckHook + pytest-xdist + ] + ++ passthru.optional-dependencies.argon2 + ++ passthru.optional-dependencies.bcrypt + ++ passthru.optional-dependencies.totp; - pythonImportsCheck = [ - "passlib" - ]; + pythonImportsCheck = [ "passlib" ]; disabledTests = [ # timming sensitive diff --git a/pkgs/development/python-modules/paste/default.nix b/pkgs/development/python-modules/paste/default.nix index 8b6b3e9765ba..cbe0e02928a9 100644 --- a/pkgs/development/python-modules/paste/default.nix +++ b/pkgs/development/python-modules/paste/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -31,18 +32,14 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # needs to be modified after Sat, 1 Jan 2005 12:00:00 GMT touch tests/urlparser_data/secured.txt ''; - pythonNamespaces = [ - "paste" - ]; + pythonNamespaces = [ "paste" ]; meta = with lib; { description = "Tools for using a Web Server Gateway Interface stack"; diff --git a/pkgs/development/python-modules/pastedeploy/default.nix b/pkgs/development/python-modules/pastedeploy/default.nix index 749d3574d701..a68134dfdc31 100644 --- a/pkgs/development/python-modules/pastedeploy/default.nix +++ b/pkgs/development/python-modules/pastedeploy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { --replace " --cov" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "paste.deploy" - ]; + pythonImportsCheck = [ "paste.deploy" ]; meta = with lib; { description = "Load, configure, and compose WSGI applications and servers"; diff --git a/pkgs/development/python-modules/pastel/default.nix b/pkgs/development/python-modules/pastel/default.nix index 59fd518eca62..2ed649704fe1 100644 --- a/pkgs/development/python-modules/pastel/default.nix +++ b/pkgs/development/python-modules/pastel/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "pastel"; diff --git a/pkgs/development/python-modules/pastescript/default.nix b/pkgs/development/python-modules/pastescript/default.nix index 3d42c40c1230..2d92ba445a24 100644 --- a/pkgs/development/python-modules/pastescript/default.nix +++ b/pkgs/development/python-modules/pastescript/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, python -, pytestCheckHook -, six -, paste -, pastedeploy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + python, + pytestCheckHook, + six, + paste, + pastedeploy, + pythonOlder, }: buildPythonPackage rec { @@ -37,13 +38,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonNamespaces = [ - "paste" - ]; + pythonNamespaces = [ "paste" ]; - disabledTestPaths = [ - "appsetup/testfiles" - ]; + disabledTestPaths = [ "appsetup/testfiles" ]; pythonImportsCheck = [ "paste.script" diff --git a/pkgs/development/python-modules/patator/default.nix b/pkgs/development/python-modules/patator/default.nix index 016f93b41975..ea0f1ce93b9d 100644 --- a/pkgs/development/python-modules/patator/default.nix +++ b/pkgs/development/python-modules/patator/default.nix @@ -1,21 +1,22 @@ -{ lib -, ajpy -, buildPythonPackage -, cx-oracle -, dnspython -, fetchPypi -, impacket -, ipy -, mysqlclient -, paramiko -, psycopg2 -, pyasn1 -, pycrypto -, pycurl -, pyopenssl -, pysnmp -, pysqlcipher3 -, pythonOlder +{ + lib, + ajpy, + buildPythonPackage, + cx-oracle, + dnspython, + fetchPypi, + impacket, + ipy, + mysqlclient, + paramiko, + psycopg2, + pyasn1, + pycrypto, + pycurl, + pyopenssl, + pysnmp, + pysqlcipher3, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/patch-ng/default.nix b/pkgs/development/python-modules/patch-ng/default.nix index d91ca4be74db..02d84f3607f1 100644 --- a/pkgs/development/python-modules/patch-ng/default.nix +++ b/pkgs/development/python-modules/patch-ng/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ HaoZeke ]; }; - } diff --git a/pkgs/development/python-modules/patch/default.nix b/pkgs/development/python-modules/patch/default.nix index d307399707c1..9a9d5288a5f4 100644 --- a/pkgs/development/python-modules/patch/default.nix +++ b/pkgs/development/python-modules/patch/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchzip +{ + lib, + buildPythonPackage, + fetchzip, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = [ maintainers.igsha ]; }; - } diff --git a/pkgs/development/python-modules/path-and-address/default.nix b/pkgs/development/python-modules/path-and-address/default.nix index 4a72431c7521..09918dec9309 100644 --- a/pkgs/development/python-modules/path-and-address/default.nix +++ b/pkgs/development/python-modules/path-and-address/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, }: buildPythonPackage rec { @@ -26,7 +27,6 @@ buildPythonPackage rec { description = "Functions for server CLI applications used by humans"; homepage = "https://github.com/joeyespo/path-and-address"; license = licenses.mit; - maintainers = with maintainers; [ koral]; + maintainers = with maintainers; [ koral ]; }; - } diff --git a/pkgs/development/python-modules/path/default.nix b/pkgs/development/python-modules/path/default.nix index 3629d8b11db5..9703edabc12f 100644 --- a/pkgs/development/python-modules/path/default.nix +++ b/pkgs/development/python-modules/path/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, more-itertools -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + more-itertools, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { "test_utime" ]; - pythonImportsCheck = [ - "path" - ]; + pythonImportsCheck = [ "path" ]; meta = with lib; { description = "Object-oriented file system path manipulation"; diff --git a/pkgs/development/python-modules/pathable/default.nix b/pkgs/development/python-modules/pathable/default.nix index 789162b1fe52..c0bd7ccb8ced 100644 --- a/pkgs/development/python-modules/pathable/default.nix +++ b/pkgs/development/python-modules/pathable/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -20,21 +21,15 @@ buildPythonPackage rec { hash = "sha256-4QRFjbeaggoEPVGAmSY+qVMNW0DKqarNfRXaH6B58ew="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' sed -i "/--cov/d" pyproject.toml ''; - pythonImportsCheck = [ - "pathable" - ]; + pythonImportsCheck = [ "pathable" ]; meta = with lib; { description = "Library for object-oriented paths"; diff --git a/pkgs/development/python-modules/pathlib-abc/default.nix b/pkgs/development/python-modules/pathlib-abc/default.nix index 891b6d348561..0eb8930822ad 100644 --- a/pkgs/development/python-modules/pathlib-abc/default.nix +++ b/pkgs/development/python-modules/pathlib-abc/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatchling -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatchling, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-CE573ZGbD3d0kUqeZM2GobOYYPgfeB3XJCWGMfKRWr4="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - pythonImportsCheck = [ - "pathlib_abc" - ]; + pythonImportsCheck = [ "pathlib_abc" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python base classes for rich path objects"; diff --git a/pkgs/development/python-modules/pathlib2/default.nix b/pkgs/development/python-modules/pathlib2/default.nix index ab1948005fe8..e3d870e05283 100644 --- a/pkgs/development/python-modules/pathlib2/default.nix +++ b/pkgs/development/python-modules/pathlib2/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pythonOlder -, scandir ? null -, glibcLocales -, typing +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pythonOlder, + scandir ? null, + glibcLocales, + typing, }: buildPythonPackage rec { @@ -18,8 +19,12 @@ buildPythonPackage rec { hash = "sha256-n+DtrYmLg8DD4ZnIQrJ+0hZkXS4Xd1ey3Wc4TUETxkE="; }; - propagatedBuildInputs = [ six ] - ++ lib.optionals (pythonOlder "3.5") [ scandir typing ]; + propagatedBuildInputs = + [ six ] + ++ lib.optionals (pythonOlder "3.5") [ + scandir + typing + ]; nativeCheckInputs = [ glibcLocales ]; preCheck = '' diff --git a/pkgs/development/python-modules/pathos/default.nix b/pkgs/development/python-modules/pathos/default.nix index 690734a4e0f8..75bdc9eaeb64 100644 --- a/pkgs/development/python-modules/pathos/default.nix +++ b/pkgs/development/python-modules/pathos/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, dill -, fetchFromGitHub -, multiprocess -, pox -, ppft -, pythonOlder +{ + lib, + buildPythonPackage, + dill, + fetchFromGitHub, + multiprocess, + pox, + ppft, + pythonOlder, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # Require network doCheck = false; - pythonImportsCheck = [ - "pathos" - ]; + pythonImportsCheck = [ "pathos" ]; meta = with lib; { description = "Parallel graph management and execution in heterogeneous computing"; diff --git a/pkgs/development/python-modules/pathspec/default.nix b/pkgs/development/python-modules/pathspec/default.nix index dc3c854cfe72..4804cfa1c7aa 100644 --- a/pkgs/development/python-modules/pathspec/default.nix +++ b/pkgs/development/python-modules/pathspec/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, + unittestCheckHook, -# for passthru.tests -, awsebcli -, black -, hatchling -, yamllint + # for passthru.tests + awsebcli, + black, + hatchling, + yamllint, }: buildPythonPackage rec { @@ -22,20 +23,19 @@ buildPythonPackage rec { hash = "sha256-pILVFQOhqzOxxnpsOBOiaVPb3HHDHayu+ag4xOKfVxI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - pythonImportsCheck = [ - "pathspec" - ]; + pythonImportsCheck = [ "pathspec" ]; - checkInputs = [ - unittestCheckHook - ]; + checkInputs = [ unittestCheckHook ]; passthru.tests = { - inherit awsebcli black hatchling yamllint; + inherit + awsebcli + black + hatchling + yamllint + ; }; meta = { diff --git a/pkgs/development/python-modules/pathtools/default.nix b/pkgs/development/python-modules/pathtools/default.nix index 453dc9df36ef..a3c42d4738fc 100644 --- a/pkgs/development/python-modules/pathtools/default.nix +++ b/pkgs/development/python-modules/pathtools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/pathvalidate/default.nix b/pkgs/development/python-modules/pathvalidate/default.nix index c3098c24b56d..773f9372edbc 100644 --- a/pkgs/development/python-modules/pathvalidate/default.nix +++ b/pkgs/development/python-modules/pathvalidate/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-XoN4z2cSv/Z/vnqDB9mfqMGgyyiqR3BW+Pw3Tw3/JK0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Requires `pytest-md-report`, causing infinite recursion. doCheck = false; - pythonImportsCheck = [ - "pathvalidate" - ]; + pythonImportsCheck = [ "pathvalidate" ]; meta = with lib; { description = "Library to sanitize/validate a string such as filenames/file-paths/etc"; diff --git a/pkgs/development/python-modules/pathy/default.nix b/pkgs/development/python-modules/pathy/default.nix index 559a3d71ecfc..3f09be6fb48c 100644 --- a/pkgs/development/python-modules/pathy/default.nix +++ b/pkgs/development/python-modules/pathy/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pathlib-abc -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, smart-open -, typer +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pathlib-abc, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + smart-open, + typer, }: buildPythonPackage rec { @@ -23,17 +24,11 @@ buildPythonPackage rec { hash = "sha256-uz0OawuL92709jxxkeluCvLtZcj9tfoXSI+ch55jcG0="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "smart-open" - ]; + pythonRelaxDeps = [ "smart-open" ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pathlib-abc @@ -53,9 +48,7 @@ buildPythonPackage rec { "pathy/_tests/test_s3.py" ]; - pythonImportsCheck = [ - "pathy" - ]; + pythonImportsCheck = [ "pathy" ]; meta = with lib; { description = "A Path interface for local and cloud bucket storage"; diff --git a/pkgs/development/python-modules/patiencediff/default.nix b/pkgs/development/python-modules/patiencediff/default.nix index d75854a5cfeb..cae4214075f4 100644 --- a/pkgs/development/python-modules/patiencediff/default.nix +++ b/pkgs/development/python-modules/patiencediff/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-KTOESjaj8fMxJZ7URqg6UMpiQppqZAlk4IPWEw4/Nvw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "patiencediff" - ]; + pythonImportsCheck = [ "patiencediff" ]; meta = with lib; { description = "C implementation of patiencediff algorithm for Python"; diff --git a/pkgs/development/python-modules/patool/default.nix b/pkgs/development/python-modules/patool/default.nix index a81b25371870..feaef66da2b7 100644 --- a/pkgs/development/python-modules/patool/default.nix +++ b/pkgs/development/python-modules/patool/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, p7zip -, cabextract -, zip -, lzip -, zpaq -, gnutar -, unar # Free alternative to unrar -, gnugrep -, diffutils -, file -, gzip -, bzip2 -, xz +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + p7zip, + cabextract, + zip, + lzip, + zpaq, + gnutar, + unar, # Free alternative to unrar + gnugrep, + diffutils, + file, + gzip, + bzip2, + xz, }: let @@ -60,9 +61,7 @@ buildPythonPackage rec { "test_unzip_file" "test_zip" "test_zip_file" - ] ++ lib.optionals stdenv.isDarwin [ - "test_ar" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_ar" ]; meta = with lib; { description = "portable archive file manager"; diff --git a/pkgs/development/python-modules/patrowl4py/default.nix b/pkgs/development/python-modules/patrowl4py/default.nix index e756dc838019..ada7a272918f 100644 --- a/pkgs/development/python-modules/patrowl4py/default.nix +++ b/pkgs/development/python-modules/patrowl4py/default.nix @@ -1,22 +1,23 @@ -{ lib -, attrs -, buildPythonPackage -, certifi -, chardet -, fetchFromGitHub -, idna -, iniconfig -, more-itertools -, packaging -, pluggy -, py -, pyparsing -, python-slugify -, requests -, six -, text-unidecode -, toml -, urllib3 +{ + lib, + attrs, + buildPythonPackage, + certifi, + chardet, + fetchFromGitHub, + idna, + iniconfig, + more-itertools, + packaging, + pluggy, + py, + pyparsing, + python-slugify, + requests, + six, + text-unidecode, + toml, + urllib3, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "patrowl4py" - ]; + pythonImportsCheck = [ "patrowl4py" ]; meta = with lib; { description = "Python API Client for PatrOwl"; diff --git a/pkgs/development/python-modules/patsy/default.nix b/pkgs/development/python-modules/patsy/default.nix index 48797d05142b..89164e09a546 100644 --- a/pkgs/development/python-modules/patsy/default.nix +++ b/pkgs/development/python-modules/patsy/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools -, six -, numpy -, scipy # optional, allows spline-related features (see patsy's docs) -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, + six, + numpy, + scipy, # optional, allows spline-related features (see patsy's docs) + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-lcbUenIiU1+Ev/f2PXMD8uKXdHpZjbic9cZ/DAx9LNs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ six @@ -28,13 +27,9 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "patsy" - ]; + pythonImportsCheck = [ "patsy" ]; meta = { description = "A Python package for describing statistical models"; @@ -43,4 +38,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ ilya-kolpakov ]; }; } - diff --git a/pkgs/development/python-modules/paver/default.nix b/pkgs/development/python-modules/paver/default.nix index 525d28d34232..de859540c5f2 100644 --- a/pkgs/development/python-modules/paver/default.nix +++ b/pkgs/development/python-modules/paver/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cogapp -, fetchPypi -, mock -, nose -, pytestCheckHook -, pythonOlder -, six -, virtualenv +{ + lib, + buildPythonPackage, + cogapp, + fetchPypi, + mock, + nose, + pytestCheckHook, + pythonOlder, + six, + virtualenv, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-0+ZJiIFIWrdQ7+QMUniYKpNDvGJ+E3sRrc7WJ3GTCMc="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; checkInputs = [ cogapp @@ -35,9 +34,7 @@ buildPythonPackage rec { virtualenv ]; - pythonImportsCheck = [ - "paver" - ]; + pythonImportsCheck = [ "paver" ]; disabledTestPaths = [ # Test depends on distutils diff --git a/pkgs/development/python-modules/paypal-checkout-serversdk/default.nix b/pkgs/development/python-modules/paypal-checkout-serversdk/default.nix index 711056008c9b..d2792aaacd01 100644 --- a/pkgs/development/python-modules/paypal-checkout-serversdk/default.nix +++ b/pkgs/development/python-modules/paypal-checkout-serversdk/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# propagates -, paypalhttp + # propagates + paypalhttp, -# tersts -, pytestCheckHook -, responses + # tersts + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { rm -rf sample ''; - propagatedBuildInputs = [ - paypalhttp - ]; + propagatedBuildInputs = [ paypalhttp ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/paypalhttp/default.nix b/pkgs/development/python-modules/paypalhttp/default.nix index ab0228ef06ab..4a0c7115c74e 100644 --- a/pkgs/development/python-modules/paypalhttp/default.nix +++ b/pkgs/development/python-modules/paypalhttp/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# propagates -, pyopenssl -, requests -, six + # propagates + pyopenssl, + requests, + six, -# tests -, pytestCheckHook -, responses + # tests + pytestCheckHook, + responses, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/paypalrestsdk/default.nix b/pkgs/development/python-modules/paypalrestsdk/default.nix index ed6e60a19044..e66581325070 100644 --- a/pkgs/development/python-modules/paypalrestsdk/default.nix +++ b/pkgs/development/python-modules/paypalrestsdk/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pyopenssl -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pyopenssl, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-2sI2SSqawSYKdgAUouVqs4sJ2BQylbXollRTWbYf7dY="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ pyopenssl @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "paypalrestsdk" - ]; + pythonImportsCheck = [ "paypalrestsdk" ]; meta = with lib; { description = "Python APIs to create, process and manage payment"; diff --git a/pkgs/development/python-modules/pbkdf2/default.nix b/pkgs/development/python-modules/pbkdf2/default.nix index 9068b6887b47..138a9489ac32 100644 --- a/pkgs/development/python-modules/pbkdf2/default.nix +++ b/pkgs/development/python-modules/pbkdf2/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pbkdf2"; diff --git a/pkgs/development/python-modules/pbr/default.nix b/pkgs/development/python-modules/pbr/default.nix index 7889471ebf29..1c215cb307ca 100644 --- a/pkgs/development/python-modules/pbr/default.nix +++ b/pkgs/development/python-modules/pbr/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + callPackage, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-0TdxIqWgDi+UDuSCmZUY7+FtdF1COmcMJ3c9+8PJp9k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # check in passthru.tests.pytest to escape infinite recursion with fixtures doCheck = false; diff --git a/pkgs/development/python-modules/pbr/tests.nix b/pkgs/development/python-modules/pbr/tests.nix index 05266a0eb7df..70e768814db9 100644 --- a/pkgs/development/python-modules/pbr/tests.nix +++ b/pkgs/development/python-modules/pbr/tests.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, build -, git -, gnupg -, pbr -, sphinx -, stestr -, testresources -, testscenarios -, virtualenv +{ + buildPythonPackage, + build, + git, + gnupg, + pbr, + sphinx, + stestr, + testresources, + testscenarios, + virtualenv, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/pc-ble-driver-py/default.nix b/pkgs/development/python-modules/pc-ble-driver-py/default.nix index 11b442218809..8ba9c4b5deb1 100644 --- a/pkgs/development/python-modules/pc-ble-driver-py/default.nix +++ b/pkgs/development/python-modules/pc-ble-driver-py/default.nix @@ -1,17 +1,18 @@ -{ lib -, boost -, buildPythonPackage -, cmake -, cryptography -, fetchFromGitHub -, git -, pc-ble-driver -, pythonAtLeast -, pythonOlder -, scikit-build -, setuptools -, swig -, wrapt +{ + lib, + boost, + buildPythonPackage, + cmake, + cryptography, + fetchFromGitHub, + git, + pc-ble-driver, + pythonAtLeast, + pythonOlder, + scikit-build, + setuptools, + swig, + wrapt, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { # doCheck tries to write to the global python directory to install things doCheck = false; - pythonImportsCheck = [ - "pc_ble_driver_py" - ]; + pythonImportsCheck = [ "pc_ble_driver_py" ]; meta = with lib; { description = "Bluetooth Low Energy nRF5 SoftDevice serialization"; diff --git a/pkgs/development/python-modules/pcapy-ng/default.nix b/pkgs/development/python-modules/pcapy-ng/default.nix index da490bd304eb..3e4ac41c1673 100644 --- a/pkgs/development/python-modules/pcapy-ng/default.nix +++ b/pkgs/development/python-modules/pcapy-ng/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, libpcap -, pkgconfig -, pytestCheckHook -, python -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + libpcap, + pkgconfig, + pytestCheckHook, + python, + pythonOlder, }: buildPythonPackage rec { @@ -28,27 +29,19 @@ buildPythonPackage rec { pkgconfig ]; - buildInputs = [ - libpcap - ]; + buildInputs = [ libpcap ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' cd tests ''; - pythonImportsCheck = [ - "pcapy" - ]; + pythonImportsCheck = [ "pcapy" ]; doCheck = pythonOlder "3.10"; - pytestFlagsArray = [ - "pcapytests.py" - ]; + pytestFlagsArray = [ "pcapytests.py" ]; meta = with lib; { description = "Module to interface with the libpcap packet capture library"; diff --git a/pkgs/development/python-modules/pcbnewtransition/default.nix b/pkgs/development/python-modules/pcbnewtransition/default.nix index 956be1966b66..03fc11db5925 100644 --- a/pkgs/development/python-modules/pcbnewtransition/default.nix +++ b/pkgs/development/python-modules/pcbnewtransition/default.nix @@ -1,9 +1,10 @@ -{ pythonOlder -, buildPythonPackage -, fetchPypi -, lib -, kicad -, versioneer +{ + pythonOlder, + buildPythonPackage, + fetchPypi, + lib, + kicad, + versioneer, }: buildPythonPackage rec { pname = "pcbnewtransition"; @@ -18,23 +19,20 @@ buildPythonPackage rec { hash = "sha256-+mRExuDuEYxSSlrkEjSyPK+RRJZo+YJH7WnUVfjblRQ="; }; - propagatedBuildInputs = [ - kicad - ]; + propagatedBuildInputs = [ kicad ]; - nativeBuildInputs = [ - versioneer - ]; + nativeBuildInputs = [ versioneer ]; - pythonImportsCheck = [ - "pcbnewTransition" - ]; + pythonImportsCheck = [ "pcbnewTransition" ]; meta = with lib; { description = "Library that allows you to support both, KiCad 5, 6 and 7 in your plugins"; homepage = "https://github.com/yaqwsx/pcbnewTransition"; changelog = "https://github.com/yaqwsx/pcbnewTransition/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ jfly matusf ]; + maintainers = with maintainers; [ + jfly + matusf + ]; }; } diff --git a/pkgs/development/python-modules/pcffont/default.nix b/pkgs/development/python-modules/pcffont/default.nix index 7f31584943ca..448dd210fef8 100644 --- a/pkgs/development/python-modules/pcffont/default.nix +++ b/pkgs/development/python-modules/pcffont/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, bdffont -, pytestCheckHook -, nix-update-script +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + bdffont, + pytestCheckHook, + nix-update-script, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-DbPcE2Bx+V90s7P3Gq+Uz3iQNidwbNlp7zln8ykL7Sg="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - bdffont - ]; + dependencies = [ bdffont ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pcffont" ]; diff --git a/pkgs/development/python-modules/pcodedmp/default.nix b/pkgs/development/python-modules/pcodedmp/default.nix index 9c9ae3f6f7cb..4a5a1b153f7e 100644 --- a/pkgs/development/python-modules/pcodedmp/default.nix +++ b/pkgs/development/python-modules/pcodedmp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "pcodedmp" - ]; + pythonImportsCheck = [ "pcodedmp" ]; meta = with lib; { description = "Python VBA p-code disassembler"; diff --git a/pkgs/development/python-modules/pcpp/default.nix b/pkgs/development/python-modules/pcpp/default.nix index 683c11332740..9ac56f890a57 100644 --- a/pkgs/development/python-modules/pcpp/default.nix +++ b/pkgs/development/python-modules/pcpp/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, }: buildPythonPackage rec { @@ -22,5 +23,5 @@ buildPythonPackage rec { mainProgram = "pcpp"; license = licenses.bsd0; maintainers = with maintainers; [ rakesh4g ]; - }; + }; } diff --git a/pkgs/development/python-modules/pdb2pqr/default.nix b/pkgs/development/python-modules/pdb2pqr/default.nix index dc44880b138e..da3e3e0c2f06 100644 --- a/pkgs/development/python-modules/pdb2pqr/default.nix +++ b/pkgs/development/python-modules/pdb2pqr/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook -, mmcif-pdbx -, numpy -, propka -, requests -, docutils -, pytestCheckHook -, pandas -, testfixtures +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, + mmcif-pdbx, + numpy, + propka, + requests, + docutils, + pytestCheckHook, + pandas, + testfixtures, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-He301TJ1bzWub0DZ6Ro/Xc+JMtJBbyygVpWjPY6RMbA="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "docutils" - ]; + pythonRelaxDeps = [ "docutils" ]; propagatedBuildInputs = [ mmcif-pdbx @@ -59,9 +56,7 @@ buildPythonPackage rec { "test_basic" ]; - pythonImportsCheck = [ - "pdb2pqr" - ]; + pythonImportsCheck = [ "pdb2pqr" ]; meta = with lib; { description = "Software for determining titration states, adding missing atoms, and assigning charges/radii to biomolecules"; diff --git a/pkgs/development/python-modules/pdbfixer/default.nix b/pkgs/development/python-modules/pdbfixer/default.nix index 9b0f0bfe86aa..0042364a3218 100644 --- a/pkgs/development/python-modules/pdbfixer/default.nix +++ b/pkgs/development/python-modules/pdbfixer/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, numpy -, openmm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + numpy, + openmm, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { openmm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export PATH=$out/bin:$PATH diff --git a/pkgs/development/python-modules/pdf2docx/default.nix b/pkgs/development/python-modules/pdf2docx/default.nix index 88372271aa52..e8a3f7e41634 100644 --- a/pkgs/development/python-modules/pdf2docx/default.nix +++ b/pkgs/development/python-modules/pdf2docx/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, fetchFromGitHub -, python -, buildPythonPackage -, pythonRelaxDepsHook -, imagemagick -, pip -, pytestCheckHook -, pymupdf -, fire -, fonttools -, numpy -, opencv4 -, tkinter -, python-docx +{ + stdenv, + lib, + fetchFromGitHub, + python, + buildPythonPackage, + pythonRelaxDepsHook, + imagemagick, + pip, + pytestCheckHook, + pymupdf, + fire, + fonttools, + numpy, + opencv4, + tkinter, + python-docx, }: let version = "0.5.8"; @@ -61,7 +62,10 @@ buildPythonPackage { nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ "-v" "./test/test.py::TestConversion" ]; + pytestFlagsArray = [ + "-v" + "./test/test.py::TestConversion" + ]; # Test fails due to "RuntimeError: cannot find builtin font with name 'Arial'": disabledTests = [ "test_unnamed_fonts" ]; diff --git a/pkgs/development/python-modules/pdf2image/default.nix b/pkgs/development/python-modules/pdf2image/default.nix index 009dad8b0819..d7983145cd34 100644 --- a/pkgs/development/python-modules/pdf2image/default.nix +++ b/pkgs/development/python-modules/pdf2image/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, poppler_utils -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + poppler_utils, + pythonOlder, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { sed -i '0,/poppler_path=None/s||poppler_path="${poppler_utils}/bin"|' pdf2image/pdf2image.py ''; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; - pythonImportsCheck = [ - "pdf2image" - ]; + pythonImportsCheck = [ "pdf2image" ]; meta = with lib; { description = "Module that wraps the pdftoppm utility to convert PDF to PIL Image object"; diff --git a/pkgs/development/python-modules/pdfkit/default.nix b/pkgs/development/python-modules/pdfkit/default.nix index e055ed971842..2ed46f02c65d 100644 --- a/pkgs/development/python-modules/pdfkit/default.nix +++ b/pkgs/development/python-modules/pdfkit/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { description = "Wkhtmltopdf python wrapper to convert html to pdf using the webkit rendering engine and qt"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pdfminer-six/default.nix b/pkgs/development/python-modules/pdfminer-six/default.nix index f203850469cf..d07e11c8fcbf 100644 --- a/pkgs/development/python-modules/pdfminer-six/default.nix +++ b/pkgs/development/python-modules/pdfminer-six/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, isPy3k -, cryptography -, charset-normalizer -, pythonOlder -, typing-extensions -, pytestCheckHook -, setuptools -, substituteAll -, ocrmypdf +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + isPy3k, + cryptography, + charset-normalizer, + pythonOlder, + typing-extensions, + pytestCheckHook, + setuptools, + substituteAll, + ocrmypdf, }: buildPythonPackage rec { @@ -34,17 +35,17 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - charset-normalizer - cryptography - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - typing-extensions - ]; + propagatedBuildInputs = + [ + charset-normalizer + cryptography + ] + ++ lib.optionals (pythonOlder "3.8") [ + importlib-metadata + typing-extensions + ]; postInstall = '' for file in $out/bin/*.py; do @@ -57,9 +58,7 @@ buildPythonPackage rec { "pdfminer.high_level" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; passthru = { tests = { diff --git a/pkgs/development/python-modules/pdfplumber/default.nix b/pkgs/development/python-modules/pdfplumber/default.nix index 80e937d4c48c..1a28900924d5 100644 --- a/pkgs/development/python-modules/pdfplumber/default.nix +++ b/pkgs/development/python-modules/pdfplumber/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jupyterlab -, nbexec -, pandas -, pandas-stubs -, pdfminer-six -, pillow -, pytest-parallel -, pytestCheckHook -, pythonOlder -, types-pillow -, wand +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jupyterlab, + nbexec, + pandas, + pandas-stubs, + pdfminer-six, + pillow, + pytest-parallel, + pytestCheckHook, + pythonOlder, + types-pillow, + wand, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { types-pillow ]; - pythonImportsCheck = [ - "pdfplumber" - ]; + pythonImportsCheck = [ "pdfplumber" ]; disabledTests = [ # flaky diff --git a/pkgs/development/python-modules/pdfrw/default.nix b/pkgs/development/python-modules/pdfrw/default.nix index 8eccbfbb7f1f..4feb27fdc3f5 100644 --- a/pkgs/development/python-modules/pdfrw/default.nix +++ b/pkgs/development/python-modules/pdfrw/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pdfrw"; @@ -17,6 +21,6 @@ buildPythonPackage rec { description = "pdfrw is a pure Python library that reads and writes PDFs."; homepage = "https://github.com/pmaupin/pdfrw"; maintainers = with maintainers; [ teto ]; - license = licenses.mit; + license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/pdfrw2/default.nix b/pkgs/development/python-modules/pdfrw2/default.nix index 6ed93640af7e..34381e4eb8cc 100644 --- a/pkgs/development/python-modules/pdfrw2/default.nix +++ b/pkgs/development/python-modules/pdfrw2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, pycryptodome -, reportlab -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + pycryptodome, + reportlab, + setuptools, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-5qnMq4Pnaaeov+Lb3fD0ndfr5SAy6SlXTwG7v6IZce0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pillow diff --git a/pkgs/development/python-modules/pdftotext/default.nix b/pkgs/development/python-modules/pdftotext/default.nix index 9d3971ce323d..f16fd012e72c 100644 --- a/pkgs/development/python-modules/pdftotext/default.nix +++ b/pkgs/development/python-modules/pdftotext/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, poppler }: +{ + lib, + buildPythonPackage, + fetchPypi, + poppler, +}: buildPythonPackage rec { pname = "pdftotext"; diff --git a/pkgs/development/python-modules/pdfx/default.nix b/pkgs/development/python-modules/pdfx/default.nix index ba9a0f79bf2a..6bdd81de8bbc 100644 --- a/pkgs/development/python-modules/pdfx/default.nix +++ b/pkgs/development/python-modules/pdfx/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pdfminer-six, chardet, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pdfminer-six, + chardet, + pytestCheckHook, +}: buildPythonPackage rec { pname = "pdfx"; @@ -18,7 +25,10 @@ buildPythonPackage rec { --replace "pdfminer.six==20201018" "pdfminer.six" ''; - propagatedBuildInputs = [ pdfminer-six chardet ]; + propagatedBuildInputs = [ + pdfminer-six + chardet + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pdm-backend/default.nix b/pkgs/development/python-modules/pdm-backend/default.nix index d2d77f67fc25..8cb78b449f01 100644 --- a/pkgs/development/python-modules/pdm-backend/default.nix +++ b/pkgs/development/python-modules/pdm-backend/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -# propagates -, importlib-metadata + # propagates + importlib-metadata, -# tests -, editables -, git -, mercurial -, pytestCheckHook -, setuptools + # tests + editables, + git, + mercurial, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { env.PDM_BUILD_SCM_VERSION = version; - dependencies = lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + dependencies = lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; - pythonImportsCheck = [ - "pdm.backend" - ]; + pythonImportsCheck = [ "pdm.backend" ]; nativeCheckInputs = [ editables diff --git a/pkgs/development/python-modules/pdm-pep517/default.nix b/pkgs/development/python-modules/pdm-pep517/default.nix index be5573a0055c..9afd76c81a47 100644 --- a/pkgs/development/python-modules/pdm-pep517/default.nix +++ b/pkgs/development/python-modules/pdm-pep517/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, git -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + git, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pdoc-pyo3-sample-library/default.nix b/pkgs/development/python-modules/pdoc-pyo3-sample-library/default.nix index 37fd1d1378dc..6d53750f528c 100644 --- a/pkgs/development/python-modules/pdoc-pyo3-sample-library/default.nix +++ b/pkgs/development/python-modules/pdoc-pyo3-sample-library/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, rustPlatform -, cargo -, rustc -, libiconv +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + rustPlatform, + cargo, + rustc, + libiconv, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { rustc ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; pythonImportsCheck = [ "pdoc_pyo3_sample_library" ]; diff --git a/pkgs/development/python-modules/pdoc/default.nix b/pkgs/development/python-modules/pdoc/default.nix index da30b6963b29..43ef11bebd58 100644 --- a/pkgs/development/python-modules/pdoc/default.nix +++ b/pkgs/development/python-modules/pdoc/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, jinja2 -, pdoc-pyo3-sample-library -, pygments -, markupsafe -, astunparse -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + jinja2, + pdoc-pyo3-sample-library, + pygments, + markupsafe, + astunparse, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-lie+lPUVWVgbSGC09gMmy4Z2BdC2CHFYQ60isExvhSk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ jinja2 diff --git a/pkgs/development/python-modules/pdoc3/default.nix b/pkgs/development/python-modules/pdoc3/default.nix index 72e2046105a9..c56a6a806519 100644 --- a/pkgs/development/python-modules/pdoc3/default.nix +++ b/pkgs/development/python-modules/pdoc3/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pythonOlder -, mako -, markdown -, setuptools-git -, setuptools-scm +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pythonOlder, + mako, + markdown, + setuptools-git, + setuptools-scm, }: buildPythonPackage rec { @@ -33,7 +34,7 @@ buildPythonPackage rec { name = "fix-test-for-python310.patch"; url = "https://github.com/pdoc3/pdoc/commit/80af5d40d3ca39e2701c44941c1003ae6a280799.patch"; hash = "sha256-69Cn+BY7feisSHugONIF/PRgEDEfnvnS/RBHWv1P8/w="; - excludes = [".github/workflows/ci.yml"]; + excludes = [ ".github/workflows/ci.yml" ]; }) ]; diff --git a/pkgs/development/python-modules/pdunehd/default.nix b/pkgs/development/python-modules/pdunehd/default.nix index 6d9248b2db10..009c811601cb 100644 --- a/pkgs/development/python-modules/pdunehd/default.nix +++ b/pkgs/development/python-modules/pdunehd/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "sha256-8CL7ZQ+tV0CKdqWWiPDbo6Q5d1iIj/vNbYshdjUpYSw="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/pebble/default.nix b/pkgs/development/python-modules/pebble/default.nix index b576c7d4c1fc..827e45f12590 100644 --- a/pkgs/development/python-modules/pebble/default.nix +++ b/pkgs/development/python-modules/pebble/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,15 +20,11 @@ buildPythonPackage rec { hash = "sha256-J4TBR3ZvBjiM6nhAhLFL7JP9uqeTgw8ZgxVaozCipuQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "pebble" - ]; + pythonImportsCheck = [ "pebble" ]; meta = with lib; { description = "API to manage threads and processes within an application"; diff --git a/pkgs/development/python-modules/pecan/default.nix b/pkgs/development/python-modules/pecan/default.nix index 1de099579de3..24b9cddf97b4 100644 --- a/pkgs/development/python-modules/pecan/default.nix +++ b/pkgs/development/python-modules/pecan/default.nix @@ -1,18 +1,19 @@ -{ lib -, fetchPypi -, buildPythonPackage -, logutils -, mako -, webob -, webtest -, pythonOlder -, pytestCheckHook -, genshi -, gunicorn -, jinja2 -, sqlalchemy -, virtualenv -, setuptools +{ + lib, + fetchPypi, + buildPythonPackage, + logutils, + mako, + webob, + webtest, + pythonOlder, + pytestCheckHook, + genshi, + gunicorn, + jinja2, + sqlalchemy, + virtualenv, + setuptools, }: buildPythonPackage rec { @@ -44,13 +45,9 @@ buildPythonPackage rec { webtest ]; - pytestFlagsArray = [ - "--pyargs pecan" - ]; + pytestFlagsArray = [ "--pyargs pecan" ]; - pythonImportsCheck = [ - "pecan" - ]; + pythonImportsCheck = [ "pecan" ]; meta = with lib; { changelog = "https://pecan.readthedocs.io/en/latest/changes.html"; diff --git a/pkgs/development/python-modules/peewee-migrate/default.nix b/pkgs/development/python-modules/peewee-migrate/default.nix index dc7cefd00c0d..ba31350184f2 100644 --- a/pkgs/development/python-modules/peewee-migrate/default.nix +++ b/pkgs/development/python-modules/peewee-migrate/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# runtime -, click -, peewee + # runtime + click, + peewee, -# tests -, psycopg2 -, pytestCheckHook + # tests + psycopg2, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,18 +34,14 @@ buildPythonPackage rec { sed -i '/addopts/d' pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ peewee click ]; - pythonImportsCheck = [ - "peewee_migrate" - ]; + pythonImportsCheck = [ "peewee_migrate" ]; nativeCheckInputs = [ psycopg2 diff --git a/pkgs/development/python-modules/pefile/default.nix b/pkgs/development/python-modules/pefile/default.nix index 97b3419d7b55..c5eadd8e5cd1 100644 --- a/pkgs/development/python-modules/pefile/default.nix +++ b/pkgs/development/python-modules/pefile/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, future -, fetchPypi -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + future, + fetchPypi, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-guYRQASz1pEcd8OVPjg4ZUsEURuLZuhYPbcMZZmAF9w="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - future - ]; + propagatedBuildInputs = [ future ]; # Test data contains properitary executables and malware, and is therefore encrypted doCheck = false; - pythonImportsCheck = [ - "pefile" - ]; + pythonImportsCheck = [ "pefile" ]; meta = with lib; { description = "Multi-platform Python module to parse and work with Portable Executable (aka PE) files"; diff --git a/pkgs/development/python-modules/peft/default.nix b/pkgs/development/python-modules/peft/default.nix index 3b65f6c68e92..52a53cee9328 100644 --- a/pkgs/development/python-modules/peft/default.nix +++ b/pkgs/development/python-modules/peft/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, numpy -, packaging -, psutil -, pyyaml -, torch -, transformers -, accelerate +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + numpy, + packaging, + psutil, + pyyaml, + torch, + transformers, + accelerate, }: buildPythonPackage rec { @@ -38,10 +39,8 @@ buildPythonPackage rec { accelerate ]; - doCheck = false; # tries to download pretrained models - pythonImportsCheck = [ - "peft" - ]; + doCheck = false; # tries to download pretrained models + pythonImportsCheck = [ "peft" ]; meta = with lib; { homepage = "https://github.com/huggingface/peft"; diff --git a/pkgs/development/python-modules/pegen/default.nix b/pkgs/development/python-modules/pegen/default.nix index 4f348a2f0097..55628d53983d 100644 --- a/pkgs/development/python-modules/pegen/default.nix +++ b/pkgs/development/python-modules/pegen/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -27,21 +28,19 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pegen" - ]; + pythonImportsCheck = [ "pegen" ]; - disabledTests = [ - # ValueError: Expected locations of (1, 3) and... - "test_invalid_call_arguments" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - # https://github.com/we-like-parsers/pegen/issues/89 - "test_invalid_def_stmt" - ]; + disabledTests = + [ + # ValueError: Expected locations of (1, 3) and... + "test_invalid_call_arguments" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + # https://github.com/we-like-parsers/pegen/issues/89 + "test_invalid_def_stmt" + ]; meta = with lib; { description = "Library to generate PEG parsers"; diff --git a/pkgs/development/python-modules/pelican/default.nix b/pkgs/development/python-modules/pelican/default.nix index 23e0ae1aff94..93bde3408dea 100644 --- a/pkgs/development/python-modules/pelican/default.nix +++ b/pkgs/development/python-modules/pelican/default.nix @@ -1,37 +1,38 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, -# build-system -, pdm-backend + # build-system + pdm-backend, -# native dependencies -, glibcLocales -, git -, pandoc -, typogrify + # native dependencies + glibcLocales, + git, + pandoc, + typogrify, -# dependencies -, backports-zoneinfo -, blinker -, docutils -, feedgenerator -, jinja2 -, markdown -, ordered-set -, pygments -, python-dateutil -, rich -, tzdata -, unidecode -, watchfiles + # dependencies + backports-zoneinfo, + blinker, + docutils, + feedgenerator, + jinja2, + markdown, + ordered-set, + pygments, + python-dateutil, + rich, + tzdata, + unidecode, + watchfiles, -# tests -, mock -, pytestCheckHook -, pytest-xdist + # tests + mock, + pytestCheckHook, + pytest-xdist, }: buildPythonPackage rec { @@ -63,9 +64,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "unidecode" - ]; + pythonRelaxDeps = [ "unidecode" ]; buildInputs = [ glibcLocales @@ -87,9 +86,7 @@ buildPythonPackage rec { tzdata unidecode watchfiles - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; nativeCheckInputs = [ mock @@ -127,6 +124,9 @@ buildPythonPackage rec { description = "Static site generator that requires no database or server-side logic"; homepage = "https://getpelican.com/"; license = licenses.agpl3Only; - maintainers = with maintainers; [ offline prikhi ]; + maintainers = with maintainers; [ + offline + prikhi + ]; }; } diff --git a/pkgs/development/python-modules/pem/default.nix b/pkgs/development/python-modules/pem/default.nix index 84500acaccb0..cc2572c8ebc5 100644 --- a/pkgs/development/python-modules/pem/default.nix +++ b/pkgs/development/python-modules/pem/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, certifi -, cryptography -, fetchFromGitHub -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, pretend -, pyopenssl -, pytestCheckHook -, pythonOlder -, twisted +{ + lib, + buildPythonPackage, + certifi, + cryptography, + fetchFromGitHub, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + pretend, + pyopenssl, + pytestCheckHook, + pythonOlder, + twisted, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { twisted ] ++ twisted.optional-dependencies.tls; - pythonImportsCheck = [ - "pem" - ]; + pythonImportsCheck = [ "pem" ]; meta = with lib; { description = "Easy PEM file parsing in Python"; diff --git a/pkgs/development/python-modules/pencompy/default.nix b/pkgs/development/python-modules/pencompy/default.nix index b2648e36e5a1..3bf69fa1192d 100644 --- a/pkgs/development/python-modules/pencompy/default.nix +++ b/pkgs/development/python-modules/pencompy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pencompy" - ]; + pythonImportsCheck = [ "pencompy" ]; meta = with lib; { description = "Library for interacting with Pencom relay boards"; diff --git a/pkgs/development/python-modules/pendulum/default.nix b/pkgs/development/python-modules/pendulum/default.nix index 78e9c675ea8d..fb412e99c0d5 100644 --- a/pkgs/development/python-modules/pendulum/default.nix +++ b/pkgs/development/python-modules/pendulum/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, isPyPy +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + isPyPy, -# build-system -, poetry-core -, rustPlatform + # build-system + poetry-core, + rustPlatform, -# native dependencies -, iconv + # native dependencies + iconv, -# dependencies -, backports-zoneinfo -, importlib-resources -, python-dateutil -, time-machine -, tzdata + # dependencies + backports-zoneinfo, + importlib-resources, + python-dateutil, + time-machine, + tzdata, -# tests -, pytestCheckHook -, pytz + # tests + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -59,35 +60,32 @@ buildPythonPackage rec { rustPlatform.cargoSetupHook ]; - buildInputs = lib.optionals stdenv.isDarwin [ - iconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ iconv ]; - propagatedBuildInputs = [ - python-dateutil - tzdata - ] ++ lib.optional (!isPyPy) [ - time-machine - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - importlib-resources - ]; + propagatedBuildInputs = + [ + python-dateutil + tzdata + ] + ++ lib.optional (!isPyPy) [ time-machine ] + ++ lib.optionals (pythonOlder "3.9") [ + backports-zoneinfo + importlib-resources + ]; - pythonImportsCheck = [ - "pendulum" - ]; + pythonImportsCheck = [ "pendulum" ]; nativeCheckInputs = [ pytestCheckHook pytz ]; - disabledTestPaths = [ - "tests/benchmarks" - ] ++ lib.optionals stdenv.isDarwin [ - # PermissionError: [Errno 1] Operation not permitted: '/etc/localtime' - "tests/testing/test_time_travel.py" - ]; + disabledTestPaths = + [ "tests/benchmarks" ] + ++ lib.optionals stdenv.isDarwin [ + # PermissionError: [Errno 1] Operation not permitted: '/etc/localtime' + "tests/testing/test_time_travel.py" + ]; meta = with lib; { description = "Python datetimes made easy"; diff --git a/pkgs/development/python-modules/pep440/default.nix b/pkgs/development/python-modules/pep440/default.nix index e083bb622b87..8bf685faaecc 100644 --- a/pkgs/development/python-modules/pep440/default.nix +++ b/pkgs/development/python-modules/pep440/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,22 +19,16 @@ buildPythonPackage rec { hash = "sha256-WLNyRswrE/7hyio8CSyzcE0h7PYhpb27Fo5E5pf20E0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Don't run CLI tests "tests/test_cli.py" ]; - pythonImportsCheck = [ - "pep440" - ]; + pythonImportsCheck = [ "pep440" ]; meta = with lib; { description = "Python module to check whether versions number match PEP 440"; diff --git a/pkgs/development/python-modules/pep517/default.nix b/pkgs/development/python-modules/pep517/default.nix index 470c67d6ae07..db633e8d6d36 100644 --- a/pkgs/development/python-modules/pep517/default.nix +++ b/pkgs/development/python-modules/pep517/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, tomli -, pythonOlder -, importlib-metadata -, zipp -, pytestCheckHook -, setuptools -, testpath -, mock -, pip +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + tomli, + pythonOlder, + importlib-metadata, + zipp, + pytestCheckHook, + setuptools, + testpath, + mock, + pip, }: buildPythonPackage rec { @@ -23,15 +24,14 @@ buildPythonPackage rec { hash = "sha256-Gy+i/9OTi7S+/+XWFGy8sr2plqWk2p8xq//Ysk4Hsxc="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - tomli - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata zipp - ]; + propagatedBuildInputs = + [ tomli ] + ++ lib.optionals (pythonOlder "3.8") [ + importlib-metadata + zipp + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pep8-naming/default.nix b/pkgs/development/python-modules/pep8-naming/default.nix index 5fd696523d84..213436d6a953 100644 --- a/pkgs/development/python-modules/pep8-naming/default.nix +++ b/pkgs/development/python-modules/pep8-naming/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flake8 -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flake8, + python, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-l7zZUOMWyTxnTbkFkzfABY/eVMKnv0kNJ0UPzJo0W1Y="; }; - propagatedBuildInputs = [ - flake8 - ]; + propagatedBuildInputs = [ flake8 ]; checkPhase = '' runHook preCheck @@ -30,9 +29,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "pep8ext_naming" - ]; + pythonImportsCheck = [ "pep8ext_naming" ]; meta = with lib; { description = "Check PEP-8 naming conventions, plugin for flake8"; diff --git a/pkgs/development/python-modules/pep8/default.nix b/pkgs/development/python-modules/pep8/default.nix index 425ad42e787c..01e292870797 100644 --- a/pkgs/development/python-modules/pep8/default.nix +++ b/pkgs/development/python-modules/pep8/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/peppercorn/default.nix b/pkgs/development/python-modules/peppercorn/default.nix index 086c5edcee32..64bd3c74b928 100644 --- a/pkgs/development/python-modules/peppercorn/default.nix +++ b/pkgs/development/python-modules/peppercorn/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ domenkozar ]; platforms = platforms.all; }; - } diff --git a/pkgs/development/python-modules/percol/default.nix b/pkgs/development/python-modules/percol/default.nix index 2a58aa4f8678..9e0ec0df24ea 100644 --- a/pkgs/development/python-modules/percol/default.nix +++ b/pkgs/development/python-modules/percol/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, cmigemo }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cmigemo, +}: buildPythonPackage rec { pname = "percol"; diff --git a/pkgs/development/python-modules/perfplot/default.nix b/pkgs/development/python-modules/perfplot/default.nix index 1dfc78ffca46..b8c37ed5d6f9 100644 --- a/pkgs/development/python-modules/perfplot/default.nix +++ b/pkgs/development/python-modules/perfplot/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, flit-core -, matplotlib -, matplotx -, numpy -, rich -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + flit-core, + matplotlib, + matplotx, + numpy, + rich, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-bu6eYQukhLE8sLkS3PbqTgXOqJFXJYXTcXAhmjaq48g="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ matplotlib @@ -40,13 +39,9 @@ buildPythonPackage rec { # Not sure of the details, but we can avoid it by changing the matplotlib backend during testing. env.MPLBACKEND = lib.optionalString stdenv.isDarwin "Agg"; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "perfplot" - ]; + pythonImportsCheck = [ "perfplot" ]; meta = with lib; { description = "Performance plots for Python code snippets"; diff --git a/pkgs/development/python-modules/periodictable/default.nix b/pkgs/development/python-modules/periodictable/default.nix index 94a7120eebe4..25a575e14691 100644 --- a/pkgs/development/python-modules/periodictable/default.nix +++ b/pkgs/development/python-modules/periodictable/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, numpy -, pyparsing -, pytestCheckHook -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + numpy, + pyparsing, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { pyparsing ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "periodictable" - ]; + pythonImportsCheck = [ "periodictable" ]; meta = with lib; { description = "Extensible periodic table of the elements"; diff --git a/pkgs/development/python-modules/periodiq/default.nix b/pkgs/development/python-modules/periodiq/default.nix index 2d14561d120d..19eea2d9290e 100644 --- a/pkgs/development/python-modules/periodiq/default.nix +++ b/pkgs/development/python-modules/periodiq/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitLab -, poetry-core -, dramatiq -, pendulum -, setuptools -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitLab, + poetry-core, + dramatiq, + pendulum, + setuptools, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'poetry.masonry.api' 'poetry.core.masonry.api' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ dramatiq @@ -41,7 +40,10 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ pytestCheckHook pytest-mock ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-mock + ]; pytestFlagsArray = [ "tests/unit" ]; diff --git a/pkgs/development/python-modules/permissionedforms/default.nix b/pkgs/development/python-modules/permissionedforms/default.nix index c317826391dd..8577b09757cc 100644 --- a/pkgs/development/python-modules/permissionedforms/default.nix +++ b/pkgs/development/python-modules/permissionedforms/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, django -, django-modelcluster -, fetchFromGitHub -, lib -, python +{ + buildPythonPackage, + django, + django-modelcluster, + fetchFromGitHub, + lib, + python, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "sha256-DQzPGmh5UEVpGWnW3IrEVPkZZ8mdiW9J851Ej4agTDc="; }; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; checkInputs = [ django-modelcluster ]; diff --git a/pkgs/development/python-modules/persim/default.nix b/pkgs/development/python-modules/persim/default.nix index 45114af407c4..6626c31c855b 100644 --- a/pkgs/development/python-modules/persim/default.nix +++ b/pkgs/development/python-modules/persim/default.nix @@ -1,17 +1,18 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, deprecated -, hopcroftkarp -, joblib -, matplotlib -, numpy -, scikit-learn -, scipy -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + deprecated, + hopcroftkarp, + joblib, + matplotlib, + numpy, + scikit-learn, + scipy, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # specifically needed for darwin @@ -47,9 +46,7 @@ buildPythonPackage rec { echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; - pythonImportsCheck = [ - "persim" - ]; + pythonImportsCheck = [ "persim" ]; disabledTests = lib.optionals (pythonAtLeast "3.10") [ # AttributeError: module 'collections' has no attribute 'Iterable' diff --git a/pkgs/development/python-modules/persist-queue/default.nix b/pkgs/development/python-modules/persist-queue/default.nix index 9682ac59946b..4f37222bf446 100644 --- a/pkgs/development/python-modules/persist-queue/default.nix +++ b/pkgs/development/python-modules/persist-queue/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, nose2 -, msgpack -, cbor2 +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + nose2, + msgpack, + cbor2, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/persistent/default.nix b/pkgs/development/python-modules/persistent/default.nix index 5c7f27a5be31..96d6d796fbdf 100644 --- a/pkgs/development/python-modules/persistent/default.nix +++ b/pkgs/development/python-modules/persistent/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cffi -, fetchPypi -, zope-interface -, sphinx -, manuel -, pythonOlder +{ + lib, + buildPythonPackage, + cffi, + fetchPypi, + zope-interface, + sphinx, + manuel, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { cffi ]; - pythonImportsCheck = [ - "persistent" - ]; + pythonImportsCheck = [ "persistent" ]; meta = with lib; { description = "Automatic persistence for Python objects"; diff --git a/pkgs/development/python-modules/persisting-theory/default.nix b/pkgs/development/python-modules/persisting-theory/default.nix index 0890f86fc160..9dca828eb367 100644 --- a/pkgs/development/python-modules/persisting-theory/default.nix +++ b/pkgs/development/python-modules/persisting-theory/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-D4QPoiJHvKpRQJTafzsmxgI1lCmrEtLNiL4GtJozYpA="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "persisting_theory" ]; diff --git a/pkgs/development/python-modules/pescea/default.nix b/pkgs/development/python-modules/pescea/default.nix index 415fcd5a09a0..979c19319c9d 100644 --- a/pkgs/development/python-modules/pescea/default.nix +++ b/pkgs/development/python-modules/pescea/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + stdenv, + lib, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-5TkFrGaSkQOORhf5a7SjkzggFLPyqe9k3M0B4ljhWTQ="; }; - propagatedBuildInputs = [ - async-timeout - ]; + propagatedBuildInputs = [ async-timeout ]; nativeCheckInputs = [ pytest-asyncio @@ -47,9 +46,7 @@ buildPythonPackage rec { "test_flow_control" ]; - pythonImportsCheck = [ - "pescea" - ]; + pythonImportsCheck = [ "pescea" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/pettingzoo/default.nix b/pkgs/development/python-modules/pettingzoo/default.nix index 389abd5f8907..e90fd8f15bf6 100644 --- a/pkgs/development/python-modules/pettingzoo/default.nix +++ b/pkgs/development/python-modules/pettingzoo/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, wheel -, gymnasium -, numpy -, chess -, pillow -, pybox2d -, pygame -, pymunk -, rlcard -, scipy -, pre-commit -, pynput -, pytest -, pytest-cov -, pytest-markdown-docs -, pytest-xdist -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + wheel, + gymnasium, + numpy, + chess, + pillow, + pybox2d, + pygame, + pymunk, + rlcard, + scipy, + pre-commit, + pynput, + pytest, + pytest-cov, + pytest-markdown-docs, + pytest-xdist, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -73,12 +74,8 @@ buildPythonPackage rec { rlcard # shimmy ]; - mpe = [ - pygame - ]; - other = [ - pillow - ]; + mpe = [ pygame ]; + other = [ pillow ]; sisl = [ pybox2d pygame @@ -96,9 +93,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "pettingzoo" - ]; + pythonImportsCheck = [ "pettingzoo" ]; nativeCheckInputs = [ chess @@ -117,13 +112,15 @@ buildPythonPackage rec { "test/unwrapped_test.py" ]; - disabledTests = [ - # ImportError: cannot import name 'pytest_plugins' from 'pettingzoo.classic' - "test_chess" - ] ++ lib.optionals stdenv.isDarwin [ - # Crashes on darwin: `Fatal Python error: Aborted` - "test_multi_episode_parallel_env_wrapper" - ]; + disabledTests = + [ + # ImportError: cannot import name 'pytest_plugins' from 'pettingzoo.classic' + "test_chess" + ] + ++ lib.optionals stdenv.isDarwin [ + # Crashes on darwin: `Fatal Python error: Aborted` + "test_multi_episode_parallel_env_wrapper" + ]; meta = with lib; { description = "An API standard for multi-agent reinforcement learning environments, with popular reference environments and related utilities"; diff --git a/pkgs/development/python-modules/pex/default.nix b/pkgs/development/python-modules/pex/default.nix index daabf4625ce5..3ef394f9bb34 100644 --- a/pkgs/development/python-modules/pex/default.nix +++ b/pkgs/development/python-modules/pex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + pythonOlder, }: buildPythonPackage rec { @@ -17,22 +18,21 @@ buildPythonPackage rec { hash = "sha256-0SZMkRYcIRObRUdEyAU+Jbiq0tFdqJIyGBtPOPP1RXU="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; # A few more dependencies I don't want to handle right now... doCheck = false; - pythonImportsCheck = [ - "pex" - ]; + pythonImportsCheck = [ "pex" ]; meta = with lib; { description = "Python library and tool for generating .pex (Python EXecutable) files"; homepage = "https://github.com/pantsbuild/pex"; changelog = "https://github.com/pantsbuild/pex/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ copumpkin phaer ]; + maintainers = with maintainers; [ + copumpkin + phaer + ]; }; } diff --git a/pkgs/development/python-modules/pexif/default.nix b/pkgs/development/python-modules/pexif/default.nix index fb61b376021a..35949f3608d7 100644 --- a/pkgs/development/python-modules/pexif/default.nix +++ b/pkgs/development/python-modules/pexif/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "http://www.benno.id.au/code/pexif/"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pexpect/default.nix b/pkgs/development/python-modules/pexpect/default.nix index f98e531c0d54..0371859c5066 100644 --- a/pkgs/development/python-modules/pexpect/default.nix +++ b/pkgs/development/python-modules/pexpect/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, ptyprocess +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + ptyprocess, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage (rec { @@ -18,16 +19,16 @@ buildPythonPackage (rec { hash = "sha256-7n1BEj88mREFDqLC2sEHVo3EOy07DHVXozISw5jq0w8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Wants to run pythonin a subprocess doCheck = false; propagatedBuildInputs = [ ptyprocess ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { homepage = "http://www.noah.org/wiki/Pexpect"; diff --git a/pkgs/development/python-modules/pfzy/default.nix b/pkgs/development/python-modules/pfzy/default.nix index 48c084495a69..7b1ef211aad6 100644 --- a/pkgs/development/python-modules/pfzy/default.nix +++ b/pkgs/development/python-modules/pfzy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-+Ba/yLUfT0SPPAJd+pKyjSvNrVpEwxW3xEKFx4JzpYk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - pythonImportsCheck = [ - "pfzy" - ]; + pythonImportsCheck = [ "pfzy" ]; meta = with lib; { description = "Python port of the fzy fuzzy string matching algorithm"; diff --git a/pkgs/development/python-modules/pg8000/default.nix b/pkgs/development/python-modules/pg8000/default.nix index 05e520137581..d8ad4f8b7ea7 100644 --- a/pkgs/development/python-modules/pg8000/default.nix +++ b/pkgs/development/python-modules/pg8000/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-metadata -, passlib -, python-dateutil -, pythonOlder -, scramp -, hatchling -, versioningit +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-metadata, + passlib, + python-dateutil, + pythonOlder, + scramp, + hatchling, + versioningit, }: buildPythonPackage rec { @@ -31,16 +32,12 @@ buildPythonPackage rec { passlib python-dateutil scramp - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # Tests require a running PostgreSQL instance doCheck = false; - pythonImportsCheck = [ - "pg8000" - ]; + pythonImportsCheck = [ "pg8000" ]; meta = with lib; { description = "Python driver for PostgreSQL"; diff --git a/pkgs/development/python-modules/pgcli/default.nix b/pkgs/development/python-modules/pgcli/default.nix index f60a5fd9dae5..4f21f9bb05b1 100644 --- a/pkgs/development/python-modules/pgcli/default.nix +++ b/pkgs/development/python-modules/pgcli/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, cli-helpers -, click -, configobj -, prompt-toolkit -, psycopg -, pygments -, sqlparse -, pgspecial -, setproctitle -, keyring -, pendulum -, pytestCheckHook -, sshtunnel -, mock +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + cli-helpers, + click, + configobj, + prompt-toolkit, + psycopg, + pygments, + sqlparse, + pgspecial, + setproctitle, + keyring, + pendulum, + pytestCheckHook, + sshtunnel, + mock, }: # this is a pythonPackage because of the ipython line magics in pgcli.magic @@ -45,7 +46,10 @@ buildPythonPackage rec { sshtunnel ]; - nativeCheckInputs = [ pytestCheckHook mock ]; + nativeCheckInputs = [ + pytestCheckHook + mock + ]; disabledTests = lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ]; @@ -59,6 +63,9 @@ buildPythonPackage rec { homepage = "https://pgcli.com"; changelog = "https://github.com/dbcli/pgcli/raw/v${version}/changelog.rst"; license = licenses.bsd3; - maintainers = with maintainers; [ dywedir SuperSandro2000 ]; + maintainers = with maintainers; [ + dywedir + SuperSandro2000 + ]; }; } diff --git a/pkgs/development/python-modules/pglast/default.nix b/pkgs/development/python-modules/pglast/default.nix index 7e5208c1bcd7..4fe0061f3392 100644 --- a/pkgs/development/python-modules/pglast/default.nix +++ b/pkgs/development/python-modules/pglast/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytest, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { hash = "sha256-mGP7o52Wun6AdE2jMAJBmLR10EmN50qzbMzB06BFXMg="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; postPatch = '' substituteInPlace setup.cfg \ --replace "--cov=pglast --cov-report term-missing" "" ''; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; # pytestCheckHook doesn't work # ImportError: cannot import name 'parse_sql' from 'pglast' diff --git a/pkgs/development/python-modules/pgmpy/default.nix b/pkgs/development/python-modules/pgmpy/default.nix index a953b575b591..ad6b248b0f39 100644 --- a/pkgs/development/python-modules/pgmpy/default.nix +++ b/pkgs/development/python-modules/pgmpy/default.nix @@ -1,33 +1,34 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, networkx -, numpy -, scipy -, scikit-learn -, pandas -, pyparsing -, torch -, statsmodels -, tqdm -, joblib -, opt-einsum -# check inputs -, pytestCheckHook -, pytest-cov -, coverage -, mock -, black +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + networkx, + numpy, + scipy, + scikit-learn, + pandas, + pyparsing, + torch, + statsmodels, + tqdm, + joblib, + opt-einsum, + # check inputs + pytestCheckHook, + pytest-cov, + coverage, + mock, + black, }: let pname = "pgmpy"; version = "0.1.25"; - # optional-dependencies = { - # all = [ daft ]; - # }; in +# optional-dependencies = { +# all = [ daft ]; +# }; buildPythonPackage { inherit pname version; format = "setuptools"; diff --git a/pkgs/development/python-modules/pgpdump/default.nix b/pkgs/development/python-modules/pgpdump/default.nix index d3f87c9e1947..832b2e46c960 100644 --- a/pkgs/development/python-modules/pgpdump/default.nix +++ b/pkgs/development/python-modules/pgpdump/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "https://github.com/toofishes/python-pgpdump"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/pgpy/default.nix b/pkgs/development/python-modules/pgpy/default.nix index fc9c0c656961..d9366a754276 100644 --- a/pkgs/development/python-modules/pgpy/default.nix +++ b/pkgs/development/python-modules/pgpy/default.nix @@ -1,11 +1,12 @@ -{ lib -, pythonOlder -, fetchFromGitHub -, buildPythonPackage -, setuptools -, pyasn1 -, cryptography -, pytestCheckHook +{ + lib, + pythonOlder, + fetchFromGitHub, + buildPythonPackage, + setuptools, + pyasn1, + cryptography, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyasn1 cryptography ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/SecurityInnovation/PGPy"; @@ -44,6 +41,9 @@ buildPythonPackage rec { programs, conforming to the OpenPGP specification per RFC 4880. ''; license = licenses.bsd3; - maintainers = with maintainers; [ eadwu dotlambda ]; + maintainers = with maintainers; [ + eadwu + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/pgsanity/default.nix b/pkgs/development/python-modules/pgsanity/default.nix index ea133ad8c200..c0a4919f8a72 100644 --- a/pkgs/development/python-modules/pgsanity/default.nix +++ b/pkgs/development/python-modules/pgsanity/default.nix @@ -1,9 +1,10 @@ -{ lib -, python -, fetchPypi -, buildPythonPackage -, postgresql -, unittestCheckHook +{ + lib, + python, + fetchPypi, + buildPythonPackage, + postgresql, + unittestCheckHook, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { sha256 = "de0bbd6fe4f98bf5139cb5f466eac2e2abaf5a7b050b9e4867b87bf360873173"; }; - nativeCheckInputs = [ unittestCheckHook postgresql ]; + nativeCheckInputs = [ + unittestCheckHook + postgresql + ]; propagatedBuildInputs = [ postgresql ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pgvector/default.nix b/pkgs/development/python-modules/pgvector/default.nix index 383029504b54..208165e65fbc 100644 --- a/pkgs/development/python-modules/pgvector/default.nix +++ b/pkgs/development/python-modules/pgvector/default.nix @@ -1,19 +1,20 @@ -{ lib -, asyncpg -, buildPythonPackage -, django -, fetchFromGitHub -, numpy -, peewee -, postgresql -, postgresqlTestHook -, psycopg -, psycopg2 -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, sqlalchemy -, sqlmodel +{ + lib, + asyncpg, + buildPythonPackage, + django, + fetchFromGitHub, + numpy, + peewee, + postgresql, + postgresqlTestHook, + psycopg, + psycopg2, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + sqlalchemy, + sqlmodel, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-XKoaEwLW59pV4Dwis7p2L65XoO2zUEa1kXxz6Lgs2d8="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ asyncpg diff --git a/pkgs/development/python-modules/phik/default.nix b/pkgs/development/python-modules/phik/default.nix index bc7dd2a58265..af3c33f908be 100644 --- a/pkgs/development/python-modules/phik/default.nix +++ b/pkgs/development/python-modules/phik/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, cmake -, fetchFromGitHub -, joblib -, matplotlib -, ninja -, numpy -, pandas -, pathspec -, pyproject-metadata -, pybind11 -, pytestCheckHook -, pythonOlder -, scikit-build-core -, scipy +{ + lib, + buildPythonPackage, + cmake, + fetchFromGitHub, + joblib, + matplotlib, + ninja, + numpy, + pandas, + pathspec, + pyproject-metadata, + pybind11, + pytestCheckHook, + pythonOlder, + scikit-build-core, + scipy, }: buildPythonPackage rec { @@ -47,16 +48,12 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Uses scikit-build-core to drive build process dontUseCmakeConfigure = true; - pythonImportsCheck = [ - "phik" - ]; + pythonImportsCheck = [ "phik" ]; preCheck = '' # import from $out diff --git a/pkgs/development/python-modules/phone-modem/default.nix b/pkgs/development/python-modules/phone-modem/default.nix index 8ec54bd84012..aea3e26e3e6a 100644 --- a/pkgs/development/python-modules/phone-modem/default.nix +++ b/pkgs/development/python-modules/phone-modem/default.nix @@ -1,8 +1,9 @@ -{ lib -, aioserial -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aioserial, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { --replace "aioserial==1.3.0" "aioserial" ''; - propagatedBuildInputs = [ - aioserial - ]; + propagatedBuildInputs = [ aioserial ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/phonemizer/default.nix b/pkgs/development/python-modules/phonemizer/default.nix index 26a95b1d5847..ab45d086eacd 100644 --- a/pkgs/development/python-modules/phonemizer/default.nix +++ b/pkgs/development/python-modules/phonemizer/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, substituteAll -, buildPythonPackage -, fetchPypi -, joblib -, segments -, attrs -, dlinfo -, typing-extensions -, espeak-ng -, pytestCheckHook -, pytest-cov +{ + lib, + stdenv, + substituteAll, + buildPythonPackage, + fetchPypi, + joblib, + segments, + attrs, + dlinfo, + typing-extensions, + espeak-ng, + pytestCheckHook, + pytest-cov, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/phonenumbers/default.nix b/pkgs/development/python-modules/phonenumbers/default.nix index 85153b6fa905..cd9b32c97b32 100644 --- a/pkgs/development/python-modules/phonenumbers/default.nix +++ b/pkgs/development/python-modules/phonenumbers/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-fCZ2vge30PdEEeJ14GYDgKDsPuDTWfBw1xlCS9LF9i4="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/*.py" - ]; + pytestFlagsArray = [ "tests/*.py" ]; - pythonImportsCheck = [ - "phonenumbers" - ]; + pythonImportsCheck = [ "phonenumbers" ]; meta = with lib; { description = "Python module for handling international phone numbers"; diff --git a/pkgs/development/python-modules/phonopy/default.nix b/pkgs/development/python-modules/phonopy/default.nix index f0c443136adf..2a01d74be69f 100644 --- a/pkgs/development/python-modules/phonopy/default.nix +++ b/pkgs/development/python-modules/phonopy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pyyaml -, matplotlib -, h5py -, scipy -, spglib -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pyyaml, + matplotlib, + h5py, + scipy, + spglib, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-xJohROJNAPdEITtM/VncAYL8ASkfgThKy8XXnqiS3hU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ h5py @@ -37,18 +36,14 @@ buildPythonPackage rec { spglib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # prevent pytest from importing local directory preCheck = '' rm -r phonopy ''; - pythonImportsCheck = [ - "phonopy" - ]; + pythonImportsCheck = [ "phonopy" ]; meta = with lib; { description = "Modulefor phonon calculations at harmonic and quasi-harmonic levels"; diff --git a/pkgs/development/python-modules/phpserialize/default.nix b/pkgs/development/python-modules/phpserialize/default.nix index 5c5d9929100d..66b068c9bb87 100644 --- a/pkgs/development/python-modules/phpserialize/default.nix +++ b/pkgs/development/python-modules/phpserialize/default.nix @@ -1,4 +1,8 @@ -{lib, buildPythonPackage, fetchPypi}: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "phpserialize"; diff --git a/pkgs/development/python-modules/phx-class-registry/default.nix b/pkgs/development/python-modules/phx-class-registry/default.nix index 0997f7987ada..8843e0039ad8 100644 --- a/pkgs/development/python-modules/phx-class-registry/default.nix +++ b/pkgs/development/python-modules/phx-class-registry/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,18 +18,17 @@ buildPythonPackage rec { hash = "sha256-kJbyUzyklVSvW6bBxTTTrY+WhfcV0GUf/+Pzyv+7sEA="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "class_registry" - ]; + pythonImportsCheck = [ "class_registry" ]; meta = with lib; { description = "Factory and registry pattern for Python classes"; homepage = "https://class-registry.readthedocs.io/en/latest/"; license = licenses.mit; - maintainers = with maintainers; [ hrdinka tomhoule ]; + maintainers = with maintainers; [ + hrdinka + tomhoule + ]; }; } diff --git a/pkgs/development/python-modules/pi1wire/default.nix b/pkgs/development/python-modules/pi1wire/default.nix index 6d3debdcaa2f..ca57c6fd8b35 100644 --- a/pkgs/development/python-modules/pi1wire/default.nix +++ b/pkgs/development/python-modules/pi1wire/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-l/5w71QsAW4BvILOaLdUVvQ8xxUm1ZTzUESRFzUgtic="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ "test_find_all_sensors" # flaky diff --git a/pkgs/development/python-modules/piano-transcription-inference/default.nix b/pkgs/development/python-modules/piano-transcription-inference/default.nix index be46384649be..4dc5dd3f552b 100644 --- a/pkgs/development/python-modules/piano-transcription-inference/default.nix +++ b/pkgs/development/python-modules/piano-transcription-inference/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, fetchurl -, librosa -, matplotlib -, mido -, torch -, torchlibrosa +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + fetchurl, + librosa, + matplotlib, + mido, + torch, + torchlibrosa, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/piccata/default.nix b/pkgs/development/python-modules/piccata/default.nix index 20bbc0066d23..847bd778a885 100644 --- a/pkgs/development/python-modules/piccata/default.nix +++ b/pkgs/development/python-modules/piccata/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-Vuhwt+esTkvyEIRVYaRGvNMTAXVWBBv/6lpaxN5RrBA="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # No communication possible in the sandbox "test_client_server_communication" ]; - pythonImportsCheck = [ - "piccata" - ]; + pythonImportsCheck = [ "piccata" ]; meta = with lib; { description = "Simple CoAP (RFC7252) toolkit"; diff --git a/pkgs/development/python-modules/piccolo-theme/default.nix b/pkgs/development/python-modules/piccolo-theme/default.nix index 56b51f1504ed..6bb794e7f567 100644 --- a/pkgs/development/python-modules/piccolo-theme/default.nix +++ b/pkgs/development/python-modules/piccolo-theme/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, sphinx }: +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, +}: buildPythonPackage rec { pname = "piccolo-theme"; @@ -11,16 +16,17 @@ buildPythonPackage rec { hash = "sha256-TAbaUnPfAH17BYJqbkSYgNzwmpJkIXGCx1UkJmDML4g="; }; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; pythonImportsCheck = [ "piccolo_theme" ]; meta = with lib; { description = "Clean and modern Sphinx theme"; homepage = "https://piccolo-theme.readthedocs.io"; - license = with licenses; [ mit asl20 ]; + license = with licenses; [ + mit + asl20 + ]; maintainers = with maintainers; [ loicreynier ]; platforms = platforms.unix; }; diff --git a/pkgs/development/python-modules/pickleshare/default.nix b/pkgs/development/python-modules/pickleshare/default.nix index 52ddc9367251..be52d4d0e4f1 100644 --- a/pkgs/development/python-modules/pickleshare/default.nix +++ b/pkgs/development/python-modules/pickleshare/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, path +{ + lib, + buildPythonPackage, + fetchPypi, + path, }: buildPythonPackage rec { @@ -24,5 +25,4 @@ buildPythonPackage rec { homepage = "https://github.com/vivainio/pickleshare"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/picobox/default.nix b/pkgs/development/python-modules/picobox/default.nix index 221493eb2194..b180c5618dac 100644 --- a/pkgs/development/python-modules/picobox/default.nix +++ b/pkgs/development/python-modules/picobox/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, hatchling -, hatch-vcs -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + hatchling, + hatch-vcs, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "picobox" - ]; + pythonImportsCheck = [ "picobox" ]; meta = with lib; { description = "Opinionated dependency injection framework"; diff --git a/pkgs/development/python-modules/picos/default.nix b/pkgs/development/python-modules/picos/default.nix index 5bc5e35c6332..7717cc5f0a60 100644 --- a/pkgs/development/python-modules/picos/default.nix +++ b/pkgs/development/python-modules/picos/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, numpy -, cvxopt -, python -, networkx +{ + lib, + buildPythonPackage, + fetchFromGitLab, + numpy, + cvxopt, + python, + networkx, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { }; # Needed only for the tests - nativeCheckInputs = [ - networkx - ]; + nativeCheckInputs = [ networkx ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/picosvg/default.nix b/pkgs/development/python-modules/picosvg/default.nix index 74a6b408f6a8..2e938d5115d8 100644 --- a/pkgs/development/python-modules/picosvg/default.nix +++ b/pkgs/development/python-modules/picosvg/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, absl-py -, lxml -, skia-pathops -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + absl-py, + lxml, + skia-pathops, + pytestCheckHook, }: buildPythonPackage rec { pname = "picosvg"; @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-jG1rfamegnX8GXDwqkGFBFzUeycRLDObJvGbxNk6OpM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ absl-py @@ -30,9 +29,7 @@ buildPythonPackage rec { skia-pathops ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # a few tests are failing on aarch64 doCheck = !stdenv.isAarch64; diff --git a/pkgs/development/python-modules/pid/default.nix b/pkgs/development/python-modules/pid/default.nix index de7856accabc..7c50878f92d6 100644 --- a/pkgs/development/python-modules/pid/default.nix +++ b/pkgs/development/python-modules/pid/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + nose, }: buildPythonPackage rec { @@ -24,5 +25,4 @@ buildPythonPackage rec { homepage = "https://github.com/trbs/pid/"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/piexif/default.nix b/pkgs/development/python-modules/piexif/default.nix index f2d7dbe2b11a..9abd4d5cdc10 100644 --- a/pkgs/development/python-modules/piexif/default.nix +++ b/pkgs/development/python-modules/piexif/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pillow }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pillow, +}: buildPythonPackage rec { pname = "piexif"; diff --git a/pkgs/development/python-modules/pijuice/default.nix b/pkgs/development/python-modules/pijuice/default.nix index ecbe9343008b..1f4513ec6d89 100644 --- a/pkgs/development/python-modules/pijuice/default.nix +++ b/pkgs/development/python-modules/pijuice/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, smbus-cffi -, urwid +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + smbus-cffi, + urwid, }: buildPythonPackage rec { @@ -35,7 +36,10 @@ buildPythonPackage rec { cd Software/Source ''; - propagatedBuildInputs = [ smbus-cffi urwid ]; + propagatedBuildInputs = [ + smbus-cffi + urwid + ]; # Remove the following files from the package: # diff --git a/pkgs/development/python-modules/pika-pool/default.nix b/pkgs/development/python-modules/pika-pool/default.nix index 0374a5c16d0d..c70311b694d5 100644 --- a/pkgs/development/python-modules/pika-pool/default.nix +++ b/pkgs/development/python-modules/pika-pool/default.nix @@ -1,5 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi -, pika +{ + lib, + buildPythonPackage, + fetchPypi, + pika, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pika/default.nix b/pkgs/development/python-modules/pika/default.nix index ead9239f5cde..f6a71c1a37c1 100644 --- a/pkgs/development/python-modules/pika/default.nix +++ b/pkgs/development/python-modules/pika/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, gevent -, twisted -, tornado + # dependencies + gevent, + twisted, + tornado, -# tests -, nose2 -, mock + # tests + nose2, + mock, }: @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-60Z+y3YXazUghfnOy4e7HzM18iju5m5OEt4I3Wg6ty4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ gevent diff --git a/pkgs/development/python-modules/pikepdf/default.nix b/pkgs/development/python-modules/pikepdf/default.nix index ba0ce17b0c3a..c327e2e6df34 100644 --- a/pkgs/development/python-modules/pikepdf/default.nix +++ b/pkgs/development/python-modules/pikepdf/default.nix @@ -1,25 +1,26 @@ -{ lib -, attrs -, buildPythonPackage -, fetchFromGitHub -, hypothesis -, pythonOlder -, jbig2dec -, deprecated -, lxml -, mupdf-headless -, numpy -, packaging -, pillow -, psutil -, pybind11 -, pytest-xdist -, pytestCheckHook -, python-dateutil -, python-xmp-toolkit -, qpdf -, setuptools -, substituteAll +{ + lib, + attrs, + buildPythonPackage, + fetchFromGitHub, + hypothesis, + pythonOlder, + jbig2dec, + deprecated, + lxml, + mupdf-headless, + numpy, + packaging, + pillow, + psutil, + pybind11, + pytest-xdist, + pytestCheckHook, + python-dateutil, + python-xmp-toolkit, + qpdf, + setuptools, + substituteAll, }: buildPythonPackage rec { @@ -55,9 +56,7 @@ buildPythonPackage rec { --replace "shims_enabled = not cflags_defined" "shims_enabled = False" ''; - buildInputs = [ - qpdf - ]; + buildInputs = [ qpdf ]; nativeBuildInputs = [ pybind11 @@ -88,7 +87,10 @@ buildPythonPackage rec { homepage = "https://github.com/pikepdf/pikepdf"; description = "Read and write PDFs with Python, powered by qpdf"; license = licenses.mpl20; - maintainers = with maintainers; [ kiwi dotlambda ]; + maintainers = with maintainers; [ + kiwi + dotlambda + ]; changelog = "https://github.com/pikepdf/pikepdf/blob/${src.rev}/docs/releasenotes/version${lib.versions.major version}.rst"; }; } diff --git a/pkgs/development/python-modules/pilkit/default.nix b/pkgs/development/python-modules/pilkit/default.nix index 76f6238349a5..8b7f47c3dc31 100644 --- a/pkgs/development/python-modules/pilkit/default.nix +++ b/pkgs/development/python-modules/pilkit/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pillow -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pillow, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-NmD9PFCkz3lz4AnGoQUpkt35q0zvDVm+kx7lVDFBcHk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; nativeCheckInputs = [ mock @@ -42,9 +39,7 @@ buildPythonPackage rec { --replace "Image.ANTIALIAS" "Image.Resampling.LANCZOS" ''; - pythonImportsCheck = [ - "pilkit" - ]; + pythonImportsCheck = [ "pilkit" ]; meta = with lib; { description = "A collection of utilities and processors for the Python Imaging Library"; diff --git a/pkgs/development/python-modules/pillow-heif/default.nix b/pkgs/development/python-modules/pillow-heif/default.nix index d91408fc864d..4674a8b39c99 100644 --- a/pkgs/development/python-modules/pillow-heif/default.nix +++ b/pkgs/development/python-modules/pillow-heif/default.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cmake -, nasm -, pkg-config -, setuptools + # build-system + cmake, + nasm, + pkg-config, + setuptools, -# native dependencies -, libheif -, libaom -, libde265 -, x265 + # native dependencies + libheif, + libaom, + libde265, + x265, -# dependencies -, pillow + # dependencies + pillow, -# tests -, opencv4 -, numpy -, pympler -, pytestCheckHook + # tests + opencv4, + numpy, + pympler, + pytestCheckHook, }: buildPythonPackage rec { @@ -64,13 +65,9 @@ buildPythonPackage rec { RELEASE_FULL_FLAG = 1; }; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; - pythonImportsCheck = [ - "pillow_heif" - ]; + pythonImportsCheck = [ "pillow_heif" ]; nativeCheckInputs = [ opencv4 @@ -79,29 +76,35 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # Time based - "test_decode_threads" - ] ++ lib.optionals stdenv.isDarwin [ - # https://github.com/bigcat88/pillow_heif/issues/89 - # not reproducible in nixpkgs - "test_opencv_crash" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # RuntimeError: Encoder plugin generated an error: Unsupported bit depth: Bit depth not supported by x265 - "test_open_heif_compare_non_standard_modes_data" - "test_open_save_disable_16bit" - "test_save_bgr_16bit_to_10_12_bit" - "test_save_bgra_16bit_to_10_12_bit" - "test_premultiplied_alpha" - "test_hdr_save" - "test_I_color_modes_to_10_12_bit" - ]; + disabledTests = + [ + # Time based + "test_decode_threads" + ] + ++ lib.optionals stdenv.isDarwin [ + # https://github.com/bigcat88/pillow_heif/issues/89 + # not reproducible in nixpkgs + "test_opencv_crash" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # RuntimeError: Encoder plugin generated an error: Unsupported bit depth: Bit depth not supported by x265 + "test_open_heif_compare_non_standard_modes_data" + "test_open_save_disable_16bit" + "test_save_bgr_16bit_to_10_12_bit" + "test_save_bgra_16bit_to_10_12_bit" + "test_premultiplied_alpha" + "test_hdr_save" + "test_I_color_modes_to_10_12_bit" + ]; meta = { changelog = "https://github.com/bigcat88/pillow_heif/releases/tag/v${version}"; description = "Python library for working with HEIF images and plugin for Pillow"; homepage = "https://github.com/bigcat88/pillow_heif"; - license = with lib.licenses; [ bsd3 lgpl3 ]; + license = with lib.licenses; [ + bsd3 + lgpl3 + ]; maintainers = with lib.maintainers; [ dandellion ]; }; } diff --git a/pkgs/development/python-modules/pillow-simd/default.nix b/pkgs/development/python-modules/pillow-simd/default.nix index 55842f20019d..39124771ee6f 100644 --- a/pkgs/development/python-modules/pillow-simd/default.nix +++ b/pkgs/development/python-modules/pillow-simd/default.nix @@ -1,37 +1,62 @@ -{ lib, stdenv, buildPythonPackage, fetchFromGitHub, isPyPy, isPy3k -, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2 -, libxcb, tk, libX11, openjpeg, libimagequant, pyroma, numpy, defusedxml -, pytestCheckHook, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + isPyPy, + isPy3k, + olefile, + freetype, + libjpeg, + zlib, + libtiff, + libwebp, + libxcrypt, + tcl, + lcms2, + libxcb, + tk, + libX11, + openjpeg, + libimagequant, + pyroma, + numpy, + defusedxml, + pytestCheckHook, + setuptools, }@args: -import ../pillow/generic.nix (rec { - pname = "Pillow-SIMD"; - # check for release version on https://pypi.org/project/Pillow-SIMD/#history - # does not match the latest pillow release version! - version = "9.0.0.post1"; - format = "setuptools"; +import ../pillow/generic.nix ( + rec { + pname = "Pillow-SIMD"; + # check for release version on https://pypi.org/project/Pillow-SIMD/#history + # does not match the latest pillow release version! + version = "9.0.0.post1"; + format = "setuptools"; - disabled = !isPy3k; + disabled = !isPy3k; - src = fetchFromGitHub { - owner = "uploadcare"; - repo = "pillow-simd"; - rev = "v${version}"; - hash = "sha256-qTZYhgHjVMXqoYl3mG1xVrFaWrPidSY8HlyFQizV27Y="; - }; + src = fetchFromGitHub { + owner = "uploadcare"; + repo = "pillow-simd"; + rev = "v${version}"; + hash = "sha256-qTZYhgHjVMXqoYl3mG1xVrFaWrPidSY8HlyFQizV27Y="; + }; - meta = with lib; { - broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; - homepage = "https://python-pillow.github.io/pillow-perf/"; - description = "The friendly PIL fork - SIMD version"; - longDescription = '' - Pillow-SIMD is "following" Pillow. Pillow-SIMD versions are 100% compatible drop-in replacements for Pillow of the same version. + meta = with lib; { + broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin; + homepage = "https://python-pillow.github.io/pillow-perf/"; + description = "The friendly PIL fork - SIMD version"; + longDescription = '' + Pillow-SIMD is "following" Pillow. Pillow-SIMD versions are 100% compatible drop-in replacements for Pillow of the same version. - SIMD stands for "single instruction, multiple data" and its essence is in performing the same operation on multiple data points simultaneously by using multiple processing elements. Common CPU SIMD instruction sets are MMX, SSE-SSE4, AVX, AVX2, AVX512, NEON. + SIMD stands for "single instruction, multiple data" and its essence is in performing the same operation on multiple data points simultaneously by using multiple processing elements. Common CPU SIMD instruction sets are MMX, SSE-SSE4, AVX, AVX2, AVX512, NEON. - Currently, Pillow-SIMD can be compiled with SSE4 (default) or AVX2 support. - ''; - license = licenses.hpnd; - maintainers = with maintainers; [ ]; - }; -} // args ) + Currently, Pillow-SIMD can be compiled with SSE4 (default) or AVX2 support. + ''; + license = licenses.hpnd; + maintainers = with maintainers; [ ]; + }; + } + // args +) diff --git a/pkgs/development/python-modules/pillow/default.nix b/pkgs/development/python-modules/pillow/default.nix index f320000eecdc..fdff3709f3cd 100644 --- a/pkgs/development/python-modules/pillow/default.nix +++ b/pkgs/development/python-modules/pillow/default.nix @@ -1,42 +1,77 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, isPyPy -, defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11 -, libxcb, openjpeg, libimagequant, numpy, pytestCheckHook, setuptools -# for passthru.tests -, imageio, matplotlib, pilkit, pydicom, reportlab, sage +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + isPyPy, + defusedxml, + olefile, + freetype, + libjpeg, + zlib, + libtiff, + libwebp, + libxcrypt, + tcl, + lcms2, + tk, + libX11, + libxcb, + openjpeg, + libimagequant, + numpy, + pytestCheckHook, + setuptools, + # for passthru.tests + imageio, + matplotlib, + pilkit, + pydicom, + reportlab, + sage, }@args: -import ./generic.nix (rec { - pname = "pillow"; - version = "10.3.0"; - format = "pyproject"; - - disabled = pythonOlder "3.8"; - - src = fetchPypi { +import ./generic.nix ( + rec { pname = "pillow"; - inherit version; - hash = "sha256-nSRV+/RMkUhAx5PomqgtDhdjoUJToAB0NxmuWUaBSy0="; - }; + version = "10.3.0"; + format = "pyproject"; - passthru.tests = { - inherit imageio matplotlib pilkit pydicom reportlab sage; - }; + disabled = pythonOlder "3.8"; - meta = with lib; { - homepage = "https://python-pillow.org/"; - description = "The friendly PIL fork (Python Imaging Library)"; - longDescription = '' - The Python Imaging Library (PIL) adds image processing - capabilities to your Python interpreter. This library - supports many file formats, and provides powerful image - processing and graphics capabilities. - ''; - license = licenses.hpnd; - maintainers = with maintainers; [ goibhniu prikhi ]; - }; -} // args ) + src = fetchPypi { + pname = "pillow"; + inherit version; + hash = "sha256-nSRV+/RMkUhAx5PomqgtDhdjoUJToAB0NxmuWUaBSy0="; + }; + + passthru.tests = { + inherit + imageio + matplotlib + pilkit + pydicom + reportlab + sage + ; + }; + + meta = with lib; { + homepage = "https://python-pillow.org/"; + description = "The friendly PIL fork (Python Imaging Library)"; + longDescription = '' + The Python Imaging Library (PIL) adds image processing + capabilities to your Python interpreter. This library + supports many file formats, and provides powerful image + processing and graphics capabilities. + ''; + license = licenses.hpnd; + maintainers = with maintainers; [ + goibhniu + prikhi + ]; + }; + } + // args +) diff --git a/pkgs/development/python-modules/pillow/generic.nix b/pkgs/development/python-modules/pillow/generic.nix index 33276d3abd08..83816d8958ac 100644 --- a/pkgs/development/python-modules/pillow/generic.nix +++ b/pkgs/development/python-modules/pillow/generic.nix @@ -1,17 +1,26 @@ -{ pname -, version -, disabled -, src -, patches ? [] -, meta -, passthru ? {} -, ... +{ + pname, + version, + disabled, + src, + patches ? [ ], + meta, + passthru ? { }, + ... }@args: with args; buildPythonPackage rec { - inherit pname version format src meta passthru patches; + inherit + pname + version + format + src + meta + passthru + patches + ; # Disable imagefont tests, because they don't work well with infinality: # https://github.com/python-pillow/Pillow/issues/1259 @@ -19,31 +28,52 @@ buildPythonPackage rec { rm Tests/test_imagefont.py ''; - disabledTests = [ - # Code quality mismathch 9 vs 10 - "test_pyroma" + disabledTests = + [ + # Code quality mismathch 9 vs 10 + "test_pyroma" - # pillow-simd - "test_roundtrip" - "test_basic" - "test_custom_metadata" - ] ++ lib.optionals stdenv.isDarwin [ - # Disable darwin tests which require executables: `iconutil` and `screencapture` - "test_grab" - "test_grabclipboard" - "test_save" + # pillow-simd + "test_roundtrip" + "test_basic" + "test_custom_metadata" + ] + ++ lib.optionals stdenv.isDarwin [ + # Disable darwin tests which require executables: `iconutil` and `screencapture` + "test_grab" + "test_grabclipboard" + "test_save" + ]; + + propagatedBuildInputs = [ + olefile + ] ++ lib.optionals (lib.versionAtLeast version "8.2.0") [ defusedxml ]; + + nativeCheckInputs = [ + pytestCheckHook + numpy ]; - propagatedBuildInputs = [ olefile ] - ++ lib.optionals (lib.versionAtLeast version "8.2.0") [ defusedxml ]; - - nativeCheckInputs = [ pytestCheckHook numpy ]; - nativeBuildInputs = [ setuptools ]; - buildInputs = [ freetype libjpeg openjpeg libimagequant zlib libtiff libwebp libxcrypt tcl lcms2 ] + buildInputs = + [ + freetype + libjpeg + openjpeg + libimagequant + zlib + libtiff + libwebp + libxcrypt + tcl + lcms2 + ] ++ lib.optionals (lib.versionAtLeast version "7.1.0") [ libxcb ] - ++ lib.optionals (isPyPy) [ tk libX11 ]; + ++ lib.optionals (isPyPy) [ + tk + libX11 + ]; # NOTE: we use LCMS_ROOT as WEBP root since there is not other setting for webp. # NOTE: The Pillow install script will, by default, add paths like /usr/lib @@ -54,24 +84,27 @@ buildPythonPackage rec { # setting here, instead of passing the `--disable-platform-guessing` # command-line option, since the command-line option doesn't work when we run # tests. - preConfigure = let - libinclude' = pkg: ''"${pkg.out}/lib", "${pkg.out}/include"''; - libinclude = pkg: ''"${pkg.out}/lib", "${pkg.dev}/include"''; - in '' - sed -i "setup.py" \ - -e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = ${libinclude freetype}|g ; - s|^JPEG_ROOT =.*$|JPEG_ROOT = ${libinclude libjpeg}|g ; - s|^JPEG2K_ROOT =.*$|JPEG2K_ROOT = ${libinclude openjpeg}|g ; - s|^IMAGEQUANT_ROOT =.*$|IMAGEQUANT_ROOT = ${libinclude' libimagequant}|g ; - s|^ZLIB_ROOT =.*$|ZLIB_ROOT = ${libinclude zlib}|g ; - s|^LCMS_ROOT =.*$|LCMS_ROOT = ${libinclude lcms2}|g ; - s|^TIFF_ROOT =.*$|TIFF_ROOT = ${libinclude libtiff}|g ; - s|^TCL_ROOT=.*$|TCL_ROOT = ${libinclude' tcl}|g ; - s|self\.disable_platform_guessing = None|self.disable_platform_guessing = True|g ;' - export LDFLAGS="$LDFLAGS -L${libwebp}/lib" - export CFLAGS="$CFLAGS -I${libwebp}/include" - '' + lib.optionalString (lib.versionAtLeast version "7.1.0") '' - export LDFLAGS="$LDFLAGS -L${libxcb}/lib" - export CFLAGS="$CFLAGS -I${libxcb.dev}/include" - ''; + preConfigure = + let + libinclude' = pkg: ''"${pkg.out}/lib", "${pkg.out}/include"''; + libinclude = pkg: ''"${pkg.out}/lib", "${pkg.dev}/include"''; + in + '' + sed -i "setup.py" \ + -e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = ${libinclude freetype}|g ; + s|^JPEG_ROOT =.*$|JPEG_ROOT = ${libinclude libjpeg}|g ; + s|^JPEG2K_ROOT =.*$|JPEG2K_ROOT = ${libinclude openjpeg}|g ; + s|^IMAGEQUANT_ROOT =.*$|IMAGEQUANT_ROOT = ${libinclude' libimagequant}|g ; + s|^ZLIB_ROOT =.*$|ZLIB_ROOT = ${libinclude zlib}|g ; + s|^LCMS_ROOT =.*$|LCMS_ROOT = ${libinclude lcms2}|g ; + s|^TIFF_ROOT =.*$|TIFF_ROOT = ${libinclude libtiff}|g ; + s|^TCL_ROOT=.*$|TCL_ROOT = ${libinclude' tcl}|g ; + s|self\.disable_platform_guessing = None|self.disable_platform_guessing = True|g ;' + export LDFLAGS="$LDFLAGS -L${libwebp}/lib" + export CFLAGS="$CFLAGS -I${libwebp}/include" + '' + + lib.optionalString (lib.versionAtLeast version "7.1.0") '' + export LDFLAGS="$LDFLAGS -L${libxcb}/lib" + export CFLAGS="$CFLAGS -I${libxcb.dev}/include" + ''; } diff --git a/pkgs/development/python-modules/pillowfight/default.nix b/pkgs/development/python-modules/pillowfight/default.nix index 097fb810ad88..e4536867e074 100644 --- a/pkgs/development/python-modules/pillowfight/default.nix +++ b/pkgs/development/python-modules/pillowfight/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "https://github.com/beanbaginc/pillowfight"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pims/default.nix b/pkgs/development/python-modules/pims/default.nix index 5de3ec424f60..579035c1df5d 100644 --- a/pkgs/development/python-modules/pims/default.nix +++ b/pkgs/development/python-modules/pims/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, imageio -, numpy -, pytestCheckHook -, pythonOlder -, scikit-image -, slicerator +{ + lib, + buildPythonPackage, + fetchFromGitHub, + imageio, + numpy, + pytestCheckHook, + pythonOlder, + scikit-image, + slicerator, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { scikit-image ]; - pythonImportsCheck = [ - "pims" - ]; + pythonImportsCheck = [ "pims" ]; pytestFlagsArray = [ "-W" diff --git a/pkgs/development/python-modules/pinboard/default.nix b/pkgs/development/python-modules/pinboard/default.nix index b7dab8e44fc8..6e8dacb5673a 100644 --- a/pkgs/development/python-modules/pinboard/default.nix +++ b/pkgs/development/python-modules/pinboard/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "pinboard"; diff --git a/pkgs/development/python-modules/pins/default.nix b/pkgs/development/python-modules/pins/default.nix index 3d02d7b03728..627bdd0e64e5 100644 --- a/pkgs/development/python-modules/pins/default.nix +++ b/pkgs/development/python-modules/pins/default.nix @@ -1,28 +1,29 @@ -{ lib -, adlfs -, appdirs -, buildPythonPackage -, fastparquet -, fetchFromGitHub -, fsspec -, gcsfs -, humanize -, importlib-metadata -, importlib-resources -, jinja2 -, joblib -, pandas -, pyarrow -, pytest-cases -, pytest-parallel -, pytestCheckHook -, pythonOlder -, pyyaml -, requests -, s3fs -, setuptools -, setuptools-scm -, xxhash +{ + lib, + adlfs, + appdirs, + buildPythonPackage, + fastparquet, + fetchFromGitHub, + fsspec, + gcsfs, + humanize, + importlib-metadata, + importlib-resources, + jinja2, + joblib, + pandas, + pyarrow, + pytest-cases, + pytest-parallel, + pytestCheckHook, + pythonOlder, + pyyaml, + requests, + s3fs, + setuptools, + setuptools-scm, + xxhash, }: buildPythonPackage rec { @@ -59,15 +60,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - aws = [ - s3fs - ]; - azure = [ - adlfs - ]; - gcs = [ - gcsfs - ]; + aws = [ s3fs ]; + azure = [ adlfs ]; + gcs = [ gcsfs ]; }; nativeCheckInputs = [ @@ -78,13 +73,9 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "pins" - ]; + pythonImportsCheck = [ "pins" ]; - pytestFlagsArray = [ - "pins/tests/" - ]; + pytestFlagsArray = [ "pins/tests/" ]; disabledTestPaths = [ # Tests require network access diff --git a/pkgs/development/python-modules/pint-pandas/default.nix b/pkgs/development/python-modules/pint-pandas/default.nix index d44648350223..33a982ce11ec 100644 --- a/pkgs/development/python-modules/pint-pandas/default.nix +++ b/pkgs/development/python-modules/pint-pandas/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, wheel -, pint -, pandas -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + wheel, + pint, + pandas, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pandas ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/pint/default.nix b/pkgs/development/python-modules/pint/default.nix index 9a9029aca062..30d02f2058b8 100644 --- a/pkgs/development/python-modules/pint/default.nix +++ b/pkgs/development/python-modules/pint/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# propagates -, typing-extensions + # propagates + typing-extensions, -# tests -, pytestCheckHook -, pytest-subtests -, pytest-benchmark -, numpy -, matplotlib -, uncertainties + # tests + pytestCheckHook, + pytest-subtests, + pytest-benchmark, + numpy, + matplotlib, + uncertainties, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook @@ -50,9 +49,7 @@ buildPythonPackage rec { uncertainties ]; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; preCheck = '' export HOME=$(mktemp -d) diff --git a/pkgs/development/python-modules/pip-api/default.nix b/pkgs/development/python-modules/pip-api/default.nix index 16f1f074d044..c6239ac4d151 100644 --- a/pkgs/development/python-modules/pip-api/default.nix +++ b/pkgs/development/python-modules/pip-api/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pip -, pretend -, pytestCheckHook -, pythonOlder -, setuptools -, virtualenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pip, + pretend, + pytestCheckHook, + pythonOlder, + setuptools, + virtualenv, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-bDM31YpVB0pZMqeGTCbnINSmJc03N0HuU8hcc8nnHgw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pip - ]; + propagatedBuildInputs = [ pip ]; nativeCheckInputs = [ pretend @@ -37,9 +34,7 @@ buildPythonPackage rec { virtualenv ]; - pythonImportsCheck = [ - "pip_api" - ]; + pythonImportsCheck = [ "pip_api" ]; disabledTests = [ "test_hash" diff --git a/pkgs/development/python-modules/pip-requirements-parser/default.nix b/pkgs/development/python-modules/pip-requirements-parser/default.nix index 84cc2ed513a1..e72824c804a4 100644 --- a/pkgs/development/python-modules/pip-requirements-parser/default.nix +++ b/pkgs/development/python-modules/pip-requirements-parser/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, pyparsing -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + pyparsing, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -24,22 +25,16 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ packaging pyparsing ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pip_requirements_parser" - ]; + pythonImportsCheck = [ "pip_requirements_parser" ]; disabledTests = [ "test_RequirementsFile_to_dict" diff --git a/pkgs/development/python-modules/pip-system-certs/default.nix b/pkgs/development/python-modules/pip-system-certs/default.nix index 5325550ee04e..0476aed56212 100644 --- a/pkgs/development/python-modules/pip-system-certs/default.nix +++ b/pkgs/development/python-modules/pip-system-certs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, wheel -, git-versioner -, wrapt +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + wheel, + git-versioner, + wrapt, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { git-versioner ]; - propagatedBuildInputs = [ - wrapt - ]; + propagatedBuildInputs = [ wrapt ]; pythonImportsCheck = [ "pip_system_certs.wrapt_requests" @@ -39,5 +38,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ slotThe ]; }; - } diff --git a/pkgs/development/python-modules/pip-tools/default.nix b/pkgs/development/python-modules/pip-tools/default.nix index ba8747cbe205..10f83a4203d8 100644 --- a/pkgs/development/python-modules/pip-tools/default.nix +++ b/pkgs/development/python-modules/pip-tools/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, build -, click -, fetchPypi -, pep517 -, pip -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, tomli -, tomli-w -, wheel +{ + lib, + stdenv, + buildPythonPackage, + build, + click, + fetchPypi, + pep517, + pip, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + tomli, + tomli-w, + wheel, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { patches = [ ./fix-setup-py-bad-syntax-detection.patch ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ build @@ -41,9 +40,7 @@ buildPythonPackage rec { pip setuptools wheel - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; __darwinAllowLocalNetworking = true; @@ -73,9 +70,7 @@ buildPythonPackage rec { "test_error_in_pyproject_toml" ]; - pythonImportsCheck = [ - "piptools" - ]; + pythonImportsCheck = [ "piptools" ]; meta = with lib; { description = "Keeps your pinned dependencies fresh"; diff --git a/pkgs/development/python-modules/pip/default.nix b/pkgs/development/python-modules/pip/default.nix index 72b7eb88df72..18b7ff1cacf8 100644 --- a/pkgs/development/python-modules/pip/default.nix +++ b/pkgs/development/python-modules/pip/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, installShellFiles -, mock -, scripttest -, setuptools -, virtualenv -, wheel -, pretend -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + installShellFiles, + mock, + scripttest, + setuptools, + virtualenv, + wheel, + pretend, + pytest, -# docs -, sphinx + # docs + sphinx, -# coupled downsteam dependencies -, pip-tools + # coupled downsteam dependencies + pip-tools, }: buildPythonPackage rec { @@ -71,7 +72,13 @@ buildPythonPackage rec { cd .. ''; - nativeCheckInputs = [ mock scripttest virtualenv pretend pytest ]; + nativeCheckInputs = [ + mock + scripttest + virtualenv + pretend + pytest + ]; # Pip wants pytest, but tests are not distributed doCheck = false; @@ -85,7 +92,9 @@ buildPythonPackage rec { --zsh <($out/bin/pip completion --zsh --no-cache-dir) ''; - passthru.tests = { inherit pip-tools; }; + passthru.tests = { + inherit pip-tools; + }; meta = { description = "The PyPA recommended tool for installing Python packages"; diff --git a/pkgs/development/python-modules/pipdate/default.nix b/pkgs/development/python-modules/pipdate/default.nix index 41aaf498d917..da4cef42adf9 100644 --- a/pkgs/development/python-modules/pipdate/default.nix +++ b/pkgs/development/python-modules/pipdate/default.nix @@ -1,14 +1,15 @@ -{ lib -, appdirs -, buildPythonPackage -, fetchPypi -, importlib-metadata -, packaging -, pythonOlder -, requests -, rich -, setuptools -, wheel +{ + lib, + appdirs, + buildPythonPackage, + fetchPypi, + importlib-metadata, + packaging, + pythonOlder, + requests, + rich, + setuptools, + wheel, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-G2t+wsVGj7cDbsnWss7XqKU421WqygPzAZkhbTu9Jks="; }; - nativeBuildInputs = [ - wheel - ]; + nativeBuildInputs = [ wheel ]; propagatedBuildInputs = [ appdirs @@ -32,9 +31,7 @@ buildPythonPackage rec { requests rich setuptools - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # Tests require network access and pythonImportsCheck requires configuration file doCheck = false; diff --git a/pkgs/development/python-modules/pipenv-poetry-migrate/default.nix b/pkgs/development/python-modules/pipenv-poetry-migrate/default.nix index 82707a5d98d1..9bb75ce697c4 100644 --- a/pkgs/development/python-modules/pipenv-poetry-migrate/default.nix +++ b/pkgs/development/python-modules/pipenv-poetry-migrate/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, poetry-core -, tomlkit -, typer -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + poetry-core, + tomlkit, + typer, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-+OkfuIwbDx6SN5lawDJZYBrjHn9rsT/FT+GQ2MOAtg0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ setuptools # for pkg_resources @@ -33,9 +32,7 @@ buildPythonPackage rec { typer ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "This is simple migration script, migrate pipenv to poetry"; diff --git a/pkgs/development/python-modules/piper-phonemize/default.nix b/pkgs/development/python-modules/piper-phonemize/default.nix index cd09567a61e3..9b8f929b4ea5 100644 --- a/pkgs/development/python-modules/piper-phonemize/default.nix +++ b/pkgs/development/python-modules/piper-phonemize/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, onnxruntime-native -, piper-phonemize-native -, pybind11 -, setuptools +{ + buildPythonPackage, + onnxruntime-native, + piper-phonemize-native, + pybind11, + setuptools, }: buildPythonPackage { @@ -20,9 +21,7 @@ buildPythonPackage { piper-phonemize-native.espeak-ng ]; - pythonImportsCheck = [ - "piper_phonemize" - ]; + pythonImportsCheck = [ "piper_phonemize" ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/pipx/default.nix b/pkgs/development/python-modules/pipx/default.nix index 39837783976a..916ac250e86f 100644 --- a/pkgs/development/python-modules/pipx/default.nix +++ b/pkgs/development/python-modules/pipx/default.nix @@ -1,17 +1,18 @@ -{ lib -, argcomplete -, buildPythonPackage -, fetchFromGitHub -, hatchling -, hatch-vcs -, installShellFiles -, packaging -, platformdirs -, pytestCheckHook -, pythonOlder -, tomli -, userpath -, git +{ + lib, + argcomplete, + buildPythonPackage, + fetchFromGitHub, + hatchling, + hatch-vcs, + installShellFiles, + packaging, + platformdirs, + pytestCheckHook, + pythonOlder, + tomli, + userpath, + git, }: buildPythonPackage rec { @@ -38,13 +39,9 @@ buildPythonPackage rec { packaging platformdirs userpath - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; nativeCheckInputs = [ pytestCheckHook @@ -84,7 +81,7 @@ buildPythonPackage rec { "test_skip_maintenance" ]; - postInstall = '' + postInstall = '' installShellCompletion --cmd pipx \ --bash <(${argcomplete}/bin/register-python-argcomplete pipx --shell bash) \ --zsh <(${argcomplete}/bin/register-python-argcomplete pipx --shell zsh) \ diff --git a/pkgs/development/python-modules/pivy/default.nix b/pkgs/development/python-modules/pivy/default.nix index ff5a1fdeafa7..2101b81f4826 100644 --- a/pkgs/development/python-modules/pivy/default.nix +++ b/pkgs/development/python-modules/pivy/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pkgs, + qtbase, + qmake, + soqt, +}: buildPythonPackage rec { pname = "pivy"; @@ -15,14 +23,26 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; nativeBuildInputs = with pkgs; [ - swig qmake cmake + swig + qmake + cmake ]; - buildInputs = with pkgs; with xorg; [ - coin3d soqt qtbase - libGLU libGL - libXi libXext libSM libICE libX11 - ]; + buildInputs = + with pkgs; + with xorg; + [ + coin3d + soqt + qtbase + libGLU + libGL + libXi + libXext + libSM + libICE + libX11 + ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${qtbase.dev}/include/QtCore" @@ -32,7 +52,7 @@ buildPythonPackage rec { ]; dontUseQmakeConfigure = true; - dontWrapQtApps =true; + dontWrapQtApps = true; doCheck = false; postPatch = '' @@ -46,5 +66,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = with maintainers; [ gebner ]; }; - } diff --git a/pkgs/development/python-modules/pixcat/default.nix b/pkgs/development/python-modules/pixcat/default.nix index e316e2c51630..0ca0a099f39b 100644 --- a/pkgs/development/python-modules/pixcat/default.nix +++ b/pkgs/development/python-modules/pixcat/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, blessed -, docopt -, pillow -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + blessed, + docopt, + pillow, + requests, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pixel-font-builder/default.nix b/pkgs/development/python-modules/pixel-font-builder/default.nix index d8908fe265ef..c38918280aa5 100644 --- a/pkgs/development/python-modules/pixel-font-builder/default.nix +++ b/pkgs/development/python-modules/pixel-font-builder/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, nix-update-script -, hatch-vcs -, hatchling -, bdffont -, brotli -, fonttools -, pypng -, pcffont -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + nix-update-script, + hatch-vcs, + hatchling, + bdffont, + brotli, + fonttools, + pypng, + pcffont, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { hash = "sha256-hBlTTIPx4TRgeXapVnSaKPUwseR3uYT0gcgKLGmmSZI="; }; - pythonRelaxDeps = [ - "fonttools" - ]; + pythonRelaxDeps = [ "fonttools" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; build-system = [ hatch-vcs diff --git a/pkgs/development/python-modules/pixel-ring/default.nix b/pkgs/development/python-modules/pixel-ring/default.nix index b0a7e3527328..1628276f5b19 100644 --- a/pkgs/development/python-modules/pixel-ring/default.nix +++ b/pkgs/development/python-modules/pixel-ring/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, pyusb -, spidev +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + pyusb, + spidev, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pixelmatch/default.nix b/pkgs/development/python-modules/pixelmatch/default.nix index b6a7b74701cb..bda5d66cf4ca 100644 --- a/pkgs/development/python-modules/pixelmatch/default.nix +++ b/pkgs/development/python-modules/pixelmatch/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchgit -, pillow -, poetry-core -, pytest-benchmark -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchgit, + pillow, + poetry-core, + pytest-benchmark, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { fetchLFS = true; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pillow @@ -33,13 +32,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; - pythonImportsCheck = [ - "pixelmatch" - ]; + pythonImportsCheck = [ "pixelmatch" ]; meta = with lib; { description = "Pixel-level image comparison library"; diff --git a/pkgs/development/python-modules/pkce/default.nix b/pkgs/development/python-modules/pkce/default.nix index e302e1c978ca..08539054316a 100644 --- a/pkgs/development/python-modules/pkce/default.nix +++ b/pkgs/development/python-modules/pkce/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pkg-about/default.nix b/pkgs/development/python-modules/pkg-about/default.nix index fafe0b2e9807..f94b8382274d 100644 --- a/pkgs/development/python-modules/pkg-about/default.nix +++ b/pkgs/development/python-modules/pkg-about/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, importlib-metadata -, importlib-resources -, setuptools -, packaging -, tomli -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + importlib-metadata, + importlib-resources, + setuptools, + packaging, + tomli, + pytestCheckHook, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pkg_about" - ]; + pythonImportsCheck = [ "pkg_about" ]; meta = with lib; { description = "Python metadata sharing at runtime"; diff --git a/pkgs/development/python-modules/pkgconfig/default.nix b/pkgs/development/python-modules/pkgconfig/default.nix index 89fc2fd32f74..aa69c7f286ca 100644 --- a/pkgs/development/python-modules/pkgconfig/default.nix +++ b/pkgs/development/python-modules/pkgconfig/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pkg-config -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pkg-config, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pkginfo/default.nix b/pkgs/development/python-modules/pkginfo/default.nix index 3a79cdbbf012..e0dcda5ff470 100644 --- a/pkgs/development/python-modules/pkginfo/default.nix +++ b/pkgs/development/python-modules/pkginfo/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-Xfc4NTmNENt5+O7NXNhrH20pMXWJ6nB5aZTUk5mvYpc="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pkginfo" - ]; + pythonImportsCheck = [ "pkginfo" ]; meta = with lib; { description = "Query metadatdata from sdists, bdists or installed packages"; diff --git a/pkgs/development/python-modules/pkginfo2/default.nix b/pkgs/development/python-modules/pkginfo2/default.nix index 74d05de7ad97..c46bf6f66ea6 100644 --- a/pkgs/development/python-modules/pkginfo2/default.nix +++ b/pkgs/development/python-modules/pkginfo2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pkginfo2" - ]; + pythonImportsCheck = [ "pkginfo2" ]; meta = with lib; { description = "Query metadatdata from sdists, bdists or installed packages"; diff --git a/pkgs/development/python-modules/pkgutil-resolve-name/default.nix b/pkgs/development/python-modules/pkgutil-resolve-name/default.nix index ddb610b53bcf..d1117276a1df 100644 --- a/pkgs/development/python-modules/pkgutil-resolve-name/default.nix +++ b/pkgs/development/python-modules/pkgutil-resolve-name/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchPypi -, fetchpatch -, lib -, nix-update-script -, pythonOlder -, flit-core +{ + buildPythonPackage, + fetchPypi, + fetchpatch, + lib, + nix-update-script, + pythonOlder, + flit-core, }: buildPythonPackage rec { pname = "pkgutil-resolve-name"; @@ -21,15 +22,14 @@ buildPythonPackage rec { patches = [ # Raise flit-core version constrains - (fetchpatch { # https://github.com/graingert/pkgutil-resolve-name/pull/5 + (fetchpatch { + # https://github.com/graingert/pkgutil-resolve-name/pull/5 url = "https://github.com/graingert/pkgutil-resolve-name/commit/042834290c735fa836bb308ce9e93c9f64d67cbe.patch"; hash = "sha256-M1rcrkdFcoFa3IncPnJaRhnXbelyk56QnMGtmgB6bvk="; }) ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pkuseg/default.nix b/pkgs/development/python-modules/pkuseg/default.nix index 1d25692cb5b2..5afc1ceeb89c 100644 --- a/pkgs/development/python-modules/pkuseg/default.nix +++ b/pkgs/development/python-modules/pkuseg/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, pythonAtLeast -, cython -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pythonAtLeast, + cython, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pkutils/default.nix b/pkgs/development/python-modules/pkutils/default.nix index e3957533ea99..9ad36f24c4e4 100644 --- a/pkgs/development/python-modules/pkutils/default.nix +++ b/pkgs/development/python-modules/pkutils/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose3 -, pythonOlder -, pythonRelaxDepsHook -, semver +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose3, + pythonOlder, + pythonRelaxDepsHook, + semver, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-AK+xX+LPz6IVLZedsqMUm7G28ue0s3pXgIzxS4EHHLE="; }; - pythonRelaxDeps = [ - "semver" - ]; + pythonRelaxDeps = [ "semver" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - propagatedBuildInputs = [ - semver - ]; + propagatedBuildInputs = [ semver ]; - nativeCheckInputs = [ - nose3 - ]; + nativeCheckInputs = [ nose3 ]; checkPhase = '' runHook preCheck @@ -43,9 +36,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "pkutils" - ]; + pythonImportsCheck = [ "pkutils" ]; meta = with lib; { description = "A Python packaging utility library"; diff --git a/pkgs/development/python-modules/plac/default.nix b/pkgs/development/python-modules/plac/default.nix index bc00253aafde..66aaa4e9425b 100644 --- a/pkgs/development/python-modules/plac/default.nix +++ b/pkgs/development/python-modules/plac/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "plac" - ]; + pythonImportsCheck = [ "plac" ]; meta = with lib; { description = "Parsing the Command Line the Easy Way"; diff --git a/pkgs/development/python-modules/plaid-python/default.nix b/pkgs/development/python-modules/plaid-python/default.nix index 88df10cfc7f5..84150bed715c 100644 --- a/pkgs/development/python-modules/plaid-python/default.nix +++ b/pkgs/development/python-modules/plaid-python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nulltype -, python-dateutil -, urllib3 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + nulltype, + python-dateutil, + urllib3, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Tests require a Client IP doCheck = false; - pythonImportsCheck = [ - "plaid" - ]; + pythonImportsCheck = [ "plaid" ]; meta = with lib; { description = "Python client library for the Plaid API and Link"; diff --git a/pkgs/development/python-modules/plantuml-markdown/default.nix b/pkgs/development/python-modules/plantuml-markdown/default.nix index 0ec4ad920fdd..c4e53362c78c 100644 --- a/pkgs/development/python-modules/plantuml-markdown/default.nix +++ b/pkgs/development/python-modules/plantuml-markdown/default.nix @@ -1,14 +1,15 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, plantuml -, markdown -, requests -, six -, runCommand -, writeText -, plantuml-markdown -, pythonOlder +{ + buildPythonPackage, + fetchFromGitHub, + lib, + plantuml, + markdown, + requests, + six, + runCommand, + writeText, + plantuml-markdown, + pythonOlder, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { # The package uses a custom script that downloads a certain version of plantuml for testing. doCheck = false; - pythonImportsCheck = [ - "plantuml_markdown" - ]; + pythonImportsCheck = [ "plantuml_markdown" ]; passthru.tests.example-doc = let @@ -47,10 +46,7 @@ buildPythonPackage rec { ``` ''; in - runCommand "plantuml-markdown-example-doc" - { - nativeBuildInputs = [ plantuml-markdown ]; - } '' + runCommand "plantuml-markdown-example-doc" { nativeBuildInputs = [ plantuml-markdown ]; } '' markdown_py -x plantuml_markdown ${exampleDoc} > $out ! grep -q "Error" $out diff --git a/pkgs/development/python-modules/plantuml/default.nix b/pkgs/development/python-modules/plantuml/default.nix index 1053403dcf71..068bbfd899af 100644 --- a/pkgs/development/python-modules/plantuml/default.nix +++ b/pkgs/development/python-modules/plantuml/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, # Runtime dependencies -, httplib2 -, six + httplib2, + six, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/plaster-pastedeploy/default.nix b/pkgs/development/python-modules/plaster-pastedeploy/default.nix index 722d06a10377..94ff14306b77 100644 --- a/pkgs/development/python-modules/plaster-pastedeploy/default.nix +++ b/pkgs/development/python-modules/plaster-pastedeploy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, plaster -, pastedeploy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + plaster, + pastedeploy, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { hash = "sha256-viYubS5BpyZIddqi/ihQy7BhVyi83JKCj9xyc244FBI="; }; - propagatedBuildInputs = [ plaster pastedeploy ]; + propagatedBuildInputs = [ + plaster + pastedeploy + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/plaster/default.nix b/pkgs/development/python-modules/plaster/default.nix index b0ce5c418df4..3585d4a7721b 100644 --- a/pkgs/development/python-modules/plaster/default.nix +++ b/pkgs/development/python-modules/plaster/default.nix @@ -1,5 +1,8 @@ -{ buildPythonPackage, fetchPypi -, pytest, pytest-cov +{ + buildPythonPackage, + fetchPypi, + pytest, + pytest-cov, }: buildPythonPackage rec { @@ -16,5 +19,8 @@ buildPythonPackage rec { py.test ''; - nativeCheckInputs = [ pytest pytest-cov ]; + nativeCheckInputs = [ + pytest + pytest-cov + ]; } diff --git a/pkgs/development/python-modules/platformdirs/default.nix b/pkgs/development/python-modules/platformdirs/default.nix index 7c45f33cb598..ac812994bc14 100644 --- a/pkgs/development/python-modules/platformdirs/default.nix +++ b/pkgs/development/python-modules/platformdirs/default.nix @@ -1,12 +1,13 @@ -{ lib -, appdirs -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + appdirs, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "platformdirs" - ]; + pythonImportsCheck = [ "platformdirs" ]; meta = with lib; { description = "Module for determining appropriate platform-specific directories"; diff --git a/pkgs/development/python-modules/playsound/default.nix b/pkgs/development/python-modules/playsound/default.nix index 0eb7e56c7b2b..7fb3220810d3 100644 --- a/pkgs/development/python-modules/playsound/default.nix +++ b/pkgs/development/python-modules/playsound/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/playwright-stealth/default.nix b/pkgs/development/python-modules/playwright-stealth/default.nix index a805d36f432f..0ee048182ba6 100644 --- a/pkgs/development/python-modules/playwright-stealth/default.nix +++ b/pkgs/development/python-modules/playwright-stealth/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, playwright -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + playwright, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-ZWmuVwjEgrPmfxjvws3TdocW6tyNH++fyRfKQ0oJ6bo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - playwright - ]; + propagatedBuildInputs = [ playwright ]; # Tests require Chromium binary doCheck = false; - pythonImportsCheck = [ - "playwright_stealth" - ]; + pythonImportsCheck = [ "playwright_stealth" ]; meta = with lib; { description = "Playwright stealth"; diff --git a/pkgs/development/python-modules/playwright/default.nix b/pkgs/development/python-modules/playwright/default.nix index c0032e5ebf83..cdbe9b143c2d 100644 --- a/pkgs/development/python-modules/playwright/default.nix +++ b/pkgs/development/python-modules/playwright/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, auditwheel -, buildPythonPackage -, git -, greenlet -, fetchFromGitHub -, pyee -, python -, pythonOlder -, setuptools -, setuptools-scm -, playwright-driver -, pythonRelaxDepsHook +{ + lib, + stdenv, + auditwheel, + buildPythonPackage, + git, + greenlet, + fetchFromGitHub, + pyee, + python, + pythonOlder, + setuptools, + setuptools-scm, + playwright-driver, + pythonRelaxDepsHook, }: let @@ -67,7 +68,6 @@ buildPythonPackage rec { --replace "@driver@" "${driver}/bin/playwright" ''; - nativeBuildInputs = [ git setuptools-scm @@ -75,9 +75,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ] ++ lib.optionals stdenv.isLinux [ auditwheel ]; - pythonRelaxDeps = [ - "pyee" - ]; + pythonRelaxDeps = [ "pyee" ]; propagatedBuildInputs = [ greenlet @@ -91,9 +89,7 @@ buildPythonPackage rec { # Skip tests because they require network access. doCheck = false; - pythonImportsCheck = [ - "playwright" - ]; + pythonImportsCheck = [ "playwright" ]; passthru = { inherit driver; @@ -109,7 +105,15 @@ buildPythonPackage rec { mainProgram = "playwright"; homepage = "https://github.com/microsoft/playwright-python"; license = licenses.asl20; - maintainers = with maintainers; [ techknowlogick yrd ]; - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; + maintainers = with maintainers; [ + techknowlogick + yrd + ]; + platforms = [ + "x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; }; } diff --git a/pkgs/development/python-modules/pleroma-bot/default.nix b/pkgs/development/python-modules/pleroma-bot/default.nix index 773b9bccdf5f..9678a3449f82 100644 --- a/pkgs/development/python-modules/pleroma-bot/default.nix +++ b/pkgs/development/python-modules/pleroma-bot/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, requests-mock -, oauthlib -, requests-oauthlib -, requests -, pyaml -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + requests-mock, + oauthlib, + requests-oauthlib, + requests, + pyaml, + pythonOlder, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "pleroma_bot" - ]; + pythonImportsCheck = [ "pleroma_bot" ]; meta = with lib; { description = "Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon"; diff --git a/pkgs/development/python-modules/plexauth/default.nix b/pkgs/development/python-modules/plexauth/default.nix index fd7f11e14d27..caa1dcdf1d74 100644 --- a/pkgs/development/python-modules/plexauth/default.nix +++ b/pkgs/development/python-modules/plexauth/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, aiohttp, isPy27 }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + isPy27, +}: buildPythonPackage rec { pname = "plexauth"; @@ -19,9 +25,7 @@ buildPythonPackage rec { doCheck = false; # at least guarantee the module can be imported - pythonImportsCheck = [ - "plexauth" - ]; + pythonImportsCheck = [ "plexauth" ]; meta = with lib; { homepage = "https://github.com/jjlawren/python-plexauth/"; diff --git a/pkgs/development/python-modules/plexwebsocket/default.nix b/pkgs/development/python-modules/plexwebsocket/default.nix index eaaed97c01b7..bd361fb4493e 100644 --- a/pkgs/development/python-modules/plexwebsocket/default.nix +++ b/pkgs/development/python-modules/plexwebsocket/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-gT9RWpaR33ROs6ttjH2joNPi99Ng94Tp/R9eZY1eGZk="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Package does not include tests doCheck = false; - pythonImportsCheck = [ - "plexwebsocket" - ]; + pythonImportsCheck = [ "plexwebsocket" ]; meta = with lib; { description = "Library to react to events issued over Plex websockets"; diff --git a/pkgs/development/python-modules/plone-testing/default.nix b/pkgs/development/python-modules/plone-testing/default.nix index ce7f0f3ef626..044bf148a336 100644 --- a/pkgs/development/python-modules/plone-testing/default.nix +++ b/pkgs/development/python-modules/plone-testing/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, zope-testing -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + six, + zope-testing, + setuptools, }: buildPythonPackage rec { @@ -15,7 +16,11 @@ buildPythonPackage rec { sha256 = "sha256-xdzm4LG/W5ziYXaXbCOfQbZYZvaUUih3lWhkLzWqeUc="; }; - propagatedBuildInputs = [ six setuptools zope-testing ]; + propagatedBuildInputs = [ + six + setuptools + zope-testing + ]; # Huge amount of testing dependencies (including Zope2) doCheck = false; diff --git a/pkgs/development/python-modules/plotext/default.nix b/pkgs/development/python-modules/plotext/default.nix index 7342067b8ead..94ba9f6c5d21 100644 --- a/pkgs/development/python-modules/plotext/default.nix +++ b/pkgs/development/python-modules/plotext/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/plotly/default.nix b/pkgs/development/python-modules/plotly/default.nix index a0e26e354ed9..541155fcf4ff 100644 --- a/pkgs/development/python-modules/plotly/default.nix +++ b/pkgs/development/python-modules/plotly/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytz -, requests -, six -, tenacity +{ + lib, + buildPythonPackage, + fetchPypi, + pytz, + requests, + six, + tenacity, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pluggy/default.nix b/pkgs/development/python-modules/pluggy/default.nix index a768e8ce942f..649e00327367 100644 --- a/pkgs/development/python-modules/pluggy/default.nix +++ b/pkgs/development/python-modules/pluggy/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, setuptools-scm -, pythonOlder -, importlib-metadata -, callPackage +{ + buildPythonPackage, + lib, + fetchFromGitHub, + setuptools-scm, + pythonOlder, + importlib-metadata, + callPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pluggy/tests.nix b/pkgs/development/python-modules/pluggy/tests.nix index dc6e16e7b2d7..8eec02011202 100644 --- a/pkgs/development/python-modules/pluggy/tests.nix +++ b/pkgs/development/python-modules/pluggy/tests.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, pluggy -, pytestCheckHook +{ + buildPythonPackage, + pluggy, + pytestCheckHook, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/pluginbase/default.nix b/pkgs/development/python-modules/pluginbase/default.nix index be228d231865..2ce4b65cd20a 100644 --- a/pkgs/development/python-modules/pluginbase/default.nix +++ b/pkgs/development/python-modules/pluginbase/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, pytest }: +{ + lib, + fetchPypi, + buildPythonPackage, + pytest, +}: buildPythonPackage rec { version = "1.0.1"; diff --git a/pkgs/development/python-modules/plugincode/default.nix b/pkgs/development/python-modules/plugincode/default.nix index 6e49474cc63d..8dda4b7f7f62 100644 --- a/pkgs/development/python-modules/plugincode/default.nix +++ b/pkgs/development/python-modules/plugincode/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools-scm -, click -, commoncode -, pluggy -, pytestCheckHook -, pytest-xdist -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools-scm, + click, + commoncode, + pluggy, + pytestCheckHook, + pytest-xdist, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ click @@ -39,9 +38,7 @@ buildPythonPackage rec { pytest-xdist ]; - pythonImportsCheck = [ - "plugincode" - ]; + pythonImportsCheck = [ "plugincode" ]; disabledTests = [ # We don't want black as an input diff --git a/pkgs/development/python-modules/plugnplay/default.nix b/pkgs/development/python-modules/plugnplay/default.nix index 1b8449ffe7ce..8ccc27e2145f 100644 --- a/pkgs/development/python-modules/plugnplay/default.nix +++ b/pkgs/development/python-modules/plugnplay/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { pname = "plugnplay"; @@ -15,9 +16,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "plugnplay" - ]; + pythonImportsCheck = [ "plugnplay" ]; meta = with lib; { description = "A Generic plug-in system for python applications"; diff --git a/pkgs/development/python-modules/plum-py/default.nix b/pkgs/development/python-modules/plum-py/default.nix index 721786e608d9..c2bca8e10fb6 100644 --- a/pkgs/development/python-modules/plum-py/default.nix +++ b/pkgs/development/python-modules/plum-py/default.nix @@ -1,9 +1,10 @@ -{ lib -, baseline -, buildPythonPackage -, fetchFromGitLab -, pytestCheckHook -, pythonOlder +{ + lib, + baseline, + buildPythonPackage, + fetchFromGitLab, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "plum" - ]; + pythonImportsCheck = [ "plum" ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; disabledTestPaths = [ # tests enum.IntFlag behaviour which has been disallowed in python 3.11.6 diff --git a/pkgs/development/python-modules/plumbum/default.nix b/pkgs/development/python-modules/plumbum/default.nix index 0eb7baadcfbf..b1722a47a516 100644 --- a/pkgs/development/python-modules/plumbum/default.nix +++ b/pkgs/development/python-modules/plumbum/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, hatch-vcs -, openssh -, ps -, psutil -, pytest-mock -, pytest-timeout -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + hatch-vcs, + openssh, + ps, + psutil, + pytest-mock, + pytest-timeout, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pluthon/default.nix b/pkgs/development/python-modules/pluthon/default.nix index 1ff7d0530002..537eebe52a50 100644 --- a/pkgs/development/python-modules/pluthon/default.nix +++ b/pkgs/development/python-modules/pluthon/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools -, pythonOlder -# Python deps -, uplc -, graphlib-backport -, ordered-set +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + pythonOlder, + # Python deps + uplc, + graphlib-backport, + ordered-set, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/plux/default.nix b/pkgs/development/python-modules/plux/default.nix index b778a2dd1721..5c0d6d1fb28c 100644 --- a/pkgs/development/python-modules/plux/default.nix +++ b/pkgs/development/python-modules/plux/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, setuptools -, stevedore -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + setuptools, + stevedore, + wheel, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - stevedore - ]; + propagatedBuildInputs = [ stevedore ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "plugin.core" ]; diff --git a/pkgs/development/python-modules/ply/default.nix b/pkgs/development/python-modules/ply/default.nix index fca97226d677..e4a4118bb53f 100644 --- a/pkgs/development/python-modules/ply/default.nix +++ b/pkgs/development/python-modules/ply/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python +{ + lib, + buildPythonPackage, + fetchPypi, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/plyer/default.nix b/pkgs/development/python-modules/plyer/default.nix index c6af90310c7b..1bc2ff92675e 100644 --- a/pkgs/development/python-modules/plyer/default.nix +++ b/pkgs/development/python-modules/plyer/default.nix @@ -1,4 +1,13 @@ -{ stdenv, lib, buildPythonPackage, fetchFromGitHub, fetchpatch, keyring, mock, pytestCheckHook }: +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + keyring, + mock, + pytestCheckHook, +}: buildPythonPackage rec { pname = "plyer"; @@ -25,7 +34,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ keyring ]; - nativeCheckInputs = [ mock pytestCheckHook ]; + nativeCheckInputs = [ + mock + pytestCheckHook + ]; pytestFlagsArray = [ "plyer/tests" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/plyfile/default.nix b/pkgs/development/python-modules/plyfile/default.nix index 2eff69c4ad8d..419d58964639 100644 --- a/pkgs/development/python-modules/plyfile/default.nix +++ b/pkgs/development/python-modules/plyfile/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage +{ + lib, + fetchFromGitHub, + buildPythonPackage, -# build-system -, pdm-pep517 + # build-system + pdm-pep517, -# dependencies -, numpy + # dependencies + numpy, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -24,22 +25,15 @@ buildPythonPackage rec { hash = "sha256-HlyqljfjuaZoG5f2cfDQj+7KS0en7pW2PPEnpvH8U+E="; }; - nativeBuildInputs = [ - pdm-pep517 - ]; + nativeBuildInputs = [ pdm-pep517 ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "NumPy-based text/binary PLY file reader/writer for Python"; - homepage = "https://github.com/dranjan/python-plyfile"; + homepage = "https://github.com/dranjan/python-plyfile"; maintainers = with maintainers; [ abbradar ]; }; - } diff --git a/pkgs/development/python-modules/plyplus/default.nix b/pkgs/development/python-modules/plyplus/default.nix index 209985815ffc..c27e110f69af 100644 --- a/pkgs/development/python-modules/plyplus/default.nix +++ b/pkgs/development/python-modules/plyplus/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, ply, isPy3k }: +{ + lib, + fetchPypi, + buildPythonPackage, + ply, + isPy3k, +}: buildPythonPackage rec { pname = "plyplus"; version = "0.7.5"; diff --git a/pkgs/development/python-modules/plyvel/default.nix b/pkgs/development/python-modules/plyvel/default.nix index 794585c54b80..5e7874057258 100644 --- a/pkgs/development/python-modules/plyvel/default.nix +++ b/pkgs/development/python-modules/plyvel/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs -, pytest -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, + pytest, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pmdarima/default.nix b/pkgs/development/python-modules/pmdarima/default.nix index 9592ae32e09d..094fd7984f9c 100644 --- a/pkgs/development/python-modules/pmdarima/default.nix +++ b/pkgs/development/python-modules/pmdarima/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, joblib -, matplotlib -, numpy -, pandas -, scikit-learn -, scipy -, statsmodels -, urllib3 -, pythonOlder -, python -, pytest7CheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + joblib, + matplotlib, + numpy, + pandas, + scikit-learn, + scipy, + statsmodels, + urllib3, + pythonOlder, + python, + pytest7CheckHook, }: buildPythonPackage rec { @@ -52,7 +53,7 @@ buildPythonPackage rec { pytest7CheckHook ]; - disabledTests= [ + disabledTests = [ # touches internet "test_load_from_web" ]; diff --git a/pkgs/development/python-modules/pmdsky-debug-py/default.nix b/pkgs/development/python-modules/pmdsky-debug-py/default.nix index 17511c8fc23b..839ed1f30332 100644 --- a/pkgs/development/python-modules/pmdsky-debug-py/default.nix +++ b/pkgs/development/python-modules/pmdsky-debug-py/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: #This package is auto-generated. It could totally be possible to generate it from upstream, but seems unecessary diff --git a/pkgs/development/python-modules/pmsensor/default.nix b/pkgs/development/python-modules/pmsensor/default.nix index 48156a3eae95..0ec79d38ff13 100644 --- a/pkgs/development/python-modules/pmsensor/default.nix +++ b/pkgs/development/python-modules/pmsensor/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyserial +{ + lib, + buildPythonPackage, + fetchPypi, + pyserial, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "7fc03aafb791ca70d847c9ab97cf181bc7d8f7345efb4b0c3f66c07b9c7dee69"; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/pmw/default.nix b/pkgs/development/python-modules/pmw/default.nix index ab9f3fb60b28..b9eeab8f9dd7 100644 --- a/pkgs/development/python-modules/pmw/default.nix +++ b/pkgs/development/python-modules/pmw/default.nix @@ -1,4 +1,9 @@ -{ lib , buildPythonPackage , fetchPypi, tkinter }: +{ + lib, + buildPythonPackage, + fetchPypi, + tkinter, +}: buildPythonPackage rec { pname = "pmw"; diff --git a/pkgs/development/python-modules/pnglatex/default.nix b/pkgs/development/python-modules/pnglatex/default.nix index 05b36b224839..9b0ddae8c81d 100644 --- a/pkgs/development/python-modules/pnglatex/default.nix +++ b/pkgs/development/python-modules/pnglatex/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, poppler_utils, netpbm }: +{ + lib, + buildPythonPackage, + fetchPypi, + poppler_utils, + netpbm, +}: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pocket/default.nix b/pkgs/development/python-modules/pocket/default.nix index 799f5ef261fa..05b15b5c4d6a 100644 --- a/pkgs/development/python-modules/pocket/default.nix +++ b/pkgs/development/python-modules/pocket/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -18,9 +19,8 @@ buildPythonPackage rec { meta = with lib; { description = "Wrapper for the pocket API"; - homepage = "https://github.com/tapanpandita/pocket"; - license = licenses.bsd3; + homepage = "https://github.com/tapanpandita/pocket"; + license = licenses.bsd3; maintainers = with maintainers; [ ericsagnes ]; }; - } diff --git a/pkgs/development/python-modules/podcastparser/default.nix b/pkgs/development/python-modules/podcastparser/default.nix index d844a19f902e..f2f458a2ee01 100644 --- a/pkgs/development/python-modules/podcastparser/default.nix +++ b/pkgs/development/python-modules/podcastparser/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { --replace "--cov=podcastparser --cov-report html --doctest-modules" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "podcastparser" - ]; + pythonImportsCheck = [ "podcastparser" ]; meta = with lib; { description = "Module to parse podcasts"; diff --git a/pkgs/development/python-modules/podcats/default.nix b/pkgs/development/python-modules/podcats/default.nix index e1cb4a05a784..e8069792072b 100644 --- a/pkgs/development/python-modules/podcats/default.nix +++ b/pkgs/development/python-modules/podcats/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, flask, mutagen }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + mutagen, +}: buildPythonPackage rec { pname = "podcats"; @@ -17,7 +23,10 @@ buildPythonPackage rec { --replace 'debug=True' 'debug=True, use_reloader=False' ''; - propagatedBuildInputs = [ flask mutagen ]; + propagatedBuildInputs = [ + flask + mutagen + ]; meta = { description = "Application that generates RSS feeds for podcast episodes from local audio files"; diff --git a/pkgs/development/python-modules/podman/default.nix b/pkgs/development/python-modules/podman/default.nix index 92a73abb4538..3ba10ffb06b6 100644 --- a/pkgs/development/python-modules/podman/default.nix +++ b/pkgs/development/python-modules/podman/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fixtures -, pytestCheckHook -, pythonOlder -, pyxdg -, requests -, requests-mock -, rich -, setuptools -, tomli -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fixtures, + pytestCheckHook, + pythonOlder, + pyxdg, + requests, + requests-mock, + rich, + setuptools, + tomli, + urllib3, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-3tbhTg060/K4ejT/xjItSu9zf05LR/d0vkg4XDsspEE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ pyxdg @@ -49,9 +48,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "podman" - ]; + pythonImportsCheck = [ "podman" ]; disabledTests = [ # Integration tests require a running container setup diff --git a/pkgs/development/python-modules/poetry-core/default.nix b/pkgs/development/python-modules/poetry-core/default.nix index c7010ef0432c..a93473db5ccc 100644 --- a/pkgs/development/python-modules/poetry-core/default.nix +++ b/pkgs/development/python-modules/poetry-core/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, build -, git -, pytest-mock -, pytestCheckHook -, setuptools -, tomli-w -, virtualenv +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + build, + git, + pytest-mock, + pytestCheckHook, + setuptools, + tomli-w, + virtualenv, }: buildPythonPackage rec { @@ -42,14 +43,10 @@ buildPythonPackage rec { "default_src_with_excluded_data" ]; - pythonImportsCheck = [ - "poetry.core" - ]; + pythonImportsCheck = [ "poetry.core" ]; # Allow for package to use pep420's native namespaces - pythonNamespaces = [ - "poetry" - ]; + pythonNamespaces = [ "poetry" ]; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-int-conversion"; diff --git a/pkgs/development/python-modules/poetry-dynamic-versioning/default.nix b/pkgs/development/python-modules/poetry-dynamic-versioning/default.nix index 6e375def3c65..f451f39b0852 100644 --- a/pkgs/development/python-modules/poetry-dynamic-versioning/default.nix +++ b/pkgs/development/python-modules/poetry-dynamic-versioning/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, dunamai -, fetchFromGitHub -, jinja2 -, poetry-core -, poetry -, pytestCheckHook -, pythonOlder -, tomlkit +{ + lib, + buildPythonPackage, + dunamai, + fetchFromGitHub, + jinja2, + poetry-core, + poetry, + pytestCheckHook, + pythonOlder, + tomlkit, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-qkRnlLLzbYf7C2VjPDjYfllej8an4WftNahPLz/Wkxw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ dunamai @@ -50,9 +49,7 @@ buildPythonPackage rec { "test_integration" ]; - pythonImportsCheck = [ - "poetry_dynamic_versioning" - ]; + pythonImportsCheck = [ "poetry_dynamic_versioning" ]; setupHook = ./setup-hook.sh; diff --git a/pkgs/development/python-modules/poetry-semver/default.nix b/pkgs/development/python-modules/poetry-semver/default.nix index 422dbd04f881..043a727828ab 100644 --- a/pkgs/development/python-modules/poetry-semver/default.nix +++ b/pkgs/development/python-modules/poetry-semver/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/polarizationsolver/default.nix b/pkgs/development/python-modules/polarizationsolver/default.nix index aebc74ede9ce..be7bea5a634a 100644 --- a/pkgs/development/python-modules/polarizationsolver/default.nix +++ b/pkgs/development/python-modules/polarizationsolver/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, lib -, fetchFromGitLab -, python -, numpy -, scipy -, periodictable -, fields +{ + buildPythonPackage, + lib, + fetchFromGitLab, + python, + numpy, + scipy, + periodictable, + fields, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/polars/default.nix b/pkgs/development/python-modules/polars/default.nix index 73edfeadcd53..c6aca67e2859 100644 --- a/pkgs/development/python-modules/polars/default.nix +++ b/pkgs/development/python-modules/polars/default.nix @@ -1,22 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, rustPlatform -, cmake -, libiconv -, fetchFromGitHub -, typing-extensions -, jemalloc -, rust-jemalloc-sys -, darwin +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + rustPlatform, + cmake, + libiconv, + fetchFromGitHub, + typing-extensions, + jemalloc, + rust-jemalloc-sys, + darwin, }: let rust-jemalloc-sys' = rust-jemalloc-sys.override { - jemalloc = jemalloc.override { - disableInitExecTls = true; - }; + jemalloc = jemalloc.override { disableInitExecTls = true; }; }; in @@ -41,41 +40,42 @@ buildPythonPackage rec { #sed -i 's/version = "0.18.0"/version = "${version}"/g' Cargo.lock ''; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; buildAndTestSubdir = "py-polars"; # Revisit this whenever package or Rust is upgraded RUSTC_BOOTSTRAP = 1; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ]; # trick taken from the polars repo since there seems to be a problem # with simd enabled with our stable rust (instead of nightly). - maturinBuildFlags = [ "--no-default-features" "--features=all" ]; + maturinBuildFlags = [ + "--no-default-features" + "--features=all" + ]; dontUseCmakeConfigure = true; - nativeBuildInputs = [ - # needed for libz-ng-sys - # TODO: use pkgs.zlib-ng - cmake - ] ++ (with rustPlatform; [ - cargoSetupHook - maturinBuildHook - ]); + nativeBuildInputs = + [ + # needed for libz-ng-sys + # TODO: use pkgs.zlib-ng + cmake + ] + ++ (with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]); - buildInputs = [ - rust-jemalloc-sys' - ] ++ lib.optionals stdenv.isDarwin [ - libiconv - darwin.apple_sdk.frameworks.Security - darwin.apple_sdk.frameworks.SystemConfiguration - ]; + buildInputs = + [ rust-jemalloc-sys' ] + ++ lib.optionals stdenv.isDarwin [ + libiconv + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration + ]; # nativeCheckInputs = [ # pytestCheckHook @@ -87,9 +87,7 @@ buildPythonPackage rec { # pydot # ]; - pythonImportsCheck = [ - "polars" - ]; + pythonImportsCheck = [ "polars" ]; meta = with lib; { description = "Fast multi-threaded DataFrame library"; diff --git a/pkgs/development/python-modules/polib/default.nix b/pkgs/development/python-modules/polib/default.nix index 73276d9b6599..f74bd2f23503 100644 --- a/pkgs/development/python-modules/polib/default.nix +++ b/pkgs/development/python-modules/polib/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "polib"; diff --git a/pkgs/development/python-modules/policyuniverse/default.nix b/pkgs/development/python-modules/policyuniverse/default.nix index e324813c6a58..99a37254018c 100644 --- a/pkgs/development/python-modules/policyuniverse/default.nix +++ b/pkgs/development/python-modules/policyuniverse/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Tests are not shipped and there are no GitHub tags doCheck = false; - pythonImportsCheck = [ - "policyuniverse" - ]; + pythonImportsCheck = [ "policyuniverse" ]; meta = with lib; { description = "Parse and Process AWS IAM Policies, Statements, ARNs and wildcards"; diff --git a/pkgs/development/python-modules/polling/default.nix b/pkgs/development/python-modules/polling/default.nix index ee8165858933..edca7ccbd3ba 100644 --- a/pkgs/development/python-modules/polling/default.nix +++ b/pkgs/development/python-modules/polling/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { wheel ]; - pythonImportsCheck = [ - "polling" - ]; + pythonImportsCheck = [ "polling" ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/polygon3/default.nix b/pkgs/development/python-modules/polygon3/default.nix index e8bb253202bc..80a3a5ea7256 100644 --- a/pkgs/development/python-modules/polygon3/default.nix +++ b/pkgs/development/python-modules/polygon3/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/polyline/default.nix b/pkgs/development/python-modules/polyline/default.nix index 6ed2daae7e88..713b235f0f8f 100644 --- a/pkgs/development/python-modules/polyline/default.nix +++ b/pkgs/development/python-modules/polyline/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "polyline" - ]; + pythonImportsCheck = [ "polyline" ]; meta = with lib; { description = "Python implementation of Google's Encoded Polyline Algorithm Format"; diff --git a/pkgs/development/python-modules/pomegranate/default.nix b/pkgs/development/python-modules/pomegranate/default.nix index 0c07483b0711..ddaffc745928 100644 --- a/pkgs/development/python-modules/pomegranate/default.nix +++ b/pkgs/development/python-modules/pomegranate/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, numpy -, joblib -, networkx -, scipy -, pyyaml -, cython + # dependencies + numpy, + joblib, + networkx, + scipy, + pyyaml, + cython, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-PoDAtNm/snq4isotkoCTVYUuwr9AKKwiXIojUFMH/YE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/pontos/default.nix b/pkgs/development/python-modules/pontos/default.nix index 8716316d5779..b5b41ae6d992 100644 --- a/pkgs/development/python-modules/pontos/default.nix +++ b/pkgs/development/python-modules/pontos/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, colorful -, fetchFromGitHub -, git -, httpx -, lxml -, packaging -, poetry-core -, pytestCheckHook -, python-dateutil -, pythonOlder -, semver -, shtab -, rich -, tomlkit +{ + lib, + buildPythonPackage, + colorful, + fetchFromGitHub, + git, + httpx, + lxml, + packaging, + poetry-core, + pytestCheckHook, + python-dateutil, + pythonOlder, + semver, + shtab, + rich, + tomlkit, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-DXZDXipYBClqSdlTJsaPWaKr3qTiJ3osm3hHPp/MPow="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ colorful @@ -73,9 +72,7 @@ buildPythonPackage rec { "test_verify_version_does_not_match" ]; - pythonImportsCheck = [ - "pontos" - ]; + pythonImportsCheck = [ "pontos" ]; meta = with lib; { description = "Collection of Python utilities, tools, classes and functions"; diff --git a/pkgs/development/python-modules/pony/default.nix b/pkgs/development/python-modules/pony/default.nix index 46a4daffe625..20d39a3592b2 100644 --- a/pkgs/development/python-modules/pony/default.nix +++ b/pkgs/development/python-modules/pony/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pythonAtLeast -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pythonAtLeast, + setuptools, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-wBqw+YHKlxYplgsYL1pbkusHyPfCaVPcH/Yku6WDYbE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Tests are outdated @@ -42,15 +39,16 @@ buildPythonPackage rec { "test_query" ]; - pythonImportsCheck = [ - "pony" - ]; + pythonImportsCheck = [ "pony" ]; meta = with lib; { description = "Library for advanced object-relational mapping"; homepage = "https://ponyorm.org/"; changelog = "https://github.com/ponyorm/pony/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ d-goldin xvapx ]; + maintainers = with maintainers; [ + d-goldin + xvapx + ]; }; } diff --git a/pkgs/development/python-modules/ponywhoosh/default.nix b/pkgs/development/python-modules/ponywhoosh/default.nix index 2a905326cbc2..52d982173d47 100644 --- a/pkgs/development/python-modules/ponywhoosh/default.nix +++ b/pkgs/development/python-modules/ponywhoosh/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pony, whoosh }: +{ + lib, + buildPythonPackage, + fetchPypi, + pony, + whoosh, +}: buildPythonPackage rec { pname = "ponywhoosh"; diff --git a/pkgs/development/python-modules/pooch/default.nix b/pkgs/development/python-modules/pooch/default.nix index 63228be0d9dc..91d277062392 100644 --- a/pkgs/development/python-modules/pooch/default.nix +++ b/pkgs/development/python-modules/pooch/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, pytestCheckHook -, packaging -, platformdirs -, requests -, tqdm -, paramiko -, xxhash +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + pytestCheckHook, + packaging, + platformdirs, + requests, + tqdm, + paramiko, + xxhash, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # tries to touch network disabledTests = [ @@ -70,7 +69,6 @@ buildPythonPackage rec { "test_load_registry_from_doi" "test_retrieve" "test_stream_download" - ]; meta = with lib; { @@ -79,5 +77,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ GuillaumeDesforges ]; }; - } diff --git a/pkgs/development/python-modules/pook/default.nix b/pkgs/development/python-modules/pook/default.nix index 6abc4b43f34e..285e66f89a98 100644 --- a/pkgs/development/python-modules/pook/default.nix +++ b/pkgs/development/python-modules/pook/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, furl -, hatchling -, jsonschema -, pytest-asyncio -, pytest-httpbin -, pytest7CheckHook -, pythonOlder -, requests -, xmltodict +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + furl, + hatchling, + jsonschema, + pytest-asyncio, + pytest-httpbin, + pytest7CheckHook, + pythonOlder, + requests, + xmltodict, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-sdfkMvPSlVK7EoDUEuJbiuocOjGJygqiCiftrsjnDhU="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytest7CheckHook ]; - pythonImportsCheck = [ - "pook" - ]; + pythonImportsCheck = [ "pook" ]; disabledTestPaths = [ # Don't test integrations diff --git a/pkgs/development/python-modules/poolsense/default.nix b/pkgs/development/python-modules/poolsense/default.nix index 85c8a8ec518f..fb69913c6bc1 100644 --- a/pkgs/development/python-modules/poolsense/default.nix +++ b/pkgs/development/python-modules/poolsense/default.nix @@ -1,7 +1,8 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/poppler-qt5/default.nix b/pkgs/development/python-modules/poppler-qt5/default.nix index 06c0e7a6e6ee..dd5434422144 100644 --- a/pkgs/development/python-modules/poppler-qt5/default.nix +++ b/pkgs/development/python-modules/poppler-qt5/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, isPy3k -, fetchPypi -, sip -, qtbase -, qmake -, pyqt5 -, pyqt-builder -, poppler -, pkg-config -, setuptools +{ + lib, + buildPythonPackage, + isPy3k, + fetchPypi, + sip, + qtbase, + qmake, + pyqt5, + pyqt-builder, + poppler, + pkg-config, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,17 @@ buildPythonPackage rec { sha256 = "sha256-tHfohB8OoOCf2rby8wXPON+XfZ4ULlaTo3RgXXXdb+A="; }; - - buildInputs = [ qtbase.dev poppler pyqt-builder ]; - nativeBuildInputs = [ pkg-config qmake sip setuptools ]; + buildInputs = [ + qtbase.dev + poppler + pyqt-builder + ]; + nativeBuildInputs = [ + pkg-config + qmake + sip + setuptools + ]; propagatedBuildInputs = [ pyqt5.dev ]; format = "pyproject"; diff --git a/pkgs/development/python-modules/port-for/default.nix b/pkgs/development/python-modules/port-for/default.nix index ae3c00e6d435..535cfbd5baf8 100644 --- a/pkgs/development/python-modules/port-for/default.nix +++ b/pkgs/development/python-modules/port-for/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "port_for" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/portalocker/default.nix b/pkgs/development/python-modules/portalocker/default.nix index cd66b0950eef..39d8a8e981e9 100644 --- a/pkgs/development/python-modules/portalocker/default.nix +++ b/pkgs/development/python-modules/portalocker/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, redis + # dependencies + redis, -# tests -, pygments -, pytestCheckHook + # tests + pygments, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,18 +37,14 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - redis - ]; + propagatedBuildInputs = [ redis ]; nativeCheckInputs = [ pygments pytestCheckHook ]; - pythonImportsCheck = [ - "portalocker" - ]; + pythonImportsCheck = [ "portalocker" ]; meta = with lib; { changelog = "https://github.com/wolph/portalocker/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/portend/default.nix b/pkgs/development/python-modules/portend/default.nix index 73356631615f..2b89a74928db 100644 --- a/pkgs/development/python-modules/portend/default.nix +++ b/pkgs/development/python-modules/portend/default.nix @@ -1,6 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi -, pythonOlder -, pytestCheckHook, setuptools-scm, tempora }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + setuptools-scm, + tempora, +}: buildPythonPackage rec { pname = "portend"; @@ -20,9 +26,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "portend" - ]; + pythonImportsCheck = [ "portend" ]; # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/portion/default.nix b/pkgs/development/python-modules/portion/default.nix index 5cba2a579294..51ca2c119026 100644 --- a/pkgs/development/python-modules/portion/default.nix +++ b/pkgs/development/python-modules/portion/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, wheel -, sortedcontainers -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + wheel, + sortedcontainers, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,17 +28,11 @@ buildPythonPackage rec { wheel ]; - dependencies = [ - sortedcontainers - ]; + dependencies = [ sortedcontainers ]; - pythonImportsCheck = [ - "portion" - ]; + pythonImportsCheck = [ "portion" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Portion, a Python library providing data structure and operations for intervals"; diff --git a/pkgs/development/python-modules/portpicker/default.nix b/pkgs/development/python-modules/portpicker/default.nix index 65c4059b4fc2..b19dd5b1bf10 100644 --- a/pkgs/development/python-modules/portpicker/default.nix +++ b/pkgs/development/python-modules/portpicker/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, psutil -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + psutil, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-vVB/1vlvZe4CeB8uZ06dxsmbv6bjw5mS45FiBMnUMfo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - psutil - ]; + propagatedBuildInputs = [ psutil ]; - pythonImportsCheck = [ - "portpicker" - ]; + pythonImportsCheck = [ "portpicker" ]; meta = with lib; { description = "Library to choose unique available network ports"; diff --git a/pkgs/development/python-modules/posix-ipc/default.nix b/pkgs/development/python-modules/posix-ipc/default.nix index 58f13f20cf03..d081801ce48a 100644 --- a/pkgs/development/python-modules/posix-ipc/default.nix +++ b/pkgs/development/python-modules/posix-ipc/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-xK5CkThqVFVMIxBtgUfHIRNRfmBxKa/DWBYQg7QHl/M="; }; - pythonImportsCheck = [ - "posix_ipc" - ]; + pythonImportsCheck = [ "posix_ipc" ]; meta = with lib; { description = "POSIX IPC primitives (semaphores, shared memory and message queues)"; diff --git a/pkgs/development/python-modules/posthog/default.nix b/pkgs/development/python-modules/posthog/default.nix index 03372065aedd..2ff4d4a8f191 100644 --- a/pkgs/development/python-modules/posthog/default.nix +++ b/pkgs/development/python-modules/posthog/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# build inputs -, requests -, six -, monotonic -, backoff -, python-dateutil -# check inputs -, pytestCheckHook -, mock -, freezegun +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # build inputs + requests, + six, + monotonic, + backoff, + python-dateutil, + # check inputs + pytestCheckHook, + mock, + freezegun, }: let pname = "posthog"; @@ -41,9 +42,7 @@ buildPythonPackage { freezegun ]; - pythonImportsCheck = [ - "posthog" - ]; + pythonImportsCheck = [ "posthog" ]; disabledTests = [ "test_load_feature_flags_wrong_key" diff --git a/pkgs/development/python-modules/pot/default.nix b/pkgs/development/python-modules/pot/default.nix index 321ad2e2dba7..381bd2bb2193 100644 --- a/pkgs/development/python-modules/pot/default.nix +++ b/pkgs/development/python-modules/pot/default.nix @@ -1,21 +1,22 @@ -{ lib -, autograd -, buildPythonPackage -, fetchFromGitHub -, cupy -, cvxopt -, cython -, oldest-supported-numpy -, matplotlib -, numpy -, tensorflow -, pymanopt -, pytestCheckHook -, pythonOlder -, scikit-learn -, scipy -, enableDimensionalityReduction ? false -, enableGPU ? false +{ + lib, + autograd, + buildPythonPackage, + fetchFromGitHub, + cupy, + cvxopt, + cython, + oldest-supported-numpy, + matplotlib, + numpy, + tensorflow, + pymanopt, + pytestCheckHook, + pythonOlder, + scikit-learn, + scipy, + enableDimensionalityReduction ? false, + enableGPU ? false, }: buildPythonPackage rec { @@ -37,15 +38,16 @@ buildPythonPackage rec { oldest-supported-numpy ]; - propagatedBuildInputs = [ - numpy - scipy - ] ++ lib.optionals enableGPU [ - cupy - ] ++ lib.optionals enableDimensionalityReduction [ - autograd - pymanopt - ]; + propagatedBuildInputs = + [ + numpy + scipy + ] + ++ lib.optionals enableGPU [ cupy ] + ++ lib.optionals enableDimensionalityReduction [ + autograd + pymanopt + ]; nativeCheckInputs = [ cvxopt @@ -104,9 +106,7 @@ buildPythonPackage rec { "test_emd1d_device_tf" ]; - disabledTestPaths = lib.optionals (!enableDimensionalityReduction) [ - "test/test_dr.py" - ]; + disabledTestPaths = lib.optionals (!enableDimensionalityReduction) [ "test/test_dr.py" ]; pythonImportsCheck = [ "ot" diff --git a/pkgs/development/python-modules/potr/default.nix b/pkgs/development/python-modules/potr/default.nix index 671010bb9009..4ead458882d9 100644 --- a/pkgs/development/python-modules/potr/default.nix +++ b/pkgs/development/python-modules/potr/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, pycrypto }: +{ + lib, + fetchPypi, + buildPythonPackage, + pycrypto, +}: buildPythonPackage rec { pname = "python-potr"; diff --git a/pkgs/development/python-modules/power/default.nix b/pkgs/development/python-modules/power/default.nix index 7d82d8e8acb6..97c490523f16 100644 --- a/pkgs/development/python-modules/power/default.nix +++ b/pkgs/development/python-modules/power/default.nix @@ -1,7 +1,8 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { homepage = "https://github.com/Kentzo/Power"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/powerline-mem-segment/default.nix b/pkgs/development/python-modules/powerline-mem-segment/default.nix index 64eae31c0a25..3e2890617809 100644 --- a/pkgs/development/python-modules/powerline-mem-segment/default.nix +++ b/pkgs/development/python-modules/powerline-mem-segment/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, psutil +{ + lib, + buildPythonPackage, + fetchPypi, + psutil, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/powerline/default.nix b/pkgs/development/python-modules/powerline/default.nix index 5516db843bcf..ed6934586121 100644 --- a/pkgs/development/python-modules/powerline/default.nix +++ b/pkgs/development/python-modules/powerline/default.nix @@ -1,19 +1,20 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, socat -, psutil -, python-hglib -, pygit2 -, pyuv -, i3ipc -, stdenv +{ + lib, + fetchFromGitHub, + buildPythonPackage, + socat, + psutil, + python-hglib, + pygit2, + pyuv, + i3ipc, + stdenv, }: # TODO: bzr support is missing because nixpkgs switched to `breezy` buildPythonPackage rec { - version = "2.8.3"; + version = "2.8.3"; pname = "powerline"; format = "setuptools"; @@ -49,8 +50,8 @@ buildPythonPackage rec { ''; meta = { - homepage = "https://github.com/powerline/powerline"; + homepage = "https://github.com/powerline/powerline"; description = "The ultimate statusline/prompt utility"; - license = lib.licenses.mit; + license = lib.licenses.mit; }; } diff --git a/pkgs/development/python-modules/pox/default.nix b/pkgs/development/python-modules/pox/default.nix index e3926ed045b0..2c82fc966e94 100644 --- a/pkgs/development/python-modules/pox/default.nix +++ b/pkgs/development/python-modules/pox/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Test sare failing the sandbox doCheck = false; - pythonImportsCheck = [ - "pox" - ]; + pythonImportsCheck = [ "pox" ]; meta = with lib; { description = "Utilities for filesystem exploration and automated builds"; diff --git a/pkgs/development/python-modules/poyo/default.nix b/pkgs/development/python-modules/poyo/default.nix index a4eaad98b8dd..c3d1e18ed80b 100644 --- a/pkgs/development/python-modules/poyo/default.nix +++ b/pkgs/development/python-modules/poyo/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { description = "A lightweight YAML Parser for Python"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/ppdeep/default.nix b/pkgs/development/python-modules/ppdeep/default.nix index 4ea7033b11f3..9685a656480c 100644 --- a/pkgs/development/python-modules/ppdeep/default.nix +++ b/pkgs/development/python-modules/ppdeep/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ppft/default.nix b/pkgs/development/python-modules/ppft/default.nix index d72fe679c226..ec61d57fc46c 100644 --- a/pkgs/development/python-modules/ppft/default.nix +++ b/pkgs/development/python-modules/ppft/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, python -, pythonOlder -, six +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, + six, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-dqQpp9e3TE10P226g1HljWK2Qy7WXfn+IEeQFg2rmW0="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # darwin seems to hang doCheck = !stdenv.isDarwin; @@ -32,9 +31,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "ppft" - ]; + pythonImportsCheck = [ "ppft" ]; meta = with lib; { description = "Distributed and parallel Python"; diff --git a/pkgs/development/python-modules/pplpy/default.nix b/pkgs/development/python-modules/pplpy/default.nix index 4a4d97c554cf..6c1e7d193dbd 100644 --- a/pkgs/development/python-modules/pplpy/default.nix +++ b/pkgs/development/python-modules/pplpy/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchPypi -, buildPythonPackage -, gmp -, mpfr -, libmpc -, ppl -, cython -, cysignals -, gmpy2 -, sphinx +{ + lib, + fetchPypi, + buildPythonPackage, + gmp, + mpfr, + libmpc, + ppl, + cython, + cysignals, + gmpy2, + sphinx, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -41,7 +42,10 @@ buildPythonPackage rec { gmpy2 ]; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; postBuild = '' # Find the build result in order to put it into PYTHONPATH. The doc @@ -57,7 +61,9 @@ buildPythonPackage rec { mv docs/build/html "$doc/share/doc/pplpy" ''; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "A Python wrapper for ppl"; diff --git a/pkgs/development/python-modules/pproxy/default.nix b/pkgs/development/python-modules/pproxy/default.nix index a7028757b0ba..c08d2de25aa8 100644 --- a/pkgs/development/python-modules/pproxy/default.nix +++ b/pkgs/development/python-modules/pproxy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodome -, uvloop -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodome, + uvloop, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { sha256 = "sha256-bOqDdNiaZ5MRi/UeF0hJwMs+rfQBKRsTmXrZ6ieIguo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pycryptodome uvloop ]; - pythonImportsCheck = [ - "pproxy" - ]; + pythonImportsCheck = [ "pproxy" ]; disabledTests = [ # Tests try to connect to outside Internet, so disabled diff --git a/pkgs/development/python-modules/ppscore/default.nix b/pkgs/development/python-modules/ppscore/default.nix index b87e0e4c9839..5593205dba6f 100644 --- a/pkgs/development/python-modules/ppscore/default.nix +++ b/pkgs/development/python-modules/ppscore/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pandas -, pytestCheckHook -, pythonOlder -, scikit-learn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pandas, + pytestCheckHook, + pythonOlder, + scikit-learn, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-gJStsL8fN17kvXO8EH/NHGIBelPknJzYw5WEvHsFooU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pandas scikit-learn ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ppscore" - ]; + pythonImportsCheck = [ "ppscore" ]; meta = with lib; { description = "Python implementation of the Predictive Power Score (PPS)"; diff --git a/pkgs/development/python-modules/pq/default.nix b/pkgs/development/python-modules/pq/default.nix index cc65a0075998..5c6a85b29c83 100644 --- a/pkgs/development/python-modules/pq/default.nix +++ b/pkgs/development/python-modules/pq/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/prance/default.nix b/pkgs/development/python-modules/prance/default.nix index b479451e065c..36d40f0711d9 100644 --- a/pkgs/development/python-modules/prance/default.nix +++ b/pkgs/development/python-modules/prance/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, chardet -, click -, flex -, packaging -, pyicu -, requests -, ruamel-yaml -, setuptools-scm -, six -, swagger-spec-validator -, pytestCheckHook -, openapi-spec-validator +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + chardet, + click, + flex, + packaging, + pyicu, + requests, + ruamel-yaml, + setuptools-scm, + six, + swagger-spec-validator, + pytestCheckHook, + openapi-spec-validator, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace "--cov=prance --cov-report=term-missing --cov-fail-under=90" "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ chardet @@ -61,9 +60,7 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); # Disable tests that require network - disabledTestPaths = [ - "tests/test_convert.py" - ]; + disabledTestPaths = [ "tests/test_convert.py" ]; disabledTests = [ "test_convert_defaults" "test_convert_output" diff --git a/pkgs/development/python-modules/praw/default.nix b/pkgs/development/python-modules/praw/default.nix index 09417a8d82b5..08fb2795bd17 100644 --- a/pkgs/development/python-modules/praw/default.nix +++ b/pkgs/development/python-modules/praw/default.nix @@ -1,16 +1,17 @@ -{ lib -, betamax -, betamax-matchers -, betamax-serializers -, buildPythonPackage -, fetchFromGitHub -, mock -, prawcore -, pytestCheckHook -, pythonOlder -, requests-toolbelt -, update-checker -, websocket-client +{ + lib, + betamax, + betamax-matchers, + betamax-serializers, + buildPythonPackage, + fetchFromGitHub, + mock, + prawcore, + pytestCheckHook, + pythonOlder, + requests-toolbelt, + update-checker, + websocket-client, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { "tests/integration" ]; - pythonImportsCheck = [ - "praw" - ]; + pythonImportsCheck = [ "praw" ]; meta = with lib; { description = "Python Reddit API wrapper"; diff --git a/pkgs/development/python-modules/prawcore/default.nix b/pkgs/development/python-modules/prawcore/default.nix index 6231ff2b8127..0300ae150da9 100644 --- a/pkgs/development/python-modules/prawcore/default.nix +++ b/pkgs/development/python-modules/prawcore/default.nix @@ -1,16 +1,17 @@ -{ lib -, betamax -, betamax-matchers -, betamax-serializers -, buildPythonPackage -, fetchFromGitHub -, flit-core -, mock -, pytestCheckHook -, pythonOlder -, requests -, requests-toolbelt -, testfixtures +{ + lib, + betamax, + betamax-matchers, + betamax-serializers, + buildPythonPackage, + fetchFromGitHub, + flit-core, + mock, + pytestCheckHook, + pythonOlder, + requests, + requests-toolbelt, + testfixtures, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { hash = "sha256-tECZRx6VgyiJDKHvj4Rf1sknFqUhz3sDFEsAMOeB7/g="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ testfixtures @@ -50,9 +47,7 @@ buildPythonPackage rec { "tests/integration" ]; - pythonImportsCheck = [ - "prawcore" - ]; + pythonImportsCheck = [ "prawcore" ]; meta = with lib; { description = "Low-level communication layer for PRAW"; diff --git a/pkgs/development/python-modules/prayer-times-calculator/default.nix b/pkgs/development/python-modules/prayer-times-calculator/default.nix index 88699a077bbe..d4a72de66f5f 100644 --- a/pkgs/development/python-modules/prayer-times-calculator/default.nix +++ b/pkgs/development/python-modules/prayer-times-calculator/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-HeGUnApQZ12aieaV/UBbJqqpEn4i/ZZKw41H/Yx3+cY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "prayer_times_calculator" - ]; + pythonImportsCheck = [ "prayer_times_calculator" ]; meta = with lib; { description = "Python client for the Prayer Times API"; diff --git a/pkgs/development/python-modules/pre-commit-hooks/default.nix b/pkgs/development/python-modules/pre-commit-hooks/default.nix index 11f226aa0c54..646d2b343518 100644 --- a/pkgs/development/python-modules/pre-commit-hooks/default.nix +++ b/pkgs/development/python-modules/pre-commit-hooks/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, git -, pytestCheckHook -, pythonOlder -, ruamel-yaml -, tomli +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + git, + pytestCheckHook, + pythonOlder, + ruamel-yaml, + tomli, }: buildPythonPackage rec { @@ -23,11 +24,7 @@ buildPythonPackage rec { hash = "sha256-p/pPpuuNjVxHSPyi4RL2DJlj9weSq8QinugQ4zmv9Ck="; }; - propagatedBuildInputs = [ - ruamel-yaml - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ ruamel-yaml ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ git @@ -48,9 +45,7 @@ buildPythonPackage rec { git init . ''; - pythonImportsCheck = [ - "pre_commit_hooks" - ]; + pythonImportsCheck = [ "pre_commit_hooks" ]; meta = with lib; { description = "Some out-of-the-box hooks for pre-commit"; diff --git a/pkgs/development/python-modules/precis-i18n/default.nix b/pkgs/development/python-modules/precis-i18n/default.nix index 87a91743b674..5802f01cc000 100644 --- a/pkgs/development/python-modules/precis-i18n/default.nix +++ b/pkgs/development/python-modules/precis-i18n/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-0Z8JbakShuB8FFGl3NS8VFpHAQgr2P900HVxUafAmyU="; }; - pythonImportsCheck = [ - "precis_i18n" - ]; + pythonImportsCheck = [ "precis_i18n" ]; meta = with lib; { description = "Internationalized usernames and passwords"; diff --git a/pkgs/development/python-modules/prefixed/default.nix b/pkgs/development/python-modules/prefixed/default.nix index fadc4be3ff2c..174c25358ee6 100644 --- a/pkgs/development/python-modules/prefixed/default.nix +++ b/pkgs/development/python-modules/prefixed/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-0QrJCs/EzBTYLBQIszCy/ahe187CIGqADUOJn4w4UmU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "prefixed" - ]; + pythonImportsCheck = [ "prefixed" ]; meta = with lib; { description = "Prefixed alternative numeric library"; diff --git a/pkgs/development/python-modules/preggy/default.nix b/pkgs/development/python-modules/preggy/default.nix index a69044eb14ec..5c4241a6477e 100644 --- a/pkgs/development/python-modules/preggy/default.nix +++ b/pkgs/development/python-modules/preggy/default.nix @@ -1,12 +1,26 @@ -{ lib, buildPythonPackage, fetchPypi, six, unidecode, nose, yanc }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + unidecode, + nose, + yanc, +}: buildPythonPackage rec { pname = "preggy"; version = "1.4.4"; format = "setuptools"; - propagatedBuildInputs = [ six unidecode ]; - nativeCheckInputs = [ nose yanc ]; + propagatedBuildInputs = [ + six + unidecode + ]; + nativeCheckInputs = [ + nose + yanc + ]; src = fetchPypi { inherit pname version; diff --git a/pkgs/development/python-modules/premailer/default.nix b/pkgs/development/python-modules/premailer/default.nix index 2143ad2edc2a..69e4a00c5955 100644 --- a/pkgs/development/python-modules/premailer/default.nix +++ b/pkgs/development/python-modules/premailer/default.nix @@ -1,5 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, - cssselect, cssutils, lxml, mock, nose, requests, cachetools +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + cssselect, + cssutils, + lxml, + mock, + nose, + requests, + cachetools, }: buildPythonPackage rec { @@ -13,8 +23,17 @@ buildPythonPackage rec { sha256 = "d1875a8411f5dc92b53ef9f193db6c0f879dc378d618e0ad292723e388bfe4c2"; }; - buildInputs = [ mock nose ]; - propagatedBuildInputs = [ cachetools cssselect cssutils lxml requests ]; + buildInputs = [ + mock + nose + ]; + propagatedBuildInputs = [ + cachetools + cssselect + cssutils + lxml + requests + ]; meta = { description = "Turns CSS blocks into style attributes "; diff --git a/pkgs/development/python-modules/preprocess-cancellation/default.nix b/pkgs/development/python-modules/preprocess-cancellation/default.nix index 22d3936b248e..7294e7808e57 100644 --- a/pkgs/development/python-modules/preprocess-cancellation/default.nix +++ b/pkgs/development/python-modules/preprocess-cancellation/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, setuptools -, shapely -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + setuptools, + shapely, + pytestCheckHook, }: buildPythonPackage rec { @@ -40,13 +41,9 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - shapely - ]; + propagatedBuildInputs = [ shapely ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "preprocess_cancellation" ]; diff --git a/pkgs/development/python-modules/preshed/default.nix b/pkgs/development/python-modules/preshed/default.nix index 2314555fcb58..e90128844558 100644 --- a/pkgs/development/python-modules/preshed/default.nix +++ b/pkgs/development/python-modules/preshed/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cymem -, cython -, python -, fetchPypi -, murmurhash -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cymem, + cython, + python, + fetchPypi, + murmurhash, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,25 +22,19 @@ buildPythonPackage rec { hash = "sha256-chhjxSRP/NJlGtCSiVGix8d7EC9OEaJRrYXTfudiFmA="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ cymem murmurhash ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Tests have import issues with 3.0.8 doCheck = false; - pythonImportsCheck = [ - "preshed" - ]; + pythonImportsCheck = [ "preshed" ]; # don't update to 4.0.0, version was yanked passthru.skipBulkUpdate = true; diff --git a/pkgs/development/python-modules/pretend/default.nix b/pkgs/development/python-modules/pretend/default.nix index 231b953923e4..3e4396a4043c 100644 --- a/pkgs/development/python-modules/pretend/default.nix +++ b/pkgs/development/python-modules/pretend/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pretend" - ]; + pythonImportsCheck = [ "pretend" ]; meta = with lib; { description = "Module for stubbing"; diff --git a/pkgs/development/python-modules/pretty-errors/default.nix b/pkgs/development/python-modules/pretty-errors/default.nix index ce9b646a543c..64e769b8ddd9 100644 --- a/pkgs/development/python-modules/pretty-errors/default.nix +++ b/pkgs/development/python-modules/pretty-errors/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, colorama +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + colorama, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { wheel ]; - dependencies = [ - colorama - ]; + dependencies = [ colorama ]; pythonImportsCheck = [ "pretty_errors" ]; diff --git a/pkgs/development/python-modules/prettytable/default.nix b/pkgs/development/python-modules/prettytable/default.nix index 91d2d5a427a7..1dc575d2dc06 100644 --- a/pkgs/development/python-modules/prettytable/default.nix +++ b/pkgs/development/python-modules/prettytable/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, pytest-lazy-fixture -, pytestCheckHook -, pythonOlder -, wcwidth +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + pytest-lazy-fixture, + pytestCheckHook, + pythonOlder, + wcwidth, }: buildPythonPackage rec { @@ -20,7 +21,7 @@ buildPythonPackage rec { owner = "jazzband"; repo = "prettytable"; rev = "refs/tags/${version}"; - hash= "sha256-yIO4eO2VdOnUt9qoNQOeq/c0os2LQ3mqAkCOIuoGpyg="; + hash = "sha256-yIO4eO2VdOnUt9qoNQOeq/c0os2LQ3mqAkCOIuoGpyg="; }; nativeBuildInputs = [ @@ -28,18 +29,14 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - wcwidth - ]; + propagatedBuildInputs = [ wcwidth ]; nativeCheckInputs = [ pytest-lazy-fixture pytestCheckHook ]; - pythonImportsCheck = [ - "prettytable" - ]; + pythonImportsCheck = [ "prettytable" ]; meta = with lib; { description = "Display tabular data in a visually appealing ASCII table format"; @@ -48,5 +45,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/primecountpy/default.nix b/pkgs/development/python-modules/primecountpy/default.nix index 60ae77e7dd94..1d9a31791e23 100644 --- a/pkgs/development/python-modules/primecountpy/default.nix +++ b/pkgs/development/python-modules/primecountpy/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, primecount -, cython -, cysignals +{ + lib, + fetchPypi, + buildPythonPackage, + primecount, + cython, + cysignals, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -21,14 +22,19 @@ buildPythonPackage rec { buildInputs = [ primecount ]; - propagatedBuildInputs = [ cython cysignals ]; + propagatedBuildInputs = [ + cython + cysignals + ]; # depends on pytest-cython for "pytest --doctest-cython" doCheck = false; pythonImportsCheck = [ "primecountpy" ]; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "Cython interface for C++ primecount library"; diff --git a/pkgs/development/python-modules/primepy/default.nix b/pkgs/development/python-modules/primepy/default.nix index 583aa3919dcf..f8c7dff7b9eb 100644 --- a/pkgs/development/python-modules/primepy/default.nix +++ b/pkgs/development/python-modules/primepy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/primer3/default.nix b/pkgs/development/python-modules/primer3/default.nix index 78d43a08b4ac..336042e595d4 100644 --- a/pkgs/development/python-modules/primer3/default.nix +++ b/pkgs/development/python-modules/primer3/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, cython -, gcc -, click -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + cython, + gcc, + click, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cython setuptools - ] ++ lib.optionals stdenv.isDarwin [ - gcc - ]; + ] ++ lib.optionals stdenv.isDarwin [ gcc ]; nativeCheckInputs = [ click @@ -44,9 +43,7 @@ buildPythonPackage rec { python setup.py build_ext --inplace ''; - pythonImportsCheck = [ - "primer3" - ]; + pythonImportsCheck = [ "primer3" ]; meta = with lib; { description = "Oligo analysis and primer design"; diff --git a/pkgs/development/python-modules/priority/default.nix b/pkgs/development/python-modules/priority/default.nix index 8f12f7f2144e..6ef47395e469 100644 --- a/pkgs/development/python-modules/priority/default.nix +++ b/pkgs/development/python-modules/priority/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0"; }; - pythonImportsCheck = [ - "priority" - ]; + pythonImportsCheck = [ "priority" ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/prisma/default.nix b/pkgs/development/python-modules/prisma/default.nix index 6f7c79715618..23eb592a5706 100644 --- a/pkgs/development/python-modules/prisma/default.nix +++ b/pkgs/development/python-modules/prisma/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, httpx -, jinja2 -, nodeenv -, pydantic -, pytestCheckHook -, python-dotenv -, pythonOlder -, setuptools -, strenum -, tomlkit -, typing-extensions +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + httpx, + jinja2, + nodeenv, + pydantic, + pytestCheckHook, + python-dotenv, + pythonOlder, + setuptools, + strenum, + tomlkit, + typing-extensions, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-7pibexiFsyrwC6rVv0CGHRbQU4G3rOXVhQW/7c/vKJA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ click @@ -42,16 +41,12 @@ buildPythonPackage rec { python-dotenv tomlkit typing-extensions - ] ++ lib.optionals (pythonOlder "3.11") [ - strenum - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ strenum ]; # Building the client requires network access doCheck = false; - pythonImportsCheck = [ - "prisma" - ]; + pythonImportsCheck = [ "prisma" ]; meta = with lib; { description = "Auto-generated and fully type-safe database client for prisma"; diff --git a/pkgs/development/python-modules/prison/default.nix b/pkgs/development/python-modules/prison/default.nix index e85ca0f7eb60..32d7a9ead8c6 100644 --- a/pkgs/development/python-modules/prison/default.nix +++ b/pkgs/development/python-modules/prison/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + nose, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-qor40vUQeTdlO3vwug3GGNX5vkNaF0H7EWlRdsY4bvc="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; meta = with lib; { description = "Rison encoder/decoder"; diff --git a/pkgs/development/python-modules/private-gpt/default.nix b/pkgs/development/python-modules/private-gpt/default.nix index 226489d046cb..37747889b9e2 100644 --- a/pkgs/development/python-modules/private-gpt/default.nix +++ b/pkgs/development/python-modules/private-gpt/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, python -, fetchFromGitHub -, poetry-core -, fastapi -, injector -, llama-index-core -, llama-index-readers-file -, huggingface-hub -, python-multipart -, pyyaml -, transformers -, uvicorn -, watchdog -, gradio -, fetchurl -, fetchpatch +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, + poetry-core, + fastapi, + injector, + llama-index-core, + llama-index-readers-file, + huggingface-hub, + python-multipart, + pyyaml, + transformers, + uvicorn, + watchdog, + gradio, + fetchurl, + fetchpatch, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ fastapi @@ -67,39 +66,17 @@ buildPythonPackage rec { huggingface-hub llama-index-embeddings-huggingface ]; - embeddings-ollama = [ - llama-index-embeddings-ollama - ]; - embeddings-openai = [ - llama-index-embeddings-openai - ]; - embeddings-sagemaker = [ - boto3 - ]; - llms-ollama = [ - llama-index-llms-ollama - ]; - llms-openai = [ - llama-index-llms-openai - ]; - llms-openai-like = [ - llama-index-llms-openai-like - ]; - llms-sagemaker = [ - boto3 - ]; - ui = [ - gradio - ]; - vector-stores-chroma = [ - llama-index-vector-stores-chroma - ]; - vector-stores-postgres = [ - llama-index-vector-stores-postgres - ]; - vector-stores-qdrant = [ - llama-index-vector-stores-qdrant - ]; + embeddings-ollama = [ llama-index-embeddings-ollama ]; + embeddings-openai = [ llama-index-embeddings-openai ]; + embeddings-sagemaker = [ boto3 ]; + llms-ollama = [ llama-index-llms-ollama ]; + llms-openai = [ llama-index-llms-openai ]; + llms-openai-like = [ llama-index-llms-openai-like ]; + llms-sagemaker = [ boto3 ]; + ui = [ gradio ]; + vector-stores-chroma = [ llama-index-vector-stores-chroma ]; + vector-stores-postgres = [ llama-index-vector-stores-postgres ]; + vector-stores-qdrant = [ llama-index-vector-stores-qdrant ]; }; postInstall = '' diff --git a/pkgs/development/python-modules/process-tests/default.nix b/pkgs/development/python-modules/process-tests/default.nix index acffc0dca510..99ed394c1ffd 100644 --- a/pkgs/development/python-modules/process-tests/default.nix +++ b/pkgs/development/python-modules/process-tests/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-5dV96nFhJR6RytuEvz7MhSdfsSH9R45Xn4AHd7HUJL0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # No tests doCheck = false; @@ -26,5 +25,4 @@ buildPythonPackage rec { license = licenses.bsd2; homepage = "https://github.com/ionelmc/python-process-tests"; }; - } diff --git a/pkgs/development/python-modules/procmon-parser/default.nix b/pkgs/development/python-modules/procmon-parser/default.nix index b45d72f3d07d..963f7ff9d358 100644 --- a/pkgs/development/python-modules/procmon-parser/default.nix +++ b/pkgs/development/python-modules/procmon-parser/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, construct -, fetchFromGitHub -, pytestCheckHook -, python-dateutil -, pythonOlder -, six +{ + lib, + buildPythonPackage, + construct, + fetchFromGitHub, + pytestCheckHook, + python-dateutil, + pythonOlder, + six, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { python-dateutil ]; - pythonImportsCheck = [ - "procmon_parser" - ]; + pythonImportsCheck = [ "procmon_parser" ]; meta = with lib; { description = "Parser to process monitor file formats"; diff --git a/pkgs/development/python-modules/prodict/default.nix b/pkgs/development/python-modules/prodict/default.nix index b793c2772985..fdee36a3c615 100644 --- a/pkgs/development/python-modules/prodict/default.nix +++ b/pkgs/development/python-modules/prodict/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, lib +{ + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + lib, }: buildPythonPackage rec { - pname = "prodict"; + pname = "prodict"; version = "0.8.6"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -21,9 +22,7 @@ buildPythonPackage rec { # make setuptools happy on case-sensitive filesystems postPatch = ''if [[ ! -f README.md ]]; then mv README.MD README.md; fi''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "prodict" ]; diff --git a/pkgs/development/python-modules/proglog/default.nix b/pkgs/development/python-modules/proglog/default.nix index b8e327e91c48..ebb674d14bda 100644 --- a/pkgs/development/python-modules/proglog/default.nix +++ b/pkgs/development/python-modules/proglog/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, tqdm }: +{ + lib, + fetchPypi, + buildPythonPackage, + tqdm, +}: buildPythonPackage rec { pname = "proglog"; diff --git a/pkgs/development/python-modules/progress/default.nix b/pkgs/development/python-modules/progress/default.nix index 51c707bdde91..20c2954a10f7 100644 --- a/pkgs/development/python-modules/progress/default.nix +++ b/pkgs/development/python-modules/progress/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python +{ + lib, + buildPythonPackage, + fetchPypi, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/progressbar/default.nix b/pkgs/development/python-modules/progressbar/default.nix index 2a8f85893a52..beae027d52d4 100644 --- a/pkgs/development/python-modules/progressbar/default.nix +++ b/pkgs/development/python-modules/progressbar/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "progressbar"; diff --git a/pkgs/development/python-modules/progressbar2/default.nix b/pkgs/development/python-modules/progressbar2/default.nix index 082cff10b8a8..314f55047593 100644 --- a/pkgs/development/python-modules/progressbar2/default.nix +++ b/pkgs/development/python-modules/progressbar2/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, dill -, freezegun -, pytestCheckHook -, python-utils -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + dill, + freezegun, + pytestCheckHook, + python-utils, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - python-utils - ]; + propagatedBuildInputs = [ python-utils ]; nativeCheckInputs = [ dill @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "progressbar" - ]; + pythonImportsCheck = [ "progressbar" ]; meta = with lib; { description = "Text progressbar library"; diff --git a/pkgs/development/python-modules/progressbar33/default.nix b/pkgs/development/python-modules/progressbar33/default.nix index 4ed2e42eb161..ba11ecd893de 100644 --- a/pkgs/development/python-modules/progressbar33/default.nix +++ b/pkgs/development/python-modules/progressbar33/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "progressbar33"; diff --git a/pkgs/development/python-modules/prometheus-api-client/default.nix b/pkgs/development/python-modules/prometheus-api-client/default.nix index 842b4c0b22ab..4319a62ea8a7 100644 --- a/pkgs/development/python-modules/prometheus-api-client/default.nix +++ b/pkgs/development/python-modules/prometheus-api-client/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, dateparser -, httmock -, matplotlib -, numpy -, pandas -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + dateparser, + httmock, + matplotlib, + numpy, + pandas, + requests, }: buildPythonPackage rec { @@ -30,22 +31,13 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - httmock - ]; + checkInputs = [ httmock ]; - disabledTestPaths = [ - "tests/test_prometheus_connect.py" - ]; - - pythonImportsCheck = [ - "prometheus_api_client" - ]; + disabledTestPaths = [ "tests/test_prometheus_connect.py" ]; + pythonImportsCheck = [ "prometheus_api_client" ]; meta = with lib; { description = "A Python wrapper for the Prometheus HTTP API"; diff --git a/pkgs/development/python-modules/prometheus-client/default.nix b/pkgs/development/python-modules/prometheus-client/default.nix index e81613a7062b..db541075d773 100644 --- a/pkgs/development/python-modules/prometheus-client/default.nix +++ b/pkgs/development/python-modules/prometheus-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, twisted -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + twisted, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,24 +22,15 @@ buildPythonPackage rec { hash = "sha256-IMw0mpOUzjXBy4bMTeSFMc5pdibI5lGxZHKiufjPLbM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - optional-dependencies.twisted = [ - twisted - ]; + optional-dependencies.twisted = [ twisted ]; __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ] - ++ lib.flatten (lib.attrValues optional-dependencies); + nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies); - pythonImportsCheck = [ - "prometheus_client" - ]; + pythonImportsCheck = [ "prometheus_client" ]; meta = with lib; { description = "Prometheus instrumentation library for Python applications"; diff --git a/pkgs/development/python-modules/prometheus-flask-exporter/default.nix b/pkgs/development/python-modules/prometheus-flask-exporter/default.nix index b2acd8e5bbdd..2aa6ce30ebe4 100644 --- a/pkgs/development/python-modules/prometheus-flask-exporter/default.nix +++ b/pkgs/development/python-modules/prometheus-flask-exporter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, prometheus-client -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + prometheus-client, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-GAQ80J7at8Apqu+DUMN3+rLi/lrNv5Y7w/DKpUN2iu8="; }; - propagatedBuildInputs = [ flask prometheus-client ]; + propagatedBuildInputs = [ + flask + prometheus-client + ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests/" ]; diff --git a/pkgs/development/python-modules/prometheus-pandas/default.nix b/pkgs/development/python-modules/prometheus-pandas/default.nix index ff7cadd8f58b..670d9c4cf560 100644 --- a/pkgs/development/python-modules/prometheus-pandas/default.nix +++ b/pkgs/development/python-modules/prometheus-pandas/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, numpy -, pandas +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + numpy, + pandas, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-1eaTmNui3cAisKEhBMEpOv+UndJZwb4GGK2M76xiy7k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -28,9 +27,7 @@ buildPythonPackage rec { # There are no tests. :( doCheck = false; - pythonImportsCheck = [ - "prometheus_pandas" - ]; + pythonImportsCheck = [ "prometheus_pandas" ]; meta = with lib; { homepage = "https://github.com/dcoles/prometheus-pandas"; diff --git a/pkgs/development/python-modules/prometrix/default.nix b/pkgs/development/python-modules/prometrix/default.nix index fefbfd5f8298..850ee8e55be6 100644 --- a/pkgs/development/python-modules/prometrix/default.nix +++ b/pkgs/development/python-modules/prometrix/default.nix @@ -1,17 +1,18 @@ -{ lib -, boto3 -, botocore -, buildPythonPackage -, dateparser -, fetchFromGitHub -, matplotlib -, numpy -, pandas -, poetry-core -, prometheus-api-client -, pydantic -, pythonRelaxDepsHook -, requests +{ + lib, + boto3, + botocore, + buildPythonPackage, + dateparser, + fetchFromGitHub, + matplotlib, + numpy, + pandas, + poetry-core, + prometheus-api-client, + pydantic, + pythonRelaxDepsHook, + requests, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { "urllib3" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ boto3 @@ -56,9 +53,7 @@ buildPythonPackage rec { # https://github.com/robusta-dev/prometrix/issues/9 doCheck = false; - pythonImportsCheck = [ - "prometrix" - ]; + pythonImportsCheck = [ "prometrix" ]; meta = with lib; { description = "Unified Prometheus client"; diff --git a/pkgs/development/python-modules/promise/default.nix b/pkgs/development/python-modules/promise/default.nix index a9c4c416b7fc..95abec75b974 100644 --- a/pkgs/development/python-modules/promise/default.nix +++ b/pkgs/development/python-modules/promise/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace "assert_exc.traceback[-1].path.strpath" "str(assert_exc.traceback[-1].path)" ''; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ mock @@ -47,13 +46,9 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - "tests/test_benchmark.py" - ]; + disabledTestPaths = [ "tests/test_benchmark.py" ]; - pythonImportsCheck = [ - "promise" - ]; + pythonImportsCheck = [ "promise" ]; meta = with lib; { description = "Ultra-performant Promise implementation in Python"; diff --git a/pkgs/development/python-modules/prompt-toolkit/1.nix b/pkgs/development/python-modules/prompt-toolkit/1.nix index f92ceeb86fff..1a6dd3223df0 100644 --- a/pkgs/development/python-modules/prompt-toolkit/1.nix +++ b/pkgs/development/python-modules/prompt-toolkit/1.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, docopt -, six -, wcwidth -, pygments +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + docopt, + six, + wcwidth, + pygments, }: buildPythonPackage rec { @@ -18,13 +19,16 @@ buildPythonPackage rec { sha256 = "dd4fca02c8069497ad931a2d09914c6b0d1b50151ce876bc15bde4c747090126"; }; - propagatedBuildInputs = [ docopt six wcwidth pygments ]; + propagatedBuildInputs = [ + docopt + six + wcwidth + pygments + ]; nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_pathcompleter_can_expanduser" - ]; + disabledTests = [ "test_pathcompleter_can_expanduser" ]; meta = with lib; { description = "Python library for building powerful interactive command lines"; diff --git a/pkgs/development/python-modules/prompt-toolkit/default.nix b/pkgs/development/python-modules/prompt-toolkit/default.nix index faadc19f7a6e..77550d1cf121 100644 --- a/pkgs/development/python-modules/prompt-toolkit/default.nix +++ b/pkgs/development/python-modules/prompt-toolkit/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, six -, wcwidth +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + six, + wcwidth, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { wcwidth ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # tests/test_completion.py:206: AssertionError @@ -35,9 +34,7 @@ buildPythonPackage rec { "test_pathcompleter_can_expanduser" ]; - pythonImportsCheck = [ - "prompt_toolkit" - ]; + pythonImportsCheck = [ "prompt_toolkit" ]; meta = with lib; { description = "Python library for building powerful interactive command lines"; diff --git a/pkgs/development/python-modules/prompthub-py/default.nix b/pkgs/development/python-modules/prompthub-py/default.nix index 0f1fbe5427b0..efd1cdd3ec4a 100644 --- a/pkgs/development/python-modules/prompthub-py/default.nix +++ b/pkgs/development/python-modules/prompthub-py/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pyyaml -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pyyaml, + requests, }: let pname = "prompthub-py"; @@ -24,9 +25,7 @@ buildPythonPackage { disabled = pythonOlder "3.8"; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyyaml diff --git a/pkgs/development/python-modules/property-manager/default.nix b/pkgs/development/python-modules/property-manager/default.nix index f293c2f13b35..e1eee500812e 100644 --- a/pkgs/development/python-modules/property-manager/default.nix +++ b/pkgs/development/python-modules/property-manager/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchFromGitHub, humanfriendly, verboselogs, coloredlogs, pytest, pytest-cov }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + humanfriendly, + verboselogs, + coloredlogs, + pytest, + pytest-cov, +}: buildPythonPackage rec { pname = "property-manager"; @@ -12,8 +21,15 @@ buildPythonPackage rec { sha256 = "1v7hjm7qxpgk92i477fjhpcnjgp072xgr8jrgmbrxfbsv4cvl486"; }; - propagatedBuildInputs = [ coloredlogs humanfriendly verboselogs ]; - nativeCheckInputs = [ pytest pytest-cov ]; + propagatedBuildInputs = [ + coloredlogs + humanfriendly + verboselogs + ]; + nativeCheckInputs = [ + pytest + pytest-cov + ]; meta = with lib; { description = "Useful property variants for Python programming"; diff --git a/pkgs/development/python-modules/prophet/default.nix b/pkgs/development/python-modules/prophet/default.nix index 5c1e07961204..5a5f511fd305 100644 --- a/pkgs/development/python-modules/prophet/default.nix +++ b/pkgs/development/python-modules/prophet/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, -, cmdstanpy -, numpy -, matplotlib -, pandas -, holidays -, tqdm -, importlib-resources + cmdstanpy, + numpy, + matplotlib, + pandas, + holidays, + tqdm, + importlib-resources, -, dask -, distributed + dask, + distributed, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -48,7 +49,10 @@ buildPythonPackage rec { importlib-resources ]; - passthru.optional-dependencies.parallel = [ dask distributed ] ++ dask.optional-dependencies.dataframe; + passthru.optional-dependencies.parallel = [ + dask + distributed + ] ++ dask.optional-dependencies.dataframe; preCheck = '' # use the generated files from $out for testing diff --git a/pkgs/development/python-modules/propka/default.nix b/pkgs/development/python-modules/propka/default.nix index 2e29476774d1..a96acf64f7a7 100644 --- a/pkgs/development/python-modules/propka/default.nix +++ b/pkgs/development/python-modules/propka/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-EJQqCe4WPOpqsSxxfbTjF0qETpSPYqpixpylweTCjko="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "propka" - ]; + pythonImportsCheck = [ "propka" ]; meta = with lib; { description = "A predictor of the pKa values of ionizable groups in proteins and protein-ligand complexes based in the 3D structure"; diff --git a/pkgs/development/python-modules/proto-plus/default.nix b/pkgs/development/python-modules/proto-plus/default.nix index e7997e71b7a8..df76396f68e3 100644 --- a/pkgs/development/python-modules/proto-plus/default.nix +++ b/pkgs/development/python-modules/proto-plus/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, protobuf -, googleapis-common-protos -, pytestCheckHook -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + protobuf, + googleapis-common-protos, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -21,7 +22,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ protobuf ]; - nativeCheckInputs = [ pytestCheckHook pytz googleapis-common-protos ]; + nativeCheckInputs = [ + pytestCheckHook + pytz + googleapis-common-protos + ]; pythonImportsCheck = [ "proto" ]; diff --git a/pkgs/development/python-modules/protobuf/3.nix b/pkgs/development/python-modules/protobuf/3.nix index 9685ec88d99c..75a697dc35b0 100644 --- a/pkgs/development/python-modules/protobuf/3.nix +++ b/pkgs/development/python-modules/protobuf/3.nix @@ -1,12 +1,13 @@ -{ buildPackages -, buildPythonPackage -, fetchpatch -, isPyPy -, lib -, protobuf -, pytestCheckHook -, pythonAtLeast -, tzdata +{ + buildPackages, + buildPythonPackage, + fetchpatch, + isPyPy, + lib, + protobuf, + pytestCheckHook, + pythonAtLeast, + tzdata, }: assert lib.versionAtLeast protobuf.version "3.21" -> throw "Protobuf 3.20 or older required"; @@ -61,9 +62,7 @@ buildPythonPackage { setupPyGlobalFlags = [ "--cpp_implementation" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals isPyPy [ # error message differs diff --git a/pkgs/development/python-modules/protobuf/default.nix b/pkgs/development/python-modules/protobuf/default.nix index f47c64d19a37..9d10deca12a5 100644 --- a/pkgs/development/python-modules/protobuf/default.nix +++ b/pkgs/development/python-modules/protobuf/default.nix @@ -1,14 +1,15 @@ -{ buildPackages -, buildPythonPackage -, fetchpatch -, isPyPy -, lib -, numpy -, protobuf -, pytestCheckHook -, pythonAtLeast -, substituteAll -, tzdata +{ + buildPackages, + buildPythonPackage, + fetchpatch, + isPyPy, + lib, + numpy, + protobuf, + pytestCheckHook, + pythonAtLeast, + substituteAll, + tzdata, }: assert lib.versionOlder protobuf.version "21" -> throw "Protobuf 21 or newer required"; @@ -26,21 +27,22 @@ buildPythonPackage { sourceRoot = "${protobuf.src.name}/python"; - patches = lib.optionals (lib.versionAtLeast protobuf.version "22") [ - # Replace the vendored abseil-cpp with nixpkgs' - (substituteAll { - src = ./use-nixpkgs-abseil-cpp.patch; - abseil_cpp_include_path = "${lib.getDev protobuf.abseil-cpp}/include"; - }) - ] - ++ lib.optionals (pythonAtLeast "3.11" && lib.versionOlder protobuf.version "22") [ - (fetchpatch { - name = "support-python311.patch"; - url = "https://github.com/protocolbuffers/protobuf/commit/2206b63c4649cf2e8a06b66c9191c8ef862ca519.diff"; - stripLen = 1; # because sourceRoot above - hash = "sha256-3GaoEyZIhS3QONq8LEvJCH5TdO9PKnOgcQF0GlEiwFo="; - }) - ]; + patches = + lib.optionals (lib.versionAtLeast protobuf.version "22") [ + # Replace the vendored abseil-cpp with nixpkgs' + (substituteAll { + src = ./use-nixpkgs-abseil-cpp.patch; + abseil_cpp_include_path = "${lib.getDev protobuf.abseil-cpp}/include"; + }) + ] + ++ lib.optionals (pythonAtLeast "3.11" && lib.versionOlder protobuf.version "22") [ + (fetchpatch { + name = "support-python311.patch"; + url = "https://github.com/protocolbuffers/protobuf/commit/2206b63c4649cf2e8a06b66c9191c8ef862ca519.diff"; + stripLen = 1; # because sourceRoot above + hash = "sha256-3GaoEyZIhS3QONq8LEvJCH5TdO9PKnOgcQF0GlEiwFo="; + }) + ]; prePatch = '' if [[ "$(<../version.json)" != *'"python": "'"$version"'"'* ]]; then @@ -80,9 +82,7 @@ buildPythonPackage { nativeCheckInputs = [ pytestCheckHook - ] ++ lib.optionals (lib.versionAtLeast protobuf.version "22") [ - numpy - ]; + ] ++ lib.optionals (lib.versionAtLeast protobuf.version "22") [ numpy ]; disabledTests = lib.optionals isPyPy [ # error message differs @@ -94,19 +94,21 @@ buildPythonPackage { "testStrictUtf8Check" ]; - disabledTestPaths = lib.optionals (lib.versionAtLeast protobuf.version "23") [ - # The following commit (I think) added some internal test logic for Google - # that broke generator_test.py. There is a new proto file that setup.py is - # not generating into a .py file. However, adding this breaks a bunch of - # conflict detection in descriptor_test.py that I don't understand. So let's - # just disable generator_test.py for now. - # - # https://github.com/protocolbuffers/protobuf/commit/5abab0f47e81ac085f0b2d17ec3b3a3b252a11f1 - # - "google/protobuf/internal/generator_test.py" - ] ++ lib.optionals (lib.versionAtLeast protobuf.version "25") [ - "minimal_test.py" # ModuleNotFoundError: No module named 'google3' - ]; + disabledTestPaths = + lib.optionals (lib.versionAtLeast protobuf.version "23") [ + # The following commit (I think) added some internal test logic for Google + # that broke generator_test.py. There is a new proto file that setup.py is + # not generating into a .py file. However, adding this breaks a bunch of + # conflict detection in descriptor_test.py that I don't understand. So let's + # just disable generator_test.py for now. + # + # https://github.com/protocolbuffers/protobuf/commit/5abab0f47e81ac085f0b2d17ec3b3a3b252a11f1 + # + "google/protobuf/internal/generator_test.py" + ] + ++ lib.optionals (lib.versionAtLeast protobuf.version "25") [ + "minimal_test.py" # ModuleNotFoundError: No module named 'google3' + ]; pythonImportsCheck = [ "google.protobuf" diff --git a/pkgs/development/python-modules/protobuf3-to-dict/default.nix b/pkgs/development/python-modules/protobuf3-to-dict/default.nix index 4160f7760a0c..fcbc5804d18f 100644 --- a/pkgs/development/python-modules/protobuf3-to-dict/default.nix +++ b/pkgs/development/python-modules/protobuf3-to-dict/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, protobuf, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + protobuf, + six, +}: buildPythonPackage rec { pname = "protobuf3-to-dict"; @@ -14,7 +20,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "protobuf_to_dict" ]; - propagatedBuildInputs = [ protobuf six ]; + propagatedBuildInputs = [ + protobuf + six + ]; meta = with lib; { description = "A teeny Python library for creating Python dicts from protocol buffers and the reverse"; diff --git a/pkgs/development/python-modules/proton-client/default.nix b/pkgs/development/python-modules/proton-client/default.nix index c8714a741a47..d61c5aed9bb6 100644 --- a/pkgs/development/python-modules/proton-client/default.nix +++ b/pkgs/development/python-modules/proton-client/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, substituteAll -, bcrypt -, pyopenssl -, python-gnupg -, pytestCheckHook -, requests -, openssl +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + substituteAll, + bcrypt, + pyopenssl, + python-gnupg, + pytestCheckHook, + requests, + openssl, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/proton-core/default.nix b/pkgs/development/python-modules/proton-core/default.nix index 07eb0b9fc707..faedd9893190 100644 --- a/pkgs/development/python-modules/proton-core/default.nix +++ b/pkgs/development/python-modules/proton-core/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, aiohttp -, bcrypt -, pyopenssl -, python-gnupg -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + bcrypt, + pyopenssl, + python-gnupg, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-072XuHvgWludlFwp/tqLpuAU89vzifFhwQ01FuiCoL8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bcrypt @@ -41,9 +40,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Single test, requires internet connection diff --git a/pkgs/development/python-modules/proton-keyring-linux-secretservice/default.nix b/pkgs/development/python-modules/proton-keyring-linux-secretservice/default.nix index db8a0d14cdb3..d7300a52e079 100644 --- a/pkgs/development/python-modules/proton-keyring-linux-secretservice/default.nix +++ b/pkgs/development/python-modules/proton-keyring-linux-secretservice/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, proton-keyring-linux -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + proton-keyring-linux, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-IZPT2bL/1YD2TH/djwIQHUE1RRbYMTkQDacjjoqDQWo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - proton-keyring-linux - ]; + propagatedBuildInputs = [ proton-keyring-linux ]; postPatch = '' substituteInPlace setup.cfg \ @@ -33,9 +30,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.keyring_linux" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "ProtonVPN component to access Linux's keyring secret service API"; diff --git a/pkgs/development/python-modules/proton-keyring-linux/default.nix b/pkgs/development/python-modules/proton-keyring-linux/default.nix index 231a482658b3..ebb8fc2923fd 100644 --- a/pkgs/development/python-modules/proton-keyring-linux/default.nix +++ b/pkgs/development/python-modules/proton-keyring-linux/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, keyring -, proton-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + keyring, + proton-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-c2wdbd8Hkz2hF9zYMy4/V/W6uZRItz7tWqLJqTsJoHU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ keyring @@ -35,9 +34,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.keyring_linux.core" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "ProtonVPN core component to access Linux's keyring"; diff --git a/pkgs/development/python-modules/proton-vpn-api-core/default.nix b/pkgs/development/python-modules/proton-vpn-api-core/default.nix index 3e602ab839de..3af6e6eb62b5 100644 --- a/pkgs/development/python-modules/proton-vpn-api-core/default.nix +++ b/pkgs/development/python-modules/proton-vpn-api-core/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, proton-core -, proton-vpn-connection -, proton-vpn-logger -, proton-vpn-killswitch -, proton-vpn-session -, sentry-sdk -, distro -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + proton-core, + proton-vpn-connection, + proton-vpn-logger, + proton-vpn-killswitch, + proton-vpn-session, + sentry-sdk, + distro, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-BGei6tw6VTKkHmaIWa2VJfKOL5cRUbauOQ7zp1RY9Bo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ distro @@ -45,9 +44,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.vpn.core" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # Needed for Permission denied: '/homeless-shelter' diff --git a/pkgs/development/python-modules/proton-vpn-connection/default.nix b/pkgs/development/python-modules/proton-vpn-connection/default.nix index 9fb7250f10b3..b343ae180541 100644 --- a/pkgs/development/python-modules/proton-vpn-connection/default.nix +++ b/pkgs/development/python-modules/proton-vpn-connection/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, proton-core -, proton-vpn-killswitch -, proton-vpn-logger -, jinja2 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + proton-core, + proton-vpn-killswitch, + proton-vpn-logger, + jinja2, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-Ze/te0G0tDzyZPGVVqvuJlZoHWJqJ36LnHO+Cy5nxx8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ jinja2 @@ -39,9 +38,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.vpn.connection" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Permission denied: '/run' diff --git a/pkgs/development/python-modules/proton-vpn-killswitch-network-manager/default.nix b/pkgs/development/python-modules/proton-vpn-killswitch-network-manager/default.nix index 78e9b29a2925..2db8b53a3879 100644 --- a/pkgs/development/python-modules/proton-vpn-killswitch-network-manager/default.nix +++ b/pkgs/development/python-modules/proton-vpn-killswitch-network-manager/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gobject-introspection -, setuptools -, networkmanager -, proton-vpn-killswitch -, proton-vpn-logger -, pycairo -, pygobject3 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gobject-introspection, + setuptools, + networkmanager, + proton-vpn-killswitch, + proton-vpn-logger, + pycairo, + pygobject3, + pytestCheckHook, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.vpn.killswitch.backend.linux.networkmanager" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Implementation of the proton-vpn-killswitch interface using Network Manager"; diff --git a/pkgs/development/python-modules/proton-vpn-killswitch/default.nix b/pkgs/development/python-modules/proton-vpn-killswitch/default.nix index 912980453ad9..cc7fc839e513 100644 --- a/pkgs/development/python-modules/proton-vpn-killswitch/default.nix +++ b/pkgs/development/python-modules/proton-vpn-killswitch/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, proton-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + proton-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-XZqjAhxgIiATJd3JcW2WWUMC1b6+cfZRhXlIPyMUFH8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - proton-core - ]; + propagatedBuildInputs = [ proton-core ]; postPatch = '' substituteInPlace setup.cfg \ @@ -33,9 +30,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.vpn.killswitch.interface" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Defines the ProtonVPN kill switch interface"; diff --git a/pkgs/development/python-modules/proton-vpn-logger/default.nix b/pkgs/development/python-modules/proton-vpn-logger/default.nix index 9c581f400c73..a8c3f02de8fd 100644 --- a/pkgs/development/python-modules/proton-vpn-logger/default.nix +++ b/pkgs/development/python-modules/proton-vpn-logger/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, proton-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + proton-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-/LfMjyTs/EusgnKEQugsdJzqDZBvaAhbsTUVLDCRw0I="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - proton-core - ]; + propagatedBuildInputs = [ proton-core ]; postPatch = '' substituteInPlace setup.cfg \ @@ -33,9 +30,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.vpn.logging" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # Needed for Permission denied: '/homeless-shelter' diff --git a/pkgs/development/python-modules/proton-vpn-network-manager-openvpn/default.nix b/pkgs/development/python-modules/proton-vpn-network-manager-openvpn/default.nix index 57c2615f53fc..2064cf0a6cca 100644 --- a/pkgs/development/python-modules/proton-vpn-network-manager-openvpn/default.nix +++ b/pkgs/development/python-modules/proton-vpn-network-manager-openvpn/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gobject-introspection -, setuptools -, proton-core -, proton-vpn-network-manager -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gobject-introspection, + setuptools, + proton-core, + proton-vpn-network-manager, + pytestCheckHook, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "proton.vpn.backend.linux.networkmanager.protocol" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Adds support for the OpenVPN protocol using NetworkManager"; diff --git a/pkgs/development/python-modules/proton-vpn-network-manager/default.nix b/pkgs/development/python-modules/proton-vpn-network-manager/default.nix index 0327354e7927..b08545a73965 100644 --- a/pkgs/development/python-modules/proton-vpn-network-manager/default.nix +++ b/pkgs/development/python-modules/proton-vpn-network-manager/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gobject-introspection -, setuptools -, networkmanager -, proton-core -, proton-vpn-connection -, pycairo -, pygobject3 -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gobject-introspection, + setuptools, + networkmanager, + proton-core, + proton-vpn-connection, + pycairo, + pygobject3, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/proton-vpn-session/default.nix b/pkgs/development/python-modules/proton-vpn-session/default.nix index 6295038b6f9e..b5d4756db600 100644 --- a/pkgs/development/python-modules/proton-vpn-session/default.nix +++ b/pkgs/development/python-modules/proton-vpn-session/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, cryptography -, distro -, proton-core -, proton-vpn-logger -, pynacl -, aiohttp -, pyopenssl -, pytest-asyncio -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cryptography, + distro, + proton-core, + proton-vpn-logger, + pynacl, + aiohttp, + pyopenssl, + pytest-asyncio, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-/5ju/2bxhqK6JWchkxFe3amBKHtO98GCVQWIrUsn+nQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography diff --git a/pkgs/development/python-modules/protonup-ng/default.nix b/pkgs/development/python-modules/protonup-ng/default.nix index 02695a5e3515..8e69e1c743d3 100644 --- a/pkgs/development/python-modules/protonup-ng/default.nix +++ b/pkgs/development/python-modules/protonup-ng/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, pythonOlder, fetchPypi, requests, configparser }: +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + requests, + configparser, +}: buildPythonPackage rec { pname = "protonup-ng"; @@ -16,7 +23,10 @@ buildPythonPackage rec { --replace "argparse" "" ''; - propagatedBuildInputs = [ requests configparser ]; + propagatedBuildInputs = [ + requests + configparser + ]; doCheck = false; # protonup does not have any tests pythonImportsCheck = [ "protonup" ]; @@ -25,7 +35,10 @@ buildPythonPackage rec { homepage = "https://github.com/cloudishBenne/protonup-ng"; description = "CLI program and API to automate the installation and update of GloriousEggroll's Proton-GE"; license = licenses.gpl3Only; - maintainers = with maintainers; [ Madouura cafkafk ]; + maintainers = with maintainers; [ + Madouura + cafkafk + ]; mainProgram = "protonup"; }; } diff --git a/pkgs/development/python-modules/protonvpn-nm-lib/default.nix b/pkgs/development/python-modules/protonvpn-nm-lib/default.nix index 7d4b65db3dda..4b4780afa492 100644 --- a/pkgs/development/python-modules/protonvpn-nm-lib/default.nix +++ b/pkgs/development/python-modules/protonvpn-nm-lib/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, substituteAll -, dbus-python -, distro -, jinja2 -, keyring -, proton-client -, pygobject3 -, pyxdg -, systemd -, ncurses -, networkmanager -, pkgs-systemd -, python -, xdg-utils -, makeWrapper +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + substituteAll, + dbus-python, + distro, + jinja2, + keyring, + proton-client, + pygobject3, + pyxdg, + systemd, + ncurses, + networkmanager, + pkgs-systemd, + python, + xdg-utils, + makeWrapper, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/prov/default.nix b/pkgs/development/python-modules/prov/default.nix index 64e63b9c954b..fb725723d954 100644 --- a/pkgs/development/python-modules/prov/default.nix +++ b/pkgs/development/python-modules/prov/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, networkx -, python-dateutil -, rdflib -, pydot +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + networkx, + python-dateutil, + rdflib, + pydot, }: buildPythonPackage rec { @@ -25,16 +26,12 @@ buildPythonPackage rec { rdflib ]; - nativeCheckInputs = [ - pydot - ]; + nativeCheckInputs = [ pydot ]; # Multiple tests are out-dated and failing doCheck = false; - pythonImportsCheck = [ - "prov" - ]; + pythonImportsCheck = [ "prov" ]; meta = with lib; { description = "Python library for W3C Provenance Data Model (PROV)"; diff --git a/pkgs/development/python-modules/prox-tv/default.nix b/pkgs/development/python-modules/prox-tv/default.nix index 67f9be4dba4c..030e5efef9c3 100644 --- a/pkgs/development/python-modules/prox-tv/default.nix +++ b/pkgs/development/python-modules/prox-tv/default.nix @@ -1,12 +1,13 @@ -{ lib -, blas -, lapack -, buildPythonPackage -, cffi -, fetchFromGitHub -, nose -, numpy -, stdenv +{ + lib, + blas, + lapack, + buildPythonPackage, + cffi, + fetchFromGitHub, + nose, + numpy, + stdenv, }: buildPythonPackage { @@ -21,9 +22,7 @@ buildPythonPackage { sha256 = "0mlrjbb5rw78dgijkr3bspmsskk6jqs9y7xpsgs35i46dvb327q5"; }; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; propagatedBuildInputs = [ numpy @@ -37,7 +36,10 @@ buildPythonPackage { propagatedNativeBuildInputs = [ cffi ]; - buildInputs = [ blas lapack ]; + buildInputs = [ + blas + lapack + ]; enableParallelBuilding = true; diff --git a/pkgs/development/python-modules/proxmoxer/default.nix b/pkgs/development/python-modules/proxmoxer/default.nix index 98063a560472..229634d64d59 100644 --- a/pkgs/development/python-modules/proxmoxer/default.nix +++ b/pkgs/development/python-modules/proxmoxer/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, paramiko -, pytestCheckHook -, pythonOlder -, requests -, requests-toolbelt -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + paramiko, + pytestCheckHook, + pythonOlder, + requests, + requests-toolbelt, + responses, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { "tests/test_openssh.py" ]; - pythonImportsCheck = [ - "proxmoxer" - ]; + pythonImportsCheck = [ "proxmoxer" ]; meta = with lib; { description = "Python wrapper for Proxmox API v2"; diff --git a/pkgs/development/python-modules/proxy-db/default.nix b/pkgs/development/python-modules/proxy-db/default.nix index a4a6fef11188..7ccfe3bb890a 100644 --- a/pkgs/development/python-modules/proxy-db/default.nix +++ b/pkgs/development/python-modules/proxy-db/default.nix @@ -1,14 +1,15 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, click -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, six -, sqlalchemy +{ + lib, + beautifulsoup4, + buildPythonPackage, + click, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + six, + sqlalchemy, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "proxy_db" - ]; + pythonImportsCheck = [ "proxy_db" ]; meta = with lib; { description = "Module to manage proxies in a local database"; diff --git a/pkgs/development/python-modules/proxy-tools/default.nix b/pkgs/development/python-modules/proxy-tools/default.nix index beb91a433388..b7c858d05200 100644 --- a/pkgs/development/python-modules/proxy-tools/default.nix +++ b/pkgs/development/python-modules/proxy-tools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-zLN1H1KcBH4tilhEDYayBTA88P6BRveE0cvNlPCigBA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # no tests in pypi doCheck = false; diff --git a/pkgs/development/python-modules/psautohint/default.nix b/pkgs/development/python-modules/psautohint/default.nix index 0702d4891cbc..9782458b4ccb 100644 --- a/pkgs/development/python-modules/psautohint/default.nix +++ b/pkgs/development/python-modules/psautohint/default.nix @@ -1,9 +1,17 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder -, fonttools -, lxml, fs # for fonttools extras -, setuptools-scm -, pytestCheckHook, pytest-cov, pytest-xdist -, runAllTests ? false, psautohint # for passthru.tests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + fonttools, + lxml, + fs, # for fonttools extras + setuptools-scm, + pytestCheckHook, + pytest-cov, + pytest-xdist, + runAllTests ? false, + psautohint, # for passthru.tests }: buildPythonPackage rec { @@ -29,7 +37,11 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ fonttools lxml fs ]; + propagatedBuildInputs = [ + fonttools + lxml + fs + ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pscript/default.nix b/pkgs/development/python-modules/pscript/default.nix index 76af30e2c125..59afdd5ea567 100644 --- a/pkgs/development/python-modules/pscript/default.nix +++ b/pkgs/development/python-modules/pscript/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, nodejs -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + nodejs, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { rm -rf pscript_legacy ''; - pythonImportsCheck = [ - "pscript" - ]; + pythonImportsCheck = [ "pscript" ]; meta = with lib; { description = "Python to JavaScript compiler"; diff --git a/pkgs/development/python-modules/psd-tools/default.nix b/pkgs/development/python-modules/psd-tools/default.nix index d732d0ce84a4..9250aaacc471 100644 --- a/pkgs/development/python-modules/psd-tools/default.nix +++ b/pkgs/development/python-modules/psd-tools/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, attrs -, docopt -, pillow -, scikit-image -, scipy -, numpy -, aggdraw -, pytestCheckHook -, pytest-cov -, ipython -, cython +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + attrs, + docopt, + pillow, + scikit-image, + scipy, + numpy, + aggdraw, + pytestCheckHook, + pytest-cov, + ipython, + cython, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { sed -i "/addopts =/d" pyproject.toml ''; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ aggdraw @@ -53,9 +52,7 @@ buildPythonPackage rec { pytest-cov ]; - pythonImportsCheck = [ - "psd_tools" - ]; + pythonImportsCheck = [ "psd_tools" ]; meta = with lib; { description = "Python package for reading Adobe Photoshop PSD files"; diff --git a/pkgs/development/python-modules/psutil-home-assistant/default.nix b/pkgs/development/python-modules/psutil-home-assistant/default.nix index 9ea18d7853b0..40edb0b5270f 100644 --- a/pkgs/development/python-modules/psutil-home-assistant/default.nix +++ b/pkgs/development/python-modules/psutil-home-assistant/default.nix @@ -1,11 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, psutil -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + psutil, + pytestCheckHook, }: - buildPythonPackage rec { pname = "psutil-home-assistant"; version = "0.0.1"; @@ -18,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-6bj1aaa/JYZFVwUAJfxISRoldgTmumCG8WrlKhkb6kM="; }; - propagatedBuildInputs = [ - psutil - ]; + propagatedBuildInputs = [ psutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/home-assistant-libs/psutil-home-assistant/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/psutil/default.nix b/pkgs/development/python-modules/psutil/default.nix index a27bb429c7c1..d6072ce02b28 100644 --- a/pkgs/development/python-modules/psutil/default.nix +++ b/pkgs/development/python-modules/psutil/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, CoreFoundation -, fetchPypi -, IOKit -, pytestCheckHook -, python -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + CoreFoundation, + fetchPypi, + IOKit, + pytestCheckHook, + python, + pythonOlder, }: buildPythonPackage rec { @@ -33,15 +34,10 @@ buildPythonPackage rec { buildInputs = # workaround for https://github.com/NixOS/nixpkgs/issues/146760 - lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - CoreFoundation - ] ++ lib.optionals stdenv.isDarwin [ - IOKit - ]; + lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ CoreFoundation ] + ++ lib.optionals stdenv.isDarwin [ IOKit ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Segfaults on darwin: # https://github.com/giampaolo/psutil/issues/1715 @@ -69,9 +65,7 @@ buildPythonPackage rec { "test_disk_partitions" # problematic on Hydra's Linux builders, apparently ]; - pythonImportsCheck = [ - "psutil" - ]; + pythonImportsCheck = [ "psutil" ]; meta = with lib; { description = "Process and system utilization information interface"; diff --git a/pkgs/development/python-modules/psychrolib/default.nix b/pkgs/development/python-modules/psychrolib/default.nix index cda0523b9698..144d65b3f578 100644 --- a/pkgs/development/python-modules/psychrolib/default.nix +++ b/pkgs/development/python-modules/psychrolib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,16 +23,12 @@ buildPythonPackage rec { sourceRoot = "${src.name}/src/python"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "psychrolib" - ]; + pythonImportsCheck = [ "psychrolib" ]; meta = with lib; { description = "Library of psychrometric functions to calculate thermodynamic properties"; diff --git a/pkgs/development/python-modules/psycopg/default.nix b/pkgs/development/python-modules/psycopg/default.nix index 65d9e3523620..36ad3e83d342 100644 --- a/pkgs/development/python-modules/psycopg/default.nix +++ b/pkgs/development/python-modules/psycopg/default.nix @@ -1,35 +1,36 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchurl -, pythonOlder -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchurl, + pythonOlder, + substituteAll, -# build -, postgresql -, setuptools + # build + postgresql, + setuptools, -# propagates -, backports-zoneinfo -, typing-extensions + # propagates + backports-zoneinfo, + typing-extensions, -# psycopg-c -, cython -, tomli + # psycopg-c + cython, + tomli, -# docs -, furo -, shapely -, sphinxHook -, sphinx-autodoc-typehints + # docs + furo, + shapely, + sphinxHook, + sphinx-autodoc-typehints, -# tests -, anyio -, pproxy -, pytest-randomly -, pytestCheckHook -, postgresqlTestHook + # tests + anyio, + pproxy, + pytest-randomly, + pytestCheckHook, + postgresqlTestHook, }: let @@ -99,9 +100,7 @@ let cd psycopg_pool ''; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; # tested in psycopg doCheck = false; @@ -110,7 +109,6 @@ let description = "Connection Pool for Psycopg"; }; }; - in buildPythonPackage rec { @@ -150,9 +148,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ psycopg-c typing-extensions - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; pythonImportsCheck = [ "psycopg" @@ -165,16 +161,17 @@ buildPythonPackage rec { pool = [ psycopg-pool ]; }; - nativeCheckInputs = [ - anyio - pproxy - pytest-randomly - pytestCheckHook - postgresql - ] - ++ lib.optional (stdenv.isLinux) postgresqlTestHook - ++ passthru.optional-dependencies.c - ++ passthru.optional-dependencies.pool; + nativeCheckInputs = + [ + anyio + pproxy + pytest-randomly + pytestCheckHook + postgresql + ] + ++ lib.optional (stdenv.isLinux) postgresqlTestHook + ++ passthru.optional-dependencies.c + ++ passthru.optional-dependencies.pool; env = { postgresqlEnableTCP = 1; @@ -182,11 +179,13 @@ buildPythonPackage rec { PGDATABASE = "psycopg"; }; - preCheck = '' - cd .. - '' + lib.optionalString (stdenv.isLinux) '' - export PSYCOPG_TEST_DSN="host=/build/run/postgresql user=$PGUSER" - ''; + preCheck = + '' + cd .. + '' + + lib.optionalString (stdenv.isLinux) '' + export PSYCOPG_TEST_DSN="host=/build/run/postgresql user=$PGUSER" + ''; disabledTests = [ # don't depend on mypy for tests @@ -204,10 +203,13 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-o" "cache_dir=$TMPDIR" - "-m" "'not refcount and not timing'" + "-o" + "cache_dir=$TMPDIR" + "-m" + "'not refcount and not timing'" # pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect - "-W" "ignore::pytest.PytestRemovedIn9Warning" + "-W" + "ignore::pytest.PytestRemovedIn9Warning" ]; postCheck = '' diff --git a/pkgs/development/python-modules/psycopg2/default.nix b/pkgs/development/python-modules/psycopg2/default.nix index 54d2ec749333..471cff85da6e 100644 --- a/pkgs/development/python-modules/psycopg2/default.nix +++ b/pkgs/development/python-modules/psycopg2/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, isPyPy -, fetchPypi -, postgresql -, postgresqlTestHook -, openssl -, sphinxHook -, sphinx-better-theme -, buildPackages +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + isPyPy, + fetchPypi, + postgresql, + postgresqlTestHook, + openssl, + sphinxHook, + sphinx-better-theme, + buildPackages, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { # c.f. https://github.com/NixOS/nixpkgs/pull/104151#issuecomment-729750892 disabled = pythonOlder "3.6" || isPyPy; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchPypi { inherit pname version; @@ -41,11 +45,7 @@ buildPythonPackage rec { sphinx-better-theme ]; - buildInputs = [ - postgresql - ] ++ lib.optionals stdenv.isDarwin [ - openssl - ]; + buildInputs = [ postgresql ] ++ lib.optionals stdenv.isDarwin [ openssl ]; sphinxRoot = "doc/src"; @@ -53,24 +53,25 @@ buildPythonPackage rec { # current transaction is aborted, commands ignored until end of transaction block doCheck = false; - nativeCheckInputs = [ - postgresqlTestHook - ]; + nativeCheckInputs = [ postgresqlTestHook ]; env = { PGDATABASE = "psycopg2_test"; }; - pythonImportsCheck = [ - "psycopg2" - ]; + pythonImportsCheck = [ "psycopg2" ]; - disallowedReferences = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ buildPackages.postgresql ]; + disallowedReferences = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ + buildPackages.postgresql + ]; meta = with lib; { description = "PostgreSQL database adapter for the Python programming language"; homepage = "https://www.psycopg.org"; - license = with licenses; [ lgpl3Plus zpl20 ]; + license = with licenses; [ + lgpl3Plus + zpl20 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/psycopg2cffi/default.nix b/pkgs/development/python-modules/psycopg2cffi/default.nix index 608bae034ea5..ee7478e52594 100644 --- a/pkgs/development/python-modules/psycopg2cffi/default.nix +++ b/pkgs/development/python-modules/psycopg2cffi/default.nix @@ -1,13 +1,14 @@ -{ buildPythonPackage -, cffi -, fetchFromGitHub -, lib -, postgresql -, postgresqlTestHook -, pytestCheckHook -, setuptools -, six -, stdenv +{ + buildPythonPackage, + cffi, + fetchFromGitHub, + lib, + postgresql, + postgresqlTestHook, + pytestCheckHook, + setuptools, + six, + stdenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/psygnal/default.nix b/pkgs/development/python-modules/psygnal/default.nix index a4b07f761243..b9cc815f61d5 100644 --- a/pkgs/development/python-modules/psygnal/default.nix +++ b/pkgs/development/python-modules/psygnal/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, mypy-extensions -, numpy -, pydantic -, pytestCheckHook -, pythonOlder -, toolz -, typing-extensions -, wrapt -, attrs +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + mypy-extensions, + numpy, + pydantic, + pytestCheckHook, + pythonOlder, + toolz, + typing-extensions, + wrapt, + attrs, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { attrs ]; - pythonImportsCheck = [ - "psygnal" - ]; + pythonImportsCheck = [ "psygnal" ]; meta = with lib; { description = "Implementation of Qt Signals"; diff --git a/pkgs/development/python-modules/ptable/default.nix b/pkgs/development/python-modules/ptable/default.nix index 8589ed16277f..32f56a5bbec2 100644 --- a/pkgs/development/python-modules/ptable/default.nix +++ b/pkgs/development/python-modules/ptable/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, nose }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, +}: buildPythonPackage { pname = "ptable"; diff --git a/pkgs/development/python-modules/ptest/default.nix b/pkgs/development/python-modules/ptest/default.nix index 1b063e784a9d..a9772dcb2654 100644 --- a/pkgs/development/python-modules/ptest/default.nix +++ b/pkgs/development/python-modules/ptest/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { pname = "ptest"; - version = "1.7.4"; + version = "1.7.4"; format = "setuptools"; src = fetchFromGitHub { @@ -20,5 +21,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/ptest"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/ptpython/default.nix b/pkgs/development/python-modules/ptpython/default.nix index 437608956649..fdacceff4ad3 100644 --- a/pkgs/development/python-modules/ptpython/default.nix +++ b/pkgs/development/python-modules/ptpython/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, appdirs -, importlib-metadata -, jedi -, prompt-toolkit -, pygments +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + appdirs, + importlib-metadata, + jedi, + prompt-toolkit, + pygments, }: buildPythonPackage rec { @@ -26,16 +27,12 @@ buildPythonPackage rec { jedi prompt-toolkit pygments - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # no tests to run doCheck = false; - pythonImportsCheck = [ - "ptpython" - ]; + pythonImportsCheck = [ "ptpython" ]; meta = with lib; { description = "An advanced Python REPL"; diff --git a/pkgs/development/python-modules/ptyprocess/default.nix b/pkgs/development/python-modules/ptyprocess/default.nix index 17a961620da5..7cdc7aebeba3 100644 --- a/pkgs/development/python-modules/ptyprocess/default.nix +++ b/pkgs/development/python-modules/ptyprocess/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, flit-core -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + flit-core, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,17 +28,11 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ptyprocess" - ]; + pythonImportsCheck = [ "ptyprocess" ]; meta = with lib; { description = "Run a subprocess in a pseudo terminal"; diff --git a/pkgs/development/python-modules/pubnubsub-handler/default.nix b/pkgs/development/python-modules/pubnubsub-handler/default.nix index 8d8c8da9620e..2bb9a0e75f73 100644 --- a/pkgs/development/python-modules/pubnubsub-handler/default.nix +++ b/pkgs/development/python-modules/pubnubsub-handler/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pubnub -, pycryptodomex -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pubnub, + pycryptodomex, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pudb/default.nix b/pkgs/development/python-modules/pudb/default.nix index 2ab448e77f1c..31289a36c01f 100644 --- a/pkgs/development/python-modules/pudb/default.nix +++ b/pkgs/development/python-modules/pudb/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jedi -, pygments -, urwid -, urwid-readline -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + jedi, + pygments, + urwid, + urwid-readline, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pythonImportsCheck = [ - "pudb" - ]; + pythonImportsCheck = [ "pudb" ]; meta = with lib; { description = "A full-screen, console-based Python debugger"; diff --git a/pkgs/development/python-modules/pueblo/default.nix b/pkgs/development/python-modules/pueblo/default.nix index 6b11cdad611d..bbc2d480d924 100644 --- a/pkgs/development/python-modules/pueblo/default.nix +++ b/pkgs/development/python-modules/pueblo/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, versioningit -, platformdirs +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + versioningit, + platformdirs, }: buildPythonPackage rec { @@ -28,8 +29,8 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - # contextlib-chdir - # importlib-metadata + # contextlib-chdir + # importlib-metadata platformdirs ]; diff --git a/pkgs/development/python-modules/pulp/default.nix b/pkgs/development/python-modules/pulp/default.nix index 8e318822f086..c0955bc96aa6 100644 --- a/pkgs/development/python-modules/pulp/default.nix +++ b/pkgs/development/python-modules/pulp/default.nix @@ -1,11 +1,12 @@ -{ lib -, cbc -, amply -, buildPythonPackage -, fetchFromGitHub -, pyparsing -, pythonOlder -, pytestCheckHook +{ + lib, + cbc, + amply, + buildPythonPackage, + fetchFromGitHub, + pyparsing, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { pyparsing ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pulp" - ]; + pythonImportsCheck = [ "pulp" ]; meta = with lib; { description = "Module to generate MPS or LP files"; diff --git a/pkgs/development/python-modules/pulsar-client/default.nix b/pkgs/development/python-modules/pulsar-client/default.nix index d2448043a64a..2c236dca67fd 100644 --- a/pkgs/development/python-modules/pulsar-client/default.nix +++ b/pkgs/development/python-modules/pulsar-client/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, python +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + python, }: let version = "3.4.0"; @@ -11,13 +12,24 @@ let Srcs = let - getSrcFromPypi = { platform, dist, hash }: fetchPypi { - inherit version platform dist hash; - pname = "pulsar_client"; - format = "wheel"; - python = dist; - abi = dist; - }; + getSrcFromPypi = + { + platform, + dist, + hash, + }: + fetchPypi { + inherit + version + platform + dist + hash + ; + pname = "pulsar_client"; + format = "wheel"; + python = dist; + abi = dist; + }; in { "3.9-x86_64-linux" = getSrcFromPypi { @@ -101,15 +113,16 @@ let hash = "sha256-Hgd6SDm+Pq094/BbTCRCadyi3wf0fOoLkFRMfp3BZC8="; }; }; - -in buildPythonPackage { +in +buildPythonPackage { pname = "pulsar-client"; inherit version; format = "wheel"; - src = Srcs."${pythonVersion}-${stdenv.hostPlatform.system}" - or (throw "Unsupported '${pythonVersion}-${stdenv.hostPlatform.system}' target"); + src = + Srcs."${pythonVersion}-${stdenv.hostPlatform.system}" + or (throw "Unsupported '${pythonVersion}-${stdenv.hostPlatform.system}' target"); meta = with lib; { description = "Client for pulsar"; diff --git a/pkgs/development/python-modules/pulsar/default.nix b/pkgs/development/python-modules/pulsar/default.nix index b6dfde67706b..516a718b758d 100644 --- a/pkgs/development/python-modules/pulsar/default.nix +++ b/pkgs/development/python-modules/pulsar/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, cmake -, pkg-config -, libpulsar -, pybind11 -, certifi +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + cmake, + pkg-config, + libpulsar, + pybind11, + certifi, }: buildPythonPackage rec { @@ -39,16 +40,12 @@ buildPythonPackage rec { cd .. ''; - propagatedBuildInputs = [ - certifi - ]; + propagatedBuildInputs = [ certifi ]; # Requires to setup a cluster doCheck = false; - pythonImportsCheck = [ - "pulsar" - ]; + pythonImportsCheck = [ "pulsar" ]; meta = with lib; { description = "Apache Pulsar Python client library"; diff --git a/pkgs/development/python-modules/pulsectl/default.nix b/pkgs/development/python-modules/pulsectl/default.nix index 5b87a24ddf55..c0cba36a76c9 100644 --- a/pkgs/development/python-modules/pulsectl/default.nix +++ b/pkgs/development/python-modules/pulsectl/default.nix @@ -1,4 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi, libpulseaudio, glibc, substituteAll, stdenv, pulseaudio, unittestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + libpulseaudio, + glibc, + substituteAll, + stdenv, + pulseaudio, + unittestCheckHook, +}: buildPythonPackage rec { pname = "pulsectl"; @@ -19,11 +29,12 @@ buildPythonPackage rec { }) ]; - pythonImportsCheck = [ - "pulsectl" - ]; + pythonImportsCheck = [ "pulsectl" ]; - nativeCheckInputs = [ unittestCheckHook pulseaudio ]; + nativeCheckInputs = [ + unittestCheckHook + pulseaudio + ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/pulumi/default.nix b/pkgs/development/python-modules/pulumi/default.nix index b61bc41505db..7353649c5a56 100644 --- a/pkgs/development/python-modules/pulumi/default.nix +++ b/pkgs/development/python-modules/pulumi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, protobuf -, dill -, grpcio -, pulumi -, isPy27 -, semver -, pip -, pytestCheckHook -, pyyaml -, six +{ + lib, + buildPythonPackage, + protobuf, + dill, + grpcio, + pulumi, + isPy27, + semver, + pip, + pytestCheckHook, + pyyaml, + six, }: buildPythonPackage rec { inherit (pulumi) version src; @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "test/" - ]; + pytestFlagsArray = [ "test/" ]; sourceRoot = "${src.name}/sdk/python/lib"; diff --git a/pkgs/development/python-modules/pure-cdb/default.nix b/pkgs/development/python-modules/pure-cdb/default.nix index b07843c8eaa6..175841ed2534 100644 --- a/pkgs/development/python-modules/pure-cdb/default.nix +++ b/pkgs/development/python-modules/pure-cdb/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildPythonPackage, flake8 }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + flake8, +}: buildPythonPackage rec { pname = "pure-cdb"; diff --git a/pkgs/development/python-modules/pure-eval/default.nix b/pkgs/development/python-modules/pure-eval/default.nix index 60615c0a0640..a94abf72712a 100644 --- a/pkgs/development/python-modules/pure-eval/default.nix +++ b/pkgs/development/python-modules/pure-eval/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools-scm -, toml -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools-scm, + toml, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-9N+UcgAv30s4ctgsBrOHiix4BoXhKPgxH/GOz/NIFdU="; }; - buildInputs = [ - setuptools-scm - ]; + buildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - toml - ]; + propagatedBuildInputs = [ toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pure_eval" - ]; + pythonImportsCheck = [ "pure_eval" ]; meta = with lib; { description = "Safely evaluate AST nodes without side effects"; diff --git a/pkgs/development/python-modules/pure-pcapy3/default.nix b/pkgs/development/python-modules/pure-pcapy3/default.nix index 8e07377723e0..5851e3e27439 100644 --- a/pkgs/development/python-modules/pure-pcapy3/default.nix +++ b/pkgs/development/python-modules/pure-pcapy3/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { --replace-fail "assertEquals" "assertEqual" ''; - pythonImportsCheck = [ - "pure_pcapy" - ]; + pythonImportsCheck = [ "pure_pcapy" ]; meta = with lib; { description = "Reimplementation of pcapy"; diff --git a/pkgs/development/python-modules/pure-protobuf/default.nix b/pkgs/development/python-modules/pure-protobuf/default.nix index e68746ddd8db..283d59ef2903 100644 --- a/pkgs/development/python-modules/pure-protobuf/default.nix +++ b/pkgs/development/python-modules/pure-protobuf/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, poetry-dynamic-versioning -, typing-extensions -, pytestCheckHook -, pytest-benchmark -, pytest-cov -, pydantic +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + poetry-dynamic-versioning, + typing-extensions, + pytestCheckHook, + pytest-benchmark, + pytest-cov, + pydantic, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { typing-extensions ]; - dependencies = [ - typing-extensions - ]; + dependencies = [ typing-extensions ]; nativeCheckInputs = [ pydantic @@ -43,13 +42,9 @@ buildPythonPackage rec { pytest-cov ]; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; - pythonImportsCheck = [ - "pure_protobuf" - ]; + pythonImportsCheck = [ "pure_protobuf" ]; meta = with lib; { description = "Python implementation of Protocol Buffers with dataclass-based schemas"; diff --git a/pkgs/development/python-modules/pure-python-adb-homeassistant/default.nix b/pkgs/development/python-modules/pure-python-adb-homeassistant/default.nix index 6a734f93ab99..974a70f2f7a6 100644 --- a/pkgs/development/python-modules/pure-python-adb-homeassistant/default.nix +++ b/pkgs/development/python-modules/pure-python-adb-homeassistant/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { pname = "pure-python-adb-homeassistant"; diff --git a/pkgs/development/python-modules/pure-python-adb/default.nix b/pkgs/development/python-modules/pure-python-adb/default.nix index 531e1c30a1ef..39ca6addf008 100644 --- a/pkgs/development/python-modules/pure-python-adb/default.nix +++ b/pkgs/development/python-modules/pure-python-adb/default.nix @@ -1,9 +1,10 @@ -{ aiofiles -, buildPythonPackage -, fetchPypi -, lib -, pythonOlder -, pytestCheckHook +{ + aiofiles, + buildPythonPackage, + fetchPypi, + lib, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,23 +20,14 @@ buildPythonPackage rec { }; passthru.optional-dependencies = { - async = [ - aiofiles - ]; + async = [ aiofiles ]; }; doCheck = pythonOlder "3.10"; # all tests result in RuntimeError on 3.10 - nativeCheckInputs = [ - pytestCheckHook - ] - ++ passthru.optional-dependencies.async; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.async; - pythonImportsCheck = [ - "ppadb.client" - ] ++ lib.optionals doCheck [ - "ppadb.client_async" - ]; + pythonImportsCheck = [ "ppadb.client" ] ++ lib.optionals doCheck [ "ppadb.client_async" ]; meta = with lib; { description = "Pure python implementation of the adb client"; diff --git a/pkgs/development/python-modules/purepng/default.nix b/pkgs/development/python-modules/purepng/default.nix index a147f0a55306..056532f8e1cc 100644 --- a/pkgs/development/python-modules/purepng/default.nix +++ b/pkgs/development/python-modules/purepng/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, python -, fetchFromGitHub -, fetchpatch -, cython ? null -, numpy ? null +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, + fetchpatch, + cython ? null, + numpy ? null, }: buildPythonPackage { @@ -26,7 +27,11 @@ buildPythonPackage { sha256 = "1ag0pji3p012hmj8kadcd0vydv9702188c0isizsi964qcl4va6m"; }) ]; - patchFlags = [ "-p1" "-d" "code" ]; + patchFlags = [ + "-p1" + "-d" + "code" + ]; # cython is optional - if not supplied, the "pure python" implementation will be used nativeBuildInputs = [ cython ]; diff --git a/pkgs/development/python-modules/purl/default.nix b/pkgs/development/python-modules/purl/default.nix index 8e0ba9c2eb5a..874d3459334d 100644 --- a/pkgs/development/python-modules/purl/default.nix +++ b/pkgs/development/python-modules/purl/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-Jb3JRW/PtQ7NlO4eQ9DmTPu/sjvFTg2mztphoIF79gc="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "purl" - ]; + pythonImportsCheck = [ "purl" ]; meta = with lib; { description = "Immutable URL class for easy URL-building and manipulation"; diff --git a/pkgs/development/python-modules/push-receiver/default.nix b/pkgs/development/python-modules/push-receiver/default.nix index ef73b6d0b3c4..d5f4732bb313 100644 --- a/pkgs/development/python-modules/push-receiver/default.nix +++ b/pkgs/development/python-modules/push-receiver/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchPypi -, lib -, appdirs -, http-ece -, oscrypto -, protobuf +{ + buildPythonPackage, + fetchPypi, + lib, + appdirs, + http-ece, + oscrypto, + protobuf, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pushbullet-py/default.nix b/pkgs/development/python-modules/pushbullet-py/default.nix index 1ef8728d0614..a4e2c5d3da5e 100644 --- a/pkgs/development/python-modules/pushbullet-py/default.nix +++ b/pkgs/development/python-modules/pushbullet-py/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, requests -, websocket-client -, python-magic -, cryptography -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + requests, + websocket-client, + python-magic, + cryptography, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography @@ -35,19 +34,19 @@ buildPythonPackage rec { export PUSHBULLET_API_KEY="" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_auth_fail" - "test_auth_success" - "test_decryption" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'? - "test_new_device_ok" - "test_new_chat_ok" - ]; + disabledTests = + [ + "test_auth_fail" + "test_auth_success" + "test_decryption" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'? + "test_new_device_ok" + "test_new_chat_ok" + ]; meta = with lib; { description = "A simple python client for pushbullet.com"; diff --git a/pkgs/development/python-modules/pushover-complete/default.nix b/pkgs/development/python-modules/pushover-complete/default.nix index f660e23bd019..3a5059cce7d9 100644 --- a/pkgs/development/python-modules/pushover-complete/default.nix +++ b/pkgs/development/python-modules/pushover-complete/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, requests -, six -, pytestCheckHook -, pythonOlder -, requests-toolbelt -, responses +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + requests, + six, + pytestCheckHook, + pythonOlder, + requests-toolbelt, + responses, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pvextractor/default.nix b/pkgs/development/python-modules/pvextractor/default.nix index 4d39db14d714..a176ae73ee69 100644 --- a/pkgs/development/python-modules/pvextractor/default.nix +++ b/pkgs/development/python-modules/pvextractor/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, astropy -, qtpy -, pyqt6 -, pyqt-builder -, setuptools -, setuptools-scm -, scipy -, matplotlib -, spectral-cube -, pytestCheckHook -, pytest-astropy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + astropy, + qtpy, + pyqt6, + pyqt-builder, + setuptools, + setuptools-scm, + scipy, + matplotlib, + spectral-cube, + pytestCheckHook, + pytest-astropy, }: buildPythonPackage rec { @@ -30,7 +31,10 @@ buildPythonPackage rec { }; buildInputs = [ pyqt-builder ]; - nativeBuildInputs = [ setuptools setuptools-scm ]; + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; propagatedBuildInputs = [ astropy scipy diff --git a/pkgs/development/python-modules/pvo/default.nix b/pkgs/development/python-modules/pvo/default.nix index d886bbd30ac9..213475f27e88 100644 --- a/pkgs/development/python-modules/pvo/default.nix +++ b/pkgs/development/python-modules/pvo/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, mashumaro -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + mashumaro, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, + yarl, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "pvo" - ]; + pythonImportsCheck = [ "pvo" ]; meta = with lib; { description = "Python module to interact with the PVOutput API"; diff --git a/pkgs/development/python-modules/pweave/default.nix b/pkgs/development/python-modules/pweave/default.nix index 2c85434ac6bc..b5721e278269 100644 --- a/pkgs/development/python-modules/pweave/default.nix +++ b/pkgs/development/python-modules/pweave/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, matplotlib -, pkgs -, nbconvert -, markdown -, isPy3k -, ipykernel +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + matplotlib, + pkgs, + nbconvert, + markdown, + isPy3k, + ipykernel, }: buildPythonPackage rec { @@ -23,8 +24,16 @@ buildPythonPackage rec { disabled = !isPy3k; - buildInputs = [ mock pkgs.glibcLocales ]; - propagatedBuildInputs = [ ipykernel matplotlib nbconvert markdown ]; + buildInputs = [ + mock + pkgs.glibcLocales + ]; + propagatedBuildInputs = [ + ipykernel + matplotlib + nbconvert + markdown + ]; # fails due to trying to run CSS as test doCheck = false; @@ -34,5 +43,4 @@ buildPythonPackage rec { homepage = "https://mpastell.com/pweave/"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/pwlf/default.nix b/pkgs/development/python-modules/pwlf/default.nix index 8259a41e2e40..95dbc3ac83b8 100644 --- a/pkgs/development/python-modules/pwlf/default.nix +++ b/pkgs/development/python-modules/pwlf/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, scipy -, numpy -, pydoe -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + scipy, + numpy, + pydoe, + unittestCheckHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pydoe ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "pwlf" ]; diff --git a/pkgs/development/python-modules/pwndbg/default.nix b/pkgs/development/python-modules/pwndbg/default.nix index 7bee0345afdb..8862184d9cf7 100644 --- a/pkgs/development/python-modules/pwndbg/default.nix +++ b/pkgs/development/python-modules/pwndbg/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, capstone -, future -, ipython -, psutil -, pwntools -, pycparser -, pyelftools -, pygments -, requests -, rpyc -, sortedcontainers -, tabulate -, typing-extensions -, unicorn -, gdb-pt-dump -, poetry-core -, pythonRelaxDepsHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + capstone, + future, + ipython, + psutil, + pwntools, + pycparser, + pyelftools, + pygments, + requests, + rpyc, + sortedcontainers, + tabulate, + typing-extensions, + unicorn, + gdb-pt-dump, + poetry-core, + pythonRelaxDepsHook, }: let # The newest gdb-pt-dump is incompatible with pwndbg 2024.02.14. @@ -49,7 +50,10 @@ buildPythonPackage rec { hash = "sha256-/pDo2J5EtpWWCurD7H34AlTlQi7WziIRRxHxGm3K2yk="; }; - nativeBuildInputs = [ poetry-core pythonRelaxDepsHook ]; + nativeBuildInputs = [ + poetry-core + pythonRelaxDepsHook + ]; pythonRelaxDeps = true; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/pwntools/default.nix b/pkgs/development/python-modules/pwntools/default.nix index db91bf50182e..6ab1dedd83fa 100644 --- a/pkgs/development/python-modules/pwntools/default.nix +++ b/pkgs/development/python-modules/pwntools/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, buildPythonPackage -, debugger -, fetchPypi -, mako -, packaging -, pysocks -, pygments -, ropgadget -, capstone -, colored-traceback -, paramiko -, pip -, psutil -, pyelftools -, pyserial -, python-dateutil -, requests -, rpyc -, tox -, unicorn -, intervaltree -, installShellFiles +{ + lib, + stdenv, + buildPythonPackage, + debugger, + fetchPypi, + mako, + packaging, + pysocks, + pygments, + ropgadget, + capstone, + colored-traceback, + paramiko, + pip, + psutil, + pyelftools, + pyserial, + python-dateutil, + requests, + rpyc, + tox, + unicorn, + intervaltree, + installShellFiles, }: let @@ -43,9 +44,7 @@ buildPythonPackage rec { sed -i 's/gdb-multiarch/${debuggerName}/' pwnlib/gdb.py ''; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; propagatedBuildInputs = [ mako @@ -84,6 +83,10 @@ buildPythonPackage rec { homepage = "https://pwntools.com"; changelog = "https://github.com/Gallopsled/pwntools/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ]; + maintainers = with maintainers; [ + bennofs + kristoff3r + pamplemousse + ]; }; } diff --git a/pkgs/development/python-modules/py-air-control-exporter/default.nix b/pkgs/development/python-modules/py-air-control-exporter/default.nix index 714cd613fcea..b38fe6cf0cd5 100644 --- a/pkgs/development/python-modules/py-air-control-exporter/default.nix +++ b/pkgs/development/python-modules/py-air-control-exporter/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, flask -, isPy27 -, nixosTests -, prometheus-client -, py-air-control -, pytestCheckHook +{ + lib, + buildPythonPackage, + click, + fetchPypi, + flask, + isPy27, + nixosTests, + prometheus-client, + py-air-control, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,13 +29,13 @@ buildPythonPackage rec { py-air-control ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "py_air_control_exporter" ]; - passthru.tests = { inherit (nixosTests.prometheus-exporters) py-air-control; }; + passthru.tests = { + inherit (nixosTests.prometheus-exporters) py-air-control; + }; meta = with lib; { description = "Exports Air Quality Metrics to Prometheus"; diff --git a/pkgs/development/python-modules/py-air-control/default.nix b/pkgs/development/python-modules/py-air-control/default.nix index 47470eb48fe9..03eb3d3edd29 100644 --- a/pkgs/development/python-modules/py-air-control/default.nix +++ b/pkgs/development/python-modules/py-air-control/default.nix @@ -1,4 +1,11 @@ -{ buildPythonPackage, coapthon3, fetchFromGitHub, isPy27, lib, pycryptodomex }: +{ + buildPythonPackage, + coapthon3, + fetchFromGitHub, + isPy27, + lib, + pycryptodomex, +}: buildPythonPackage rec { pname = "py-air-control"; @@ -13,7 +20,10 @@ buildPythonPackage rec { sha256 = "0mkggl5hwmj90djxbbz4svim6iv7xl8k324cb4rlc75p5rgcdwmh"; }; - propagatedBuildInputs = [ pycryptodomex coapthon3 ]; + propagatedBuildInputs = [ + pycryptodomex + coapthon3 + ]; # tests sometimes hang forever on tear-down doCheck = false; diff --git a/pkgs/development/python-modules/py-aosmith/default.nix b/pkgs/development/python-modules/py-aosmith/default.nix index bce96a1d320b..5b504e647ea6 100644 --- a/pkgs/development/python-modules/py-aosmith/default.nix +++ b/pkgs/development/python-modules/py-aosmith/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, aiohttp -, tenacity +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + aiohttp, + tenacity, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-TjBjyWxBPrZEY/o1DZ+GiFTHTW37WwFN0oyJSyGru28="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/py-bip39-bindings/default.nix b/pkgs/development/python-modules/py-bip39-bindings/default.nix index 7de906d4256f..24521f5289ac 100644 --- a/pkgs/development/python-modules/py-bip39-bindings/default.nix +++ b/pkgs/development/python-modules/py-bip39-bindings/default.nix @@ -1,12 +1,14 @@ -{ lib -, fetchFromGitHub -, fetchpatch -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, rustPlatform -, stdenv -, libiconv }: +{ + lib, + fetchFromGitHub, + fetchpatch, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + rustPlatform, + stdenv, + libiconv, +}: buildPythonPackage rec { pname = "py-bip39-bindings"; @@ -30,9 +32,7 @@ buildPythonPackage rec { }) ]; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; postPatch = '' cp ${./Cargo.lock} Cargo.lock @@ -45,17 +45,11 @@ buildPythonPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "bip39" - ]; + pythonImportsCheck = [ "bip39" ]; meta = with lib; { description = "Python bindings for the tiny-bip39 library"; diff --git a/pkgs/development/python-modules/py-canary/default.nix b/pkgs/development/python-modules/py-canary/default.nix index 7e0200abea3c..44db50c93bfe 100644 --- a/pkgs/development/python-modules/py-canary/default.nix +++ b/pkgs/development/python-modules/py-canary/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-873XAf0jOX5pjrNRELEcTWCauk80FUYxTu7G7jc3MHE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ mock @@ -37,9 +34,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "canary" - ]; + pythonImportsCheck = [ "canary" ]; disabledTests = [ # Test requires network access diff --git a/pkgs/development/python-modules/py-cid/default.nix b/pkgs/development/python-modules/py-cid/default.nix index 947583f0a7b3..7b986be7dc42 100644 --- a/pkgs/development/python-modules/py-cid/default.nix +++ b/pkgs/development/python-modules/py-cid/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, base58 -, py-multibase -, py-multicodec -, morphys -, py-multihash -, hypothesis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + base58, + py-multibase, + py-multicodec, + morphys, + py-multihash, + hypothesis, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/py-cpuinfo/default.nix b/pkgs/development/python-modules/py-cpuinfo/default.nix index ed6bdab5cfa4..7c26fe29f2f2 100644 --- a/pkgs/development/python-modules/py-cpuinfo/default.nix +++ b/pkgs/development/python-modules/py-cpuinfo/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, sysctl +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + sysctl, }: buildPythonPackage rec { @@ -15,15 +16,13 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; src = fetchFromGitHub { - owner = "workhorsy"; - repo = pname; - rev = "v${version}"; - hash = "sha256-Q5u0guAqDVhf6bvJTzNvCpWbIzjxxAjE7s0OuXj9T4Q="; + owner = "workhorsy"; + repo = pname; + rev = "v${version}"; + hash = "sha256-Q5u0guAqDVhf6bvJTzNvCpWbIzjxxAjE7s0OuXj9T4Q="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # On Darwin sysctl is used to read CPU information. postPatch = lib.optionalString stdenv.isDarwin '' @@ -32,9 +31,7 @@ buildPythonPackage rec { --replace "_run_and_get_stdout(['sysctl'" "_run_and_get_stdout(['${sysctl}/bin/sysctl'" ''; - pythonImportsCheck = [ - "cpuinfo" - ]; + pythonImportsCheck = [ "cpuinfo" ]; meta = with lib; { description = "Get CPU info with pure Python"; diff --git a/pkgs/development/python-modules/py-deprecate/default.nix b/pkgs/development/python-modules/py-deprecate/default.nix index de7e506c0db3..376bf132f17b 100644 --- a/pkgs/development/python-modules/py-deprecate/default.nix +++ b/pkgs/development/python-modules/py-deprecate/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, scikit-learn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + scikit-learn, }: let @@ -31,9 +32,6 @@ buildPythonPackage { description = "A module for marking deprecated functions or classes and re-routing to the new successors' instance. Used by torchmetrics"; homepage = "https://borda.github.io/pyDeprecate/"; license = licenses.asl20; - maintainers = with maintainers; [ - SomeoneSerge - ]; + maintainers = with maintainers; [ SomeoneSerge ]; }; } - diff --git a/pkgs/development/python-modules/py-desmume/default.nix b/pkgs/development/python-modules/py-desmume/default.nix index 1009a1fbedb7..311d4fdac065 100644 --- a/pkgs/development/python-modules/py-desmume/default.nix +++ b/pkgs/development/python-modules/py-desmume/default.nix @@ -1,18 +1,19 @@ -{ lib -, alsa-lib -, buildPythonPackage -, fetchFromGitHub -, gitpython -, libpcap -, meson -, ninja -, openal -, pillow -, pkg-config -, pygobject3 -, pythonOlder -, SDL2 -, soundtouch +{ + lib, + alsa-lib, + buildPythonPackage, + fetchFromGitHub, + gitpython, + libpcap, + meson, + ninja, + openal, + pillow, + pkg-config, + pygobject3, + pythonOlder, + SDL2, + soundtouch, }: buildPythonPackage rec { @@ -50,15 +51,11 @@ buildPythonPackage rec { pygobject3 ]; - hardeningDisable = [ - "format" - ]; + hardeningDisable = [ "format" ]; doCheck = false; # there are no tests - pythonImportsCheck = [ - "desmume" - ]; + pythonImportsCheck = [ "desmume" ]; meta = with lib; { description = "Python library to interface with DeSmuME, the Nintendo DS emulator"; diff --git a/pkgs/development/python-modules/py-dmidecode/default.nix b/pkgs/development/python-modules/py-dmidecode/default.nix index bcd850def625..893121ff1e3d 100644 --- a/pkgs/development/python-modules/py-dmidecode/default.nix +++ b/pkgs/development/python-modules/py-dmidecode/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, dmidecode -, fetchPypi -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + dmidecode, + fetchPypi, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-pS1fRWuWLnXuNEGYXU/j1njC8THWQOHbnVOF9+c13Cw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - dmidecode - ]; + propagatedBuildInputs = [ dmidecode ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "dmidecode" - ]; + pythonImportsCheck = [ "dmidecode" ]; meta = with lib; { description = "Python library that parses the output of dmidecode"; diff --git a/pkgs/development/python-modules/py-dormakaba-dkey/default.nix b/pkgs/development/python-modules/py-dormakaba-dkey/default.nix index 405c1e61cad6..ea0896225a00 100644 --- a/pkgs/development/python-modules/py-dormakaba-dkey/default.nix +++ b/pkgs/development/python-modules/py-dormakaba-dkey/default.nix @@ -1,13 +1,14 @@ -{ lib -, bleak -, bleak-retry-connector -, buildPythonPackage -, cryptography -, fetchFromGitHub -, fetchpatch -, pythonOlder -, setuptools -, wheel +{ + lib, + bleak, + bleak-retry-connector, + buildPythonPackage, + cryptography, + fetchFromGitHub, + fetchpatch, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "py_dormakaba_dkey" - ]; + pythonImportsCheck = [ "py_dormakaba_dkey" ]; meta = with lib; { description = "Library to interact with a Dormakaba dkey lock"; diff --git a/pkgs/development/python-modules/py-ecc/default.nix b/pkgs/development/python-modules/py-ecc/default.nix index d7769ea4873d..2e2f1dd1bb16 100644 --- a/pkgs/development/python-modules/py-ecc/default.nix +++ b/pkgs/development/python-modules/py-ecc/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cached-property -, eth-typing -, eth-utils -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cached-property, + eth-typing, + eth-utils, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-DKe+bI1GEzXg4Y4n5OA1/hWYz9L3X1AvaOFPEnCaAfs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cached-property @@ -33,9 +32,7 @@ buildPythonPackage rec { eth-utils ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # https://github.com/ethereum/py_ecc/issues/133 diff --git a/pkgs/development/python-modules/py-eth-sig-utils/default.nix b/pkgs/development/python-modules/py-eth-sig-utils/default.nix index ed92c9c2e41e..6c009fd9c592 100644 --- a/pkgs/development/python-modules/py-eth-sig-utils/default.nix +++ b/pkgs/development/python-modules/py-eth-sig-utils/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, eth-abi -, py-ecc -, pycryptodome -, python -, rlp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + eth-abi, + py-ecc, + pycryptodome, + python, + rlp, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/py-expression-eval/default.nix b/pkgs/development/python-modules/py-expression-eval/default.nix index 13797e3adc78..f184c025e218 100644 --- a/pkgs/development/python-modules/py-expression-eval/default.nix +++ b/pkgs/development/python-modules/py-expression-eval/default.nix @@ -1,4 +1,5 @@ -{ lib, +{ + lib, buildPythonPackage, fetchFromGitHub, }: diff --git a/pkgs/development/python-modules/py-libzfs/default.nix b/pkgs/development/python-modules/py-libzfs/default.nix index c65f50b4e5ff..ce976862ea25 100644 --- a/pkgs/development/python-modules/py-libzfs/default.nix +++ b/pkgs/development/python-modules/py-libzfs/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, cython_0 -, zfs +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + cython_0, + zfs, }: buildPythonPackage rec { @@ -50,4 +51,3 @@ buildPythonPackage rec { platforms = platforms.linux; }; } - diff --git a/pkgs/development/python-modules/py-lru-cache/default.nix b/pkgs/development/python-modules/py-lru-cache/default.nix index 85045a156bd5..e49c685cbe7b 100644 --- a/pkgs/development/python-modules/py-lru-cache/default.nix +++ b/pkgs/development/python-modules/py-lru-cache/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -20,5 +21,4 @@ buildPythonPackage rec { license = licenses.gpl3; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/py-multiaddr/default.nix b/pkgs/development/python-modules/py-multiaddr/default.nix index 28ee3cffb917..95016f826c62 100644 --- a/pkgs/development/python-modules/py-multiaddr/default.nix +++ b/pkgs/development/python-modules/py-multiaddr/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, varint -, base58 -, netaddr -, idna -, py-cid -, py-multicodec -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + varint, + base58, + netaddr, + idna, + py-cid, + py-multicodec, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,16 +38,17 @@ buildPythonPackage rec { py-multicodec ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "multiaddr" ]; meta = with lib; { description = "Composable and future-proof network addresses"; homepage = "https://github.com/multiformats/py-multiaddr"; - license = with licenses; [ mit asl20 ]; + license = with licenses; [ + mit + asl20 + ]; maintainers = with maintainers; [ Luflosi ]; }; } diff --git a/pkgs/development/python-modules/py-multibase/default.nix b/pkgs/development/python-modules/py-multibase/default.nix index 50f1d9e9b376..250c1290579d 100644 --- a/pkgs/development/python-modules/py-multibase/default.nix +++ b/pkgs/development/python-modules/py-multibase/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, morphys -, pytestCheckHook -, python-baseconv -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchPypi, + morphys, + pytestCheckHook, + python-baseconv, + pythonOlder, + six, }: buildPythonPackage rec { pname = "py-multibase"; @@ -33,13 +34,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "multibase" - ]; + pythonImportsCheck = [ "multibase" ]; meta = with lib; { description = "Module for distinguishing base encodings and other simple string encodings"; diff --git a/pkgs/development/python-modules/py-multicodec/default.nix b/pkgs/development/python-modules/py-multicodec/default.nix index 21f396d9c2a2..a657d8eb459d 100644 --- a/pkgs/development/python-modules/py-multicodec/default.nix +++ b/pkgs/development/python-modules/py-multicodec/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, morphys -, pytestCheckHook -, pythonOlder -, six -, varint +{ + lib, + buildPythonPackage, + fetchFromGitHub, + morphys, + pytestCheckHook, + pythonOlder, + six, + varint, }: buildPythonPackage rec { @@ -37,13 +38,9 @@ buildPythonPackage rec { varint ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "multicodec" - ]; + pythonImportsCheck = [ "multicodec" ]; meta = with lib; { description = "Compact self-describing codecs"; diff --git a/pkgs/development/python-modules/py-multihash/default.nix b/pkgs/development/python-modules/py-multihash/default.nix index bf860e83e6b6..9ad80769e954 100644 --- a/pkgs/development/python-modules/py-multihash/default.nix +++ b/pkgs/development/python-modules/py-multihash/default.nix @@ -1,11 +1,12 @@ -{ lib -, base58 -, buildPythonPackage -, fetchFromGitHub -, morphys -, pytestCheckHook -, six -, varint +{ + lib, + base58, + buildPythonPackage, + fetchFromGitHub, + morphys, + pytestCheckHook, + six, + varint, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { varint ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "multihash" - ]; + pythonImportsCheck = [ "multihash" ]; meta = with lib; { description = "Self describing hashes - for future proofing"; diff --git a/pkgs/development/python-modules/py-nextbusnext/default.nix b/pkgs/development/python-modules/py-nextbusnext/default.nix index 090883bad3d9..8aeae2b22b1f 100644 --- a/pkgs/development/python-modules/py-nextbusnext/default.nix +++ b/pkgs/development/python-modules/py-nextbusnext/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-5zD8AKb4/4x4cVA922OlzSOXlg3F6QCcr16agEQkUWM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "py_nextbus" - ]; + pythonImportsCheck = [ "py_nextbus" ]; meta = with lib; { description = "Minimalistic Python client for the NextBus public API"; diff --git a/pkgs/development/python-modules/py-nightscout/default.nix b/pkgs/development/python-modules/py-nightscout/default.nix index 3330b68c949e..e690f1b1caca 100644 --- a/pkgs/development/python-modules/py-nightscout/default.nix +++ b/pkgs/development/python-modules/py-nightscout/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -36,10 +37,7 @@ buildPythonPackage rec { pytest-asyncio ]; - - pythonImportsCheck = [ - "py_nightscout" - ]; + pythonImportsCheck = [ "py_nightscout" ]; meta = with lib; { description = "Python library that provides an interface to Nightscout"; diff --git a/pkgs/development/python-modules/py-partiql-parser/default.nix b/pkgs/development/python-modules/py-partiql-parser/default.nix index 95cfa9e9c9b7..7dd7e6c739de 100644 --- a/pkgs/development/python-modules/py-partiql-parser/default.nix +++ b/pkgs/development/python-modules/py-partiql-parser/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, hatchling -, sure +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + hatchling, + sure, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-BSqc3xibStb3J6Rua4dDp/eRD5/ns/dU1vGa4vL1Cyo="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; nativeCheckInputs = [ pytestCheckHook sure ]; - pythonImportsCheck = [ - "py_partiql_parser" - ]; + pythonImportsCheck = [ "py_partiql_parser" ]; meta = with lib; { description = "A tokenizer/parser/executor for the PartiQL-language"; diff --git a/pkgs/development/python-modules/py-pdf-parser/default.nix b/pkgs/development/python-modules/py-pdf-parser/default.nix index 36df1c18f0b4..f9556b698e27 100644 --- a/pkgs/development/python-modules/py-pdf-parser/default.nix +++ b/pkgs/development/python-modules/py-pdf-parser/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, docopt -, fetchPypi -, pdfminer-six -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, wand +{ + lib, + buildPythonPackage, + docopt, + fetchPypi, + pdfminer-six, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + wand, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/py-radix-sr/default.nix b/pkgs/development/python-modules/py-radix-sr/default.nix index 26a9d2f555de..50061cab48aa 100644 --- a/pkgs/development/python-modules/py-radix-sr/default.nix +++ b/pkgs/development/python-modules/py-radix-sr/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -38,7 +39,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python radix tree for IPv4 and IPv6 prefix matching"; homepage = "https://github.com/SEKOIA-IO/py-radix"; - license = with licenses; [ isc bsdOriginal ]; + license = with licenses; [ + isc + bsdOriginal + ]; maintainers = teams.wdz.members; }; } diff --git a/pkgs/development/python-modules/py-scrypt/default.nix b/pkgs/development/python-modules/py-scrypt/default.nix index a997bc11ef0d..c0fe6b756b34 100644 --- a/pkgs/development/python-modules/py-scrypt/default.nix +++ b/pkgs/development/python-modules/py-scrypt/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, openssl +{ + lib, + buildPythonPackage, + fetchPypi, + openssl, }: buildPythonPackage rec { @@ -20,7 +21,7 @@ buildPythonPackage rec { meta = with lib; { description = "Bindings for scrypt key derivation function library"; homepage = "https://pypi.python.org/pypi/scrypt"; - maintainers = []; + maintainers = [ ]; license = licenses.bsd2; }; } diff --git a/pkgs/development/python-modules/py-sneakers/default.nix b/pkgs/development/python-modules/py-sneakers/default.nix index b69516d47a77..bcb9c07fb323 100644 --- a/pkgs/development/python-modules/py-sneakers/default.nix +++ b/pkgs/development/python-modules/py-sneakers/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "py_sneakers" - ]; + pythonImportsCheck = [ "py_sneakers" ]; meta = with lib; { description = "Library to emulate the Sneakers movie effect"; diff --git a/pkgs/development/python-modules/py-sonic/default.nix b/pkgs/development/python-modules/py-sonic/default.nix index 826c23120ed9..af1315834fa4 100644 --- a/pkgs/development/python-modules/py-sonic/default.nix +++ b/pkgs/development/python-modules/py-sonic/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, +}: buildPythonPackage rec { pname = "py-sonic"; diff --git a/pkgs/development/python-modules/py-sr25519-bindings/default.nix b/pkgs/development/python-modules/py-sr25519-bindings/default.nix index c001344a293b..04a037cd9a9b 100644 --- a/pkgs/development/python-modules/py-sr25519-bindings/default.nix +++ b/pkgs/development/python-modules/py-sr25519-bindings/default.nix @@ -1,13 +1,15 @@ -{ lib -, fetchFromGitHub -, fetchpatch -, buildPythonPackage -, pythonOlder -, pytestCheckHook -, rustPlatform -, stdenv -, py-bip39-bindings -, libiconv }: +{ + lib, + fetchFromGitHub, + fetchpatch, + buildPythonPackage, + pythonOlder, + pytestCheckHook, + rustPlatform, + stdenv, + py-bip39-bindings, + libiconv, +}: buildPythonPackage rec { pname = "py-sr25519-bindings"; @@ -41,18 +43,17 @@ buildPythonPackage rec { py-bip39-bindings ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "sr25519" - ]; + pythonImportsCheck = [ "sr25519" ]; meta = with lib; { description = "Python bindings for sr25519 library"; homepage = "https://github.com/polkascan/py-sr25519-bindings"; license = licenses.asl20; - maintainers = with maintainers; [ onny stargate01 ]; + maintainers = with maintainers; [ + onny + stargate01 + ]; }; } diff --git a/pkgs/development/python-modules/py-stringmatching/default.nix b/pkgs/development/python-modules/py-stringmatching/default.nix index 305451aeb165..0d7f845b8a5b 100644 --- a/pkgs/development/python-modules/py-stringmatching/default.nix +++ b/pkgs/development/python-modules/py-stringmatching/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, numpy -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + numpy, + pythonOlder, + six, }: buildPythonPackage rec { @@ -20,26 +21,20 @@ buildPythonPackage rec { hash = "sha256-2XuhtWKtmO/8lGaHxdqwdMF6UVEUqw3PUCIC1c7J8rU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' cd $out ''; - pythonImportsCheck = [ - "py_stringmatching" - ]; + pythonImportsCheck = [ "py_stringmatching" ]; meta = with lib; { description = "Python string matching library including string tokenizers and string similarity measures"; diff --git a/pkgs/development/python-modules/py-synologydsm-api/default.nix b/pkgs/development/python-modules/py-synologydsm-api/default.nix index 1226e25bfa34..a6c8f33c6412 100644 --- a/pkgs/development/python-modules/py-synologydsm-api/default.nix +++ b/pkgs/development/python-modules/py-synologydsm-api/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { async-timeout ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "synology_dsm" - ]; + pythonImportsCheck = [ "synology_dsm" ]; meta = with lib; { description = "Python API for Synology DSM"; diff --git a/pkgs/development/python-modules/py-tes/default.nix b/pkgs/development/python-modules/py-tes/default.nix index 6fba131e0713..b7d46b97f5b1 100644 --- a/pkgs/development/python-modules/py-tes/default.nix +++ b/pkgs/development/python-modules/py-tes/default.nix @@ -1,13 +1,14 @@ -{ lib -, attrs -, buildPythonPackage -, fetchFromGitHub -, future -, python-dateutil -, pytestCheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + attrs, + buildPythonPackage, + fetchFromGitHub, + future, + python-dateutil, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "tes" - ]; + pythonImportsCheck = [ "tes" ]; meta = with lib; { description = "Python SDK for the GA4GH Task Execution API"; diff --git a/pkgs/development/python-modules/py-ubjson/default.nix b/pkgs/development/python-modules/py-ubjson/default.nix index f9518fdead93..7eca2165efc1 100644 --- a/pkgs/development/python-modules/py-ubjson/default.nix +++ b/pkgs/development/python-modules/py-ubjson/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,22 +17,16 @@ buildPythonPackage rec { sha256 = "1frn97xfa88zrfmpnvdk1pc03yihlchhph99bhjayvzlfcrhm5v3"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/Iotic-Labs/py-ubjson/issues/18 "test_recursion" ]; - pytestFlagsArray = [ - "test/test.py" - ]; + pytestFlagsArray = [ "test/test.py" ]; - pythonImportsCheck = [ - "ubjson" - ]; + pythonImportsCheck = [ "ubjson" ]; meta = with lib; { description = "Universal Binary JSON draft-12 serializer for Python"; diff --git a/pkgs/development/python-modules/py-vapid/default.nix b/pkgs/development/python-modules/py-vapid/default.nix index 89b7a045d0c1..dd18c14f87ea 100644 --- a/pkgs/development/python-modules/py-vapid/default.nix +++ b/pkgs/development/python-modules/py-vapid/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pytestCheckHook -, cryptography -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytestCheckHook, + cryptography, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-BmSreJl0LvKyhzl6TUYe9pHtDML1hyBRKNjPYX/9uRk="; }; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/py/default.nix b/pkgs/development/python-modules/py/default.nix index 3dec18b6e0fc..7cfe0a7e05b7 100644 --- a/pkgs/development/python-modules/py/default.nix +++ b/pkgs/development/python-modules/py/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, setuptools-scm }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, +}: buildPythonPackage rec { pname = "py"; @@ -15,9 +20,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools-scm ]; - pythonImportsCheck = [ - "py" - ]; + pythonImportsCheck = [ "py" ]; meta = with lib; { description = "Library with cross-python path, ini-parsing, io, code, log facilities"; diff --git a/pkgs/development/python-modules/py17track/default.nix b/pkgs/development/python-modules/py17track/default.nix index 6294b6b1c066..e0ddc1e17666 100644 --- a/pkgs/development/python-modules/py17track/default.nix +++ b/pkgs/development/python-modules/py17track/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, attrs -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pytz +{ + lib, + aiohttp, + aresponses, + attrs, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -63,9 +62,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "py17track" - ]; + pythonImportsCheck = [ "py17track" ]; meta = with lib; { description = "Python library to track package info from 17track.com"; diff --git a/pkgs/development/python-modules/py2bit/default.nix b/pkgs/development/python-modules/py2bit/default.nix index 9f45e4e2d9e3..96fbdeeb0ab5 100644 --- a/pkgs/development/python-modules/py2bit/default.nix +++ b/pkgs/development/python-modules/py2bit/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { @@ -20,7 +21,7 @@ buildPythonPackage rec { homepage = "https://github.com/deeptools/py2bit"; description = "File access to 2bit files"; longDescription = '' - A python extension, written in C, for quick access to 2bit files. The extension uses lib2bit for file access. + A python extension, written in C, for quick access to 2bit files. The extension uses lib2bit for file access. ''; license = licenses.mit; maintainers = with maintainers; [ scalavision ]; diff --git a/pkgs/development/python-modules/py3buddy/default.nix b/pkgs/development/python-modules/py3buddy/default.nix index 2b3f3f48f137..33a5cfc593a3 100644 --- a/pkgs/development/python-modules/py3buddy/default.nix +++ b/pkgs/development/python-modules/py3buddy/default.nix @@ -1,7 +1,9 @@ -{ lib, stdenv -, fetchFromGitHub -, python -, pyusb +{ + lib, + stdenv, + fetchFromGitHub, + python, + pyusb, }: stdenv.mkDerivation (finalAttrs: { diff --git a/pkgs/development/python-modules/py3dns/default.nix b/pkgs/development/python-modules/py3dns/default.nix index 5e8027bb6006..14ad16771655 100644 --- a/pkgs/development/python-modules/py3dns/default.nix +++ b/pkgs/development/python-modules/py3dns/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { homepage = "https://launchpad.net/py3dns"; license = licenses.psfl; }; - } diff --git a/pkgs/development/python-modules/py3exiv2/default.nix b/pkgs/development/python-modules/py3exiv2/default.nix index e8c5c6cd1516..38bdf6c4c18d 100644 --- a/pkgs/development/python-modules/py3exiv2/default.nix +++ b/pkgs/development/python-modules/py3exiv2/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, boost -, buildPythonPackage -, exiv2 -, fetchPypi -, libcxx -, pythonOlder +{ + lib, + stdenv, + boost, + buildPythonPackage, + exiv2, + fetchPypi, + libcxx, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Work around Python distutils compiling C++ with $CC (see issue #26709) env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; - pythonImportsCheck = [ - "pyexiv2" - ]; + pythonImportsCheck = [ "pyexiv2" ]; # Tests are not shipped doCheck = false; diff --git a/pkgs/development/python-modules/py3langid/default.nix b/pkgs/development/python-modules/py3langid/default.nix index 84e758bfc5ef..248a3bfa2088 100644 --- a/pkgs/development/python-modules/py3langid/default.nix +++ b/pkgs/development/python-modules/py3langid/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, numpy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-tN4B2tfnAfKdIWoJNeheCWzIZ1kD0j6oRFsrtfCQuW8="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # nixify path to the courlan binary in the test suite postPatch = '' diff --git a/pkgs/development/python-modules/py3nvml/default.nix b/pkgs/development/python-modules/py3nvml/default.nix index e551298e69fe..af83b7862177 100644 --- a/pkgs/development/python-modules/py3nvml/default.nix +++ b/pkgs/development/python-modules/py3nvml/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + xmltodict, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-Ce4dBFmKbmZOJEZfgEzjv+EZpv21Ni3xwWj4qpKfvXM="; }; - propagatedBuildInputs = [ - xmltodict - ]; + propagatedBuildInputs = [ xmltodict ]; pythonImportsCheck = [ "py3nvml" ]; @@ -24,7 +23,10 @@ buildPythonPackage rec { description = "Python 3 Bindings for the NVIDIA Management Library"; mainProgram = "py3smi"; homepage = "https://pypi.org/project/py3nvml/"; - license = with licenses; [ bsd3 bsd2 ]; + license = with licenses; [ + bsd3 + bsd2 + ]; maintainers = with maintainers; [ happysalada ]; }; } diff --git a/pkgs/development/python-modules/py3rijndael/default.nix b/pkgs/development/python-modules/py3rijndael/default.nix index 74a91b6ee2f4..5e39b14149b2 100644 --- a/pkgs/development/python-modules/py3rijndael/default.nix +++ b/pkgs/development/python-modules/py3rijndael/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: let @@ -17,9 +18,7 @@ buildPythonPackage { hash = "sha256-tmVaPr/zoQVA6u0EnoeI7qOsk9a3GzpqwrACJLvs6ag="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Rijndael algorithm library"; diff --git a/pkgs/development/python-modules/py3status/default.nix b/pkgs/development/python-modules/py3status/default.nix index 6ec4405a0368..7f838e5cd983 100644 --- a/pkgs/development/python-modules/py3status/default.nix +++ b/pkgs/development/python-modules/py3status/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, acpi -, alsa-utils -, coreutils -, dbus-python -, fetchPypi -, file -, hatchling -, i3 -, i3ipc -, libnotify -, lm_sensors -, procps -, pydbus -, pygobject3 -, pyserial -, pytz -, requests -, setuptools -, tzlocal -, xorg +{ + lib, + buildPythonPackage, + acpi, + alsa-utils, + coreutils, + dbus-python, + fetchPypi, + file, + hatchling, + i3, + i3ipc, + libnotify, + lm_sensors, + procps, + pydbus, + pygobject3, + pyserial, + pytz, + requests, + setuptools, + tzlocal, + xorg, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-6l0l7sbPspdF/TYTOKaWsgOdpfDUs0PyFVKGUBNPwIA="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ pytz diff --git a/pkgs/development/python-modules/py4j/default.nix b/pkgs/development/python-modules/py4j/default.nix index fa7fb2cee1db..e49524d0ae6d 100644 --- a/pkgs/development/python-modules/py4j/default.nix +++ b/pkgs/development/python-modules/py4j/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, lib }: +{ + buildPythonPackage, + fetchPypi, + lib, +}: buildPythonPackage rec { pname = "py4j"; diff --git a/pkgs/development/python-modules/pyacaia-async/default.nix b/pkgs/development/python-modules/pyacaia-async/default.nix index 7d69f39ceb1e..02f930d3bc89 100644 --- a/pkgs/development/python-modules/pyacaia-async/default.nix +++ b/pkgs/development/python-modules/pyacaia-async/default.nix @@ -1,10 +1,11 @@ -{ lib -, bleak -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, wheel +{ + lib, + bleak, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -25,21 +26,20 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - bleak - ]; + propagatedBuildInputs = [ bleak ]; # Module has no tests in PyPI releases doCheck = false; - pythonImportsCheck = [ - "pyacaia_async" - ]; + pythonImportsCheck = [ "pyacaia_async" ]; meta = with lib; { description = "Module to interact with Acaia scales"; homepage = "https://github.com/zweckj/pyacaia_async"; - license = with licenses; [ gpl3Only mit ]; + license = with licenses; [ + gpl3Only + mit + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/pyacoustid/default.nix b/pkgs/development/python-modules/pyacoustid/default.nix index c5428a30bda8..3f8721e61e04 100644 --- a/pkgs/development/python-modules/pyacoustid/default.nix +++ b/pkgs/development/python-modules/pyacoustid/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, audioread -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + audioread, + pkgs, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { sha256 = "sha256-X09IcZHBnruQgnCxt7UpfxMtozKxVouWqRRXTAee0Xc="; }; - propagatedBuildInputs = [ requests audioread ]; + propagatedBuildInputs = [ + requests + audioread + ]; postPatch = '' sed -i \ diff --git a/pkgs/development/python-modules/pyaehw4a1/default.nix b/pkgs/development/python-modules/pyaehw4a1/default.nix index 2f500ea91a22..1506bfd80a78 100644 --- a/pkgs/development/python-modules/pyaehw4a1/default.nix +++ b/pkgs/development/python-modules/pyaehw4a1/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyaes/default.nix b/pkgs/development/python-modules/pyaes/default.nix index 4d98e7cfac63..e38123f54e24 100644 --- a/pkgs/development/python-modules/pyaes/default.nix +++ b/pkgs/development/python-modules/pyaes/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { pname = "pyaes"; diff --git a/pkgs/development/python-modules/pyaftership/default.nix b/pkgs/development/python-modules/pyaftership/default.nix index 7c1c76c4adb5..372b22b6505f 100644 --- a/pkgs/development/python-modules/pyaftership/default.nix +++ b/pkgs/development/python-modules/pyaftership/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, aiohttp -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + aiohttp, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-njlDScmxIYWxB4EL9lOSGCXqZDzP999gI9EkpcZyFlE="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ aresponses @@ -39,9 +38,7 @@ buildPythonPackage rec { --replace 'version="main",' 'version="${version}",' ''; - pythonImportsCheck = [ - "pyaftership" - ]; + pythonImportsCheck = [ "pyaftership" ]; meta = with lib; { description = "Python wrapper package for the AfterShip API"; diff --git a/pkgs/development/python-modules/pyahocorasick/default.nix b/pkgs/development/python-modules/pyahocorasick/default.nix index 26bdb55d5d44..9ae189019fcb 100644 --- a/pkgs/development/python-modules/pyahocorasick/default.nix +++ b/pkgs/development/python-modules/pyahocorasick/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-SCIgu0uEjiSUiIP0WesJG+y+3ZqFBfI5PdgUzviOVrs="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ahocorasick" - ]; + pythonImportsCheck = [ "ahocorasick" ]; meta = with lib; { description = "Python module implementing Aho-Corasick algorithm"; diff --git a/pkgs/development/python-modules/pyairnow/default.nix b/pkgs/development/python-modules/pyairnow/default.nix index c4a549847a26..e3d93e1cfb12 100644 --- a/pkgs/development/python-modules/pyairnow/default.nix +++ b/pkgs/development/python-modules/pyairnow/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytest-aiohttp -, poetry-core -, pytest-asyncio -, pytest-cov -, pytestCheckHook +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytest-aiohttp, + poetry-core, + pytest-asyncio, + pytest-cov, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyairvisual/default.nix b/pkgs/development/python-modules/pyairvisual/default.nix index 3e3b44cb237e..f8a731582e1d 100644 --- a/pkgs/development/python-modules/pyairvisual/default.nix +++ b/pkgs/development/python-modules/pyairvisual/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, numpy -, poetry-core -, pygments -, pysmb -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + numpy, + poetry-core, + pygments, + pysmb, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-uN31LeHYmg4V6Ln3EQp765nOsN5v56TxjYSS/g6TUCY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -56,9 +55,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "pyairvisual" - ]; + pythonImportsCheck = [ "pyairvisual" ]; meta = with lib; { description = "Python library for interacting with AirVisual"; diff --git a/pkgs/development/python-modules/pyalgotrade/default.nix b/pkgs/development/python-modules/pyalgotrade/default.nix index a3014aa29288..d463972524f3 100644 --- a/pkgs/development/python-modules/pyalgotrade/default.nix +++ b/pkgs/development/python-modules/pyalgotrade/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, matplotlib -, numpy -, python-dateutil -, pytz -, requests -, retrying -, scipy -, six -, tornado -, tweepy -, ws4py +{ + lib, + buildPythonPackage, + fetchPypi, + matplotlib, + numpy, + python-dateutil, + pytz, + requests, + retrying, + scipy, + six, + tornado, + tweepy, + ws4py, }: buildPythonPackage rec { @@ -26,8 +27,17 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - matplotlib numpy python-dateutil pytz requests - retrying scipy six tornado tweepy ws4py + matplotlib + numpy + python-dateutil + pytz + requests + retrying + scipy + six + tornado + tweepy + ws4py ]; # no tests in PyPI tarball @@ -38,5 +48,4 @@ buildPythonPackage rec { homepage = "http://gbeced.github.io/pyalgotrade/"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/pyamg/default.nix b/pkgs/development/python-modules/pyamg/default.nix index 6c33a2d9ca24..83b59caaa8b2 100644 --- a/pkgs/development/python-modules/pyamg/default.nix +++ b/pkgs/development/python-modules/pyamg/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, scipy -, pytest -, python -, pybind11 -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + scipy, + pytest, + python, + pybind11, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-+Q+d55W04pWJ7dLrRG0R3bRmZ46+gj7TKfzzV1nqOQw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/pyaml/default.nix b/pkgs/development/python-modules/pyaml/default.nix index f9b70e83157e..cd640d600c57 100644 --- a/pkgs/development/python-modules/pyaml/default.nix +++ b/pkgs/development/python-modules/pyaml/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pyyaml -, unidecode +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pyyaml, + unidecode, }: buildPythonPackage rec { @@ -16,17 +17,11 @@ buildPythonPackage rec { hash = "sha256-Dkg9kokBDnR6Ml3EMXG8w51lYt0d1HGejMfnyWyZ/OY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - unidecode - ]; + nativeCheckInputs = [ unidecode ]; pythonImportsCheck = [ "pyaml" ]; diff --git a/pkgs/development/python-modules/pyannotate/default.nix b/pkgs/development/python-modules/pyannotate/default.nix index abf751e88afd..ced51705b96a 100644 --- a/pkgs/development/python-modules/pyannotate/default.nix +++ b/pkgs/development/python-modules/pyannotate/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mypy-extensions -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchPypi, + mypy-extensions, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { mypy-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyannotate_runtime" diff --git a/pkgs/development/python-modules/pyannote-audio/default.nix b/pkgs/development/python-modules/pyannote-audio/default.nix index 1a9403493eac..661bf3cd3ff4 100644 --- a/pkgs/development/python-modules/pyannote-audio/default.nix +++ b/pkgs/development/python-modules/pyannote-audio/default.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, asteroid-filterbanks -, einops -, huggingface-hub -, pytorch-lightning -, omegaconf -, pyannote-core -, pyannote-database -, pyannote-metrics -, pyannote-pipeline -, pytorch-metric-learning -, rich -, semver -, soundfile -, speechbrain -, tensorboardx -, torch -, torch-audiomentations -, torchaudio -, torchmetrics -, numpy -, pyscaffold +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + asteroid-filterbanks, + einops, + huggingface-hub, + pytorch-lightning, + omegaconf, + pyannote-core, + pyannote-database, + pyannote-metrics, + pyannote-pipeline, + pytorch-metric-learning, + rich, + semver, + soundfile, + speechbrain, + tensorboardx, + torch, + torch-audiomentations, + torchaudio, + torchmetrics, + numpy, + pyscaffold, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyannote-metrics/default.nix b/pkgs/development/python-modules/pyannote-metrics/default.nix index 1ab1a9668160..f5623e28b440 100644 --- a/pkgs/development/python-modules/pyannote-metrics/default.nix +++ b/pkgs/development/python-modules/pyannote-metrics/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, pyannote-core -, pyannote-database -, pandas -, scipy -, scikit-learn -, docopt -, tabulate -, matplotlib -, sympy -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + pyannote-core, + pyannote-database, + pandas, + scipy, + scikit-learn, + docopt, + tabulate, + matplotlib, + sympy, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyarlo/default.nix b/pkgs/development/python-modules/pyarlo/default.nix index 199dc61015a7..a9b9c8c040db 100644 --- a/pkgs/development/python-modules/pyarlo/default.nix +++ b/pkgs/development/python-modules/pyarlo/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, requests -, requests-mock -, sseclient-py +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + requests, + requests-mock, + sseclient-py, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyarr/default.nix b/pkgs/development/python-modules/pyarr/default.nix index ef2e3a5b0a09..13d97943cb5c 100644 --- a/pkgs/development/python-modules/pyarr/default.nix +++ b/pkgs/development/python-modules/pyarr/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, overrides -, poetry-core -, pythonOlder -, requests -, pytestCheckHook -, types-requests -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + overrides, + poetry-core, + pythonOlder, + requests, + pytestCheckHook, + types-requests, + responses, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "poetry.masonry.api" "poetry.core.masonry.api" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ overrides @@ -45,9 +44,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "pyarr" - ]; + pythonImportsCheck = [ "pyarr" ]; disabledTests = [ # Tests require a running sonarr instance diff --git a/pkgs/development/python-modules/pyarrow-hotfix/default.nix b/pkgs/development/python-modules/pyarrow-hotfix/default.nix index 38a8dc4b6ea8..ec0cf110311b 100644 --- a/pkgs/development/python-modules/pyarrow-hotfix/default.nix +++ b/pkgs/development/python-modules/pyarrow-hotfix/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-LlSbxIxvouzvlP6PB8J8fJaxWoRbxz4wTs7Gb5LbM4A="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - pythonImportsCheck = [ - "pyarrow_hotfix" - ]; + pythonImportsCheck = [ "pyarrow_hotfix" ]; meta = with lib; { description = "Hotfix for the PyArrow security vulnerability CVE-2023-47248"; diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index d88cd0abeba9..5c84f1259fc1 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, buildPythonPackage -, python -, pythonAtLeast -, pythonOlder -, arrow-cpp -, cffi -, cloudpickle -, cmake -, cython_0 -, fsspec -, hypothesis -, numpy -, pandas -, pytestCheckHook -, pytest-lazy-fixture -, pkg-config -, setuptools -, setuptools-scm -, oldest-supported-numpy +{ + lib, + stdenv, + buildPythonPackage, + python, + pythonAtLeast, + pythonOlder, + arrow-cpp, + cffi, + cloudpickle, + cmake, + cython_0, + fsspec, + hypothesis, + numpy, + pandas, + pytestCheckHook, + pytest-lazy-fixture, + pkg-config, + setuptools, + setuptools-scm, + oldest-supported-numpy, }: let @@ -73,9 +74,7 @@ buildPythonPackage rec { PYARROW_WITH_GCS = zero_or_one arrow-cpp.enableGcs; PYARROW_BUNDLE_ARROW_CPP_HEADERS = zero_or_one false; - PYARROW_CMAKE_OPTIONS = [ - "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib" - ]; + PYARROW_CMAKE_OPTIONS = [ "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib" ]; ARROW_HOME = arrow-cpp; PARQUET_HOME = arrow-cpp; @@ -99,77 +98,86 @@ buildPythonPackage rec { find "$PWD/pyarrow/src/arrow" -type f -name '*.h' -exec cp {} "$pyarrow_include/arrow/python" \; ''; - pytestFlagsArray = [ - # A couple of tests are missing fixture imports, luckily pytest offers a - # clean solution. - "--fixtures pyarrow/tests/conftest.py" - # Deselect a single test because pyarrow prints a 2-line error message where - # only a single line is expected. The additional line of output comes from - # the glog library which is an optional dependency of arrow-cpp that is - # enabled in nixpkgs. - # Upstream Issue: https://issues.apache.org/jira/browse/ARROW-11393 - "--deselect=pyarrow/tests/test_memory.py::test_env_var" - # these tests require access to s3 via the internet - "--deselect=pyarrow/tests/test_fs.py::test_resolve_s3_region" - "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws" - "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws_region_selection" - "--deselect=pyarrow/tests/test_fs.py::test_s3_options" - # Flaky test - "--deselect=pyarrow/tests/test_flight.py::test_roundtrip_errors" - "--deselect=pyarrow/tests/test_pandas.py::test_threaded_pandas_import" - # Flaky test, works locally but not on Hydra - "--deselect=pyarrow/tests/test_csv.py::TestThreadedCSVTableRead::test_cancellation" - # expects arrow-cpp headers to be bundled - "--deselect=pyarrow/tests/test_cpp_internals.py::test_pyarrow_include" - ] ++ lib.optionals stdenv.isDarwin [ - # Requires loopback networking - "--deselect=pyarrow/tests/test_ipc.py::test_socket_" - "--deselect=pyarrow/tests/test_flight.py::test_never_sends_data" - "--deselect=pyarrow/tests/test_flight.py::test_large_descriptor" - "--deselect=pyarrow/tests/test_flight.py::test_large_metadata_client" - "--deselect=pyarrow/tests/test_flight.py::test_none_action_side_effect" - # fails to compile - "--deselect=pyarrow/tests/test_cython.py::test_cython_api" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - # Repr output is printing number instead of enum name so these tests fail - "--deselect=pyarrow/tests/test_fs.py::test_get_file_info" - ] ++ lib.optionals stdenv.isLinux [ - # this test requires local networking - "--deselect=pyarrow/tests/test_fs.py::test_filesystem_from_uri_gcs" - ]; + pytestFlagsArray = + [ + # A couple of tests are missing fixture imports, luckily pytest offers a + # clean solution. + "--fixtures pyarrow/tests/conftest.py" + # Deselect a single test because pyarrow prints a 2-line error message where + # only a single line is expected. The additional line of output comes from + # the glog library which is an optional dependency of arrow-cpp that is + # enabled in nixpkgs. + # Upstream Issue: https://issues.apache.org/jira/browse/ARROW-11393 + "--deselect=pyarrow/tests/test_memory.py::test_env_var" + # these tests require access to s3 via the internet + "--deselect=pyarrow/tests/test_fs.py::test_resolve_s3_region" + "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws" + "--deselect=pyarrow/tests/test_fs.py::test_s3_real_aws_region_selection" + "--deselect=pyarrow/tests/test_fs.py::test_s3_options" + # Flaky test + "--deselect=pyarrow/tests/test_flight.py::test_roundtrip_errors" + "--deselect=pyarrow/tests/test_pandas.py::test_threaded_pandas_import" + # Flaky test, works locally but not on Hydra + "--deselect=pyarrow/tests/test_csv.py::TestThreadedCSVTableRead::test_cancellation" + # expects arrow-cpp headers to be bundled + "--deselect=pyarrow/tests/test_cpp_internals.py::test_pyarrow_include" + ] + ++ lib.optionals stdenv.isDarwin [ + # Requires loopback networking + "--deselect=pyarrow/tests/test_ipc.py::test_socket_" + "--deselect=pyarrow/tests/test_flight.py::test_never_sends_data" + "--deselect=pyarrow/tests/test_flight.py::test_large_descriptor" + "--deselect=pyarrow/tests/test_flight.py::test_large_metadata_client" + "--deselect=pyarrow/tests/test_flight.py::test_none_action_side_effect" + # fails to compile + "--deselect=pyarrow/tests/test_cython.py::test_cython_api" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + # Repr output is printing number instead of enum name so these tests fail + "--deselect=pyarrow/tests/test_fs.py::test_get_file_info" + ] + ++ lib.optionals stdenv.isLinux [ + # this test requires local networking + "--deselect=pyarrow/tests/test_fs.py::test_filesystem_from_uri_gcs" + ]; disabledTests = [ "GcsFileSystem" ]; dontUseSetuptoolsCheck = true; - preCheck = '' - shopt -s extglob - rm -r pyarrow/!(conftest.py|tests) - mv pyarrow/conftest.py pyarrow/tests/parent_conftest.py - substituteInPlace pyarrow/tests/conftest.py --replace ..conftest .parent_conftest - '' + lib.optionalString stdenv.isDarwin '' - # OSError: [Errno 24] Too many open files - ulimit -n 1024 - ''; + preCheck = + '' + shopt -s extglob + rm -r pyarrow/!(conftest.py|tests) + mv pyarrow/conftest.py pyarrow/tests/parent_conftest.py + substituteInPlace pyarrow/tests/conftest.py --replace ..conftest .parent_conftest + '' + + lib.optionalString stdenv.isDarwin '' + # OSError: [Errno 24] Too many open files + ulimit -n 1024 + ''; - pythonImportsCheck = [ - "pyarrow" - ] ++ map (module: "pyarrow.${module}") [ - "compute" - "csv" - "dataset" - "feather" - "flight" - "fs" - "json" - "parquet" - ]; + pythonImportsCheck = + [ "pyarrow" ] + ++ map (module: "pyarrow.${module}") [ + "compute" + "csv" + "dataset" + "feather" + "flight" + "fs" + "json" + "parquet" + ]; meta = with lib; { description = "A cross-language development platform for in-memory data"; homepage = "https://arrow.apache.org/"; license = licenses.asl20; platforms = platforms.unix; - maintainers = with maintainers; [ veprbl cpcloud ]; + maintainers = with maintainers; [ + veprbl + cpcloud + ]; }; } diff --git a/pkgs/development/python-modules/pyasn/default.nix b/pkgs/development/python-modules/pyasn/default.nix index 6da1ae55f599..7e684c27ae1e 100644 --- a/pkgs/development/python-modules/pyasn/default.nix +++ b/pkgs/development/python-modules/pyasn/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, fetchFromGitHub, python, }: +{ + lib, + buildPythonPackage, + fetchPypi, + fetchFromGitHub, + python, +}: buildPythonPackage rec { pname = "pyasn"; @@ -29,7 +35,10 @@ buildPythonPackage rec { meta = with lib; { description = "Offline IP address to Autonomous System Number lookup module"; homepage = "https://github.com/hadiasghari/pyasn"; - license = with licenses; [ bsdOriginal mit ]; + license = with licenses; [ + bsdOriginal + mit + ]; maintainers = with maintainers; [ onny ]; }; } diff --git a/pkgs/development/python-modules/pyasn1-modules/default.nix b/pkgs/development/python-modules/pyasn1-modules/default.nix index 28516a203e4b..1382c21849a6 100644 --- a/pkgs/development/python-modules/pyasn1-modules/default.nix +++ b/pkgs/development/python-modules/pyasn1-modules/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyasn1 -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyasn1, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-AAS1VuppCIxgswpLSHFAc6q9cyJBLpdDuU9D1KU13vg="; }; - propagatedBuildInputs = [ - pyasn1 - ]; + propagatedBuildInputs = [ pyasn1 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyasn1_modules" - ]; + pythonImportsCheck = [ "pyasn1_modules" ]; meta = with lib; { description = "A collection of ASN.1-based protocols modules"; diff --git a/pkgs/development/python-modules/pyasn1/default.nix b/pkgs/development/python-modules/pyasn1/default.nix index c9e542a6e1ba..bbceb87e16f4 100644 --- a/pkgs/development/python-modules/pyasn1/default.nix +++ b/pkgs/development/python-modules/pyasn1/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-OjWrLEte+Y4X397IqwdARvvaduKBxacGzNgjKM/I9kw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "pyasn1" - ]; + pythonImportsCheck = [ "pyasn1" ]; meta = with lib; { description = "Generic ASN.1 library for Python"; diff --git a/pkgs/development/python-modules/pyasuswrt/default.nix b/pkgs/development/python-modules/pyasuswrt/default.nix index 6ad2ab682e4b..85449618a7e4 100644 --- a/pkgs/development/python-modules/pyasuswrt/default.nix +++ b/pkgs/development/python-modules/pyasuswrt/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-kg475AWmc0i/W4dBg8jFmNyz3V67xjvzPkSlS09/9Oc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Tests require physical hardware doCheck = false; - pythonImportsCheck = [ - "pyasuswrt" - ]; + pythonImportsCheck = [ "pyasuswrt" ]; meta = with lib; { description = "Library for communication with ASUSWRT routers via HTTP"; diff --git a/pkgs/development/python-modules/pyasyncore/default.nix b/pkgs/development/python-modules/pyasyncore/default.nix index 1d02c8ae6640..22f1098ee483 100644 --- a/pkgs/development/python-modules/pyasyncore/default.nix +++ b/pkgs/development/python-modules/pyasyncore/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-ptqOsbkY7XYZT5sh6vctfxZ7BZPX2eLjo6XwZfcmtgk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "asyncore" - ]; + pythonImportsCheck = [ "asyncore" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/pyatag/default.nix b/pkgs/development/python-modules/pyatag/default.nix index 7e7a3ba593d3..a65888221d86 100644 --- a/pkgs/development/python-modules/pyatag/default.nix +++ b/pkgs/development/python-modules/pyatag/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-3h9mpopTbEULCx7rcEt/I/ZnUA0L/fJ7Y3L5h/6EuC4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/pyatem/default.nix b/pkgs/development/python-modules/pyatem/default.nix index 1792d2699d80..72f392a3931e 100644 --- a/pkgs/development/python-modules/pyatem/default.nix +++ b/pkgs/development/python-modules/pyatem/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromSourcehut +{ + lib, + stdenv, + buildPythonPackage, + fetchFromSourcehut, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, pyusb -, tqdm -, zeroconf + # dependencies + pyusb, + tqdm, + zeroconf, -# tests -, pillow -, pytestCheckHook + # tests + pillow, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-O+f1vVwfGJjLem25hsYE1Q1V4vzjrc0HxTBUCANCEwE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyusb @@ -53,9 +52,7 @@ buildPythonPackage rec { popd ''; - pythonImportsCheck = [ - "pyatem" - ]; + pythonImportsCheck = [ "pyatem" ]; meta = with lib; { description = "Library for controlling Blackmagic Design ATEM video mixers"; diff --git a/pkgs/development/python-modules/pyathena/default.nix b/pkgs/development/python-modules/pyathena/default.nix index 036ec8c5e2d7..38a4956c9a6d 100644 --- a/pkgs/development/python-modules/pyathena/default.nix +++ b/pkgs/development/python-modules/pyathena/default.nix @@ -1,16 +1,17 @@ -{ lib -, boto3 -, botocore -, buildPythonPackage -, fastparquet -, fetchPypi -, fsspec -, hatchling -, pandas -, pyarrow -, pythonOlder -, sqlalchemy -, tenacity +{ + lib, + boto3, + botocore, + buildPythonPackage, + fastparquet, + fetchPypi, + fsspec, + hatchling, + pandas, + pyarrow, + pythonOlder, + sqlalchemy, + tenacity, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-uVYnhxQJy6BvSZ/7JbKZPtE+uJkOtEZrd3uTokfZ3f8="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ boto3 @@ -37,18 +36,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - pandas = [ - pandas - ]; - sqlalchemy = [ - sqlalchemy - ]; - arrow = [ - pyarrow - ]; - fastparquet = [ - fastparquet - ]; + pandas = [ pandas ]; + sqlalchemy = [ sqlalchemy ]; + arrow = [ pyarrow ]; + fastparquet = [ fastparquet ]; }; # Nearly all tests depend on a working AWS Athena instance, @@ -56,9 +47,7 @@ buildPythonPackage rec { # https://github.com/laughingman7743/PyAthena/#testing doCheck = false; - pythonImportsCheck = [ - "pyathena" - ]; + pythonImportsCheck = [ "pyathena" ]; meta = with lib; { description = "Python DB API 2.0 (PEP 249) client for Amazon Athena"; diff --git a/pkgs/development/python-modules/pyatmo/default.nix b/pkgs/development/python-modules/pyatmo/default.nix index 7b40a3880e21..827b797f06fa 100644 --- a/pkgs/development/python-modules/pyatmo/default.nix +++ b/pkgs/development/python-modules/pyatmo/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, oauthlib -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib -, requests-mock -, setuptools-scm -, time-machine +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + oauthlib, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, + requests-mock, + setuptools-scm, + time-machine, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace "requests~=2.24" "requests" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp @@ -53,9 +52,7 @@ buildPythonPackage rec { time-machine ]; - pythonImportsCheck = [ - "pyatmo" - ]; + pythonImportsCheck = [ "pyatmo" ]; meta = with lib; { description = "Simple API to access Netatmo weather station data"; diff --git a/pkgs/development/python-modules/pyatome/default.nix b/pkgs/development/python-modules/pyatome/default.nix index 2022260d4817..52717116afb4 100644 --- a/pkgs/development/python-modules/pyatome/default.nix +++ b/pkgs/development/python-modules/pyatome/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, simplejson -, fake-useragent -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + simplejson, + fake-useragent, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # No tests in PyPI tarballs doCheck = false; - pythonImportsCheck = [ - "pyatome" - ]; + pythonImportsCheck = [ "pyatome" ]; meta = with lib; { description = "Python module to get energy consumption data from Atome"; diff --git a/pkgs/development/python-modules/pyatspi/default.nix b/pkgs/development/python-modules/pyatspi/default.nix index 0fbd5b97f680..df80e01731ee 100644 --- a/pkgs/development/python-modules/pyatspi/default.nix +++ b/pkgs/development/python-modules/pyatspi/default.nix @@ -1,4 +1,14 @@ -{ lib, fetchurl, pkg-config, buildPythonPackage, isPy3k, at-spi2-core, pygobject3, gnome, python }: +{ + lib, + fetchurl, + pkg-config, + buildPythonPackage, + isPy3k, + at-spi2-core, + pygobject3, + gnome, + python, +}: buildPythonPackage rec { pname = "pyatspi"; @@ -17,9 +27,7 @@ buildPythonPackage rec { pygobject3 ]; - configureFlags = [ - "PYTHON=${python.pythonOnBuildForHost.interpreter}" - ]; + configureFlags = [ "PYTHON=${python.pythonOnBuildForHost.interpreter}" ]; postPatch = '' # useless python existence check for us diff --git a/pkgs/development/python-modules/pyatv/default.nix b/pkgs/development/python-modules/pyatv/default.nix index a422e45057b8..054eec8fe72e 100644 --- a/pkgs/development/python-modules/pyatv/default.nix +++ b/pkgs/development/python-modules/pyatv/default.nix @@ -1,31 +1,32 @@ -{ lib -, buildPythonPackage -, aiohttp -, async-timeout -, chacha20poly1305-reuseable -, cryptography -, deepdiff -, fetchFromGitHub -, ifaddr -, mediafile -, miniaudio -, protobuf -, pydantic -, pyfakefs -, pytest-aiohttp -, pytest-asyncio -, pytest-httpserver -, pytest-timeout -, pytestCheckHook -, pythonRelaxDepsHook -, pythonAtLeast -, pythonOlder -, requests -, setuptools -, srptools -, stdenv -, tabulate -, zeroconf +{ + lib, + buildPythonPackage, + aiohttp, + async-timeout, + chacha20poly1305-reuseable, + cryptography, + deepdiff, + fetchFromGitHub, + ifaddr, + mediafile, + miniaudio, + protobuf, + pydantic, + pyfakefs, + pytest-aiohttp, + pytest-asyncio, + pytest-httpserver, + pytest-timeout, + pytestCheckHook, + pythonRelaxDepsHook, + pythonAtLeast, + pythonOlder, + requests, + setuptools, + srptools, + stdenv, + tabulate, + zeroconf, }: buildPythonPackage rec { @@ -93,16 +94,19 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # https://github.com/postlund/pyatv/issues/2307 - "test_zeroconf_service_published" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/postlund/pyatv/issues/2365 - "test_simple_dispatch" - ] ++ lib.optionals (stdenv.isDarwin) [ - # tests/protocols/raop/test_raop_functional.py::test_stream_retransmission[raop_properties2-2-True] - assert False - "test_stream_retransmission" - ]; + disabledTests = + [ + # https://github.com/postlund/pyatv/issues/2307 + "test_zeroconf_service_published" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/postlund/pyatv/issues/2365 + "test_simple_dispatch" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # tests/protocols/raop/test_raop_functional.py::test_stream_retransmission[raop_properties2-2-True] - assert False + "test_stream_retransmission" + ]; disabledTestPaths = [ # Test doesn't work in the sandbox @@ -112,9 +116,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "pyatv" - ]; + pythonImportsCheck = [ "pyatv" ]; meta = with lib; { description = "Python client library for the Apple TV"; diff --git a/pkgs/development/python-modules/pyaudio/default.nix b/pkgs/development/python-modules/pyaudio/default.nix index d9d4aa7b70e7..d6d2749d6034 100644 --- a/pkgs/development/python-modules/pyaudio/default.nix +++ b/pkgs/development/python-modules/pyaudio/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + pkgs, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { homepage = "https://people.csail.mit.edu/hubert/pyaudio/"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pyaussiebb/default.nix b/pkgs/development/python-modules/pyaussiebb/default.nix index 4443dfee6252..f33fe89fc2ea 100644 --- a/pkgs/development/python-modules/pyaussiebb/default.nix +++ b/pkgs/development/python-modules/pyaussiebb/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, loguru -, pydantic -, poetry-core -, pythonOlder -, requests +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + loguru, + pydantic, + poetry-core, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-XNf9vYMlTLqhYIVNw9GjPcXpOm5EYCcC4aGukR8g3zc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -42,9 +41,7 @@ buildPythonPackage rec { # Tests require credentials and requests-testing doCheck = false; - pythonImportsCheck = [ - "aussiebb" - ]; + pythonImportsCheck = [ "aussiebb" ]; meta = with lib; { description = "Module for interacting with the Aussie Broadband APIs"; diff --git a/pkgs/development/python-modules/pyautogui/default.nix b/pkgs/development/python-modules/pyautogui/default.nix index 04cd0513dd2b..8742e6a0c14b 100644 --- a/pkgs/development/python-modules/pyautogui/default.nix +++ b/pkgs/development/python-modules/pyautogui/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mouseinfo -, pygetwindow -, pymsgbox -, pyperclip -, pyscreeze -, pytweening -, tkinter -, xlib -, xvfb-run -, scrot +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mouseinfo, + pygetwindow, + pymsgbox, + pyperclip, + pyscreeze, + pytweening, + tkinter, + xlib, + xvfb-run, + scrot, }: buildPythonPackage rec { pname = "pyautogui"; @@ -24,7 +25,10 @@ buildPythonPackage rec { hash = "sha256-R9tcTqxUaqw63FLOGFRaO/Oz6kD7V6MPHdQ8A29NdXw="; }; - nativeCheckInputs = [ xvfb-run scrot ]; + nativeCheckInputs = [ + xvfb-run + scrot + ]; checkPhase = '' xvfb-run python -c 'import pyautogui' # The tests depend on some specific things that xvfb cant provide, like keyboard and mouse diff --git a/pkgs/development/python-modules/pyavm/default.nix b/pkgs/development/python-modules/pyavm/default.nix index 45cf827a82a8..1d42aa9989f9 100644 --- a/pkgs/development/python-modules/pyavm/default.nix +++ b/pkgs/development/python-modules/pyavm/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# tests -, astropy -, numpy -, pillow -, pytestCheckHook + # tests + astropy, + numpy, + pillow, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyavm" - ]; + pythonImportsCheck = [ "pyavm" ]; meta = with lib; { description = "Simple pure-python AVM meta-data handling"; diff --git a/pkgs/development/python-modules/pyaxmlparser/default.nix b/pkgs/development/python-modules/pyaxmlparser/default.nix index 818ea47fc497..cb2122eaaba3 100644 --- a/pkgs/development/python-modules/pyaxmlparser/default.nix +++ b/pkgs/development/python-modules/pyaxmlparser/default.nix @@ -1,4 +1,12 @@ -{ buildPythonPackage, lib, lxml, click, fetchFromGitHub, pytestCheckHook, asn1crypto }: +{ + buildPythonPackage, + lib, + lxml, + click, + fetchFromGitHub, + pytestCheckHook, + asn1crypto, +}: buildPythonPackage rec { version = "0.3.27"; @@ -12,7 +20,11 @@ buildPythonPackage rec { hash = "sha256-NtAsO/I1jDEv676yhAgLguQnB/kHdAqPoLt2QFWbvmw="; }; - propagatedBuildInputs = [ asn1crypto click lxml ]; + propagatedBuildInputs = [ + asn1crypto + click + lxml + ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -21,7 +33,10 @@ buildPythonPackage rec { mainProgram = "apkinfo"; homepage = "https://github.com/appknox/pyaxmlparser"; # Files from Androguard are licensed ASL 2.0 - license = with licenses; [ mit asl20 ]; + license = with licenses; [ + mit + asl20 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/pybalboa/default.nix b/pkgs/development/python-modules/pybalboa/default.nix index 38435c6d22b3..5cfa4813951e 100644 --- a/pkgs/development/python-modules/pybalboa/default.nix +++ b/pkgs/development/python-modules/pybalboa/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-7vjdRGnEnMf32pZwoKRxX16hxkyf0CXlncpbBJMQtfI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pybalboa" - ]; + pythonImportsCheck = [ "pybalboa" ]; meta = with lib; { description = " Python module to interface with a Balboa Spa"; diff --git a/pkgs/development/python-modules/pybars3/default.nix b/pkgs/development/python-modules/pybars3/default.nix index ad7294fd6358..8bd031801137 100644 --- a/pkgs/development/python-modules/pybars3/default.nix +++ b/pkgs/development/python-modules/pybars3/default.nix @@ -1,8 +1,9 @@ -{ python3 -, fetchPypi -, lib -, pymeta3 -, buildPythonPackage +{ + python3, + fetchPypi, + lib, + pymeta3, + buildPythonPackage, }: buildPythonPackage rec { pname = "pybars3"; @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-ashH6QXlO5xbk2rxEskQR14nv3Z/efRSjBb5rx7A4lI="; }; - propagatedBuildInputs = [ - pymeta3 - ]; + propagatedBuildInputs = [ pymeta3 ]; checkPhase = '' runHook preCheck @@ -24,15 +23,16 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "pybars" - ]; + pythonImportsCheck = [ "pybars" ]; meta = with lib; { description = "Handlebars.js template support for Python 3 and 2"; homepage = "https://github.com/wbond/pybars3"; changelog = "https://github.com/wbond/pybars3/releases/tag/${version}"; license = licenses.lgpl3Only; - maintainers = with maintainers; [ jfly matusf ]; + maintainers = with maintainers; [ + jfly + matusf + ]; }; } diff --git a/pkgs/development/python-modules/pybase64/default.nix b/pkgs/development/python-modules/pybase64/default.nix index fdc65a0abe72..50b7bcbd2644 100644 --- a/pkgs/development/python-modules/pybase64/default.nix +++ b/pkgs/development/python-modules/pybase64/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-Mu+ZPFWCHayavXZ+5GVqUBOy7YvxElyruufoTSuZEDg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pybase64" - ]; + pythonImportsCheck = [ "pybase64" ]; meta = with lib; { description = "Fast Base64 encoding/decoding"; diff --git a/pkgs/development/python-modules/pybigwig/default.nix b/pkgs/development/python-modules/pybigwig/default.nix index efbc350530e5..c53941e8b5df 100644 --- a/pkgs/development/python-modules/pybigwig/default.nix +++ b/pkgs/development/python-modules/pybigwig/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder -, zlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, + zlib, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { hash = "sha256-wJC5eXIC9PNlbCtmq671WuoIJVkh3aX7K6WArJWjyFg="; }; - buildInputs = [ - zlib - ]; + buildInputs = [ zlib ]; nativeCheckInputs = [ numpy pytestCheckHook ]; - pythonImportsCheck = [ - "pyBigWig" - ]; + pythonImportsCheck = [ "pyBigWig" ]; - pytestFlagsArray = [ - "pyBigWigTest/test*.py" - ]; + pytestFlagsArray = [ "pyBigWigTest/test*.py" ]; disabledTests = [ # Test file is donwloaded from GitHub diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix index 1a06de633b68..408544f42405 100644 --- a/pkgs/development/python-modules/pybind11/default.nix +++ b/pkgs/development/python-modules/pybind11/default.nix @@ -1,20 +1,22 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cmake -, ninja -, setuptools -, boost -, eigen -, python -, catch -, numpy -, pytestCheckHook -, libxcrypt -, makeSetupHook -}: let +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cmake, + ninja, + setuptools, + boost, + eigen, + python, + catch, + numpy, + pytestCheckHook, + libxcrypt, + makeSetupHook, +}: +let setupHook = makeSetupHook { name = "pybind11-setup-hook"; substitutions = { @@ -30,14 +32,23 @@ # but clang has a check hard-coded requiring 10.13 because that’s when Apple first shipped a # support for C++17 aligned allocations on macOS. # Tell clang we’re targeting 10.13 on x86_64-darwin while continuing to use the default SDK. - stdenv' = if stdenv.isDarwin && stdenv.isx86_64 - then python.stdenv.override (oldStdenv: { - buildPlatform = oldStdenv.buildPlatform // { darwinMinVersion = "10.13"; }; - targetPlatform = oldStdenv.targetPlatform // { darwinMinVersion = "10.13"; }; - hostPlatform = oldStdenv.hostPlatform // { darwinMinVersion = "10.13"; }; - }) - else python.stdenv; -in buildPythonPackage rec { + stdenv' = + if stdenv.isDarwin && stdenv.isx86_64 then + python.stdenv.override (oldStdenv: { + buildPlatform = oldStdenv.buildPlatform // { + darwinMinVersion = "10.13"; + }; + targetPlatform = oldStdenv.targetPlatform // { + darwinMinVersion = "10.13"; + }; + hostPlatform = oldStdenv.hostPlatform // { + darwinMinVersion = "10.13"; + }; + }) + else + python.stdenv; +in +buildPythonPackage rec { pname = "pybind11"; version = "2.12.0"; pyproject = true; @@ -77,9 +88,7 @@ in buildPythonPackage rec { cmakeFlags = [ "-DBoost_INCLUDE_DIR=${lib.getDev boost}/include" "-DEIGEN3_INCLUDE_DIR=${lib.getDev eigen}/include/eigen3" - ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ - "-DPYBIND11_CXX_STANDARD=-std=c++17" - ]; + ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [ "-DPYBIND11_CXX_STANDARD=-std=c++17" ]; postBuild = '' # build tests @@ -130,6 +139,9 @@ in buildPythonPackage rec { bindings of existing C++ code. ''; license = licenses.bsd3; - maintainers = with maintainers; [ yuriaisaka dotlambda ]; + maintainers = with maintainers; [ + yuriaisaka + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/pybindgen/default.nix b/pkgs/development/python-modules/pybindgen/default.nix index a7a5de92e9e8..63321d5c53c0 100644 --- a/pkgs/development/python-modules/pybindgen/default.nix +++ b/pkgs/development/python-modules/pybindgen/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, pygccxml -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pygccxml, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q="; }; - buildInputs = [ - setuptools-scm - ]; + buildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pygccxml - ]; + nativeCheckInputs = [ pygccxml ]; - pythonImportsCheck = [ - "pybindgen" - ]; + pythonImportsCheck = [ "pybindgen" ]; # Fails to import module 'cxxfilt' from pygccxml on Py3k doCheck = (!isPy3k); diff --git a/pkgs/development/python-modules/pyblackbird/default.nix b/pkgs/development/python-modules/pyblackbird/default.nix index e710ccb21480..9219d9ede21a 100644 --- a/pkgs/development/python-modules/pyblackbird/default.nix +++ b/pkgs/development/python-modules/pyblackbird/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pyserial-asyncio -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pyserial-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Test setup try to create a serial port doCheck = false; - pythonImportsCheck = [ - "pyblackbird" - ]; + pythonImportsCheck = [ "pyblackbird" ]; meta = with lib; { description = "Python implementation for Monoprice Blackbird units"; diff --git a/pkgs/development/python-modules/pybloom-live/default.nix b/pkgs/development/python-modules/pybloom-live/default.nix index 0499350a7c82..40ef50836099 100644 --- a/pkgs/development/python-modules/pybloom-live/default.nix +++ b/pkgs/development/python-modules/pybloom-live/default.nix @@ -1,12 +1,13 @@ -{ lib -, bitarray -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, wheel -, xxhash +{ + lib, + bitarray, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, + xxhash, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { xxhash ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pybloom_live" - ]; + pythonImportsCheck = [ "pybloom_live" ]; meta = with lib; { description = "A Probabilistic data structure"; diff --git a/pkgs/development/python-modules/pybluez/default.nix b/pkgs/development/python-modules/pybluez/default.nix index 55262a07a4ca..d3842358db2f 100644 --- a/pkgs/development/python-modules/pybluez/default.nix +++ b/pkgs/development/python-modules/pybluez/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, bluez -, gattlib +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + bluez, + gattlib, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-GA58DfCFaVzZQA1HYpGQ68bznrt4SX1ojyOVn8hyCGo="; }; - buildInputs = [ - bluez - ]; + buildInputs = [ bluez ]; - propagatedBuildInputs = [ - gattlib - ]; + propagatedBuildInputs = [ gattlib ]; # there are no tests doCheck = false; @@ -41,5 +38,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ leenaars ]; broken = stdenv.isDarwin; # requires pyobjc-core, pyobjc-framework-Cocoa }; - } diff --git a/pkgs/development/python-modules/pybox2d/default.nix b/pkgs/development/python-modules/pybox2d/default.nix index c7a8e7d83ebf..0d7069c736ca 100644 --- a/pkgs/development/python-modules/pybox2d/default.nix +++ b/pkgs/development/python-modules/pybox2d/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, swig +{ + lib, + buildPythonPackage, + fetchFromGitHub, + swig, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-yjLFvsg8GQLxjN1vtZM9zl+kAmD4+eS/vzRkpj0SCjY="; }; - nativeBuildInputs = [ - swig - ]; + nativeBuildInputs = [ swig ]; # We need to build the package explicitly a first time so that the library/Box2D/Box2D.py file # gets generated. diff --git a/pkgs/development/python-modules/pybravia/default.nix b/pkgs/development/python-modules/pybravia/default.nix index b738d3adf01e..b94efc55b3c9 100644 --- a/pkgs/development/python-modules/pybravia/default.nix +++ b/pkgs/development/python-modules/pybravia/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-Ux9EereKKbgaVQORliW6J5FSBlytLM+m4PVFBk+OW6k="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pybravia" - ]; + pythonImportsCheck = [ "pybravia" ]; meta = with lib; { description = "Library for remote control of Sony Bravia TVs 2013 and newer"; diff --git a/pkgs/development/python-modules/pybrowserid/default.nix b/pkgs/development/python-modules/pybrowserid/default.nix index e8acb9b4c0bd..e6742c5e3654 100644 --- a/pkgs/development/python-modules/pybrowserid/default.nix +++ b/pkgs/development/python-modules/pybrowserid/default.nix @@ -19,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-bCJ2aeh8wleWrnb2oO9lAlUoyK2C01Jnn6mj5WY6ceM="; }; - patches = [ - ./darwin_fix.patch - ]; + patches = [ ./darwin_fix.patch ]; postPatch = '' substituteInPlace browserid/tests/* \ diff --git a/pkgs/development/python-modules/pybrowsers/default.nix b/pkgs/development/python-modules/pybrowsers/default.nix index 859b1faa4b4e..76e427fef92f 100644 --- a/pkgs/development/python-modules/pybrowsers/default.nix +++ b/pkgs/development/python-modules/pybrowsers/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, pyxdg +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + pyxdg, }: buildPythonPackage rec { @@ -24,20 +25,14 @@ buildPythonPackage rec { sed -i "/--cov/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pyxdg - ]; + propagatedBuildInputs = [ pyxdg ]; # Tests want to interact with actual browsers doCheck = false; - pythonImportsCheck = [ - "browsers" - ]; + pythonImportsCheck = [ "browsers" ]; meta = with lib; { description = "Python library for detecting and launching browsers"; diff --git a/pkgs/development/python-modules/pybtex-docutils/default.nix b/pkgs/development/python-modules/pybtex-docutils/default.nix index b2c05f73bc63..bd3ad62f172c 100644 --- a/pkgs/development/python-modules/pybtex-docutils/default.nix +++ b/pkgs/development/python-modules/pybtex-docutils/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, docutils -, fetchPypi -, pybtex -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + docutils, + fetchPypi, + pybtex, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { pybtex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pybtex_docutils" - ]; + pythonImportsCheck = [ "pybtex_docutils" ]; meta = with lib; { description = "A docutils backend for pybtex"; diff --git a/pkgs/development/python-modules/pybtex/default.nix b/pkgs/development/python-modules/pybtex/default.nix index 04a9ba95a89e..5e622e15b076 100644 --- a/pkgs/development/python-modules/pybtex/default.nix +++ b/pkgs/development/python-modules/pybtex/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, latexcodec -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + latexcodec, + pyyaml, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pybullet/default.nix b/pkgs/development/python-modules/pybullet/default.nix index 3c11dd822c21..95dbed9a924c 100644 --- a/pkgs/development/python-modules/pybullet/default.nix +++ b/pkgs/development/python-modules/pybullet/default.nix @@ -1,10 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, libGLU, libGL -, xorg -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + libGLU, + libGL, + xorg, + numpy, }: buildPythonPackage rec { @@ -17,16 +19,15 @@ buildPythonPackage rec { hash = "sha256-2idSVDPIhpjcn9i8IPpK5NB3OLRlZjNlnr2CwtKITgg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ - libGLU libGL + libGLU + libGL xorg.libX11 ]; - propagatedBuildInputs = [ numpy ]; + propagatedBuildInputs = [ numpy ]; patches = [ # make sure X11 and OpenGL can be found at runtime diff --git a/pkgs/development/python-modules/pycairo/default.nix b/pkgs/development/python-modules/pycairo/default.nix index a2b865e7b71c..4f4859e007c3 100644 --- a/pkgs/development/python-modules/pycairo/default.nix +++ b/pkgs/development/python-modules/pycairo/default.nix @@ -1,14 +1,15 @@ -{ lib -, pythonOlder -, fetchFromGitHub -, meson -, ninja -, buildPythonPackage -, pytestCheckHook -, pkg-config -, cairo -, libxcrypt -, python +{ + lib, + pythonOlder, + fetchFromGitHub, + meson, + ninja, + buildPythonPackage, + pytestCheckHook, + pkg-config, + cairo, + libxcrypt, + python, }: buildPythonPackage rec { @@ -32,15 +33,9 @@ buildPythonPackage rec { pkg-config ]; - buildInputs = [ - cairo - ] ++ lib.optionals (pythonOlder "3.9") [ - libxcrypt - ]; + buildInputs = [ cairo ] ++ lib.optionals (pythonOlder "3.9") [ libxcrypt ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; mesonFlags = [ # This is only used for figuring out what version of Python is in @@ -52,7 +47,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python 3 bindings for cairo"; homepage = "https://pycairo.readthedocs.io/"; - license = with licenses; [ lgpl21Only mpl11 ]; + license = with licenses; [ + lgpl21Only + mpl11 + ]; platforms = lib.platforms.linux ++ lib.platforms.darwin; }; } diff --git a/pkgs/development/python-modules/pycangjie/default.nix b/pkgs/development/python-modules/pycangjie/default.nix index 5fd7e130c248..caca2f9f3d0a 100644 --- a/pkgs/development/python-modules/pycangjie/default.nix +++ b/pkgs/development/python-modules/pycangjie/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, bash -, autoconf -, automake -, libtool -, pkg-config -, libcangjie -, sqlite -, buildPythonPackage -, cython +{ + lib, + fetchFromGitHub, + bash, + autoconf, + automake, + libtool, + pkg-config, + libcangjie, + sqlite, + buildPythonPackage, + cython, }: buildPythonPackage { @@ -23,8 +24,17 @@ buildPythonPackage { hash = "sha256-sS0Demzm89WtEIN4Efz0OTsUQ/c3gIX+/koekQGOca4="; }; - nativeBuildInputs = [ pkg-config libtool autoconf automake cython ]; - buildInputs = [ libcangjie sqlite ]; + nativeBuildInputs = [ + pkg-config + libtool + autoconf + automake + cython + ]; + buildInputs = [ + libcangjie + sqlite + ]; preConfigure = '' find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';' diff --git a/pkgs/development/python-modules/pycapnp/default.nix b/pkgs/development/python-modules/pycapnp/default.nix index e10075e27726..8d34b1f39e3c 100644 --- a/pkgs/development/python-modules/pycapnp/default.nix +++ b/pkgs/development/python-modules/pycapnp/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, capnproto -, cython -, fetchFromGitHub -, isPy27 -, isPyPy -, pkgconfig +{ + lib, + buildPythonPackage, + capnproto, + cython, + fetchFromGitHub, + isPy27, + isPyPy, + pkgconfig, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { sha256 = "1xi6df93ggkpmwckwbi356v7m32zv5qry8s45hvsps66dz438kmi"; }; - nativeBuildInputs = [ cython pkgconfig ]; + nativeBuildInputs = [ + cython + pkgconfig + ]; buildInputs = [ capnproto ]; diff --git a/pkgs/development/python-modules/pycaption/default.nix b/pkgs/development/python-modules/pycaption/default.nix index 3d4e391c0be1..609a3b034180 100644 --- a/pkgs/development/python-modules/pycaption/default.nix +++ b/pkgs/development/python-modules/pycaption/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, beautifulsoup4 -, lxml -, cssutils -, nltk -, pytest-lazy-fixture -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + beautifulsoup4, + lxml, + cssutils, + nltk, + pytest-lazy-fixture, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-0rh8w4zQN5qAIPwnm7FO6VyPxMdutYFflpY+xWdEm3M="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 diff --git a/pkgs/development/python-modules/pycardano/default.nix b/pkgs/development/python-modules/pycardano/default.nix index 75bef6723d5d..b178c139bd76 100644 --- a/pkgs/development/python-modules/pycardano/default.nix +++ b/pkgs/development/python-modules/pycardano/default.nix @@ -1,35 +1,38 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -# Python deps -, blockfrost-python -, cachetools -, cbor2 -, cose -, ecpy -, frozendict -, frozenlist -, mnemonic -, poetry-core -, pprintpp -, pynacl -, setuptools -, typeguard -, websocket-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + # Python deps + blockfrost-python, + cachetools, + cbor2, + cose, + ecpy, + frozendict, + frozenlist, + mnemonic, + poetry-core, + pprintpp, + pynacl, + setuptools, + typeguard, + websocket-client, }: let cose_0_9_dev8 = cose.overridePythonAttrs (old: rec { version = "0.9.dev8"; - src = (old.src.override { - rev = "v${version}"; - hash = "sha256-/jwq2C2nvHInsgPG4jZCr+XsvlUJdYewAkasrUPVaHM="; - }); + src = ( + old.src.override { + rev = "v${version}"; + hash = "sha256-/jwq2C2nvHInsgPG4jZCr+XsvlUJdYewAkasrUPVaHM="; + } + ); pythonImportsCheck = [ "cose" ]; }); - -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "pycardano"; version = "0.10.0"; @@ -42,9 +45,7 @@ in buildPythonPackage rec { hash = "sha256-LP/W8IC2del476fGFq10VMWwMrbAoCCcZOngA8unBM0="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ blockfrost-python diff --git a/pkgs/development/python-modules/pycares/default.nix b/pkgs/development/python-modules/pycares/default.nix index fcd6327bd222..e973ff42cdcb 100644 --- a/pkgs/development/python-modules/pycares/default.nix +++ b/pkgs/development/python-modules/pycares/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiodns -, buildPythonPackage -, c-ares -, cffi -, fetchPypi -, idna -, pythonOlder -, tornado +{ + lib, + aiodns, + buildPythonPackage, + c-ares, + cffi, + fetchPypi, + idna, + pythonOlder, + tornado, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-9HV51Qjy9W7d0WznIEV4KtOxs7Z4CYaZ4rahswcz4cI="; }; - buildInputs = [ - c-ares - ]; + buildInputs = [ c-ares ]; propagatedBuildInputs = [ cffi idna ]; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; # Requires network access doCheck = false; @@ -41,9 +38,7 @@ buildPythonPackage rec { inherit aiodns tornado; }; - pythonImportsCheck = [ - "pycares" - ]; + pythonImportsCheck = [ "pycares" ]; meta = with lib; { description = "Python interface for c-ares"; diff --git a/pkgs/development/python-modules/pycarwings2/default.nix b/pkgs/development/python-modules/pycarwings2/default.nix index 0158e2c01856..2d83d009aad8 100644 --- a/pkgs/development/python-modules/pycarwings2/default.nix +++ b/pkgs/development/python-modules/pycarwings2/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pyyaml -, iso8601 -, requests -, pycryptodome +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pyyaml, + iso8601, + requests, + pycryptodome, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { pycryptodome ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ @@ -46,9 +45,7 @@ buildPythonPackage rec { "test_bad_password" ]; - pythonImportsCheck = [ - "pycarwings2" - ]; + pythonImportsCheck = [ "pycarwings2" ]; meta = with lib; { description = "Python library for interacting with the NissanConnect EV"; diff --git a/pkgs/development/python-modules/pycatch22/default.nix b/pkgs/development/python-modules/pycatch22/default.nix index c82088d9adbe..0f777bb361af 100644 --- a/pkgs/development/python-modules/pycatch22/default.nix +++ b/pkgs/development/python-modules/pycatch22/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pandas -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pandas, + pythonOlder, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-l41LLo9k075EL8rV48bwa4Yw12XuqNJSDYtd9kyqS3U="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pandas - ]; + nativeCheckInputs = [ pandas ]; # This packages does not have real tests # But we can run this file as smoketest @@ -38,9 +35,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "pycatch22" - ]; + pythonImportsCheck = [ "pycatch22" ]; meta = with lib; { description = "Python implementation of catch22"; diff --git a/pkgs/development/python-modules/pycategories/default.nix b/pkgs/development/python-modules/pycategories/default.nix index 6586f598ca0a..98a8e360d157 100644 --- a/pkgs/development/python-modules/pycategories/default.nix +++ b/pkgs/development/python-modules/pycategories/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + callPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # and shouldn't be used in production code propagatedBuildInputs = [ (callPackage ./infix.nix { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Implementation of some concepts from category theory"; diff --git a/pkgs/development/python-modules/pycategories/infix.nix b/pkgs/development/python-modules/pycategories/infix.nix index f3b4d2548181..8057e0d6db2f 100644 --- a/pkgs/development/python-modules/pycategories/infix.nix +++ b/pkgs/development/python-modules/pycategories/infix.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pycddl/default.nix b/pkgs/development/python-modules/pycddl/default.nix index 9cd2d1fab202..cd7f27e0f6e6 100644 --- a/pkgs/development/python-modules/pycddl/default.nix +++ b/pkgs/development/python-modules/pycddl/default.nix @@ -1,11 +1,12 @@ -{ lib -, pythonOlder -, fetchPypi -, buildPythonPackage -, rustPlatform -, pytestCheckHook -, psutil -, cbor2 +{ + lib, + pythonOlder, + fetchPypi, + buildPythonPackage, + rustPlatform, + pytestCheckHook, + psutil, + cbor2, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { hash = "sha256-LdecJPSov2Y/QI4MWb20DcF0EtMuDO0VwiQDUeD55GI="; }; - nativeBuildInputs = with rustPlatform; [ maturinBuildHook cargoSetupHook ]; + nativeBuildInputs = with rustPlatform; [ + maturinBuildHook + cargoSetupHook + ]; postPatch = '' # We don't place pytest-benchmark in the closure because we have no @@ -40,7 +44,11 @@ buildPythonPackage rec { hash = "sha256-FJET2Xb1cq4aePFhPXpp2oEPIOtpugYWNFAa2Dj0F6Y="; }; - nativeCheckInputs = [ pytestCheckHook psutil cbor2 ]; + nativeCheckInputs = [ + pytestCheckHook + psutil + cbor2 + ]; pythonImportsCheck = [ "pycddl" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pycdio/default.nix b/pkgs/development/python-modules/pycdio/default.nix index e8f0323b2f92..78a620eb0dd7 100644 --- a/pkgs/development/python-modules/pycdio/default.nix +++ b/pkgs/development/python-modules/pycdio/default.nix @@ -1,9 +1,11 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi -, setuptools -, nose -, pkgs +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, + nose, + pkgs, }: buildPythonPackage rec { @@ -27,9 +29,15 @@ buildPythonPackage rec { patchShebangs . ''; - nativeBuildInputs = [ nose pkgs.pkg-config pkgs.swig ]; - buildInputs = [ setuptools pkgs.libcdio ] - ++ lib.optional stdenv.isDarwin pkgs.libiconv; + nativeBuildInputs = [ + nose + pkgs.pkg-config + pkgs.swig + ]; + buildInputs = [ + setuptools + pkgs.libcdio + ] ++ lib.optional stdenv.isDarwin pkgs.libiconv; # Run tests using nosetests but first need to install the binaries # to the root source directory where they can be found. @@ -43,5 +51,4 @@ buildPythonPackage rec { description = "Wrapper around libcdio (CD Input and Control library)"; license = licenses.gpl3Plus; }; - } diff --git a/pkgs/development/python-modules/pycec/default.nix b/pkgs/development/python-modules/pycec/default.nix index 832d38d72677..dd18f56d9826 100644 --- a/pkgs/development/python-modules/pycec/default.nix +++ b/pkgs/development/python-modules/pycec/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, libcec -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libcec, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-5KQyHjAvHWeHFqcFHFJxDOPwWuVcFAN2wVdz9a77dzU="; }; - propagatedBuildInputs = [ - libcec - ]; + propagatedBuildInputs = [ libcec ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pycec" - ]; + pythonImportsCheck = [ "pycec" ]; meta = with lib; { description = "Python modules to access HDMI CEC devices"; diff --git a/pkgs/development/python-modules/pycep-parser/default.nix b/pkgs/development/python-modules/pycep-parser/default.nix index 9231fbdf47f2..c8e5f12ddd53 100644 --- a/pkgs/development/python-modules/pycep-parser/default.nix +++ b/pkgs/development/python-modules/pycep-parser/default.nix @@ -1,13 +1,14 @@ -{ lib -, assertpy -, buildPythonPackage -, fetchFromGitHub -, lark -, poetry-core -, pytestCheckHook -, pythonOlder -, regex -, typing-extensions +{ + lib, + assertpy, + buildPythonPackage, + fetchFromGitHub, + lark, + poetry-core, + pytestCheckHook, + pythonOlder, + regex, + typing-extensions, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-qogUjj/GwMGwFEin+xJCSOCf5Ut8bgsFakyoMhkyKgU="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ lark @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pycep" - ]; + pythonImportsCheck = [ "pycep" ]; meta = with lib; { description = "Python based Bicep parser"; diff --git a/pkgs/development/python-modules/pycfdns/default.nix b/pkgs/development/python-modules/pycfdns/default.nix index 339ade0ca71f..e54034e6dbd7 100644 --- a/pkgs/development/python-modules/pycfdns/default.nix +++ b/pkgs/development/python-modules/pycfdns/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -25,20 +26,14 @@ buildPythonPackage rec { --replace 'version="0",' 'version="${version}",' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pycfdns" - ]; + pythonImportsCheck = [ "pycfdns" ]; meta = with lib; { description = "Python module for updating Cloudflare DNS A records"; diff --git a/pkgs/development/python-modules/pycflow2dot/default.nix b/pkgs/development/python-modules/pycflow2dot/default.nix index 7bcd95e30d90..19289d0b6cbd 100644 --- a/pkgs/development/python-modules/pycflow2dot/default.nix +++ b/pkgs/development/python-modules/pycflow2dot/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cflow -, graphviz -, pydot -, networkx -, which +{ + lib, + buildPythonPackage, + fetchPypi, + cflow, + graphviz, + pydot, + networkx, + which, }: buildPythonPackage rec { @@ -36,8 +37,8 @@ buildPythonPackage rec { meta = with lib; { description = "Layout C call graphs from cflow using GraphViz dot"; mainProgram = "cflow2dot"; - homepage = "https://github.com/johnyf/pycflow2dot"; - license = licenses.gpl3Plus; + homepage = "https://github.com/johnyf/pycflow2dot"; + license = licenses.gpl3Plus; maintainers = with maintainers; [ evils ]; }; } diff --git a/pkgs/development/python-modules/pycfmodel/default.nix b/pkgs/development/python-modules/pycfmodel/default.nix index e0d072684e26..f361b3803bca 100644 --- a/pkgs/development/python-modules/pycfmodel/default.nix +++ b/pkgs/development/python-modules/pycfmodel/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pydantic -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pydantic, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-NLi94W99LhrBXNFItMfJczV9EZlgvmvkavrfDQJs0YU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pydantic - ]; + propagatedBuildInputs = [ pydantic ]; nativeCheckInputs = [ httpx @@ -44,9 +41,7 @@ buildPythonPackage rec { "test_resolve_booleans_different_properties_for_generic_resource" ]; - pythonImportsCheck = [ - "pycfmodel" - ]; + pythonImportsCheck = [ "pycfmodel" ]; meta = with lib; { description = "Model for Cloud Formation scripts"; diff --git a/pkgs/development/python-modules/pychannels/default.nix b/pkgs/development/python-modules/pychannels/default.nix index e7185f3697dc..48310b769912 100644 --- a/pkgs/development/python-modules/pychannels/default.nix +++ b/pkgs/development/python-modules/pychannels/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pychart/default.nix b/pkgs/development/python-modules/pychart/default.nix index aa9ef1c11c9b..c6fa67c0912e 100644 --- a/pkgs/development/python-modules/pychart/default.nix +++ b/pkgs/development/python-modules/pychart/default.nix @@ -1,11 +1,16 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, +}: buildPythonPackage rec { pname = "pychart"; version = "1.39"; format = "setuptools"; - disabled = ! isPy27; + disabled = !isPy27; src = fetchPypi { inherit pname version; diff --git a/pkgs/development/python-modules/pychm/default.nix b/pkgs/development/python-modules/pychm/default.nix index 175acf928256..6636f052b0a6 100644 --- a/pkgs/development/python-modules/pychm/default.nix +++ b/pkgs/development/python-modules/pychm/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, chmlib +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + chmlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pychromecast/default.nix b/pkgs/development/python-modules/pychromecast/default.nix index 5e4e971432ed..f14248b781b0 100644 --- a/pkgs/development/python-modules/pychromecast/default.nix +++ b/pkgs/development/python-modules/pychromecast/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, casttube -, fetchPypi -, pythonOlder -, protobuf -, setuptools -, wheel -, zeroconf +{ + lib, + buildPythonPackage, + casttube, + fetchPypi, + pythonOlder, + protobuf, + setuptools, + wheel, + zeroconf, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # no tests available doCheck = false; - pythonImportsCheck = [ - "pychromecast" - ]; + pythonImportsCheck = [ "pychromecast" ]; meta = with lib; { description = "Library for Python to communicate with the Google Chromecast"; diff --git a/pkgs/development/python-modules/pycketcasts/default.nix b/pkgs/development/python-modules/pycketcasts/default.nix index e7cc9fe856ed..7b4c51fcc6e8 100644 --- a/pkgs/development/python-modules/pycketcasts/default.nix +++ b/pkgs/development/python-modules/pycketcasts/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python-magic -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-magic, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pycketcasts" - ]; + pythonImportsCheck = [ "pycketcasts" ]; meta = with lib; { description = "Module to interact with PocketCast's unofficial API"; diff --git a/pkgs/development/python-modules/pyclimacell/default.nix b/pkgs/development/python-modules/pyclimacell/default.nix index f8f58b19ccd2..8b61e177f5db 100644 --- a/pkgs/development/python-modules/pyclimacell/default.nix +++ b/pkgs/development/python-modules/pyclimacell/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pytz +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyclimacell" ]; diff --git a/pkgs/development/python-modules/pyclip/default.nix b/pkgs/development/python-modules/pyclip/default.nix index 88fd8db0419e..65f9afc40903 100644 --- a/pkgs/development/python-modules/pyclip/default.nix +++ b/pkgs/development/python-modules/pyclip/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, pytest -, pythonOlder -, xclip -, xvfb-run +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + pytest, + pythonOlder, + xclip, + xvfb-run, }: buildPythonPackage rec { @@ -27,12 +28,12 @@ buildPythonPackage rec { --replace docs/README.md README.md ''; - nativeCheckInputs = [ - pytest - ] ++ lib.optionals stdenv.isLinux [ - xclip - xvfb-run - ]; + nativeCheckInputs = + [ pytest ] + ++ lib.optionals stdenv.isLinux [ + xclip + xvfb-run + ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/pyclipper/default.nix b/pkgs/development/python-modules/pyclipper/default.nix index b7b15c260fdb..edde76cd28d8 100644 --- a/pkgs/development/python-modules/pyclipper/default.nix +++ b/pkgs/development/python-modules/pyclipper/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools-scm -, cython -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools-scm, + cython, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { cython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyclipper" - ]; + pythonImportsCheck = [ "pyclipper" ]; meta = with lib; { description = "Cython wrapper for clipper library"; diff --git a/pkgs/development/python-modules/pycm/default.nix b/pkgs/development/python-modules/pycm/default.nix index 6b9bfac5d7d0..0c22e1ac607d 100644 --- a/pkgs/development/python-modules/pycm/default.nix +++ b/pkgs/development/python-modules/pycm/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, pytestCheckHook -, pythonOlder -, seaborn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + pytestCheckHook, + pythonOlder, + seaborn, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { seaborn ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Minor tolerance issues with Python 3.12; should be fixed in next release @@ -48,9 +47,7 @@ buildPythonPackage rec { --replace-fail '=get_requires()' '=[]' ''; - pythonImportsCheck = [ - "pycm" - ]; + pythonImportsCheck = [ "pycm" ]; meta = with lib; { description = "Multiclass confusion matrix library"; diff --git a/pkgs/development/python-modules/pycmarkgfm/default.nix b/pkgs/development/python-modules/pycmarkgfm/default.nix index 79700a7bdc7f..41aedf437fcf 100644 --- a/pkgs/development/python-modules/pycmarkgfm/default.nix +++ b/pkgs/development/python-modules/pycmarkgfm/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, cffi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + cffi, + pytest, +}: buildPythonPackage rec { pname = "pycmarkgfm"; diff --git a/pkgs/development/python-modules/pycocotools/default.nix b/pkgs/development/python-modules/pycocotools/default.nix index 6cba9e71a756..ccca116a7f0a 100644 --- a/pkgs/development/python-modules/pycocotools/default.nix +++ b/pkgs/development/python-modules/pycocotools/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, matplotlib +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + matplotlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index f17001efdda1..519d14215578 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, pythonOlder -, fetchPypi -, lib -, python -, pytestCheckHook +{ + buildPythonPackage, + pythonOlder, + fetchPypi, + lib, + python, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-QboOevyXUt+1PO1UieifgYa+AOWZ5xJmBpW3p1/yZj8="; }; - pythonImportsCheck = [ - "pycodestyle" - ]; + pythonImportsCheck = [ "pycodestyle" ]; - nativCheckInputs = [ - pytestCheckHook - ]; + nativCheckInputs = [ pytestCheckHook ]; # https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16 postCheck = '' @@ -38,8 +35,6 @@ buildPythonPackage rec { mainProgram = "pycodestyle"; homepage = "https://pycodestyle.pycqa.org/"; license = licenses.mit; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/pycoin/default.nix b/pkgs/development/python-modules/pycoin/default.nix index 4fe038b8ab2b..e12e19a3ac72 100644 --- a/pkgs/development/python-modules/pycoin/default.nix +++ b/pkgs/development/python-modules/pycoin/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, gnupg -, setuptools -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + gnupg, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pycollada/default.nix b/pkgs/development/python-modules/pycollada/default.nix index 4b66ba84d2da..8a27f29682b0 100644 --- a/pkgs/development/python-modules/pycollada/default.nix +++ b/pkgs/development/python-modules/pycollada/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, numpy, python-dateutil }: +{ + lib, + fetchPypi, + buildPythonPackage, + numpy, + python-dateutil, +}: buildPythonPackage rec { pname = "pycollada"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "sha256-86N1nMTOwdWekyqtdDmdvPVB0YhiqtkDx3AEDaQq8g4="; }; - propagatedBuildInputs = [ numpy python-dateutil ]; + propagatedBuildInputs = [ + numpy + python-dateutil + ]; # Some tests fail because they refer to test data files that don't exist # (upstream packaging issue) diff --git a/pkgs/development/python-modules/pycomfoconnect/default.nix b/pkgs/development/python-modules/pycomfoconnect/default.nix index a325583648ff..f80e6318bc9e 100644 --- a/pkgs/development/python-modules/pycomfoconnect/default.nix +++ b/pkgs/development/python-modules/pycomfoconnect/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, protobuf -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + protobuf, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-I/0vCgSEi6mgYg1fMH4Ha7PoonewtqYYsvXZT8y4rJE="; }; - propagatedBuildInputs = [ - protobuf - ]; + propagatedBuildInputs = [ protobuf ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pycomfoconnect" - ]; + pythonImportsCheck = [ "pycomfoconnect" ]; meta = with lib; { description = "Python module to interact with ComfoAir Q350/450/600 units"; diff --git a/pkgs/development/python-modules/pycomm3/default.nix b/pkgs/development/python-modules/pycomm3/default.nix index a6d219110bd0..ec80199a3af9 100644 --- a/pkgs/development/python-modules/pycomm3/default.nix +++ b/pkgs/development/python-modules/pycomm3/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-KdvmISMH2HHU8N665QevVw7q9Qs5CwjXxcWpLoziY/Y="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pycomm3" ]; diff --git a/pkgs/development/python-modules/pycontracts/default.nix b/pkgs/development/python-modules/pycontracts/default.nix index bc17546643d5..7286de19ab78 100644 --- a/pkgs/development/python-modules/pycontracts/default.nix +++ b/pkgs/development/python-modules/pycontracts/default.nix @@ -1,5 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi -, nose, pyparsing, decorator, six, future }: +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + pyparsing, + decorator, + six, + future, +}: buildPythonPackage rec { pname = "pycontracts"; @@ -12,7 +20,12 @@ buildPythonPackage rec { }; buildInputs = [ nose ]; - propagatedBuildInputs = [ pyparsing decorator six future ]; + propagatedBuildInputs = [ + pyparsing + decorator + six + future + ]; meta = with lib; { description = "Allows to declare constraints on function parameters and return values"; diff --git a/pkgs/development/python-modules/pycontrol4/default.nix b/pkgs/development/python-modules/pycontrol4/default.nix index e45c448bba0f..e2ced48ec29a 100644 --- a/pkgs/development/python-modules/pycontrol4/default.nix +++ b/pkgs/development/python-modules/pycontrol4/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, aiohttp -, xmltodict -, python-socketio -, websocket-client +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + aiohttp, + xmltodict, + python-socketio, + websocket-client, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace "python-socketio>=4,<5" "python-socketio>=4" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/pycoolmasternet-async/default.nix b/pkgs/development/python-modules/pycoolmasternet-async/default.nix index d8aa5760d5d9..2da04fea37a4 100644 --- a/pkgs/development/python-modules/pycoolmasternet-async/default.nix +++ b/pkgs/development/python-modules/pycoolmasternet-async/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - pythonImportsCheck = [ - "pycoolmasternet_async" - ]; + pythonImportsCheck = [ "pycoolmasternet_async" ]; meta = with lib; { description = "Python library to control CoolMasterNet HVAC bridges over asyncio"; diff --git a/pkgs/development/python-modules/pycosat/default.nix b/pkgs/development/python-modules/pycosat/default.nix index 536f98cb2733..4b633d197db1 100644 --- a/pkgs/development/python-modules/pycosat/default.nix +++ b/pkgs/development/python-modules/pycosat/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pycotap/default.nix b/pkgs/development/python-modules/pycotap/default.nix index 3f1007317abf..7b730f20f0d4 100644 --- a/pkgs/development/python-modules/pycotap/default.nix +++ b/pkgs/development/python-modules/pycotap/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pycotap"; diff --git a/pkgs/development/python-modules/pycountry/default.nix b/pkgs/development/python-modules/pycountry/default.nix index 75287c6cbf6b..5a4fd3fc1bb5 100644 --- a/pkgs/development/python-modules/pycountry/default.nix +++ b/pkgs/development/python-modules/pycountry/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch2 -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch2, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,7 +26,11 @@ buildPythonPackage rec { (fetchpatch2 { name = "fix-usage-of-importlib_metadata.patch"; url = "https://github.com/pycountry/pycountry/commit/824d2535833d061c04a1f1b6b964f42bb53bced2.patch"; - excludes = [ "HISTORY.txt" "poetry.lock" "pyproject.toml" ]; + excludes = [ + "HISTORY.txt" + "poetry.lock" + "pyproject.toml" + ]; hash = "sha256-U4fbZP++d6YfTJkVG3k2rBC8nOF9NflM6+ONlwBNu+g="; }) ]; @@ -34,17 +39,11 @@ buildPythonPackage rec { sed -i "/addopts/d" pytest.ini ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pycountry" - ]; + pythonImportsCheck = [ "pycountry" ]; meta = { homepage = "https://github.com/pycountry/pycountry"; diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index 4aa2c104d8a0..fbdb230e3a87 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, unittestCheckHook, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchPypi, + unittestCheckHook, + pythonOlder, +}: buildPythonPackage rec { pname = "pycparser"; @@ -13,7 +19,10 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; disabled = pythonOlder "3.8"; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; meta = with lib; { description = "C parser in Python"; diff --git a/pkgs/development/python-modules/pycrc/default.nix b/pkgs/development/python-modules/pycrc/default.nix index 71404dd4d5ad..146f0bf2600e 100644 --- a/pkgs/development/python-modules/pycrc/default.nix +++ b/pkgs/development/python-modules/pycrc/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pycrc"; diff --git a/pkgs/development/python-modules/pycrdt-websocket/default.nix b/pkgs/development/python-modules/pycrdt-websocket/default.nix index f713b194f79a..3ad166d57515 100644 --- a/pkgs/development/python-modules/pycrdt-websocket/default.nix +++ b/pkgs/development/python-modules/pycrdt-websocket/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hatchling -, anyio -, channels -, httpx-ws -, hypercorn -, pycrdt -, pytest-asyncio -, pytestCheckHook -, sqlite-anyio -, trio -, uvicorn -, websockets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatchling, + anyio, + channels, + httpx-ws, + hypercorn, + pycrdt, + pytest-asyncio, + pytestCheckHook, + sqlite-anyio, + trio, + uvicorn, + websockets, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-nkm1ZQ6bYBRDDoREovhEthDZoHApYxzAnwVgDgpWW/s="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ anyio @@ -41,14 +40,10 @@ buildPythonPackage rec { ]; optional-dependencies = { - django = [ - channels - ]; + django = [ channels ]; }; - pythonImportsCheck = [ - "pycrdt_websocket" - ]; + pythonImportsCheck = [ "pycrdt_websocket" ]; nativeCheckInputs = [ httpx-ws diff --git a/pkgs/development/python-modules/pycrdt/default.nix b/pkgs/development/python-modules/pycrdt/default.nix index c42fb0723df1..85a994d9f201 100644 --- a/pkgs/development/python-modules/pycrdt/default.nix +++ b/pkgs/development/python-modules/pycrdt/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, libiconv -, cargo -, rustPlatform -, rustc -, objsize -, pydantic -, pytestCheckHook -, y-py +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + libiconv, + cargo, + rustPlatform, + rustc, + objsize, + pydantic, + pytestCheckHook, + y-py, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { cp ${./Cargo.lock} Cargo.lock ''; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; nativeBuildInputs = [ cargo @@ -39,9 +38,7 @@ buildPythonPackage rec { rustc ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; pythonImportsCheck = [ "pycrdt" ]; diff --git a/pkgs/development/python-modules/pycritty/default.nix b/pkgs/development/python-modules/pycritty/default.nix index 1044d2e72e77..733cd500acbd 100644 --- a/pkgs/development/python-modules/pycritty/default.nix +++ b/pkgs/development/python-modules/pycritty/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, pyyaml }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pyyaml, +}: buildPythonPackage rec { pname = "pycritty"; diff --git a/pkgs/development/python-modules/pycrypto/default.nix b/pkgs/development/python-modules/pycrypto/default.nix index 72b91834eed7..72000acad17e 100644 --- a/pkgs/development/python-modules/pycrypto/default.nix +++ b/pkgs/development/python-modules/pycrypto/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { format = "setuptools"; # Cannot build wheel otherwise (zip 1980 issue) - SOURCE_DATE_EPOCH=315532800; + SOURCE_DATE_EPOCH = 315532800; # We need to have a dist-info folder, so let's create one with setuptools unpackPhase = '' diff --git a/pkgs/development/python-modules/pycryptodome/default.nix b/pkgs/development/python-modules/pycryptodome/default.nix index 358348d865d8..e9d1254ede32 100644 --- a/pkgs/development/python-modules/pycryptodome/default.nix +++ b/pkgs/development/python-modules/pycryptodome/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, gmp +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + gmp, }: let @@ -25,19 +26,18 @@ buildPythonPackage rec { --replace 'load_lib("gmp"' 'load_lib("${gmp}/lib/libgmp.so.10"' ''; - nativeCheckInputs = [ - test-vectors - ]; + nativeCheckInputs = [ test-vectors ]; - pythonImportsCheck = [ - "Crypto" - ]; + pythonImportsCheck = [ "Crypto" ]; meta = with lib; { description = "Self-contained cryptographic library"; homepage = "https://github.com/Legrandin/pycryptodome"; changelog = "https://github.com/Legrandin/pycryptodome/blob/v${version}/Changelog.rst"; - license = with licenses; [ bsd2 /* and */ asl20 ]; + license = with licenses; [ + bsd2 # and + asl20 + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/pycryptodome/vectors.nix b/pkgs/development/python-modules/pycryptodome/vectors.nix index 3b6e2844df4c..349738ee0b2a 100644 --- a/pkgs/development/python-modules/pycryptodome/vectors.nix +++ b/pkgs/development/python-modules/pycryptodome/vectors.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,21 +16,20 @@ buildPythonPackage rec { extension = "zip"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pycryptodome_test_vectors" - ]; + pythonImportsCheck = [ "pycryptodome_test_vectors" ]; meta = with lib; { description = "Test vectors for PyCryptodome cryptographic library"; homepage = "https://www.pycryptodome.org/"; - license = with licenses; [ bsd2 /* and */ asl20 ]; + license = with licenses; [ + bsd2 # and + asl20 + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/pycryptodomex/default.nix b/pkgs/development/python-modules/pycryptodomex/default.nix index 9d476ea4728c..b2ced090667d 100644 --- a/pkgs/development/python-modules/pycryptodomex/default.nix +++ b/pkgs/development/python-modules/pycryptodomex/default.nix @@ -7,7 +7,5 @@ touch .separate_namespace ''; - pythonImportsCheck = [ - "Cryptodome" - ]; + pythonImportsCheck = [ "Cryptodome" ]; })) diff --git a/pkgs/development/python-modules/pycsdr/default.nix b/pkgs/development/python-modules/pycsdr/default.nix index 08f03019dd78..53a8f25d78d8 100644 --- a/pkgs/development/python-modules/pycsdr/default.nix +++ b/pkgs/development/python-modules/pycsdr/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, csdr }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + csdr, +}: buildPythonPackage rec { pname = "pycsdr"; diff --git a/pkgs/development/python-modules/pyct/default.nix b/pkgs/development/python-modules/pyct/default.nix index 7f8f85b1b650..4bc528b64f95 100644 --- a/pkgs/development/python-modules/pyct/default.nix +++ b/pkgs/development/python-modules/pyct/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, param -, pytestCheckHook -, pythonAtLeast -, pyyaml -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + param, + pytestCheckHook, + pythonAtLeast, + pyyaml, + requests, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyct" - ]; + pythonImportsCheck = [ "pyct" ]; meta = with lib; { description = "ClI for Python common tasks for users"; diff --git a/pkgs/development/python-modules/pyctr/default.nix b/pkgs/development/python-modules/pyctr/default.nix index cf225369b395..1267085c86e8 100644 --- a/pkgs/development/python-modules/pyctr/default.nix +++ b/pkgs/development/python-modules/pyctr/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pycryptodomex +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pycryptodomex, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-fiDJWcypFabnUoS313f56ypDuDrLASHrkk0Em8bymmw="; }; - propagatedBuildInputs = [ - pycryptodomex - ]; + propagatedBuildInputs = [ pycryptodomex ]; - pythonImportsCheck = [ - "pyctr" - ]; + pythonImportsCheck = [ "pyctr" ]; meta = with lib; { description = "Python library to interact with Nintendo 3DS files"; diff --git a/pkgs/development/python-modules/pycuda/compyte.nix b/pkgs/development/python-modules/pycuda/compyte.nix index cfa685c1ac9c..b25844738aca 100644 --- a/pkgs/development/python-modules/pycuda/compyte.nix +++ b/pkgs/development/python-modules/pycuda/compyte.nix @@ -1,6 +1,4 @@ -{ mkDerivation -, fetchFromGitHub -}: +{ mkDerivation, fetchFromGitHub }: mkDerivation { pname = "compyte"; @@ -17,5 +15,4 @@ mkDerivation { mkdir -p $out cp -r * $out ''; - } diff --git a/pkgs/development/python-modules/pycuda/default.nix b/pkgs/development/python-modules/pycuda/default.nix index 129bd6269cd4..c436f0fc7520 100644 --- a/pkgs/development/python-modules/pycuda/default.nix +++ b/pkgs/development/python-modules/pycuda/default.nix @@ -1,24 +1,23 @@ -{ buildPythonPackage -, addOpenGLRunpath -, fetchPypi -, fetchFromGitHub -, mako -, boost -, numpy -, pytools -, pytest -, decorator -, appdirs -, six -, cudaPackages -, python -, mkDerivation -, lib +{ + buildPythonPackage, + addOpenGLRunpath, + fetchPypi, + fetchFromGitHub, + mako, + boost, + numpy, + pytools, + pytest, + decorator, + appdirs, + six, + cudaPackages, + python, + mkDerivation, + lib, }: let - compyte = import ./compyte.nix { - inherit mkDerivation fetchFromGitHub; - }; + compyte = import ./compyte.nix { inherit mkDerivation fetchFromGitHub; }; inherit (cudaPackages) cudatoolkit; in @@ -58,9 +57,7 @@ buildPythonPackage rec { py.test ''; - nativeBuildInputs = [ - addOpenGLRunpath - ]; + nativeBuildInputs = [ addOpenGLRunpath ]; propagatedBuildInputs = [ numpy @@ -81,5 +78,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ artuuge ]; }; - } diff --git a/pkgs/development/python-modules/pycups/default.nix b/pkgs/development/python-modules/pycups/default.nix index 12adc1f669af..79c1646b1059 100644 --- a/pkgs/development/python-modules/pycups/default.nix +++ b/pkgs/development/python-modules/pycups/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, cups, libiconv }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + cups, + libiconv, +}: buildPythonPackage rec { pname = "pycups"; diff --git a/pkgs/development/python-modules/pycurl/default.nix b/pkgs/development/python-modules/pycurl/default.nix index 3e966057bb24..38d46c58e7b1 100644 --- a/pkgs/development/python-modules/pycurl/default.nix +++ b/pkgs/development/python-modules/pycurl/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, isPyPy -, fetchPypi -, pythonOlder -, curl -, openssl -, bottle -, pytestCheckHook -, flaky +{ + lib, + stdenv, + buildPythonPackage, + isPyPy, + fetchPypi, + pythonOlder, + curl, + openssl, + bottle, + pytestCheckHook, + flaky, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { openssl ]; - nativeBuildInputs = [ - curl - ]; + nativeBuildInputs = [ curl ]; __darwinAllowLocalNetworking = true; @@ -53,38 +52,43 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - # tests that require network access - "test_keyfunction" - "test_keyfunction_bogus_return" - # OSError: tests/fake-curl/libcurl/with_openssl.so: cannot open shared object file: No such file or directory - "test_libcurl_ssl_openssl" - # OSError: tests/fake-curl/libcurl/with_nss.so: cannot open shared object file: No such file or directory - "test_libcurl_ssl_nss" - # OSError: tests/fake-curl/libcurl/with_gnutls.so: cannot open shared object file: No such file or directory - "test_libcurl_ssl_gnutls" - # AssertionError: assert 'crypto' in ['curl'] - "test_ssl_in_static_libs" - # tests that require curl with http3Support - "test_http_version_3" - # https://github.com/pycurl/pycurl/issues/819 - "test_multi_socket_select" - # https://github.com/pycurl/pycurl/issues/729 - "test_easy_pause_unpause" - "test_multi_socket_action" - # https://github.com/pycurl/pycurl/issues/822 - "test_request_with_verifypeer" - # https://github.com/pycurl/pycurl/issues/836 - "test_proxy_tlsauth" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # Fatal Python error: Segmentation fault - "cadata_test" - ]; + disabledTests = + [ + # tests that require network access + "test_keyfunction" + "test_keyfunction_bogus_return" + # OSError: tests/fake-curl/libcurl/with_openssl.so: cannot open shared object file: No such file or directory + "test_libcurl_ssl_openssl" + # OSError: tests/fake-curl/libcurl/with_nss.so: cannot open shared object file: No such file or directory + "test_libcurl_ssl_nss" + # OSError: tests/fake-curl/libcurl/with_gnutls.so: cannot open shared object file: No such file or directory + "test_libcurl_ssl_gnutls" + # AssertionError: assert 'crypto' in ['curl'] + "test_ssl_in_static_libs" + # tests that require curl with http3Support + "test_http_version_3" + # https://github.com/pycurl/pycurl/issues/819 + "test_multi_socket_select" + # https://github.com/pycurl/pycurl/issues/729 + "test_easy_pause_unpause" + "test_multi_socket_action" + # https://github.com/pycurl/pycurl/issues/822 + "test_request_with_verifypeer" + # https://github.com/pycurl/pycurl/issues/836 + "test_proxy_tlsauth" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # Fatal Python error: Segmentation fault + "cadata_test" + ]; meta = with lib; { homepage = "http://pycurl.io/"; description = "Python Interface To The cURL library"; - license = with licenses; [ lgpl2Only mit ]; + license = with licenses; [ + lgpl2Only + mit + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/pycxx/default.nix b/pkgs/development/python-modules/pycxx/default.nix index 5cc1056f8327..a99dd7445f2c 100644 --- a/pkgs/development/python-modules/pycxx/default.nix +++ b/pkgs/development/python-modules/pycxx/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchurl, python }: +{ + lib, + buildPythonPackage, + fetchurl, + python, +}: buildPythonPackage rec { pname = "pycxx"; @@ -10,7 +15,10 @@ buildPythonPackage rec { sha256 = "MUMU+/qsm92WENYFxfjQsSuR8/nE/asYG8HgIbaAaz0="; }; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; postInstall = '' mkdir -p $dev/include diff --git a/pkgs/development/python-modules/pycyphal/default.nix b/pkgs/development/python-modules/pycyphal/default.nix index 9067a3f06ad5..62d87d25a933 100644 --- a/pkgs/development/python-modules/pycyphal/default.nix +++ b/pkgs/development/python-modules/pycyphal/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, can -, cobs -, libpcap -, nunavut -, numpy -, pyserial -, pytestCheckHook -, pytest-asyncio -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + can, + cobs, + libpcap, + nunavut, + numpy, + pyserial, + pytestCheckHook, + pytest-asyncio, + setuptools, }: buildPythonPackage rec { @@ -34,24 +35,18 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - transport-can-pythoncan = [ - can - ] ++ can.optional-dependencies.serial; + transport-can-pythoncan = [ can ] ++ can.optional-dependencies.serial; transport-serial = [ cobs pyserial ]; - transport-udp = [ - libpcap - ]; + transport-udp = [ libpcap ]; }; nativeCheckInputs = [ pytestCheckHook pytest-asyncio - ] ++ builtins.foldl' (x: y: x ++ y) [ ] - (builtins.attrValues passthru.optional-dependencies) - ; + ] ++ builtins.foldl' (x: y: x ++ y) [ ] (builtins.attrValues passthru.optional-dependencies); preCheck = '' export HOME=$TMPDIR @@ -82,9 +77,7 @@ buildPythonPackage rec { "tests/transport" ]; - pythonImportsCheck = [ - "pycyphal" - ]; + pythonImportsCheck = [ "pycyphal" ]; meta = with lib; { description = "A full-featured implementation of the Cyphal protocol stack in Python"; diff --git a/pkgs/development/python-modules/pydaikin/default.nix b/pkgs/development/python-modules/pydaikin/default.nix index d669efbffbeb..c551f3db5588 100644 --- a/pkgs/development/python-modules/pydaikin/default.nix +++ b/pkgs/development/python-modules/pydaikin/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromBitbucket -, freezegun -, netifaces -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromBitbucket, + freezegun, + netifaces, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + urllib3, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pydaikin" - ]; + pythonImportsCheck = [ "pydaikin" ]; meta = with lib; { description = "Python Daikin HVAC appliances interface"; diff --git a/pkgs/development/python-modules/pydal/default.nix b/pkgs/development/python-modules/pydal/default.nix index 541d7124f11a..847744549dd9 100644 --- a/pkgs/development/python-modules/pydal/default.nix +++ b/pkgs/development/python-modules/pydal/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-xC0W/Knju205mu+yQ0wOcIYu4Tx1Q3hS9CGSBDLuX7E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests/*.py" @@ -40,12 +37,12 @@ buildPythonPackage rec { "--deselect=tests/validators.py::TestValidators::test_IS_IN_DB" ]; - pythonImportsCheck = ["pydal"]; + pythonImportsCheck = [ "pydal" ]; meta = with lib; { description = "Python Database Abstraction Layer"; homepage = "https://github.com/web2py/pydal"; - license = with licenses; [ bsd3 ] ; + license = with licenses; [ bsd3 ]; maintainers = with maintainers; [ wamserma ]; }; } diff --git a/pkgs/development/python-modules/pydanfossair/default.nix b/pkgs/development/python-modules/pydanfossair/default.nix index 226e5a1aa4ef..dd8a8d9c71af 100644 --- a/pkgs/development/python-modules/pydanfossair/default.nix +++ b/pkgs/development/python-modules/pydanfossair/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pydantic-compat/default.nix b/pkgs/development/python-modules/pydantic-compat/default.nix index 33ed206578ed..a9a9e781269b 100644 --- a/pkgs/development/python-modules/pydantic-compat/default.nix +++ b/pkgs/development/python-modules/pydantic-compat/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, git -, hatch-vcs -, hatchling -, importlib-metadata -, pydantic -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + git, + hatch-vcs, + hatchling, + importlib-metadata, + pydantic, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -36,13 +37,9 @@ buildPythonPackage rec { pydantic ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pydantic_compat" - ]; + pythonImportsCheck = [ "pydantic_compat" ]; meta = with lib; { description = "Compatibility layer for pydantic v1/v2"; diff --git a/pkgs/development/python-modules/pydantic-core/default.nix b/pkgs/development/python-modules/pydantic-core/default.nix index 6242c205ea70..cc9854b46853 100644 --- a/pkgs/development/python-modules/pydantic-core/default.nix +++ b/pkgs/development/python-modules/pydantic-core/default.nix @@ -1,17 +1,18 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, cargo -, rustPlatform -, rustc -, libiconv -, typing-extensions -, pytestCheckHook -, hypothesis -, pytest-timeout -, pytest-mock -, dirty-equals +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + cargo, + rustPlatform, + rustc, + libiconv, + typing-extensions, + pytestCheckHook, + hypothesis, + pytest-timeout, + pytest-mock, + dirty-equals, }: let @@ -27,9 +28,7 @@ let hash = "sha256-RXytujvx/23Z24TWpvnHdjJ4/dXqjs5uiavUmukaD9A="; }; - patches = [ - ./01-remove-benchmark-flags.patch - ]; + patches = [ ./01-remove-benchmark-flags.patch ]; cargoDeps = rustPlatform.fetchCargoTarball { inherit src; @@ -48,13 +47,9 @@ let typing-extensions ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - dependencies = [ - typing-extensions - ]; + dependencies = [ typing-extensions ]; pythonImportsCheck = [ "pydantic_core" ]; @@ -88,4 +83,5 @@ let maintainers = with maintainers; [ blaggacao ]; }; }; -in pydantic-core +in +pydantic-core diff --git a/pkgs/development/python-modules/pydantic-extra-types/default.nix b/pkgs/development/python-modules/pydantic-extra-types/default.nix index 7595ac0b1d57..0a9970552c81 100644 --- a/pkgs/development/python-modules/pydantic-extra-types/default.nix +++ b/pkgs/development/python-modules/pydantic-extra-types/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pydantic -, pendulum -, phonenumbers -, pycountry -, python-ulid -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pydantic, + pendulum, + phonenumbers, + pycountry, + python-ulid, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-XLVhoZ3+TfVYEuk/5fORaGpCBaB5NcuskWhHgt+llS0="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - pydantic - ]; + propagatedBuildInputs = [ pydantic ]; passthru.optional-dependencies = { all = [ @@ -41,9 +38,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "pydantic_extra_types" ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.all; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.all; meta = with lib; { changelog = "https://github.com/pydantic/pydantic-extra-types/blob/${src.rev}/HISTORY.md"; diff --git a/pkgs/development/python-modules/pydantic-scim/default.nix b/pkgs/development/python-modules/pydantic-scim/default.nix index b8ac4c729a69..a8ba4155bf97 100644 --- a/pkgs/development/python-modules/pydantic-scim/default.nix +++ b/pkgs/development/python-modules/pydantic-scim/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pydantic -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pydantic, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { --replace 'version=get_version(),' 'version="${version}",' ''; - propagatedBuildInputs = [ - pydantic - ] ++ pydantic.optional-dependencies.email; + propagatedBuildInputs = [ pydantic ] ++ pydantic.optional-dependencies.email; - pythonImportsCheck = [ - "pydanticscim" - ]; + pythonImportsCheck = [ "pydanticscim" ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/pydantic-settings/default.nix b/pkgs/development/python-modules/pydantic-settings/default.nix index 250c1b875630..15685c8c66bc 100644 --- a/pkgs/development/python-modules/pydantic-settings/default.nix +++ b/pkgs/development/python-modules/pydantic-settings/default.nix @@ -1,69 +1,69 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hatchling -, pydantic -, python-dotenv -, pytestCheckHook -, pytest-examples -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatchling, + pydantic, + python-dotenv, + pytestCheckHook, + pytest-examples, + pytest-mock, }: -let self = buildPythonPackage rec { - pname = "pydantic-settings"; - version = "2.2.1"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "pydantic-settings"; + version = "2.2.1"; + pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.8"; - src = fetchFromGitHub { - owner = "pydantic"; - repo = "pydantic-settings"; - rev = "refs/tags/v${version}"; - hash = "sha256-4o8LlIFVizoxb484lVT67e24jhtUl49otr1lX/2zZ4M="; - }; + src = fetchFromGitHub { + owner = "pydantic"; + repo = "pydantic-settings"; + rev = "refs/tags/v${version}"; + hash = "sha256-4o8LlIFVizoxb484lVT67e24jhtUl49otr1lX/2zZ4M="; + }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - pydantic - python-dotenv - ]; + propagatedBuildInputs = [ + pydantic + python-dotenv + ]; - pythonImportsCheck = [ "pydantic_settings" ]; + pythonImportsCheck = [ "pydantic_settings" ]; - nativeCheckInputs = [ - pytestCheckHook - pytest-examples - pytest-mock - ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-examples + pytest-mock + ]; - disabledTests = [ - # expected to fail - "test_docs_examples[docs/index.md:212-246]" - ]; + disabledTests = [ + # expected to fail + "test_docs_examples[docs/index.md:212-246]" + ]; - preCheck = '' - export HOME=$TMPDIR - ''; + preCheck = '' + export HOME=$TMPDIR + ''; - # ruff is a dependency of pytest-examples which is required to run the tests. - # We do not want all of the downstream packages that depend on pydantic-settings to also depend on ruff. - doCheck = false; - passthru.tests = { - pytest = self.overridePythonAttrs { - doCheck = true; + # ruff is a dependency of pytest-examples which is required to run the tests. + # We do not want all of the downstream packages that depend on pydantic-settings to also depend on ruff. + doCheck = false; + passthru.tests = { + pytest = self.overridePythonAttrs { doCheck = true; }; + }; + + meta = with lib; { + description = "Settings management using pydantic"; + homepage = "https://github.com/pydantic/pydantic-settings"; + license = licenses.mit; + broken = lib.versionOlder pydantic.version "2.0.0"; + maintainers = with maintainers; [ ]; }; }; - - meta = with lib; { - description = "Settings management using pydantic"; - homepage = "https://github.com/pydantic/pydantic-settings"; - license = licenses.mit; - broken = lib.versionOlder pydantic.version "2.0.0"; - maintainers = with maintainers; [ ]; - }; -}; in self +in +self diff --git a/pkgs/development/python-modules/pydantic-yaml-0/default.nix b/pkgs/development/python-modules/pydantic-yaml-0/default.nix index 74c44b255283..411b56e8ee3c 100644 --- a/pkgs/development/python-modules/pydantic-yaml-0/default.nix +++ b/pkgs/development/python-modules/pydantic-yaml-0/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, deprecated -, importlib-metadata -, pydantic_1 -, ruamel-yaml -, semver -, types-deprecated -, setuptools -, setuptools-scm -, pytest-mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + deprecated, + importlib-metadata, + pydantic_1, + ruamel-yaml, + semver, + types-deprecated, + setuptools, + setuptools-scm, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { types-deprecated ]; - pythonImportsCheck = [ - "pydantic_yaml" - ]; + pythonImportsCheck = [ "pydantic_yaml" ]; nativeCheckInputs = [ pytest-mock @@ -63,4 +62,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ jnsgruk ]; }; } - diff --git a/pkgs/development/python-modules/pydantic/1.nix b/pkgs/development/python-modules/pydantic/1.nix index 6078acc356ce..72c09d5cdcf9 100644 --- a/pkgs/development/python-modules/pydantic/1.nix +++ b/pkgs/development/python-modules/pydantic/1.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, cython_0 -, email-validator -, fetchFromGitHub -, pytest-mock -, pytest7CheckHook -, python-dotenv -, pythonAtLeast -, pythonOlder -, setuptools -, typing-extensions -, libxcrypt +{ + lib, + buildPythonPackage, + cython_0, + email-validator, + fetchFromGitHub, + pytest-mock, + pytest7CheckHook, + python-dotenv, + pythonAtLeast, + pythonOlder, + setuptools, + typing-extensions, + libxcrypt, }: buildPythonPackage rec { @@ -32,21 +33,13 @@ buildPythonPackage rec { cython_0 ]; - buildInputs = lib.optionals (pythonOlder "3.9") [ - libxcrypt - ]; + buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; passthru.optional-dependencies = { - dotenv = [ - python-dotenv - ]; - email = [ - email-validator - ]; + dotenv = [ python-dotenv ]; + email = [ email-validator ]; }; nativeCheckInputs = [ @@ -56,7 +49,8 @@ buildPythonPackage rec { pytestFlagsArray = [ # https://github.com/pydantic/pydantic/issues/4817 - "-W" "ignore::pytest.PytestReturnNotNoneWarning" + "-W" + "ignore::pytest.PytestReturnNotNoneWarning" ]; preCheck = '' diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index 59ec82ce829b..e9d181b65789 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, -# build-system -, hatchling -, hatch-fancy-pypi-readme + # build-system + hatchling, + hatch-fancy-pypi-readme, -# native dependencies -, libxcrypt + # native dependencies + libxcrypt, -# dependencies -, annotated-types -, pydantic-core -, typing-extensions + # dependencies + annotated-types, + pydantic-core, + typing-extensions, -# tests -, cloudpickle -, email-validator -, dirty-equals -, faker -, pytestCheckHook -, pytest-mock -, eval-type-backport + # tests + cloudpickle, + email-validator, + dirty-equals, + faker, + pytestCheckHook, + pytest-mock, + eval-type-backport, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { }) ]; - buildInputs = lib.optionals (pythonOlder "3.9") [ - libxcrypt - ]; + buildInputs = lib.optionals (pythonOlder "3.9") [ libxcrypt ]; build-system = [ hatch-fancy-pypi-readme @@ -65,9 +64,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - email = [ - email-validator - ]; + email = [ email-validator ]; }; nativeCheckInputs = diff --git a/pkgs/development/python-modules/pydata-google-auth/default.nix b/pkgs/development/python-modules/pydata-google-auth/default.nix index f24f2e78470b..da4d1ad65f3c 100644 --- a/pkgs/development/python-modules/pydata-google-auth/default.nix +++ b/pkgs/development/python-modules/pydata-google-auth/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, google-auth -, google-auth-oauthlib -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + google-auth, + google-auth-oauthlib, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-Wo+tXbzOuz/cW8GuWoSxLA/Lr2S9NMdePa8tIV39mbY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ google-auth @@ -30,9 +29,7 @@ buildPythonPackage rec { # tests require network access doCheck = false; - pythonImportsCheck = [ - "pydata_google_auth" - ]; + pythonImportsCheck = [ "pydata_google_auth" ]; meta = with lib; { description = "Helpers for authenticating to Google APIs"; diff --git a/pkgs/development/python-modules/pydata-sphinx-theme/default.nix b/pkgs/development/python-modules/pydata-sphinx-theme/default.nix index 38509d5ba2ed..25afee42bffd 100644 --- a/pkgs/development/python-modules/pydata-sphinx-theme/default.nix +++ b/pkgs/development/python-modules/pydata-sphinx-theme/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, sphinx -, accessible-pygments -, beautifulsoup4 -, docutils -, packaging -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + sphinx, + accessible-pygments, + beautifulsoup4, + docutils, + packaging, + typing-extensions, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "pydata_sphinx_theme" - ]; + pythonImportsCheck = [ "pydata_sphinx_theme" ]; meta = with lib; { description = "Bootstrap-based Sphinx theme from the PyData community"; diff --git a/pkgs/development/python-modules/pydateinfer/default.nix b/pkgs/development/python-modules/pydateinfer/default.nix index a2fb97236dfd..777e78efc9b1 100644 --- a/pkgs/development/python-modules/pydateinfer/default.nix +++ b/pkgs/development/python-modules/pydateinfer/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook -, pytz -, pyyaml -, argparse +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, + pytz, + pyyaml, + argparse, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-0gy7wfT/uMTmpdIF2OPGVeUh+4yqJSI2Ebif0Lf/DLM="; }; - propagatedBuildInputs = [ - pytz - ]; + propagatedBuildInputs = [ pytz ]; preCheck = "cd dateinfer"; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/pydbus/default.nix b/pkgs/development/python-modules/pydbus/default.nix index fc8965fd3538..aedc5d852ff0 100644 --- a/pkgs/development/python-modules/pydbus/default.nix +++ b/pkgs/development/python-modules/pydbus/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pygobject3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pygobject3, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { --replace "getargspec" "getfullargspec" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pygobject3 - ]; + propagatedBuildInputs = [ pygobject3 ]; pythonImportsCheck = [ "pydbus" diff --git a/pkgs/development/python-modules/pydeck/default.nix b/pkgs/development/python-modules/pydeck/default.nix index d5468492162b..e0c77c5a2ce1 100644 --- a/pkgs/development/python-modules/pydeck/default.nix +++ b/pkgs/development/python-modules/pydeck/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ipykernel -, ipywidgets -, jinja2 -, jupyter -, numpy -, pandas -, pytestCheckHook -, pythonOlder -, setuptools -, traitlets -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + ipykernel, + ipywidgets, + jinja2, + jupyter, + numpy, + pandas, + pytestCheckHook, + pythonOlder, + setuptools, + traitlets, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pydeconz/default.nix b/pkgs/development/python-modules/pydeconz/default.nix index f9de6f4ad880..40635ad93fcc 100644 --- a/pkgs/development/python-modules/pydeconz/default.nix +++ b/pkgs/development/python-modules/pydeconz/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, orjson -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + orjson, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pydeconz" - ]; + pythonImportsCheck = [ "pydeconz" ]; meta = with lib; { description = "Python library wrapping the Deconz REST API"; diff --git a/pkgs/development/python-modules/pydelijn/default.nix b/pkgs/development/python-modules/pydelijn/default.nix index 728160fe8d1f..be679c748b31 100644 --- a/pkgs/development/python-modules/pydelijn/default.nix +++ b/pkgs/development/python-modules/pydelijn/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytz +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pydelijn" - ]; + pythonImportsCheck = [ "pydelijn" ]; meta = with lib; { description = "Python package to retrieve realtime data of passages at stops of De Lijn"; diff --git a/pkgs/development/python-modules/pydenticon/default.nix b/pkgs/development/python-modules/pydenticon/default.nix index d0a17a0357d6..91fd500cbaca 100644 --- a/pkgs/development/python-modules/pydenticon/default.nix +++ b/pkgs/development/python-modules/pydenticon/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + mock, }: buildPythonPackage rec { @@ -15,12 +16,14 @@ buildPythonPackage rec { sha256 = "2ef363cdd6f4f0193ce62257486027e36884570f6140bbde51de72df321b77f1"; }; - propagatedBuildInputs = [ pillow mock ]; + propagatedBuildInputs = [ + pillow + mock + ]; meta = with lib; { homepage = "https://github.com/azaghal/pydenticon"; description = "Library for generating identicons. Port of Sigil (https://github.com/cupcake/sigil) with enhancements"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/pydeps/default.nix b/pkgs/development/python-modules/pydeps/default.nix index 0488e35a1be8..23f9353ac9ca 100644 --- a/pkgs/development/python-modules/pydeps/default.nix +++ b/pkgs/development/python-modules/pydeps/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, graphviz -, stdlib-list -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools -, toml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + graphviz, + stdlib-list, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, + toml, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-d6EeeNem+HfuipKF5ZOI48c11j0ozGrBP4XlqTx+fJ4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - graphviz - ]; + buildInputs = [ graphviz ]; propagatedBuildInputs = [ graphviz @@ -54,9 +51,7 @@ buildPythonPackage rec { "test_find_package_names" ]; - pythonImportsCheck = [ - "pydeps" - ]; + pythonImportsCheck = [ "pydeps" ]; meta = with lib; { description = "Python module dependency visualization"; diff --git a/pkgs/development/python-modules/pydes/default.nix b/pkgs/development/python-modules/pydes/default.nix index 13820649912b..60ed00802c87 100644 --- a/pkgs/development/python-modules/pydes/default.nix +++ b/pkgs/development/python-modules/pydes/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, +}: buildPythonPackage rec { pname = "pydes"; diff --git a/pkgs/development/python-modules/pydevccu/default.nix b/pkgs/development/python-modules/pydevccu/default.nix index 9dd93cd5fa62..9b8599a31b28 100644 --- a/pkgs/development/python-modules/pydevccu/default.nix +++ b/pkgs/development/python-modules/pydevccu/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pydevccu" - ]; + pythonImportsCheck = [ "pydevccu" ]; meta = with lib; { description = "HomeMatic CCU XML-RPC Server with fake devices"; diff --git a/pkgs/development/python-modules/pydevd/default.nix b/pkgs/development/python-modules/pydevd/default.nix index f603e9accfd0..840784222544 100644 --- a/pkgs/development/python-modules/pydevd/default.nix +++ b/pkgs/development/python-modules/pydevd/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, numpy -, psutil -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, trio -, untangle +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + numpy, + psutil, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + trio, + untangle, }: buildPythonPackage rec { @@ -22,15 +23,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "fabioz"; repo = "PyDev.Debugger"; - rev = "pydev_debugger_${lib.replaceStrings ["."] ["_"] version}"; + rev = "pydev_debugger_${lib.replaceStrings [ "." ] [ "_" ] version}"; hash = "sha256-aylmLN7lVUza2lt2K48rJsx3XatXPgPjcmPZ05raLX0="; }; __darwinAllowLocalNetworking = true; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ numpy @@ -40,39 +39,40 @@ buildPythonPackage rec { untangle ]; - disabledTests = [ - # Require network connection - "test_completion_sockets_and_messages" - "test_path_translation" - "test_attach_to_pid_no_threads" - "test_attach_to_pid_halted" - "test_remote_debugger_threads" - "test_path_translation_and_source_reference" - "test_attach_to_pid" - "test_terminate" - "test_gui_event_loop_custom" - # AssertionError: assert '/usr/bin/' == '/usr/bin' - # https://github.com/fabioz/PyDev.Debugger/issues/227 - "test_to_server_and_to_client" - # AssertionError pydevd_tracing.set_trace_to_threads(tracing_func) == 0 - "test_step_next_step_in_multi_threads" - "test_tracing_basic" - "test_tracing_other_threads" - # subprocess.CalledProcessError - "test_find_main_thread_id" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - "test_case_handled_and_unhandled_exception_generator" - "test_case_stop_async_iteration_exception" - "test_case_unhandled_exception_generator" - "test_function_breakpoints_async" - ] ++ lib.optionals stdenv.isDarwin [ - "test_multiprocessing_simple" - "test_evaluate_exception_trace" - ]; + disabledTests = + [ + # Require network connection + "test_completion_sockets_and_messages" + "test_path_translation" + "test_attach_to_pid_no_threads" + "test_attach_to_pid_halted" + "test_remote_debugger_threads" + "test_path_translation_and_source_reference" + "test_attach_to_pid" + "test_terminate" + "test_gui_event_loop_custom" + # AssertionError: assert '/usr/bin/' == '/usr/bin' + # https://github.com/fabioz/PyDev.Debugger/issues/227 + "test_to_server_and_to_client" + # AssertionError pydevd_tracing.set_trace_to_threads(tracing_func) == 0 + "test_step_next_step_in_multi_threads" + "test_tracing_basic" + "test_tracing_other_threads" + # subprocess.CalledProcessError + "test_find_main_thread_id" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + "test_case_handled_and_unhandled_exception_generator" + "test_case_stop_async_iteration_exception" + "test_case_unhandled_exception_generator" + "test_function_breakpoints_async" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_multiprocessing_simple" + "test_evaluate_exception_trace" + ]; - pythonImportsCheck = [ - "pydevd" - ]; + pythonImportsCheck = [ "pydevd" ]; meta = with lib; { description = "PyDev.Debugger (used in PyDev, PyCharm and VSCode Python)"; diff --git a/pkgs/development/python-modules/pydevtool/default.nix b/pkgs/development/python-modules/pydevtool/default.nix index c9a0d67fcebf..de29d377379b 100644 --- a/pkgs/development/python-modules/pydevtool/default.nix +++ b/pkgs/development/python-modules/pydevtool/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, setuptools -, buildPythonPackage -, doit +{ + lib, + fetchPypi, + setuptools, + buildPythonPackage, + doit, }: buildPythonPackage rec { @@ -15,17 +16,11 @@ buildPythonPackage rec { hash = "sha256-JeO6Tz0zzKwz7iuXdZlYSNSemzGLehRkd/tdUveG/Io="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - doit - ]; + propagatedBuildInputs = [ doit ]; - pythonImportsCheck = [ - "pydevtool" - ]; + pythonImportsCheck = [ "pydevtool" ]; meta = with lib; { homepage = "https://github.com/pydoit/pydevtool"; @@ -33,5 +28,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ doronbehar ]; }; - } diff --git a/pkgs/development/python-modules/pydexcom/default.nix b/pkgs/development/python-modules/pydexcom/default.nix index bd639205c111..254b8a06a72f 100644 --- a/pkgs/development/python-modules/pydexcom/default.nix +++ b/pkgs/development/python-modules/pydexcom/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -26,16 +27,12 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests are interacting with the Dexcom API doCheck = false; - pythonImportsCheck = [ - "pydexcom" - ]; + pythonImportsCheck = [ "pydexcom" ]; meta = with lib; { description = "Python API to interact with Dexcom Share service"; diff --git a/pkgs/development/python-modules/pydicom-seg/default.nix b/pkgs/development/python-modules/pydicom-seg/default.nix index 52708208d4c9..ecab789fa2a9 100644 --- a/pkgs/development/python-modules/pydicom-seg/default.nix +++ b/pkgs/development/python-modules/pydicom-seg/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, pytestCheckHook -, pythonRelaxDepsHook -, poetry-core -, jsonschema -, numpy -, pydicom -, simpleitk +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + pytestCheckHook, + pythonRelaxDepsHook, + poetry-core, + jsonschema, + numpy, + pydicom, + simpleitk, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { }) ]; - pythonRelaxDeps = [ - "jsonschema" - ]; + pythonRelaxDeps = [ "jsonschema" ]; nativeBuildInputs = [ poetry-core @@ -52,13 +51,9 @@ buildPythonPackage rec { simpleitk ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pydicom_seg" - ]; + pythonImportsCheck = [ "pydicom_seg" ]; meta = with lib; { description = "Medical segmentation file reading and writing"; diff --git a/pkgs/development/python-modules/pydicom/default.nix b/pkgs/development/python-modules/pydicom/default.nix index 6bcb0c42fa58..e2d86333c1cc 100644 --- a/pkgs/development/python-modules/pydicom/default.nix +++ b/pkgs/development/python-modules/pydicom/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, flit-core -, numpy -, pillow -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + flit-core, + numpy, + pillow, + pytestCheckHook, + pythonOlder, + setuptools, }: let @@ -29,7 +30,6 @@ let rev = "cbb9b2148bccf0f550e3758c07aca3d0e328e768"; hash = "sha256-nF/j7pfcEpWHjjsqqTtIkW8hCEbuQ3J4IxpRk0qc1CQ="; }; - in buildPythonPackage { inherit pname version src; @@ -42,9 +42,7 @@ buildPythonPackage { ./pillow-10.1.0-compat.patch ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ numpy @@ -52,9 +50,7 @@ buildPythonPackage { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Setting $HOME to prevent pytest to try to create a folder inside # /homeless-shelter which is read-only. @@ -65,20 +61,21 @@ buildPythonPackage { ln -s ${test_data}/data_store/data $HOME/.pydicom/data ''; - disabledTests = [ - # tries to remove a dicom inside $HOME/.pydicom/data/ and download it again - "test_fetch_data_files" - ] ++ lib.optionals stdenv.isAarch64 [ - # https://github.com/pydicom/pydicom/issues/1386 - "test_array" - ] ++ lib.optionals stdenv.isDarwin [ - # flaky, hard to reproduce failure outside hydra - "test_time_check" - ]; + disabledTests = + [ + # tries to remove a dicom inside $HOME/.pydicom/data/ and download it again + "test_fetch_data_files" + ] + ++ lib.optionals stdenv.isAarch64 [ + # https://github.com/pydicom/pydicom/issues/1386 + "test_array" + ] + ++ lib.optionals stdenv.isDarwin [ + # flaky, hard to reproduce failure outside hydra + "test_time_check" + ]; - pythonImportsCheck = [ - "pydicom" - ]; + pythonImportsCheck = [ "pydicom" ]; meta = with lib; { description = "Python package for working with DICOM files"; diff --git a/pkgs/development/python-modules/pydigiham/default.nix b/pkgs/development/python-modules/pydigiham/default.nix index a4e7f3db82b7..bfa7ba32e07b 100644 --- a/pkgs/development/python-modules/pydigiham/default.nix +++ b/pkgs/development/python-modules/pydigiham/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, digiham, csdr, pycsdr, codecserver }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + digiham, + csdr, + pycsdr, + codecserver, +}: buildPythonPackage rec { pname = "pydigiham"; @@ -13,7 +22,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ digiham ]; - buildInputs = [ codecserver pycsdr ]; + buildInputs = [ + codecserver + pycsdr + ]; # make pycsdr header files available preBuild = '' ln -s ${pycsdr}/include/${python.libPrefix}/pycsdr src/pycsdr diff --git a/pkgs/development/python-modules/pydiscourse/default.nix b/pkgs/development/python-modules/pydiscourse/default.nix index 01bce5630233..255c362aaaa3 100644 --- a/pkgs/development/python-modules/pydiscourse/default.nix +++ b/pkgs/development/python-modules/pydiscourse/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-KqJ6ag4owG7US5Q4Ygjq263ds1o/JhEJ3bNa8YecYtE="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytest-mock @@ -32,9 +31,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "pydiscourse" - ]; + pythonImportsCheck = [ "pydiscourse" ]; meta = with lib; { description = "A Python library for working with Discourse"; diff --git a/pkgs/development/python-modules/pydispatcher/default.nix b/pkgs/development/python-modules/pydispatcher/default.nix index 0d4ef3ce3f5e..7094534c1563 100644 --- a/pkgs/development/python-modules/pydispatcher/default.nix +++ b/pkgs/development/python-modules/pydispatcher/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,14 +16,11 @@ buildPythonPackage rec { hash = "sha256-t3fGrQgNwbrXSkwp1qRpFPpnAaxw+UsNZvvP3mL1vjE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://pydispatcher.sourceforge.net/"; description = "Signal-registration and routing infrastructure for use in multiple contexts"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/pydmd/default.nix b/pkgs/development/python-modules/pydmd/default.nix index 3cf1f14f70e2..f6a83e7c6ed9 100644 --- a/pkgs/development/python-modules/pydmd/default.nix +++ b/pkgs/development/python-modules/pydmd/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools -, future -, matplotlib -, numpy -, pytestCheckHook -, pytest-mock -, pythonOlder -, scipy -, ezyrb +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools, + future, + matplotlib, + numpy, + pytestCheckHook, + pytest-mock, + pythonOlder, + scipy, + ezyrb, }: let @@ -28,9 +29,7 @@ let hash = "sha256-vprvq3sl/eNtu4cqg0A4XV96dzUt0nOtPmfwEv0h+PI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ future @@ -45,16 +44,12 @@ let pytest-mock ]; - pytestFlagsArray = [ - "tests/test_dmdbase.py" - ]; + pytestFlagsArray = [ "tests/test_dmdbase.py" ]; - pythonImportsCheck = [ - "pydmd" - ]; + pythonImportsCheck = [ "pydmd" ]; passthru.tests = self.overrideAttrs (old: { - pytestFlagsArray = []; + pytestFlagsArray = [ ]; }); meta = with lib; { @@ -66,4 +61,5 @@ let broken = stdenv.hostPlatform.isAarch64; }; }; -in self +in +self diff --git a/pkgs/development/python-modules/pydocstyle/default.nix b/pkgs/development/python-modules/pydocstyle/default.nix index d8207e37b600..8e53cf086501 100644 --- a/pkgs/development/python-modules/pydocstyle/default.nix +++ b/pkgs/development/python-modules/pydocstyle/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch2 -, poetry-core -, snowballstemmer -, tomli -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch2, + poetry-core, + snowballstemmer, + tomli, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,28 +33,18 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace pyproject.toml \ --replace 'version = "0.0.0-dev"' 'version = "${version}"' ''; - propagatedBuildInputs = [ - snowballstemmer - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ snowballstemmer ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - passthru.optional-dependencies.toml = [ - tomli - ]; + passthru.optional-dependencies.toml = [ tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.toml; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.toml; disabledTestPaths = [ "src/tests/test_integration.py" # runs pip install diff --git a/pkgs/development/python-modules/pydocumentdb/default.nix b/pkgs/development/python-modules/pydocumentdb/default.nix index e2c075ae7f38..5c8eb0990fd0 100644 --- a/pkgs/development/python-modules/pydocumentdb/default.nix +++ b/pkgs/development/python-modules/pydocumentdb/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, lib -, fetchPypi -, six -, requests +{ + buildPythonPackage, + lib, + fetchPypi, + six, + requests, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { touch changelog.md ''; - propagatedBuildInputs = [ six requests ]; + propagatedBuildInputs = [ + six + requests + ]; # requires an active Azure Cosmos service doCheck = false; diff --git a/pkgs/development/python-modules/pydoe/default.nix b/pkgs/development/python-modules/pydoe/default.nix index 5767442bef25..04a943c4cb98 100644 --- a/pkgs/development/python-modules/pydoe/default.nix +++ b/pkgs/development/python-modules/pydoe/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, scipy -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + scipy, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pydoods/default.nix b/pkgs/development/python-modules/pydoods/default.nix index ff0872e42377..e74d54245d18 100644 --- a/pkgs/development/python-modules/pydoods/default.nix +++ b/pkgs/development/python-modules/pydoods/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "1brpcfj1iy9mhf2inla4gi681zlh7g4qvhr6vrprk6r693glpn3x"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pydot/default.nix b/pkgs/development/python-modules/pydot/default.nix index 94494842a9d0..524010a89a49 100644 --- a/pkgs/development/python-modules/pydot/default.nix +++ b/pkgs/development/python-modules/pydot/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, substituteAll -, graphviz -, python -, pytestCheckHook -, chardet -, pythonOlder -, pyparsing +{ + lib, + buildPythonPackage, + fetchPypi, + substituteAll, + graphviz, + python, + pytestCheckHook, + chardet, + pythonOlder, + pyparsing, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sha256 = "sha256-YCRq8hUSP6Bi8hzXkb5n3aI6bygN8J9okZ5jeh5PMjU="; }; - propagatedBuildInputs = [ - pyparsing - ]; + propagatedBuildInputs = [ pyparsing ]; nativeCheckInputs = [ chardet @@ -48,18 +47,14 @@ buildPythonPackage rec { --replace "path = os.path.join(test_dir, TESTS_DIR_1)" "path = os.path.join('test/', TESTS_DIR_1)" ''; - pytestFlagsArray = [ - "test/pydot_unittest.py" - ]; + pytestFlagsArray = [ "test/pydot_unittest.py" ]; disabledTests = [ # broken, fixed after 2.0.0 "test_graph_with_shapefiles" ]; - pythonImportsCheck = [ - "pydot" - ]; + pythonImportsCheck = [ "pydot" ]; meta = with lib; { description = "Allows to create both directed and non directed graphs from Python"; diff --git a/pkgs/development/python-modules/pydrive2/default.nix b/pkgs/development/python-modules/pydrive2/default.nix index 32bb5d78984f..f96380877ecc 100644 --- a/pkgs/development/python-modules/pydrive2/default.nix +++ b/pkgs/development/python-modules/pydrive2/default.nix @@ -1,17 +1,18 @@ -{ lib -, appdirs -, buildPythonPackage -, fetchPypi -, fsspec -, funcy -, google-api-python-client -, oauth2client -, pyopenssl -, pythonOlder -, pyyaml -, setuptools -, setuptools-scm -, tqdm +{ + lib, + appdirs, + buildPythonPackage, + fetchPypi, + fsspec, + funcy, + google-api-python-client, + oauth2client, + pyopenssl, + pythonOlder, + pyyaml, + setuptools, + setuptools-scm, + tqdm, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { # Tests require a account and network access doCheck = false; - pythonImportsCheck = [ - "pydrive2" - ]; + pythonImportsCheck = [ "pydrive2" ]; meta = with lib; { description = "Google Drive API Python wrapper library"; diff --git a/pkgs/development/python-modules/pydroid-ipcam/default.nix b/pkgs/development/python-modules/pydroid-ipcam/default.nix index 7013c70cdf5e..661081d1940b 100644 --- a/pkgs/development/python-modules/pydroid-ipcam/default.nix +++ b/pkgs/development/python-modules/pydroid-ipcam/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, yarl +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pydroid_ipcam" - ]; + pythonImportsCheck = [ "pydroid_ipcam" ]; meta = with lib; { description = "Python library for Android IP Webcam"; diff --git a/pkgs/development/python-modules/pydruid/default.nix b/pkgs/development/python-modules/pydruid/default.nix index 9ede441bd817..69ba702507b0 100644 --- a/pkgs/development/python-modules/pydruid/default.nix +++ b/pkgs/development/python-modules/pydruid/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, # required dependencies -, requests -, setuptools + requests, + setuptools, # optional dependencies -, pandas -, tornado -, sqlalchemy + pandas, + tornado, + sqlalchemy, # test dependencies -, pycurl -, pytestCheckHook + pycurl, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,22 +34,16 @@ buildPythonPackage rec { substituteInPlace setup.py --replace '"console_scripts": ["pydruid = pydruid.console:main"],' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook pycurl ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "pydruid" - ]; + pythonImportsCheck = [ "pydruid" ]; passthru = { optional-dependencies = { diff --git a/pkgs/development/python-modules/pydsdl/default.nix b/pkgs/development/python-modules/pydsdl/default.nix index b3dfed8c6cac..d74657c16784 100644 --- a/pkgs/development/python-modules/pydsdl/default.nix +++ b/pkgs/development/python-modules/pydsdl/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: - buildPythonPackage rec { +buildPythonPackage rec { pname = "pydsdl"; version = "1.18.0"; format = "setuptools"; @@ -26,9 +27,7 @@ # Module doesn't contain tests doCheck = false; - pythonImportsCheck = [ - "pydsdl" - ]; + pythonImportsCheck = [ "pydsdl" ]; meta = with lib; { description = "Library to process Cyphal DSDL"; diff --git a/pkgs/development/python-modules/pydub/default.nix b/pkgs/development/python-modules/pydub/default.nix index 7ec3da3531cf..4210e7663eb0 100644 --- a/pkgs/development/python-modules/pydub/default.nix +++ b/pkgs/development/python-modules/pydub/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, ffmpeg-full -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + ffmpeg-full, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ ffmpeg-full @@ -46,9 +45,7 @@ buildPythonPackage rec { "pydub.playback" ]; - pytestFlagsArray = [ - "test/test.py" - ]; + pytestFlagsArray = [ "test/test.py" ]; meta = with lib; { description = "Manipulate audio with a simple and easy high level interface"; diff --git a/pkgs/development/python-modules/pyduke-energy/default.nix b/pkgs/development/python-modules/pyduke-energy/default.nix index d0342f8cff68..4f668b9e79ae 100644 --- a/pkgs/development/python-modules/pyduke-energy/default.nix +++ b/pkgs/development/python-modules/pyduke-energy/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, jsonpickle -, paho-mqtt -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, python-dateutil -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + jsonpickle, + paho-mqtt, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + python-dateutil, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyduke_energy" - ]; + pythonImportsCheck = [ "pyduke_energy" ]; meta = with lib; { description = "Python module for the Duke Energy API"; diff --git a/pkgs/development/python-modules/pydyf/default.nix b/pkgs/development/python-modules/pydyf/default.nix index 1e9d2584a20f..218a3f35f847 100644 --- a/pkgs/development/python-modules/pydyf/default.nix +++ b/pkgs/development/python-modules/pydyf/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, ghostscript -, pillow -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + ghostscript, + pillow, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { --replace "--isort --flake8 --cov --no-cov-on-fail" "" ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ ghostscript @@ -35,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pydyf" - ]; + pythonImportsCheck = [ "pydyf" ]; meta = with lib; { description = "Low-level PDF generator written in Python and based on PDF specification 1.7"; diff --git a/pkgs/development/python-modules/pyebus/default.nix b/pkgs/development/python-modules/pyebus/default.nix index 8659f0a38e97..dd299aae5878 100644 --- a/pkgs/development/python-modules/pyebus/default.nix +++ b/pkgs/development/python-modules/pyebus/default.nix @@ -1,10 +1,11 @@ -{ lib -, anytree -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, poetry-core -, pythonOlder +{ + lib, + anytree, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-6ooOSJAIi8vYmCjDHnbMGQJfPqPmzA5thDSg+iM7T+8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - anytree - ]; + propagatedBuildInputs = [ anytree ]; # https://github.com/c0fec0de/pyebus/issues/3 doCheck = false; - pythonImportsCheck = [ - "pyebus" - ]; + pythonImportsCheck = [ "pyebus" ]; meta = with lib; { description = "Pythonic Interface to EBUS Daemon (ebusd)"; diff --git a/pkgs/development/python-modules/pyechonest/default.nix b/pkgs/development/python-modules/pyechonest/default.nix index 3b4f4620e146..c1a8766528d9 100644 --- a/pkgs/development/python-modules/pyechonest/default.nix +++ b/pkgs/development/python-modules/pyechonest/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, +}: buildPythonPackage rec { pname = "pyechonest"; diff --git a/pkgs/development/python-modules/pyeclib/default.nix b/pkgs/development/python-modules/pyeclib/default.nix index b367f680e505..30d5f357e44d 100644 --- a/pkgs/development/python-modules/pyeclib/default.nix +++ b/pkgs/development/python-modules/pyeclib/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, buildPythonPackage, fetchFromGitHub, liberasurecode, six }: +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + liberasurecode, + six, +}: buildPythonPackage rec { pname = "pyeclib"; @@ -21,12 +28,14 @@ buildPythonPackage rec { --replace '"Darwin"' '"macOS"' ''; - preBuild = let - ldLibraryPathEnvName = if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"; - in '' - # required for the custom _find_library function in setup.py - export ${ldLibraryPathEnvName}="${lib.makeLibraryPath [ liberasurecode ]}" - ''; + preBuild = + let + ldLibraryPathEnvName = if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH"; + in + '' + # required for the custom _find_library function in setup.py + export ${ldLibraryPathEnvName}="${lib.makeLibraryPath [ liberasurecode ]}" + ''; buildInputs = [ liberasurecode ]; diff --git a/pkgs/development/python-modules/pyecoforest/default.nix b/pkgs/development/python-modules/pyecoforest/default.nix index a116a3542089..de968de3cef6 100644 --- a/pkgs/development/python-modules/pyecoforest/default.nix +++ b/pkgs/development/python-modules/pyecoforest/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, respx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + respx, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { --replace-fail "--cov=pyecoforest --cov-report=term-missing:skip-covered" "" ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - httpx - ]; + dependencies = [ httpx ]; nativeCheckInputs = [ pytest-asyncio @@ -42,9 +39,7 @@ buildPythonPackage rec { respx ]; - pythonImportsCheck = [ - "pyecoforest" - ]; + pythonImportsCheck = [ "pyecoforest" ]; meta = with lib; { description = "Module for interacting with Ecoforest devices"; diff --git a/pkgs/development/python-modules/pyeconet/default.nix b/pkgs/development/python-modules/pyeconet/default.nix index d479564b763b..137ca9d57757 100644 --- a/pkgs/development/python-modules/pyeconet/default.nix +++ b/pkgs/development/python-modules/pyeconet/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, paho-mqtt -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + paho-mqtt, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-R6PA/i35vo253J4yowe2fPRZEqStAqmm98k81KDHLQk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ paho-mqtt @@ -33,9 +32,7 @@ buildPythonPackage rec { # Tests require credentials doCheck = false; - pythonImportsCheck = [ - "pyeconet" - ]; + pythonImportsCheck = [ "pyeconet" ]; meta = with lib; { description = "Python interface to the EcoNet API"; diff --git a/pkgs/development/python-modules/pyecowitt/default.nix b/pkgs/development/python-modules/pyecowitt/default.nix index b5f4a5fadbac..e39c70baca79 100644 --- a/pkgs/development/python-modules/pyecowitt/default.nix +++ b/pkgs/development/python-modules/pyecowitt/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { sha256 = "5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project thas no tests doCheck = false; - pythonImportsCheck = [ - "pyecowitt" - ]; + pythonImportsCheck = [ "pyecowitt" ]; meta = with lib; { description = "Python module for the EcoWitt Protocol"; diff --git a/pkgs/development/python-modules/pyedimax/default.nix b/pkgs/development/python-modules/pyedimax/default.nix index e96147ef67a0..350525b40286 100644 --- a/pkgs/development/python-modules/pyedimax/default.nix +++ b/pkgs/development/python-modules/pyedimax/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyee/default.nix b/pkgs/development/python-modules/pyee/default.nix index 281611c31bdd..18641a3b65c5 100644 --- a/pkgs/development/python-modules/pyee/default.nix +++ b/pkgs/development/python-modules/pyee/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pytest-asyncio -, pytest-trio -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, twisted -, typing-extensions -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytest-asyncio, + pytest-trio, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + twisted, + typing-extensions, + wheel, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ mock @@ -43,9 +42,7 @@ buildPythonPackage rec { twisted ]; - pythonImportsCheck = [ - "pyee" - ]; + pythonImportsCheck = [ "pyee" ]; meta = with lib; { description = "A port of Node.js's EventEmitter to Python"; diff --git a/pkgs/development/python-modules/pyefergy/default.nix b/pkgs/development/python-modules/pyefergy/default.nix index 87f2abda0c0b..847c595d5ef5 100644 --- a/pkgs/development/python-modules/pyefergy/default.nix +++ b/pkgs/development/python-modules/pyefergy/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, iso4217 -, pytest-asyncio -, pythonOlder -, pytz +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + iso4217, + pytest-asyncio, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -35,11 +36,9 @@ buildPythonPackage rec { ]; # Tests require network access - doCheck =false; + doCheck = false; - pythonImportsCheck = [ - "pyefergy" - ]; + pythonImportsCheck = [ "pyefergy" ]; meta = with lib; { description = "Python API library for Efergy energy meters"; diff --git a/pkgs/development/python-modules/pyeight/default.nix b/pkgs/development/python-modules/pyeight/default.nix index 3dec94efd3e9..6ccc5f099e4c 100644 --- a/pkgs/development/python-modules/pyeight/default.nix +++ b/pkgs/development/python-modules/pyeight/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pyeight" - ]; + pythonImportsCheck = [ "pyeight" ]; meta = with lib; { description = "Python library to interface with the Eight Sleep API"; diff --git a/pkgs/development/python-modules/pyelftools/default.nix b/pkgs/development/python-modules/pyelftools/default.nix index 85110fdf94aa..b9976b5d9102 100644 --- a/pkgs/development/python-modules/pyelftools/default.nix +++ b/pkgs/development/python-modules/pyelftools/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-kX89fMXqrEvhMAAjqKHzHmrYizKBt1uCWMOJtFNNhy4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; doCheck = stdenv.hostPlatform.system == "x86_64-linux" && stdenv.hostPlatform.isGnu; @@ -34,9 +33,7 @@ buildPythonPackage rec { ${python.interpreter} test/run_readelf_tests.py --parallel ''; - pythonImportsCheck = [ - "elftools" - ]; + pythonImportsCheck = [ "elftools" ]; meta = { description = "Python library for analyzing ELF files and DWARF debugging information"; @@ -49,7 +46,10 @@ buildPythonPackage rec { # See elftools/construct/{LICENSE,README} in the source code. mit ]; - maintainers = with lib.maintainers; [ igsha pamplemousse ]; + maintainers = with lib.maintainers; [ + igsha + pamplemousse + ]; mainProgram = "readelf.py"; }; } diff --git a/pkgs/development/python-modules/pyemby/default.nix b/pkgs/development/python-modules/pyemby/default.nix index 2646744d0bf8..4233a5a817bf 100644 --- a/pkgs/development/python-modules/pyemby/default.nix +++ b/pkgs/development/python-modules/pyemby/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyemd/default.nix b/pkgs/development/python-modules/pyemd/default.nix index 1fd61b054f67..b156aed9174a 100644 --- a/pkgs/development/python-modules/pyemd/default.nix +++ b/pkgs/development/python-modules/pyemd/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, cython -, oldest-supported-numpy -, packaging -, setuptools -, setuptools-scm -, wheel -, numpy -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + cython, + oldest-supported-numpy, + packaging, + setuptools, + setuptools-scm, + wheel, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A Python wrapper for Ofir Pele and Michael Werman's implementation of the Earth Mover's Distance"; diff --git a/pkgs/development/python-modules/pyemvue/default.nix b/pkgs/development/python-modules/pyemvue/default.nix index b6f42daac620..fece41ed7d08 100644 --- a/pkgs/development/python-modules/pyemvue/default.nix +++ b/pkgs/development/python-modules/pyemvue/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, hatchling + # build-system + hatchling, -# propagated modules -, requests -, python-dateutil -, pycognito -, typing-extensions + # propagated modules + requests, + python-dateutil, + pycognito, + typing-extensions, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-cgQARaGM6Jb2kEcG7HqPStRPkhHldJ7UbxQpxN6JbZE="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ requests diff --git a/pkgs/development/python-modules/pyenchant/default.nix b/pkgs/development/python-modules/pyenchant/default.nix index 448183cf0f58..d7661d9b24a0 100644 --- a/pkgs/development/python-modules/pyenchant/default.nix +++ b/pkgs/development/python-modules/pyenchant/default.nix @@ -1,8 +1,10 @@ -{ lib, stdenv -, buildPythonPackage -, isPy27 -, fetchPypi -, enchant2 +{ + lib, + stdenv, + buildPythonPackage, + isPy27, + fetchPypi, + enchant2, }: buildPythonPackage rec { @@ -18,20 +20,22 @@ buildPythonPackage rec { propagatedBuildInputs = [ enchant2 ]; - postPatch = let - libext = stdenv.hostPlatform.extensions.sharedLibrary; - in '' - # Use the $PYENCHANT_LIBRARY_PATH envvar lookup line to hard-code the - # location of the nix enchant-2 library into _enchant.py. - # - # Also, they hardcode a bad path for Darwin in their library search code; - # This code should never be hit, but in case it does, we don't want to have - # it "accidentally" work by pulling something from /opt. - substituteInPlace enchant/_enchant.py \ - --replace 'os.environ.get("PYENCHANT_LIBRARY_PATH")' \ - "'${enchant2}/lib/libenchant-2${libext}'" \ - --replace '/opt/local/lib/' "" - ''; + postPatch = + let + libext = stdenv.hostPlatform.extensions.sharedLibrary; + in + '' + # Use the $PYENCHANT_LIBRARY_PATH envvar lookup line to hard-code the + # location of the nix enchant-2 library into _enchant.py. + # + # Also, they hardcode a bad path for Darwin in their library search code; + # This code should never be hit, but in case it does, we don't want to have + # it "accidentally" work by pulling something from /opt. + substituteInPlace enchant/_enchant.py \ + --replace 'os.environ.get("PYENCHANT_LIBRARY_PATH")' \ + "'${enchant2}/lib/libenchant-2${libext}'" \ + --replace '/opt/local/lib/' "" + ''; # dictionaries needed for tests doCheck = false; @@ -41,5 +45,4 @@ buildPythonPackage rec { homepage = "https://github.com/pyenchant/pyenchant"; license = licenses.lgpl21; }; - } diff --git a/pkgs/development/python-modules/pyenvisalink/default.nix b/pkgs/development/python-modules/pyenvisalink/default.nix index 8ea5a09e0e4b..54195b8eba57 100644 --- a/pkgs/development/python-modules/pyenvisalink/default.nix +++ b/pkgs/development/python-modules/pyenvisalink/default.nix @@ -1,10 +1,11 @@ -{ lib -, async-timeout -, buildPythonPackage -, colorlog -, fetchPypi -, pyserial -, pythonOlder +{ + lib, + async-timeout, + buildPythonPackage, + colorlog, + fetchPypi, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Tests require an Envisalink device doCheck = false; - pythonImportsCheck = [ - "pyenvisalink" - ]; + pythonImportsCheck = [ "pyenvisalink" ]; meta = with lib; { description = "Python interface for Envisalink 2DS/3 Alarm API"; diff --git a/pkgs/development/python-modules/pyephember/default.nix b/pkgs/development/python-modules/pyephember/default.nix index 48cad7bc1954..45d9227d7b9d 100644 --- a/pkgs/development/python-modules/pyephember/default.nix +++ b/pkgs/development/python-modules/pyephember/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, paho-mqtt -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + paho-mqtt, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pyephember" - ]; + pythonImportsCheck = [ "pyephember" ]; meta = with lib; { description = "Python client to the EPH Control Systems Ember API"; diff --git a/pkgs/development/python-modules/pyepsg/default.nix b/pkgs/development/python-modules/pyepsg/default.nix index 0fb511e1c834..f7b7a3e11a6a 100644 --- a/pkgs/development/python-modules/pyepsg/default.nix +++ b/pkgs/development/python-modules/pyepsg/default.nix @@ -1,4 +1,9 @@ -{ buildPythonPackage, lib, fetchPypi, requests }: +{ + buildPythonPackage, + lib, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "pyepsg"; @@ -20,5 +25,4 @@ buildPythonPackage rec { homepage = "https://pyepsg.readthedocs.io/en/latest/"; maintainers = with maintainers; [ mredaelli ]; }; - } diff --git a/pkgs/development/python-modules/pyerfa/default.nix b/pkgs/development/python-modules/pyerfa/default.nix index fd7348f3ca59..68e5f7d97496 100644 --- a/pkgs/development/python-modules/pyerfa/default.nix +++ b/pkgs/development/python-modules/pyerfa/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, setuptools -, setuptools-scm -, liberfa -, packaging -, numpy -, pytestCheckHook -, pytest-doctestplus +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + setuptools, + setuptools-scm, + liberfa, + packaging, + numpy, + pytestCheckHook, + pytest-doctestplus, }: buildPythonPackage rec { @@ -33,12 +34,8 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - numpy - ]; - buildInputs = [ - liberfa - ]; + dependencies = [ numpy ]; + buildInputs = [ liberfa ]; preBuild = '' export PYERFA_USE_SYSTEM_LIBERFA=1 @@ -56,19 +53,17 @@ buildPythonPackage rec { preCheck = '' cd $out ''; - pythonImportsCheck = [ - "erfa" - ]; + pythonImportsCheck = [ "erfa" ]; meta = with lib; { description = "Python bindings for ERFA routines"; longDescription = '' - PyERFA is the Python wrapper for the ERFA library (Essential Routines - for Fundamental Astronomy), a C library containing key algorithms for - astronomy, which is based on the SOFA library published by the - International Astronomical Union (IAU). All C routines are wrapped as - Numpy universal functions, so that they can be called with scalar or - array inputs. + PyERFA is the Python wrapper for the ERFA library (Essential Routines + for Fundamental Astronomy), a C library containing key algorithms for + astronomy, which is based on the SOFA library published by the + International Astronomical Union (IAU). All C routines are wrapped as + Numpy universal functions, so that they can be called with scalar or + array inputs. ''; homepage = "https://github.com/liberfa/pyerfa"; license = licenses.bsd3; diff --git a/pkgs/development/python-modules/pyeverlights/default.nix b/pkgs/development/python-modules/pyeverlights/default.nix index 22183ddcea28..dd9abeca4f31 100644 --- a/pkgs/development/python-modules/pyeverlights/default.nix +++ b/pkgs/development/python-modules/pyeverlights/default.nix @@ -1,7 +1,8 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyevilgenius/default.nix b/pkgs/development/python-modules/pyevilgenius/default.nix index 079b1825440a..40d48342e57e 100644 --- a/pkgs/development/python-modules/pyevilgenius/default.nix +++ b/pkgs/development/python-modules/pyevilgenius/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, async-timeout -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + async-timeout, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no test doCheck = false; - pythonImportsCheck = [ - "pyevilgenius" - ]; + pythonImportsCheck = [ "pyevilgenius" ]; meta = with lib; { description = "Python SDK to interact with Evil Genius Labs devices"; diff --git a/pkgs/development/python-modules/pyevmasm/default.nix b/pkgs/development/python-modules/pyevmasm/default.nix index 581825f0d16b..c683c93143b2 100644 --- a/pkgs/development/python-modules/pyevmasm/default.nix +++ b/pkgs/development/python-modules/pyevmasm/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyexcel-io/default.nix b/pkgs/development/python-modules/pyexcel-io/default.nix index 3c9dd3b09b87..93244293adab 100644 --- a/pkgs/development/python-modules/pyexcel-io/default.nix +++ b/pkgs/development/python-modules/pyexcel-io/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lml -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + lml, + isPy3k, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-9ghL8a+l+/TGHPffRDcPpROCGvGIsC4+GbXvtm2Klp8="; }; - propagatedBuildInputs = [ - lml - ]; + propagatedBuildInputs = [ lml ]; # Tests depend on stuff that depends on this. doCheck = false; diff --git a/pkgs/development/python-modules/pyexcel-ods/default.nix b/pkgs/development/python-modules/pyexcel-ods/default.nix index 22339eb15bfe..646bd2e8adc7 100644 --- a/pkgs/development/python-modules/pyexcel-ods/default.nix +++ b/pkgs/development/python-modules/pyexcel-ods/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyexcel-io -, odfpy -, nose -, pyexcel -, pyexcel-xls -, psutil +{ + lib, + buildPythonPackage, + fetchPypi, + pyexcel-io, + odfpy, + nose, + pyexcel, + pyexcel-xls, + psutil, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyexcel-xls/default.nix b/pkgs/development/python-modules/pyexcel-xls/default.nix index 2188d25532ca..36aefa650bb5 100644 --- a/pkgs/development/python-modules/pyexcel-xls/default.nix +++ b/pkgs/development/python-modules/pyexcel-xls/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyexcel-io -, xlrd -, xlwt -, nose -, pyexcel -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + pyexcel-io, + xlrd, + xlwt, + nose, + pyexcel, + mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyexcel/default.nix b/pkgs/development/python-modules/pyexcel/default.nix index 6c35f7b10af5..439164698590 100644 --- a/pkgs/development/python-modules/pyexcel/default.nix +++ b/pkgs/development/python-modules/pyexcel/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, chardet -, lml -, pyexcel-io -, texttable +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + chardet, + lml, + pyexcel-io, + texttable, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { texttable ]; - pythonImportsCheck = [ - "pyexcel" - ]; + pythonImportsCheck = [ "pyexcel" ]; # Tests depend on pyexcel-xls & co. causing circular dependency. # https://github.com/pyexcel/pyexcel/blob/dev/tests/requirements.txt diff --git a/pkgs/development/python-modules/pyexiftool/default.nix b/pkgs/development/python-modules/pyexiftool/default.nix index e7240658ef33..36ed807a17bb 100644 --- a/pkgs/development/python-modules/pyexiftool/default.nix +++ b/pkgs/development/python-modules/pyexiftool/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, exiftool -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + exiftool, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,21 +28,20 @@ buildPythonPackage rec { 'DEFAULT_EXECUTABLE = "${lib.getExe exiftool}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "exiftool" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { changelog = "https://github.com/sylikc/pyexiftool/blob/${src.rev}/CHANGELOG.md"; description = "Python wrapper for exiftool"; homepage = "https://github.com/sylikc/pyexiftool"; - license = with lib.licenses; [ bsd3 /* or */ gpl3Plus ]; + license = with lib.licenses; [ + bsd3 # or + gpl3Plus + ]; maintainers = with lib.maintainers; [ dotlambda ]; }; } diff --git a/pkgs/development/python-modules/pyface/default.nix b/pkgs/development/python-modules/pyface/default.nix index fd0f1409ca75..c93c7d266f5a 100644 --- a/pkgs/development/python-modules/pyface/default.nix +++ b/pkgs/development/python-modules/pyface/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchPypi -, buildPythonPackage -, importlib-metadata -, importlib-resources -, setuptools -, traits -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + importlib-metadata, + importlib-resources, + setuptools, + traits, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-fhNhg0e3pkjtIM29T9GlFkj1AQKR815OD/G/cKcgy/g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ importlib-metadata @@ -32,9 +31,7 @@ buildPythonPackage rec { doCheck = false; # Needs X server - pythonImportsCheck = [ - "pyface" - ]; + pythonImportsCheck = [ "pyface" ]; meta = with lib; { description = "Traits-capable windowing framework"; diff --git a/pkgs/development/python-modules/pyfakefs/default.nix b/pkgs/development/python-modules/pyfakefs/default.nix index 6e31c1e2e236..8e49354362a1 100644 --- a/pkgs/development/python-modules/pyfakefs/default.nix +++ b/pkgs/development/python-modules/pyfakefs/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pandas -, pytestCheckHook -, undefined + # tests + pandas, + pytestCheckHook, + undefined, }: buildPythonPackage rec { @@ -25,26 +26,24 @@ buildPythonPackage rec { hash = "sha256-IMtR6GDC8/+DhZFirVE0u4sKHnqB3woYz8zEhi0Nncw="; }; - postPatch = '' - # test doesn't work in sandbox - substituteInPlace pyfakefs/tests/fake_filesystem_test.py \ - --replace "test_expand_root" "notest_expand_root" - substituteInPlace pyfakefs/tests/fake_os_test.py \ - --replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \ - --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows" - '' + (lib.optionalString stdenv.isDarwin '' - # this test fails on darwin due to case-insensitive file system - substituteInPlace pyfakefs/tests/fake_os_test.py \ - --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir" - ''); + postPatch = + '' + # test doesn't work in sandbox + substituteInPlace pyfakefs/tests/fake_filesystem_test.py \ + --replace "test_expand_root" "notest_expand_root" + substituteInPlace pyfakefs/tests/fake_os_test.py \ + --replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \ + --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows" + '' + + (lib.optionalString stdenv.isDarwin '' + # this test fails on darwin due to case-insensitive file system + substituteInPlace pyfakefs/tests/fake_os_test.py \ + --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir" + ''); - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "pyfakefs" - ]; + pythonImportsCheck = [ "pyfakefs" ]; nativeCheckInputs = [ pandas diff --git a/pkgs/development/python-modules/pyfakewebcam/default.nix b/pkgs/development/python-modules/pyfakewebcam/default.nix index 22e56a0a36c7..53b4434e3f70 100644 --- a/pkgs/development/python-modules/pyfakewebcam/default.nix +++ b/pkgs/development/python-modules/pyfakewebcam/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, numpy, opencv4 }: +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + opencv4, +}: buildPythonPackage rec { pname = "pyfakewebcam"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "152nglscxmv7600i1i2gahny5z0bybnqgq3npak8npb0lsnwxn1a"; }; - propagatedBuildInputs = [ numpy opencv4 ]; + propagatedBuildInputs = [ + numpy + opencv4 + ]; # No tests are available doCheck = false; diff --git a/pkgs/development/python-modules/pyfantom/default.nix b/pkgs/development/python-modules/pyfantom/default.nix index 106bfa8d893f..901a2be7484f 100644 --- a/pkgs/development/python-modules/pyfantom/default.nix +++ b/pkgs/development/python-modules/pyfantom/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchgit +{ + lib, + buildPythonPackage, + fetchgit, }: buildPythonPackage { @@ -21,5 +22,4 @@ buildPythonPackage { description = "Wrapper for the LEGO Mindstorms Fantom Driver"; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/pyfcm/default.nix b/pkgs/development/python-modules/pyfcm/default.nix index 997c9e186386..342b3b88976a 100644 --- a/pkgs/development/python-modules/pyfcm/default.nix +++ b/pkgs/development/python-modules/pyfcm/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, requests +{ + lib, + fetchFromGitHub, + buildPythonPackage, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyfftw/default.nix b/pkgs/development/python-modules/pyfftw/default.nix index cf5573c8c2b9..f7f5adede1d1 100644 --- a/pkgs/development/python-modules/pyfftw/default.nix +++ b/pkgs/development/python-modules/pyfftw/default.nix @@ -1,5 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi -, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython_0, dask }: +{ + lib, + buildPythonPackage, + fetchPypi, + fftw, + fftwFloat, + fftwLongDouble, + numpy, + scipy, + cython_0, + dask, +}: buildPythonPackage rec { version = "0.13.1"; @@ -15,9 +25,18 @@ buildPythonPackage rec { export CFLAGS="-I${fftw.dev}/include -I${fftwFloat.dev}/include -I${fftwLongDouble.dev}/include" ''; - buildInputs = [ fftw fftwFloat fftwLongDouble]; + buildInputs = [ + fftw + fftwFloat + fftwLongDouble + ]; - propagatedBuildInputs = [ numpy scipy cython_0 dask ]; + propagatedBuildInputs = [ + numpy + scipy + cython_0 + dask + ]; # Tests cannot import pyfftw. pyfftw works fine though. doCheck = false; @@ -26,6 +45,9 @@ buildPythonPackage rec { meta = with lib; { description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms"; homepage = "http://hgomersall.github.com/pyFFTW/"; - license = with licenses; [ bsd2 bsd3 ]; + license = with licenses; [ + bsd2 + bsd3 + ]; }; } diff --git a/pkgs/development/python-modules/pyfido/default.nix b/pkgs/development/python-modules/pyfido/default.nix index 8a092e7e934d..af48a9847301 100644 --- a/pkgs/development/python-modules/pyfido/default.nix +++ b/pkgs/development/python-modules/pyfido/default.nix @@ -1,7 +1,8 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyfiglet/default.nix b/pkgs/development/python-modules/pyfiglet/default.nix index 4226fca32f7f..20c448b36c64 100644 --- a/pkgs/development/python-modules/pyfiglet/default.nix +++ b/pkgs/development/python-modules/pyfiglet/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { version = "1.0.2"; @@ -15,7 +19,7 @@ buildPythonPackage rec { meta = with lib; { description = "FIGlet in pure Python"; mainProgram = "pyfiglet"; - license = licenses.gpl2Plus; + license = licenses.gpl2Plus; maintainers = with maintainers; [ thoughtpolice ]; }; } diff --git a/pkgs/development/python-modules/pyfireservicerota/default.nix b/pkgs/development/python-modules/pyfireservicerota/default.nix index fcdfdd0442d4..741b11edfcff 100644 --- a/pkgs/development/python-modules/pyfireservicerota/default.nix +++ b/pkgs/development/python-modules/pyfireservicerota/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch2 -, pdm-backend -, pytz -, oauthlib -, requests -, websocket-client +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch2, + pdm-backend, + pytz, + oauthlib, + requests, + websocket-client, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace-fail '"aiohttp_retry",' "" ''; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; propagatedBuildInputs = [ pytz diff --git a/pkgs/development/python-modules/pyflakes/default.nix b/pkgs/development/python-modules/pyflakes/default.nix index fab3c7d789b2..63edc75d16dc 100644 --- a/pkgs/development/python-modules/pyflakes/default.nix +++ b/pkgs/development/python-modules/pyflakes/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-ouCkkm9OrYob00uLTilqgWsTWfHhzaiZp7sa2C5liqk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyflakes" ]; diff --git a/pkgs/development/python-modules/pyflexit/default.nix b/pkgs/development/python-modules/pyflexit/default.nix index 6f1f582a931d..22190d150b40 100644 --- a/pkgs/development/python-modules/pyflexit/default.nix +++ b/pkgs/development/python-modules/pyflexit/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyflic/default.nix b/pkgs/development/python-modules/pyflic/default.nix index 4ac6d735742e..7e636607b0ed 100644 --- a/pkgs/development/python-modules/pyflic/default.nix +++ b/pkgs/development/python-modules/pyflic/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyflick/default.nix b/pkgs/development/python-modules/pyflick/default.nix index 437f08474873..f9f7f084e0be 100644 --- a/pkgs/development/python-modules/pyflick/default.nix +++ b/pkgs/development/python-modules/pyflick/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, aiohttp -, python-dateutil +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + aiohttp, + python-dateutil, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyfluidsynth/default.nix b/pkgs/development/python-modules/pyfluidsynth/default.nix index f037b3c4bada..838ecd29dbfa 100644 --- a/pkgs/development/python-modules/pyfluidsynth/default.nix +++ b/pkgs/development/python-modules/pyfluidsynth/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, numpy -, fluidsynth -, stdenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + numpy, + fluidsynth, + stdenv, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "fluidsynth" ]; diff --git a/pkgs/development/python-modules/pyflume/default.nix b/pkgs/development/python-modules/pyflume/default.nix index 4a49c8160a25..32f0016deed2 100644 --- a/pkgs/development/python-modules/pyflume/default.nix +++ b/pkgs/development/python-modules/pyflume/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pyjwt -, ratelimit -, requests -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pyjwt, + ratelimit, + requests, + requests-mock, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyflume" - ]; + pythonImportsCheck = [ "pyflume" ]; meta = with lib; { description = "Python module to work with Flume sensors"; diff --git a/pkgs/development/python-modules/pyfma/default.nix b/pkgs/development/python-modules/pyfma/default.nix index e0934dc34b89..b661edcc895d 100644 --- a/pkgs/development/python-modules/pyfma/default.nix +++ b/pkgs/development/python-modules/pyfma/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, numpy -, pybind11 -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + numpy, + pybind11, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,23 +23,13 @@ buildPythonPackage rec { sha256 = "12i68jj9n1qj9phjnj6f0kmfhlsd3fqjlk9p6d4gs008azw5m8yn"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pybind11 - ]; + buildInputs = [ pybind11 ]; - propagatedBuildInputs = [ - numpy - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ numpy ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyfma" ]; diff --git a/pkgs/development/python-modules/pyfnip/default.nix b/pkgs/development/python-modules/pyfnip/default.nix index 0dca398df7cc..fd829efbbd83 100644 --- a/pkgs/development/python-modules/pyfnip/default.nix +++ b/pkgs/development/python-modules/pyfnip/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyformlang/default.nix b/pkgs/development/python-modules/pyformlang/default.nix index 1f25eac53a9f..8747d55313eb 100644 --- a/pkgs/development/python-modules/pyformlang/default.nix +++ b/pkgs/development/python-modules/pyformlang/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, networkx -, numpy -, pydot -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + networkx, + numpy, + pydot, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { pydot ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyformlang" - ]; + pythonImportsCheck = [ "pyformlang" ]; meta = with lib; { description = "Framework for formal grammars"; diff --git a/pkgs/development/python-modules/pyfreedompro/default.nix b/pkgs/development/python-modules/pyfreedompro/default.nix index 9a18a3f84994..bbb476654714 100644 --- a/pkgs/development/python-modules/pyfreedompro/default.nix +++ b/pkgs/development/python-modules/pyfreedompro/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, aiohttp +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + aiohttp, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "92812070a0c74761fa0c8cac98ddbe0bca781c8de80e2b08dbd04492e831c172"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # upstream has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pyfribidi/default.nix b/pkgs/development/python-modules/pyfribidi/default.nix index a47dff132645..0a0826ee99c1 100644 --- a/pkgs/development/python-modules/pyfribidi/default.nix +++ b/pkgs/development/python-modules/pyfribidi/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, isPyPy -, six +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + isPyPy, + six, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { homepage = "https://github.com/pediapress/pyfribidi"; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/pyfritzhome/default.nix b/pkgs/development/python-modules/pyfritzhome/default.nix index 4118e780d3d0..72731b0d1a31 100644 --- a/pkgs/development/python-modules/pyfritzhome/default.nix +++ b/pkgs/development/python-modules/pyfritzhome/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-YzrRkFa4J3NXdc4W5CHrHvqSVJ8yBGtaf6gRqmiY7gI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyfritzhome" - ]; + pythonImportsCheck = [ "pyfritzhome" ]; meta = with lib; { description = "Python Library to access AVM FRITZ!Box homeautomation"; diff --git a/pkgs/development/python-modules/pyfronius/default.nix b/pkgs/development/python-modules/pyfronius/default.nix index 7176e6f48d45..7887c9f5f579 100644 --- a/pkgs/development/python-modules/pyfronius/default.nix +++ b/pkgs/development/python-modules/pyfronius/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-7GtY/6uuLe7K9T7xMVt2ytpA6MKVWnyEoLtA5dSMiH4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyfronius" - ]; + pythonImportsCheck = [ "pyfronius" ]; meta = with lib; { description = "Python module to communicate with Fronius Symo"; diff --git a/pkgs/development/python-modules/pyftgl/default.nix b/pkgs/development/python-modules/pyftgl/default.nix index 822c040c7e74..b286b3e4c88a 100644 --- a/pkgs/development/python-modules/pyftgl/default.nix +++ b/pkgs/development/python-modules/pyftgl/default.nix @@ -1,12 +1,18 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, boost, freetype, ftgl, libGLU, libGL -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + boost, + freetype, + ftgl, + libGLU, + libGL, + python, }: let pythonVersion = with lib.versions; "${major python.version}${minor python.version}"; - in buildPythonPackage rec { @@ -25,7 +31,13 @@ buildPythonPackage rec { sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py ''; - buildInputs = [ boost freetype ftgl libGLU libGL ]; + buildInputs = [ + boost + freetype + ftgl + libGLU + libGL + ]; meta = with lib; { description = "Python bindings for FTGL (FreeType for OpenGL)"; diff --git a/pkgs/development/python-modules/pyfttt/default.nix b/pkgs/development/python-modules/pyfttt/default.nix index e630fe2c4150..f31759aedc75 100644 --- a/pkgs/development/python-modules/pyfttt/default.nix +++ b/pkgs/development/python-modules/pyfttt/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "pyfttt"; diff --git a/pkgs/development/python-modules/pyfume/default.nix b/pkgs/development/python-modules/pyfume/default.nix index 5f3db44b0f11..7a0aac4c01f4 100644 --- a/pkgs/development/python-modules/pyfume/default.nix +++ b/pkgs/development/python-modules/pyfume/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fst-pso -, numpy -, pandas -, pythonOlder -, scipy -, setuptools -, simpful -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + fst-pso, + numpy, + pandas, + pythonOlder, + scipy, + setuptools, + simpful, + typing-extensions, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-8J9qhSaTlb/KiCjegmc8iaGaZOXJ0Pk1EquOTEUUtW0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ fst-pso @@ -40,9 +39,7 @@ buildPythonPackage rec { # Module has not test doCheck = false; - pythonImportsCheck = [ - "pyfume" - ]; + pythonImportsCheck = [ "pyfume" ]; meta = with lib; { description = "A Python package for fuzzy model estimation"; diff --git a/pkgs/development/python-modules/pyfuse3/default.nix b/pkgs/development/python-modules/pyfuse3/default.nix index 851b37bbfb9c..971551608979 100644 --- a/pkgs/development/python-modules/pyfuse3/default.nix +++ b/pkgs/development/python-modules/pyfuse3/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cython -, pkg-config -, setuptools -, fuse3 -, trio -, python -, pytestCheckHook -, pytest-trio -, which +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cython, + pkg-config, + setuptools, + fuse3, + trio, + python, + pytestCheckHook, + pytest-trio, + which, }: buildPythonPackage rec { @@ -66,7 +67,10 @@ buildPythonPackage rec { description = "Python 3 bindings for libfuse 3 with async I/O support"; homepage = "https://github.com/libfuse/pyfuse3"; license = licenses.lgpl2Plus; - maintainers = with maintainers; [ nyanloutre dotlambda ]; + maintainers = with maintainers; [ + nyanloutre + dotlambda + ]; changelog = "https://github.com/libfuse/pyfuse3/blob/${version}/Changes.rst"; }; } diff --git a/pkgs/development/python-modules/pyfxa/default.nix b/pkgs/development/python-modules/pyfxa/default.nix index 259370299db2..3332c711bfb3 100644 --- a/pkgs/development/python-modules/pyfxa/default.nix +++ b/pkgs/development/python-modules/pyfxa/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, grequests -, hawkauthlib -, mock -, pybrowserid -, pyjwt -, pytestCheckHook -, pythonOlder -, requests -, responses -, setuptools -, six +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + grequests, + hawkauthlib, + mock, + pybrowserid, + pyjwt, + pytestCheckHook, + pythonOlder, + requests, + responses, + setuptools, + six, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-DMFZl1hbYNaScOTWkAbK2nKti6wD5SS5A30q7TW5vO4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cryptography @@ -49,9 +48,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "fxa" - ]; + pythonImportsCheck = [ "fxa" ]; disabledTestPaths = [ # Requires network access diff --git a/pkgs/development/python-modules/pyfzf/default.nix b/pkgs/development/python-modules/pyfzf/default.nix index 3578f863fa48..296d2d11670e 100644 --- a/pkgs/development/python-modules/pyfzf/default.nix +++ b/pkgs/development/python-modules/pyfzf/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fzf -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fzf, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-w+ZjQGFd/lR2TiTHc2uQSJXORmzJJZXsr9BO4PIw/Co="; }; - propagatedBuildInputs = [ - fzf - ]; + propagatedBuildInputs = [ fzf ]; - pythonImportsCheck = [ - "pyfzf" - ]; + pythonImportsCheck = [ "pyfzf" ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pygal/default.nix b/pkgs/development/python-modules/pygal/default.nix index 6defbca5e5df..bed6aabe4057 100644 --- a/pkgs/development/python-modules/pygal/default.nix +++ b/pkgs/development/python-modules/pygal/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, importlib-metadata + # dependencies + importlib-metadata, -# optional-dependencies -, lxml -, cairosvg + # optional-dependencies + lxml, + cairosvg, -# tests -, pyquery -, pytestCheckHook + # tests + pyquery, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { --replace pytest-runner "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - importlib-metadata - ]; + propagatedBuildInputs = [ importlib-metadata ]; passthru.optional-dependencies = { lxml = [ lxml ]; diff --git a/pkgs/development/python-modules/pygame-ce/default.nix b/pkgs/development/python-modules/pygame-ce/default.nix index a476ecd58b85..588b87c166d1 100644 --- a/pkgs/development/python-modules/pygame-ce/default.nix +++ b/pkgs/development/python-modules/pygame-ce/default.nix @@ -1,25 +1,26 @@ -{ stdenv -, lib -, substituteAll -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, python -, pkg-config -, setuptools -, cython +{ + stdenv, + lib, + substituteAll, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + python, + pkg-config, + setuptools, + cython, -, AppKit -, fontconfig -, freetype -, libjpeg -, libpng -, libX11 -, portmidi -, SDL2 -, SDL2_image -, SDL2_mixer -, SDL2_ttf + AppKit, + fontconfig, + freetype, + libjpeg, + libpng, + libX11, + portmidi, + SDL2, + SDL2_image, + SDL2_mixer, + SDL2_ttf, }: buildPythonPackage rec { @@ -41,30 +42,36 @@ buildPythonPackage rec { patches = [ (substituteAll { src = ./fix-dependency-finding.patch; - buildinputs_include = builtins.toJSON (builtins.concatMap (dep: [ - "${lib.getDev dep}/" - "${lib.getDev dep}/include" - "${lib.getDev dep}/include/SDL2" - ]) buildInputs); - buildinputs_lib = builtins.toJSON (builtins.concatMap (dep: [ - "${lib.getLib dep}/" - "${lib.getLib dep}/lib" - ]) buildInputs); + buildinputs_include = builtins.toJSON ( + builtins.concatMap (dep: [ + "${lib.getDev dep}/" + "${lib.getDev dep}/include" + "${lib.getDev dep}/include/SDL2" + ]) buildInputs + ); + buildinputs_lib = builtins.toJSON ( + builtins.concatMap (dep: [ + "${lib.getLib dep}/" + "${lib.getLib dep}/lib" + ]) buildInputs + ); }) # Skip tests that should be disabled without video driver ./skip-surface-tests.patch ]; - postPatch = '' - substituteInPlace buildconfig/config_{unix,darwin}.py \ - --replace-fail 'from distutils' 'from setuptools._distutils' - substituteInPlace src_py/sysfont.py \ - --replace-fail 'path="fc-list"' 'path="${fontconfig}/bin/fc-list"' \ - --replace-fail /usr/X11/bin/fc-list ${fontconfig}/bin/fc-list - '' + lib.optionalString stdenv.isDarwin '' - # flaky - rm test/system_test.py - ''; + postPatch = + '' + substituteInPlace buildconfig/config_{unix,darwin}.py \ + --replace-fail 'from distutils' 'from setuptools._distutils' + substituteInPlace src_py/sysfont.py \ + --replace-fail 'path="fc-list"' 'path="${fontconfig}/bin/fc-list"' \ + --replace-fail /usr/X11/bin/fc-list ${fontconfig}/bin/fc-list + '' + + lib.optionalString stdenv.isDarwin '' + # flaky + rm test/system_test.py + ''; nativeBuildInputs = [ pkg-config @@ -82,19 +89,19 @@ buildPythonPackage rec { SDL2_image SDL2_mixer SDL2_ttf - ] ++ lib.optionals stdenv.isDarwin [ - AppKit - ]; + ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; preConfigure = '' ${python.pythonOnBuildForHost.interpreter} buildconfig/config.py ''; - env = { - SDL_CONFIG = "${SDL2.dev}/bin/sdl2-config"; - } // lib.optionalAttrs stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; - }; + env = + { + SDL_CONFIG = "${SDL2.dev}/bin/sdl2-config"; + } + // lib.optionalAttrs stdenv.cc.isClang { + NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types"; + }; preCheck = '' export HOME=$(mktemp -d) @@ -109,9 +116,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "pygame" - ]; + pythonImportsCheck = [ "pygame" ]; meta = with lib; { description = "Pygame Community Edition (CE) - library for multimedia application built on SDL"; diff --git a/pkgs/development/python-modules/pygame-gui/default.nix b/pkgs/development/python-modules/pygame-gui/default.nix index e74448a30768..f55ed21d2e3e 100644 --- a/pkgs/development/python-modules/pygame-gui/default.nix +++ b/pkgs/development/python-modules/pygame-gui/default.nix @@ -1,11 +1,12 @@ -{ lib -, pkgs -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pygame-ce -, python-i18n -, pytestCheckHook +{ + lib, + pkgs, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pygame-ce, + python-i18n, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-PVNi/I174AyEEjc+N2UGtgOYSGAgVQbqrKkWZnjOxFY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pygame-ce @@ -55,14 +54,15 @@ buildPythonPackage rec { "test_process_event_text_ctrl_x" ]; - disabledTestPaths = [ - "tests/test_performance/test_text_performance.py" - ]; + disabledTestPaths = [ "tests/test_performance/test_text_performance.py" ]; meta = with lib; { description = "A GUI system for pygame"; homepage = "https://github.com/MyreMylar/pygame_gui"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ emilytrau pbsds ]; + maintainers = with maintainers; [ + emilytrau + pbsds + ]; }; } diff --git a/pkgs/development/python-modules/pygame-sdl2/default.nix b/pkgs/development/python-modules/pygame-sdl2/default.nix index 8d8c5dee83a6..2ef0a891790b 100644 --- a/pkgs/development/python-modules/pygame-sdl2/default.nix +++ b/pkgs/development/python-modules/pygame-sdl2/default.nix @@ -59,7 +59,10 @@ buildPythonPackage { meta = { description = "A reimplementation of parts of pygame API using SDL2"; homepage = "https://github.com/renpy/pygame_sdl2"; - license = with lib.licenses; [ lgpl2 zlib ]; + license = with lib.licenses; [ + lgpl2 + zlib + ]; maintainers = with lib.maintainers; [ raskin ]; }; } diff --git a/pkgs/development/python-modules/pygame/default.nix b/pkgs/development/python-modules/pygame/default.nix index fca187c8cc58..65315b3243b8 100644 --- a/pkgs/development/python-modules/pygame/default.nix +++ b/pkgs/development/python-modules/pygame/default.nix @@ -1,31 +1,32 @@ -{ stdenv -, lib -, substituteAll -, fetchpatch -, fetchFromGitHub -, buildPythonPackage -, pythonOlder +{ + stdenv, + lib, + substituteAll, + fetchpatch, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, -# build-system -, cython -, setuptools -, pkg-config + # build-system + cython, + setuptools, + pkg-config, -# native dependencies -, AppKit -, fontconfig -, freetype -, libjpeg -, libpng -, libX11 -, portmidi -, SDL2 -, SDL2_image -, SDL2_mixer -, SDL2_ttf + # native dependencies + AppKit, + fontconfig, + freetype, + libjpeg, + libpng, + libX11, + portmidi, + SDL2, + SDL2_image, + SDL2_mixer, + SDL2_ttf, -# tests -, python + # tests + python, }: buildPythonPackage rec { @@ -50,15 +51,19 @@ buildPythonPackage rec { # Patch pygame's dependency resolution to let it find build inputs (substituteAll { src = ./fix-dependency-finding.patch; - buildinputs_include = builtins.toJSON (builtins.concatMap (dep: [ - "${lib.getDev dep}/" - "${lib.getDev dep}/include" - "${lib.getDev dep}/include/SDL2" - ]) buildInputs); - buildinputs_lib = builtins.toJSON (builtins.concatMap (dep: [ - "${lib.getLib dep}/" - "${lib.getLib dep}/lib" - ]) buildInputs); + buildinputs_include = builtins.toJSON ( + builtins.concatMap (dep: [ + "${lib.getDev dep}/" + "${lib.getDev dep}/include" + "${lib.getDev dep}/include/SDL2" + ]) buildInputs + ); + buildinputs_lib = builtins.toJSON ( + builtins.concatMap (dep: [ + "${lib.getLib dep}/" + "${lib.getLib dep}/lib" + ]) buildInputs + ); }) # Skip tests that should be disabled without video driver ./skip-surface-tests.patch @@ -94,9 +99,7 @@ buildPythonPackage rec { SDL2_image SDL2_mixer SDL2_ttf - ] ++ lib.optionals stdenv.isDarwin [ - AppKit - ]; + ] ++ lib.optionals stdenv.isDarwin [ AppKit ]; preConfigure = '' ${python.pythonOnBuildForHost.interpreter} buildconfig/config.py diff --git a/pkgs/development/python-modules/pygatt/default.nix b/pkgs/development/python-modules/pygatt/default.nix index 67a7fea6b334..fd9b7521e25e 100644 --- a/pkgs/development/python-modules/pygatt/default.nix +++ b/pkgs/development/python-modules/pygatt/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pynose -, pexpect -, pyserial -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pynose, + pexpect, + pyserial, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -34,17 +35,11 @@ buildPythonPackage rec { --replace-fail "assertEquals" "assertEqual" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pyserial - ]; + dependencies = [ pyserial ]; - passthru.optional-dependencies.GATTTOOL = [ - pexpect - ]; + passthru.optional-dependencies.GATTTOOL = [ pexpect ]; nativeBuildInputs = [ # For cross compilation the doCheck is false and therefor the @@ -58,15 +53,16 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.GATTTOOL; - pythonImportsCheck = [ - "pygatt" - ]; + pythonImportsCheck = [ "pygatt" ]; meta = with lib; { description = "Python wrapper the BGAPI for accessing Bluetooth LE Devices"; homepage = "https://github.com/peplin/pygatt"; changelog = "https://github.com/peplin/pygatt/blob/v${version}/CHANGELOG.rst"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/pygccxml/default.nix b/pkgs/development/python-modules/pygccxml/default.nix index 0d9b12edec7d..d079ff5e1d0c 100644 --- a/pkgs/development/python-modules/pygccxml/default.nix +++ b/pkgs/development/python-modules/pygccxml/default.nix @@ -1,10 +1,11 @@ -{ lib -, castxml -, fetchFromGitHub -, buildPythonPackage -, llvmPackages -, pythonOlder -, setuptools +{ + lib, + castxml, + fetchFromGitHub, + buildPythonPackage, + llvmPackages, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-wHZy2BG3h+OMTvIAPtLlq1vsW5V/TqZdnzBJ9VipMiQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ castxml diff --git a/pkgs/development/python-modules/pygdbmi/default.nix b/pkgs/development/python-modules/pygdbmi/default.nix index e7df202704e4..429222e76a2e 100644 --- a/pkgs/development/python-modules/pygdbmi/default.nix +++ b/pkgs/development/python-modules/pygdbmi/default.nix @@ -1,9 +1,10 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, gdb -, pytest +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + gdb, + pytest, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-JqEDN8Pg/JttyYQbwkxKkLYuxVnvV45VlClD23eaYyc="; }; - nativeCheckInputs = [ gdb pytest ]; + nativeCheckInputs = [ + gdb + pytest + ]; # tests require gcc for some reason doCheck = !stdenv.hostPlatform.isDarwin; diff --git a/pkgs/development/python-modules/pygeoip/default.nix b/pkgs/development/python-modules/pygeoip/default.nix index 66d7140f38e0..b4bdc7c405e7 100644 --- a/pkgs/development/python-modules/pygeoip/default.nix +++ b/pkgs/development/python-modules/pygeoip/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + nose, +}: buildPythonPackage rec { pname = "pygeoip"; diff --git a/pkgs/development/python-modules/pygeos/default.nix b/pkgs/development/python-modules/pygeos/default.nix index 298d4bdff7fe..ebb90ee9fef7 100644 --- a/pkgs/development/python-modules/pygeos/default.nix +++ b/pkgs/development/python-modules/pygeos/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, geos_3_11 -, pytestCheckHook -, cython_0 -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + python, + geos_3_11, + pytestCheckHook, + cython_0, + numpy, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { cython_0 ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; # The cythonized extensions are required to exist in the pygeos/ directory # for the package to function. Therefore override of buildPhase was @@ -35,13 +34,9 @@ buildPythonPackage rec { ${python.pythonOnBuildForHost.interpreter} setup.py bdist_wheel ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pygeos" - ]; + pythonImportsCheck = [ "pygeos" ]; meta = with lib; { description = "Wraps GEOS geometry functions in numpy ufuncs"; diff --git a/pkgs/development/python-modules/pygetwindow/default.nix b/pkgs/development/python-modules/pygetwindow/default.nix index 2969fe850d48..fbbbce865c80 100644 --- a/pkgs/development/python-modules/pygetwindow/default.nix +++ b/pkgs/development/python-modules/pygetwindow/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyrect +{ + lib, + buildPythonPackage, + fetchPypi, + pyrect, }: buildPythonPackage rec { pname = "pygetwindow"; @@ -17,9 +18,7 @@ buildPythonPackage rec { # This lib officially only works completely on Windows and partially on MacOS but pyautogui requires it # pythonImportsCheck = [ "pygetwindow" ]; - propagatedBuildInputs = [ - pyrect - ]; + propagatedBuildInputs = [ pyrect ]; meta = with lib; { description = "A simple, cross-platform module for obtaining GUI information on applications' windows."; diff --git a/pkgs/development/python-modules/pygit2/default.nix b/pkgs/development/python-modules/pygit2/default.nix index 1e17f95e54a7..7915a4bc4bfa 100644 --- a/pkgs/development/python-modules/pygit2/default.nix +++ b/pkgs/development/python-modules/pygit2/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, cacert -, cached-property -, cffi -, fetchPypi -, isPyPy -, libgit2 -, pycparser -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + cacert, + cached-property, + cffi, + fetchPypi, + isPyPy, + libgit2, + pycparser, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -29,28 +30,18 @@ buildPythonPackage rec { export DYLD_LIBRARY_PATH="${libgit2}/lib" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - libgit2 - ]; + buildInputs = [ libgit2 ]; propagatedBuildInputs = [ cached-property pycparser - ] ++ lib.optionals (!isPyPy) [ - cffi - ]; + ] ++ lib.optionals (!isPyPy) [ cffi ]; - propagatedNativeBuildInputs = lib.optionals (!isPyPy) [ - cffi - ]; + propagatedNativeBuildInputs = lib.optionals (!isPyPy) [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # Disable tests that require networking @@ -63,9 +54,7 @@ buildPythonPackage rec { # https://github.com/NixOS/nixpkgs/pull/72544#issuecomment-582674047 SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; - pythonImportsCheck = [ - "pygit2" - ]; + pythonImportsCheck = [ "pygit2" ]; meta = with lib; { description = "A set of Python bindings to the libgit2 shared library"; diff --git a/pkgs/development/python-modules/pygitguardian/default.nix b/pkgs/development/python-modules/pygitguardian/default.nix index 1325a31fe133..2310bfb1f77d 100644 --- a/pkgs/development/python-modules/pygitguardian/default.nix +++ b/pkgs/development/python-modules/pygitguardian/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, marshmallow -, marshmallow-dataclass -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, responses -, setuptools -, typing-extensions -, vcrpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + marshmallow, + marshmallow-dataclass, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + responses, + setuptools, + typing-extensions, + vcrpy, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-Uw65+YOnln+IOyT+RgqMEWt5cOZsaeS8Nu8U6ooivWA="; }; - pythonRelaxDeps = [ - "marshmallow-dataclass" - ]; + pythonRelaxDeps = [ "marshmallow-dataclass" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -49,9 +48,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "pygitguardian" - ]; + pythonImportsCheck = [ "pygitguardian" ]; disabledTests = [ # Tests require an API key diff --git a/pkgs/development/python-modules/pygithub/default.nix b/pkgs/development/python-modules/pygithub/default.nix index 926f16c46af3..843fce747184 100644 --- a/pkgs/development/python-modules/pygithub/default.nix +++ b/pkgs/development/python-modules/pygithub/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, deprecated -, fetchFromGitHub -, pynacl -, typing-extensions -, pyjwt -, pythonOlder -, requests -, setuptools -, setuptools-scm -, urllib3 +{ + lib, + buildPythonPackage, + deprecated, + fetchFromGitHub, + pynacl, + typing-extensions, + pyjwt, + pythonOlder, + requests, + setuptools, + setuptools-scm, + urllib3, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # Test suite makes REST calls against github.com doCheck = false; - pythonImportsCheck = [ - "github" - ]; + pythonImportsCheck = [ "github" ]; meta = with lib; { description = "Python library to access the GitHub API v3"; diff --git a/pkgs/development/python-modules/pyglet/default.nix b/pkgs/development/python-modules/pyglet/default.nix index 21ecabb0ff86..c9493e5c2885 100644 --- a/pkgs/development/python-modules/pyglet/default.nix +++ b/pkgs/development/python-modules/pyglet/default.nix @@ -1,20 +1,22 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi -, unzip -, pythonOlder -, libGL -, libGLU -, xorg -, pytestCheckHook -, glibc -, gtk2-x11 -, gdk-pixbuf -, fontconfig -, freetype -, ffmpeg-full -, openal -, libpulseaudio +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + unzip, + pythonOlder, + libGL, + libGLU, + xorg, + pytestCheckHook, + glibc, + gtk2-x11, + gdk-pixbuf, + fontconfig, + freetype, + ffmpeg-full, + openal, + libpulseaudio, }: buildPythonPackage rec { @@ -33,51 +35,53 @@ buildPythonPackage rec { # Even naively searching `LD_LIBRARY_PATH` won't work since `libc.so` is a linker script and # ctypes.cdll.LoadLibrary cannot deal with those. Therefore, just hardcode the paths to the # necessary libraries. - postPatch = let - ext = stdenv.hostPlatform.extensions.sharedLibrary; - in '' - cat > pyglet/lib.py < pyglet/lib.py <=2012d" "pytz" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ docopt @@ -39,13 +38,9 @@ buildPythonPackage rec { sqlalchemy ]; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; - pythonImportsCheck = [ - "pygtfs" - ]; + pythonImportsCheck = [ "pygtfs" ]; meta = with lib; { description = "Python module for GTFS"; diff --git a/pkgs/development/python-modules/pygti/default.nix b/pkgs/development/python-modules/pygti/default.nix index 5c7631a31c3e..3f9239bd8458 100644 --- a/pkgs/development/python-modules/pygti/default.nix +++ b/pkgs/development/python-modules/pygti/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools-scm -, aiohttp -, pytz -, voluptuous +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools-scm, + aiohttp, + pytz, + voluptuous, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-2T4Yw4XEOkv+IWyB4Xa2dPu929VH0tLeUjQ5S8EVXz0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/pygtkspellcheck/default.nix b/pkgs/development/python-modules/pygtkspellcheck/default.nix index 1f9ac10b9eb4..09fdbc4e7593 100644 --- a/pkgs/development/python-modules/pygtkspellcheck/default.nix +++ b/pkgs/development/python-modules/pygtkspellcheck/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gobject-introspection -, gtk3 -, poetry-core -, pyenchant -, pygobject3 +{ + lib, + buildPythonPackage, + fetchPypi, + gobject-introspection, + gtk3, + poetry-core, + pyenchant, + pygobject3, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { doCheck = false; # there are no tests - pythonImportsCheck = [ - "gtkspellcheck" - ]; + pythonImportsCheck = [ "gtkspellcheck" ]; meta = with lib; { homepage = "https://github.com/koehlma/pygtkspellcheck"; diff --git a/pkgs/development/python-modules/pygtrie/default.nix b/pkgs/development/python-modules/pygtrie/default.nix index 88a69922988c..4f4743f04f33 100644 --- a/pkgs/development/python-modules/pygtrie/default.nix +++ b/pkgs/development/python-modules/pygtrie/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, ... }: +{ + lib, + fetchPypi, + buildPythonPackage, + ... +}: buildPythonPackage rec { pname = "pygtrie"; version = "2.5.0"; diff --git a/pkgs/development/python-modules/pyhamcrest/default.nix b/pkgs/development/python-modules/pyhamcrest/default.nix index 951bd81e02e8..791e843f0869 100644 --- a/pkgs/development/python-modules/pyhamcrest/default.nix +++ b/pkgs/development/python-modules/pyhamcrest/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, numpy -, pytest-xdist -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + numpy, + pytest-xdist, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { "test_numpy_numeric_type_int" ]; - pythonImportsCheck = [ - "hamcrest" - ]; + pythonImportsCheck = [ "hamcrest" ]; meta = with lib; { description = "Hamcrest framework for matcher objects"; diff --git a/pkgs/development/python-modules/pyhanko-certvalidator/default.nix b/pkgs/development/python-modules/pyhanko-certvalidator/default.nix index e55936a8e41c..a774b8d59fb7 100644 --- a/pkgs/development/python-modules/pyhanko-certvalidator/default.nix +++ b/pkgs/development/python-modules/pyhanko-certvalidator/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, asn1crypto -, buildPythonPackage -, cryptography -, fetchFromGitHub -, freezegun -, oscrypto -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, uritools +{ + lib, + aiohttp, + asn1crypto, + buildPythonPackage, + cryptography, + fetchFromGitHub, + freezegun, + oscrypto, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + uritools, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace ', "pytest-runner",' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asn1crypto @@ -72,9 +71,7 @@ buildPythonPackage rec { "test_ed" ]; - pythonImportsCheck = [ - "pyhanko_certvalidator" - ]; + pythonImportsCheck = [ "pyhanko_certvalidator" ]; meta = with lib; { description = "Python library for validating X.509 certificates and paths"; diff --git a/pkgs/development/python-modules/pyhanko/default.nix b/pkgs/development/python-modules/pyhanko/default.nix index 68d777bd1b28..ba9dd2fc3969 100644 --- a/pkgs/development/python-modules/pyhanko/default.nix +++ b/pkgs/development/python-modules/pyhanko/default.nix @@ -1,33 +1,34 @@ -{ lib -, aiohttp -, asn1crypto -, buildPythonPackage -, certomancer -, click -, cryptography -, defusedxml -, fetchFromGitHub -, fonttools -, freezegun -, oscrypto -, pillow -, pyhanko-certvalidator -, pytest-aiohttp -, pytestCheckHook -, python-barcode -, python-pae -, python-pkcs11 -, pythonOlder -, pytz -, pyyaml -, qrcode -, requests -, requests-mock -, setuptools -, tzlocal -, uharfbuzz -, wheel -, xsdata +{ + lib, + aiohttp, + asn1crypto, + buildPythonPackage, + certomancer, + click, + cryptography, + defusedxml, + fetchFromGitHub, + fonttools, + freezegun, + oscrypto, + pillow, + pyhanko-certvalidator, + pytest-aiohttp, + pytestCheckHook, + python-barcode, + python-pae, + python-pkcs11, + pythonOlder, + pytz, + pyyaml, + qrcode, + requests, + requests-mock, + setuptools, + tzlocal, + uharfbuzz, + wheel, + xsdata, }: buildPythonPackage rec { @@ -67,12 +68,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - extra-pubkey-algs = [ - oscrypto - ]; - xmp = [ - defusedxml - ]; + extra-pubkey-algs = [ oscrypto ]; + xmp = [ defusedxml ]; opentype = [ fonttools uharfbuzz @@ -81,15 +78,9 @@ buildPythonPackage rec { pillow python-barcode ]; - pkcs11 = [ - python-pkcs11 - ]; - async-http = [ - aiohttp - ]; - etsi = [ - xsdata - ]; + pkcs11 = [ python-pkcs11 ]; + async-http = [ aiohttp ]; + etsi = [ xsdata ]; }; nativeCheckInputs = [ @@ -133,9 +124,7 @@ buildPythonPackage rec { "test_ts_fetch_requests" ]; - pythonImportsCheck = [ - "pyhanko" - ]; + pythonImportsCheck = [ "pyhanko" ]; meta = with lib; { description = "Sign and stamp PDF files"; diff --git a/pkgs/development/python-modules/pyhaversion/default.nix b/pkgs/development/python-modules/pyhaversion/default.nix index 204b8526d879..26aff0187e29 100644 --- a/pkgs/development/python-modules/pyhaversion/default.nix +++ b/pkgs/development/python-modules/pyhaversion/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, aresponses -, awesomeversion -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytest-asyncio -, pytestCheckHook +{ + lib, + aiohttp, + aresponses, + awesomeversion, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyhaversion" - ]; + pythonImportsCheck = [ "pyhaversion" ]; disabledTests = [ # Error fetching version information from HaVersionSource.SUPERVISOR Server disconnected diff --git a/pkgs/development/python-modules/pyhcl/default.nix b/pkgs/development/python-modules/pyhcl/default.nix index efa9bed66613..d4abb9fabaae 100644 --- a/pkgs/development/python-modules/pyhcl/default.nix +++ b/pkgs/development/python-modules/pyhcl/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, isPy3k -, lib +{ + buildPythonPackage, + fetchFromGitHub, + isPy3k, + lib, -# pythonPackages -, coverage -, pytest + # pythonPackages + coverage, + pytest, }: buildPythonPackage rec { @@ -41,8 +42,6 @@ buildPythonPackage rec { mainProgram = "hcltool"; homepage = "https://github.com/virtuald/pyhcl"; license = licenses.mpl20; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/pyheck/default.nix b/pkgs/development/python-modules/pyheck/default.nix index 123ebe3db978..7b7e5205447f 100644 --- a/pkgs/development/python-modules/pyheck/default.nix +++ b/pkgs/development/python-modules/pyheck/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cargo -, fetchFromGitHub -, libiconv -, poetry-core -, pytestCheckHook -, pythonOlder -, rustc -, rustPlatform -, stdenv +{ + lib, + buildPythonPackage, + cargo, + fetchFromGitHub, + libiconv, + poetry-core, + pytestCheckHook, + pythonOlder, + rustc, + rustPlatform, + stdenv, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-mfXkrCbBaJ0da+taKJvfyU5NS43tYJWqtTUXiCLVoGQ="; }; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; postPatch = '' ln -s ${./Cargo.lock} Cargo.lock @@ -43,13 +42,9 @@ buildPythonPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyheck" - ]; + pythonImportsCheck = [ "pyheck" ]; meta = with lib; { description = "Python bindings for heck, the Rust case conversion library"; diff --git a/pkgs/development/python-modules/pyheif/default.nix b/pkgs/development/python-modules/pyheif/default.nix index 65b895b340da..2a1cad706bbe 100644 --- a/pkgs/development/python-modules/pyheif/default.nix +++ b/pkgs/development/python-modules/pyheif/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cffi -, libheif +{ + lib, + buildPythonPackage, + fetchPypi, + cffi, + libheif, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-hqXFF0N51xRrXtGmiJL69yaKE1+39QOaARv7em6QMgA="; }; - propagatedBuildInputs = [ cffi libheif ]; + propagatedBuildInputs = [ + cffi + libheif + ]; meta = with lib; { homepage = "https://github.com/carsales/pyheif"; diff --git a/pkgs/development/python-modules/pyheos/default.nix b/pkgs/development/python-modules/pyheos/default.nix index 1600baba392d..db5fe0b0be02 100644 --- a/pkgs/development/python-modules/pyheos/default.nix +++ b/pkgs/development/python-modules/pyheos/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,14 +24,16 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # accesses network - "test_connect_timeout" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # stuck in epoll - "test_disconnect" - "test_commands_fail_when_disconnected" - ]; + disabledTests = + [ + # accesses network + "test_connect_timeout" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # stuck in epoll + "test_disconnect" + "test_commands_fail_when_disconnected" + ]; pythonImportsCheck = [ "pyheos" ]; diff --git a/pkgs/development/python-modules/pyhepmc/default.nix b/pkgs/development/python-modules/pyhepmc/default.nix index 1019d573a46e..7161ad2fcfb6 100644 --- a/pkgs/development/python-modules/pyhepmc/default.nix +++ b/pkgs/development/python-modules/pyhepmc/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cmake -, setuptools -, setuptools-scm -, numpy -, pybind11 -, wheel -, pytestCheckHook -, pythonOlder -, graphviz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cmake, + setuptools, + setuptools-scm, + numpy, + pybind11, + wheel, + pytestCheckHook, + pythonOlder, + graphviz, }: buildPythonPackage rec { @@ -34,13 +35,9 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - pybind11 - ]; + buildInputs = [ pybind11 ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; dontUseCmakeConfigure = true; @@ -65,4 +62,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ veprbl ]; }; } - diff --git a/pkgs/development/python-modules/pyhiveapi/default.nix b/pkgs/development/python-modules/pyhiveapi/default.nix index 341e08186470..4b782f86c080 100644 --- a/pkgs/development/python-modules/pyhiveapi/default.nix +++ b/pkgs/development/python-modules/pyhiveapi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, unasync -, boto3 -, botocore -, requests -, aiohttp -, pyquery -, loguru +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + unasync, + boto3, + botocore, + requests, + aiohttp, + pyquery, + loguru, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyhocon/default.nix b/pkgs/development/python-modules/pyhocon/default.nix index a7c2bb2b6576..81d30e3cea26 100644 --- a/pkgs/development/python-modules/pyhocon/default.nix +++ b/pkgs/development/python-modules/pyhocon/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pyparsing -, pytestCheckHook -, python-dateutil -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pyparsing, + pytestCheckHook, + python-dateutil, + pythonOlder, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace "pyparsing~=2.0" "pyparsing>=2.0" ''; - pythonImportsCheck = [ - "pyhocon" - ]; + pythonImportsCheck = [ "pyhocon" ]; disabledTestPaths = [ # pyparsing.exceptions.ParseException: Expected end of text, found '=' diff --git a/pkgs/development/python-modules/pyhomematic/default.nix b/pkgs/development/python-modules/pyhomematic/default.nix index 03e7babfb4fe..b79cbc812bda 100644 --- a/pkgs/development/python-modules/pyhomematic/default.nix +++ b/pkgs/development/python-modules/pyhomematic/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, isPy3k -, fetchPypi -, python +{ + lib, + buildPythonPackage, + isPy3k, + fetchPypi, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyhomepilot/default.nix b/pkgs/development/python-modules/pyhomepilot/default.nix index 80eacd42b39f..db00d9190ff0 100644 --- a/pkgs/development/python-modules/pyhomepilot/default.nix +++ b/pkgs/development/python-modules/pyhomepilot/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "00gmqx8cwsd15iccnlr8ypgqrdg6nw9ha518cfk7pyp8vhw1ziwy"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pyhomeworks/default.nix b/pkgs/development/python-modules/pyhomeworks/default.nix index 085107c4ad26..030066cff5cb 100644 --- a/pkgs/development/python-modules/pyhomeworks/default.nix +++ b/pkgs/development/python-modules/pyhomeworks/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { # Project has no real tests doCheck = false; - pythonImportsCheck = [ - "pyhomeworks" - ]; + pythonImportsCheck = [ "pyhomeworks" ]; meta = with lib; { description = "Python interface to Lutron Homeworks Series 4/8"; diff --git a/pkgs/development/python-modules/pyhumps/default.nix b/pkgs/development/python-modules/pyhumps/default.nix index b7ed9548e3a2..e5f36fe22d9d 100644 --- a/pkgs/development/python-modules/pyhumps/default.nix +++ b/pkgs/development/python-modules/pyhumps/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-ElL/LY2V2Z3efdV5FnDy9dSoBltULrzxsjaOx+7W9Oo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "humps" - ]; + pythonImportsCheck = [ "humps" ]; meta = with lib; { description = "Module to convert strings (and dictionary keys) between snake case, camel case and pascal case"; diff --git a/pkgs/development/python-modules/pyi2cflash/default.nix b/pkgs/development/python-modules/pyi2cflash/default.nix index 7a8a0ac595a6..a0b47a94cecb 100644 --- a/pkgs/development/python-modules/pyi2cflash/default.nix +++ b/pkgs/development/python-modules/pyi2cflash/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyftdi +{ + lib, + buildPythonPackage, + fetchPypi, + pyftdi, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "1nkazgf7pajz7jym5rfy2df71lyfp4skxqbrg5ch0h4dwjdwllx1"; }; - propagatedBuildInputs = [ - pyftdi - ]; + propagatedBuildInputs = [ pyftdi ]; # tests are not shipped with the PyPI source doCheck = false; diff --git a/pkgs/development/python-modules/pyialarm/default.nix b/pkgs/development/python-modules/pyialarm/default.nix index 6e2264b017ea..f76788180202 100644 --- a/pkgs/development/python-modules/pyialarm/default.nix +++ b/pkgs/development/python-modules/pyialarm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, dicttoxml2 -, fetchFromGitHub -, pythonOlder -, xmltodict +{ + lib, + buildPythonPackage, + dicttoxml2, + fetchFromGitHub, + pythonOlder, + xmltodict, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pyialarm" - ]; + pythonImportsCheck = [ "pyialarm" ]; meta = with lib; { description = "Python library to interface with Antifurto365 iAlarm systems"; diff --git a/pkgs/development/python-modules/pyicloud/default.nix b/pkgs/development/python-modules/pyicloud/default.nix index daa442a57305..3cdd75e17b61 100644 --- a/pkgs/development/python-modules/pyicloud/default.nix +++ b/pkgs/development/python-modules/pyicloud/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, setuptools -, certifi -, click -, keyring -, keyrings-alt -, pytz -, requests -, six -, tzlocal -, pytest-mock -, pytestCheckHook -, future +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + setuptools, + certifi, + click, + keyring, + keyrings-alt, + pytz, + requests, + six, + tzlocal, + pytest-mock, + pytestCheckHook, + future, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-2E1pdHHt8o7CGpdG+u4xy5OyNCueUGVw5CY8oicYd5w="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ certifi diff --git a/pkgs/development/python-modules/pyicu/default.nix b/pkgs/development/python-modules/pyicu/default.nix index c44bfcd29974..51461e392bce 100644 --- a/pkgs/development/python-modules/pyicu/default.nix +++ b/pkgs/development/python-modules/pyicu/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, six -, icu +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + six, + icu, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { nativeBuildInputs = [ icu ]; # for icu-config, but should be replaced with pkg-config buildInputs = [ icu ]; - nativeCheckInputs = [ pytestCheckHook six ]; + nativeCheckInputs = [ + pytestCheckHook + six + ]; pythonImportsCheck = [ "icu" ]; diff --git a/pkgs/development/python-modules/pyimpfuzzy/default.nix b/pkgs/development/python-modules/pyimpfuzzy/default.nix index 39bbee74e539..7b42c7ec429d 100644 --- a/pkgs/development/python-modules/pyimpfuzzy/default.nix +++ b/pkgs/development/python-modules/pyimpfuzzy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ssdeep -, pefile +{ + lib, + buildPythonPackage, + fetchPypi, + ssdeep, + pefile, }: buildPythonPackage rec { pname = "pyimpfuzzy"; @@ -14,20 +15,14 @@ buildPythonPackage rec { sha256 = "da9796df302db4b04a197128637f84988f1882f1e08fdd69bbf9fdc6cfbaf349"; }; - buildInputs = [ - ssdeep - ]; + buildInputs = [ ssdeep ]; - propagatedBuildInputs = [ - pefile - ]; + propagatedBuildInputs = [ pefile ]; # no tests doCheck = false; - pythonImportsCheck = [ - "pyimpfuzzy" - ]; + pythonImportsCheck = [ "pyimpfuzzy" ]; meta = with lib; { description = "A Python module which calculates and compares the impfuzzy (import fuzzy hashing)"; diff --git a/pkgs/development/python-modules/pyindego/default.nix b/pkgs/development/python-modules/pyindego/default.nix index b83aa414bc8c..98e5e3ba6ee6 100644 --- a/pkgs/development/python-modules/pyindego/default.nix +++ b/pkgs/development/python-modules/pyindego/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, aiohttp -, requests -, pytz + # dependencies + aiohttp, + requests, + pytz, -# tests -, mock -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook + # tests + mock, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-lRDi6qYMaPI8SiSNe0vzlKb92axujt44aei8opNPDug="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -52,9 +51,7 @@ buildPythonPackage rec { "test_update_battery" ]; - pythonImportsCheck = [ - "pyIndego" - ]; + pythonImportsCheck = [ "pyIndego" ]; meta = with lib; { description = "Python interface for Bosch API for lawnmowers"; diff --git a/pkgs/development/python-modules/pyinfra/default.nix b/pkgs/development/python-modules/pyinfra/default.nix index 1a32aa2ac6fb..4bea65f82511 100644 --- a/pkgs/development/python-modules/pyinfra/default.nix +++ b/pkgs/development/python-modules/pyinfra/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, click -, colorama -, configparser -, distro -, fetchFromGitHub -, fetchpatch -, gevent -, jinja2 -, paramiko -, pytestCheckHook -, python-dateutil -, pythonOlder -, pywinrm -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + click, + colorama, + configparser, + distro, + fetchFromGitHub, + fetchpatch, + gevent, + jinja2, + paramiko, + pytestCheckHook, + python-dateutil, + pythonOlder, + pywinrm, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -45,13 +46,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyinfra" - ]; + pythonImportsCheck = [ "pyinfra" ]; disabledTests = [ # Test requires SSH binary diff --git a/pkgs/development/python-modules/pyinotify/default.nix b/pkgs/development/python-modules/pyinotify/default.nix index 9a2a99765504..4fbb435db53b 100644 --- a/pkgs/development/python-modules/pyinotify/default.nix +++ b/pkgs/development/python-modules/pyinotify/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -22,5 +23,4 @@ buildPythonPackage rec { license = licenses.mit; platforms = platforms.linux; }; - } diff --git a/pkgs/development/python-modules/pyinputevent/default.nix b/pkgs/development/python-modules/pyinputevent/default.nix index 1172e595e213..a0e85755b8e7 100644 --- a/pkgs/development/python-modules/pyinputevent/default.nix +++ b/pkgs/development/python-modules/pyinputevent/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage { @@ -21,5 +22,4 @@ buildPythonPackage { license = licenses.bsd3; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/pyinstaller-versionfile/default.nix b/pkgs/development/python-modules/pyinstaller-versionfile/default.nix index b198bae9ec15..09d9b25eacb4 100644 --- a/pkgs/development/python-modules/pyinstaller-versionfile/default.nix +++ b/pkgs/development/python-modules/pyinstaller-versionfile/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, packaging -, jinja2 -, pyyaml +{ + lib, + fetchFromGitHub, + buildPythonPackage, + packaging, + jinja2, + pyyaml, }: buildPythonPackage rec { @@ -19,7 +20,11 @@ buildPythonPackage rec { hash = "sha256-lz1GuiXU+r8sMld5SsG3qS+FOsWfbvkQmO2bxAR3XcY="; }; - propagatedBuildInputs = [ packaging jinja2 pyyaml ]; + propagatedBuildInputs = [ + packaging + jinja2 + pyyaml + ]; meta = { description = "Create a windows version-file from a simple YAML file that can be used by PyInstaller."; diff --git a/pkgs/development/python-modules/pyinstrument/default.nix b/pkgs/development/python-modules/pyinstrument/default.nix index 1646fcd1d115..bfeaab0146cb 100644 --- a/pkgs/development/python-modules/pyinstrument/default.nix +++ b/pkgs/development/python-modules/pyinstrument/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, wheel +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # Module import recursion doCheck = false; - pythonImportsCheck = [ - "pyinstrument" - ]; + pythonImportsCheck = [ "pyinstrument" ]; meta = with lib; { description = "Call stack profiler for Python"; diff --git a/pkgs/development/python-modules/pyintesishome/default.nix b/pkgs/development/python-modules/pyintesishome/default.nix index 6d53d7bc2eb5..fa4b02f85e15 100644 --- a/pkgs/development/python-modules/pyintesishome/default.nix +++ b/pkgs/development/python-modules/pyintesishome/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-QgIvIn8I5EtJSNj1FdOI+DPgG7/y2ToQ62dhk7flieo="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pyintesishome" - ]; + pythonImportsCheck = [ "pyintesishome" ]; meta = with lib; { description = "Python interface for IntesisHome devices"; diff --git a/pkgs/development/python-modules/pyipma/default.nix b/pkgs/development/python-modules/pyipma/default.nix index 9f74c16a0c06..f6df4bf93272 100644 --- a/pkgs/development/python-modules/pyipma/default.nix +++ b/pkgs/development/python-modules/pyipma/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, freezegun -, mock -, geopy -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + freezegun, + mock, + geopy, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyipma" - ]; + pythonImportsCheck = [ "pyipma" ]; disabledTestPaths = [ # Tests require network access diff --git a/pkgs/development/python-modules/pyipv8/default.nix b/pkgs/development/python-modules/pyipv8/default.nix index 24f0ba95c063..d4efef40e2d7 100644 --- a/pkgs/development/python-modules/pyipv8/default.nix +++ b/pkgs/development/python-modules/pyipv8/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchPypi -, buildPythonPackage -, cryptography -, libnacl -, aiohttp -, aiohttp-apispec -, pyopenssl -, pyasn1 -, marshmallow -, typing-extensions -, packaging -, apispec +{ + lib, + fetchPypi, + buildPythonPackage, + cryptography, + libnacl, + aiohttp, + aiohttp-apispec, + pyopenssl, + pyasn1, + marshmallow, + typing-extensions, + packaging, + apispec, }: buildPythonPackage rec { @@ -41,8 +42,6 @@ buildPythonPackage rec { description = "Python implementation of Tribler's IPv8 p2p-networking layer"; homepage = "https://github.com/Tribler/py-ipv8"; license = licenses.lgpl3Only; - maintainers = with maintainers; [ - mkg20001 - ]; + maintainers = with maintainers; [ mkg20001 ]; }; } diff --git a/pkgs/development/python-modules/pyiqvia/default.nix b/pkgs/development/python-modules/pyiqvia/default.nix index 1c3669bc1aa7..2af120b22c2e 100644 --- a/pkgs/development/python-modules/pyiqvia/default.nix +++ b/pkgs/development/python-modules/pyiqvia/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, aiohttp -, aresponses -, backoff -, certifi -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + buildPythonPackage, + aiohttp, + aresponses, + backoff, + certifi, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-qq6UQUz60WkmWqdmExlSQT3wapaHJr8DeH1eVrTOnpQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -53,9 +52,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "pyiqvia" - ]; + pythonImportsCheck = [ "pyiqvia" ]; meta = with lib; { description = "Module for working with IQVIA data"; diff --git a/pkgs/development/python-modules/pyisbn/default.nix b/pkgs/development/python-modules/pyisbn/default.nix index eec0e4b039ad..51277d85f4be 100644 --- a/pkgs/development/python-modules/pyisbn/default.nix +++ b/pkgs/development/python-modules/pyisbn/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyisbn" - ]; + pythonImportsCheck = [ "pyisbn" ]; meta = with lib; { description = "Python module for working with 10- and 13-digit ISBNs"; diff --git a/pkgs/development/python-modules/pyisemail/default.nix b/pkgs/development/python-modules/pyisemail/default.nix index dfa60a85eaf6..df26b5a3602e 100644 --- a/pkgs/development/python-modules/pyisemail/default.nix +++ b/pkgs/development/python-modules/pyisemail/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchFromGitHub -, hatchling -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dnspython, + fetchFromGitHub, + hatchling, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-bJCaVUhvEAoQ8zMsbcb1Et728XHt+shEPhhBzPzY/vo="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - dnspython - ]; + propagatedBuildInputs = [ dnspython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyisemail" - ]; + pythonImportsCheck = [ "pyisemail" ]; meta = with lib; { description = "Module for email validation"; diff --git a/pkgs/development/python-modules/pyisy/default.nix b/pkgs/development/python-modules/pyisy/default.nix index 13a5a9e8f9d8..1409c6525a6b 100644 --- a/pkgs/development/python-modules/pyisy/default.nix +++ b/pkgs/development/python-modules/pyisy/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, colorlog -, fetchFromGitHub -, python-dateutil -, pythonOlder -, requests -, setuptools-scm +{ + lib, + aiohttp, + buildPythonPackage, + colorlog, + fetchFromGitHub, + python-dateutil, + pythonOlder, + requests, + setuptools-scm, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace 'version_format="{tag}"' 'version="${version}"' ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/pyixapi/default.nix b/pkgs/development/python-modules/pyixapi/default.nix index e452224d9e4f..3a051450c5dc 100644 --- a/pkgs/development/python-modules/pyixapi/default.nix +++ b/pkgs/development/python-modules/pyixapi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, requests -, pyjwt +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + requests, + pyjwt, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-qkgPBIYv9xzGa29RiPAU3zNhcyutTUX1Vkmpd9YdeJU="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests diff --git a/pkgs/development/python-modules/pyjks/default.nix b/pkgs/development/python-modules/pyjks/default.nix index 19d885284ea4..9b63d5a8f619 100644 --- a/pkgs/development/python-modules/pyjks/default.nix +++ b/pkgs/development/python-modules/pyjks/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, -# pythonPackages -, pyasn1-modules -, pycryptodomex -, twofish + # pythonPackages + pyasn1-modules, + pycryptodomex, + twofish, }: buildPythonPackage rec { @@ -31,8 +32,6 @@ buildPythonPackage rec { description = "Pure-Python Java Keystore (JKS) library"; homepage = "https://github.com/kurtbrose/pyjks"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ - kamadorueda - ]; + maintainers = with lib.maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/pyjnius/default.nix b/pkgs/development/python-modules/pyjnius/default.nix index 98496bf4a54b..3af30de86da6 100644 --- a/pkgs/development/python-modules/pyjnius/default.nix +++ b/pkgs/development/python-modules/pyjnius/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, jdk -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + jdk, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { cython ]; - pythonImportsCheck = [ - "jnius" - ]; + pythonImportsCheck = [ "jnius" ]; meta = with lib; { description = "A Python module to access Java classes as Python classes using the Java Native Interface (JNI)"; diff --git a/pkgs/development/python-modules/pyjsparser/default.nix b/pkgs/development/python-modules/pyjsparser/default.nix index e7ef79b092ca..0b6eab26b5c3 100644 --- a/pkgs/development/python-modules/pyjsparser/default.nix +++ b/pkgs/development/python-modules/pyjsparser/default.nix @@ -1,37 +1,46 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook -, js2py +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, + js2py, }: -let pyjsparser = buildPythonPackage rec { - pname = "pyjsparser"; - version = "2.7.1"; - format = "setuptools"; +let + pyjsparser = buildPythonPackage rec { + pname = "pyjsparser"; + version = "2.7.1"; + format = "setuptools"; - src = fetchFromGitHub { - owner = "PiotrDabkowski"; - repo = pname; - rev = "5465d037b30e334cb0997f2315ec1e451b8ad4c1"; - hash = "sha256-Hqay9/qsjUfe62U7Q79l0Yy01L2Bnj5xNs6427k3Br8="; + src = fetchFromGitHub { + owner = "PiotrDabkowski"; + repo = pname; + rev = "5465d037b30e334cb0997f2315ec1e451b8ad4c1"; + hash = "sha256-Hqay9/qsjUfe62U7Q79l0Yy01L2Bnj5xNs6427k3Br8="; + }; + + nativeCheckInputs = [ + pytestCheckHook + js2py + ]; + + # escape infinite recursion with js2py + doCheck = false; + + passthru.tests = { + check = pyjsparser.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + pythonImportsCheck = [ "pyjsparser" ]; + + meta = with lib; { + description = "Fast javascript parser (based on esprima.js)"; + homepage = "https://github.com/PiotrDabkowski/pyjsparser"; + license = licenses.mit; + maintainers = with maintainers; [ onny ]; + }; }; - - nativeCheckInputs = [ pytestCheckHook js2py ]; - - # escape infinite recursion with js2py - doCheck = false; - - passthru.tests = { - check = pyjsparser.overridePythonAttrs (_: { doCheck = true; }); - }; - - pythonImportsCheck = [ "pyjsparser" ]; - - meta = with lib; { - description = "Fast javascript parser (based on esprima.js)"; - homepage = "https://github.com/PiotrDabkowski/pyjsparser"; - license = licenses.mit; - maintainers = with maintainers; [ onny ]; - }; -}; in pyjsparser +in +pyjsparser diff --git a/pkgs/development/python-modules/pyjwkest/default.nix b/pkgs/development/python-modules/pyjwkest/default.nix index f89cd22a4c0c..4663752311d1 100644 --- a/pkgs/development/python-modules/pyjwkest/default.nix +++ b/pkgs/development/python-modules/pyjwkest/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, - future, pycryptodomex, pytest, requests, six +{ + lib, + buildPythonPackage, + fetchPypi, + future, + pycryptodomex, + pytest, + requests, + six, }: buildPythonPackage rec { @@ -19,5 +26,10 @@ buildPythonPackage rec { }; buildInputs = [ pytest ]; - propagatedBuildInputs = [ future pycryptodomex requests six ]; + propagatedBuildInputs = [ + future + pycryptodomex + requests + six + ]; } diff --git a/pkgs/development/python-modules/pyjwt/default.nix b/pkgs/development/python-modules/pyjwt/default.nix index f970605eb412..62c9c8c859db 100644 --- a/pkgs/development/python-modules/pyjwt/default.nix +++ b/pkgs/development/python-modules/pyjwt/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, cryptography -, pytestCheckHook -, pythonOlder -, sphinxHook -, sphinx-rtd-theme -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + cryptography, + pytestCheckHook, + pythonOlder, + sphinxHook, + sphinx-rtd-theme, + zope-interface, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { zope-interface ]; - passthru.optional-dependencies.crypto = [ - cryptography - ]; + passthru.optional-dependencies.crypto = [ cryptography ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pykakasi/default.nix b/pkgs/development/python-modules/pykakasi/default.nix index 1cfb8739888d..30dcee778a9b 100644 --- a/pkgs/development/python-modules/pykakasi/default.nix +++ b/pkgs/development/python-modules/pykakasi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, deprecated -, fetchFromGitHub -, importlib-metadata -, jaconv -, py-cpuinfo -, pytest-benchmark -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + deprecated, + fetchFromGitHub, + importlib-metadata, + jaconv, + py-cpuinfo, + pytest-benchmark, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -31,17 +32,13 @@ buildPythonPackage rec { --replace-fail ', "klepto"' "" ''; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ jaconv deprecated setuptools - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ py-cpuinfo @@ -56,9 +53,7 @@ buildPythonPackage rec { "pytest_benchmark_update_json" ]; - pythonImportsCheck = [ - "pykakasi" - ]; + pythonImportsCheck = [ "pykakasi" ]; meta = with lib; { description = "Python converter for Japanese Kana-kanji sentences into Kana-Roman"; diff --git a/pkgs/development/python-modules/pykaleidescape/default.nix b/pkgs/development/python-modules/pykaleidescape/default.nix index eac53807b5d4..7f9ac2ec8582 100644 --- a/pkgs/development/python-modules/pykaleidescape/default.nix +++ b/pkgs/development/python-modules/pykaleidescape/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, dnspython -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + dnspython, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-KM/gtpsQ27QZz2uI1t/yVN5no0zp9LZag1duAJzK55g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -38,18 +37,18 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "kaleidescape" - ]; + pythonImportsCheck = [ "kaleidescape" ]; - disabledTests = [ - # Test requires network access - "test_resolve_succeeds" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # stuck in EpollSelector.poll() - "test_manual_disconnect" - "test_concurrency" - ]; + disabledTests = + [ + # Test requires network access + "test_resolve_succeeds" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # stuck in EpollSelector.poll() + "test_manual_disconnect" + "test_concurrency" + ]; meta = with lib; { description = "Module for controlling Kaleidescape devices"; diff --git a/pkgs/development/python-modules/pykalman/default.nix b/pkgs/development/python-modules/pykalman/default.nix index 401ff4fc6fe7..950e402df8ba 100644 --- a/pkgs/development/python-modules/pykalman/default.nix +++ b/pkgs/development/python-modules/pykalman/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, scipy -, pytestCheckHook -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + scipy, + pytestCheckHook, + nose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pykdl/default.nix b/pkgs/development/python-modules/pykdl/default.nix index 75f2ab61d283..c5eea5ede804 100644 --- a/pkgs/development/python-modules/pykdl/default.nix +++ b/pkgs/development/python-modules/pykdl/default.nix @@ -1,36 +1,53 @@ -{ lib, stdenv, toPythonModule, fetchpatch, cmake, pybind11, orocos-kdl, eigen -, python }: +{ + lib, + stdenv, + toPythonModule, + fetchpatch, + cmake, + pybind11, + orocos-kdl, + eigen, + python, +}: -toPythonModule (stdenv.mkDerivation { - pname = "pykdl"; - inherit (orocos-kdl) version src; +toPythonModule ( + stdenv.mkDerivation { + pname = "pykdl"; + inherit (orocos-kdl) version src; - sourceRoot = "${orocos-kdl.src.name}/python_orocos_kdl"; + sourceRoot = "${orocos-kdl.src.name}/python_orocos_kdl"; - patches = [ - # Support system pybind11; the vendored copy doesn't support Python 3.11 - (fetchpatch { - url = "https://github.com/orocos/orocos_kinematics_dynamics/commit/e25a13fc5820dbca6b23d10506407bca9bcdd25f.patch"; - hash = "sha256-NGMVGEYsa7hVX+SgRZgeSm93BqxFR1uiyFvzyF5H0Y4="; - stripLen = 1; - }) - ]; + patches = [ + # Support system pybind11; the vendored copy doesn't support Python 3.11 + (fetchpatch { + url = "https://github.com/orocos/orocos_kinematics_dynamics/commit/e25a13fc5820dbca6b23d10506407bca9bcdd25f.patch"; + hash = "sha256-NGMVGEYsa7hVX+SgRZgeSm93BqxFR1uiyFvzyF5H0Y4="; + stripLen = 1; + }) + ]; - # Fix hardcoded installation path - postPatch = '' - substituteInPlace CMakeLists.txt \ - --replace dist-packages site-packages - ''; + # Fix hardcoded installation path + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace dist-packages site-packages + ''; - nativeBuildInputs = [ cmake pybind11 ]; - buildInputs = [ orocos-kdl eigen ]; - propagatedBuildInputs = [ python ]; + nativeBuildInputs = [ + cmake + pybind11 + ]; + buildInputs = [ + orocos-kdl + eigen + ]; + propagatedBuildInputs = [ python ]; - meta = with lib; { - description = "Kinematics and Dynamics Library (Python bindings)"; - homepage = "https://www.orocos.org/kdl.html"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ lopsided98 ]; - platforms = platforms.all; - }; -}) + meta = with lib; { + description = "Kinematics and Dynamics Library (Python bindings)"; + homepage = "https://www.orocos.org/kdl.html"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ lopsided98 ]; + platforms = platforms.all; + }; + } +) diff --git a/pkgs/development/python-modules/pykdtree/default.nix b/pkgs/development/python-modules/pykdtree/default.nix index 3418c47175cb..8e09b744ff8a 100644 --- a/pkgs/development/python-modules/pykdtree/default.nix +++ b/pkgs/development/python-modules/pykdtree/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, cython -, numpy -, setuptools + # build-system + cython, + numpy, + setuptools, -# native dependencies -, openmp + # native dependencies + openmp, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - openmp - ]; + buildInputs = [ openmp ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; preCheck = '' # make sure we don't import pykdtree from the source tree @@ -49,9 +46,7 @@ buildPythonPackage rec { rm -rf pykdtree ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "kd-tree implementation for fast nearest neighbour search in Python"; diff --git a/pkgs/development/python-modules/pykeepass/default.nix b/pkgs/development/python-modules/pykeepass/default.nix index da2e8d5bc837..73530902ee89 100644 --- a/pkgs/development/python-modules/pykeepass/default.nix +++ b/pkgs/development/python-modules/pykeepass/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, argon2-cffi -, construct -, lxml -, pycryptodomex -, pyotp -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + argon2-cffi, + construct, + lxml, + pycryptodomex, + pyotp, + unittestCheckHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail 'packages = ["pykeepass"]' 'packages = ["pykeepass", "pykeepass.kdbx_parsing"]' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ argon2-cffi diff --git a/pkgs/development/python-modules/pykerberos/default.nix b/pkgs/development/python-modules/pykerberos/default.nix index 25db2847dd35..b7b8953a72b3 100644 --- a/pkgs/development/python-modules/pykerberos/default.nix +++ b/pkgs/development/python-modules/pykerberos/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, krb5 }: +{ + lib, + fetchPypi, + buildPythonPackage, + krb5, +}: buildPythonPackage rec { pname = "pykerberos"; @@ -20,7 +25,7 @@ buildPythonPackage rec { meta = with lib; { description = "High-level interface to Kerberos"; - license = licenses.asl20; + license = licenses.asl20; maintainers = with maintainers; [ catern ]; }; } diff --git a/pkgs/development/python-modules/pykeyatome/default.nix b/pkgs/development/python-modules/pykeyatome/default.nix index 18f6fb7a9ee8..70b52f3c009b 100644 --- a/pkgs/development/python-modules/pykeyatome/default.nix +++ b/pkgs/development/python-modules/pykeyatome/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fake-useragent -, fetchFromGitHub -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, responses -, simplejson +{ + lib, + buildPythonPackage, + fake-useragent, + fetchFromGitHub, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + responses, + simplejson, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { "test_relog_after_session_down" ]; - pythonImportsCheck = [ - "pykeyatome" - ]; + pythonImportsCheck = [ "pykeyatome" ]; meta = with lib; { description = "Python module to get data from Atome Key"; diff --git a/pkgs/development/python-modules/pykira/default.nix b/pkgs/development/python-modules/pykira/default.nix index c3303902bf6f..a23d3b695f6e 100644 --- a/pkgs/development/python-modules/pykira/default.nix +++ b/pkgs/development/python-modules/pykira/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pykira" - ]; + pythonImportsCheck = [ "pykira" ]; meta = with lib; { description = "Python module to interact with Kira modules"; diff --git a/pkgs/development/python-modules/pykka/default.nix b/pkgs/development/python-modules/pykka/default.nix index c9e19c4c1661..0419b4c33bb1 100644 --- a/pkgs/development/python-modules/pykka/default.nix +++ b/pkgs/development/python-modules/pykka/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pytest-mock -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pytest-mock, + typing-extensions, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-2baFwZPNuVU39Kt5B8QvGKu7jMbg+GZ3ROoTxzPOXac="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook pytest-mock ]; - pythonImportsCheck = [ - "pykka" - ]; + pythonImportsCheck = [ "pykka" ]; meta = with lib; { homepage = "https://www.pykka.org/"; diff --git a/pkgs/development/python-modules/pykmtronic/default.nix b/pkgs/development/python-modules/pykmtronic/default.nix index 092a3d826a40..5f2b4b4cbe11 100644 --- a/pkgs/development/python-modules/pykmtronic/default.nix +++ b/pkgs/development/python-modules/pykmtronic/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, lxml +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + lxml, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-8qLyBJp7C93x0PWbgDAtNEDJ5VLNfwZ3DRZfudRCBgo="; }; - propagatedBuildInputs = [ aiohttp lxml ]; + propagatedBuildInputs = [ + aiohttp + lxml + ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pykodi/default.nix b/pkgs/development/python-modules/pykodi/default.nix index 75dda69262c7..7fa9788e09fc 100644 --- a/pkgs/development/python-modules/pykodi/default.nix +++ b/pkgs/development/python-modules/pykodi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, jsonrpc-async -, jsonrpc-websocket +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + jsonrpc-async, + jsonrpc-websocket, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "pykodi" - ]; + pythonImportsCheck = [ "pykodi" ]; meta = with lib; { description = "An async python interface for Kodi over JSON-RPC"; diff --git a/pkgs/development/python-modules/pykoplenti/default.nix b/pkgs/development/python-modules/pykoplenti/default.nix index 6078562a9714..e6ccb9bcbf2f 100644 --- a/pkgs/development/python-modules/pykoplenti/default.nix +++ b/pkgs/development/python-modules/pykoplenti/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, buildPythonPackage -, click -, fetchFromGitHub -, prompt-toolkit -, pycryptodome -, pydantic -, pythonOlder -, pythonRelaxDepsHook -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + click, + fetchFromGitHub, + prompt-toolkit, + pycryptodome, + pydantic, + pythonOlder, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-2sGkHCIGo1lzLurvQBmq+16sodAaK8v+mAbIH/Gd3+E="; }; - pythonRelaxDeps = [ - "pydantic" - ]; + pythonRelaxDeps = [ "pydantic" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -50,9 +49,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pykoplenti" - ]; + pythonImportsCheck = [ "pykoplenti" ]; meta = with lib; { description = "Python REST client API for Kostal Plenticore Inverters"; diff --git a/pkgs/development/python-modules/pykostalpiko/default.nix b/pkgs/development/python-modules/pykostalpiko/default.nix index 13b67271bd51..71c9416ae649 100644 --- a/pkgs/development/python-modules/pykostalpiko/default.nix +++ b/pkgs/development/python-modules/pykostalpiko/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, click -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + click, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pykostalpiko" - ]; + pythonImportsCheck = [ "pykostalpiko" ]; meta = with lib; { description = "Library and CLI-tool to fetch the data from a Kostal Piko inverter"; diff --git a/pkgs/development/python-modules/pykrakenapi/default.nix b/pkgs/development/python-modules/pykrakenapi/default.nix index 02d00afd628f..55cdaf71b4bb 100644 --- a/pkgs/development/python-modules/pykrakenapi/default.nix +++ b/pkgs/development/python-modules/pykrakenapi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, krakenex -, pandas +{ + lib, + buildPythonPackage, + fetchFromGitHub, + krakenex, + pandas, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pykulersky/default.nix b/pkgs/development/python-modules/pykulersky/default.nix index a748191ba9d1..974034c58756 100644 --- a/pkgs/development/python-modules/pykulersky/default.nix +++ b/pkgs/development/python-modules/pykulersky/default.nix @@ -1,12 +1,13 @@ -{ lib -, bleak -, buildPythonPackage -, click -, fetchFromGitHub -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + bleak, + buildPythonPackage, + click, + fetchFromGitHub, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pykulersky" - ]; + pythonImportsCheck = [ "pykulersky" ]; meta = with lib; { description = "Python module to control Brightech Kuler Sky Bluetooth LED devices"; diff --git a/pkgs/development/python-modules/pykwalify/default.nix b/pkgs/development/python-modules/pykwalify/default.nix index 991e822d42a2..bf1b69d8b68b 100644 --- a/pkgs/development/python-modules/pykwalify/default.nix +++ b/pkgs/development/python-modules/pykwalify/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchpatch -, python-dateutil -, docopt -, fetchPypi -, pytestCheckHook -, ruamel-yaml -, testfixtures +{ + lib, + buildPythonPackage, + fetchpatch, + python-dateutil, + docopt, + fetchPypi, + pytestCheckHook, + ruamel-yaml, + testfixtures, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pykwb/default.nix b/pkgs/development/python-modules/pykwb/default.nix index 5de4abd0306d..8ff7ab1f68ff 100644 --- a/pkgs/development/python-modules/pykwb/default.nix +++ b/pkgs/development/python-modules/pykwb/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyserial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-mor2TKhq08w4HzaUaspWOMEFwJaAKjXKoNAaoZJqWPQ="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pykwb" - ]; + pythonImportsCheck = [ "pykwb" ]; meta = with lib; { description = "Library for interacting with KWB Easyfire Pellet Central Heating Units"; diff --git a/pkgs/development/python-modules/pylacrosse/default.nix b/pkgs/development/python-modules/pylacrosse/default.nix index f173d8569646..a151a64d59d5 100644 --- a/pkgs/development/python-modules/pylacrosse/default.nix +++ b/pkgs/development/python-modules/pylacrosse/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pynose -, pyserial -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pynose, + pyserial, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { --replace "version = version," "version = '${version}'," ''; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; nativeCheckInputs = [ mock @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pylacrosse" - ]; + pythonImportsCheck = [ "pylacrosse" ]; meta = with lib; { description = "Python library for Jeelink LaCrosse"; diff --git a/pkgs/development/python-modules/pylacus/default.nix b/pkgs/development/python-modules/pylacus/default.nix index 09941db80a0e..bea461e7e1ce 100644 --- a/pkgs/development/python-modules/pylacus/default.nix +++ b/pkgs/development/python-modules/pylacus/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-ytO9wtCkiC6CLWLkmSV/R+Rnx/W4Jv2dsgykZ2GB13U="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; # Tests require network access doCheck = false; - pythonImportsCheck = [ - "pylacus" - ]; + pythonImportsCheck = [ "pylacus" ]; meta = with lib; { description = "Module to enqueue and query a remote Lacus instance"; diff --git a/pkgs/development/python-modules/pylama/default.nix b/pkgs/development/python-modules/pylama/default.nix index 5e379cefac63..221c1e936f03 100644 --- a/pkgs/development/python-modules/pylama/default.nix +++ b/pkgs/development/python-modules/pylama/default.nix @@ -1,84 +1,88 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, git -, eradicate -, mccabe -, mypy -, pycodestyle -, pydocstyle -, pyflakes -, vulture -, setuptools -, isort -, pylint -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + git, + eradicate, + mccabe, + mypy, + pycodestyle, + pydocstyle, + pyflakes, + vulture, + setuptools, + isort, + pylint, + pytestCheckHook, }: -let pylama = buildPythonPackage rec { - pname = "pylama"; - version = "8.4.1"; +let + pylama = buildPythonPackage rec { + pname = "pylama"; + version = "8.4.1"; - format = "setuptools"; + format = "setuptools"; - src = fetchFromGitHub { - name = "${pname}-${version}-source"; - owner = "klen"; - repo = "pylama"; - rev = version; - hash = "sha256-WOGtZ412tX3YH42JCd5HIngunluwtMmQrOSUZp23LPU="; + src = fetchFromGitHub { + name = "${pname}-${version}-source"; + owner = "klen"; + repo = "pylama"; + rev = version; + hash = "sha256-WOGtZ412tX3YH42JCd5HIngunluwtMmQrOSUZp23LPU="; + }; + + patches = [ + (substituteAll { + src = ./paths.patch; + git = "${lib.getBin git}/bin/git"; + }) + ]; + + propagatedBuildInputs = [ + eradicate + mccabe + mypy + pycodestyle + pydocstyle + pyflakes + setuptools + vulture + ]; + + # escape infinite recursion pylint -> isort -> pylama + doCheck = false; + + nativeCheckInputs = [ + pylint + pytestCheckHook + ]; + + preCheck = '' + export HOME=$TEMP + ''; + + disabledTests = [ + "test_quotes" # FIXME package pylama-quotes + "test_radon" # FIXME package radon + ]; + + pythonImportsCheck = [ "pylama.main" ]; + + passthru.tests = { + check = pylama.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + meta = with lib; { + description = "Code audit tool for python"; + mainProgram = "pylama"; + homepage = "https://github.com/klen/pylama"; + changelog = "https://github.com/klen/pylama/blob/${version}/Changelog"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; }; - - patches = [ - (substituteAll { - src = ./paths.patch; - git = "${lib.getBin git}/bin/git"; - }) - ]; - - propagatedBuildInputs = [ - eradicate - mccabe - mypy - pycodestyle - pydocstyle - pyflakes - setuptools - vulture - ]; - - # escape infinite recursion pylint -> isort -> pylama - doCheck = false; - - nativeCheckInputs = [ - pylint - pytestCheckHook - ]; - - preCheck = '' - export HOME=$TEMP - ''; - - disabledTests = [ - "test_quotes" # FIXME package pylama-quotes - "test_radon" # FIXME package radon - ]; - - pythonImportsCheck = [ - "pylama.main" - ]; - - passthru.tests = { - check = pylama.overridePythonAttrs (_: { doCheck = true; }); - }; - - meta = with lib; { - description = "Code audit tool for python"; - mainProgram = "pylama"; - homepage = "https://github.com/klen/pylama"; - changelog = "https://github.com/klen/pylama/blob/${version}/Changelog"; - license = licenses.mit; - maintainers = with maintainers; [ dotlambda ]; - }; -}; in pylama +in +pylama diff --git a/pkgs/development/python-modules/pylast/default.nix b/pkgs/development/python-modules/pylast/default.nix index 9d4ef111f7e1..6c0f4e98c4f9 100644 --- a/pkgs/development/python-modules/pylast/default.nix +++ b/pkgs/development/python-modules/pylast/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flaky -, hatch-vcs -, hatchling -, httpx -, importlib-metadata -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flaky, + hatch-vcs, + hatchling, + httpx, + importlib-metadata, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,25 +30,22 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - httpx - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ httpx ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ pytestCheckHook flaky ]; - pythonImportsCheck = [ - "pylast" - ]; + pythonImportsCheck = [ "pylast" ]; meta = with lib; { description = "Python interface to last.fm (and compatibles)"; homepage = "https://github.com/pylast/pylast"; license = licenses.asl20; - maintainers = with maintainers; [ fab rvolosatovs ]; + maintainers = with maintainers; [ + fab + rvolosatovs + ]; }; } diff --git a/pkgs/development/python-modules/pylatex/default.nix b/pkgs/development/python-modules/pylatex/default.nix index 44926587aa33..9444fb0f29e3 100644 --- a/pkgs/development/python-modules/pylatex/default.nix +++ b/pkgs/development/python-modules/pylatex/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, ordered-set -, pytestCheckHook -, matplotlib -, quantities -, texlive +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + ordered-set, + pytestCheckHook, + matplotlib, + quantities, + texlive, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-gZKMYGMp7bzDY5+Xx9h1AFP4l0Zd936fDfSXyW5lY1k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ordered-set ]; @@ -39,11 +38,7 @@ buildPythonPackage rec { pytestCheckHook matplotlib quantities - (texlive.combine { inherit (texlive) - scheme-small - lastpage - collection-fontsrecommended - ;}) + (texlive.combine { inherit (texlive) scheme-small lastpage collection-fontsrecommended; }) ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pylatexenc/default.nix b/pkgs/development/python-modules/pylatexenc/default.nix index 8e66fc08a656..d48fe47bf447 100644 --- a/pkgs/development/python-modules/pylatexenc/default.nix +++ b/pkgs/development/python-modules/pylatexenc/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pylaunches/default.nix b/pkgs/development/python-modules/pylaunches/default.nix index 9adf3abfc61e..f044593ef558 100644 --- a/pkgs/development/python-modules/pylaunches/default.nix +++ b/pkgs/development/python-modules/pylaunches/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-asyncio -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sha256 = "sha256-bIcnYcbfAwjet3cg97y+ujFfY2916ANk4sw0sZoU59g="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ aresponses @@ -39,9 +38,7 @@ buildPythonPackage rec { --replace ', "pytest-runner"' "" ''; - pythonImportsCheck = [ - "pylaunches" - ]; + pythonImportsCheck = [ "pylaunches" ]; meta = with lib; { description = "Python module to get information about upcoming space launches"; diff --git a/pkgs/development/python-modules/pyld/default.nix b/pkgs/development/python-modules/pyld/default.nix index 89d5544a3113..aa66ac581c3c 100644 --- a/pkgs/development/python-modules/pyld/default.nix +++ b/pkgs/development/python-modules/pyld/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, requests }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + requests, +}: let @@ -15,7 +21,6 @@ let rev = "aceeaf224b64d6880189d795bd99c3ffadb5d79e"; sha256 = "125q5rllfm8vg9mz8hn7bhvhv2vqpd86kx2kxlk84smh33l8kbyl"; }; - in buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pylddwrap/default.nix b/pkgs/development/python-modules/pylddwrap/default.nix index dc0ca98f186c..b24700cee2c8 100644 --- a/pkgs/development/python-modules/pylddwrap/default.nix +++ b/pkgs/development/python-modules/pylddwrap/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, icontract -, pytestCheckHook -, pythonOlder -, substituteAll -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + icontract, + pytestCheckHook, + pythonOlder, + substituteAll, + typing-extensions, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyleri/default.nix b/pkgs/development/python-modules/pyleri/default.nix index 2ff3abf5978d..2fdb2a0077c3 100644 --- a/pkgs/development/python-modules/pyleri/default.nix +++ b/pkgs/development/python-modules/pyleri/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, unittestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + unittestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-4t+6wtYzJbmL0TB/OXr89uZ2s8DeGlUdWwHd4YPsCW0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "pyleri" - ]; + pythonImportsCheck = [ "pyleri" ]; meta = with lib; { description = "Module to parse SiriDB"; diff --git a/pkgs/development/python-modules/pylev/default.nix b/pkgs/development/python-modules/pylev/default.nix index fdc5e2c08012..30831a8c5727 100644 --- a/pkgs/development/python-modules/pylev/default.nix +++ b/pkgs/development/python-modules/pylev/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pylgnetcast/default.nix b/pkgs/development/python-modules/pylgnetcast/default.nix index f4811bf02dfc..a017c49d574b 100644 --- a/pkgs/development/python-modules/pylgnetcast/default.nix +++ b/pkgs/development/python-modules/pylgnetcast/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-5lzLknuGLQryLCc4YQJn8AGuWTiSM90+8UTQ/WYfASM="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pylgnetcast" - ]; + pythonImportsCheck = [ "pylgnetcast" ]; meta = with lib; { description = "Python API client for the LG Smart TV running NetCast 3 or 4"; diff --git a/pkgs/development/python-modules/pylibacl/default.nix b/pkgs/development/python-modules/pylibacl/default.nix index 68f2d2d125ca..1e11d80892dc 100644 --- a/pkgs/development/python-modules/pylibacl/default.nix +++ b/pkgs/development/python-modules/pylibacl/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pylibconfig2/default.nix b/pkgs/development/python-modules/pylibconfig2/default.nix index 074227254343..608bb4da583f 100644 --- a/pkgs/development/python-modules/pylibconfig2/default.nix +++ b/pkgs/development/python-modules/pylibconfig2/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pyparsing }: +{ + lib, + buildPythonPackage, + fetchPypi, + pyparsing, +}: buildPythonPackage rec { pname = "pylibconfig2"; version = "0.2.5"; diff --git a/pkgs/development/python-modules/pylibdmtx/default.nix b/pkgs/development/python-modules/pylibdmtx/default.nix index bf2c4815ec3a..97037747a25b 100644 --- a/pkgs/development/python-modules/pylibdmtx/default.nix +++ b/pkgs/development/python-modules/pylibdmtx/default.nix @@ -1,9 +1,10 @@ -{ fetchFromGitHub -, buildPythonPackage -, pillow -, numpy -, libdmtx -, lib +{ + fetchFromGitHub, + buildPythonPackage, + pillow, + numpy, + libdmtx, + lib, }: buildPythonPackage rec { @@ -35,7 +36,10 @@ buildPythonPackage rec { rm pylibdmtx/tests/test_dmtx_library.py ''; - propagatedBuildInputs = [ pillow numpy ]; + propagatedBuildInputs = [ + pillow + numpy + ]; pythonImportsCheck = [ "pylibdmtx" ]; diff --git a/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix b/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix index 9040f955efb4..e3496f206cd6 100644 --- a/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix +++ b/pkgs/development/python-modules/pylibjpeg-libjpeg/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, cython -, poetry-core -, setuptools -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + cython, + poetry-core, + setuptools, + numpy, }: buildPythonPackage rec { @@ -30,19 +31,13 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - doCheck = false; # tests try to import 'libjpeg.data', which errors + doCheck = false; # tests try to import 'libjpeg.data', which errors - pythonImportsCheck = [ - "libjpeg" - ]; + pythonImportsCheck = [ "libjpeg" ]; meta = with lib; { description = "A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg"; diff --git a/pkgs/development/python-modules/pylibjpeg/default.nix b/pkgs/development/python-modules/pylibjpeg/default.nix index 134b0ebdb993..d19fcc9039af 100644 --- a/pkgs/development/python-modules/pylibjpeg/default.nix +++ b/pkgs/development/python-modules/pylibjpeg/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, flit-core -, setuptools -, numpy -, pydicom -, pylibjpeg-libjpeg +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + flit-core, + setuptools, + numpy, + pydicom, + pylibjpeg-libjpeg, }: let diff --git a/pkgs/development/python-modules/pyliblo/default.nix b/pkgs/development/python-modules/pyliblo/default.nix index 0735fdcb7216..9a6a3680d2bb 100644 --- a/pkgs/development/python-modules/pyliblo/default.nix +++ b/pkgs/development/python-modules/pyliblo/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchurl -, isPyPy -, pythonAtLeast -, liblo -, cython_0 +{ + lib, + buildPythonPackage, + fetchurl, + isPyPy, + pythonAtLeast, + liblo, + cython_0, }: buildPythonPackage rec { @@ -34,5 +35,4 @@ buildPythonPackage rec { description = "Python wrapper for the liblo OSC library"; license = licenses.lgpl21Only; }; - } diff --git a/pkgs/development/python-modules/pylibmc/default.nix b/pkgs/development/python-modules/pylibmc/default.nix index 3cd7a05e54ba..cb3d7d5902d2 100644 --- a/pkgs/development/python-modules/pylibmc/default.nix +++ b/pkgs/development/python-modules/pylibmc/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cyrus_sasl -, fetchPypi -, libmemcached -, pythonOlder -, zlib +{ + lib, + buildPythonPackage, + cyrus_sasl, + fetchPypi, + libmemcached, + pythonOlder, + zlib, }: buildPythonPackage rec { @@ -25,16 +26,12 @@ buildPythonPackage rec { zlib ]; - setupPyBuildFlags = [ - "--with-sasl2" - ]; + setupPyBuildFlags = [ "--with-sasl2" ]; # Requires an external memcached server running doCheck = false; - pythonImportsCheck = [ - "pylibmc" - ]; + pythonImportsCheck = [ "pylibmc" ]; meta = with lib; { description = "Quick and small memcached client for Python"; diff --git a/pkgs/development/python-modules/pylink-square/default.nix b/pkgs/development/python-modules/pylink-square/default.nix index 2903c0f8d566..c3245c0e7b0d 100644 --- a/pkgs/development/python-modules/pylink-square/default.nix +++ b/pkgs/development/python-modules/pylink-square/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchPypi -, mock -, psutil -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchPypi, + mock, + psutil, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pylink" - ]; + pythonImportsCheck = [ "pylink" ]; disabledTests = [ # AttributeError: 'called_once_with' is not a valid assertion diff --git a/pkgs/development/python-modules/pylint-celery/default.nix b/pkgs/development/python-modules/pylint-celery/default.nix index d89afecbaa11..cb002a60a2a2 100644 --- a/pkgs/development/python-modules/pylint-celery/default.nix +++ b/pkgs/development/python-modules/pylint-celery/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchFromGitHub -, isPy3k -, lib +{ + buildPythonPackage, + fetchFromGitHub, + isPy3k, + lib, -# pythonPackages -, pylint-plugin-utils + # pythonPackages + pylint-plugin-utils, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { sha256 = "05fhwraq12c2724pn4py1bjzy5rmsrb1x68zck73nlp5icba6yap"; }; - propagatedBuildInputs = [ - pylint-plugin-utils - ]; + propagatedBuildInputs = [ pylint-plugin-utils ]; # Testing requires a very old version of pylint, incompatible with other dependencies doCheck = false; @@ -31,8 +30,6 @@ buildPythonPackage rec { description = "A Pylint plugin to analyze Celery applications"; homepage = "https://github.com/PyCQA/pylint-celery"; license = licenses.gpl2; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/pylint-django/default.nix b/pkgs/development/python-modules/pylint-django/default.nix index d3f22e8532ef..13ddc4eabec4 100644 --- a/pkgs/development/python-modules/pylint-django/default.nix +++ b/pkgs/development/python-modules/pylint-django/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, django -, django-tables2 -, django-tastypie -, factory-boy -, fetchFromGitHub -, poetry-core -, pylint-plugin-utils -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + django, + django-tables2, + django-tastypie, + factory-boy, + fetchFromGitHub, + poetry-core, + pylint-plugin-utils, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,18 +26,12 @@ buildPythonPackage rec { hash = "sha256-MNgu3LvFoohXA+JzUiHIaYFw0ssEe+H5T8Ea56LcGuI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pylint-plugin-utils - ]; + propagatedBuildInputs = [ pylint-plugin-utils ]; passthru.optional-dependencies = { - with_django = [ - django - ]; + with_django = [ django ]; }; nativeCheckInputs = [ @@ -53,9 +48,7 @@ buildPythonPackage rec { "test_linter_should_be_pickleable_with_pylint_django_plugin_installed" ]; - pythonImportsCheck = [ - "pylint_django" - ]; + pythonImportsCheck = [ "pylint_django" ]; meta = with lib; { description = "Pylint plugin to analyze Django applications"; diff --git a/pkgs/development/python-modules/pylint-flask/default.nix b/pkgs/development/python-modules/pylint-flask/default.nix index 0928e0bd07e1..be6f946166d1 100644 --- a/pkgs/development/python-modules/pylint-flask/default.nix +++ b/pkgs/development/python-modules/pylint-flask/default.nix @@ -1,11 +1,12 @@ -{ lib -, astroid -, buildPythonPackage -, fetchPypi -, pylint -, pylint-plugin-utils -, pythonOlder -, setuptools +{ + lib, + astroid, + buildPythonPackage, + fetchPypi, + pylint, + pylint-plugin-utils, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-9Nl94iFr97/OB8nAixZul4/p8nJd4qUKmEWpfefjFRc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pylint - ]; + buildInputs = [ pylint ]; propagatedBuildInputs = [ astroid @@ -37,9 +34,7 @@ buildPythonPackage rec { # also tests are only available at GitHub, with an old release tag doCheck = false; - pythonImportsCheck = [ - "pylint_flask" - ]; + pythonImportsCheck = [ "pylint_flask" ]; meta = with lib; { description = "A Pylint plugin to analyze Flask applications"; diff --git a/pkgs/development/python-modules/pylint-plugin-utils/default.nix b/pkgs/development/python-modules/pylint-plugin-utils/default.nix index 83315aed22a0..d6ddceb94cc9 100644 --- a/pkgs/development/python-modules/pylint-plugin-utils/default.nix +++ b/pkgs/development/python-modules/pylint-plugin-utils/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pylint -, pytestCheckHook -, pythonOlder -, toml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pylint, + pytestCheckHook, + pythonOlder, + toml, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-xuPU1txfB+6+zJjtlfvNA950S5n7/PWPPFn1F3RtvCc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pylint toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pylint_plugin_utils" - ]; + pythonImportsCheck = [ "pylint_plugin_utils" ]; meta = with lib; { description = "Utilities and helpers for writing Pylint plugins"; diff --git a/pkgs/development/python-modules/pylint-venv/default.nix b/pkgs/development/python-modules/pylint-venv/default.nix index b12ae73b8c34..47d294f15317 100644 --- a/pkgs/development/python-modules/pylint-venv/default.nix +++ b/pkgs/development/python-modules/pylint-venv/default.nix @@ -1,8 +1,9 @@ - { lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-dsVEHJawsTNKVCVmeOa61wOU5GPeyzAU/eUDFrK9PPg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pylint_venv" - ]; + pythonImportsCheck = [ "pylint_venv" ]; meta = with lib; { description = "Module to make pylint respect virtual environments"; diff --git a/pkgs/development/python-modules/pylion/default.nix b/pkgs/development/python-modules/pylion/default.nix index 10cfd173b66d..db558c16856f 100644 --- a/pkgs/development/python-modules/pylion/default.nix +++ b/pkgs/development/python-modules/pylion/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromBitbucket -, h5py -, termcolor -, pexpect -, jinja2 -, sphinxHook -, sphinx-rtd-theme +{ + lib, + buildPythonPackage, + fetchFromBitbucket, + h5py, + termcolor, + pexpect, + jinja2, + sphinxHook, + sphinx-rtd-theme, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/pylnk3/default.nix b/pkgs/development/python-modules/pylnk3/default.nix index 819c7d6c5a23..4bcb8547bd0d 100644 --- a/pkgs/development/python-modules/pylnk3/default.nix +++ b/pkgs/development/python-modules/pylnk3/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, twine -, invoke -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + twine, + invoke, + pythonOlder, }: buildPythonPackage rec { @@ -20,16 +21,14 @@ buildPythonPackage rec { hash = "sha256-yu4BNvYai3iBVNyOfAOsLd5XrcFw8cR4arRyFJHKbpk="; }; - propagatedBuildInputs = [ - pytest - invoke + propagatedBuildInputs = [ + pytest + invoke ]; # There are no tests in pylnk3. doCheck = false; - pythonImportsCheck = [ - "pylnk3" - ]; + pythonImportsCheck = [ "pylnk3" ]; meta = with lib; { description = "Python library for reading and writing Windows shortcut files (.lnk)"; diff --git a/pkgs/development/python-modules/pylpsd/default.nix b/pkgs/development/python-modules/pylpsd/default.nix index c04d82c80276..366ec999c5d5 100644 --- a/pkgs/development/python-modules/pylpsd/default.nix +++ b/pkgs/development/python-modules/pylpsd/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, numpy -, scipy +{ + lib, + fetchPypi, + buildPythonPackage, + numpy, + scipy, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Tests fail and there are none doCheck = false; - pythonImportsCheck = [ - "pylpsd" - ]; + pythonImportsCheck = [ "pylpsd" ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/pylru/default.nix b/pkgs/development/python-modules/pylru/default.nix index a83f2fd3ad14..dd5db2771386 100644 --- a/pkgs/development/python-modules/pylru/default.nix +++ b/pkgs/development/python-modules/pylru/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { # Check with the next release if tests are ready doCheck = false; - pythonImportsCheck = [ - "pylru" - ]; + pythonImportsCheck = [ "pylru" ]; meta = with lib; { description = "A least recently used (LRU) cache implementation"; diff --git a/pkgs/development/python-modules/pyls-flake8/default.nix b/pkgs/development/python-modules/pyls-flake8/default.nix index 9f217aca3907..533ea616727f 100644 --- a/pkgs/development/python-modules/pyls-flake8/default.nix +++ b/pkgs/development/python-modules/pyls-flake8/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flake8 -, python-lsp-server -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flake8, + python-lsp-server, + pythonOlder, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { sha256 = "14wkmwh8mqr826vdzxhvhdwrnx2akzmnbv3ar391qs4imwqfjx3l"; }; - propagatedBuildInputs = [ flake8 python-lsp-server ]; + propagatedBuildInputs = [ + flake8 + python-lsp-server + ]; meta = with lib; { homepage = "https://github.com/emanspeaks/pyls-flake8"; diff --git a/pkgs/development/python-modules/pyls-isort/default.nix b/pkgs/development/python-modules/pyls-isort/default.nix index e42c4129e791..795d094cbac7 100644 --- a/pkgs/development/python-modules/pyls-isort/default.nix +++ b/pkgs/development/python-modules/pyls-isort/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, python-lsp-server, isort +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-lsp-server, + isort, }: buildPythonPackage rec { @@ -20,7 +24,8 @@ buildPythonPackage rec { pythonImportsCheck = [ "pyls_isort" ]; propagatedBuildInputs = [ - isort python-lsp-server + isort + python-lsp-server ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pyls-memestra/default.nix b/pkgs/development/python-modules/pyls-memestra/default.nix index 312479d223d7..2ad742ac9f78 100644 --- a/pkgs/development/python-modules/pyls-memestra/default.nix +++ b/pkgs/development/python-modules/pyls-memestra/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, deprecated -, memestra -, python-lsp-server +{ + lib, + buildPythonPackage, + fetchPypi, + deprecated, + memestra, + python-lsp-server, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # Tests fail because they rely on writting to read-only files doCheck = false; - pythonImportsCheck = [ - "pyls_memestra" - ]; + pythonImportsCheck = [ "pyls_memestra" ]; meta = with lib; { description = "Memestra plugin for the Python Language Server"; diff --git a/pkgs/development/python-modules/pyls-spyder/default.nix b/pkgs/development/python-modules/pyls-spyder/default.nix index d6da0c292596..e86ddcc60338 100644 --- a/pkgs/development/python-modules/pyls-spyder/default.nix +++ b/pkgs/development/python-modules/pyls-spyder/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python-lsp-server -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-lsp-server, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { sha256 = "11ajbsia60d4c9s6m6rbvaqp1d69fcdbq6a98lkzkkzv2b9pdhkk"; }; - propagatedBuildInputs = [ - python-lsp-server - ]; + propagatedBuildInputs = [ python-lsp-server ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyls_spyder" ]; diff --git a/pkgs/development/python-modules/pylsp-mypy/default.nix b/pkgs/development/python-modules/pylsp-mypy/default.nix index e93e24406341..3f787714bb33 100644 --- a/pkgs/development/python-modules/pylsp-mypy/default.nix +++ b/pkgs/development/python-modules/pylsp-mypy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, mypy -, pytestCheckHook -, python-lsp-server -, pythonOlder -, tomli +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + mypy, + pytestCheckHook, + python-lsp-server, + pythonOlder, + tomli, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-oEWUXkE8U7/ye6puJZRSkQFi10BPGuc8XZQbHwqOPEI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ mypy @@ -33,13 +32,9 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pylsp_mypy" - ]; + pythonImportsCheck = [ "pylsp_mypy" ]; disabledTests = [ # Tests wants to call dmypy diff --git a/pkgs/development/python-modules/pylsp-rope/default.nix b/pkgs/development/python-modules/pylsp-rope/default.nix index 22776d4dc6af..9556670a85c1 100644 --- a/pkgs/development/python-modules/pylsp-rope/default.nix +++ b/pkgs/development/python-modules/pylsp-rope/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, rope -, pytestCheckHook -, python-lsp-server -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + rope, + pytestCheckHook, + python-lsp-server, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { python-lsp-server ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pylsp_rope" - ]; + pythonImportsCheck = [ "pylsp_rope" ]; meta = with lib; { description = "Extended refactoring capabilities for Python LSP Server using Rope"; diff --git a/pkgs/development/python-modules/pylsqpack/default.nix b/pkgs/development/python-modules/pylsqpack/default.nix index f1e595f88b47..e36214b2206c 100644 --- a/pkgs/development/python-modules/pylsqpack/default.nix +++ b/pkgs/development/python-modules/pylsqpack/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-Ra5V5yGHdQX01czUlZHWk1PypUioZz36+yUdOFs8CX8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pylutron-caseta/default.nix b/pkgs/development/python-modules/pylutron-caseta/default.nix index 0abbd2eaa517..6dd8695330c7 100644 --- a/pkgs/development/python-modules/pylutron-caseta/default.nix +++ b/pkgs/development/python-modules/pylutron-caseta/default.nix @@ -1,16 +1,17 @@ -{ lib -, async-timeout -, buildPythonPackage -, click -, cryptography -, fetchFromGitHub -, hatchling -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, xdg -, zeroconf +{ + lib, + async-timeout, + buildPythonPackage, + click, + cryptography, + fetchFromGitHub, + hatchling, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + xdg, + zeroconf, }: buildPythonPackage rec { @@ -27,15 +28,9 @@ buildPythonPackage rec { hash = "sha256-7uUNLlVrMEgah2YvTECC4S2WArAQjeAyfgDd62sQsYA="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - cryptography - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + propagatedBuildInputs = [ cryptography ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; passthru.optional-dependencies = { cli = [ @@ -49,17 +44,11 @@ buildPythonPackage rec { pytest-asyncio pytest-timeout pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; - pythonImportsCheck = [ - "pylutron_caseta" - ]; + pythonImportsCheck = [ "pylutron_caseta" ]; meta = with lib; { description = "Python module o control Lutron Caseta devices"; diff --git a/pkgs/development/python-modules/pylxd/default.nix b/pkgs/development/python-modules/pylxd/default.nix index 3d94d0db3599..3c737f504123 100644 --- a/pkgs/development/python-modules/pylxd/default.nix +++ b/pkgs/development/python-modules/pylxd/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, cryptography -, ddt -, fetchFromGitHub -, mock-services -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, urllib3 -, pythonRelaxDepsHook -, requests-toolbelt -, requests-unixsocket -, setuptools -, ws4py +{ + lib, + buildPythonPackage, + cryptography, + ddt, + fetchFromGitHub, + mock-services, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + urllib3, + pythonRelaxDepsHook, + requests-toolbelt, + requests-unixsocket, + setuptools, + ws4py, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-Q4GMz7HFpJNPYlYgLhE0a7mVCwNpdbw4XVcUGQ2gUJ0="; }; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -60,9 +59,7 @@ buildPythonPackage rec { "migration" ]; - pythonImportsCheck = [ - "pylxd" - ]; + pythonImportsCheck = [ "pylxd" ]; meta = with lib; { description = "Library for interacting with the LXD REST API"; diff --git a/pkgs/development/python-modules/pylyrics/default.nix b/pkgs/development/python-modules/pylyrics/default.nix index 26530cabf401..4fbb9c8cfc92 100644 --- a/pkgs/development/python-modules/pylyrics/default.nix +++ b/pkgs/development/python-modules/pylyrics/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, beautifulsoup4, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + beautifulsoup4, + requests, +}: buildPythonPackage rec { pname = "pylyrics"; diff --git a/pkgs/development/python-modules/pylzma/default.nix b/pkgs/development/python-modules/pylzma/default.nix index aa3998944994..bd0ba29d90d1 100644 --- a/pkgs/development/python-modules/pylzma/default.nix +++ b/pkgs/development/python-modules/pylzma/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pylzma"; diff --git a/pkgs/development/python-modules/pymacaroons/default.nix b/pkgs/development/python-modules/pymacaroons/default.nix index 2950e71020db..3abfa6431e06 100644 --- a/pkgs/development/python-modules/pymacaroons/default.nix +++ b/pkgs/development/python-modules/pymacaroons/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, pynacl }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pynacl, +}: buildPythonPackage rec { pname = "pymacaroons"; diff --git a/pkgs/development/python-modules/pymailgunner/default.nix b/pkgs/development/python-modules/pymailgunner/default.nix index 6b1b03cebf34..7e5a5bd5d8c4 100644 --- a/pkgs/development/python-modules/pymailgunner/default.nix +++ b/pkgs/development/python-modules/pymailgunner/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-QKwpW1aeN6OI76Kocow1Zhghq4/fl/cMPexny0MTwQs="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pymailgunner" - ]; + pythonImportsCheck = [ "pymailgunner" ]; meta = with lib; { description = "Library for interacting with Mailgun e-mail service"; diff --git a/pkgs/development/python-modules/pymanopt/default.nix b/pkgs/development/python-modules/pymanopt/default.nix index d6fbdacf4650..019d107e2342 100644 --- a/pkgs/development/python-modules/pymanopt/default.nix +++ b/pkgs/development/python-modules/pymanopt/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, numpy -, scipy -, torch -, autograd -, matplotlib -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + numpy, + scipy, + torch, + autograd, + matplotlib, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,8 +22,16 @@ buildPythonPackage rec { hash = "sha256-pDFRYhswcuAHG9pcqvzXIy3Ivhxe5R5Ric7AFRh7MK4="; }; - propagatedBuildInputs = [ numpy scipy torch ]; - nativeCheckInputs = [ autograd matplotlib pytestCheckHook ]; + propagatedBuildInputs = [ + numpy + scipy + torch + ]; + nativeCheckInputs = [ + autograd + matplotlib + pytestCheckHook + ]; preCheck = '' substituteInPlace "tests/conftest.py" \ diff --git a/pkgs/development/python-modules/pymarshal/default.nix b/pkgs/development/python-modules/pymarshal/default.nix index 6a4736c3fb21..b9ec633afb10 100644 --- a/pkgs/development/python-modules/pymarshal/default.nix +++ b/pkgs/development/python-modules/pymarshal/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, bson -, pytestCheckHook -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + bson, + pytestCheckHook, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { --replace "--cov=pymarshal --cov-report=html --cov-report=term" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - bson - ]; + propagatedBuildInputs = [ bson ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pymata-express/default.nix b/pkgs/development/python-modules/pymata-express/default.nix index 47475845198a..d516ba9b38e7 100644 --- a/pkgs/development/python-modules/pymata-express/default.nix +++ b/pkgs/development/python-modules/pymata-express/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1mibyn84kjahrv3kn51yl5mhkyig4piv6wanggzjflh5nm96bhy8"; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pymatreader/default.nix b/pkgs/development/python-modules/pymatreader/default.nix index 484797381fa9..8544d8afbb98 100644 --- a/pkgs/development/python-modules/pymatreader/default.nix +++ b/pkgs/development/python-modules/pymatreader/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, setuptools -, h5py -, numpy -, scipy -, xmltodict -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitLab, + setuptools, + h5py, + numpy, + scipy, + xmltodict, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pymatreader" ]; diff --git a/pkgs/development/python-modules/pymatting/default.nix b/pkgs/development/python-modules/pymatting/default.nix index 371a4a03c2f3..14acf4515b81 100644 --- a/pkgs/development/python-modules/pymatting/default.nix +++ b/pkgs/development/python-modules/pymatting/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numba -, numpy -, pillow -, pytestCheckHook -, scipy -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numba, + numpy, + pillow, + pytestCheckHook, + scipy, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numba @@ -32,13 +31,9 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pymatting" - ]; + pythonImportsCheck = [ "pymatting" ]; disabledTests = [ # no access to input data set @@ -57,4 +52,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ blaggacao ]; }; } - diff --git a/pkgs/development/python-modules/pymaven-patch/default.nix b/pkgs/development/python-modules/pymaven-patch/default.nix index 4d98ded89637..357c1f96f318 100644 --- a/pkgs/development/python-modules/pymaven-patch/default.nix +++ b/pkgs/development/python-modules/pymaven-patch/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pbr -, requests -, six -, lxml -, pytestCheckHook -, pytest-cov -, mock +{ + lib, + fetchPypi, + buildPythonPackage, + pbr, + requests, + six, + lxml, + pytestCheckHook, + pytest-cov, + mock, }: buildPythonPackage rec { pname = "pymaven-patch"; @@ -32,9 +33,7 @@ buildPythonPackage rec { mock ]; - pythonImportsCheck = [ - "pymaven" - ]; + pythonImportsCheck = [ "pymaven" ]; meta = with lib; { description = "Python access to maven"; diff --git a/pkgs/development/python-modules/pymavlink/default.nix b/pkgs/development/python-modules/pymavlink/default.nix index 93f68ad6b216..beb8ab6461ef 100644 --- a/pkgs/development/python-modules/pymavlink/default.nix +++ b/pkgs/development/python-modules/pymavlink/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, future, lxml }: +{ + lib, + buildPythonPackage, + fetchPypi, + future, + lxml, +}: buildPythonPackage rec { pname = "pymavlink"; @@ -10,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-7TIlzphdBhA6qyUa/Ig9BKmKHW21xzmV595MqssfZs0="; }; - propagatedBuildInputs = [ future lxml ]; + propagatedBuildInputs = [ + future + lxml + ]; # No tests included in PyPI tarball. We cannot use the GitHub tarball because # we would like to use the same commit of the mavlink messages repo as @@ -23,7 +32,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python MAVLink interface and utilities"; homepage = "https://github.com/ArduPilot/pymavlink"; - license = with licenses; [ lgpl3Plus mit ]; + license = with licenses; [ + lgpl3Plus + mit + ]; maintainers = with maintainers; [ lopsided98 ]; }; } diff --git a/pkgs/development/python-modules/pymbolic/default.nix b/pkgs/development/python-modules/pymbolic/default.nix index de9b8e9ae14c..5b873c4e124d 100644 --- a/pkgs/development/python-modules/pymbolic/default.nix +++ b/pkgs/development/python-modules/pymbolic/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, matchpy -, pytestCheckHook -, pythonOlder -, pytools +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + matchpy, + pytestCheckHook, + pythonOlder, + pytools, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - pytools - ]; + propagatedBuildInputs = [ pytools ]; nativeCheckInputs = [ matchpy @@ -43,9 +42,7 @@ buildPythonPackage rec { --replace '"pytest>=2.3",' "" ''; - pythonImportsCheck = [ - "pymbolic" - ]; + pythonImportsCheck = [ "pymbolic" ]; meta = with lib; { description = "A package for symbolic computation"; diff --git a/pkgs/development/python-modules/pymc/default.nix b/pkgs/development/python-modules/pymc/default.nix index 6e68cdd712cb..91a56eb8c6c9 100644 --- a/pkgs/development/python-modules/pymc/default.nix +++ b/pkgs/development/python-modules/pymc/default.nix @@ -1,17 +1,18 @@ -{ lib -, arviz -, buildPythonPackage -, cachetools -, cloudpickle -, fetchFromGitHub -, numpy -, pandas -, pytensor -, pythonOlder -, rich -, scipy -, setuptools -, typing-extensions +{ + lib, + arviz, + buildPythonPackage, + cachetools, + cloudpickle, + fetchFromGitHub, + numpy, + pandas, + pytensor, + pythonOlder, + rich, + scipy, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace-fail ', "pytest-cov"' "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ arviz @@ -53,15 +52,16 @@ buildPythonPackage rec { # indicative for package usability hence tests are disabled by default. doCheck = false; - pythonImportsCheck = [ - "pymc" - ]; + pythonImportsCheck = [ "pymc" ]; meta = with lib; { description = "Bayesian estimation, particularly using Markov chain Monte Carlo (MCMC)"; homepage = "https://github.com/pymc-devs/pymc"; changelog = "https://github.com/pymc-devs/pymc/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ nidabdella ferrine ]; + maintainers = with maintainers; [ + nidabdella + ferrine + ]; }; } diff --git a/pkgs/development/python-modules/pymdown-extensions/default.nix b/pkgs/development/python-modules/pymdown-extensions/default.nix index 733f124d3655..472a9c334c3a 100644 --- a/pkgs/development/python-modules/pymdown-extensions/default.nix +++ b/pkgs/development/python-modules/pymdown-extensions/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytestCheckHook -, markdown -, pyyaml -, pygments +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytestCheckHook, + markdown, + pyyaml, + pygments, -# for passthru.tests -, mkdocstrings -, mkdocs-material -, mkdocs-mermaid2-plugin -, hydrus + # for passthru.tests + mkdocstrings, + mkdocs-material, + mkdocs-mermaid2-plugin, + hydrus, }: let @@ -56,7 +57,10 @@ buildPythonPackage rec { nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ markdown pygments ]; + propagatedBuildInputs = [ + markdown + pygments + ]; nativeCheckInputs = [ pytestCheckHook @@ -71,13 +75,21 @@ buildPythonPackage rec { pythonImportsCheck = map (ext: "pymdownx.${ext}") extensions; passthru.tests = { - inherit mkdocstrings mkdocs-material mkdocs-mermaid2-plugin hydrus; + inherit + mkdocstrings + mkdocs-material + mkdocs-mermaid2-plugin + hydrus + ; }; meta = with lib; { description = "Extensions for Python Markdown"; homepage = "https://facelessuser.github.io/pymdown-extensions/"; - license = with licenses; [ mit bsd2 ]; + license = with licenses; [ + mit + bsd2 + ]; maintainers = with maintainers; [ cpcloud ]; }; } diff --git a/pkgs/development/python-modules/pymdstat/default.nix b/pkgs/development/python-modules/pymdstat/default.nix index ced572b7b36d..96a17ca724f9 100644 --- a/pkgs/development/python-modules/pymdstat/default.nix +++ b/pkgs/development/python-modules/pymdstat/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymediainfo/default.nix b/pkgs/development/python-modules/pymediainfo/default.nix index c65e6d0e1487..f60c8ed5fcfd 100644 --- a/pkgs/development/python-modules/pymediainfo/default.nix +++ b/pkgs/development/python-modules/pymediainfo/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, fetchPypi -, buildPythonPackage -, libmediainfo -, setuptools-scm -, pytest -, glibcLocales -, pythonOlder +{ + lib, + stdenv, + fetchPypi, + buildPythonPackage, + libmediainfo, + setuptools-scm, + pytest, + glibcLocales, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { "${libmediainfo}/lib/libmediainfo${stdenv.hostPlatform.extensions.sharedLibrary}.0" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ glibcLocales @@ -45,9 +44,7 @@ buildPythonPackage rec { py.test -k 'not test_parse_url' tests ''; - pythonImportsCheck = [ - "pymediainfo" - ]; + pythonImportsCheck = [ "pymediainfo" ]; meta = with lib; { description = "Python wrapper for the mediainfo library"; diff --git a/pkgs/development/python-modules/pymediaroom/default.nix b/pkgs/development/python-modules/pymediaroom/default.nix index 744ef3d02e2b..8702da9fb97b 100644 --- a/pkgs/development/python-modules/pymediaroom/default.nix +++ b/pkgs/development/python-modules/pymediaroom/default.nix @@ -1,9 +1,10 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder -, xmltodict +{ + lib, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, + xmltodict, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymedio/default.nix b/pkgs/development/python-modules/pymedio/default.nix index 36673b071e61..29ca1baddc06 100644 --- a/pkgs/development/python-modules/pymedio/default.nix +++ b/pkgs/development/python-modules/pymedio/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, cryptography -, nibabel -, numpy -, pydicom -, simpleitk +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + cryptography, + nibabel, + numpy, + pydicom, + simpleitk, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-x3CHoWASDrUoCXfj73NF+0Y/3Mb31dK2Lh+o4OD9ryk="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ pytestCheckHook @@ -36,9 +35,7 @@ buildPythonPackage rec { simpleitk ]; - pythonImportsCheck = [ - "pymedio" - ]; + pythonImportsCheck = [ "pymedio" ]; meta = with lib; { description = "Read medical image files into Numpy arrays"; diff --git a/pkgs/development/python-modules/pymeeus/default.nix b/pkgs/development/python-modules/pymeeus/default.nix index 8799de923245..4178c593aa0b 100644 --- a/pkgs/development/python-modules/pymeeus/default.nix +++ b/pkgs/development/python-modules/pymeeus/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytest7CheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytest7CheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-VI9xhr2LlsvAac9kmo6ON33OSax0SGcJhJ/mOpnK1oQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytest7CheckHook - ]; + nativeCheckInputs = [ pytest7CheckHook ]; meta = with lib; { homepage = "https://github.com/architest/pymeeus"; diff --git a/pkgs/development/python-modules/pymelcloud/default.nix b/pkgs/development/python-modules/pymelcloud/default.nix index ad4e529c528a..d859da4ff22a 100644 --- a/pkgs/development/python-modules/pymelcloud/default.nix +++ b/pkgs/development/python-modules/pymelcloud/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, asynctest -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + asynctest, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sha256 = "1q6ny58cn9qy86blxbk6l2iklab7y11b734l7yb1bp35dmy27w26"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; doCheck = pythonOlder "3.11"; # asynctest is unsupported on python3.11 @@ -34,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pymelcloud" - ]; + pythonImportsCheck = [ "pymelcloud" ]; meta = with lib; { description = "Python module for interacting with MELCloud"; diff --git a/pkgs/development/python-modules/pymemcache/default.nix b/pkgs/development/python-modules/pymemcache/default.nix index 74784a35ff95..829d3863f304 100644 --- a/pkgs/development/python-modules/pymemcache/default.nix +++ b/pkgs/development/python-modules/pymemcache/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, faker -, fetchFromGitHub -, mock -, six -, pytestCheckHook -, python-memcached -, pythonOlder -, zstd -, stdenv +{ + lib, + buildPythonPackage, + faker, + fetchFromGitHub, + mock, + six, + pytestCheckHook, + python-memcached, + pythonOlder, + zstd, + stdenv, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-WgtHhp7lE6StoOBfSy9+v3ODe/+zUC7lGrc2S4M68+M="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ faker @@ -48,9 +47,7 @@ buildPythonPackage rec { "test_compressed_complex" ]; - pythonImportsCheck = [ - "pymemcache" - ]; + pythonImportsCheck = [ "pymemcache" ]; meta = with lib; { description = "Python memcached client"; diff --git a/pkgs/development/python-modules/pymemoize/default.nix b/pkgs/development/python-modules/pymemoize/default.nix index 14f2fc39aa9e..064c93931e63 100644 --- a/pkgs/development/python-modules/pymemoize/default.nix +++ b/pkgs/development/python-modules/pymemoize/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django +{ + lib, + buildPythonPackage, + fetchPypi, + django, }: buildPythonPackage rec { @@ -27,4 +28,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ mmai ]; }; } - diff --git a/pkgs/development/python-modules/pyment/default.nix b/pkgs/development/python-modules/pyment/default.nix index f3077acdd2ce..1628f723aa70 100644 --- a/pkgs/development/python-modules/pyment/default.nix +++ b/pkgs/development/python-modules/pyment/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pyment"; diff --git a/pkgs/development/python-modules/pymeta3/default.nix b/pkgs/development/python-modules/pymeta3/default.nix index f0350c4153b7..ba5c244ea49b 100644 --- a/pkgs/development/python-modules/pymeta3/default.nix +++ b/pkgs/development/python-modules/pymeta3/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, }: buildPythonPackage rec { pname = "pymeta3"; @@ -15,15 +16,16 @@ buildPythonPackage rec { doCheck = false; # Tests do not support Python3 - pythonImportsCheck = [ - "pymeta" - ]; + pythonImportsCheck = [ "pymeta" ]; meta = with lib; { description = "Pattern-matching language based on OMeta for Python 3 and 2"; homepage = "https://github.com/wbond/pymeta3"; changelog = "https://github.com/wbond/pymeta3/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ jfly matusf ]; + maintainers = with maintainers; [ + jfly + matusf + ]; }; } diff --git a/pkgs/development/python-modules/pymetar/default.nix b/pkgs/development/python-modules/pymetar/default.nix index 70bf0a4f8142..fc9009e53291 100644 --- a/pkgs/development/python-modules/pymetar/default.nix +++ b/pkgs/development/python-modules/pymetar/default.nix @@ -1,4 +1,10 @@ -{ lib, python, buildPythonPackage, isPy3k, fetchPypi }: +{ + lib, + python, + buildPythonPackage, + isPy3k, + fetchPypi, +}: buildPythonPackage rec { pname = "pymetar"; diff --git a/pkgs/development/python-modules/pymeteireann/default.nix b/pkgs/development/python-modules/pymeteireann/default.nix index be85e6a5e008..e3d251f99d73 100644 --- a/pkgs/development/python-modules/pymeteireann/default.nix +++ b/pkgs/development/python-modules/pymeteireann/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pytz -, xmltodict +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pytz, + xmltodict, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymeteoclimatic/default.nix b/pkgs/development/python-modules/pymeteoclimatic/default.nix index 6b17c943d142..6ecba40d2144 100644 --- a/pkgs/development/python-modules/pymeteoclimatic/default.nix +++ b/pkgs/development/python-modules/pymeteoclimatic/default.nix @@ -1,11 +1,12 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, lxml -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + lxml, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-rP0+OYDnQ4GuoV7DzR6jtgH6ilTMLjdaEFJcz3L0GYQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 lxml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "meteoclimatic" - ]; + pythonImportsCheck = [ "meteoclimatic" ]; meta = with lib; { description = "Python wrapper around the Meteoclimatic service"; diff --git a/pkgs/development/python-modules/pymetno/default.nix b/pkgs/development/python-modules/pymetno/default.nix index 4e16030d9575..90d1a42112ea 100644 --- a/pkgs/development/python-modules/pymetno/default.nix +++ b/pkgs/development/python-modules/pymetno/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, async-timeout -, xmltodict -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + async-timeout, + xmltodict, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { xmltodict ]; - pythonImportsCheck = [ - "metno" - ]; + pythonImportsCheck = [ "metno" ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pymfy/default.nix b/pkgs/development/python-modules/pymfy/default.nix index 5600db81b1d1..3e71ac6fbb84 100644 --- a/pkgs/development/python-modules/pymfy/default.nix +++ b/pkgs/development/python-modules/pymfy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpretty -, poetry-core -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpretty, + poetry-core, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { sha256 = "0wpjwjmywfyqgwvfa5kwcjpaljc32qa088kk88nl9nqdvc31mzhv"; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pymfy" - ]; + pythonImportsCheck = [ "pymfy" ]; meta = with lib; { description = "Python client for the Somfy Open API"; diff --git a/pkgs/development/python-modules/pymicrobot/default.nix b/pkgs/development/python-modules/pymicrobot/default.nix index 22581f493b73..88360e0a65ed 100644 --- a/pkgs/development/python-modules/pymicrobot/default.nix +++ b/pkgs/development/python-modules/pymicrobot/default.nix @@ -1,10 +1,11 @@ -{ lib -, bleak -, bleak-retry-connector -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + bleak, + bleak-retry-connector, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-8Nkkgznt4JzImJSAbdaX6znhvmgqwOIBjAXVhaMorLk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bleak @@ -32,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "microbot" - ]; + pythonImportsCheck = [ "microbot" ]; meta = with lib; { description = "Library to communicate with MicroBot"; diff --git a/pkgs/development/python-modules/pymiele/default.nix b/pkgs/development/python-modules/pymiele/default.nix index db951d6d7a99..745b83cb7f87 100644 --- a/pkgs/development/python-modules/pymiele/default.nix +++ b/pkgs/development/python-modules/pymiele/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-nlilHcBdWpCIknhE/RRvcmuz1waNdmcPt++Vi3amvHg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -31,9 +30,7 @@ buildPythonPackage rec { # No tests doCheck = false; - pythonImportsCheck = [ - "pymiele" - ]; + pythonImportsCheck = [ "pymiele" ]; meta = with lib; { changelog = "https://github.com/astrandb/pymiele/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/pymilter/default.nix b/pkgs/development/python-modules/pymilter/default.nix index 9cefa458d7e9..d26e354d54b2 100644 --- a/pkgs/development/python-modules/pymilter/default.nix +++ b/pkgs/development/python-modules/pymilter/default.nix @@ -1,14 +1,15 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, libmilter -, bsddb3 -, pydns -, iana-etc -, libredirect -, pyasyncore +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + libmilter, + bsddb3, + pydns, + iana-etc, + libredirect, + pyasyncore, }: buildPythonPackage rec { @@ -25,11 +26,15 @@ buildPythonPackage rec { buildInputs = [ libmilter ]; nativeCheckInputs = [ pyasyncore ]; - propagatedBuildInputs = [ bsddb3 pydns ]; - patches = [ (fetchpatch { - name = "Remove-calls-to-the-deprecated-method-assertEquals"; - url = "https://github.com/sdgathman/pymilter/pull/57.patch"; - hash = "sha256-/5LlDR15nMR3l7rkVjT3w4FbDTFAAgNdERWlPNL2TVg="; + propagatedBuildInputs = [ + bsddb3 + pydns + ]; + patches = [ + (fetchpatch { + name = "Remove-calls-to-the-deprecated-method-assertEquals"; + url = "https://github.com/sdgathman/pymilter/pull/57.patch"; + hash = "sha256-/5LlDR15nMR3l7rkVjT3w4FbDTFAAgNdERWlPNL2TVg="; }) ]; diff --git a/pkgs/development/python-modules/pymilvus/default.nix b/pkgs/development/python-modules/pymilvus/default.nix index e0a68e2a4385..3a498ee4ffa2 100644 --- a/pkgs/development/python-modules/pymilvus/default.nix +++ b/pkgs/development/python-modules/pymilvus/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, environs -, fetchFromGitHub -, gitpython -, grpcio -, grpcio-testing -, minio -, mmh3 -, pandas -, pyarrow -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, scikit-learn -, setuptools-scm -, ujson -, wheel +{ + lib, + buildPythonPackage, + environs, + fetchFromGitHub, + gitpython, + grpcio, + grpcio-testing, + minio, + mmh3, + pandas, + pyarrow, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + scikit-learn, + setuptools-scm, + ujson, + wheel, }: buildPythonPackage rec { @@ -62,13 +63,9 @@ buildPythonPackage rec { scikit-learn ]; - pythonImportsCheck = [ - "pymilvus" - ]; + pythonImportsCheck = [ "pymilvus" ]; - disabledTests = [ - "test_get_commit" - ]; + disabledTests = [ "test_get_commit" ]; meta = with lib; { description = "Python SDK for Milvus"; diff --git a/pkgs/development/python-modules/pymitv/default.nix b/pkgs/development/python-modules/pymitv/default.nix index 98d3a88e97b9..a5f14cbfebfc 100644 --- a/pkgs/development/python-modules/pymitv/default.nix +++ b/pkgs/development/python-modules/pymitv/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymongo-inmemory/default.nix b/pkgs/development/python-modules/pymongo-inmemory/default.nix index 6447b0a7ffe9..da76c5d01df3 100644 --- a/pkgs/development/python-modules/pymongo-inmemory/default.nix +++ b/pkgs/development/python-modules/pymongo-inmemory/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, poetry-core -, pymongo -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + poetry-core, + pymongo, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,17 +37,11 @@ buildPythonPackage rec { 'os.makedirs(current_path)' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - dependencies = [ - pymongo - ]; + dependencies = [ pymongo ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # new test with insufficient monkey patching, try to remove on next bump @@ -57,9 +52,7 @@ buildPythonPackage rec { export HOME="$(mktemp -d)" ''; - pythonImportsCheck = [ - "pymongo_inmemory" - ]; + pythonImportsCheck = [ "pymongo_inmemory" ]; meta = { homepage = "https://github.com/kaizendorks/pymongo_inmemory"; diff --git a/pkgs/development/python-modules/pymongo/default.nix b/pkgs/development/python-modules/pymongo/default.nix index 1ca7ca08ad50..1ba5c2a225db 100644 --- a/pkgs/development/python-modules/pymongo/default.nix +++ b/pkgs/development/python-modules/pymongo/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, dnspython +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + dnspython, -# for passthru.tests -, celery # check-input only -, flask-pymongo -, kombu # check-input only -, mongoengine -, motor -, pymongo-inmemory + # for passthru.tests + celery, # check-input only + flask-pymongo, + kombu, # check-input only + mongoengine, + motor, + pymongo-inmemory, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-QAB0CQuaYx8SC0LGGyIv10NJDBM6XS+ZwCCM78zMlk4="; }; - propagatedBuildInputs = [ - dnspython - ]; + propagatedBuildInputs = [ dnspython ]; # Tests call a running mongodb instance doCheck = false; @@ -42,7 +41,7 @@ buildPythonPackage rec { mongoengine motor pymongo-inmemory - ; + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/pymoo/default.nix b/pkgs/development/python-modules/pymoo/default.nix index 64858b1e076e..eaaec885e53f 100644 --- a/pkgs/development/python-modules/pymoo/default.nix +++ b/pkgs/development/python-modules/pymoo/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, writeText -, autograd -, cma -, cython -, deprecated -, dill -, matplotlib -, nbformat -, notebook -, numba -, numpy -, pandas -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + writeText, + autograd, + cma, + cython, + deprecated, + dill, + matplotlib, + nbformat, + notebook, + numba, + numpy, + pandas, + scipy, }: buildPythonPackage rec { @@ -56,9 +57,7 @@ buildPythonPackage rec { "print('Missing alive_progress needed for progress=True!') if progress else None" ''; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ autograd cma @@ -82,16 +81,14 @@ buildPythonPackage rec { numba ]; # Select some lightweight tests - pytestFlagsArray = [ - "-m 'not long'" - ]; + pytestFlagsArray = [ "-m 'not long'" ]; disabledTests = [ # ModuleNotFoundError: No module named 'pymoo.cython.non_dominated_sorting' "test_fast_non_dominated_sorting" "test_efficient_non_dominated_sort" ]; # Avoid crashing sandboxed build on macOS - MATPLOTLIBRC=writeText "" '' + MATPLOTLIBRC = writeText "" '' backend: Agg ''; diff --git a/pkgs/development/python-modules/pymorphy2/default.nix b/pkgs/development/python-modules/pymorphy2/default.nix index 57b843e54590..ee9e7daa80c3 100644 --- a/pkgs/development/python-modules/pymorphy2/default.nix +++ b/pkgs/development/python-modules/pymorphy2/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, isPy3k -, dawg-python -, docopt -, pymorphy2-dicts-ru +{ + lib, + fetchPypi, + buildPythonPackage, + isPy3k, + dawg-python, + docopt, + pymorphy2-dicts-ru, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymorphy2/dicts-ru.nix b/pkgs/development/python-modules/pymorphy2/dicts-ru.nix index ac1f9f980bef..fd9f2c5e7e87 100644 --- a/pkgs/development/python-modules/pymorphy2/dicts-ru.nix +++ b/pkgs/development/python-modules/pymorphy2/dicts-ru.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymorphy3/default.nix b/pkgs/development/python-modules/pymorphy3/default.nix index eea5aa474634..a09350f05eb1 100644 --- a/pkgs/development/python-modules/pymorphy3/default.nix +++ b/pkgs/development/python-modules/pymorphy3/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, click -, dawg-python -, docopt -, pytestCheckHook -, pymorphy3-dicts-ru -, pymorphy3-dicts-uk +{ + lib, + fetchFromGitHub, + buildPythonPackage, + click, + dawg-python, + docopt, + pytestCheckHook, + pymorphy3-dicts-ru, + pymorphy3-dicts-uk, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { pymorphy3-dicts-uk ]; - optional-dependencies.CLI = [ - click - ]; + optional-dependencies.CLI = [ click ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ optional-dependencies.CLI; + nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.CLI; pythonImportsCheck = [ "pymorphy3" ]; diff --git a/pkgs/development/python-modules/pymorphy3/dicts-ru.nix b/pkgs/development/python-modules/pymorphy3/dicts-ru.nix index db32d092a30c..6206a0cfe472 100644 --- a/pkgs/development/python-modules/pymorphy3/dicts-ru.nix +++ b/pkgs/development/python-modules/pymorphy3/dicts-ru.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymorphy3/dicts-uk.nix b/pkgs/development/python-modules/pymorphy3/dicts-uk.nix index 036bf452b893..62260cbc262d 100644 --- a/pkgs/development/python-modules/pymorphy3/dicts-uk.nix +++ b/pkgs/development/python-modules/pymorphy3/dicts-uk.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pympler/default.nix b/pkgs/development/python-modules/pympler/default.nix index 388fba817f78..b75c7e8b5af1 100644 --- a/pkgs/development/python-modules/pympler/default.nix +++ b/pkgs/development/python-modules/pympler/default.nix @@ -1,10 +1,12 @@ -{ lib, stdenv -, bottle -, buildPythonPackage -, fetchpatch -, fetchPypi -, pytestCheckHook -, pythonAtLeast +{ + lib, + stdenv, + bottle, + buildPythonPackage, + fetchpatch, + fetchPypi, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -28,27 +30,25 @@ buildPythonPackage rec { }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # There is a version of bottle bundled with Pympler, but it is broken on # Python 3.11. Fortunately, Pympler will preferentially import an external # bottle if it is available, so we make it an explicit dependency. - propagatedBuildInputs = [ - bottle - ]; + propagatedBuildInputs = [ bottle ]; - disabledTests = [ - # 'AssertionError: 'function (test.muppy.test_summary.func)' != 'function (muppy.test_summary.func)' - # https://github.com/pympler/pympler/issues/134 - "test_repr_function" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - # https://github.com/pympler/pympler/issues/148 - "test_findgarbage" - "test_get_tree" - "test_prune" - ]; + disabledTests = + [ + # 'AssertionError: 'function (test.muppy.test_summary.func)' != 'function (muppy.test_summary.func)' + # https://github.com/pympler/pympler/issues/134 + "test_repr_function" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + # https://github.com/pympler/pympler/issues/148 + "test_findgarbage" + "test_get_tree" + "test_prune" + ]; doCheck = stdenv.hostPlatform.isLinux; @@ -57,5 +57,4 @@ buildPythonPackage rec { homepage = "https://pythonhosted.org/Pympler/"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/pymsgbox/default.nix b/pkgs/development/python-modules/pymsgbox/default.nix index c05533638e65..9da299bb9eac 100644 --- a/pkgs/development/python-modules/pymsgbox/default.nix +++ b/pkgs/development/python-modules/pymsgbox/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, tkinter }: +{ + lib, + fetchPypi, + buildPythonPackage, + tkinter, +}: buildPythonPackage rec { pname = "pymsgbox"; diff --git a/pkgs/development/python-modules/pymsteams/default.nix b/pkgs/development/python-modules/pymsteams/default.nix index 3672ce628575..d4b9156a66b6 100644 --- a/pkgs/development/python-modules/pymsteams/default.nix +++ b/pkgs/development/python-modules/pymsteams/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-H1AEjUnEK+seKsnFnHpn1/aHxXcbyz67NbzhlGDtbk4="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests require network access doCheck = false; - pythonImportsCheck = [ - "pymsteams" - ]; + pythonImportsCheck = [ "pymsteams" ]; meta = with lib; { description = "Python module to interact with Microsoft Teams"; diff --git a/pkgs/development/python-modules/pymumble/default.nix b/pkgs/development/python-modules/pymumble/default.nix index 9b89805d5f40..bc15652d7027 100644 --- a/pkgs/development/python-modules/pymumble/default.nix +++ b/pkgs/development/python-modules/pymumble/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, opuslib -, protobuf -, pytestCheckHook -, pycrypto -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + opuslib, + protobuf, + pytestCheckHook, + pycrypto, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pymunk/default.nix b/pkgs/development/python-modules/pymunk/default.nix index f649f9bba0ad..cb23141284d7 100644 --- a/pkgs/development/python-modules/pymunk/default.nix +++ b/pkgs/development/python-modules/pymunk/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, python -, cffi -, pytestCheckHook -, pythonOlder -, ApplicationServices +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + python, + cffi, + pytestCheckHook, + pythonOlder, + ApplicationServices, }: buildPythonPackage rec { @@ -22,29 +23,19 @@ buildPythonPackage rec { hash = "sha256-AV6upaZcnbKmQm9tTItRB6LpckappjdHvMH/awn/KeE="; }; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; - buildInputs = lib.optionals stdenv.isDarwin [ - ApplicationServices - ]; + buildInputs = lib.optionals stdenv.isDarwin [ ApplicationServices ]; preBuild = '' ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "pymunk/tests" - ]; + pytestFlagsArray = [ "pymunk/tests" ]; - pythonImportsCheck = [ - "pymunk" - ]; + pythonImportsCheck = [ "pymunk" ]; meta = with lib; { description = "2d physics library"; diff --git a/pkgs/development/python-modules/pymupdf/default.nix b/pkgs/development/python-modules/pymupdf/default.nix index f225524e7e18..dd3026712a44 100644 --- a/pkgs/development/python-modules/pymupdf/default.nix +++ b/pkgs/development/python-modules/pymupdf/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, python +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + python, -# build-system -, libclang -, psutil -, setuptools -, swig + # build-system + libclang, + psutil, + setuptools, + swig, -# native dependencies -, freetype -, harfbuzz -, openjpeg -, jbig2dec -, libjpeg_turbo -, gumbo -, memstreamHook + # native dependencies + freetype, + harfbuzz, + openjpeg, + jbig2dec, + libjpeg_turbo, + gumbo, + memstreamHook, -# dependencies -, mupdf + # dependencies + mupdf, -# tests -, fonttools -, pytestCheckHook + # tests + fonttools, + pytestCheckHook, }: let @@ -36,7 +37,8 @@ let enablePython = true; python3 = python; }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "pymupdf"; version = "1.23.26"; pyproject = true; @@ -72,13 +74,9 @@ in buildPythonPackage rec { jbig2dec libjpeg_turbo gumbo - ] ++ lib.optionals (stdenv.system == "x86_64-darwin") [ - memstreamHook - ]; + ] ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memstreamHook ]; - propagatedBuildInputs = [ - mupdf-cxx - ]; + propagatedBuildInputs = [ mupdf-cxx ]; env = { # force using system MuPDF (must be defined in environment and empty) @@ -104,69 +102,71 @@ in buildPythonPackage rec { export PATH="$PATH:$out/bin"; ''; - disabledTests = [ - # fails for indeterminate reasons - "test_2548" - "test_2753" - "test_3020" - "test_3050" - "test_3058" - "test_3177" - "test_3186" - "test_color_count" - "test_pilsave" - "test_fz_write_pixmap_as_jpeg" - # NotImplementedError - "test_1824" - "test_2093" - "test_2093" - "test_2108" - "test_2182" - "test_2182" - "test_2246" - "test_2270" - "test_2270" - "test_2391" - "test_2788" - "test_2861" - "test_2871" - "test_2886" - "test_2904" - "test_2922" - "test_2934" - "test_2957" - "test_2969" - "test_3070" - "test_3131" - "test_3140" - "test_3209" - "test_3209" - "test_caret" - "test_deletion" - "test_file_info" - "test_line" - "test_page_links_generator" - "test_polyline" - "test_redact" - "test_techwriter_append" - "test_text2" - # Issue with FzArchive - "test_htmlbox" - "test_2246" - "test_3140" - "test_fit_springer" - "test_write_stabilized_with_links" - "test_textbox" - "test_delete_image" - # Fonts not available - "test_fontarchive" - "test_subset_fonts" - # Exclude lint tests - "test_flake8" - ] ++ lib.optionals stdenv.isDarwin [ - # darwin does not support OCR right now - "test_tesseract" - ]; + disabledTests = + [ + # fails for indeterminate reasons + "test_2548" + "test_2753" + "test_3020" + "test_3050" + "test_3058" + "test_3177" + "test_3186" + "test_color_count" + "test_pilsave" + "test_fz_write_pixmap_as_jpeg" + # NotImplementedError + "test_1824" + "test_2093" + "test_2093" + "test_2108" + "test_2182" + "test_2182" + "test_2246" + "test_2270" + "test_2270" + "test_2391" + "test_2788" + "test_2861" + "test_2871" + "test_2886" + "test_2904" + "test_2922" + "test_2934" + "test_2957" + "test_2969" + "test_3070" + "test_3131" + "test_3140" + "test_3209" + "test_3209" + "test_caret" + "test_deletion" + "test_file_info" + "test_line" + "test_page_links_generator" + "test_polyline" + "test_redact" + "test_techwriter_append" + "test_text2" + # Issue with FzArchive + "test_htmlbox" + "test_2246" + "test_3140" + "test_fit_springer" + "test_write_stabilized_with_links" + "test_textbox" + "test_delete_image" + # Fonts not available + "test_fontarchive" + "test_subset_fonts" + # Exclude lint tests + "test_flake8" + ] + ++ lib.optionals stdenv.isDarwin [ + # darwin does not support OCR right now + "test_tesseract" + ]; disabledTestPaths = [ # Issue with FzArchive diff --git a/pkgs/development/python-modules/pymvglive/default.nix b/pkgs/development/python-modules/pymvglive/default.nix index dc58ba668692..acd4676499a8 100644 --- a/pkgs/development/python-modules/pymvglive/default.nix +++ b/pkgs/development/python-modules/pymvglive/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "pymvglive"; diff --git a/pkgs/development/python-modules/pymysensors/default.nix b/pkgs/development/python-modules/pymysensors/default.nix index ee8c5be2a60a..df42f2a4cc37 100644 --- a/pkgs/development/python-modules/pymysensors/default.nix +++ b/pkgs/development/python-modules/pymysensors/default.nix @@ -1,19 +1,20 @@ -{ lib -, awesomeversion -, buildPythonPackage -, click -, crcmod -, fetchFromGitHub -, getmac -, intelhex -, paho-mqtt -, pyserial -, pyserial-asyncio -, pytest-sugar -, pytest-timeout -, pytestCheckHook -, pythonOlder -, voluptuous +{ + lib, + awesomeversion, + buildPythonPackage, + click, + crcmod, + fetchFromGitHub, + getmac, + intelhex, + paho-mqtt, + pyserial, + pyserial-asyncio, + pytest-sugar, + pytest-timeout, + pytestCheckHook, + pythonOlder, + voluptuous, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - mqtt-client = [ - paho-mqtt - ]; + mqtt-client = [ paho-mqtt ]; }; nativeCheckInputs = [ @@ -53,9 +52,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "mysensors" - ]; + pythonImportsCheck = [ "mysensors" ]; meta = with lib; { description = "Python API for talking to a MySensors gateway"; diff --git a/pkgs/development/python-modules/pymysql/default.nix b/pkgs/development/python-modules/pymysql/default.nix index 1b5a00c27ac1..7e9fdcfeb48b 100644 --- a/pkgs/development/python-modules/pymysql/default.nix +++ b/pkgs/development/python-modules/pymysql/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, cryptography +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + cryptography, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-TxOn34vzalHoHdnzYF/t5FpIeP4C+SNjSf2Co/BhL5Y="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ cryptography ]; diff --git a/pkgs/development/python-modules/pymysqlsa/default.nix b/pkgs/development/python-modules/pymysqlsa/default.nix index 49b5a49193de..9d1609d506ca 100644 --- a/pkgs/development/python-modules/pymysqlsa/default.nix +++ b/pkgs/development/python-modules/pymysqlsa/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pymysql -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchPypi, + pymysql, + sqlalchemy, }: buildPythonPackage rec { @@ -15,12 +16,14 @@ buildPythonPackage rec { sha256 = "a2676bce514a29b2d6ab418812259b0c2f7564150ac53455420a20bd7935314a"; }; - propagatedBuildInputs = [ pymysql sqlalchemy ]; + propagatedBuildInputs = [ + pymysql + sqlalchemy + ]; meta = with lib; { description = "PyMySQL dialect for SQL Alchemy"; homepage = "https://pypi.python.org/pypi/pymysql_sa"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pymystem3/default.nix b/pkgs/development/python-modules/pymystem3/default.nix index 9ffb4bcdedae..0dd0b329acd0 100644 --- a/pkgs/development/python-modules/pymystem3/default.nix +++ b/pkgs/development/python-modules/pymystem3/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, isPy3k -, requests -, flake8 -, mock -, pytest -, mystem +{ + lib, + fetchPypi, + buildPythonPackage, + isPy3k, + requests, + flake8, + mock, + pytest, + mystem, }: buildPythonPackage rec { @@ -20,7 +21,11 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ flake8 mock pytest ]; + nativeCheckInputs = [ + flake8 + mock + pytest + ]; doCheck = isPy3k; # fails on linting postPatch = '' diff --git a/pkgs/development/python-modules/pynac/default.nix b/pkgs/development/python-modules/pynac/default.nix index 45fb25f7315a..0f1c016ad3dc 100644 --- a/pkgs/development/python-modules/pynac/default.nix +++ b/pkgs/development/python-modules/pynac/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchurl +{ + lib, + buildPythonPackage, + fetchurl, }: buildPythonPackage { @@ -18,5 +19,4 @@ buildPythonPackage { description = "A Python wrapper around the Dynac charged particle simulator"; license = licenses.gpl3; }; - } diff --git a/pkgs/development/python-modules/pynacl/default.nix b/pkgs/development/python-modules/pynacl/default.nix index bd92adf25011..5db76ccd3d97 100644 --- a/pkgs/development/python-modules/pynacl/default.nix +++ b/pkgs/development/python-modules/pynacl/default.nix @@ -1,19 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, sphinxHook -, pythonOlder -, libsodium -, cffi -, hypothesis +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + sphinxHook, + pythonOlder, + libsodium, + cffi, + hypothesis, }: buildPythonPackage rec { pname = "pynacl"; version = "1.5.0"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -24,21 +28,13 @@ buildPythonPackage rec { sha256 = "8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba"; }; - nativeBuildInputs = [ - sphinxHook - ]; + nativeBuildInputs = [ sphinxHook ]; - buildInputs = [ - libsodium - ]; + buildInputs = [ libsodium ]; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; nativeCheckInputs = [ hypothesis @@ -47,9 +43,7 @@ buildPythonPackage rec { SODIUM_INSTALL = "system"; - pythonImportsCheck = [ - "nacl" - ]; + pythonImportsCheck = [ "nacl" ]; meta = with lib; { description = "Python binding to the Networking and Cryptography (NaCl) library"; diff --git a/pkgs/development/python-modules/pynamecheap/default.nix b/pkgs/development/python-modules/pynamecheap/default.nix index 3c05dd30eb1e..6a974f168468 100644 --- a/pkgs/development/python-modules/pynamecheap/default.nix +++ b/pkgs/development/python-modules/pynamecheap/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pynamodb/default.nix b/pkgs/development/python-modules/pynamodb/default.nix index d22ed78e02d1..e7d6803b288e 100644 --- a/pkgs/development/python-modules/pynamodb/default.nix +++ b/pkgs/development/python-modules/pynamodb/default.nix @@ -1,14 +1,15 @@ -{ lib -, blinker -, botocore -, buildPythonPackage -, fetchFromGitHub -, pytest-env -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + blinker, + botocore, + buildPythonPackage, + fetchFromGitHub, + pytest-env, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -25,20 +26,12 @@ buildPythonPackage rec { hash = "sha256-Ag/ivZ2SDYX0kwXbExt3kE/pMJgfoGc6gWoy+Rr6GTw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - botocore - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + dependencies = [ botocore ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]; optional-dependencies = { - signal = [ - blinker - ]; + signal = [ blinker ]; }; nativeCheckInputs = [ @@ -47,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ optional-dependencies.signal; - pythonImportsCheck = [ - "pynamodb" - ]; + pythonImportsCheck = [ "pynamodb" ]; disabledTests = [ # Tests requires credentials or network access diff --git a/pkgs/development/python-modules/pynanoleaf/default.nix b/pkgs/development/python-modules/pynanoleaf/default.nix index 443865d8eaad..a9864607599f 100644 --- a/pkgs/development/python-modules/pynanoleaf/default.nix +++ b/pkgs/development/python-modules/pynanoleaf/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + requests, +}: buildPythonPackage rec { pname = "pynanoleaf"; @@ -17,9 +23,7 @@ buildPythonPackage rec { # pynanoleaf does not contain tests doCheck = false; - pythonImportsCheck = [ - "pynanoleaf" - ]; + pythonImportsCheck = [ "pynanoleaf" ]; meta = with lib; { homepage = "https://github.com/Oro/pynanoleaf"; diff --git a/pkgs/development/python-modules/pync/default.nix b/pkgs/development/python-modules/pync/default.nix index d3efec9a6a26..9206787f4973 100644 --- a/pkgs/development/python-modules/pync/default.nix +++ b/pkgs/development/python-modules/pync/default.nix @@ -1,13 +1,15 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi -, python-dateutil -, pkgs -, which +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + python-dateutil, + pkgs, + which, }: buildPythonPackage rec { - version = "2.0.3"; + version = "2.0.3"; pname = "pync"; format = "setuptools"; @@ -25,10 +27,9 @@ buildPythonPackage rec { meta = with lib; { description = "Python Wrapper for Mac OS 10.8 Notification Center"; - homepage = "https://pypi.python.org/pypi/pync"; - license = licenses.mit; - platforms = platforms.darwin; + homepage = "https://pypi.python.org/pypi/pync"; + license = licenses.mit; + platforms = platforms.darwin; maintainers = with maintainers; [ lovek323 ]; }; - } diff --git a/pkgs/development/python-modules/pynello/default.nix b/pkgs/development/python-modules/pynello/default.nix index 4435bb7ec30e..919674c639fc 100644 --- a/pkgs/development/python-modules/pynello/default.nix +++ b/pkgs/development/python-modules/pynello/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python-dateutil -, pythonOlder -, requests -, requests-oauthlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-dateutil, + pythonOlder, + requests, + requests-oauthlib, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pynello" - ]; + pythonImportsCheck = [ "pynello" ]; meta = with lib; { description = "Python library for nello.io intercoms"; diff --git a/pkgs/development/python-modules/pynest2d/default.nix b/pkgs/development/python-modules/pynest2d/default.nix index a3b1929feb44..87cbebb03d7f 100644 --- a/pkgs/development/python-modules/pynest2d/default.nix +++ b/pkgs/development/python-modules/pynest2d/default.nix @@ -1,5 +1,13 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, cmake -, libnest2d, sip4, clipper }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + cmake, + libnest2d, + sip4, + clipper, +}: buildPythonPackage rec { version = "4.12.0"; @@ -13,14 +21,18 @@ buildPythonPackage rec { hash = "sha256-QQdTDhO4i9NVhegGTmdEQSNv3gooaZzTX/Rv86h3GEo="; }; - propagatedBuildInputs = [ libnest2d sip4 clipper ]; + propagatedBuildInputs = [ + libnest2d + sip4 + clipper + ]; nativeBuildInputs = [ cmake ]; CLIPPER_PATH = "${clipper.out}"; postPatch = '' - sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake - ''; + sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake + ''; meta = with lib; { description = "Python bindings for libnest2d"; diff --git a/pkgs/development/python-modules/pynetbox/default.nix b/pkgs/development/python-modules/pynetbox/default.nix index 1051764887b1..0254369801bc 100644 --- a/pkgs/development/python-modules/pynetbox/default.nix +++ b/pkgs/development/python-modules/pynetbox/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, packaging -, requests -, six -, pytestCheckHook -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + packaging, + requests, + six, + pytestCheckHook, + pyyaml, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-QIvh24ZqnF8uF9HOuY0yt3QT/jHgJ2C916d+rBqezWQ="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ packaging diff --git a/pkgs/development/python-modules/pynetdicom/default.nix b/pkgs/development/python-modules/pynetdicom/default.nix index c8e11897c727..d5126f11169c 100644 --- a/pkgs/development/python-modules/pynetdicom/default.nix +++ b/pkgs/development/python-modules/pynetdicom/default.nix @@ -84,14 +84,16 @@ buildPythonPackage rec { "TestStoreSCUCLI" ]; - disabledTestPaths = [ - # Ignore apps tests - "pynetdicom/apps/tests/" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # https://github.com/pydicom/pynetdicom/issues/924 - "pynetdicom/tests/test_assoc.py" - "pynetdicom/tests/test_transport.py" - ]; + disabledTestPaths = + [ + # Ignore apps tests + "pynetdicom/apps/tests/" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # https://github.com/pydicom/pynetdicom/issues/924 + "pynetdicom/tests/test_assoc.py" + "pynetdicom/tests/test_transport.py" + ]; pythonImportsCheck = [ "pynetdicom" ]; diff --git a/pkgs/development/python-modules/pynetgear/default.nix b/pkgs/development/python-modules/pynetgear/default.nix index 1a20de636537..301a957e861f 100644 --- a/pkgs/development/python-modules/pynetgear/default.nix +++ b/pkgs/development/python-modules/pynetgear/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-5Lj2cK/SOGgaPu8dI9X3Leg4dPAY7tdIHCzFnNaube8="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - pythonImportsCheck = [ - "pynetgear" - ]; + pythonImportsCheck = [ "pynetgear" ]; # Tests don't pass # https://github.com/MatMaul/pynetgear/issues/109 diff --git a/pkgs/development/python-modules/pyngo/default.nix b/pkgs/development/python-modules/pyngo/default.nix index ab2cce0b5652..f580b50b01c1 100644 --- a/pkgs/development/python-modules/pyngo/default.nix +++ b/pkgs/development/python-modules/pyngo/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, django -, pydantic -, typing-extensions + # dependencies + django, + pydantic, + typing-extensions, -# tests -, django-stubs -, pytestCheckHook -, pytest-asyncio + # tests + django-stubs, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyngrok/default.nix b/pkgs/development/python-modules/pyngrok/default.nix index 0646d6ac8b4b..427b7245219f 100644 --- a/pkgs/development/python-modules/pyngrok/default.nix +++ b/pkgs/development/python-modules/pyngrok/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, pyyaml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + pyyaml, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-BcD8pjQJE2WKvdxiOgpTknrO2T4n/++AHSSBS8sYDqo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; pythonImportsCheck = [ "pyngrok" ]; diff --git a/pkgs/development/python-modules/pynina/default.nix b/pkgs/development/python-modules/pynina/default.nix index 73e611d0f501..9f95a1064550 100644 --- a/pkgs/development/python-modules/pynina/default.nix +++ b/pkgs/development/python-modules/pynina/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-6HJ78tKl6If/ezwOrGl3VEYO4eMh/6cZq2j2AMBr0I8="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pynina" - ]; + pythonImportsCheck = [ "pynina" ]; meta = with lib; { description = "Python API wrapper to retrieve warnings from the german NINA app"; diff --git a/pkgs/development/python-modules/pynisher/default.nix b/pkgs/development/python-modules/pynisher/default.nix index 34a6f158f121..8249af5aa44c 100644 --- a/pkgs/development/python-modules/pynisher/default.nix +++ b/pkgs/development/python-modules/pynisher/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, psutil -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + psutil, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # No tests in the Pypi archive doCheck = false; - pythonImportsCheck = [ - "pynisher" - ]; + pythonImportsCheck = [ "pynisher" ]; meta = with lib; { description = "Module intended to limit a functions resources"; diff --git a/pkgs/development/python-modules/pynitrokey/default.nix b/pkgs/development/python-modules/pynitrokey/default.nix index 41218201fd55..900198cb425a 100644 --- a/pkgs/development/python-modules/pynitrokey/default.nix +++ b/pkgs/development/python-modules/pynitrokey/default.nix @@ -1,31 +1,32 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, installShellFiles -, libnitrokey -, flit-core -, certifi -, cffi -, click -, cryptography -, ecdsa -, fido2 -, intelhex -, nkdfu -, python-dateutil -, pyusb -, requests -, spsdk -, tqdm -, tlv8 -, typing-extensions -, pyserial -, protobuf -, click-aliases -, semver -, nethsm -, importlib-metadata +{ + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + installShellFiles, + libnitrokey, + flit-core, + certifi, + cffi, + click, + cryptography, + ecdsa, + fido2, + intelhex, + nkdfu, + python-dateutil, + pyusb, + requests, + spsdk, + tqdm, + tlv8, + typing-extensions, + pyserial, + protobuf, + click-aliases, + semver, + nethsm, + importlib-metadata, }: let @@ -80,9 +81,7 @@ buildPythonPackage { # libnitrokey is not propagated to users of the pynitrokey Python package. # It is only usable from the wrapped bin/nitropy - makeWrapperArgs = [ - "--set LIBNK_PATH ${lib.makeLibraryPath [ libnitrokey ]}" - ]; + makeWrapperArgs = [ "--set LIBNK_PATH ${lib.makeLibraryPath [ libnitrokey ]}" ]; # no tests doCheck = false; @@ -100,8 +99,14 @@ buildPythonPackage { description = "Python client for Nitrokey devices"; homepage = "https://github.com/Nitrokey/pynitrokey"; changelog = "https://github.com/Nitrokey/pynitrokey/releases/tag/v${version}"; - license = with licenses; [ asl20 mit ]; - maintainers = with maintainers; [ frogamic raitobezarius ]; + license = with licenses; [ + asl20 + mit + ]; + maintainers = with maintainers; [ + frogamic + raitobezarius + ]; inherit mainProgram; }; } diff --git a/pkgs/development/python-modules/pynndescent/default.nix b/pkgs/development/python-modules/pynndescent/default.nix index 3c77fec41b35..6b2c088209cb 100644 --- a/pkgs/development/python-modules/pynndescent/default.nix +++ b/pkgs/development/python-modules/pynndescent/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-metadata -, joblib -, llvmlite -, numba -, scikit-learn -, scipy -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-metadata, + joblib, + llvmlite, + numba, + scikit-learn, + scipy, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-BzYpH8u+39Xgo6KA9xpj+Osvi9lnDUwLUawbTQga33A="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ joblib @@ -34,17 +33,11 @@ buildPythonPackage rec { numba scikit-learn scipy - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pynndescent" - ]; + pythonImportsCheck = [ "pynndescent" ]; meta = with lib; { description = "Nearest Neighbor Descent"; diff --git a/pkgs/development/python-modules/pynose/default.nix b/pkgs/development/python-modules/pynose/default.nix index e58681cbe966..c86f814aac7b 100644 --- a/pkgs/development/python-modules/pynose/default.nix +++ b/pkgs/development/python-modules/pynose/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pynotifier/default.nix b/pkgs/development/python-modules/pynotifier/default.nix index 7968677f1b62..f264d9a32803 100644 --- a/pkgs/development/python-modules/pynotifier/default.nix +++ b/pkgs/development/python-modules/pynotifier/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, libnotify -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + libnotify, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { '"${lib.getExe' libnotify "notify-send"}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pynotifier" ]; diff --git a/pkgs/development/python-modules/pynput/default.nix b/pkgs/development/python-modules/pynput/default.nix index 88c46532d997..7cf59cda8eec 100644 --- a/pkgs/development/python-modules/pynput/default.nix +++ b/pkgs/development/python-modules/pynput/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools -, setuptools-lint -, sphinx + # build-system + setuptools, + setuptools-lint, + sphinx, -# dependencies -, xlib -, evdev -, darwin -, six + # dependencies + xlib, + evdev, + darwin, + six, - # tests -, unittestCheckHook - }: + # tests + unittestCheckHook, +}: buildPythonPackage rec { pname = "pynput"; @@ -41,21 +42,23 @@ buildPythonPackage rec { sphinx ]; - propagatedBuildInputs = [ - six - ] ++ lib.optionals stdenv.isLinux [ - evdev - xlib - ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ - ApplicationServices - Quartz - ]); + propagatedBuildInputs = + [ six ] + ++ lib.optionals stdenv.isLinux [ + evdev + xlib + ] + ++ lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk.frameworks; + [ + ApplicationServices + Quartz + ] + ); doCheck = false; # requires running X server - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { broken = stdenv.isDarwin; @@ -65,4 +68,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ nickhu ]; }; } - diff --git a/pkgs/development/python-modules/pynrrd/default.nix b/pkgs/development/python-modules/pynrrd/default.nix index 7d36e42da70d..9be59daec1f5 100644 --- a/pkgs/development/python-modules/pynrrd/default.nix +++ b/pkgs/development/python-modules/pynrrd/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, numpy -, nptyping -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + numpy, + nptyping, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "nrrd" - ]; + pythonImportsCheck = [ "nrrd" ]; meta = with lib; { homepage = "https://github.com/mhe/pynrrd"; diff --git a/pkgs/development/python-modules/pynuki/default.nix b/pkgs/development/python-modules/pynuki/default.nix index 28c7117d680a..42de5c5bdc02 100644 --- a/pkgs/development/python-modules/pynuki/default.nix +++ b/pkgs/development/python-modules/pynuki/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pynacl -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pynacl, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-PF5FmAuPcJXq8gQ8HyzdtL2HiiUjueT+LAS1lYRvrwM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pynacl @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pynuki" - ]; + pythonImportsCheck = [ "pynuki" ]; meta = with lib; { description = "Python bindings for nuki.io bridges"; diff --git a/pkgs/development/python-modules/pynut2/default.nix b/pkgs/development/python-modules/pynut2/default.nix index 4c56cdff0de8..e49d8371cf4a 100644 --- a/pkgs/development/python-modules/pynut2/default.nix +++ b/pkgs/development/python-modules/pynut2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "1lg7n1frndfgw73s0ssl1h7kc6zxm7fpiwlc6v6d60kxzaj1dphx"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; pythonImportsCheck = [ "pynut2.nut2" ]; diff --git a/pkgs/development/python-modules/pynvim-pp/default.nix b/pkgs/development/python-modules/pynvim-pp/default.nix index a1dee20139b4..b22e0d372981 100644 --- a/pkgs/development/python-modules/pynvim-pp/default.nix +++ b/pkgs/development/python-modules/pynvim-pp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pynvim -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pynvim, + setuptools, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/pynvim/default.nix b/pkgs/development/python-modules/pynvim/default.nix index 829ec7d68b12..c17df5386938 100644 --- a/pkgs/development/python-modules/pynvim/default.nix +++ b/pkgs/development/python-modules/pynvim/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, msgpack -, greenlet -, pythonOlder -, isPyPy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + msgpack, + greenlet, + pythonOlder, + isPyPy, }: buildPythonPackage rec { @@ -27,22 +28,14 @@ buildPythonPackage rec { --replace " + pytest_runner" "" ''; - buildInputs = [ - setuptools - ]; + buildInputs = [ setuptools ]; - propagatedBuildInputs = [ - msgpack - ] ++ lib.optionals (!isPyPy) [ - greenlet - ]; + propagatedBuildInputs = [ msgpack ] ++ lib.optionals (!isPyPy) [ greenlet ]; # Tests require pkgs.neovim which we cannot add because of circular dependency doCheck = false; - pythonImportsCheck = [ - "pynvim" - ]; + pythonImportsCheck = [ "pynvim" ]; meta = with lib; { description = "Python client for Neovim"; diff --git a/pkgs/development/python-modules/pynvml/default.nix b/pkgs/development/python-modules/pynvml/default.nix index f84a8e0370c4..a115cd723998 100644 --- a/pkgs/development/python-modules/pynvml/default.nix +++ b/pkgs/development/python-modules/pynvml/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, pythonOlder -, addOpenGLRunpath -, setuptools -, pytestCheckHook -, versioneer +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + pythonOlder, + addOpenGLRunpath, + setuptools, + pytestCheckHook, + versioneer, }: buildPythonPackage rec { @@ -39,12 +40,13 @@ buildPythonPackage rec { versioneer ]; - pythonImportsCheck = [ "pynvml" "pynvml.smi" ]; - - nativeCheckInputs = [ - pytestCheckHook + pythonImportsCheck = [ + "pynvml" + "pynvml.smi" ]; + nativeCheckInputs = [ pytestCheckHook ]; + # OSError: /run/opengl-driver/lib/libnvidia-ml.so.1: cannot open shared object file: No such file or directory doCheck = false; diff --git a/pkgs/development/python-modules/pynx584/default.nix b/pkgs/development/python-modules/pynx584/default.nix index 405f66a7465c..49aaf6eabcb2 100644 --- a/pkgs/development/python-modules/pynx584/default.nix +++ b/pkgs/development/python-modules/pynx584/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, mock -, prettytable -, pyserial -, pytestCheckHook -, pythonOlder -, requests -, stevedore +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + mock, + prettytable, + pyserial, + pytestCheckHook, + pythonOlder, + requests, + stevedore, }: buildPythonPackage rec { @@ -17,7 +18,6 @@ buildPythonPackage rec { format = "setuptools"; disabled = pythonOlder "3.6"; - src = fetchFromGitHub { owner = "kk7ds"; repo = pname; diff --git a/pkgs/development/python-modules/pynzb/default.nix b/pkgs/development/python-modules/pynzb/default.nix index 18ef6c031285..52d94c093f67 100644 --- a/pkgs/development/python-modules/pynzb/default.nix +++ b/pkgs/development/python-modules/pynzb/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python +{ + lib, + buildPythonPackage, + fetchPypi, + python, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/pyobihai/default.nix b/pkgs/development/python-modules/pyobihai/default.nix index 1038c162556a..5a899e698795 100644 --- a/pkgs/development/python-modules/pyobihai/default.nix +++ b/pkgs/development/python-modules/pyobihai/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyobihai" - ]; + pythonImportsCheck = [ "pyobihai" ]; meta = with lib; { description = "Module to interact with Obihai devices"; diff --git a/pkgs/development/python-modules/pyocd-pemicro/default.nix b/pkgs/development/python-modules/pyocd-pemicro/default.nix index 74dee58903cd..174ec65e2f73 100644 --- a/pkgs/development/python-modules/pyocd-pemicro/default.nix +++ b/pkgs/development/python-modules/pyocd-pemicro/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools-scm -, pyocd -, pypemicro +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools-scm, + pyocd, + pypemicro, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-qi803s8fkrLizcCLeDRz7CTQ56NGLQ4PPwCbxiRigwc="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ pyocd diff --git a/pkgs/development/python-modules/pyocd/default.nix b/pkgs/development/python-modules/pyocd/default.nix index 1f09ed696da0..7f7f8d2465a3 100644 --- a/pkgs/development/python-modules/pyocd/default.nix +++ b/pkgs/development/python-modules/pyocd/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, capstone_4 -, cmsis-pack-manager -, colorama -, importlib-metadata -, importlib-resources -, intelhex -, intervaltree -, lark -, natsort -, prettytable -, pyelftools -, pylink-square -, pyusb -, pyyaml -, setuptools -, setuptools-scm -, typing-extensions -, stdenv -, hidapi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + capstone_4, + cmsis-pack-manager, + colorama, + importlib-metadata, + importlib-resources, + intelhex, + intervaltree, + lark, + natsort, + prettytable, + pyelftools, + pylink-square, + pyusb, + pyyaml, + setuptools, + setuptools-scm, + typing-extensions, + stdenv, + hidapi, + pytestCheckHook, }: buildPythonPackage rec { @@ -69,17 +70,11 @@ buildPythonPackage rec { pyusb pyyaml typing-extensions - ] ++ lib.optionals (!stdenv.isLinux) [ - hidapi - ]; + ] ++ lib.optionals (!stdenv.isLinux) [ hidapi ]; - pythonImportsCheck = [ - "pyocd" - ]; + pythonImportsCheck = [ "pyocd" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/pyocd/pyOCD/releases/tag/v${version}"; @@ -87,6 +82,9 @@ buildPythonPackage rec { downloadPage = "https://github.com/pyocd/pyOCD"; homepage = "https://pyocd.io"; license = licenses.asl20; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/pyocr/default.nix b/pkgs/development/python-modules/pyocr/default.nix index 0d87538a1ce4..91366a33c996 100644 --- a/pkgs/development/python-modules/pyocr/default.nix +++ b/pkgs/development/python-modules/pyocr/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, fetchFromGitLab -, buildPythonPackage -, pillow -, tesseract -, cuneiform -, isPy3k -, substituteAll -, pytestCheckHook -, setuptools -, setuptools-scm -, withTesseractSupport ? true -, withCuneiformSupport ? stdenv.hostPlatform.isLinux +{ + lib, + stdenv, + fetchFromGitLab, + buildPythonPackage, + pillow, + tesseract, + cuneiform, + isPy3k, + substituteAll, + pytestCheckHook, + setuptools, + setuptools-scm, + withTesseractSupport ? true, + withCuneiformSupport ? stdenv.hostPlatform.isLinux, }: buildPythonPackage rec { @@ -30,18 +31,24 @@ buildPythonPackage rec { hash = "sha256-gE0+qbHCwpDdxXFY+4rjVU2FbUSfSVrvrVMcWUk+9FU="; }; - patches = [] ++ (lib.optional withTesseractSupport (substituteAll { + patches = + [ ] + ++ (lib.optional withTesseractSupport (substituteAll { src = ./paths-tesseract.patch; inherit tesseract; tesseractLibraryLocation = "${tesseract}/lib/libtesseract${stdenv.hostPlatform.extensions.sharedLibrary}"; - })) ++ (lib.optional stdenv.hostPlatform.isLinux (substituteAll { + })) + ++ (lib.optional stdenv.hostPlatform.isLinux (substituteAll { src = ./paths-cuneiform.patch; inherit cuneiform; })); propagatedBuildInputs = [ pillow ]; - nativeBuildInputs = [ setuptools setuptools-scm ]; + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -50,6 +57,9 @@ buildPythonPackage rec { changelog = "https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/blob/${version}/ChangeLog"; description = "A Python wrapper for Tesseract and Cuneiform"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ symphorien tomodachi94 ]; + maintainers = with maintainers; [ + symphorien + tomodachi94 + ]; }; } diff --git a/pkgs/development/python-modules/pyoctoprintapi/default.nix b/pkgs/development/python-modules/pyoctoprintapi/default.nix index 8dfd9cdf57f3..4fecaf44b439 100644 --- a/pkgs/development/python-modules/pyoctoprintapi/default.nix +++ b/pkgs/development/python-modules/pyoctoprintapi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, -# propagated -, aiohttp + # propagated + aiohttp, -# tests -, pytest-asyncio -, pytestCheckHook + # tests + pytest-asyncio, + pytestCheckHook, }: let @@ -29,17 +30,11 @@ buildPythonPackage { hash = "sha256-DKqkT0Wyxf4grXBqei9IYBGMOgPxjzuo955M/nHDLo8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - pythonImportsCheck = [ - "pyoctoprintapi" - ]; + pythonImportsCheck = [ "pyoctoprintapi" ]; nativeCheckInputs = [ pytest-asyncio @@ -51,6 +46,6 @@ buildPythonPackage { homepage = "https://github.com/rfleming71/pyoctoprintapi"; changelog = "https://github.com/rfleming71/pyoctoprintapi/releases/tag/v${version}"; license = licenses.mit; - maintainers= with maintainers; [ hexa ]; + maintainers = with maintainers; [ hexa ]; }; } diff --git a/pkgs/development/python-modules/pyodbc/default.nix b/pkgs/development/python-modules/pyodbc/default.nix index da48d0d828ae..5e224805d14d 100644 --- a/pkgs/development/python-modules/pyodbc/default.nix +++ b/pkgs/development/python-modules/pyodbc/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, pythonOlder -, unixODBC +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + pythonOlder, + unixODBC, }: buildPythonPackage rec { @@ -19,19 +20,15 @@ buildPythonPackage rec { }; nativeBuildInputs = [ - unixODBC # for odbc_config + unixODBC # for odbc_config ]; - buildInputs = [ - unixODBC - ]; + buildInputs = [ unixODBC ]; # Tests require a database server doCheck = false; - pythonImportsCheck = [ - "pyodbc" - ]; + pythonImportsCheck = [ "pyodbc" ]; meta = with lib; { description = "Python ODBC module to connect to almost any database"; diff --git a/pkgs/development/python-modules/pyogg/default.nix b/pkgs/development/python-modules/pyogg/default.nix index 77f63870a296..ba6d5dbb0c58 100644 --- a/pkgs/development/python-modules/pyogg/default.nix +++ b/pkgs/development/python-modules/pyogg/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, lib -, fetchPypi -, buildPythonPackage -, libvorbis -, flac -, libogg -, libopus -, opusfile -, substituteAll -, python +{ + stdenv, + lib, + fetchPypi, + buildPythonPackage, + libvorbis, + flac, + libogg, + libopus, + opusfile, + substituteAll, + python, }: buildPythonPackage rec { @@ -41,17 +42,20 @@ buildPythonPackage rec { doCheck = false; # patch has dos style eol - patchFlags = [ "-p1" "--binary" ]; + patchFlags = [ + "-p1" + "--binary" + ]; patches = [ (substituteAll { src = ./pyogg-paths.patch; - flacLibPath="${flac.out}/lib/libFLAC${stdenv.hostPlatform.extensions.sharedLibrary}"; - oggLibPath="${libogg}/lib/libogg${stdenv.hostPlatform.extensions.sharedLibrary}"; - vorbisLibPath="${libvorbis}/lib/libvorbis${stdenv.hostPlatform.extensions.sharedLibrary}"; - vorbisFileLibPath="${libvorbis}/lib/libvorbisfile${stdenv.hostPlatform.extensions.sharedLibrary}"; - vorbisEncLibPath="${libvorbis}/lib/libvorbisenc${stdenv.hostPlatform.extensions.sharedLibrary}"; - opusLibPath="${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}"; - opusFileLibPath="${opusfile}/lib/libopusfile${stdenv.hostPlatform.extensions.sharedLibrary}"; + flacLibPath = "${flac.out}/lib/libFLAC${stdenv.hostPlatform.extensions.sharedLibrary}"; + oggLibPath = "${libogg}/lib/libogg${stdenv.hostPlatform.extensions.sharedLibrary}"; + vorbisLibPath = "${libvorbis}/lib/libvorbis${stdenv.hostPlatform.extensions.sharedLibrary}"; + vorbisFileLibPath = "${libvorbis}/lib/libvorbisfile${stdenv.hostPlatform.extensions.sharedLibrary}"; + vorbisEncLibPath = "${libvorbis}/lib/libvorbisenc${stdenv.hostPlatform.extensions.sharedLibrary}"; + opusLibPath = "${libopus}/lib/libopus${stdenv.hostPlatform.extensions.sharedLibrary}"; + opusFileLibPath = "${opusfile}/lib/libopusfile${stdenv.hostPlatform.extensions.sharedLibrary}"; }) ]; diff --git a/pkgs/development/python-modules/pyombi/default.nix b/pkgs/development/python-modules/pyombi/default.nix index 912c076ae358..5362e490e7e7 100644 --- a/pkgs/development/python-modules/pyombi/default.nix +++ b/pkgs/development/python-modules/pyombi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "1ykbmdc2v05ly9q358j7g73ma9fsqdlclc8i0k1yd0bn7219icpx"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pyopencl/default.nix b/pkgs/development/python-modules/pyopencl/default.nix index 045229a5a60c..d0a3ffba5c71 100644 --- a/pkgs/development/python-modules/pyopencl/default.nix +++ b/pkgs/development/python-modules/pyopencl/default.nix @@ -1,31 +1,32 @@ -{ lib -, stdenv -, fetchPypi -, buildPythonPackage -, fetchpatch -, appdirs -, cffi -, decorator -, mako -, mesa_drivers -, numpy -, ocl-icd -, oldest-supported-numpy -, opencl-headers -, platformdirs -, pybind11 -, pytest -, pytestCheckHook -, pytools -, setuptools -, six -, wheel +{ + lib, + stdenv, + fetchPypi, + buildPythonPackage, + fetchpatch, + appdirs, + cffi, + decorator, + mako, + mesa_drivers, + numpy, + ocl-icd, + oldest-supported-numpy, + opencl-headers, + platformdirs, + pybind11, + pytest, + pytestCheckHook, + pytools, + setuptools, + six, + wheel, }: let - os-specific-buildInputs = - if stdenv.isDarwin then [ mesa_drivers.dev ] else [ ocl-icd ]; -in buildPythonPackage rec { + os-specific-buildInputs = if stdenv.isDarwin then [ mesa_drivers.dev ] else [ ocl-icd ]; +in +buildPythonPackage rec { pname = "pyopencl"; version = "2024.1"; format = "pyproject"; @@ -41,7 +42,10 @@ in buildPythonPackage rec { wheel ]; - buildInputs = [ opencl-headers pybind11 ] ++ os-specific-buildInputs; + buildInputs = [ + opencl-headers + pybind11 + ] ++ os-specific-buildInputs; propagatedBuildInputs = [ appdirs diff --git a/pkgs/development/python-modules/pyopengl-accelerate/default.nix b/pkgs/development/python-modules/pyopengl-accelerate/default.nix index 4dc8803fa037..d452ff22af1e 100644 --- a/pkgs/development/python-modules/pyopengl-accelerate/default.nix +++ b/pkgs/development/python-modules/pyopengl-accelerate/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchPypi -, cython -, numpy -, setuptools -, wheel +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchPypi, + cython, + numpy, + setuptools, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyopengl/default.nix b/pkgs/development/python-modules/pyopengl/default.nix index ddffa534ab85..78cc507e42d8 100644 --- a/pkgs/development/python-modules/pyopengl/default.nix +++ b/pkgs/development/python-modules/pyopengl/default.nix @@ -1,8 +1,10 @@ -{ lib, stdenv -, buildPythonPackage -, fetchPypi -, pkgs -, pillow +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pkgs, + pillow, }: buildPythonPackage rec { @@ -18,42 +20,46 @@ buildPythonPackage rec { propagatedBuildInputs = [ pillow ]; - patchPhase = let - ext = stdenv.hostPlatform.extensions.sharedLibrary; in lib.optionalString (!stdenv.isDarwin) '' - # Theses lines are patching the name of dynamic libraries - # so pyopengl can find them at runtime. - substituteInPlace OpenGL/platform/glx.py \ - --replace '"OpenGL",' '"${pkgs.libGL}/lib/libOpenGL${ext}",' \ - --replace '"GL",' '"${pkgs.libGL}/lib/libGL${ext}",' \ - --replace '"GLU",' '"${pkgs.libGLU}/lib/libGLU${ext}",' \ - --replace '"GLX",' '"${pkgs.libglvnd}/lib/libGLX${ext}",' \ - --replace '"glut",' '"${pkgs.freeglut}/lib/libglut${ext}",' \ - --replace '"GLESv1_CM",' '"${pkgs.libGL}/lib/libGLESv1_CM${ext}",' \ - --replace '"GLESv2",' '"${pkgs.libGL}/lib/libGLESv2${ext}",' \ - --replace '"gle",' '"${pkgs.gle}/lib/libgle${ext}",' \ - --replace "'EGL'" "'${pkgs.libGL}/lib/libEGL${ext}'" - substituteInPlace OpenGL/platform/egl.py \ - --replace "('OpenGL','GL')" "('${pkgs.libGL}/lib/libOpenGL${ext}', '${pkgs.libGL}/lib/libGL${ext}')" \ - --replace "'GLU'," "'${pkgs.libGLU}/lib/libGLU${ext}'," \ - --replace "'glut'," "'${pkgs.freeglut}/lib/libglut${ext}'," \ - --replace "'GLESv1_CM'," "'${pkgs.libGL}/lib/libGLESv1_CM${ext}'," \ - --replace "'GLESv2'," "'${pkgs.libGL}/lib/libGLESv2${ext}'," \ - --replace "'gle'," '"${pkgs.gle}/lib/libgle${ext}",' \ - --replace "'EGL'," "'${pkgs.libGL}/lib/libEGL${ext}'," - substituteInPlace OpenGL/platform/darwin.py \ - --replace "'OpenGL'," "'${pkgs.libGL}/lib/libGL${ext}'," \ - --replace "'GLUT'," "'${pkgs.freeglut}/lib/libglut${ext}'," - '' + '' - # https://github.com/NixOS/nixpkgs/issues/76822 - # pyopengl introduced a new "robust" way of loading libraries in 3.1.4. - # The later patch of the filepath does not work anymore because - # pyopengl takes the "name" (for us: the path) and tries to add a - # few suffix during its loading phase. - # The following patch put back the "name" (i.e. the path) in the - # list of possible files. - substituteInPlace OpenGL/platform/ctypesloader.py \ - --replace "filenames_to_try = [base_name]" "filenames_to_try = [name]" - ''; + patchPhase = + let + ext = stdenv.hostPlatform.extensions.sharedLibrary; + in + lib.optionalString (!stdenv.isDarwin) '' + # Theses lines are patching the name of dynamic libraries + # so pyopengl can find them at runtime. + substituteInPlace OpenGL/platform/glx.py \ + --replace '"OpenGL",' '"${pkgs.libGL}/lib/libOpenGL${ext}",' \ + --replace '"GL",' '"${pkgs.libGL}/lib/libGL${ext}",' \ + --replace '"GLU",' '"${pkgs.libGLU}/lib/libGLU${ext}",' \ + --replace '"GLX",' '"${pkgs.libglvnd}/lib/libGLX${ext}",' \ + --replace '"glut",' '"${pkgs.freeglut}/lib/libglut${ext}",' \ + --replace '"GLESv1_CM",' '"${pkgs.libGL}/lib/libGLESv1_CM${ext}",' \ + --replace '"GLESv2",' '"${pkgs.libGL}/lib/libGLESv2${ext}",' \ + --replace '"gle",' '"${pkgs.gle}/lib/libgle${ext}",' \ + --replace "'EGL'" "'${pkgs.libGL}/lib/libEGL${ext}'" + substituteInPlace OpenGL/platform/egl.py \ + --replace "('OpenGL','GL')" "('${pkgs.libGL}/lib/libOpenGL${ext}', '${pkgs.libGL}/lib/libGL${ext}')" \ + --replace "'GLU'," "'${pkgs.libGLU}/lib/libGLU${ext}'," \ + --replace "'glut'," "'${pkgs.freeglut}/lib/libglut${ext}'," \ + --replace "'GLESv1_CM'," "'${pkgs.libGL}/lib/libGLESv1_CM${ext}'," \ + --replace "'GLESv2'," "'${pkgs.libGL}/lib/libGLESv2${ext}'," \ + --replace "'gle'," '"${pkgs.gle}/lib/libgle${ext}",' \ + --replace "'EGL'," "'${pkgs.libGL}/lib/libEGL${ext}'," + substituteInPlace OpenGL/platform/darwin.py \ + --replace "'OpenGL'," "'${pkgs.libGL}/lib/libGL${ext}'," \ + --replace "'GLUT'," "'${pkgs.freeglut}/lib/libglut${ext}'," + '' + + '' + # https://github.com/NixOS/nixpkgs/issues/76822 + # pyopengl introduced a new "robust" way of loading libraries in 3.1.4. + # The later patch of the filepath does not work anymore because + # pyopengl takes the "name" (for us: the path) and tries to add a + # few suffix during its loading phase. + # The following patch put back the "name" (i.e. the path) in the + # list of possible files. + substituteInPlace OpenGL/platform/ctypesloader.py \ + --replace "filenames_to_try = [base_name]" "filenames_to_try = [name]" + ''; # Need to fix test runner # Tests have many dependencies @@ -76,6 +82,4 @@ buildPythonPackage rec { license = licenses.bsd3; platforms = platforms.mesaPlatforms; }; - - } diff --git a/pkgs/development/python-modules/pyopenssl/default.nix b/pkgs/development/python-modules/pyopenssl/default.nix index e59a9a4b43f7..fc7dbfd515f3 100644 --- a/pkgs/development/python-modules/pyopenssl/default.nix +++ b/pkgs/development/python-modules/pyopenssl/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, openssl -, setuptools -, cryptography -, pytestCheckHook -, pretend -, sphinxHook -, sphinx-rtd-theme -, pytest-rerunfailures +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + openssl, + setuptools, + cryptography, + pytestCheckHook, + pretend, + sphinxHook, + sphinx-rtd-theme, + pytest-rerunfailures, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { sed -i "/cryptography/ s/,<[0-9]*//g" setup.py ''; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; nativeCheckInputs = [ pretend @@ -57,40 +56,44 @@ buildPythonPackage rec { export LANG="en_US.UTF-8" ''; - disabledTests = [ - # https://github.com/pyca/pyopenssl/issues/692 - # These tests, we disable always. - "test_set_default_verify_paths" - "test_fallback_default_verify_paths" - # https://github.com/pyca/pyopenssl/issues/768 - "test_wantWriteError" - # https://github.com/pyca/pyopenssl/issues/1043 - "test_alpn_call_failure" - ] ++ lib.optionals (lib.hasPrefix "libressl" openssl.meta.name) [ - # https://github.com/pyca/pyopenssl/issues/791 - # These tests, we disable in the case that libressl is passed in as openssl. - "test_op_no_compression" - "test_npn_advertise_error" - "test_npn_select_error" - "test_npn_client_fail" - "test_npn_success" - "test_use_certificate_chain_file_unicode" - "test_use_certificate_chain_file_bytes" - "test_add_extra_chain_cert" - "test_set_session_id_fail" - "test_verify_with_revoked" - "test_set_notAfter" - "test_set_notBefore" - ] ++ lib.optionals (lib.versionAtLeast (lib.getVersion openssl.name) "1.1") [ - # these tests are extremely tightly wed to the exact output of the openssl cli tool, including exact punctuation. - "test_dump_certificate" - "test_dump_privatekey_text" - "test_dump_certificate_request" - "test_export_text" - ] ++ lib.optionals stdenv.is32bit [ - # https://github.com/pyca/pyopenssl/issues/974 - "test_verify_with_time" - ]; + disabledTests = + [ + # https://github.com/pyca/pyopenssl/issues/692 + # These tests, we disable always. + "test_set_default_verify_paths" + "test_fallback_default_verify_paths" + # https://github.com/pyca/pyopenssl/issues/768 + "test_wantWriteError" + # https://github.com/pyca/pyopenssl/issues/1043 + "test_alpn_call_failure" + ] + ++ lib.optionals (lib.hasPrefix "libressl" openssl.meta.name) [ + # https://github.com/pyca/pyopenssl/issues/791 + # These tests, we disable in the case that libressl is passed in as openssl. + "test_op_no_compression" + "test_npn_advertise_error" + "test_npn_select_error" + "test_npn_client_fail" + "test_npn_success" + "test_use_certificate_chain_file_unicode" + "test_use_certificate_chain_file_bytes" + "test_add_extra_chain_cert" + "test_set_session_id_fail" + "test_verify_with_revoked" + "test_set_notAfter" + "test_set_notBefore" + ] + ++ lib.optionals (lib.versionAtLeast (lib.getVersion openssl.name) "1.1") [ + # these tests are extremely tightly wed to the exact output of the openssl cli tool, including exact punctuation. + "test_dump_certificate" + "test_dump_privatekey_text" + "test_dump_certificate_request" + "test_export_text" + ] + ++ lib.optionals stdenv.is32bit [ + # https://github.com/pyca/pyopenssl/issues/974 + "test_verify_with_time" + ]; meta = with lib; { description = "Python wrapper around the OpenSSL library"; diff --git a/pkgs/development/python-modules/pyopenuv/default.nix b/pkgs/development/python-modules/pyopenuv/default.nix index db03bb04b422..03354190a107 100644 --- a/pkgs/development/python-modules/pyopenuv/default.nix +++ b/pkgs/development/python-modules/pyopenuv/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, backoff -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + backoff, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-r+StbiU77/1dz41tCseleIWjiIvuvRveVgPNr3n4CEY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "pyopenuv" - ]; + pythonImportsCheck = [ "pyopenuv" ]; meta = with lib; { description = "Python API to retrieve data from openuv.io"; diff --git a/pkgs/development/python-modules/pyopnsense/default.nix b/pkgs/development/python-modules/pyopnsense/default.nix index 7fdd6170a377..a59440c9298d 100644 --- a/pkgs/development/python-modules/pyopnsense/default.nix +++ b/pkgs/development/python-modules/pyopnsense/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fixtures -, mock -, pbr -, pytestCheckHook -, pythonOlder -, requests -, testtools +{ + lib, + buildPythonPackage, + fetchPypi, + fixtures, + mock, + pbr, + pytestCheckHook, + pythonOlder, + requests, + testtools, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { testtools ]; - pythonImportsCheck = [ - "pyopnsense" - ]; + pythonImportsCheck = [ "pyopnsense" ]; meta = with lib; { description = "Python client for the OPNsense API"; diff --git a/pkgs/development/python-modules/pyorthanc/default.nix b/pkgs/development/python-modules/pyorthanc/default.nix index 3c5b2ec5b78d..0c33fc231974 100644 --- a/pkgs/development/python-modules/pyorthanc/default.nix +++ b/pkgs/development/python-modules/pyorthanc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, poetry-core -, httpx -, pydicom +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + poetry-core, + httpx, + pydicom, }: buildPythonPackage rec { @@ -22,20 +23,22 @@ buildPythonPackage rec { hash = "sha256-6l3L0YUAqedyRjlQ6K3SaAMdGK2C0AeKpJj6MyXi4RA="; }; - nativeBuildInputs = [ pythonRelaxDepsHook poetry-core ]; - - propagatedBuildInputs = [ httpx pydicom ]; - - pythonRelaxDeps = [ - "httpx" + nativeBuildInputs = [ + pythonRelaxDepsHook + poetry-core ]; - doCheck = false; # requires orthanc server (not in Nixpkgs) - - pythonImportsCheck = [ - "pyorthanc" + propagatedBuildInputs = [ + httpx + pydicom ]; + pythonRelaxDeps = [ "httpx" ]; + + doCheck = false; # requires orthanc server (not in Nixpkgs) + + pythonImportsCheck = [ "pyorthanc" ]; + meta = with lib; { description = "Python library that wraps the Orthanc REST API"; homepage = "https://github.com/gacou54/pyorthanc"; diff --git a/pkgs/development/python-modules/pyosf/default.nix b/pkgs/development/python-modules/pyosf/default.nix index 3a23d687b8e1..17cb05240118 100644 --- a/pkgs/development/python-modules/pyosf/default.nix +++ b/pkgs/development/python-modules/pyosf/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,16 +27,12 @@ buildPythonPackage rec { preBuild = "export HOME=$TMP"; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests require network access doCheck = false; - pythonImportsCheck = [ - "pyosf" - ]; + pythonImportsCheck = [ "pyosf" ]; meta = with lib; { description = "Pure Python library for simple sync with Open Science Framework"; diff --git a/pkgs/development/python-modules/pyosmium/default.nix b/pkgs/development/python-modules/pyosmium/default.nix index 08599707498e..664054df075b 100644 --- a/pkgs/development/python-modules/pyosmium/default.nix +++ b/pkgs/development/python-modules/pyosmium/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cmake -, libosmium -, protozero -, boost -, expat -, bzip2 -, zlib -, pybind11 -, pythonOlder -, pytest-httpserver -, pytestCheckHook -, shapely -, werkzeug -, isPyPy -, lz4 -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cmake, + libosmium, + protozero, + boost, + expat, + bzip2, + zlib, + pybind11, + pythonOlder, + pytest-httpserver, + pytestCheckHook, + shapely, + werkzeug, + isPyPy, + lz4, + requests, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { hash = "sha256-DBFDAKNrD93MRXjoM8dIJQ/HJ9Aj8oMJuPVQxTrKYfI="; }; - nativeBuildInputs = [ - cmake - ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ libosmium @@ -48,9 +47,7 @@ buildPythonPackage rec { lz4 ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; preBuild = "cd .."; diff --git a/pkgs/development/python-modules/pyosohotwaterapi/default.nix b/pkgs/development/python-modules/pyosohotwaterapi/default.nix index bd2b10976a07..137c587b6cbb 100644 --- a/pkgs/development/python-modules/pyosohotwaterapi/default.nix +++ b/pkgs/development/python-modules/pyosohotwaterapi/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, loguru -, numpy -, pythonOlder -, setuptools -, unasync -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + loguru, + numpy, + pythonOlder, + setuptools, + unasync, + urllib3, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "apyosoenergyapi" - ]; + pythonImportsCheck = [ "apyosoenergyapi" ]; meta = with lib; { description = "Module for using the OSO Hotwater API"; diff --git a/pkgs/development/python-modules/pyotp/default.nix b/pkgs/development/python-modules/pyotp/default.nix index df209f092bc5..312a229c10c1 100644 --- a/pkgs/development/python-modules/pyotp/default.nix +++ b/pkgs/development/python-modules/pyotp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, unittestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-NGtmQuDb3eO0/1qTC2ZMqCq/oRY1btSMxCx9ZZDTb2M="; }; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "pyotp" ]; diff --git a/pkgs/development/python-modules/pyoutbreaksnearme/default.nix b/pkgs/development/python-modules/pyoutbreaksnearme/default.nix index 5aa9352f7a4c..45b6c10ace18 100644 --- a/pkgs/development/python-modules/pyoutbreaksnearme/default.nix +++ b/pkgs/development/python-modules/pyoutbreaksnearme/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, ujson -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + ujson, + yarl, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-oR/DApOxNSSczrBeH4sytd/vasbD4rA1poW4zNoeAnU="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -52,9 +51,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "pyoutbreaksnearme" - ]; + pythonImportsCheck = [ "pyoutbreaksnearme" ]; meta = with lib; { description = "Library for retrieving data from for Outbreaks Near Me"; diff --git a/pkgs/development/python-modules/pyoverkiz/default.nix b/pkgs/development/python-modules/pyoverkiz/default.nix index ce40b9c2a9ec..aa2048ea50c4 100644 --- a/pkgs/development/python-modules/pyoverkiz/default.nix +++ b/pkgs/development/python-modules/pyoverkiz/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, attrs -, backoff -, backports-strenum -, boto3 -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyhumps -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, warrant-lite +{ + lib, + aiohttp, + attrs, + backoff, + backports-strenum, + boto3, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyhumps, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + warrant-lite, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace-fail 'pyhumps = "^3.0.2,!=3.7.3"' 'pyhumps = "^3.0.2"' ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp @@ -52,9 +51,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyoverkiz" - ]; + pythonImportsCheck = [ "pyoverkiz" ]; meta = with lib; { description = "Module to interact with the Somfy TaHoma API or other OverKiz APIs"; diff --git a/pkgs/development/python-modules/pyownet/default.nix b/pkgs/development/python-modules/pyownet/default.nix index 9a368c26087e..2542877ef0e5 100644 --- a/pkgs/development/python-modules/pyownet/default.nix +++ b/pkgs/development/python-modules/pyownet/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pypandoc/default.nix b/pkgs/development/python-modules/pypandoc/default.nix index 7501cddbad18..727545b7148d 100644 --- a/pkgs/development/python-modules/pypandoc/default.nix +++ b/pkgs/development/python-modules/pypandoc/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pandoc -, pandocfilters -, poetry-core -, pythonOlder -, substituteAll -, texliveSmall +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pandoc, + pandocfilters, + poetry-core, + pythonOlder, + substituteAll, + texliveSmall, }: buildPythonPackage rec { @@ -32,23 +33,22 @@ buildPythonPackage rec { ./skip-tests.patch ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ texliveSmall pandocfilters ]; - pythonImportsCheck = [ - "pypandoc" - ]; + pythonImportsCheck = [ "pypandoc" ]; meta = with lib; { description = "Thin wrapper for pandoc"; homepage = "https://github.com/JessicaTegner/pypandoc"; license = licenses.mit; - maintainers = with maintainers; [ sternenseemann bennofs ]; + maintainers = with maintainers; [ + sternenseemann + bennofs + ]; }; } diff --git a/pkgs/development/python-modules/pyparser/default.nix b/pkgs/development/python-modules/pyparser/default.nix index f7db023608c2..7b78bf6f27f0 100644 --- a/pkgs/development/python-modules/pyparser/default.nix +++ b/pkgs/development/python-modules/pyparser/default.nix @@ -1,5 +1,8 @@ -{ buildPythonPackage, lib, fetchFromBitbucket -, parse +{ + buildPythonPackage, + lib, + fetchFromBitbucket, + parse, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyparsing/default.nix b/pkgs/development/python-modules/pyparsing/default.nix index 05d2586ff18d..ac2e1be377f0 100644 --- a/pkgs/development/python-modules/pyparsing/default.nix +++ b/pkgs/development/python-modules/pyparsing/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, flit-core -, jinja2 -, pytestCheckHook -, railroad-diagrams -, pyparsing +{ + buildPythonPackage, + fetchFromGitHub, + lib, + flit-core, + jinja2, + pytestCheckHook, + railroad-diagrams, + pyparsing, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-0B8DjO4kLgvt4sYsk8CZI+5icdKy73XE2tWeqVLqO5A="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # circular dependencies with pytest if enabled by default doCheck = false; @@ -35,7 +34,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "pyparsing" ]; passthru.tests = { - check = pyparsing.overridePythonAttrs (_: { doCheck = true; }); + check = pyparsing.overridePythonAttrs (_: { + doCheck = true; + }); }; meta = with lib; { @@ -46,7 +47,7 @@ buildPythonPackage rec { simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions. The pyparsing module provides a library of classes that client code uses to construct the grammar directly in Python code. - ''; + ''; license = licenses.mit; maintainers = with maintainers; [ kamadorueda ]; }; diff --git a/pkgs/development/python-modules/pyparted/default.nix b/pkgs/development/python-modules/pyparted/default.nix index 7eeedaa2cad8..9c02f6eb3179 100644 --- a/pkgs/development/python-modules/pyparted/default.nix +++ b/pkgs/development/python-modules/pyparted/default.nix @@ -1,11 +1,13 @@ -{ lib, stdenv -, fetchFromGitHub -, buildPythonPackage -, isPyPy -, pkgs -, python -, six -, pytestCheckHook +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + isPyPy, + pkgs, + python, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,23 +23,28 @@ buildPythonPackage rec { hash = "sha256-AiUCCrEbDD0OxrvXs1YN3/1IE7SuVasC2YCirIG58iU="; }; - postPatch = '' - sed -i -e 's|mke2fs|${pkgs.e2fsprogs}/bin/mke2fs|' tests/baseclass.py - sed -i -e ' - s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path| - ' tests/test__ped_ped.py - '' + lib.optionalString stdenv.isi686 '' - # remove some integers in this test case which overflow on 32bit systems - sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \ - tests/test__ped_ped.py - ''; + postPatch = + '' + sed -i -e 's|mke2fs|${pkgs.e2fsprogs}/bin/mke2fs|' tests/baseclass.py + sed -i -e ' + s|e\.path\.startswith("/tmp/temp-device-")|"temp-device-" in e.path| + ' tests/test__ped_ped.py + '' + + lib.optionalString stdenv.isi686 '' + # remove some integers in this test case which overflow on 32bit systems + sed -i -r -e '/class *UnitGetSizeTestCase/,/^$/{/[0-9]{11}/d}' \ + tests/test__ped_ped.py + ''; preConfigure = '' PATH="${pkgs.parted}/sbin:$PATH" ''; nativeBuildInputs = [ pkgs.pkg-config ]; - nativeCheckInputs = [ six pytestCheckHook ]; + nativeCheckInputs = [ + six + pytestCheckHook + ]; propagatedBuildInputs = [ pkgs.parted ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pypass/default.nix b/pkgs/development/python-modules/pypass/default.nix index b900618e4dd2..f5113813a1ae 100644 --- a/pkgs/development/python-modules/pypass/default.nix +++ b/pkgs/development/python-modules/pypass/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, buildPythonPackage -, click -, colorama -, fetchPypi -, git -, gnugrep -, gnupg -, nose -, pbr -, pexpect -, pythonAtLeast -, substituteAll -, tree -, xclip +{ + stdenv, + lib, + buildPythonPackage, + click, + colorama, + fetchPypi, + git, + gnugrep, + gnupg, + nose, + pbr, + pexpect, + pythonAtLeast, + substituteAll, + tree, + xclip, }: # Use the `pypass` top-level attribute, if you're interested in the diff --git a/pkgs/development/python-modules/pypblib/default.nix b/pkgs/development/python-modules/pypblib/default.nix index 0132f43ffa46..f4971a6b2577 100644 --- a/pkgs/development/python-modules/pypblib/default.nix +++ b/pkgs/development/python-modules/pypblib/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pypblib"; diff --git a/pkgs/development/python-modules/pypca/default.nix b/pkgs/development/python-modules/pypca/default.nix index 7ca099f2d865..60203cd00fdc 100644 --- a/pkgs/development/python-modules/pypca/default.nix +++ b/pkgs/development/python-modules/pypca/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, colorlog -, fetchPypi -, pythonOlder -, pyserial +{ + lib, + buildPythonPackage, + colorlog, + fetchPypi, + pythonOlder, + pyserial, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pypcap/default.nix b/pkgs/development/python-modules/pypcap/default.nix index 2c3997c8941a..4bf0723dc6ce 100644 --- a/pkgs/development/python-modules/pypcap/default.nix +++ b/pkgs/development/python-modules/pypcap/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, dpkt -, fetchFromGitHub -, libpcap -, pytestCheckHook +{ + lib, + buildPythonPackage, + dpkt, + fetchFromGitHub, + libpcap, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pypck/default.nix b/pkgs/development/python-modules/pypck/default.nix index c4819b9a012a..e471d902d95b 100644 --- a/pkgs/development/python-modules/pypck/default.nix +++ b/pkgs/development/python-modules/pypck/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { echo "${version}" > VERSION ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio @@ -37,19 +36,13 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; - disabledTests = lib.optionals stdenv.isDarwin [ - "test_connection_lost" - ]; + disabledTests = lib.optionals stdenv.isDarwin [ "test_connection_lost" ]; __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "pypck" - ]; + pythonImportsCheck = [ "pypck" ]; meta = with lib; { description = "LCN-PCK library written in Python"; diff --git a/pkgs/development/python-modules/pypdf/default.nix b/pkgs/development/python-modules/pypdf/default.nix index 5e48ca58781c..c8e89bb74b36 100644 --- a/pkgs/development/python-modules/pypdf/default.nix +++ b/pkgs/development/python-modules/pypdf/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + pythonOlder, -# build-system -, flit-core + # build-system + flit-core, -# docs -, sphinxHook -, sphinx-rtd-theme -, myst-parser + # docs + sphinxHook, + sphinx-rtd-theme, + myst-parser, -# propagates -, typing-extensions + # propagates + typing-extensions, -# optionals -, cryptography -, pillow + # optionals + cryptography, + pillow, -# tests -, fpdf2 -, pytestCheckHook -, pytest-timeout + # tests + fpdf2, + pytestCheckHook, + pytest-timeout, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { (fetchpatch2 { # add missing test marker on networked test url = "https://github.com/py-pdf/pypdf/commit/f43268734a529d4098e6258bf346148fd24c54f0.patch"; - includes = [ - "tests/test_generic.py" - ]; + includes = [ "tests/test_generic.py" ]; hash = "sha256-Ow32UB4crs3OgT+AmA9TNmcO5Y9SoSahybzD3AmWmVk="; }) ]; @@ -69,33 +68,26 @@ buildPythonPackage rec { --replace "--disable-socket" "" ''; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ]; passthru.optional-dependencies = rec { full = crypto ++ image; - crypto = [ - cryptography - ]; - image = [ - pillow - ]; + crypto = [ cryptography ]; + image = [ pillow ]; }; - pythonImportsCheck = [ - "pypdf" - ]; + pythonImportsCheck = [ "pypdf" ]; nativeCheckInputs = [ - (fpdf2.overridePythonAttrs { doCheck = false; }) # avoid reference loop + (fpdf2.overridePythonAttrs { doCheck = false; }) # avoid reference loop pytestCheckHook pytest-timeout ] ++ passthru.optional-dependencies.full; pytestFlagsArray = [ # don't access the network - "-m" "'not enable_socket'" + "-m" + "'not enable_socket'" ]; disabledTests = [ diff --git a/pkgs/development/python-modules/pypdf2/default.nix b/pkgs/development/python-modules/pypdf2/default.nix index 34087d582667..caf9223b0339 100644 --- a/pkgs/development/python-modules/pypdf2/default.nix +++ b/pkgs/development/python-modules/pypdf2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pythonOlder -, typing-extensions -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pythonOlder, + typing-extensions, + unittestCheckHook, }: buildPythonPackage rec { @@ -19,26 +20,22 @@ buildPythonPackage rec { hash = "sha256-p0QI9pumJx9xuTUu9O0D3FOjGqQE0ptdMfU7/s/uFEA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ typing-extensions ]; nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "PyPDF2" - ]; + pythonImportsCheck = [ "PyPDF2" ]; meta = with lib; { description = "A Pure-Python library built as a PDF toolkit"; homepage = "https://pypdf2.readthedocs.io/"; changelog = "https://github.com/py-pdf/PyPDF2/raw/${version}/CHANGELOG.md"; license = licenses.bsd3; - maintainers = with maintainers; [ desiderius vrthra ]; + maintainers = with maintainers; [ + desiderius + vrthra + ]; }; - } diff --git a/pkgs/development/python-modules/pypdf3/default.nix b/pkgs/development/python-modules/pypdf3/default.nix index f70b04db2227..069dde65468f 100644 --- a/pkgs/development/python-modules/pypdf3/default.nix +++ b/pkgs/development/python-modules/pypdf3/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, glibcLocales -, python -, tqdm +{ + lib, + buildPythonPackage, + fetchPypi, + glibcLocales, + python, + tqdm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { ${python.interpreter} -m unittest tests/*.py ''; - propagatedBuildInputs = [ - tqdm - ]; + propagatedBuildInputs = [ tqdm ]; meta = with lib; { description = "A Pure-Python library built as a PDF toolkit"; diff --git a/pkgs/development/python-modules/pypeg2/default.nix b/pkgs/development/python-modules/pypeg2/default.nix index 092ba9472aa7..3074eb61522d 100644 --- a/pkgs/development/python-modules/pypeg2/default.nix +++ b/pkgs/development/python-modules/pypeg2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { homepage = "http://fdik.org/pyPEG"; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/pypemicro/default.nix b/pkgs/development/python-modules/pypemicro/default.nix index f73649ac72fe..7f51691529e9 100644 --- a/pkgs/development/python-modules/pypemicro/default.nix +++ b/pkgs/development/python-modules/pypemicro/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, autoPatchelfHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + autoPatchelfHook, +}: buildPythonPackage rec { pname = "pypemicro"; @@ -19,7 +24,13 @@ buildPythonPackage rec { meta = with lib; { description = "Python interface for PEMicro debug probes"; homepage = "https://github.com/NXPmicro/pypemicro"; - license = with licenses; [ bsd3 unfree ]; # it includes shared libraries for which no license is available (https://github.com/NXPmicro/pypemicro/issues/10) - maintainers = with maintainers; [ frogamic sbruder ]; + license = with licenses; [ + bsd3 + unfree + ]; # it includes shared libraries for which no license is available (https://github.com/NXPmicro/pypemicro/issues/10) + maintainers = with maintainers; [ + frogamic + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/pyperclip/default.nix b/pkgs/development/python-modules/pyperclip/default.nix index 73ea4bd1c80d..22c2af63e439 100644 --- a/pkgs/development/python-modules/pyperclip/default.nix +++ b/pkgs/development/python-modules/pyperclip/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, stdenv -, python +{ + lib, + buildPythonPackage, + fetchPypi, + stdenv, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyperf/default.nix b/pkgs/development/python-modules/pyperf/default.nix index cacc4b2bc6ac..5eab5062ac88 100644 --- a/pkgs/development/python-modules/pyperf/default.nix +++ b/pkgs/development/python-modules/pyperf/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, psutil -, unittestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + psutil, + unittestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-QgHGYBAy83TpyQDG0lRKL1iRq+3BqW7sDnsjOKYkdYk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - psutil - ]; + propagatedBuildInputs = [ psutil ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; unittestFlagsArray = [ "-s" @@ -37,9 +32,7 @@ buildPythonPackage rec { "-v" ]; - pythonImportsCheck = [ - "pyperf" - ]; + pythonImportsCheck = [ "pyperf" ]; meta = with lib; { description = "Python module to generate and modify perf"; diff --git a/pkgs/development/python-modules/pyperscan/default.nix b/pkgs/development/python-modules/pyperscan/default.nix index 954da379d7ed..8659fb7937a0 100644 --- a/pkgs/development/python-modules/pyperscan/default.nix +++ b/pkgs/development/python-modules/pyperscan/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, rustPlatform -, pytestCheckHook -, libiconv -, vectorscan +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + rustPlatform, + pytestCheckHook, + libiconv, + vectorscan, }: buildPythonPackage rec { @@ -45,7 +46,13 @@ buildPythonPackage rec { description = "a hyperscan binding for Python, which supports vectorscan"; homepage = "https://github.com/vlaci/pyperscan"; platforms = platforms.unix; - license = with licenses; [ asl20 /* or */ mit ]; - maintainers = with maintainers; [ tnias vlaci ]; + license = with licenses; [ + asl20 # or + mit + ]; + maintainers = with maintainers; [ + tnias + vlaci + ]; }; } diff --git a/pkgs/development/python-modules/pyphen/default.nix b/pkgs/development/python-modules/pyphen/default.nix index 6d6830e42478..d75608465fe3 100644 --- a/pkgs/development/python-modules/pyphen/default.nix +++ b/pkgs/development/python-modules/pyphen/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flit, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,26 +19,24 @@ buildPythonPackage rec { hash = "sha256-pDBiPeysU9w2kSQSUyY8uja53XpE/9JoC3Bq82jNovI="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; preCheck = '' sed -i '/addopts/d' pyproject.toml ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyphen" - ]; + pythonImportsCheck = [ "pyphen" ]; meta = with lib; { description = "Module to hyphenate text"; homepage = "https://github.com/Kozea/Pyphen"; changelog = "https://github.com/Kozea/Pyphen/releases/tag/${version}"; - license = with licenses; [gpl2 lgpl21 mpl20]; + license = with licenses; [ + gpl2 + lgpl21 + mpl20 + ]; }; } diff --git a/pkgs/development/python-modules/pyphotonfile/default.nix b/pkgs/development/python-modules/pyphotonfile/default.nix index c18d8c60d478..315d9c9496ed 100644 --- a/pkgs/development/python-modules/pyphotonfile/default.nix +++ b/pkgs/development/python-modules/pyphotonfile/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + numpy, }: let version = "0.2.1+"; @@ -13,7 +14,10 @@ buildPythonPackage { inherit version; dontUseSetuptoolsCheck = true; - propagatedBuildInputs = [ pillow numpy ]; + propagatedBuildInputs = [ + pillow + numpy + ]; src = fetchFromGitHub { owner = "cab404"; @@ -28,5 +32,4 @@ buildPythonPackage { description = "Library for reading and writing files for the Anycubic Photon 3D-Printer"; homepage = "https://github.com/cab404/pyphotonfile"; }; - } diff --git a/pkgs/development/python-modules/pypika/default.nix b/pkgs/development/python-modules/pypika/default.nix index ab2105ecee1f..b55a2c9c5973 100644 --- a/pkgs/development/python-modules/pypika/default.nix +++ b/pkgs/development/python-modules/pypika/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, parameterized -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + parameterized, + unittestCheckHook, }: buildPythonPackage rec { pname = "pypika"; @@ -16,7 +17,7 @@ buildPythonPackage rec { hash = "sha256-9HKT1xRu23F5ptiKhIgIR8srLIcpDzpowBNuYOhqMU0="; }; - pythonImportsCheck = ["pypika"]; + pythonImportsCheck = [ "pypika" ]; nativeCheckInputs = [ parameterized @@ -30,4 +31,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ blaggacao ]; }; } - diff --git a/pkgs/development/python-modules/pypillowfight/default.nix b/pkgs/development/python-modules/pypillowfight/default.nix index 3d1b9807b34d..601db553cf5e 100644 --- a/pkgs/development/python-modules/pypillowfight/default.nix +++ b/pkgs/development/python-modules/pypillowfight/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitLab, nose, pillow -, isPy3k, isPyPy +{ + lib, + buildPythonPackage, + fetchFromGitLab, + nose, + pillow, + isPy3k, + isPyPy, }: buildPythonPackage rec { pname = "pypillowfight"; diff --git a/pkgs/development/python-modules/pypinyin/default.nix b/pkgs/development/python-modules/pypinyin/default.nix index 882e62505e92..001474532af2 100644 --- a/pkgs/development/python-modules/pypinyin/default.nix +++ b/pkgs/development/python-modules/pypinyin/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { "--cov-report term-missing" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; meta = with lib; { description = "Chinese Characters to Pinyin - 汉字转拼音"; diff --git a/pkgs/development/python-modules/pypiserver/default.nix b/pkgs/development/python-modules/pypiserver/default.nix index 83cf132ed5c6..e403e7394cbc 100644 --- a/pkgs/development/python-modules/pypiserver/default.nix +++ b/pkgs/development/python-modules/pypiserver/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, passlib -, pip -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-git -, twine -, watchdog -, webtest -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + passlib, + pip, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-git, + twine, + watchdog, + webtest, + wheel, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - pip - ]; + propagatedBuildInputs = [ pip ]; passthru.optional-dependencies = { - passlib = [ - passlib - ]; - cache = [ - watchdog - ]; + passlib = [ passlib ]; + cache = [ watchdog ]; }; __darwinAllowLocalNetworking = true; @@ -77,16 +72,17 @@ buildPythonPackage rec { "docker/test_docker.py" ]; - pythonImportsCheck = [ - "pypiserver" - ]; + pythonImportsCheck = [ "pypiserver" ]; meta = with lib; { description = "Minimal PyPI server for use with pip/easy_install"; mainProgram = "pypi-server"; homepage = "https://github.com/pypiserver/pypiserver"; changelog = "https://github.com/pypiserver/pypiserver/releases/tag/v${version}"; - license = with licenses; [ mit zlib ]; + license = with licenses; [ + mit + zlib + ]; maintainers = with maintainers; [ austinbutler ]; }; } diff --git a/pkgs/development/python-modules/pypitoken/default.nix b/pkgs/development/python-modules/pypitoken/default.nix index 59a3be31094c..8b09b773d8b5 100644 --- a/pkgs/development/python-modules/pypitoken/default.nix +++ b/pkgs/development/python-modules/pypitoken/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jsonschema -, poetry-core -, pymacaroons -, pytest-mock -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jsonschema, + poetry-core, + pymacaroons, + pytest-mock, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { sed -i "/--cov/d" setup.cfg ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pymacaroons @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pypitoken" - ]; + pythonImportsCheck = [ "pypitoken" ]; meta = with lib; { description = "Library for generating and manipulating PyPI tokens"; diff --git a/pkgs/development/python-modules/pyplaato/default.nix b/pkgs/development/python-modules/pyplaato/default.nix index f070340f9290..a2457396a9ad 100644 --- a/pkgs/development/python-modules/pyplaato/default.nix +++ b/pkgs/development/python-modules/pyplaato/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, python-dateutil -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + python-dateutil, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pyplaato" - ]; + pythonImportsCheck = [ "pyplaato" ]; meta = with lib; { description = "Python API client for fetching Plaato data"; diff --git a/pkgs/development/python-modules/pyplatec/default.nix b/pkgs/development/python-modules/pyplatec/default.nix index 6a4e46f5c1c6..b61fb265dcf7 100644 --- a/pkgs/development/python-modules/pyplatec/default.nix +++ b/pkgs/development/python-modules/pyplatec/default.nix @@ -1,7 +1,8 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,8 +19,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library to simulate plate tectonics with Python bindings"; - homepage = "https://github.com/Mindwerks/plate-tectonics"; - license = licenses.lgpl3; + homepage = "https://github.com/Mindwerks/plate-tectonics"; + license = licenses.lgpl3; }; - } diff --git a/pkgs/development/python-modules/pypng/default.nix b/pkgs/development/python-modules/pypng/default.nix index 71882ee1f2eb..eb06d04b5dbe 100644 --- a/pkgs/development/python-modules/pypng/default.nix +++ b/pkgs/development/python-modules/pypng/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-tTnsGCAmHexDWm/T5xpHpcBaQcBEqMfTFaoOAeC+pDs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; patches = [ # pngsuite is imported by code/test_png.py but is not defined in @@ -32,7 +31,10 @@ buildPythonPackage rec { export PATH="$out/bin:$PATH" ''; - pythonImportsCheck = [ "png" "pngsuite" ]; + pythonImportsCheck = [ + "png" + "pngsuite" + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pypoint/default.nix b/pkgs/development/python-modules/pypoint/default.nix index 20b4ba6d0a7a..e0e5aab54350 100644 --- a/pkgs/development/python-modules/pypoint/default.nix +++ b/pkgs/development/python-modules/pypoint/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, authlib -, httpx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + authlib, + httpx, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # upstream has no tests doCheck = false; - pythonImportsCheck = [ - "pypoint" - ]; + pythonImportsCheck = [ "pypoint" ]; meta = with lib; { description = "Python module for communicating with Minut Point"; diff --git a/pkgs/development/python-modules/pypoolstation/default.nix b/pkgs/development/python-modules/pypoolstation/default.nix index 6203e88cbf61..472d16ede486 100644 --- a/pkgs/development/python-modules/pypoolstation/default.nix +++ b/pkgs/development/python-modules/pypoolstation/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, backoff -, buildPythonPackage -, fetchPypi -, importlib-metadata -, poetry-core -, pythonOlder +{ + lib, + aiohttp, + backoff, + buildPythonPackage, + fetchPypi, + importlib-metadata, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-hszGCA2DDGQSh37lxp8G0bqHliH/+i2so5imDyzyOJw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -33,9 +32,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pypoolstation" - ]; + pythonImportsCheck = [ "pypoolstation" ]; meta = with lib; { description = "Python library to interact the the Poolstation platform"; diff --git a/pkgs/development/python-modules/pyppeteer/default.nix b/pkgs/development/python-modules/pyppeteer/default.nix index 186d3828f4ca..396fb5712e50 100644 --- a/pkgs/development/python-modules/pyppeteer/default.nix +++ b/pkgs/development/python-modules/pyppeteer/default.nix @@ -1,18 +1,19 @@ -{ lib -, appdirs -, buildPythonPackage -, certifi -, fetchFromGitHub -, importlib-metadata -, poetry-core -, pyee -, pytest-xdist -, pytestCheckHook -, pythonOlder -, syncer -, tqdm -, urllib3 -, websockets +{ + lib, + appdirs, + buildPythonPackage, + certifi, + fetchFromGitHub, + importlib-metadata, + poetry-core, + pyee, + pytest-xdist, + pytestCheckHook, + pythonOlder, + syncer, + tqdm, + urllib3, + websockets, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace 'websockets = "^10.0"' 'websockets = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ appdirs @@ -83,9 +82,7 @@ buildPythonPackage rec { "TestPDF" ]; - pythonImportsCheck = [ - "pyppeteer" - ]; + pythonImportsCheck = [ "pyppeteer" ]; meta = with lib; { description = "Headless chrome/chromium automation library (unofficial port of puppeteer)"; diff --git a/pkgs/development/python-modules/pyprecice/default.nix b/pkgs/development/python-modules/pyprecice/default.nix index b390314dd981..c0885c1f0f30 100644 --- a/pkgs/development/python-modules/pyprecice/default.nix +++ b/pkgs/development/python-modules/pyprecice/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, mpi4py -, numpy -, precice -, pkgconfig -, pythonOlder +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + mpi4py, + numpy, + precice, + pkgconfig, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pypresence/default.nix b/pkgs/development/python-modules/pypresence/default.nix index 87b32a590769..96aec1c90dc7 100644 --- a/pkgs/development/python-modules/pypresence/default.nix +++ b/pkgs/development/python-modules/pypresence/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pypresence"; diff --git a/pkgs/development/python-modules/pyprind/default.nix b/pkgs/development/python-modules/pyprind/default.nix index 58a508adf795..ec8367aee0f4 100644 --- a/pkgs/development/python-modules/pyprind/default.nix +++ b/pkgs/development/python-modules/pyprind/default.nix @@ -1,6 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage -, psutil -, pytest }: +{ + lib, + fetchPypi, + buildPythonPackage, + psutil, + pytest, +}: buildPythonPackage rec { pname = "pyprind"; diff --git a/pkgs/development/python-modules/pyprobables/default.nix b/pkgs/development/python-modules/pyprobables/default.nix index be4410cce276..03a4fbd9567c 100644 --- a/pkgs/development/python-modules/pyprobables/default.nix +++ b/pkgs/development/python-modules/pyprobables/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-maikrZlBzhv35zPXmKqdJzAz6eZDmluLUvkOkaPTCDU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "probables" - ]; + pythonImportsCheck = [ "probables" ]; meta = with lib; { description = "Probabilistic data structures"; diff --git a/pkgs/development/python-modules/pyprof2calltree/default.nix b/pkgs/development/python-modules/pyprof2calltree/default.nix index deab3b909290..7623c2f8a247 100644 --- a/pkgs/development/python-modules/pyprof2calltree/default.nix +++ b/pkgs/development/python-modules/pyprof2calltree/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-PrIYpvcoD+zVIoOdcON41JmqzpA5FyRKhI7rqDV8cSo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; meta = with lib; { description = "Help visualize profiling data from cProfile with kcachegrind and qcachegrind"; diff --git a/pkgs/development/python-modules/pyproj/default.nix b/pkgs/development/python-modules/pyproj/default.nix index bb98e96e02a1..f76fd0e0f4f5 100644 --- a/pkgs/development/python-modules/pyproj/default.nix +++ b/pkgs/development/python-modules/pyproj/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, proj -, pythonOlder -, substituteAll -, cython -, pytestCheckHook -, mock -, certifi -, numpy -, shapely -, pandas -, xarray +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + proj, + pythonOlder, + substituteAll, + cython, + pytestCheckHook, + mock, + certifi, + numpy, + shapely, + pandas, + xarray, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cython ]; buildInputs = [ proj ]; - propagatedBuildInputs = [ - certifi - ]; + propagatedBuildInputs = [ certifi ]; nativeCheckInputs = [ pytestCheckHook @@ -110,6 +109,12 @@ buildPythonPackage rec { homepage = "https://github.com/pyproj4/pyproj"; changelog = "https://github.com/pyproj4/pyproj/blob/${src.rev}/docs/history.rst"; license = licenses.mit; - maintainers = with maintainers; teams.geospatial.members ++ [ lsix dotlambda ]; + maintainers = + with maintainers; + teams.geospatial.members + ++ [ + lsix + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/pyproject-api/default.nix b/pkgs/development/python-modules/pyproject-api/default.nix index efcc35632015..09eb72384c1a 100644 --- a/pkgs/development/python-modules/pyproject-api/default.nix +++ b/pkgs/development/python-modules/pyproject-api/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build time -, hatchling -, hatch-vcs + # build time + hatchling, + hatch-vcs, -# runtime -, packaging -, toml -, tomli + # runtime + packaging, + toml, + tomli, -# docs -, sphinxHook -, furo -, sphinx-autodoc-typehints + # docs + sphinxHook, + furo, + sphinx-autodoc-typehints, -# tests -, pytest-mock -, pytestCheckHook -, setuptools -, virtualenv -, wheel + # tests + pytest-mock, + pytestCheckHook, + setuptools, + virtualenv, + wheel, }: buildPythonPackage rec { @@ -54,11 +55,7 @@ buildPythonPackage rec { sphinx-autodoc-typehints ]; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ pytest-mock @@ -73,9 +70,7 @@ buildPythonPackage rec { "test_can_build_on_python_2" ]; - pythonImportsCheck = [ - "pyproject_api" - ]; + pythonImportsCheck = [ "pyproject_api" ]; meta = with lib; { changelog = "https://github.com/tox-dev/pyproject-api/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/pyproject-hooks/default.nix b/pkgs/development/python-modules/pyproject-hooks/default.nix index 3624b5f02edb..cc47f9d2a840 100644 --- a/pkgs/development/python-modules/pyproject-hooks/default.nix +++ b/pkgs/development/python-modules/pyproject-hooks/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pyproject-hooks -, pytestCheckHook -, pythonOlder -, setuptools -, testpath -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pyproject-hooks, + pytestCheckHook, + pythonOlder, + setuptools, + testpath, + tomli, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-8nGymLl/WVXVP7ErcsH7GUjCLBprcLMVxUztrKAmTvU="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ]; # We need to disable tests because this package is part of the bootstrap chain # and its test dependencies cannot be built yet when this is being built. @@ -59,9 +56,7 @@ buildPythonPackage rec { }; }; - pythonImportsCheck = [ - "pyproject_hooks" - ]; + pythonImportsCheck = [ "pyproject_hooks" ]; meta = with lib; { description = "Low-level library for calling build-backends in `pyproject.toml`-based project "; diff --git a/pkgs/development/python-modules/pyproject-metadata/default.nix b/pkgs/development/python-modules/pyproject-metadata/default.nix index f0bdb9379ec8..33adc83c67b8 100644 --- a/pkgs/development/python-modules/pyproject-metadata/default.nix +++ b/pkgs/development/python-modules/pyproject-metadata/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, packaging -, pytestCheckHook -, pythonOlder -, setuptools -, tomli -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + packaging, + pytestCheckHook, + pythonOlder, + setuptools, + tomli, + wheel, }: buildPythonPackage rec { @@ -23,26 +24,16 @@ buildPythonPackage rec { hash = "sha256-N21aAHZKwpRApUV5+I5mt9nLfmKdNcNaHHJIv+vJtFU="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; - dependencies = [ - packaging - ]; + dependencies = [ packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; # Many broken tests, and missing test files doCheck = false; - pythonImportsCheck = [ - "pyproject_metadata" - ]; + pythonImportsCheck = [ "pyproject_metadata" ]; meta = with lib; { description = "PEP 621 metadata parsing"; diff --git a/pkgs/development/python-modules/pyprosegur/default.nix b/pkgs/development/python-modules/pyprosegur/default.nix index f1be9de65abb..a132407b2336 100644 --- a/pkgs/development/python-modules/pyprosegur/default.nix +++ b/pkgs/development/python-modules/pyprosegur/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiofiles -, aiohttp -, backoff -, buildPythonPackage -, click -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiofiles, + aiohttp, + backoff, + buildPythonPackage, + click, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-OHFJhufymD181FODHlIu+O5xh9dfKwEIVQX/zTOC6ks="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiofiles @@ -37,9 +36,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pyprosegur" - ]; + pythonImportsCheck = [ "pyprosegur" ]; meta = with lib; { description = "Python module to communicate with Prosegur Residential Alarms"; diff --git a/pkgs/development/python-modules/pyprusalink/default.nix b/pkgs/development/python-modules/pyprusalink/default.nix index 7e8a924c96c7..88c7eb338ed7 100644 --- a/pkgs/development/python-modules/pyprusalink/default.nix +++ b/pkgs/development/python-modules/pyprusalink/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-Opip696hXV1gqFC1cWfrSCkrsldl7M7XZAqUaVkDy7M="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "pyprusalink" - ]; + pythonImportsCheck = [ "pyprusalink" ]; meta = with lib; { description = "Library to communicate with PrusaLink "; diff --git a/pkgs/development/python-modules/pypsrp/default.nix b/pkgs/development/python-modules/pypsrp/default.nix index 1dd8c57a260d..7cf8c56581dc 100644 --- a/pkgs/development/python-modules/pypsrp/default.nix +++ b/pkgs/development/python-modules/pypsrp/default.nix @@ -1,22 +1,23 @@ -{ lib -, asyncssh -, buildPythonPackage -, cryptography -, fetchFromGitHub -, gssapi -, httpcore -, httpx -, krb5 -, psrpcore -, psutil -, pyspnego -, pytest-mock -, pytestCheckHook -, pythonOlder -, pyyaml -, requests -, requests-credssp -, xmldiff +{ + lib, + asyncssh, + buildPythonPackage, + cryptography, + fetchFromGitHub, + gssapi, + httpcore, + httpx, + krb5, + psrpcore, + psutil, + pyspnego, + pytest-mock, + pytestCheckHook, + pythonOlder, + pyyaml, + requests, + requests-credssp, + xmldiff, }: buildPythonPackage rec { @@ -50,25 +51,17 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - credssp = [ - requests-credssp - ]; + credssp = [ requests-credssp ]; kerberos = [ # pyspnego[kerberos] will have those two dependencies gssapi krb5 ]; - named_pipe = [ - psutil - ]; - ssh = [ - asyncssh - ]; + named_pipe = [ psutil ]; + ssh = [ asyncssh ]; }; - pythonImportsCheck = [ - "pypsrp" - ]; + pythonImportsCheck = [ "pypsrp" ]; disabledTests = [ # TypeError: Backend.load_rsa_private_numbers() missing 1 required... diff --git a/pkgs/development/python-modules/pyptlib/default.nix b/pkgs/development/python-modules/pyptlib/default.nix index 24d4cbf86b29..565cbbf9be59 100644 --- a/pkgs/development/python-modules/pyptlib/default.nix +++ b/pkgs/development/python-modules/pyptlib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + isPy3k, }: buildPythonPackage rec { @@ -16,12 +17,11 @@ buildPythonPackage rec { sha256 = "01y6vbwncqb0hxlnin6whd9wrrm5my4qzjhk76fnix78v7ip515r"; }; - doCheck = false; # No such file or directory errors on 32bit + doCheck = false; # No such file or directory errors on 32bit meta = with lib; { homepage = "https://pypi.org/project/pyptlib/"; description = "A python implementation of the Pluggable Transports for Circumvention specification for Tor"; license = licenses.bsd2; }; - } diff --git a/pkgs/development/python-modules/pypubsub/default.nix b/pkgs/development/python-modules/pypubsub/default.nix index e883700ca78b..cac77e5cc2cd 100644 --- a/pkgs/development/python-modules/pypubsub/default.nix +++ b/pkgs/development/python-modules/pypubsub/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytest }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + pytest, +}: buildPythonPackage rec { pname = "pypubsub"; @@ -24,14 +30,14 @@ buildPythonPackage rec { homepage = "https://github.com/schollii/pypubsub"; description = "Python 3 publish-subcribe library"; longDescription = '' - Provides a publish-subscribe API to facilitate event-based or - message-based architecture in a single-process application. It is pure - Python and works on Python 3.3+. It is centered on the notion of a topic; - senders publish messages of a given topic, and listeners subscribe to - messages of a given topic, all inside the same process. The package also - supports a variety of advanced features that facilitate debugging and - maintaining topics and messages in larger desktop- or server-based - applications. + Provides a publish-subscribe API to facilitate event-based or + message-based architecture in a single-process application. It is pure + Python and works on Python 3.3+. It is centered on the notion of a topic; + senders publish messages of a given topic, and listeners subscribe to + messages of a given topic, all inside the same process. The package also + supports a variety of advanced features that facilitate debugging and + maintaining topics and messages in larger desktop- or server-based + applications. ''; license = licenses.bsd2; maintainers = with maintainers; [ tfmoraes ]; diff --git a/pkgs/development/python-modules/pypugjs/default.nix b/pkgs/development/python-modules/pypugjs/default.nix index 6f8bf6c67a25..11a38454837c 100644 --- a/pkgs/development/python-modules/pypugjs/default.nix +++ b/pkgs/development/python-modules/pypugjs/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, charset-normalizer -, django -, fetchFromGitHub -, jinja2 -, mako -, nose -, pyramid -, pyramid-mako -, pytestCheckHook -, six -, tornado +{ + lib, + buildPythonPackage, + charset-normalizer, + django, + fetchFromGitHub, + jinja2, + mako, + nose, + pyramid, + pyramid-mako, + pytestCheckHook, + six, + tornado, }: buildPythonPackage rec { @@ -25,7 +26,10 @@ buildPythonPackage rec { hash = "sha256-6tIhKCa8wg01gNFygCS6GdUHfbWBu7wOZeMkCExRR34="; }; - propagatedBuildInputs = [ six charset-normalizer ]; + propagatedBuildInputs = [ + six + charset-normalizer + ]; nativeCheckInputs = [ django @@ -38,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestCheckFlags = [ - "pypugjs/testsuite" - ]; + pytestCheckFlags = [ "pypugjs/testsuite" ]; meta = with lib; { description = "PugJS syntax template adapter for Django, Jinja2, Mako and Tornado templates"; diff --git a/pkgs/development/python-modules/pypykatz/default.nix b/pkgs/development/python-modules/pypykatz/default.nix index 84d92530f9c5..9c01099f5621 100644 --- a/pkgs/development/python-modules/pypykatz/default.nix +++ b/pkgs/development/python-modules/pypykatz/default.nix @@ -1,14 +1,15 @@ -{ lib -, aesedb -, aiosmb -, aiowinreg -, buildPythonPackage -, fetchPypi -, minidump -, minikerberos -, msldap -, pythonOlder -, winsspi +{ + lib, + aesedb, + aiosmb, + aiowinreg, + buildPythonPackage, + fetchPypi, + minidump, + minikerberos, + msldap, + pythonOlder, + winsspi, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Project doesn't have tests doCheck = false; - pythonImportsCheck = [ - "pypykatz" - ]; + pythonImportsCheck = [ "pypykatz" ]; meta = with lib; { description = "Mimikatz implementation in Python"; diff --git a/pkgs/development/python-modules/pypytools/default.nix b/pkgs/development/python-modules/pypytools/default.nix index 870768dc8112..6c6a74b43a9e 100644 --- a/pkgs/development/python-modules/pypytools/default.nix +++ b/pkgs/development/python-modules/pypytools/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, attrs -, freezegun -, numpy -, py -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + attrs, + freezegun, + numpy, + py, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-oUDAU+TRwLroNfQGYusAQKdRkHcazysqiDLfp77v5Sk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ # attrs is an implicit dependency @@ -50,9 +49,7 @@ buildPythonPackage rec { }) ]; - pythonImportsCheck = [ - "pypytools" - ]; + pythonImportsCheck = [ "pypytools" ]; disabledTests = lib.optionals (pythonAtLeast "3.11") [ # https://github.com/antocuni/pypytools/issues/4 diff --git a/pkgs/development/python-modules/pyqldb/default.nix b/pkgs/development/python-modules/pyqldb/default.nix index 377a33cb90a3..ce8daa6c2887 100644 --- a/pkgs/development/python-modules/pyqldb/default.nix +++ b/pkgs/development/python-modules/pyqldb/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, boto3, amazon-ion, ionhash, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + boto3, + amazon-ion, + ionhash, + pytestCheckHook, +}: buildPythonPackage rec { pname = "pyqldb"; @@ -12,7 +20,11 @@ buildPythonPackage rec { hash = "sha256-TyIXvk3ZJn5J2SBFDTPJpSnGFOFheXIqR2daL5npOk8="; }; - propagatedBuildInputs = [ boto3 amazon-ion ionhash ]; + propagatedBuildInputs = [ + boto3 + amazon-ion + ionhash + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pyqrcode/default.nix b/pkgs/development/python-modules/pyqrcode/default.nix index 2b0ce5193555..1c97917bd46d 100644 --- a/pkgs/development/python-modules/pyqrcode/default.nix +++ b/pkgs/development/python-modules/pyqrcode/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pyqrcode"; diff --git a/pkgs/development/python-modules/pyqt-builder/default.nix b/pkgs/development/python-modules/pyqt-builder/default.nix index 5bd7cca6189e..ef380a7b872f 100644 --- a/pkgs/development/python-modules/pyqt-builder/default.nix +++ b/pkgs/development/python-modules/pyqt-builder/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, packaging -, setuptools -, setuptools-scm -, sip -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + packaging, + setuptools, + setuptools-scm, + sip, + wheel, }: buildPythonPackage rec { @@ -25,7 +26,10 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ packaging sip ]; + propagatedBuildInputs = [ + packaging + sip + ]; pythonImportsCheck = [ "pyqtbuild" ]; diff --git a/pkgs/development/python-modules/pyqt/5.x.nix b/pkgs/development/python-modules/pyqt/5.x.nix index 0af19e2c174e..ed0264c816dd 100644 --- a/pkgs/development/python-modules/pyqt/5.x.nix +++ b/pkgs/development/python-modules/pyqt/5.x.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, buildPythonPackage -, setuptools -, isPy27 -, fetchPypi -, pkg-config -, dbus -, lndir -, dbus-python -, sip -, pyqt5-sip -, pyqt-builder -, libsForQt5 -, enableVerbose ? true -, withConnectivity ? false -, withMultimedia ? false -, withWebKit ? false -, withWebSockets ? false -, withLocation ? false -, withSerialPort ? false -, withTools ? false -, pkgsBuildTarget -, buildPackages -, dbusSupport ? !stdenv.isDarwin +{ + lib, + stdenv, + buildPythonPackage, + setuptools, + isPy27, + fetchPypi, + pkg-config, + dbus, + lndir, + dbus-python, + sip, + pyqt5-sip, + pyqt-builder, + libsForQt5, + enableVerbose ? true, + withConnectivity ? false, + withMultimedia ? false, + withWebKit ? false, + withWebSockets ? false, + withLocation ? false, + withSerialPort ? false, + withTools ? false, + pkgsBuildTarget, + buildPackages, + dbusSupport ? !stdenv.isDarwin, }: buildPythonPackage rec { @@ -47,52 +48,54 @@ buildPythonPackage rec { ]; postPatch = - # be more verbose - '' - cat >> pyproject.toml <> pyproject.toml < PyQt_PrintDialog - # QT_NO_PRINTER => PyQt_Printer - # QT_NO_PRINTPREVIEWDIALOG => PyQt_PrintPreviewDialog - # QT_NO_PRINTPREVIEWWIDGET => PyQt_PrintPreviewWidget - # QT_NO_SSL => PyQt_SSL - # QT_SHARED || QT_DLL => shared (otherwise static) - # QT_NO_PROCESS => PyQt_Process - # QT_NO_FPU || Q_PROCESSOR_ARM || Q_OS_WINCE => PyQt_qreal_double - # sizeof (qreal) != sizeof (double) => PyQt_qreal_double - # !Q_COMPILER_CONSTEXPR !Q_COMPILER_UNIFORM_INIT => PyQt_CONSTEXPR - # QT_NO_ACCESSIBILITY => PyQt_Accessibility - # QT_NO_OPENGL => PyQt_OpenGL PyQt_Desktop_OpenGL - # defined(QT_OPENGL_ES) || defined(QT_OPENGL_ES_2) || defined(QT_OPENGL_ES_3) => PyQt_Desktop_OpenGL - # QT_NO_RAWFONT => PyQt_RawFont - # QT_NO_SESSIONMANAGER => PyQt_SessionManager - # - + lib.optionalString (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform)) '' - rm config-tests/cfgtest_QtCore.cpp - rm config-tests/cfgtest_QtGui.cpp - rm config-tests/cfgtest_QtNetwork.cpp - rm config-tests/cfgtest_QtPrintSupport.cpp - ''; + # pyqt-builder tries to compile *and run* these programs. This + # is really sad because the only thing they do is print out a + # flag based on whether or not some compile-time symbol was + # defined. This could all be done without having to *execute* + # cross-compiled programs! + # + # Here is the complete list of things checked: + # + # QT_NO_PRINTDIALOG => PyQt_PrintDialog + # QT_NO_PRINTER => PyQt_Printer + # QT_NO_PRINTPREVIEWDIALOG => PyQt_PrintPreviewDialog + # QT_NO_PRINTPREVIEWWIDGET => PyQt_PrintPreviewWidget + # QT_NO_SSL => PyQt_SSL + # QT_SHARED || QT_DLL => shared (otherwise static) + # QT_NO_PROCESS => PyQt_Process + # QT_NO_FPU || Q_PROCESSOR_ARM || Q_OS_WINCE => PyQt_qreal_double + # sizeof (qreal) != sizeof (double) => PyQt_qreal_double + # !Q_COMPILER_CONSTEXPR !Q_COMPILER_UNIFORM_INIT => PyQt_CONSTEXPR + # QT_NO_ACCESSIBILITY => PyQt_Accessibility + # QT_NO_OPENGL => PyQt_OpenGL PyQt_Desktop_OpenGL + # defined(QT_OPENGL_ES) || defined(QT_OPENGL_ES_2) || defined(QT_OPENGL_ES_3) => PyQt_Desktop_OpenGL + # QT_NO_RAWFONT => PyQt_RawFont + # QT_NO_SESSIONMANAGER => PyQt_SessionManager + # + + lib.optionalString (!(stdenv.buildPlatform.canExecute stdenv.hostPlatform)) '' + rm config-tests/cfgtest_QtCore.cpp + rm config-tests/cfgtest_QtGui.cpp + rm config-tests/cfgtest_QtNetwork.cpp + rm config-tests/cfgtest_QtPrintSupport.cpp + ''; enableParallelBuilding = true; # HACK: paralellize compilation of make calls within pyqt's setup.py @@ -106,56 +109,57 @@ buildPythonPackage rec { ''; # tons of warnings from subpackages, no point in playing whack-a-mole - env = lib.optionalAttrs (!enableVerbose) { - NIX_CFLAGS_COMPILE = "-w"; - }; + env = lib.optionalAttrs (!enableVerbose) { NIX_CFLAGS_COMPILE = "-w"; }; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; dontWrapQtApps = true; - nativeBuildInputs = [ - pkg-config - ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ - libsForQt5.qmake - ] ++ [ - setuptools - lndir - sip - ] ++ (with pkgsBuildTarget.targetPackages.libsForQt5; [ - ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ - qmake - ] ++ [ - qtbase - qtsvg - qtdeclarative - qtwebchannel - ] - ++ lib.optional withConnectivity qtconnectivity - ++ lib.optional withMultimedia qtmultimedia - ++ lib.optional withWebKit qtwebkit - ++ lib.optional withWebSockets qtwebsockets - ++ lib.optional withLocation qtlocation - ++ lib.optional withSerialPort qtserialport - ++ lib.optional withTools qttools - ); + nativeBuildInputs = + [ pkg-config ] + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ libsForQt5.qmake ] + ++ [ + setuptools + lndir + sip + ] + ++ ( + with pkgsBuildTarget.targetPackages.libsForQt5; + [ ] + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ qmake ] + ++ [ + qtbase + qtsvg + qtdeclarative + qtwebchannel + ] + ++ lib.optional withConnectivity qtconnectivity + ++ lib.optional withMultimedia qtmultimedia + ++ lib.optional withWebKit qtwebkit + ++ lib.optional withWebSockets qtwebsockets + ++ lib.optional withLocation qtlocation + ++ lib.optional withSerialPort qtserialport + ++ lib.optional withTools qttools + ); - buildInputs = with libsForQt5; [ - dbus - ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ - qtbase - ] ++ [ - qtsvg - qtdeclarative - pyqt-builder - ] + buildInputs = + with libsForQt5; + [ dbus ] + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ qtbase ] + ++ [ + qtsvg + qtdeclarative + pyqt-builder + ] ++ lib.optional withConnectivity qtconnectivity ++ lib.optional withWebKit qtwebkit ++ lib.optional withWebSockets qtwebsockets ++ lib.optional withLocation qtlocation ++ lib.optional withSerialPort qtserialport - ++ lib.optional withTools qttools - ; + ++ lib.optional withTools qttools; propagatedBuildInputs = [ dbus-python @@ -178,27 +182,27 @@ buildPythonPackage rec { # Checked using pythonImportsCheck doCheck = false; - pythonImportsCheck = [ - "PyQt5" - "PyQt5.QtCore" - "PyQt5.QtQml" - "PyQt5.QtWidgets" - "PyQt5.QtGui" - ] + pythonImportsCheck = + [ + "PyQt5" + "PyQt5.QtCore" + "PyQt5.QtQml" + "PyQt5.QtWidgets" + "PyQt5.QtGui" + ] ++ lib.optional withWebSockets "PyQt5.QtWebSockets" ++ lib.optional withWebKit "PyQt5.QtWebKit" ++ lib.optional withMultimedia "PyQt5.QtMultimedia" ++ lib.optional withConnectivity "PyQt5.QtBluetooth" ++ lib.optional withLocation "PyQt5.QtPositioning" ++ lib.optional withSerialPort "PyQt5.QtSerialPort" - ++ lib.optional withTools "PyQt5.QtDesigner" - ; + ++ lib.optional withTools "PyQt5.QtDesigner"; meta = with lib; { description = "Python bindings for Qt5"; - homepage = "https://riverbankcomputing.com/"; - license = licenses.gpl3Only; - platforms = platforms.mesaPlatforms; + homepage = "https://riverbankcomputing.com/"; + license = licenses.gpl3Only; + platforms = platforms.mesaPlatforms; maintainers = with maintainers; [ sander ]; }; } diff --git a/pkgs/development/python-modules/pyqt/6.x.nix b/pkgs/development/python-modules/pyqt/6.x.nix index a568257c5900..8f5fa218475d 100644 --- a/pkgs/development/python-modules/pyqt/6.x.nix +++ b/pkgs/development/python-modules/pyqt/6.x.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchurl -, pkg-config -, dbus -, lndir -, setuptools -, dbus-python -, sip -, pyqt6-sip -, pyqt-builder -, qt6Packages -, pythonOlder -, withMultimedia ? true -, withWebSockets ? true -, withLocation ? true -# Not currently part of PyQt6 -#, withConnectivity ? true -, withPrintSupport ? true -, cups +{ + lib, + stdenv, + buildPythonPackage, + fetchurl, + pkg-config, + dbus, + lndir, + setuptools, + dbus-python, + sip, + pyqt6-sip, + pyqt-builder, + qt6Packages, + pythonOlder, + withMultimedia ? true, + withWebSockets ? true, + withLocation ? true, + # Not currently part of PyQt6 + #, withConnectivity ? true + withPrintSupport ? true, + cups, }: buildPythonPackage rec { @@ -68,51 +69,55 @@ buildPythonPackage rec { export MAKEFLAGS+="''${enableParallelBuilding:+-j$NIX_BUILD_CORES}" ''; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; dontWrapQtApps = true; - nativeBuildInputs = with qt6Packages; [ - pkg-config - lndir - sip - qtbase - qtsvg - qtdeclarative - qtwebchannel - qmake - qtquick3d - qtquicktimeline - ] - # ++ lib.optional withConnectivity qtconnectivity - ++ lib.optional withMultimedia qtmultimedia - ++ lib.optional withWebSockets qtwebsockets - ++ lib.optional withLocation qtlocation - ; + nativeBuildInputs = + with qt6Packages; + [ + pkg-config + lndir + sip + qtbase + qtsvg + qtdeclarative + qtwebchannel + qmake + qtquick3d + qtquicktimeline + ] + # ++ lib.optional withConnectivity qtconnectivity + ++ lib.optional withMultimedia qtmultimedia + ++ lib.optional withWebSockets qtwebsockets + ++ lib.optional withLocation qtlocation; - buildInputs = with qt6Packages; [ - dbus - qtbase - qtsvg - qtdeclarative - pyqt-builder - qtquick3d - qtquicktimeline - ] - # ++ lib.optional withConnectivity qtconnectivity - ++ lib.optional withWebSockets qtwebsockets - ++ lib.optional withLocation qtlocation - ; + buildInputs = + with qt6Packages; + [ + dbus + qtbase + qtsvg + qtdeclarative + pyqt-builder + qtquick3d + qtquicktimeline + ] + # ++ lib.optional withConnectivity qtconnectivity + ++ lib.optional withWebSockets qtwebsockets + ++ lib.optional withLocation qtlocation; - propagatedBuildInputs = [ - dbus-python - pyqt6-sip - setuptools - ] - # ld: library not found for -lcups - ++ lib.optionals (withPrintSupport && stdenv.isDarwin) [ - cups - ]; + propagatedBuildInputs = + [ + dbus-python + pyqt6-sip + setuptools + ] + # ld: library not found for -lcups + ++ lib.optionals (withPrintSupport && stdenv.isDarwin) [ cups ]; passthru = { inherit sip pyqt6-sip; @@ -125,19 +130,19 @@ buildPythonPackage rec { # Checked using pythonImportsCheck, has no tests doCheck = true; - pythonImportsCheck = [ - "PyQt6" - "PyQt6.QtCore" - "PyQt6.QtQml" - "PyQt6.QtWidgets" - "PyQt6.QtGui" - "PyQt6.QtQuick" - ] - ++ lib.optional withWebSockets "PyQt6.QtWebSockets" - ++ lib.optional withMultimedia "PyQt6.QtMultimedia" - # ++ lib.optional withConnectivity "PyQt6.QtConnectivity" - ++ lib.optional withLocation "PyQt6.QtPositioning" - ; + pythonImportsCheck = + [ + "PyQt6" + "PyQt6.QtCore" + "PyQt6.QtQml" + "PyQt6.QtWidgets" + "PyQt6.QtGui" + "PyQt6.QtQuick" + ] + ++ lib.optional withWebSockets "PyQt6.QtWebSockets" + ++ lib.optional withMultimedia "PyQt6.QtMultimedia" + # ++ lib.optional withConnectivity "PyQt6.QtConnectivity" + ++ lib.optional withLocation "PyQt6.QtPositioning"; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-Wno-address-of-temporary"; diff --git a/pkgs/development/python-modules/pyqt/pyqt6-sip.nix b/pkgs/development/python-modules/pyqt/pyqt6-sip.nix index f9b9bc308c80..b7083eef900d 100644 --- a/pkgs/development/python-modules/pyqt/pyqt6-sip.nix +++ b/pkgs/development/python-modules/pyqt/pyqt6-sip.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyqt/sip.nix b/pkgs/development/python-modules/pyqt/sip.nix index 3702bad5cac7..46597acb6a44 100644 --- a/pkgs/development/python-modules/pyqt/sip.nix +++ b/pkgs/development/python-modules/pyqt/sip.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,13 +17,13 @@ buildPythonPackage rec { # There is no test code and the check phase fails with: # > error: could not create 'PyQt5/sip.cpython-38-x86_64-linux-gnu.so': No such file or directory doCheck = false; - pythonImportsCheck = ["PyQt5.sip"]; + pythonImportsCheck = [ "PyQt5.sip" ]; meta = with lib; { description = "Python bindings for Qt5"; - homepage = "https://www.riverbankcomputing.com/software/sip/"; - license = licenses.gpl3Only; - platforms = platforms.mesaPlatforms; + homepage = "https://www.riverbankcomputing.com/software/sip/"; + license = licenses.gpl3Only; + platforms = platforms.mesaPlatforms; maintainers = with maintainers; [ sander ]; }; } diff --git a/pkgs/development/python-modules/pyqt3d/default.nix b/pkgs/development/python-modules/pyqt3d/default.nix index c6129a08680e..5c26e705bea6 100644 --- a/pkgs/development/python-modules/pyqt3d/default.nix +++ b/pkgs/development/python-modules/pyqt3d/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pyqt5 -, pyqt-builder -, python -, pythonOlder -, qt3d -, setuptools -, sip +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pyqt5, + pyqt-builder, + python, + pythonOlder, + qt3d, + setuptools, + sip, }: buildPythonPackage rec { @@ -29,7 +30,10 @@ buildPythonPackage rec { --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]" ''; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; enableParallelBuilding = true; # HACK: paralellize compilation of make calls within pyqt's setup.py @@ -51,22 +55,16 @@ buildPythonPackage rec { pyqt-builder ]; - buildInputs = [ - qt3d - ]; + buildInputs = [ qt3d ]; - propagatedBuildInputs = [ - pyqt5 - ]; + propagatedBuildInputs = [ pyqt5 ]; dontConfigure = true; # has no tests doCheck = false; - pythonImportsCheck = [ - "PyQt5.Qt3DCore" - ]; + pythonImportsCheck = [ "PyQt5.Qt3DCore" ]; meta = with lib; { description = "Python bindings for the Qt 3D framework"; diff --git a/pkgs/development/python-modules/pyqt5-stubs/default.nix b/pkgs/development/python-modules/pyqt5-stubs/default.nix index 957a2ac56c93..008313ebb7fd 100644 --- a/pkgs/development/python-modules/pyqt5-stubs/default.nix +++ b/pkgs/development/python-modules/pyqt5-stubs/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pyqt5 -, pyqt3d -, pyqtchart -, pyqtdatavisualization -, pyqtwebengine +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + pyqt5, + pyqt3d, + pyqtchart, + pyqtdatavisualization, + pyqtwebengine, }: buildPythonPackage rec { @@ -22,26 +23,30 @@ buildPythonPackage rec { rev = version; hash = "sha256-qWnvlHnFRy8wbZJ28C0pYqAxod623Epe5z5FZufheDc="; }; - postPatch = '' - # pulls in a dependency to mypy, but we don't want to run linters - rm tests/test_stubs.py - '' + lib.optionalString (!pyqt5.connectivityEnabled) '' - rm tests/qflags/test_QtBluetooth_* - rm tests/qflags/test_QtNfc_* - '' + lib.optionalString (!pyqt5.locationEnabled) '' - rm tests/qflags/test_QtLocation_* - rm tests/qflags/test_QtPositioning_* - '' + lib.optionalString (!pyqt5.multimediaEnabled) '' - rm tests/qflags/test_QtMultimedia_* - '' + lib.optionalString (!pyqt5.serialPortEnabled) '' - rm tests/qflags/test_QtSerialPort_* - '' + lib.optionalString (!pyqt5.toolsEnabled) '' - rm tests/qflags/test_QtDesigner_* - ''; + postPatch = + '' + # pulls in a dependency to mypy, but we don't want to run linters + rm tests/test_stubs.py + '' + + lib.optionalString (!pyqt5.connectivityEnabled) '' + rm tests/qflags/test_QtBluetooth_* + rm tests/qflags/test_QtNfc_* + '' + + lib.optionalString (!pyqt5.locationEnabled) '' + rm tests/qflags/test_QtLocation_* + rm tests/qflags/test_QtPositioning_* + '' + + lib.optionalString (!pyqt5.multimediaEnabled) '' + rm tests/qflags/test_QtMultimedia_* + '' + + lib.optionalString (!pyqt5.serialPortEnabled) '' + rm tests/qflags/test_QtSerialPort_* + '' + + lib.optionalString (!pyqt5.toolsEnabled) '' + rm tests/qflags/test_QtDesigner_* + ''; - pythonImportsCheck = [ - "PyQt5-stubs" - ]; + pythonImportsCheck = [ "PyQt5-stubs" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pyqt6-charts/default.nix b/pkgs/development/python-modules/pyqt6-charts/default.nix index 478e1b1e0f42..60bc08b315d7 100644 --- a/pkgs/development/python-modules/pyqt6-charts/default.nix +++ b/pkgs/development/python-modules/pyqt6-charts/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sip -, pyqt-builder -, qt6Packages -, pythonOlder -, pyqt6 -, python +{ + lib, + buildPythonPackage, + fetchPypi, + sip, + pyqt-builder, + qt6Packages, + pythonOlder, + pyqt6, + python, }: buildPythonPackage rec { @@ -51,22 +52,16 @@ buildPythonPackage rec { pyqt-builder ]; - buildInputs = with qt6Packages; [ - qtcharts - ]; + buildInputs = with qt6Packages; [ qtcharts ]; - propagatedBuildInputs = [ - pyqt6 - ]; + propagatedBuildInputs = [ pyqt6 ]; dontConfigure = true; # has no tests doCheck = false; - pythonImportsCheck = [ - "PyQt6.QtCharts" - ]; + pythonImportsCheck = [ "PyQt6.QtCharts" ]; meta = with lib; { description = "Python bindings for Qt6 QtCharts"; diff --git a/pkgs/development/python-modules/pyqt6-webengine/default.nix b/pkgs/development/python-modules/pyqt6-webengine/default.nix index f227a1469ab5..ae7215f39b42 100644 --- a/pkgs/development/python-modules/pyqt6-webengine/default.nix +++ b/pkgs/development/python-modules/pyqt6-webengine/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkg-config -, lndir -, sip -, pyqt-builder -, qt6Packages -, pythonOlder -, pyqt6 -, python +{ + lib, + buildPythonPackage, + fetchPypi, + pkg-config, + lndir, + sip, + pyqt-builder, + qt6Packages, + pythonOlder, + pyqt6, + python, }: buildPythonPackage rec { @@ -44,7 +45,10 @@ buildPythonPackage rec { export MAKEFLAGS+=" -j$NIX_BUILD_CORES" ''; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; dontWrapQtApps = true; @@ -57,13 +61,9 @@ buildPythonPackage rec { pyqt-builder ]; - buildInputs = with qt6Packages; [ - qtwebengine - ]; + buildInputs = with qt6Packages; [ qtwebengine ]; - propagatedBuildInputs = [ - pyqt6 - ]; + propagatedBuildInputs = [ pyqt6 ]; passthru = { inherit sip; @@ -85,6 +85,9 @@ buildPythonPackage rec { homepage = "https://riverbankcomputing.com/"; license = licenses.gpl3Only; platforms = platforms.mesaPlatforms; - maintainers = with maintainers; [ LunNova nrdxp ]; + maintainers = with maintainers; [ + LunNova + nrdxp + ]; }; } diff --git a/pkgs/development/python-modules/pyqtchart/default.nix b/pkgs/development/python-modules/pyqtchart/default.nix index 3f95fe791574..db7e24eabcb6 100644 --- a/pkgs/development/python-modules/pyqtchart/default.nix +++ b/pkgs/development/python-modules/pyqtchart/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pyqt5 -, pyqt-builder -, python -, pythonOlder -, qtcharts -, setuptools -, sip +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pyqt5, + pyqt-builder, + python, + pythonOlder, + qtcharts, + setuptools, + sip, }: buildPythonPackage rec { @@ -29,7 +30,10 @@ buildPythonPackage rec { --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]" ''; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; enableParallelBuilding = true; # HACK: paralellize compilation of make calls within pyqt's setup.py @@ -51,22 +55,16 @@ buildPythonPackage rec { pyqt-builder ]; - buildInputs = [ - qtcharts - ]; + buildInputs = [ qtcharts ]; - propagatedBuildInputs = [ - pyqt5 - ]; + propagatedBuildInputs = [ pyqt5 ]; dontConfigure = true; # has no tests doCheck = false; - pythonImportsCheck = [ - "PyQt5.QtChart" - ]; + pythonImportsCheck = [ "PyQt5.QtChart" ]; meta = with lib; { description = "Python bindings for the Qt Charts library"; diff --git a/pkgs/development/python-modules/pyqtdarktheme/default.nix b/pkgs/development/python-modules/pyqtdarktheme/default.nix index 0d60c8039898..9771dc04c76d 100644 --- a/pkgs/development/python-modules/pyqtdarktheme/default.nix +++ b/pkgs/development/python-modules/pyqtdarktheme/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -, darkdetect -, poetry-core + darkdetect, + poetry-core, -, pyqt5 -, pytest-mock -, pytest-qt -, pytestCheckHook -, qt5 + pyqt5, + pytest-mock, + pytest-qt, + pytestCheckHook, + qt5, }: buildPythonPackage rec { @@ -27,17 +28,11 @@ buildPythonPackage rec { hash = "sha256-jK+wnIyPE8Bav0pzbvVisYYCzdRshYw1S2t0H3Pro5M="; }; - patches = [ - ./add-missing-argument-to-the-proxy-style-initializer.patch - ]; + patches = [ ./add-missing-argument-to-the-proxy-style-initializer.patch ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - darkdetect - ]; + propagatedBuildInputs = [ darkdetect ]; nativeCheckInputs = [ pyqt5 @@ -46,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "qdarktheme" - ]; + pythonImportsCheck = [ "qdarktheme" ]; prePatch = '' sed -i 's#darkdetect = ".*"#darkdetect = "*"#' pyproject.toml diff --git a/pkgs/development/python-modules/pyqtdatavisualization/default.nix b/pkgs/development/python-modules/pyqtdatavisualization/default.nix index 1561e9d4be51..09d1ad6c752e 100644 --- a/pkgs/development/python-modules/pyqtdatavisualization/default.nix +++ b/pkgs/development/python-modules/pyqtdatavisualization/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pyqt5 -, pyqt-builder -, python -, pythonOlder -, qtdatavis3d -, setuptools -, sip +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pyqt5, + pyqt-builder, + python, + pythonOlder, + qtdatavis3d, + setuptools, + sip, }: buildPythonPackage rec { @@ -29,7 +30,10 @@ buildPythonPackage rec { --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]" ''; - outputs = [ "out" "dev" ]; + outputs = [ + "out" + "dev" + ]; enableParallelBuilding = true; # HACK: paralellize compilation of make calls within pyqt's setup.py @@ -51,22 +55,16 @@ buildPythonPackage rec { pyqt-builder ]; - buildInputs = [ - qtdatavis3d - ]; + buildInputs = [ qtdatavis3d ]; - propagatedBuildInputs = [ - pyqt5 - ]; + propagatedBuildInputs = [ pyqt5 ]; dontConfigure = true; # has no tests doCheck = false; - pythonImportsCheck = [ - "PyQt5.QtDataVisualization" - ]; + pythonImportsCheck = [ "PyQt5.QtDataVisualization" ]; meta = with lib; { description = "Python bindings for the Qt Data Visualization library"; diff --git a/pkgs/development/python-modules/pyqtgraph/default.nix b/pkgs/development/python-modules/pyqtgraph/default.nix index f09ed4fa0cb7..718b0be18477 100644 --- a/pkgs/development/python-modules/pyqtgraph/default.nix +++ b/pkgs/development/python-modules/pyqtgraph/default.nix @@ -1,23 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, scipy -, numpy -, pyqt5 -, pyopengl -, qt5 -, pytestCheckHook -, freefont_ttf -, makeFontsConf -, setuptools -, python +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + scipy, + numpy, + pyqt5, + pyopengl, + qt5, + pytestCheckHook, + freefont_ttf, + makeFontsConf, + setuptools, + python, }: let - fontsConf = makeFontsConf { - fontDirectories = [ freefont_ttf ]; - }; + fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; in buildPythonPackage rec { pname = "pyqtgraph"; @@ -31,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-MUwg1v6oH2TGmJ14Hp9i6KYierJbzPggK59QaHSXHVA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -56,15 +53,17 @@ buildPythonPackage rec { "tests" ]; - disabledTests = lib.optionals (!stdenv.hostPlatform.isx86) [ - # small precision-related differences on other architectures, - # upstream doesn't consider it serious. - # https://github.com/pyqtgraph/pyqtgraph/issues/2110 - "test_PolyLineROI" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # https://github.com/pyqtgraph/pyqtgraph/issues/2645 - "test_rescaleData" - ]; + disabledTests = + lib.optionals (!stdenv.hostPlatform.isx86) [ + # small precision-related differences on other architectures, + # upstream doesn't consider it serious. + # https://github.com/pyqtgraph/pyqtgraph/issues/2110 + "test_PolyLineROI" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # https://github.com/pyqtgraph/pyqtgraph/issues/2645 + "test_rescaleData" + ]; meta = with lib; { description = "Scientific Graphics and GUI Library for Python"; @@ -75,5 +74,4 @@ buildPythonPackage rec { platforms = platforms.unix; maintainers = with maintainers; [ koral ]; }; - } diff --git a/pkgs/development/python-modules/pyqtwebengine/default.nix b/pkgs/development/python-modules/pyqtwebengine/default.nix index ec15596b4048..b72fde6277f7 100644 --- a/pkgs/development/python-modules/pyqtwebengine/default.nix +++ b/pkgs/development/python-modules/pyqtwebengine/default.nix @@ -1,94 +1,119 @@ -{ lib, stdenv, pythonPackages, fetchPypi, pkg-config -, qmake, qtbase, qtsvg, qtwebengine, qtwebchannel, qtdeclarative -, wrapQtAppsHook -, darwin -, buildPackages +{ + lib, + stdenv, + pythonPackages, + fetchPypi, + pkg-config, + qmake, + qtbase, + qtsvg, + qtwebengine, + qtwebchannel, + qtdeclarative, + wrapQtAppsHook, + darwin, + buildPackages, }: let - inherit (pythonPackages) buildPythonPackage python isPy27 pyqt5 sip pyqt-builder; - inherit (darwin) autoSignDarwinBinariesHook; -in buildPythonPackage (rec { - pname = "pyqtwebengine"; - version = "5.15.6"; - format = "pyproject"; - - disabled = isPy27; - - src = fetchPypi { - pname = "PyQtWebEngine"; - inherit version; - sha256 = "sha256-riQe8qYceCk5xYtSwq6lOtmbMPOTTINY1eCm67P9ByE="; - }; - - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]" - ''; - - outputs = [ "out" "dev" ]; - - nativeBuildInputs = [ - pkg-config - qmake - ] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ + inherit (pythonPackages) + buildPythonPackage + python + isPy27 + pyqt5 sip - ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ - python.pythonOnBuildForHost.pkgs.sip - ] ++ [ - qtbase - qtsvg - qtwebengine pyqt-builder - pythonPackages.setuptools - ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ - qtdeclarative - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - autoSignDarwinBinariesHook - ]; + ; + inherit (darwin) autoSignDarwinBinariesHook; +in +buildPythonPackage ( + rec { + pname = "pyqtwebengine"; + version = "5.15.6"; + format = "pyproject"; - buildInputs = [ - sip - qtbase - qtsvg - qtwebengine - ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ - qtwebchannel - qtdeclarative - ]; + disabled = isPy27; - propagatedBuildInputs = [ pyqt5 ]; + src = fetchPypi { + pname = "PyQtWebEngine"; + inherit version; + sha256 = "sha256-riQe8qYceCk5xYtSwq6lOtmbMPOTTINY1eCm67P9ByE="; + }; - dontWrapQtApps = true; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]" + ''; - # Avoid running qmake, which is in nativeBuildInputs - dontConfigure = true; + outputs = [ + "out" + "dev" + ]; - # Checked using pythonImportsCheck - doCheck = false; + nativeBuildInputs = + [ + pkg-config + qmake + ] + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ sip ] + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ + python.pythonOnBuildForHost.pkgs.sip + ] + ++ [ + qtbase + qtsvg + qtwebengine + pyqt-builder + pythonPackages.setuptools + ] + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ qtdeclarative ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ autoSignDarwinBinariesHook ]; - pythonImportsCheck = [ - "PyQt5.QtWebEngine" - "PyQt5.QtWebEngineWidgets" - ]; + buildInputs = + [ + sip + qtbase + qtsvg + qtwebengine + ] + ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ + qtwebchannel + qtdeclarative + ]; - enableParallelBuilding = true; + propagatedBuildInputs = [ pyqt5 ]; - passthru = { - inherit wrapQtAppsHook; - }; + dontWrapQtApps = true; - meta = with lib; { - description = "Python bindings for Qt5"; - homepage = "http://www.riverbankcomputing.co.uk"; - license = licenses.gpl3; - hydraPlatforms = lib.lists.intersectLists qtwebengine.meta.platforms platforms.mesaPlatforms; - }; -} // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) { - # TODO: figure out why the env hooks aren't adding these inclusions automatically - env.NIX_CFLAGS_COMPILE = - lib.concatStringsSep " " [ + # Avoid running qmake, which is in nativeBuildInputs + dontConfigure = true; + + # Checked using pythonImportsCheck + doCheck = false; + + pythonImportsCheck = [ + "PyQt5.QtWebEngine" + "PyQt5.QtWebEngineWidgets" + ]; + + enableParallelBuilding = true; + + passthru = { + inherit wrapQtAppsHook; + }; + + meta = with lib; { + description = "Python bindings for Qt5"; + homepage = "http://www.riverbankcomputing.co.uk"; + license = licenses.gpl3; + hydraPlatforms = lib.lists.intersectLists qtwebengine.meta.platforms platforms.mesaPlatforms; + }; + } + // lib.optionalAttrs (stdenv.buildPlatform != stdenv.hostPlatform) { + # TODO: figure out why the env hooks aren't adding these inclusions automatically + env.NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [ "-I${lib.getDev qtbase}/include/QtPrintSupport/" "-I${lib.getDev qtwebchannel}/include/QtWebChannel/" ]; -}) + } +) diff --git a/pkgs/development/python-modules/pyquaternion/default.nix b/pkgs/development/python-modules/pyquaternion/default.nix index cb10c3bc5545..35d5a0442be5 100644 --- a/pkgs/development/python-modules/pyquaternion/default.nix +++ b/pkgs/development/python-modules/pyquaternion/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + nose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyquery/default.nix b/pkgs/development/python-modules/pyquery/default.nix index f1de975c418b..1f1d25ee605e 100644 --- a/pkgs/development/python-modules/pyquery/default.nix +++ b/pkgs/development/python-modules/pyquery/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cssselect -, fetchPypi -, lxml -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, requests -, webob -, webtest +{ + lib, + buildPythonPackage, + cssselect, + fetchPypi, + lxml, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + requests, + webob, + webtest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyqvrpro/default.nix b/pkgs/development/python-modules/pyqvrpro/default.nix index f170050954f7..53392e3cb18d 100644 --- a/pkgs/development/python-modules/pyqvrpro/default.nix +++ b/pkgs/development/python-modules/pyqvrpro/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-vcr -, pytestCheckHook -, pythonOlder -, pyyaml -, requests -, untangle +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-vcr, + pytestCheckHook, + pythonOlder, + pyyaml, + requests, + untangle, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyqvrpro" - ]; + pythonImportsCheck = [ "pyqvrpro" ]; meta = with lib; { description = "Module for interfacing with QVR Pro API"; diff --git a/pkgs/development/python-modules/pyqwikswitch/default.nix b/pkgs/development/python-modules/pyqwikswitch/default.nix index 20a5d59833db..fd6daf7d38e1 100644 --- a/pkgs/development/python-modules/pyqwikswitch/default.nix +++ b/pkgs/development/python-modules/pyqwikswitch/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, attrs -, requests -, python +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + requests, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyrabbit2/default.nix b/pkgs/development/python-modules/pyrabbit2/default.nix index 8cd8be518616..606303f8d166 100644 --- a/pkgs/development/python-modules/pyrabbit2/default.nix +++ b/pkgs/development/python-modules/pyrabbit2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "d27160cb35c096f0072df57307233d01b117a451236e136604a8e51be6f106c0"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; meta = with lib; { description = "A Pythonic interface to the RabbitMQ Management HTTP API"; diff --git a/pkgs/development/python-modules/pyradiomics/default.nix b/pkgs/development/python-modules/pyradiomics/default.nix index 2d77f8f1df0b..183f41044d31 100644 --- a/pkgs/development/python-modules/pyradiomics/default.nix +++ b/pkgs/development/python-modules/pyradiomics/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, numpy -, pykwalify -, pywavelets -, setuptools -, simpleitk -, six -, versioneer +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + numpy, + pykwalify, + pywavelets, + setuptools, + simpleitk, + six, + versioneer, }: buildPythonPackage rec { @@ -27,7 +28,10 @@ buildPythonPackage rec { name = "pyradiomics"; }; - nativeBuildInputs = [ setuptools versioneer ]; + nativeBuildInputs = [ + setuptools + versioneer + ]; propagatedBuildInputs = [ numpy @@ -57,9 +61,7 @@ buildPythonPackage rec { "-k '${toString (lib.intersperse "and" (lib.forEach disabledTests (t: "not ${t}")))}'" ]; - pythonImportsCheck = [ - "radiomics" - ]; + pythonImportsCheck = [ "radiomics" ]; meta = with lib; { homepage = "https://pyradiomics.readthedocs.io"; diff --git a/pkgs/development/python-modules/pyradios/default.nix b/pkgs/development/python-modules/pyradios/default.nix index 45e972ab5e28..1d979d267815 100644 --- a/pkgs/development/python-modules/pyradios/default.nix +++ b/pkgs/development/python-modules/pyradios/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, appdirs -, httpx -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + appdirs, + httpx, + setuptools, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyramid-beaker/default.nix b/pkgs/development/python-modules/pyramid-beaker/default.nix index a49e01a378f1..8faae270960d 100644 --- a/pkgs/development/python-modules/pyramid-beaker/default.nix +++ b/pkgs/development/python-modules/pyramid-beaker/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, beaker, pyramid }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + beaker, + pyramid, +}: buildPythonPackage rec { pname = "pyramid-beaker"; @@ -18,7 +25,10 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest ]; - propagatedBuildInputs = [ beaker pyramid ]; + propagatedBuildInputs = [ + beaker + pyramid + ]; meta = with lib; { description = "Beaker session factory backend for Pyramid"; diff --git a/pkgs/development/python-modules/pyramid-chameleon/default.nix b/pkgs/development/python-modules/pyramid-chameleon/default.nix index ab4f230afbdd..67ea57509b8b 100644 --- a/pkgs/development/python-modules/pyramid-chameleon/default.nix +++ b/pkgs/development/python-modules/pyramid-chameleon/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, chameleon -, fetchpatch -, fetchPypi -, pyramid -, pytestCheckHook -, setuptools -, zope-interface +{ + stdenv, + lib, + buildPythonPackage, + chameleon, + fetchpatch, + fetchPypi, + pyramid, + pytestCheckHook, + setuptools, + zope-interface, }: buildPythonPackage rec { @@ -39,13 +40,9 @@ buildPythonPackage rec { zope-interface ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyramid_chameleon" - ]; + pythonImportsCheck = [ "pyramid_chameleon" ]; meta = with lib; { description = "Chameleon template compiler for pyramid"; diff --git a/pkgs/development/python-modules/pyramid-exclog/default.nix b/pkgs/development/python-modules/pyramid-exclog/default.nix index b0deb497a56f..3b89ba49594a 100644 --- a/pkgs/development/python-modules/pyramid-exclog/default.nix +++ b/pkgs/development/python-modules/pyramid-exclog/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyramid +{ + lib, + buildPythonPackage, + fetchPypi, + pyramid, }: buildPythonPackage rec { @@ -25,5 +26,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/pyramid-jinja2/default.nix b/pkgs/development/python-modules/pyramid-jinja2/default.nix index 0eab257384e4..f15a3623ee23 100644 --- a/pkgs/development/python-modules/pyramid-jinja2/default.nix +++ b/pkgs/development/python-modules/pyramid-jinja2/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, webtest -, markupsafe -, jinja2 -, pytestCheckHook -, zope-deprecation -, pyramid -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + webtest, + markupsafe, + jinja2, + pytestCheckHook, + zope-deprecation, + pyramid, + pythonOlder, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { --replace " --cov" "" ''; - pythonImportsCheck = [ - "pyramid_jinja2" - ]; + pythonImportsCheck = [ "pyramid_jinja2" ]; disabledTests = [ # AssertionError: Lists differ: ['pyramid_jinja2-2.10',... diff --git a/pkgs/development/python-modules/pyramid-mako/default.nix b/pkgs/development/python-modules/pyramid-mako/default.nix index 11af19136137..2b4483d04f1d 100644 --- a/pkgs/development/python-modules/pyramid-mako/default.nix +++ b/pkgs/development/python-modules/pyramid-mako/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, webtest -, pyramid -, mako +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + webtest, + pyramid, + mako, }: buildPythonPackage rec { @@ -27,12 +28,15 @@ buildPythonPackage rec { ]; buildInputs = [ webtest ]; - propagatedBuildInputs = [ pyramid mako ]; + propagatedBuildInputs = [ + pyramid + mako + ]; meta = with lib; { homepage = "https://github.com/Pylons/pyramid_mako"; description = "Mako template bindings for the Pyramid web framework"; license = licenses.bsd0; - maintainers = with maintainers; []; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/pyramid-multiauth/default.nix b/pkgs/development/python-modules/pyramid-multiauth/default.nix index c70e7f0b0b64..6454fa6c33c2 100644 --- a/pkgs/development/python-modules/pyramid-multiauth/default.nix +++ b/pkgs/development/python-modules/pyramid-multiauth/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyramid -, unittestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyramid, + unittestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -18,23 +19,17 @@ buildPythonPackage rec { hash = "sha256-+Aa+Vc4qCqDe/W5m/RBpYAyOMJkBv+ZGSqElJlkHqs4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pyramid - ]; + propagatedBuildInputs = [ pyramid ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { changelog = "https://github.com/mozilla-services/pyramid_multiauth/releases/tag/${version}"; description = "Authentication policy for Pyramid that proxies to a stack of other authentication policies"; homepage = "https://github.com/mozilla-services/pyramid_multiauth"; license = licenses.mpl20; - maintainers = with maintainers; []; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/pyramid/default.nix b/pkgs/development/python-modules/pyramid/default.nix index d3f8d03debed..3564c0bd1aea 100644 --- a/pkgs/development/python-modules/pyramid/default.nix +++ b/pkgs/development/python-modules/pyramid/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, webtest -, zope-component -, hupper -, pastedeploy -, plaster -, plaster-pastedeploy -, repoze-lru -, translationstring -, venusian -, webob -, zope-deprecation -, zope-interface -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + webtest, + zope-component, + hupper, + pastedeploy, + plaster, + plaster-pastedeploy, + repoze-lru, + translationstring, + venusian, + webob, + zope-deprecation, + zope-interface, + pythonOlder, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { zope-component ]; - pythonImportsCheck = [ - "pyramid" - ]; + pythonImportsCheck = [ "pyramid" ]; meta = with lib; { description = "Python web framework"; diff --git a/pkgs/development/python-modules/pyrate-limiter/default.nix b/pkgs/development/python-modules/pyrate-limiter/default.nix index 8dc1c5c9426a..9003ad79c530 100644 --- a/pkgs/development/python-modules/pyrate-limiter/default.nix +++ b/pkgs/development/python-modules/pyrate-limiter/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-CPusPeyTS+QyWiMHsU0ii9ZxPuizsqv0wQy3uicrDw0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - pythonImportsCheck = [ - "pyrate_limiter" - ]; + pythonImportsCheck = [ "pyrate_limiter" ]; # The only consumer of this is Lutris (via python-moddb), and it requires 2.x, # so don't auto-update it and break Lutris every python-updates. diff --git a/pkgs/development/python-modules/pyrdfa3/default.nix b/pkgs/development/python-modules/pyrdfa3/default.nix index 6526824fd9ae..bebc20c63e96 100644 --- a/pkgs/development/python-modules/pyrdfa3/default.nix +++ b/pkgs/development/python-modules/pyrdfa3/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, html5lib -, pythonOlder -, rdflib -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + html5lib, + pythonOlder, + rdflib, + requests, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-c2gdq5V/YJAWlnZziLlWpXaccwvEUdpv+y8ONvGDFMI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ rdflib @@ -31,9 +30,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "pyRdfa" - ]; + pythonImportsCheck = [ "pyRdfa" ]; meta = with lib; { description = "RDFa 1.1 distiller/parser library"; diff --git a/pkgs/development/python-modules/pyre-extensions/default.nix b/pkgs/development/python-modules/pyre-extensions/default.nix index 24bc9312de86..3a51946a81d7 100644 --- a/pkgs/development/python-modules/pyre-extensions/default.nix +++ b/pkgs/development/python-modules/pyre-extensions/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -# build inputs -, typing-extensions -, typing-inspect +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + # build inputs + typing-extensions, + typing-inspect, }: let pname = "pyre-extensions"; diff --git a/pkgs/development/python-modules/pyreaderwriterlock/default.nix b/pkgs/development/python-modules/pyreaderwriterlock/default.nix index a9771f669871..7decdf8fda39 100644 --- a/pkgs/development/python-modules/pyreaderwriterlock/default.nix +++ b/pkgs/development/python-modules/pyreaderwriterlock/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, # propagates -, typing-extensions + typing-extensions, # tests -, unittestCheckHook + unittestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ typing-extensions ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "readerwriterlock" ]; diff --git a/pkgs/development/python-modules/pyreadstat/default.nix b/pkgs/development/python-modules/pyreadstat/default.nix index b8eaa04b1a93..e2c39b05b020 100644 --- a/pkgs/development/python-modules/pyreadstat/default.nix +++ b/pkgs/development/python-modules/pyreadstat/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, cython -, fetchFromGitHub -, libiconv -, pandas -, python -, pythonOlder -, readstat -, zlib +{ + lib, + stdenv, + buildPythonPackage, + cython, + fetchFromGitHub, + libiconv, + pandas, + python, + pythonOlder, + readstat, + zlib, }: buildPythonPackage rec { @@ -25,24 +26,16 @@ buildPythonPackage rec { hash = "sha256-VcPpGRrE/5udNijodO88Lw69JPOm6ZN7BZb4xD34srQ="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - buildInputs = [ - zlib - ] ++ lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = [ zlib ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; propagatedBuildInputs = [ readstat pandas ]; - pythonImportsCheck = [ - "pyreadstat" - ]; + pythonImportsCheck = [ "pyreadstat" ]; preCheck = '' export HOME=$(mktemp -d); diff --git a/pkgs/development/python-modules/pyrect/default.nix b/pkgs/development/python-modules/pyrect/default.nix index 0d61a2e182a0..3b673068adaa 100644 --- a/pkgs/development/python-modules/pyrect/default.nix +++ b/pkgs/development/python-modules/pyrect/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pygame +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pygame, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { hash = "sha256-9lFV9t+bkptnyv+9V8CUfFrlRJ07WA0XgHS/+0egm3g="; }; - nativeCheckInputs = [ pytestCheckHook pygame ]; + nativeCheckInputs = [ + pytestCheckHook + pygame + ]; preCheck = '' export LC_ALL="en_US.UTF-8" diff --git a/pkgs/development/python-modules/pyregion/default.nix b/pkgs/development/python-modules/pyregion/default.nix index 4d875032ef94..50d66c8e7319 100644 --- a/pkgs/development/python-modules/pyregion/default.nix +++ b/pkgs/development/python-modules/pyregion/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -# needed to build -, cython -, oldest-supported-numpy -, setuptools -, setuptools-scm -, wheel -# needed to run -, astropy -, numpy -, pyparsing -# needed to check -, pytestCheckHook -, pytest-astropy +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + # needed to build + cython, + oldest-supported-numpy, + setuptools, + setuptools-scm, + wheel, + # needed to run + astropy, + numpy, + pyparsing, + # needed to check + pytestCheckHook, + pytest-astropy, }: buildPythonPackage rec { @@ -52,7 +53,10 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ pytestCheckHook pytest-astropy ]; + nativeCheckInputs = [ + pytestCheckHook + pytest-astropy + ]; # Tests must be run in the build directory preCheck = '' diff --git a/pkgs/development/python-modules/pyrender/default.nix b/pkgs/development/python-modules/pyrender/default.nix index 41214174ae78..1ea817934509 100644 --- a/pkgs/development/python-modules/pyrender/default.nix +++ b/pkgs/development/python-modules/pyrender/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, setuptools -, freetype-py -, imageio -, networkx -, numpy -, pillow -, pyglet -, pyopengl -, scipy -, six -, trimesh -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + setuptools, + freetype-py, + imageio, + networkx, + numpy, + pillow, + pyglet, + pyopengl, + scipy, + six, + trimesh, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,7 +33,8 @@ buildPythonPackage rec { }; patches = [ - (fetchpatch { # yet to be tagged + (fetchpatch { + # yet to be tagged name = "relax-pyopengl.patch"; url = "https://github.com/mmatl/pyrender/commit/7c613e8aed7142df9ff40767a8f10b7a19b6255c.patch"; hash = "sha256-SXRV9RC3PfQGjjIQ+n97HZrSDPae3rAHnTBiHXSFLaY="; @@ -51,9 +53,7 @@ buildPythonPackage rec { 'bm = trimesh.load("tests/data/WaterBottle.glb").geometry["WaterBottle"]' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ freetype-py @@ -70,9 +70,7 @@ buildPythonPackage rec { env.PYOPENGL_PLATFORM = "egl"; # enables headless rendering during check - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # does not work inside sandbox, no GPU diff --git a/pkgs/development/python-modules/pyrevolve/default.nix b/pkgs/development/python-modules/pyrevolve/default.nix index 8fec5f23ef6e..0af3e6fe85ec 100644 --- a/pkgs/development/python-modules/pyrevolve/default.nix +++ b/pkgs/development/python-modules/pyrevolve/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, contexttimer -, setuptools -, versioneer -, cython_0 -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + contexttimer, + setuptools, + versioneer, + cython_0, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -40,17 +41,13 @@ buildPythonPackage rec { numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -rf pyrevolve ''; - pythonImportsCheck = [ - "pyrevolve" - ]; + pythonImportsCheck = [ "pyrevolve" ]; meta = with lib; { homepage = "https://github.com/devitocodes/pyrevolve"; diff --git a/pkgs/development/python-modules/pyrfc3339/default.nix b/pkgs/development/python-modules/pyrfc3339/default.nix index 368f3cda24de..ccfca503e786 100644 --- a/pkgs/development/python-modules/pyrfc3339/default.nix +++ b/pkgs/development/python-modules/pyrfc3339/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, pytz + # dependencies + pytz, -# tests -, nose + # tests + nose, }: buildPythonPackage rec { @@ -24,24 +25,17 @@ buildPythonPackage rec { sha256 = "06jv7ar7lpvvk0dixzwdr3wgm0g1lipxs429s2z7knwwa7hwpf41"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pytz - ]; + propagatedBuildInputs = [ pytz ]; doCheck = pythonOlder "3.12"; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; meta = with lib; { description = "Generate and parse RFC 3339 timestamps"; homepage = "https://github.com/kurtraschke/pyRFC3339"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pyrfxtrx/default.nix b/pkgs/development/python-modules/pyrfxtrx/default.nix index e9c1fac67131..83a89a679310 100644 --- a/pkgs/development/python-modules/pyrfxtrx/default.nix +++ b/pkgs/development/python-modules/pyrfxtrx/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-Y9UVJZxm5G5ywNLW8nm162cZTs3/mFeI+ZEUGoc9eAs="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pyserial - ]; + dependencies = [ pyserial ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Library to communicate with the RFXtrx family of devices"; diff --git a/pkgs/development/python-modules/pyric/default.nix b/pkgs/development/python-modules/pyric/default.nix index 8ee447f0f0c2..e8a29ae7258c 100644 --- a/pkgs/development/python-modules/pyric/default.nix +++ b/pkgs/development/python-modules/pyric/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { # Tests are outdated doCheck = false; - pythonImportsCheck = [ - "pyric" - ]; + pythonImportsCheck = [ "pyric" ]; meta = with lib; { description = "Python Radio Interface Controller"; diff --git a/pkgs/development/python-modules/pyring-buffer/default.nix b/pkgs/development/python-modules/pyring-buffer/default.nix index 6a5c709f617e..b693c40150c9 100644 --- a/pkgs/development/python-modules/pyring-buffer/default.nix +++ b/pkgs/development/python-modules/pyring-buffer/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-bHhcBU4tjFAyZ3/GjaP/hDXz2N73mCChTNYHsZyBCSM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "pyring_buffer" - ]; + pythonImportsCheck = [ "pyring_buffer" ]; meta = with lib; { description = "A pure Python ring buffer for bytes"; diff --git a/pkgs/development/python-modules/pyrituals/default.nix b/pkgs/development/python-modules/pyrituals/default.nix index b73ca1862735..c8514f59ae78 100644 --- a/pkgs/development/python-modules/pyrituals/default.nix +++ b/pkgs/development/python-modules/pyrituals/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "0ynjz7khp67bwxjp580w3zijxr9yn44nmnbvkxjxq9scyb2mjf6g"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp ]; diff --git a/pkgs/development/python-modules/pyrmvtransport/default.nix b/pkgs/development/python-modules/pyrmvtransport/default.nix index 60415585b1cd..89eea0f2ecbb 100644 --- a/pkgs/development/python-modules/pyrmvtransport/default.nix +++ b/pkgs/development/python-modules/pyrmvtransport/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, flit -, async-timeout -, lxml -, httpx -, pytestCheckHook -, pytest-asyncio -, pytest-httpx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + flit, + async-timeout, + lxml, + httpx, + pytestCheckHook, + pytest-asyncio, + pytest-httpx, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-nFxGEyO+wyRzPayjjv8WNIJ+XIWbVn0dyyjQKHiyr40="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; propagatedBuildInputs = [ async-timeout @@ -56,9 +55,7 @@ buildPythonPackage rec { }) ]; - pythonImportsCheck = [ - "RMVtransport" - ]; + pythonImportsCheck = [ "RMVtransport" ]; meta = with lib; { homepage = "https://github.com/cgtobi/PyRMVtransport"; diff --git a/pkgs/development/python-modules/pyro-api/default.nix b/pkgs/development/python-modules/pyro-api/default.nix index 9791d8bbaa8e..a3260a8aabdc 100644 --- a/pkgs/development/python-modules/pyro-api/default.nix +++ b/pkgs/development/python-modules/pyro-api/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, lib }: +{ + buildPythonPackage, + fetchPypi, + lib, +}: buildPythonPackage rec { version = "0.1.2"; diff --git a/pkgs/development/python-modules/pyro-ppl/default.nix b/pkgs/development/python-modules/pyro-ppl/default.nix index d96f124f6f64..0c1d05fa284c 100644 --- a/pkgs/development/python-modules/pyro-ppl/default.nix +++ b/pkgs/development/python-modules/pyro-ppl/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, graphviz -, jupyter -, matplotlib -, networkx -, opt-einsum -, pandas -, pillow -, pyro-api -, pythonOlder -, torch -, scikit-learn -, seaborn -, setuptools -, torchvision -, tqdm -, wget +{ + lib, + buildPythonPackage, + fetchPypi, + graphviz, + jupyter, + matplotlib, + networkx, + opt-einsum, + pandas, + pillow, + pyro-api, + pythonOlder, + torch, + scikit-learn, + seaborn, + setuptools, + torchvision, + tqdm, + wget, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-QfTABRWVaCgPvFEWSJYKmKKxpBACfYvQpDIgrJsQLN8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyro-api @@ -74,6 +73,9 @@ buildPythonPackage rec { homepage = "http://pyro.ai"; changelog = "https://github.com/pyro-ppl/pyro/releases/tag/${version}"; license = licenses.asl20; - maintainers = with maintainers; [ teh georgewhewell ]; + maintainers = with maintainers; [ + teh + georgewhewell + ]; }; } diff --git a/pkgs/development/python-modules/pyro4/default.nix b/pkgs/development/python-modules/pyro4/default.nix index 7b0c8229c899..387d5135d2d7 100644 --- a/pkgs/development/python-modules/pyro4/default.nix +++ b/pkgs/development/python-modules/pyro4/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cloudpickle -, dill -, fetchPypi -, msgpack -, pytestCheckHook -, pythonAtLeast -, serpent +{ + lib, + buildPythonPackage, + cloudpickle, + dill, + fetchPypi, + msgpack, + pytestCheckHook, + pythonAtLeast, + serpent, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-UR9bCATpLdd9wzrfnJR3h+P56cWpaxIWLwVXp8TOIfs="; }; - propagatedBuildInputs = [ - serpent - ]; + propagatedBuildInputs = [ serpent ]; buildInputs = [ dill @@ -34,9 +33,7 @@ buildPythonPackage rec { msgpack ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # add testsupport.py to PATH preCheck = '' @@ -57,9 +54,7 @@ buildPythonPackage rec { # otherwise the tests hang the build __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "Pyro4" - ]; + pythonImportsCheck = [ "Pyro4" ]; meta = with lib; { description = "Distributed object middleware for Python (RPC)"; diff --git a/pkgs/development/python-modules/pyro5/default.nix b/pkgs/development/python-modules/pyro5/default.nix index eacf7436cda6..500f7143c902 100644 --- a/pkgs/development/python-modules/pyro5/default.nix +++ b/pkgs/development/python-modules/pyro5/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, serpent -, pythonOlder -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + serpent, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,15 +21,11 @@ buildPythonPackage rec { hash = "sha256-gsPfyYYLSfiXso/yT+ZxbIQWcsYAr4/kDQ46f6yaP14="; }; - propagatedBuildInputs = [ - serpent - ]; + propagatedBuildInputs = [ serpent ]; __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Ignore network related tests, which fail in sandbox @@ -37,13 +34,9 @@ buildPythonPackage rec { "GetIP" "TestNameServer" "TestBCSetup" - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "Socket" - ]; + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "Socket" ]; - pythonImportsCheck = [ - "Pyro5" - ]; + pythonImportsCheck = [ "Pyro5" ]; meta = with lib; { description = "Distributed object middleware for Python (RPC)"; diff --git a/pkgs/development/python-modules/pyrogram/default.nix b/pkgs/development/python-modules/pyrogram/default.nix index c947cbaaa4eb..b7961fa3e690 100644 --- a/pkgs/development/python-modules/pyrogram/default.nix +++ b/pkgs/development/python-modules/pyrogram/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pyaes -, pysocks -, pytestCheckHook -, pytest-asyncio +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pyaes, + pysocks, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyroma/default.nix b/pkgs/development/python-modules/pyroma/default.nix index 51816799034f..eacbbe5b8b9c 100644 --- a/pkgs/development/python-modules/pyroma/default.nix +++ b/pkgs/development/python-modules/pyroma/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, build -, docutils -, flit-core -, packaging -, pygments -, requests -, trove-classifiers + # dependencies + build, + docutils, + flit-core, + packaging, + pygments, + requests, + trove-classifiers, -# test -, pytestCheckHook + # test + pytestCheckHook, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { trove-classifiers ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # tries to reach pypi diff --git a/pkgs/development/python-modules/pyroute2/default.nix b/pkgs/development/python-modules/pyroute2/default.nix index f6a185fc6dba..4f94e2ce63fe 100644 --- a/pkgs/development/python-modules/pyroute2/default.nix +++ b/pkgs/development/python-modules/pyroute2/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-zB792ZwDWd74YBYvQ5au0t2RWTIAqrWvNtQ/e+ZEk50="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # Requires root privileges, https://github.com/svinota/pyroute2/issues/778 doCheck = false; @@ -48,8 +45,14 @@ buildPythonPackage rec { description = "Python Netlink library"; homepage = "https://github.com/svinota/pyroute2"; changelog = "https://github.com/svinota/pyroute2/blob/${version}/CHANGELOG.rst"; - license = with licenses; [ asl20 /* or */ gpl2Plus ]; - maintainers = with maintainers; [ fab mic92 ]; + license = with licenses; [ + asl20 # or + gpl2Plus + ]; + maintainers = with maintainers; [ + fab + mic92 + ]; platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/pyrr/default.nix b/pkgs/development/python-modules/pyrr/default.nix index b84d1a67f1d8..d939061018ba 100644 --- a/pkgs/development/python-modules/pyrr/default.nix +++ b/pkgs/development/python-modules/pyrr/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, multipledispatch -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + multipledispatch, + numpy, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-u9O52MQskZRzw0rBH6uPdXdikWLJe7wyBZGNKIFA4BA="; }; - propagatedBuildInputs = [ multipledispatch numpy ]; + propagatedBuildInputs = [ + multipledispatch + numpy + ]; meta = with lib; { description = "3D mathematical functions using NumPy"; diff --git a/pkgs/development/python-modules/pyrsistent/default.nix b/pkgs/development/python-modules/pyrsistent/default.nix index fae4bba430d3..57804f9bd150 100644 --- a/pkgs/development/python-modules/pyrsistent/default.nix +++ b/pkgs/development/python-modules/pyrsistent/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, setuptools -, six -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + setuptools, + six, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { @@ -20,13 +21,14 @@ buildPythonPackage rec { hash = "sha256-TEj3j2KrWWxnkIYITQ3RMlSuTz1scqg//fXr3vjyZaQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ pytestCheckHook hypothesis ]; + nativeCheckInputs = [ + pytestCheckHook + hypothesis + ]; pythonImportsCheck = [ "pyrsistent" ]; @@ -36,5 +38,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ desiderius ]; }; - } diff --git a/pkgs/development/python-modules/pyrss2gen/default.nix b/pkgs/development/python-modules/pyrss2gen/default.nix index 9820eb1583f0..f07f054cbce6 100644 --- a/pkgs/development/python-modules/pyrss2gen/default.nix +++ b/pkgs/development/python-modules/pyrss2gen/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/pyrtlsdr/default.nix b/pkgs/development/python-modules/pyrtlsdr/default.nix index fdd89c28460b..4097cfddbdfe 100644 --- a/pkgs/development/python-modules/pyrtlsdr/default.nix +++ b/pkgs/development/python-modules/pyrtlsdr/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, rtl-sdr -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + rtl-sdr, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-+z5YO6BzuGHo4LxeYvZvBzZekUf102SR3krWLyPkU2I="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; postPatch = '' sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py diff --git a/pkgs/development/python-modules/pysabnzbd/default.nix b/pkgs/development/python-modules/pysabnzbd/default.nix index e6116e6442d1..4515bc0b37c8 100644 --- a/pkgs/development/python-modules/pysabnzbd/default.nix +++ b/pkgs/development/python-modules/pysabnzbd/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-Ubl+kdcjMm1A7pa3Q5G+fFBwPIxA375Ci04/vVyUl+A="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # upstream has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pysaj/default.nix b/pkgs/development/python-modules/pysaj/default.nix index 15f8dd0fccf0..499cb552b36e 100644 --- a/pkgs/development/python-modules/pysaj/default.nix +++ b/pkgs/development/python-modules/pysaj/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, lxml -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lxml, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pysaj" - ]; + pythonImportsCheck = [ "pysaj" ]; meta = with lib; { description = "Library to communicate with SAJ inverters"; diff --git a/pkgs/development/python-modules/pysam/default.nix b/pkgs/development/python-modules/pysam/default.nix index dbce429f4338..198dd2e5426f 100644 --- a/pkgs/development/python-modules/pysam/default.nix +++ b/pkgs/development/python-modules/pysam/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, bzip2 -, bcftools -, curl -, cython -, htslib -, libdeflate -, xz -, pytestCheckHook -, setuptools -, samtools -, zlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + bzip2, + bcftools, + curl, + cython, + htslib, + libdeflate, + xz, + pytestCheckHook, + setuptools, + samtools, + zlib, }: buildPythonPackage rec { - pname = "pysam"; + pname = "pysam"; version = "0.22.1"; pyproject = true; diff --git a/pkgs/development/python-modules/pysaml2/default.nix b/pkgs/development/python-modules/pysaml2/default.nix index 7f2735642253..9087ad087362 100644 --- a/pkgs/development/python-modules/pysaml2/default.nix +++ b/pkgs/development/python-modules/pysaml2/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, cryptography -, defusedxml -, fetchFromGitHub -, fetchPypi -, paste -, poetry-core -, pyasn1 -, pymongo -, pyopenssl -, pytestCheckHook -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, pytz -, repoze-who -, requests -, responses -, setuptools -, substituteAll -, xmlschema -, xmlsec -, zope-interface +{ + lib, + buildPythonPackage, + cryptography, + defusedxml, + fetchFromGitHub, + fetchPypi, + paste, + poetry-core, + pyasn1, + pymongo, + pyopenssl, + pytestCheckHook, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + pytz, + repoze-who, + requests, + responses, + setuptools, + substituteAll, + xmlschema, + xmlsec, + zope-interface, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { sed -i 's/2999\(-.*T\)/2029\1/g' tests/*.xml ''; - pythonRelaxDeps = [ - "xmlschema" - ]; + pythonRelaxDeps = [ "xmlschema" ]; nativeBuildInputs = [ poetry-core @@ -93,9 +92,7 @@ buildPythonPackage rec { "test_conf_syslog" ]; - pythonImportsCheck = [ - "saml2" - ]; + pythonImportsCheck = [ "saml2" ]; meta = with lib; { description = "Python implementation of SAML Version 2 Standard"; diff --git a/pkgs/development/python-modules/pysatochip/default.nix b/pkgs/development/python-modules/pysatochip/default.nix index f508bc303239..5b2856984cbe 100644 --- a/pkgs/development/python-modules/pysatochip/default.nix +++ b/pkgs/development/python-modules/pysatochip/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, certifi -, cryptography -, ecdsa -, pyaes -, pyopenssl -, pyscard -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + certifi, + cryptography, + ecdsa, + pyaes, + pyopenssl, + pyscard, + pythonOlder, }: buildPythonPackage rec { @@ -28,7 +29,13 @@ buildPythonPackage rec { --replace "pyopenssl==20.0.0" "pyopenssl" ''; - propagatedBuildInputs = [ cryptography ecdsa pyaes pyopenssl pyscard ]; + propagatedBuildInputs = [ + cryptography + ecdsa + pyaes + pyopenssl + pyscard + ]; nativeCheckInputs = [ certifi ]; diff --git a/pkgs/development/python-modules/pysbd/default.nix b/pkgs/development/python-modules/pysbd/default.nix index f2062569534e..fcc440fe4c74 100644 --- a/pkgs/development/python-modules/pysbd/default.nix +++ b/pkgs/development/python-modules/pysbd/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, tqdm -, spacy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + tqdm, + spacy, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { sha256 = "12p7qm237z56hw4zr03n8rycgfymhki2m9c4w3ib0mvqq122a5dp"; }; - nativeCheckInputs = [ tqdm spacy ]; + nativeCheckInputs = [ + tqdm + spacy + ]; doCheck = false; # requires pyconll and blingfire diff --git a/pkgs/development/python-modules/pysc2/default.nix b/pkgs/development/python-modules/pysc2/default.nix index b45c95541609..0ce857f1eae1 100644 --- a/pkgs/development/python-modules/pysc2/default.nix +++ b/pkgs/development/python-modules/pysc2/default.nix @@ -1,19 +1,20 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, absl-py -, enum34 -, future -, mock -, mpyq -, numpy -, portpicker -, protobuf -, pygame -, s2clientprotocol -, six -, websocket-client -, sc2-headless +{ + buildPythonPackage, + lib, + fetchFromGitHub, + absl-py, + enum34, + future, + mock, + mpyq, + numpy, + portpicker, + protobuf, + pygame, + s2clientprotocol, + six, + websocket-client, + sc2-headless, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/pyscaffold/default.nix b/pkgs/development/python-modules/pyscaffold/default.nix index c394f9550fdc..7b3bc447ef48 100644 --- a/pkgs/development/python-modules/pyscaffold/default.nix +++ b/pkgs/development/python-modules/pyscaffold/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, colorama -, configupdater -, importlib-metadata -, packaging -, platformdirs -, tomlkit -, pre-commit -, pyscaffoldext-cookiecutter -, pyscaffoldext-custom-extension -, pyscaffoldext-django -, pyscaffoldext-dsproject -, pyscaffoldext-markdown -, pyscaffoldext-travis -, virtualenv -, build -, certifi -, flake8 -, pytest -, pytest-cov -, pytest-randomly -, pytest-xdist -, sphinx -, tox +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + colorama, + configupdater, + importlib-metadata, + packaging, + platformdirs, + tomlkit, + pre-commit, + pyscaffoldext-cookiecutter, + pyscaffoldext-custom-extension, + pyscaffoldext-django, + pyscaffoldext-dsproject, + pyscaffoldext-markdown, + pyscaffoldext-travis, + virtualenv, + build, + certifi, + flake8, + pytest, + pytest-cov, + pytest-randomly, + pytest-xdist, + sphinx, + tox, }: buildPythonPackage rec { @@ -72,12 +73,8 @@ buildPythonPackage rec { pyscaffoldext-travis virtualenv ]; - ds = [ - pyscaffoldext-dsproject - ]; - md = [ - pyscaffoldext-markdown - ]; + ds = [ pyscaffoldext-dsproject ]; + md = [ pyscaffoldext-markdown ]; testing = [ build certifi diff --git a/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix b/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix index 88027434e195..bcc4ed68bfdd 100644 --- a/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-cookiecutter/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, cookiecutter -, importlib-metadata -, pyscaffold -, configupdater -, pre-commit -, pytest -, pytest-cov -, pytest-xdist -, tox -, virtualenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + cookiecutter, + importlib-metadata, + pyscaffold, + configupdater, + pre-commit, + pytest, + pytest-cov, + pytest-xdist, + tox, + virtualenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix b/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix index 9d47769bdf02..f487b25c9eea 100644 --- a/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-custom-extension/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, configupdater -, importlib-metadata -, packaging -, pyscaffold -, pre-commit -, pytest -, pytest-cov -, pytest-xdist -, tox -, virtualenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + configupdater, + importlib-metadata, + packaging, + pyscaffold, + pre-commit, + pytest, + pytest-cov, + pytest-xdist, + tox, + virtualenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyscaffoldext-django/default.nix b/pkgs/development/python-modules/pyscaffoldext-django/default.nix index 9a7725ad3244..a724b105ed2b 100644 --- a/pkgs/development/python-modules/pyscaffoldext-django/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-django/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, django -, pyscaffold -, configupdater -, pre-commit -, pytest -, pytest-cov -, pytest-xdist -, tox -, virtualenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + django, + pyscaffold, + configupdater, + pre-commit, + pytest, + pytest-cov, + pytest-xdist, + tox, + virtualenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix b/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix index e85bcc3b8e0e..5f2cd21069fe 100644 --- a/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-dsproject/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, importlib-metadata -, pyscaffold -, pyscaffoldext-markdown -, configupdater -, pre-commit -, pytest -, pytest-cov -, pytest-xdist -, tox -, virtualenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + importlib-metadata, + pyscaffold, + pyscaffoldext-markdown, + configupdater, + pre-commit, + pytest, + pytest-cov, + pytest-xdist, + tox, + virtualenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix b/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix index d0330a38f314..82b25bac417c 100644 --- a/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-markdown/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, importlib-metadata -, myst-parser -, pyscaffold -, configupdater -, pre-commit -, pytest -, pytest-cov -, pytest-xdist -, tox -, twine -, virtualenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + importlib-metadata, + myst-parser, + pyscaffold, + configupdater, + pre-commit, + pytest, + pytest-cov, + pytest-xdist, + tox, + twine, + virtualenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyscaffoldext-travis/default.nix b/pkgs/development/python-modules/pyscaffoldext-travis/default.nix index 3d5ba4aa33e0..46d27e7480b4 100644 --- a/pkgs/development/python-modules/pyscaffoldext-travis/default.nix +++ b/pkgs/development/python-modules/pyscaffoldext-travis/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, importlib-metadata -, pyscaffold -, configupdater -, pre-commit -, pytest -, pytest-cov -, pytest-xdist -, tox -, virtualenv +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + importlib-metadata, + pyscaffold, + configupdater, + pre-commit, + pytest, + pytest-cov, + pytest-xdist, + tox, + virtualenv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyscf/default.nix b/pkgs/development/python-modules/pyscf/default.nix index a8c0911276b4..8bf556ac0cba 100644 --- a/pkgs/development/python-modules/pyscf/default.nix +++ b/pkgs/development/python-modules/pyscf/default.nix @@ -1,16 +1,17 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, cmake -, blas -, libcint -, libxc -, xcfun -, cppe -, h5py -, numpy -, scipy -, pytestCheckHook +{ + buildPythonPackage, + lib, + fetchFromGitHub, + cmake, + blas, + libcint, + libxc, + xcfun, + cppe, + h5py, + numpy, + scipy, + pytestCheckHook, }: buildPythonPackage rec { @@ -99,7 +100,10 @@ buildPythonPackage rec { description = "Python-based simulations of chemistry framework"; homepage = "https://github.com/pyscf/pyscf"; license = licenses.asl20; - platforms = [ "x86_64-linux" "x86_64-darwin" ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + ]; maintainers = [ maintainers.sheepforce ]; }; } diff --git a/pkgs/development/python-modules/pyschedule/default.nix b/pkgs/development/python-modules/pyschedule/default.nix index 3d51b3bb9dee..e3f09a5a58a0 100644 --- a/pkgs/development/python-modules/pyschedule/default.nix +++ b/pkgs/development/python-modules/pyschedule/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pulp +{ + lib, + buildPythonPackage, + fetchPypi, + pulp, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "6bba9e9ea07906ce2dfe3cd847c1822b137f6b13e9f975c50b347312fd98e110"; }; - propagatedBuildInputs = [ - pulp - ]; + propagatedBuildInputs = [ pulp ]; # tests not included with pypi release (in examples) doCheck = false; diff --git a/pkgs/development/python-modules/pyschemes/default.nix b/pkgs/development/python-modules/pyschemes/default.nix index 384e375ecbde..cd4fd12c7b6e 100644 --- a/pkgs/development/python-modules/pyschemes/default.nix +++ b/pkgs/development/python-modules/pyschemes/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + fetchpatch, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-vDaWxMrn2aC2wmd035EWRZ3cd/XME81z/BWG0f2T9jc="; }) ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyschemes" ]; diff --git a/pkgs/development/python-modules/pyschlage/default.nix b/pkgs/development/python-modules/pyschlage/default.nix index d039364f6928..340a2546c653 100644 --- a/pkgs/development/python-modules/pyschlage/default.nix +++ b/pkgs/development/python-modules/pyschlage/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycognito -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycognito, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyschlage" - ]; + pythonImportsCheck = [ "pyschlage" ]; meta = with lib; { description = "Library for interacting with Schlage Encode WiFi locks"; diff --git a/pkgs/development/python-modules/pyscreenshot/default.nix b/pkgs/development/python-modules/pyscreenshot/default.nix index 50a1389fbb23..4cf66570a74f 100644 --- a/pkgs/development/python-modules/pyscreenshot/default.nix +++ b/pkgs/development/python-modules/pyscreenshot/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, easyprocess -, entrypoint2 -, jeepney -, mss -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + easyprocess, + entrypoint2, + jeepney, + mss, + pillow, }: buildPythonPackage rec { @@ -19,14 +20,16 @@ buildPythonPackage rec { sha256 = "sha256-jA6T8K72amv+Vahqv87WvTlq5LT2zB428EoorSYlWU0="; }; - propagatedBuildInputs = [ - easyprocess - entrypoint2 - pillow - ] ++ lib.optionals (isPy3k) [ - jeepney - mss - ]; + propagatedBuildInputs = + [ + easyprocess + entrypoint2 + pillow + ] + ++ lib.optionals (isPy3k) [ + jeepney + mss + ]; # recursive dependency on pyvirtualdisplay doCheck = false; diff --git a/pkgs/development/python-modules/pyscreeze/default.nix b/pkgs/development/python-modules/pyscreeze/default.nix index d5261471c8f1..465e3c9634b6 100644 --- a/pkgs/development/python-modules/pyscreeze/default.nix +++ b/pkgs/development/python-modules/pyscreeze/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, xlib -, xvfb-run -, scrot +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + xlib, + xvfb-run, + scrot, }: buildPythonPackage rec { pname = "pyscreeze"; @@ -18,15 +19,17 @@ buildPythonPackage rec { }; pythonImportsCheck = [ "pyscreeze" ]; - nativeCheckInputs = [ scrot xlib xvfb-run ]; + nativeCheckInputs = [ + scrot + xlib + xvfb-run + ]; checkPhase = '' python -m unittest tests.test_pillow_unavailable xvfb-run python -m unittest tests.test_pyscreeze ''; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; meta = with lib; { description = "PyScreeze is a simple, cross-platform screenshot module for Python 2 and 3."; diff --git a/pkgs/development/python-modules/pyscrypt/default.nix b/pkgs/development/python-modules/pyscrypt/default.nix index 223802d44996..69c613e21d56 100644 --- a/pkgs/development/python-modules/pyscrypt/default.nix +++ b/pkgs/development/python-modules/pyscrypt/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, python }: +{ + lib, + buildPythonPackage, + fetchPypi, + python, +}: buildPythonPackage rec { pname = "pyscrypt"; diff --git a/pkgs/development/python-modules/pyscss/default.nix b/pkgs/development/python-modules/pyscss/default.nix index 624217eba534..a8f41698c27b 100644 --- a/pkgs/development/python-modules/pyscss/default.nix +++ b/pkgs/development/python-modules/pyscss/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pysdcp/default.nix b/pkgs/development/python-modules/pysdcp/default.nix index b6b1798f7ae1..091eb865359b 100644 --- a/pkgs/development/python-modules/pysdcp/default.nix +++ b/pkgs/development/python-modules/pysdcp/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pysdl2/default.nix b/pkgs/development/python-modules/pysdl2/default.nix index 0ab7010f0923..b55eb16e03e1 100644 --- a/pkgs/development/python-modules/pysdl2/default.nix +++ b/pkgs/development/python-modules/pysdl2/default.nix @@ -1,4 +1,15 @@ -{ stdenv, lib, substituteAll, fetchPypi, buildPythonPackage, SDL2, SDL2_ttf, SDL2_image, SDL2_gfx, SDL2_mixer }: +{ + stdenv, + lib, + substituteAll, + fetchPypi, + buildPythonPackage, + SDL2, + SDL2_ttf, + SDL2_image, + SDL2_gfx, + SDL2_mixer, +}: buildPythonPackage rec { pname = "pysdl2"; @@ -19,19 +30,30 @@ buildPythonPackage rec { # Deliberately not in propagated build inputs; users can decide # which library they want to include. - buildInputs = [ SDL2_ttf SDL2_image SDL2_gfx SDL2_mixer ]; + buildInputs = [ + SDL2_ttf + SDL2_image + SDL2_gfx + SDL2_mixer + ]; propagatedBuildInputs = [ SDL2 ]; patches = [ - (substituteAll ({ - src = ./PySDL2-dll.patch; - } // builtins.mapAttrs (_: pkg: "${pkg}/lib/lib${pkg.pname}${stdenv.hostPlatform.extensions.sharedLibrary}") { - # substituteAll keys must start lowercase - sdl2 = SDL2; - sdl2_ttf = SDL2_ttf; - sdl2_image = SDL2_image; - sdl2_gfx = SDL2_gfx; - sdl2_mixer = SDL2_mixer; - })) + (substituteAll ( + { + src = ./PySDL2-dll.patch; + } + // + builtins.mapAttrs + (_: pkg: "${pkg}/lib/lib${pkg.pname}${stdenv.hostPlatform.extensions.sharedLibrary}") + { + # substituteAll keys must start lowercase + sdl2 = SDL2; + sdl2_ttf = SDL2_ttf; + sdl2_image = SDL2_image; + sdl2_gfx = SDL2_gfx; + sdl2_mixer = SDL2_mixer; + } + )) ]; meta = { diff --git a/pkgs/development/python-modules/pysecuritas/default.nix b/pkgs/development/python-modules/pysecuritas/default.nix index 0c777bca224d..c5ba481bab55 100644 --- a/pkgs/development/python-modules/pysecuritas/default.nix +++ b/pkgs/development/python-modules/pysecuritas/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, + xmltodict, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # https://github.com/Cebeerre/pysecuritas/issues/13 doCheck = false; - pythonImportsCheck = [ - "pysecuritas" - ]; + pythonImportsCheck = [ "pysecuritas" ]; meta = with lib; { description = "Python client to access Securitas Direct Mobile API"; diff --git a/pkgs/development/python-modules/pysensibo/default.nix b/pkgs/development/python-modules/pysensibo/default.nix index 43d19bbc3862..e5ec8d7093c4 100644 --- a/pkgs/development/python-modules/pysensibo/default.nix +++ b/pkgs/development/python-modules/pysensibo/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-lsHKwFzfkGWuUiZGkt9zwjNDDU7i6gcqcEsi5SQqsSQ="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # No tests implemented doCheck = false; - pythonImportsCheck = [ - "pysensibo" - ]; + pythonImportsCheck = [ "pysensibo" ]; meta = with lib; { description = "Module for interacting with Sensibo"; diff --git a/pkgs/development/python-modules/pysensors/default.nix b/pkgs/development/python-modules/pysensors/default.nix index eccb831300fe..650b0140f4c7 100644 --- a/pkgs/development/python-modules/pysensors/default.nix +++ b/pkgs/development/python-modules/pysensors/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, unittestCheckHook, fetchFromGitHub, lm_sensors }: +{ + lib, + buildPythonPackage, + unittestCheckHook, + fetchFromGitHub, + lm_sensors, +}: buildPythonPackage { version = "2017-07-13"; format = "setuptools"; @@ -20,7 +26,10 @@ buildPythonPackage { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; meta = with lib; { maintainers = with maintainers; [ guibou ]; diff --git a/pkgs/development/python-modules/pysequoia/default.nix b/pkgs/development/python-modules/pysequoia/default.nix index 4e48f1c49dd1..f0fe36b94d03 100644 --- a/pkgs/development/python-modules/pysequoia/default.nix +++ b/pkgs/development/python-modules/pysequoia/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkg-config -, rustPlatform -, cargo -, rustc -, bzip2 -, nettle -, openssl -, pcsclite -, stdenv -, darwin -, libiconv +{ + lib, + buildPythonPackage, + fetchPypi, + pkg-config, + rustPlatform, + cargo, + rustc, + bzip2, + nettle, + openssl, + pcsclite, + stdenv, + darwin, + libiconv, }: buildPythonPackage rec { @@ -39,16 +40,18 @@ buildPythonPackage rec { rustc ]; - buildInputs = [ - bzip2 - nettle - openssl - pcsclite - ] ++ lib.optionals stdenv.isDarwin [ - darwin.apple_sdk.frameworks.CoreFoundation - darwin.apple_sdk.frameworks.Security - libiconv - ]; + buildInputs = + [ + bzip2 + nettle + openssl + pcsclite + ] + ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.CoreFoundation + darwin.apple_sdk.frameworks.Security + libiconv + ]; pythonImportsCheck = [ "pysequoia" ]; diff --git a/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix b/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix index d935b2c17155..ad4421a5382b 100644 --- a/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix +++ b/pkgs/development/python-modules/pyserial-asyncio-fast/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools -, wheel + # build-system + setuptools, + wheel, -# dependencies -, pyserial + # dependencies + pyserial, -# tests -, pytestCheckHook -, pytest-asyncio + # tests + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; - pythonImportsCheck = [ - "serial_asyncio_fast" - ]; + pythonImportsCheck = [ "serial_asyncio_fast" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pyserial-asyncio/default.nix b/pkgs/development/python-modules/pyserial-asyncio/default.nix index 6167c40d44f0..68c318a9d975 100644 --- a/pkgs/development/python-modules/pyserial-asyncio/default.nix +++ b/pkgs/development/python-modules/pyserial-asyncio/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pyserial +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pyserial, }: buildPythonPackage rec { @@ -17,15 +18,11 @@ buildPythonPackage rec { hash = "sha256-tgMpI+BenXXsF6WvmphCnEbSg5rfr4BgTVLg+qzXoy8="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "serial_asyncio" - ]; + pythonImportsCheck = [ "serial_asyncio" ]; meta = with lib; { description = "Asyncio extension package for pyserial"; diff --git a/pkgs/development/python-modules/pyserial/default.nix b/pkgs/development/python-modules/pyserial/default.nix index ea51736d6dd9..156cf889185f 100644 --- a/pkgs/development/python-modules/pyserial/default.nix +++ b/pkgs/development/python-modules/pyserial/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, unittestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + unittestCheckHook, }: buildPythonPackage rec { @@ -24,12 +25,13 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "test" ]; - - pythonImportsCheck = [ - "serial" + unittestFlagsArray = [ + "-s" + "test" ]; + pythonImportsCheck = [ "serial" ]; + meta = with lib; { description = "Python serial port extension"; homepage = "https://github.com/pyserial/pyserial"; diff --git a/pkgs/development/python-modules/pysftp/default.nix b/pkgs/development/python-modules/pysftp/default.nix index c138f21f0179..1e1c3656ad95 100644 --- a/pkgs/development/python-modules/pysftp/default.nix +++ b/pkgs/development/python-modules/pysftp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, paramiko +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + paramiko, }: buildPythonPackage rec { @@ -28,5 +29,4 @@ buildPythonPackage rec { Book, in the docs, to see what pysftp can do for you. ''; }; - } diff --git a/pkgs/development/python-modules/pyshark/default.nix b/pkgs/development/python-modules/pyshark/default.nix index 523da7030662..3999af3f3e63 100644 --- a/pkgs/development/python-modules/pyshark/default.nix +++ b/pkgs/development/python-modules/pyshark/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, appdirs -, buildPythonPackage -, fetchFromGitHub -, lxml -, packaging -, py -, pytestCheckHook -, pythonOlder -, termcolor -, wireshark-cli +{ + lib, + stdenv, + appdirs, + buildPythonPackage, + fetchFromGitHub, + lxml, + packaging, + py, + pytestCheckHook, + pythonOlder, + termcolor, + wireshark-cli, }: buildPythonPackage rec { @@ -51,23 +52,21 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - disabledTests = [ - # flaky - # KeyError: 'Packet of index 0 does not exist in capture' - "test_getting_packet_summary" - ] ++ lib.optionals stdenv.isDarwin [ - # fails on darwin - # _pickle.PicklingError: logger cannot be pickled - "test_iterate_empty_psml_capture" - ]; + disabledTests = + [ + # flaky + # KeyError: 'Packet of index 0 does not exist in capture' + "test_getting_packet_summary" + ] + ++ lib.optionals stdenv.isDarwin [ + # fails on darwin + # _pickle.PicklingError: logger cannot be pickled + "test_iterate_empty_psml_capture" + ]; - pythonImportsCheck = [ - "pyshark" - ]; + pythonImportsCheck = [ "pyshark" ]; - pytestFlagsArray = [ - "../tests/" - ]; + pytestFlagsArray = [ "../tests/" ]; meta = with lib; { description = "Python wrapper for tshark, allowing Python packet parsing using Wireshark dissectors"; diff --git a/pkgs/development/python-modules/pyshp/default.nix b/pkgs/development/python-modules/pyshp/default.nix index 280e4cb7675b..34866cdf85a2 100644 --- a/pkgs/development/python-modules/pyshp/default.nix +++ b/pkgs/development/python-modules/pyshp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-yfxhgk8a1rdpGVkE1sjJqT6tiFLimhu2m2SjGxLI6wo="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "shapefile" - ]; + pythonImportsCheck = [ "shapefile" ]; disabledTests = [ # Requires network access diff --git a/pkgs/development/python-modules/pysiaalarm/default.nix b/pkgs/development/python-modules/pysiaalarm/default.nix index db5973207f7e..efeaf873820f 100644 --- a/pkgs/development/python-modules/pysiaalarm/default.nix +++ b/pkgs/development/python-modules/pysiaalarm/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, dataclasses-json -, pycryptodome -, setuptools-scm -, pytest-asyncio -, pytest-cases -, pytest7CheckHook -, pytz +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + dataclasses-json, + pycryptodome, + setuptools-scm, + pytest-asyncio, + pytest-cases, + pytest7CheckHook, + pytz, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "--cov pysiaalarm --cov-report term-missing" "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ dataclasses-json diff --git a/pkgs/development/python-modules/pyside2-tools/default.nix b/pkgs/development/python-modules/pyside2-tools/default.nix index 66d0fa51f211..0bfcb985d949 100644 --- a/pkgs/development/python-modules/pyside2-tools/default.nix +++ b/pkgs/development/python-modules/pyside2-tools/default.nix @@ -1,5 +1,13 @@ -{ wrapPython, python, lib, stdenv, cmake, qt5, - shiboken2, pyside2 }: +{ + wrapPython, + python, + lib, + stdenv, + cmake, + qt5, + shiboken2, + pyside2, +}: stdenv.mkDerivation { pname = "pyside2-tools"; @@ -17,13 +25,20 @@ stdenv.mkDerivation { cd sources/pyside2-tools ''; - nativeBuildInputs = [ cmake wrapPython ]; - propagatedBuildInputs = [ shiboken2 pyside2 ]; - buildInputs = [ python qt5.qtbase ]; - - cmakeFlags = [ - "-DBUILD_TESTS=OFF" + nativeBuildInputs = [ + cmake + wrapPython ]; + propagatedBuildInputs = [ + shiboken2 + pyside2 + ]; + buildInputs = [ + python + qt5.qtbase + ]; + + cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; dontWrapQtApps = true; diff --git a/pkgs/development/python-modules/pyside2/default.nix b/pkgs/development/python-modules/pyside2/default.nix index 1d4cf2ce6038..aa92b81e2dde 100644 --- a/pkgs/development/python-modules/pyside2/default.nix +++ b/pkgs/development/python-modules/pyside2/default.nix @@ -1,14 +1,15 @@ -{ python -, pythonAtLeast -, disabledIf -, fetchurl -, lib -, stdenv -, cmake -, libxcrypt -, ninja -, qt5 -, shiboken2 +{ + python, + pythonAtLeast, + disabledIf, + fetchurl, + lib, + stdenv, + cmake, + libxcrypt, + ninja, + qt5, + shiboken2, }: stdenv.mkDerivation rec { pname = "pyside2"; @@ -19,9 +20,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-2lZ807eFTSegtK/j6J3osvmLem1XOTvlbx/BP3cPryk="; }; - patches = [ - ./dont_ignore_optional_modules.patch - ]; + patches = [ ./dont_ignore_optional_modules.patch ]; postPatch = '' cd sources/pyside2 @@ -34,30 +33,36 @@ stdenv.mkDerivation rec { env.NIX_CFLAGS_COMPILE = "-I${qt5.qtdeclarative.dev}/include/QtQuick/${qt5.qtdeclarative.version}/QtQuick"; - nativeBuildInputs = [ cmake ninja qt5.qmake python ]; + nativeBuildInputs = [ + cmake + ninja + qt5.qmake + python + ]; - buildInputs = (with qt5; [ - qtbase - qtxmlpatterns - qtmultimedia - qttools - qtx11extras - qtlocation - qtscript - qtwebsockets - qtwebengine - qtwebchannel - qtcharts - qtsensors - qtsvg - qt3d - ]) ++ (with python.pkgs; [ - setuptools - ]) ++ (lib.optionals (python.pythonOlder "3.9") [ - # see similar issue: 202262 - # libxcrypt is required for crypt.h for building older python modules - libxcrypt - ]); + buildInputs = + (with qt5; [ + qtbase + qtxmlpatterns + qtmultimedia + qttools + qtx11extras + qtlocation + qtscript + qtwebsockets + qtwebengine + qtwebchannel + qtcharts + qtsensors + qtsvg + qt3d + ]) + ++ (with python.pkgs; [ setuptools ]) + ++ (lib.optionals (python.pythonOlder "3.9") [ + # see similar issue: 202262 + # libxcrypt is required for crypt.h for building older python modules + libxcrypt + ]); propagatedBuildInputs = [ shiboken2 ]; diff --git a/pkgs/development/python-modules/pyside6/default.nix b/pkgs/development/python-modules/pyside6/default.nix index bfc34a23fcd5..5f5285cccfb2 100644 --- a/pkgs/development/python-modules/pyside6/default.nix +++ b/pkgs/development/python-modules/pyside6/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, cmake -, ninja -, python -, moveBuildTree -, shiboken6 +{ + lib, + stdenv, + cmake, + ninja, + python, + moveBuildTree, + shiboken6, }: stdenv.mkDerivation rec { @@ -28,45 +29,42 @@ stdenv.mkDerivation rec { cmake ninja python - ] ++ lib.optionals stdenv.isDarwin [ - moveBuildTree - ]; + ] ++ lib.optionals stdenv.isDarwin [ moveBuildTree ]; - buildInputs = with python.pkgs.qt6; [ - # required - qtbase - python.pkgs.ninja - python.pkgs.packaging - python.pkgs.setuptools - ] ++ lib.optionals stdenv.isLinux [ - # optional - qt3d - qtcharts - qtconnectivity - qtdatavis3d - qtdeclarative - qthttpserver - qtmultimedia - qtnetworkauth - qtquick3d - qtremoteobjects - qtscxml - qtsensors - qtspeech - qtsvg - qttools - qtwebchannel - qtwebengine - qtwebsockets - ]; + buildInputs = + with python.pkgs.qt6; + [ + # required + qtbase + python.pkgs.ninja + python.pkgs.packaging + python.pkgs.setuptools + ] + ++ lib.optionals stdenv.isLinux [ + # optional + qt3d + qtcharts + qtconnectivity + qtdatavis3d + qtdeclarative + qthttpserver + qtmultimedia + qtnetworkauth + qtquick3d + qtremoteobjects + qtscxml + qtsensors + qtspeech + qtsvg + qttools + qtwebchannel + qtwebengine + qtwebsockets + ]; - propagatedBuildInputs = [ - shiboken6 - ]; + propagatedBuildInputs = [ shiboken6 ]; - cmakeFlags = [ - "-DBUILD_TESTS=OFF" - ]; + cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; dontWrapQtApps = true; @@ -78,9 +76,16 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Python bindings for Qt"; - license = with licenses; [ lgpl3Only gpl2Only gpl3Only ]; + license = with licenses; [ + lgpl3Only + gpl2Only + gpl3Only + ]; homepage = "https://wiki.qt.io/Qt_for_Python"; - maintainers = with maintainers; [ gebner Enzime ]; + maintainers = with maintainers; [ + gebner + Enzime + ]; platforms = platforms.all; }; } diff --git a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix index c10bf0108761..3e995ca11f8a 100644 --- a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -27,17 +28,11 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; - pythonRelaxDeps = [ - "pysigma" - ]; + pythonRelaxDeps = [ "pysigma" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sigma.backends.insight_idr" diff --git a/pkgs/development/python-modules/pysigma-backend-qradar/default.nix b/pkgs/development/python-modules/pysigma-backend-qradar/default.nix index 817cdf8866c9..9c2976ed46f4 100644 --- a/pkgs/development/python-modules/pysigma-backend-qradar/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-qradar/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pysigma-pipeline-sysmon -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pysigma-pipeline-sysmon, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, }: buildPythonPackage rec { @@ -24,27 +25,21 @@ buildPythonPackage rec { hash = "sha256-VymaxX+iqrRlf+WEt4xqEvNt5kg8xI5O/MoYahayu0o="; }; - pythonRelaxDeps = [ - "pysigma" - ]; + pythonRelaxDeps = [ "pysigma" ]; nativeBuildInputs = [ poetry-core pythonRelaxDepsHook ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; nativeCheckInputs = [ pysigma-pipeline-sysmon pytestCheckHook ]; - pythonImportsCheck = [ - "sigma.backends.qradar" - ]; + pythonImportsCheck = [ "sigma.backends.qradar" ]; meta = with lib; { description = "Library to support Qradar for pySigma"; diff --git a/pkgs/development/python-modules/pysigma-backend-splunk/default.nix b/pkgs/development/python-modules/pysigma-backend-splunk/default.nix index ec467e52e9ac..a3a2d6ecc466 100644 --- a/pkgs/development/python-modules/pysigma-backend-splunk/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-splunk/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pysigma-pipeline-sysmon -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pysigma-pipeline-sysmon, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-PRJmFXVjcvXVHITwp6ESSoizmJOSiLTl1mj67rNhSNw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; nativeCheckInputs = [ pysigma-pipeline-sysmon pytestCheckHook ]; - pythonImportsCheck = [ - "sigma.backends.splunk" - ]; + pythonImportsCheck = [ "sigma.backends.splunk" ]; meta = with lib; { description = "Library to support Splunk for pySigma"; diff --git a/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix b/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix index b9279b024102..0cb08550f864 100644 --- a/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix +++ b/pkgs/development/python-modules/pysigma-backend-sqlite/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-wbFSgtsiP5k1aGJx8PWDl0N28r0dgn6Fduk0PuM8x3w="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; nativeCheckInputs = [ pytestCheckHook requests ]; - pythonImportsCheck = [ - "sigma.backends.sqlite" - ]; + pythonImportsCheck = [ "sigma.backends.sqlite" ]; meta = with lib; { description = "Library to support sqlite for pySigma"; diff --git a/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix b/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix index 0b08cd5e1b12..8acb5470019e 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-crowdstrike/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-0uSoZC2cUgdOGE5saLlx5n0gbVPX61kkASCBFD4F5QM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sigma.pipelines.crowdstrike" - ]; + pythonImportsCheck = [ "sigma.pipelines.crowdstrike" ]; meta = with lib; { description = "Library to support CrowdStrike pipeline for pySigma"; diff --git a/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix b/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix index a60b50f2bc2b..4249731ec664 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-sysmon/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-/WBHu1pFEiVPJQ97xEwjJJ92h9kHzTBPgmfQrR+RZjA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sigma.pipelines.sysmon" - ]; + pythonImportsCheck = [ "sigma.pipelines.sysmon" ]; meta = with lib; { description = "Library to support Sysmon pipeline for pySigma"; diff --git a/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix b/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix index 5b6518bbf8d8..d40ceff1c792 100644 --- a/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix +++ b/pkgs/development/python-modules/pysigma-pipeline-windows/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pysigma -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pysigma, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-Ss0OMd8urCYQUlvsm/m8Kz0jY4pVSEoZuLxs1JLWxQA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - pysigma - ]; + propagatedBuildInputs = [ pysigma ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sigma.pipelines.windows" - ]; + pythonImportsCheck = [ "sigma.pipelines.windows" ]; meta = with lib; { description = "Library to support Windows service pipeline for pySigma"; diff --git a/pkgs/development/python-modules/pysignalclirestapi/default.nix b/pkgs/development/python-modules/pysignalclirestapi/default.nix index 892a681aea90..c2357f4f9544 100644 --- a/pkgs/development/python-modules/pysignalclirestapi/default.nix +++ b/pkgs/development/python-modules/pysignalclirestapi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, requests -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, + six, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-LGP/Oo4FCvOq3LuUZRYFkK2JV1kEu3MeCDgnYo+91o4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests diff --git a/pkgs/development/python-modules/pysigset/default.nix b/pkgs/development/python-modules/pysigset/default.nix index b0cd337304af..e0ecf26d4f39 100644 --- a/pkgs/development/python-modules/pysigset/default.nix +++ b/pkgs/development/python-modules/pysigset/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "pysigset"; diff --git a/pkgs/development/python-modules/pysilero-vad/default.nix b/pkgs/development/python-modules/pysilero-vad/default.nix index 332d7260e519..19cd2e70ed6a 100644 --- a/pkgs/development/python-modules/pysilero-vad/default.nix +++ b/pkgs/development/python-modules/pysilero-vad/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, stdenv -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + stdenv, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, numpy -, onnxruntime + # dependencies + numpy, + onnxruntime, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -32,22 +33,16 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "numpy" - ]; + pythonRelaxDeps = [ "numpy" ]; propagatedBuildInputs = [ numpy onnxruntime ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pysilero_vad" - ]; + pythonImportsCheck = [ "pysilero_vad" ]; meta = with lib; { # what(): /build/source/include/onnxruntime/core/common/logging/logging.h:294 static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger() Attempt to use DefaultLogger but none has been registered. diff --git a/pkgs/development/python-modules/pysim/default.nix b/pkgs/development/python-modules/pysim/default.nix index 542b0049ccd3..4ced4a03f2dd 100644 --- a/pkgs/development/python-modules/pysim/default.nix +++ b/pkgs/development/python-modules/pysim/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pytest-asyncio -, colorlog -, smpp-pdu -, pyscard -, packaging -, gsm0338 -, bidict -, jsonpath-ng -, termcolor -, pyyaml -, pycryptodomex -, construct -, pyserial -, pytlv -, cmd2 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pytest-asyncio, + colorlog, + smpp-pdu, + pyscard, + packaging, + gsm0338, + bidict, + jsonpath-ng, + termcolor, + pyyaml, + pycryptodomex, + construct, + pyserial, + pytlv, + cmd2, }: buildPythonPackage { @@ -36,9 +37,7 @@ buildPythonPackage { substituteInPlace setup.py --replace 'smpp.pdu @ git+https://github.com/hologram-io/smpp.pdu' 'smpp.pdu' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bidict @@ -57,9 +56,7 @@ buildPythonPackage { termcolor ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pySim" ]; @@ -67,6 +64,9 @@ buildPythonPackage { description = "A python tool to program SIMs / USIMs / ISIMs."; homepage = "https://github.com/osmocom/pysim"; license = licenses.gpl2; - maintainers = with maintainers; [ flokli janik ]; + maintainers = with maintainers; [ + flokli + janik + ]; }; } diff --git a/pkgs/development/python-modules/pysimplegui/default.nix b/pkgs/development/python-modules/pysimplegui/default.nix index 71234522f9fb..b67d44e86c39 100644 --- a/pkgs/development/python-modules/pysimplegui/default.nix +++ b/pkgs/development/python-modules/pysimplegui/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, tkinter -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + tkinter, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-pThG6BBWxy98REUae91yBZDKK8Q1Zc1PHpoW7nhdmAw="; }; - propagatedBuildInputs = [ - tkinter - ]; + propagatedBuildInputs = [ tkinter ]; - pythonImportsCheck = [ - "PySimpleGUI" - ]; + pythonImportsCheck = [ "PySimpleGUI" ]; meta = with lib; { description = "Python GUIs for Humans"; diff --git a/pkgs/development/python-modules/pysimplesoap/default.nix b/pkgs/development/python-modules/pysimplesoap/default.nix index d02761a1c922..3d7d25a7b9f8 100644 --- a/pkgs/development/python-modules/pysimplesoap/default.nix +++ b/pkgs/development/python-modules/pysimplesoap/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchDebianPatch -, fetchPypi -, buildPythonPackage -, m2crypto -, nix-update-script +{ + lib, + fetchDebianPatch, + fetchPypi, + buildPythonPackage, + m2crypto, + nix-update-script, }: buildPythonPackage rec { @@ -19,29 +20,47 @@ buildPythonPackage rec { hash = "sha256-sbv00NCt/5tlIZfWGqG3ZzGtYYhJ4n0o/lyyUJFtZ+E="; }; - propagatedBuildInputs = [ - m2crypto - ]; + propagatedBuildInputs = [ m2crypto ]; # Patches necessary for Python 3 compatibility plus bugfixes - patches = map (args: fetchDebianPatch ({ - inherit pname version; - debianRevision = "5"; - } // args)) [ - # Merged upstream: f5f96210e1483f81cb5c582a6619e3ec4b473027 - { patch = "Add-quotes-to-SOAPAction-header-in-SoapClient.patch"; - hash = "sha256-xA8Wnrpr31H8wy3zHSNfezFNjUJt1HbSXn3qUMzeKc0="; } - # Merged upstream: ad03a21cafab982eed321553c4bfcda1755182eb - { patch = "fix-httplib2-version-check.patch"; - hash = "sha256-zUeF3v0N/eMyRVRH3tQLfuUfMKOD/B/aqEwFh/7HxH4="; } - { patch = "reorder-type-check-to-avoid-a-TypeError.patch"; - hash = "sha256-2p5Cqvh0SPfJ8B38wb/xq7jWGYgpI9pavA6qkMUb6hA="; } - # Merged upstream: 033e5899e131a2c1bdf7db5852f816f42aac9227 - { patch = "Support-integer-values-in-maxOccurs-attribute.patch"; - hash = "sha256-IZ0DP7io+ihcnB5547cR53FAdnpRLR6z4J5KsNrkfaI="; } - { patch = "PR204.patch"; - hash = "sha256-JlxeTnKDFxvEMFBthZsaYRbNOoBvLJhBnXCRoiL/nVw="; } - ] ++ [ ./stringIO.patch ]; + patches = + map + ( + args: + fetchDebianPatch ( + { + inherit pname version; + debianRevision = "5"; + } + // args + ) + ) + [ + # Merged upstream: f5f96210e1483f81cb5c582a6619e3ec4b473027 + { + patch = "Add-quotes-to-SOAPAction-header-in-SoapClient.patch"; + hash = "sha256-xA8Wnrpr31H8wy3zHSNfezFNjUJt1HbSXn3qUMzeKc0="; + } + # Merged upstream: ad03a21cafab982eed321553c4bfcda1755182eb + { + patch = "fix-httplib2-version-check.patch"; + hash = "sha256-zUeF3v0N/eMyRVRH3tQLfuUfMKOD/B/aqEwFh/7HxH4="; + } + { + patch = "reorder-type-check-to-avoid-a-TypeError.patch"; + hash = "sha256-2p5Cqvh0SPfJ8B38wb/xq7jWGYgpI9pavA6qkMUb6hA="; + } + # Merged upstream: 033e5899e131a2c1bdf7db5852f816f42aac9227 + { + patch = "Support-integer-values-in-maxOccurs-attribute.patch"; + hash = "sha256-IZ0DP7io+ihcnB5547cR53FAdnpRLR6z4J5KsNrkfaI="; + } + { + patch = "PR204.patch"; + hash = "sha256-JlxeTnKDFxvEMFBthZsaYRbNOoBvLJhBnXCRoiL/nVw="; + } + ] + ++ [ ./stringIO.patch ]; meta = with lib; { description = "Python simple and lightweight SOAP Library"; diff --git a/pkgs/development/python-modules/pysingleton/default.nix b/pkgs/development/python-modules/pysingleton/default.nix index 790c7a0f9171..1013951b0bba 100644 --- a/pkgs/development/python-modules/pysingleton/default.nix +++ b/pkgs/development/python-modules/pysingleton/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyskyqhub/default.nix b/pkgs/development/python-modules/pyskyqhub/default.nix index 216e998a4902..95aedea3d074 100644 --- a/pkgs/development/python-modules/pyskyqhub/default.nix +++ b/pkgs/development/python-modules/pyskyqhub/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-yXqtABbsCh1yb96lsEA0gquikVenGLCo6J93AeXAC8k="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Tests require phyiscal hardware doCheck = false; - pythonImportsCheck = [ - "pyskyqhub" - ]; + pythonImportsCheck = [ "pyskyqhub" ]; meta = with lib; { description = "Python module for accessing SkyQ Hub"; diff --git a/pkgs/development/python-modules/pyskyqremote/default.nix b/pkgs/development/python-modules/pyskyqremote/default.nix index 27be3381ae4f..64be0f25f39b 100644 --- a/pkgs/development/python-modules/pyskyqremote/default.nix +++ b/pkgs/development/python-modules/pyskyqremote/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, websocket-client -, xmltodict +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + websocket-client, + xmltodict, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests, only a test script which looks like anusage example doCheck = false; - pythonImportsCheck = [ - "pyskyqremote" - ]; + pythonImportsCheck = [ "pyskyqremote" ]; meta = with lib; { description = "Python module for accessing SkyQ boxes"; diff --git a/pkgs/development/python-modules/pyslim/default.nix b/pkgs/development/python-modules/pyslim/default.nix index f21dc7b354e3..4d26124cdafb 100644 --- a/pkgs/development/python-modules/pyslim/default.nix +++ b/pkgs/development/python-modules/pyslim/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pythonOlder -, msprime -, numpy -, tskit +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pythonOlder, + msprime, + numpy, + tskit, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-valAhPEVZNv/IYe85a88SGE+2/9O1omvBywz/HeeRco="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ msprime @@ -32,9 +31,7 @@ buildPythonPackage rec { # Requires non-packaged software SLiM doCheck = false; - pythonImportsCheck = [ - "pyslim" - ]; + pythonImportsCheck = [ "pyslim" ]; meta = with lib; { description = "Tools for dealing with tree sequences coming to and from SLiM"; diff --git a/pkgs/development/python-modules/pyslurm/default.nix b/pkgs/development/python-modules/pyslurm/default.nix index f65aae69cded..8a8b69f52fb2 100644 --- a/pkgs/development/python-modules/pyslurm/default.nix +++ b/pkgs/development/python-modules/pyslurm/default.nix @@ -1,10 +1,11 @@ -{ lib -, pythonOlder -, fetchFromGitHub -, buildPythonPackage -, setuptools -, cython -, slurm +{ + lib, + pythonOlder, + fetchFromGitHub, + buildPythonPackage, + setuptools, + cython, + slurm, }: buildPythonPackage rec { @@ -21,11 +22,12 @@ buildPythonPackage rec { hash = "sha256-Qi0XftneKj7hdDiLY2hoRONRrPv49mfQlvlNkudH54Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ cython slurm ]; + buildInputs = [ + cython + slurm + ]; env = { SLURM_LIB_DIR = "${lib.getLib slurm}/lib"; diff --git a/pkgs/development/python-modules/pysma/default.nix b/pkgs/development/python-modules/pysma/default.nix index 973969e3d136..17d120b65e74 100644 --- a/pkgs/development/python-modules/pysma/default.nix +++ b/pkgs/development/python-modules/pysma/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, attrs -, buildPythonPackage -, fetchPypi -, jmespath -, pythonOlder +{ + lib, + aiohttp, + attrs, + buildPythonPackage, + fetchPypi, + jmespath, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # pypi does not contain tests and GitHub archive not available doCheck = false; - pythonImportsCheck = [ - "pysma" - ]; + pythonImportsCheck = [ "pysma" ]; meta = with lib; { description = "Python library for interacting with SMA Solar's WebConnect"; diff --git a/pkgs/development/python-modules/pysmappee/default.nix b/pkgs/development/python-modules/pysmappee/default.nix index ae9d5fa98304..dbf3d11da54b 100644 --- a/pkgs/development/python-modules/pysmappee/default.nix +++ b/pkgs/development/python-modules/pysmappee/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cachetools -, fetchFromGitHub -, paho-mqtt -, pythonOlder -, pytz -, requests -, requests-oauthlib -, schedule +{ + lib, + buildPythonPackage, + cachetools, + fetchFromGitHub, + paho-mqtt, + pythonOlder, + pytz, + requests, + requests-oauthlib, + schedule, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pysmappee" - ]; + pythonImportsCheck = [ "pysmappee" ]; meta = with lib; { description = "Python Library for the Smappee dev API"; diff --git a/pkgs/development/python-modules/pysmart/default.nix b/pkgs/development/python-modules/pysmart/default.nix index 42854750bbbb..4ad6663152d1 100644 --- a/pkgs/development/python-modules/pysmart/default.nix +++ b/pkgs/development/python-modules/pysmart/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, chardet -, humanfriendly -, pytestCheckHook -, pythonOlder -, setuptools-scm -, smartmontools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + chardet, + humanfriendly, + pytestCheckHook, + pythonOlder, + setuptools-scm, + smartmontools, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { humanfriendly ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pySMART" - ]; + pythonImportsCheck = [ "pySMART" ]; meta = with lib; { description = "Wrapper for smartctl (smartmontools)"; diff --git a/pkgs/development/python-modules/pysmartapp/default.nix b/pkgs/development/python-modules/pysmartapp/default.nix index e404ef905de1..295624bafc76 100644 --- a/pkgs/development/python-modules/pysmartapp/default.nix +++ b/pkgs/development/python-modules/pysmartapp/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpsig -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpsig, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-RiRGOO5l5hcHllyDDGLtQHr51JOTZhAa/wK8BfMqmAY="; }; - propagatedBuildInputs = [ - httpsig - ]; + propagatedBuildInputs = [ httpsig ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "pysmartapp" - ]; + pythonImportsCheck = [ "pysmartapp" ]; meta = with lib; { description = "Python implementation to work with SmartApp lifecycle events"; diff --git a/pkgs/development/python-modules/pysmartdl/default.nix b/pkgs/development/python-modules/pysmartdl/default.nix index b5c052bdfaa7..9ac9b0f70aaa 100644 --- a/pkgs/development/python-modules/pysmartdl/default.nix +++ b/pkgs/development/python-modules/pysmartdl/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-Etyv3xCB1cGozWDsskygwcTHJfC+V5hvqBNQAF8SIMM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # touch the network @@ -39,9 +36,7 @@ buildPythonPackage rec { "test_unicode" ]; - pythonImportsCheck = [ - "pySmartDL" - ]; + pythonImportsCheck = [ "pySmartDL" ]; meta = with lib; { homepage = "https://github.com/iTaybb/pySmartDL"; diff --git a/pkgs/development/python-modules/pysmartthings/default.nix b/pkgs/development/python-modules/pysmartthings/default.nix index 89b6ba537aec..dfcfeb1755c8 100644 --- a/pkgs/development/python-modules/pysmartthings/default.nix +++ b/pkgs/development/python-modules/pysmartthings/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0" ''; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # https://github.com/andrewsayre/pysmartthings/issues/80 doCheck = lib.versionOlder aiohttp.version "3.9.0"; @@ -38,9 +37,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pysmartthings" - ]; + pythonImportsCheck = [ "pysmartthings" ]; meta = with lib; { description = "Python library for interacting with the SmartThings cloud API"; diff --git a/pkgs/development/python-modules/pysmb/default.nix b/pkgs/development/python-modules/pysmb/default.nix index 67f468a508f9..5a2733c30205 100644 --- a/pkgs/development/python-modules/pysmb/default.nix +++ b/pkgs/development/python-modules/pysmb/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyasn1 -, pythonOlder -, tqdm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyasn1, + pythonOlder, + tqdm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pysmbc/default.nix b/pkgs/development/python-modules/pysmbc/default.nix index 83465ab859a2..e01646ae5b7a 100644 --- a/pkgs/development/python-modules/pysmbc/default.nix +++ b/pkgs/development/python-modules/pysmbc/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, samba -, pkg-config -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + samba, + pkg-config, + pythonOlder, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-IvFxXfglif2cxCU/6rOQtO8Lq/FPZFE82NB7N4mWMiY="; }; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - samba - ]; + buildInputs = [ samba ]; # Tests would require a local SMB server doCheck = false; - pythonImportsCheck = [ - "smbc" - ]; + pythonImportsCheck = [ "smbc" ]; meta = with lib; { description = "libsmbclient binding for Python"; diff --git a/pkgs/development/python-modules/pysmf/default.nix b/pkgs/development/python-modules/pysmf/default.nix index 6b3b50e9e1e7..aaecbda85151 100644 --- a/pkgs/development/python-modules/pysmf/default.nix +++ b/pkgs/development/python-modules/pysmf/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi, pkg-config, libsmf, glib, pytest, cython }: +{ + lib, + buildPythonPackage, + fetchPypi, + pkg-config, + libsmf, + glib, + pytest, + cython, +}: buildPythonPackage rec { pname = "pysmf"; @@ -14,8 +23,15 @@ buildPythonPackage rec { rm $sourceRoot/src/smf.c ''; - nativeBuildInputs = [ pkg-config pytest cython ]; - buildInputs = [ libsmf glib ]; + nativeBuildInputs = [ + pkg-config + pytest + cython + ]; + buildInputs = [ + libsmf + glib + ]; meta = with lib; { homepage = "https://das.nasophon.de/pysmf/"; diff --git a/pkgs/development/python-modules/pysmi-lextudio/default.nix b/pkgs/development/python-modules/pysmi-lextudio/default.nix index 184c8a8bd8f2..1b6225c3f8bf 100644 --- a/pkgs/development/python-modules/pysmi-lextudio/default.nix +++ b/pkgs/development/python-modules/pysmi-lextudio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, ply -, poetry-core -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + ply, + poetry-core, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-JrWVoK7fqESUIJeprjB28iaqOEWgsTpTqUEmSZp9XDk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ jinja2 @@ -35,9 +34,7 @@ buildPythonPackage rec { # Circular dependency on pysnmp-lextudio doCheck = false; - pythonImportsCheck = [ - "pysmi" - ]; + pythonImportsCheck = [ "pysmi" ]; meta = with lib; { description = "SNMP MIB parser"; diff --git a/pkgs/development/python-modules/pysmi/default.nix b/pkgs/development/python-modules/pysmi/default.nix index 3e32fd5bd431..0d268a6c63ad 100644 --- a/pkgs/development/python-modules/pysmi/default.nix +++ b/pkgs/development/python-modules/pysmi/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ply +{ + lib, + buildPythonPackage, + fetchPypi, + ply, }: buildPythonPackage rec { @@ -9,7 +10,7 @@ buildPythonPackage rec { format = "setuptools"; pname = "pysmi"; - src = fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "bd15a15020aee8376cab5be264c26330824a8b8164ed0195bd402dd59e4e8f7c"; }; @@ -25,5 +26,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ koral ]; }; - } diff --git a/pkgs/development/python-modules/pysml/default.nix b/pkgs/development/python-modules/pysml/default.nix index cfdfc1b47629..febe4a190b0b 100644 --- a/pkgs/development/python-modules/pysml/default.nix +++ b/pkgs/development/python-modules/pysml/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, async-timeout -, bitstring -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyserial-asyncio -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + bitstring, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyserial-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-TLIpc0bVx1As2oLyYD+BBMalwJiKdvBCcrd1tUNyh6Y="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -37,9 +36,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "sml" - ]; + pythonImportsCheck = [ "sml" ]; meta = with lib; { description = "Python library for EDL21 smart meters using Smart Message Language (SML)"; diff --git a/pkgs/development/python-modules/pysmt/default.nix b/pkgs/development/python-modules/pysmt/default.nix index 61283ce4ad3b..9c6fc48a96b6 100644 --- a/pkgs/development/python-modules/pysmt/default.nix +++ b/pkgs/development/python-modules/pysmt/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-cE+WmKzggYof/olxQb5M7xPsBONr39KdjOTG4ofYPUM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pysmt" - ]; + pythonImportsCheck = [ "pysmt" ]; meta = with lib; { description = "Python library for SMT formulae manipulation and solving"; diff --git a/pkgs/development/python-modules/pysnmp-lextudio/default.nix b/pkgs/development/python-modules/pysnmp-lextudio/default.nix index 2f921aa8039a..d8df1a72c5c4 100644 --- a/pkgs/development/python-modules/pysnmp-lextudio/default.nix +++ b/pkgs/development/python-modules/pysnmp-lextudio/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, pyasn1 -, pysmi-lextudio -, pysnmpcrypto + # dependencies + pyasn1, + pysmi-lextudio, + pysnmpcrypto, -# tests -, pytestCheckHook -, pytest-asyncio + # tests + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-iVej39OmTPiZL11+IetnqHaxFAhZ/YR7tjiRoc7pu8U="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyasn1 @@ -61,9 +60,7 @@ buildPythonPackage rec { "test_v2_walk" ]; - pythonImportsCheck = [ - "pysnmp" - ]; + pythonImportsCheck = [ "pysnmp" ]; meta = with lib; { description = "Python SNMP library"; diff --git a/pkgs/development/python-modules/pysnmp-pyasn1/default.nix b/pkgs/development/python-modules/pysnmp-pyasn1/default.nix index d962615e7adb..2d81f0c4189f 100644 --- a/pkgs/development/python-modules/pysnmp-pyasn1/default.nix +++ b/pkgs/development/python-modules/pysnmp-pyasn1/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-W74aWMqGlat+aZfhbP1cTKRz7SomHdGwfK5yJwxgyqI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyasn1" - ]; + pythonImportsCheck = [ "pyasn1" ]; meta = with lib; { description = "Python ASN.1 encoder and decoder"; diff --git a/pkgs/development/python-modules/pysnmp-pysmi/default.nix b/pkgs/development/python-modules/pysnmp-pysmi/default.nix index e87cc642400b..4dbf57dcc640 100644 --- a/pkgs/development/python-modules/pysnmp-pysmi/default.nix +++ b/pkgs/development/python-modules/pysnmp-pysmi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, ply -, poetry-core -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + ply, + poetry-core, + requests, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-dK02y8HXhwq1W6NOYsycjTpIMxoQY4qNT4n8TEycmWM="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ ply @@ -33,9 +32,7 @@ buildPythonPackage rec { # Circular dependency with pysnmplib doCheck = false; - pythonImportsCheck = [ - "pysmi" - ]; + pythonImportsCheck = [ "pysmi" ]; meta = with lib; { description = "SNMP MIB parser"; diff --git a/pkgs/development/python-modules/pysnmp/default.nix b/pkgs/development/python-modules/pysnmp/default.nix index 6921ef3ad9a9..8ec379771f0d 100644 --- a/pkgs/development/python-modules/pysnmp/default.nix +++ b/pkgs/development/python-modules/pysnmp/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyasn1 -, pycryptodomex -, pysmi +{ + lib, + buildPythonPackage, + fetchPypi, + pyasn1, + pycryptodomex, + pysmi, }: buildPythonPackage rec { @@ -21,12 +22,19 @@ buildPythonPackage rec { # NameError: name 'mibBuilder' is not defined doCheck = false; - propagatedBuildInputs = [ pyasn1 pycryptodomex pysmi ]; + propagatedBuildInputs = [ + pyasn1 + pycryptodomex + pysmi + ]; meta = with lib; { homepage = "http://snmplabs.com/pysnmp/index.html"; description = "A pure-Python SNMPv1/v2c/v3 library"; license = licenses.bsd2; - maintainers = with maintainers; [ primeos koral ]; + maintainers = with maintainers; [ + primeos + koral + ]; }; } diff --git a/pkgs/development/python-modules/pysnmpcrypto/default.nix b/pkgs/development/python-modules/pysnmpcrypto/default.nix index ffeb9dddfbd8..4261815d5741 100644 --- a/pkgs/development/python-modules/pysnmpcrypto/default.nix +++ b/pkgs/development/python-modules/pysnmpcrypto/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, cryptography -, pycryptodomex + # dependencies + cryptography, + pycryptodomex, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -30,22 +31,16 @@ buildPythonPackage rec { "observed_version = [36, 2, 0]" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography pycryptodomex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pysnmpcrypto" - ]; + pythonImportsCheck = [ "pysnmpcrypto" ]; meta = with lib; { description = "Strong crypto support for Python SNMP library"; diff --git a/pkgs/development/python-modules/pysnmplib/default.nix b/pkgs/development/python-modules/pysnmplib/default.nix index abcbe70562de..ccb5320a67ac 100644 --- a/pkgs/development/python-modules/pysnmplib/default.nix +++ b/pkgs/development/python-modules/pysnmplib/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pycryptodomex -, pysnmp-pyasn1 -, pysnmp-pysmi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pycryptodomex, + pysnmp-pyasn1, + pysnmp-pysmi, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-AtQqXiy943cYhHDsyz9Yk5uA4xK7Q4p21CT3X3zYzrQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pysnmp-pysmi @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module has no test, examples are used for testing doCheck = false; - pythonImportsCheck = [ - "pysnmp" - ]; + pythonImportsCheck = [ "pysnmp" ]; meta = with lib; { description = "Implementation of v1/v2c/v3 SNMP engine"; diff --git a/pkgs/development/python-modules/pysnooper/default.nix b/pkgs/development/python-modules/pysnooper/default.nix index 9cebc9d7bc7a..1c8da7080490 100644 --- a/pkgs/development/python-modules/pysnooper/default.nix +++ b/pkgs/development/python-modules/pysnooper/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-gQZp4WKiUKBm2GYuVzrbxa93DpN8W1V48ou3NV0chZs="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pysnooper" - ]; + pythonImportsCheck = [ "pysnooper" ]; meta = with lib; { description = "A poor man's debugger for Python"; diff --git a/pkgs/development/python-modules/pysnooz/default.nix b/pkgs/development/python-modules/pysnooz/default.nix index 4ff2513685f6..4adef044fc7a 100644 --- a/pkgs/development/python-modules/pysnooz/default.nix +++ b/pkgs/development/python-modules/pysnooz/default.nix @@ -1,18 +1,19 @@ -{ lib -, bleak -, bleak-retry-connector -, bluetooth-sensor-state-data -, buildPythonPackage -, events -, fetchFromGitHub -, freezegun -, home-assistant-bluetooth -, poetry-core -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, transitions +{ + lib, + bleak, + bleak-retry-connector, + bluetooth-sensor-state-data, + buildPythonPackage, + events, + fetchFromGitHub, + freezegun, + home-assistant-bluetooth, + poetry-core, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + transitions, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { --replace " --cov=pysnooz --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bleak @@ -56,9 +55,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pysnooz" - ]; + pythonImportsCheck = [ "pysnooz" ]; meta = with lib; { description = "Library to control SNOOZ white noise machines"; diff --git a/pkgs/development/python-modules/pysnow/default.nix b/pkgs/development/python-modules/pysnow/default.nix index 52613d602d82..f69e18f43137 100644 --- a/pkgs/development/python-modules/pysnow/default.nix +++ b/pkgs/development/python-modules/pysnow/default.nix @@ -1,15 +1,16 @@ -{ lib -, brotli -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, httpretty -, ijson -, poetry-core -, python-magic -, pytz -, pytestCheckHook -, requests-oauthlib +{ + lib, + brotli, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + httpretty, + ijson, + poetry-core, + python-magic, + pytz, + pytestCheckHook, + requests-oauthlib, }: buildPythonPackage rec { @@ -17,7 +18,6 @@ buildPythonPackage rec { version = "0.7.16"; format = "pyproject"; - src = fetchFromGitHub { owner = "rbw"; repo = pname; @@ -25,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-nKOPCkS2b3ObmBnk/7FTv4o4vwUX+tOtZI5OQQ4HSTY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ brotli @@ -58,9 +56,7 @@ buildPythonPackage rec { --replace 'oauthlib = "^3.1.0"' 'oauthlib = "*"' ''; - pythonImportsCheck = [ - "pysnow" - ]; + pythonImportsCheck = [ "pysnow" ]; meta = with lib; { description = "ServiceNow HTTP client library written in Python"; @@ -68,5 +64,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ almac ]; }; - } diff --git a/pkgs/development/python-modules/pysocks/default.nix b/pkgs/development/python-modules/pysocks/default.nix index b007ef9a4141..82c8c2dba332 100644 --- a/pkgs/development/python-modules/pysocks/default.nix +++ b/pkgs/development/python-modules/pysocks/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,8 +19,7 @@ buildPythonPackage rec { meta = with lib; { description = "SOCKS module for Python"; - license = licenses.bsd3; + license = licenses.bsd3; maintainers = with maintainers; [ thoughtpolice ]; }; - } diff --git a/pkgs/development/python-modules/pysol-cards/default.nix b/pkgs/development/python-modules/pysol-cards/default.nix index f2837b93568e..2db75c3f2820 100644 --- a/pkgs/development/python-modules/pysol-cards/default.nix +++ b/pkgs/development/python-modules/pysol-cards/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, random2 }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + random2, +}: buildPythonPackage rec { pname = "pysol-cards"; @@ -11,7 +17,10 @@ buildPythonPackage rec { hash = "sha256-C4fKez+ZFVzM08/XOfc593RNb4GYIixtSToDSj1FcMM="; }; - propagatedBuildInputs = [ six random2 ]; + propagatedBuildInputs = [ + six + random2 + ]; meta = with lib; { description = "Generates Solitaire deals"; diff --git a/pkgs/development/python-modules/pysolr/default.nix b/pkgs/development/python-modules/pysolr/default.nix index 2a4e57154cea..0ea9ceb5eca9 100644 --- a/pkgs/development/python-modules/pysolr/default.nix +++ b/pkgs/development/python-modules/pysolr/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, setuptools-scm, requests, mock }: +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + requests, + mock, +}: buildPythonPackage rec { pname = "pysolr"; @@ -24,4 +31,3 @@ buildPythonPackage rec { license = licenses.bsd3; }; } - diff --git a/pkgs/development/python-modules/pysoma/default.nix b/pkgs/development/python-modules/pysoma/default.nix index ebb87a4612a1..c27991b8ca09 100644 --- a/pkgs/development/python-modules/pysoma/default.nix +++ b/pkgs/development/python-modules/pysoma/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Project has no test doCheck = false; - pythonImportsCheck = [ - "api" - ]; + pythonImportsCheck = [ "api" ]; meta = with lib; { description = "Python wrapper for the HTTP API provided by SOMA Connect"; diff --git a/pkgs/development/python-modules/pysonos/default.nix b/pkgs/development/python-modules/pysonos/default.nix index abb395bb1283..6112f081434a 100644 --- a/pkgs/development/python-modules/pysonos/default.nix +++ b/pkgs/development/python-modules/pysonos/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, xmltodict -, ifaddr -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + xmltodict, + ifaddr, + requests, # Test dependencies -, pytestCheckHook -, mock -, requests-mock + pytestCheckHook, + mock, + requests-mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyspark/default.nix b/pkgs/development/python-modules/pyspark/default.nix index 9763ed00cda5..a5e35e698c99 100644 --- a/pkgs/development/python-modules/pyspark/default.nix +++ b/pkgs/development/python-modules/pyspark/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pandas -, py4j -, pyarrow -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pandas, + py4j, + pyarrow, + pythonOlder, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { --replace py4j== 'py4j>=' ''; - propagatedBuildInputs = [ - py4j - ]; + propagatedBuildInputs = [ py4j ]; passthru.optional-dependencies = { - ml = [ - numpy - ]; - mllib = [ - numpy - ]; + ml = [ numpy ]; + mllib = [ numpy ]; sql = [ numpy pandas @@ -49,9 +44,7 @@ buildPythonPackage rec { # Tests assume running spark instance doCheck = false; - pythonImportsCheck = [ - "pyspark" - ]; + pythonImportsCheck = [ "pyspark" ]; meta = with lib; { description = "Python bindings for Apache Spark"; diff --git a/pkgs/development/python-modules/pyspcwebgw/default.nix b/pkgs/development/python-modules/pyspcwebgw/default.nix index 8ac514d7fa5c..7b3a60721799 100644 --- a/pkgs/development/python-modules/pyspcwebgw/default.nix +++ b/pkgs/development/python-modules/pyspcwebgw/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, aioresponses -, asynccmd -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + asynccmd, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-gdIrbr25GXaX26B1f7u0NKbqqnAC2tmMFZspzW6I4HI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ asynccmd @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; pythonImportsCheck = [ "pyspcwebgw" ]; diff --git a/pkgs/development/python-modules/pyspellchecker/default.nix b/pkgs/development/python-modules/pyspellchecker/default.nix index ee8d980c1bb0..e1696d0382a1 100644 --- a/pkgs/development/python-modules/pyspellchecker/default.nix +++ b/pkgs/development/python-modules/pyspellchecker/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-8IwTMj/RqMc9UqhzyvmrirPGuMEwj3iMr+FmF+8312U="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Pure python spell checking"; diff --git a/pkgs/development/python-modules/pyspf/default.nix b/pkgs/development/python-modules/pyspf/default.nix index 3bf3a296d565..4a8582409ced 100644 --- a/pkgs/development/python-modules/pyspf/default.nix +++ b/pkgs/development/python-modules/pyspf/default.nix @@ -1,4 +1,10 @@ -{ lib, python, buildPythonPackage, fetchFromGitHub, pydns }: +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + pydns, +}: buildPythonPackage rec { pname = "pyspf"; diff --git a/pkgs/development/python-modules/pyspice/default.nix b/pkgs/development/python-modules/pyspice/default.nix index 94fa032085c9..c88331be6880 100644 --- a/pkgs/development/python-modules/pyspice/default.nix +++ b/pkgs/development/python-modules/pyspice/default.nix @@ -1,16 +1,18 @@ -{ lib, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, libngspice -, numpy -, ply -, scipy -, pyyaml -, cffi -, requests -, matplotlib -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + libngspice, + numpy, + ply, + scipy, + pyyaml, + cffi, + requests, + matplotlib, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyspiflash/default.nix b/pkgs/development/python-modules/pyspiflash/default.nix index 24306c4893c3..eda0db8b767c 100644 --- a/pkgs/development/python-modules/pyspiflash/default.nix +++ b/pkgs/development/python-modules/pyspiflash/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyftdi +{ + lib, + buildPythonPackage, + fetchPypi, + pyftdi, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "0ifnw1qm4nssb03af93qw6vpa92rmyc2hisw9m4043pm9ryqcmpc"; }; - propagatedBuildInputs = [ - pyftdi - ]; + propagatedBuildInputs = [ pyftdi ]; # tests are not shipped with the PyPI source doCheck = false; diff --git a/pkgs/development/python-modules/pyspinel/default.nix b/pkgs/development/python-modules/pyspinel/default.nix index c969b471e019..7099e7e5a4e2 100644 --- a/pkgs/development/python-modules/pyspinel/default.nix +++ b/pkgs/development/python-modules/pyspinel/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { sha256 = "0s2r00zb909cq3dd28i91qbl0nz8cga3g98z84gq5jqkjpiy8269"; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # Tests are out-dated doCheck = false; - pythonImportsCheck = [ - "spinel" - ]; + pythonImportsCheck = [ "spinel" ]; meta = with lib; { description = "Interface to the OpenThread Network Co-Processor (NCP)"; diff --git a/pkgs/development/python-modules/pyspnego/default.nix b/pkgs/development/python-modules/pyspnego/default.nix index dca383ce6d9c..992318ff0667 100644 --- a/pkgs/development/python-modules/pyspnego/default.nix +++ b/pkgs/development/python-modules/pyspnego/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, gssapi -, krb5 -, ruamel-yaml -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools -, glibcLocales +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + gssapi, + krb5, + ruamel-yaml, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, + glibcLocales, }: buildPythonPackage rec { @@ -26,27 +27,19 @@ buildPythonPackage rec { hash = "sha256-60aIRrhRynbuuFZzzBhJTlmU74CWuao8jWhr126cPrc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; passthru.optional-dependencies = { kerberos = [ gssapi krb5 ]; - yaml = [ - ruamel-yaml - ]; + yaml = [ ruamel-yaml ]; }; - pythonImportsCheck = [ - "spnego" - ]; + pythonImportsCheck = [ "spnego" ]; nativeCheckInputs = [ glibcLocales diff --git a/pkgs/development/python-modules/pysptk/default.nix b/pkgs/development/python-modules/pysptk/default.nix index 36d86db14450..ffd7caf99da4 100644 --- a/pkgs/development/python-modules/pysptk/default.nix +++ b/pkgs/development/python-modules/pysptk/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, cython -, decorator -, fetchPypi -, numpy -, pytestCheckHook -, pythonOlder -, scipy -, six +{ + lib, + stdenv, + buildPythonPackage, + cython, + decorator, + fetchPypi, + numpy, + pytestCheckHook, + pythonOlder, + scipy, + six, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { PYSPTK_BUILD_VERSION = 0; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ decorator @@ -39,9 +38,7 @@ buildPythonPackage rec { # Tests are not part of the PyPI releases doCheck = false; - pythonImportsCheck = [ - "pysptk" - ]; + pythonImportsCheck = [ "pysptk" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/pyspx/default.nix b/pkgs/development/python-modules/pyspx/default.nix index b8e3cb49df6f..56f3ffcffa34 100644 --- a/pkgs/development/python-modules/pyspx/default.nix +++ b/pkgs/development/python-modules/pyspx/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cffi -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + cffi, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyspx" - ]; + pythonImportsCheck = [ "pyspx" ]; meta = with lib; { description = "Python bindings for SPHINCS"; diff --git a/pkgs/development/python-modules/pysqlcipher3/default.nix b/pkgs/development/python-modules/pysqlcipher3/default.nix index 1bfd129cf21e..a1201c22c21f 100644 --- a/pkgs/development/python-modules/pysqlcipher3/default.nix +++ b/pkgs/development/python-modules/pysqlcipher3/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, sqlcipher }: +{ + lib, + buildPythonPackage, + fetchPypi, + sqlcipher, +}: buildPythonPackage rec { pname = "pysqlcipher3"; diff --git a/pkgs/development/python-modules/pysqlitecipher/default.nix b/pkgs/development/python-modules/pysqlitecipher/default.nix index 34f474c50a32..b1ff35671ad2 100644 --- a/pkgs/development/python-modules/pysqlitecipher/default.nix +++ b/pkgs/development/python-modules/pysqlitecipher/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, cryptography -, onetimepad +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + cryptography, + onetimepad, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pysqueezebox/default.nix b/pkgs/development/python-modules/pysqueezebox/default.nix index 31748f890765..c3f17e2bf903 100644 --- a/pkgs/development/python-modules/pysqueezebox/default.nix +++ b/pkgs/development/python-modules/pysqueezebox/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-WnL9Va3uaWlUHVBtit4v+XdYOFmPpxG91mAHEGwI+7c="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "pysqueezebox" - ]; + pythonImportsCheck = [ "pysqueezebox" ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute. diff --git a/pkgs/development/python-modules/pysrim/default.nix b/pkgs/development/python-modules/pysrim/default.nix index d00c430e3cc5..8541a95c8c6f 100644 --- a/pkgs/development/python-modules/pysrim/default.nix +++ b/pkgs/development/python-modules/pysrim/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pythonOlder, + pyyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pysrt/default.nix b/pkgs/development/python-modules/pysrt/default.nix index 3c62043d9e7f..d94e1fec3a74 100644 --- a/pkgs/development/python-modules/pysrt/default.nix +++ b/pkgs/development/python-modules/pysrt/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, chardet -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + chardet, + nose, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyssim/default.nix b/pkgs/development/python-modules/pyssim/default.nix index e7632e67905c..6b910b1d7207 100644 --- a/pkgs/development/python-modules/pyssim/default.nix +++ b/pkgs/development/python-modules/pyssim/default.nix @@ -1,11 +1,23 @@ -{ lib, buildPythonPackage, fetchFromGitHub, numpy, scipy, pillow, fetchpatch }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, + pillow, + fetchpatch, +}: buildPythonPackage rec { pname = "pyssim"; version = "0.6"; format = "setuptools"; - propagatedBuildInputs = [ numpy scipy pillow ]; + propagatedBuildInputs = [ + numpy + scipy + pillow + ]; # PyPI tarball doesn't contain test images so let's use GitHub src = fetchFromGitHub { diff --git a/pkgs/development/python-modules/pystache/default.nix b/pkgs/development/python-modules/pystache/default.nix index 5cb51640b51d..c7b5ae45e377 100644 --- a/pkgs/development/python-modules/pystache/default.nix +++ b/pkgs/development/python-modules/pystache/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, unittestCheckHook -, fetchPypi -, pythonOlder -, glibcLocales +{ + lib, + buildPythonPackage, + unittestCheckHook, + fetchPypi, + pythonOlder, + glibcLocales, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { LC_ALL = "en_US.UTF-8"; - buildInputs = [ - glibcLocales - ]; + buildInputs = [ glibcLocales ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "pystache" - ]; + pythonImportsCheck = [ "pystache" ]; meta = with lib; { description = "A framework-agnostic, logic-free templating system inspired by ctemplate and et"; diff --git a/pkgs/development/python-modules/pystardict/default.nix b/pkgs/development/python-modules/pystardict/default.nix index c36dac0e7ae2..ac890f7fdbf6 100644 --- a/pkgs/development/python-modules/pystardict/default.nix +++ b/pkgs/development/python-modules/pystardict/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,15 +22,17 @@ buildPythonPackage rec { propagatedBuildInputs = [ six ]; - nativeBuildInputs = [ setuptools setuptools-scm ]; + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pystardict" ]; meta = with lib; { - description = - "Library for manipulating StarDict dictionaries from within Python"; + description = "Library for manipulating StarDict dictionaries from within Python"; homepage = "https://github.com/lig/pystardict"; license = licenses.gpl3Plus; maintainers = with maintainers; [ thornycrackers ]; diff --git a/pkgs/development/python-modules/pystemd/default.nix b/pkgs/development/python-modules/pystemd/default.nix index 57db690b04cb..847679f2e996 100644 --- a/pkgs/development/python-modules/pystemd/default.nix +++ b/pkgs/development/python-modules/pystemd/default.nix @@ -1,13 +1,15 @@ -{ stdenv -, buildPythonPackage -, lib -, fetchPypi -, systemd -, lxml -, psutil -, pytest -, mock -, pkg-config }: +{ + stdenv, + buildPythonPackage, + lib, + fetchPypi, + systemd, + lxml, + psutil, + pytest, + mock, + pkg-config, +}: buildPythonPackage rec { pname = "pystemd"; @@ -22,9 +24,15 @@ buildPythonPackage rec { nativeBuildInputs = [ pkg-config ]; - propagatedBuildInputs = [ lxml psutil ]; + propagatedBuildInputs = [ + lxml + psutil + ]; - nativeCheckInputs = [ mock pytest ]; + nativeCheckInputs = [ + mock + pytest + ]; checkPhase = "pytest tests"; diff --git a/pkgs/development/python-modules/pystemmer/default.nix b/pkgs/development/python-modules/pystemmer/default.nix index 0c298904fdcd..bddc42a816b0 100644 --- a/pkgs/development/python-modules/pystemmer/default.nix +++ b/pkgs/development/python-modules/pystemmer/default.nix @@ -1,12 +1,13 @@ -{ lib -, python -, fetchFromGitHub -, fetchpatch2 -, buildPythonPackage -, cython -, setuptools -, libstemmer - }: +{ + lib, + python, + fetchFromGitHub, + fetchpatch2, + buildPythonPackage, + cython, + setuptools, + libstemmer, +}: buildPythonPackage rec { pname = "pystemmer"; @@ -38,17 +39,11 @@ buildPythonPackage rec { export PYSTEMMER_SYSTEM_LIBSTEMMER="${lib.getDev libstemmer}/include" ''; - env.NIX_CFLAGS_COMPILE = toString [ - "-I${lib.getDev libstemmer}/include" - ]; + env.NIX_CFLAGS_COMPILE = toString [ "-I${lib.getDev libstemmer}/include" ]; - NIX_CFLAGS_LINK = [ - "-L${libstemmer}/lib" - ]; + NIX_CFLAGS_LINK = [ "-L${libstemmer}/lib" ]; - pythonImportsCheck = [ - "Stemmer" - ]; + pythonImportsCheck = [ "Stemmer" ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/pystray/default.nix b/pkgs/development/python-modules/pystray/default.nix index a6d073dbd669..07cd05cad527 100644 --- a/pkgs/development/python-modules/pystray/default.nix +++ b/pkgs/development/python-modules/pystray/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, xlib -, six -, xvfb-run -, setuptools -, gobject-introspection -, pygobject3 -, gtk3 -, libayatana-appindicator +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + xlib, + six, + xvfb-run, + setuptools, + gobject-introspection, + pygobject3, + gtk3, + libayatana-appindicator, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { libayatana-appindicator ]; - nativeCheckInputs = [ - xvfb-run - ]; + nativeCheckInputs = [ xvfb-run ]; checkPhase = '' rm tests/icon_tests.py # test needs user input @@ -56,7 +55,10 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/moses-palmer/pystray"; description = "This library allows you to create a system tray icon"; - license = with licenses; [ gpl3Plus lgpl3Plus ]; + license = with licenses; [ + gpl3Plus + lgpl3Plus + ]; platforms = platforms.linux; maintainers = with maintainers; [ jojosch ]; }; diff --git a/pkgs/development/python-modules/pysubs2/default.nix b/pkgs/development/python-modules/pysubs2/default.nix index bd17cd369535..a7095361c751 100644 --- a/pkgs/development/python-modules/pysubs2/default.nix +++ b/pkgs/development/python-modules/pysubs2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -13,21 +14,15 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "tkarabela"; repo = pname; - rev = version; + rev = version; hash = "sha256-0bW9aB6ERRQK3psqeU0Siyi/8drEGisAp8UtTfOKlp0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pysubs2" - ]; + pythonImportsCheck = [ "pysubs2" ]; meta = with lib; { homepage = "https://github.com/tkarabela/pysubs2"; diff --git a/pkgs/development/python-modules/pysuez/default.nix b/pkgs/development/python-modules/pysuez/default.nix index 8af1c7ff006b..e78c7f36d81e 100644 --- a/pkgs/development/python-modules/pysuez/default.nix +++ b/pkgs/development/python-modules/pysuez/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, regex -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + regex, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace ", 'datetime'" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ regex @@ -38,9 +37,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pysuez" - ]; + pythonImportsCheck = [ "pysuez" ]; meta = with lib; { description = "Module to get water consumption data from Suez"; diff --git a/pkgs/development/python-modules/pysvg-py3/default.nix b/pkgs/development/python-modules/pysvg-py3/default.nix index 1647ce892ec9..77d430e67052 100644 --- a/pkgs/development/python-modules/pysvg-py3/default.nix +++ b/pkgs/development/python-modules/pysvg-py3/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, python +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pysvn/default.nix b/pkgs/development/python-modules/pysvn/default.nix index 92d76cb06dcd..e34c07ba0e94 100644 --- a/pkgs/development/python-modules/pysvn/default.nix +++ b/pkgs/development/python-modules/pysvn/default.nix @@ -1,20 +1,21 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchurl -, isPy3k -, python -, apr -, aprutil -, bash -, e2fsprogs -, expat -, gcc -, glibcLocales -, neon -, openssl -, pycxx -, subversion +{ + stdenv, + lib, + buildPythonPackage, + fetchurl, + isPy3k, + python, + apr, + aprutil, + bash, + e2fsprogs, + expat, + gcc, + glibcLocales, + neon, + openssl, + pycxx, + subversion, }: buildPythonPackage rec { @@ -27,13 +28,17 @@ buildPythonPackage rec { hash = "sha256-LbAz+KjEY3nkSJAzJNwlnSRYoWr4i1ITRUPV3ZBH7cc="; }; - patches = [ - ./replace-python-first.patch - ]; + patches = [ ./replace-python-first.patch ]; - buildInputs = [ bash subversion apr aprutil expat neon openssl ] - ++ lib.optionals stdenv.isLinux [ e2fsprogs ] - ++ lib.optionals stdenv.isDarwin [ gcc ]; + buildInputs = [ + bash + subversion + apr + aprutil + expat + neon + openssl + ] ++ lib.optionals stdenv.isLinux [ e2fsprogs ] ++ lib.optionals stdenv.isDarwin [ gcc ]; preConfigure = '' cd Source diff --git a/pkgs/development/python-modules/pyswitchbee/default.nix b/pkgs/development/python-modules/pyswitchbee/default.nix index 9fb94a5a0597..715d084ad9c1 100644 --- a/pkgs/development/python-modules/pyswitchbee/default.nix +++ b/pkgs/development/python-modules/pyswitchbee/default.nix @@ -1,11 +1,12 @@ -{ lib -, awesomeversion -, buildPythonPackage -, aiohttp -, fetchFromGitHub -, setuptools -, pythonOlder -, packaging +{ + lib, + awesomeversion, + buildPythonPackage, + aiohttp, + fetchFromGitHub, + setuptools, + pythonOlder, + packaging, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-bMxWrapFX689yvC6+9NUunEtTe79+QNauFa1ZjG9ON4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "switchbee" - ]; + pythonImportsCheck = [ "switchbee" ]; meta = with lib; { description = "Library to control SwitchBee smart home device"; diff --git a/pkgs/development/python-modules/pyswitchbot/default.nix b/pkgs/development/python-modules/pyswitchbot/default.nix index ad55dbc99fdf..335f0b8239a7 100644 --- a/pkgs/development/python-modules/pyswitchbot/default.nix +++ b/pkgs/development/python-modules/pyswitchbot/default.nix @@ -1,15 +1,16 @@ -{ lib -, bleak -, bleak-retry-connector -, boto3 -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pyopenssl -, pythonOlder -, pytestCheckHook -, requests -, setuptools +{ + lib, + bleak, + bleak-retry-connector, + boto3, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pyopenssl, + pythonOlder, + pytestCheckHook, + requests, + setuptools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-lQVUHZvAZ4J0DLlUl30dSz2wwXKb9MK5prkXvub0yNI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bleak @@ -39,18 +38,14 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # mismatch in expected data structure "test_parse_advertisement_data_curtain" ]; - pythonImportsCheck = [ - "switchbot" - ]; + pythonImportsCheck = [ "switchbot" ]; meta = with lib; { description = "Python library to control Switchbot IoT devices"; diff --git a/pkgs/development/python-modules/pysychonaut/default.nix b/pkgs/development/python-modules/pysychonaut/default.nix index 0962ee9b9db1..a0335d886af1 100644 --- a/pkgs/development/python-modules/pysychonaut/default.nix +++ b/pkgs/development/python-modules/pysychonaut/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, requests, requests-cache, beautifulsoup4 }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + requests-cache, + beautifulsoup4, +}: buildPythonPackage rec { pname = "pysychonaut"; @@ -14,7 +21,11 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "bs4" "beautifulsoup4" ''; - propagatedBuildInputs = [ requests requests-cache beautifulsoup4 ]; + propagatedBuildInputs = [ + requests + requests-cache + beautifulsoup4 + ]; # No tests available doCheck = false; diff --git a/pkgs/development/python-modules/pysyncobj/default.nix b/pkgs/development/python-modules/pysyncobj/default.nix index 3909f1626dc3..33671fb43314 100644 --- a/pkgs/development/python-modules/pysyncobj/default.nix +++ b/pkgs/development/python-modules/pysyncobj/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # Tests require network features doCheck = false; - pythonImportsCheck = [ - "pysyncobj" - ]; + pythonImportsCheck = [ "pysyncobj" ]; meta = with lib; { description = "Python library for replicating your class"; diff --git a/pkgs/development/python-modules/pysyncthru/default.nix b/pkgs/development/python-modules/pysyncthru/default.nix index 568152605c77..879c4f3388bd 100644 --- a/pkgs/development/python-modules/pysyncthru/default.nix +++ b/pkgs/development/python-modules/pysyncthru/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, aiohttp -, demjson3 -, unittestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + aiohttp, + demjson3, + unittestCheckHook, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { hash = "sha256-Zije1WzfgIU9pT0H7T/Mx+5gEBCsRgMLkfsa/KB0YtI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp demjson3 ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "pysyncthru" ]; diff --git a/pkgs/development/python-modules/pytabix/default.nix b/pkgs/development/python-modules/pytabix/default.nix index 7ad01093b212..b1508c27a08e 100644 --- a/pkgs/development/python-modules/pytabix/default.nix +++ b/pkgs/development/python-modules/pytabix/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, isPy3k -, fetchPypi -, zlib +{ + lib, + buildPythonPackage, + isPy3k, + fetchPypi, + zlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytablewriter/default.nix b/pkgs/development/python-modules/pytablewriter/default.nix index 8b37c75e9c24..ad88c83a5202 100644 --- a/pkgs/development/python-modules/pytablewriter/default.nix +++ b/pkgs/development/python-modules/pytablewriter/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, dataproperty -, dominate -, elasticsearch -, fetchFromGitHub -, loguru -, mbstrdecoder -, pandas -, pathvalidate -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools -, simplejson -, tabledata -, tcolorpy -, toml -, typepy -, xlsxwriter -, xlwt +{ + lib, + buildPythonPackage, + dataproperty, + dominate, + elasticsearch, + fetchFromGitHub, + loguru, + mbstrdecoder, + pandas, + pathvalidate, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, + simplejson, + tabledata, + tcolorpy, + toml, + typepy, + xlsxwriter, + xlwt, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-b3YzDqNATaT/FFG4/x9EGlYlhXKPvgNB2xnm0bzvLJQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dataproperty @@ -61,49 +60,33 @@ buildPythonPackage rec { xlsxwriter xlwt ]; - es = [ - elasticsearch - ]; - es8 = [ - elasticsearch - ]; + es = [ elasticsearch ]; + es8 = [ elasticsearch ]; excel = [ xlwt xlsxwriter ]; - html = [ - dominate - ]; - logging = [ - loguru - ]; + html = [ dominate ]; + logging = [ loguru ]; # from = [ # pytablereader # ]; - pandas = [ - pandas - ]; + pandas = [ pandas ]; # sqlite = [ # simplesqlite # ]; # theme = [ # pytablewriter-altrow-theme # ]; - toml = [ - toml - ]; - yaml = [ - pyyaml - ]; + toml = [ toml ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "pathvalidate" - ]; + pythonImportsCheck = [ "pathvalidate" ]; disabledTests = [ # Circular dependency diff --git a/pkgs/development/python-modules/pytado/default.nix b/pkgs/development/python-modules/pytado/default.nix index 5d84a47702b0..e82ff9c57e4e 100644 --- a/pkgs/development/python-modules/pytado/default.nix +++ b/pkgs/development/python-modules/pytado/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, requests -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + requests, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-KcYxUKQuO7TLS4YPg2mrBjP+DMnvZeJokGzwmeM/CvE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "PyTado" - ]; + pythonImportsCheck = [ "PyTado" ]; meta = with lib; { description = "Python binding for Tado web API"; diff --git a/pkgs/development/python-modules/pytaglib/default.nix b/pkgs/development/python-modules/pytaglib/default.nix index e31ea59c546d..87bb086a7211 100644 --- a/pkgs/development/python-modules/pytaglib/default.nix +++ b/pkgs/development/python-modules/pytaglib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, taglib -, cython -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + taglib, + cython, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { taglib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "taglib" - ]; + pythonImportsCheck = [ "taglib" ]; meta = with lib; { description = "Python bindings for the Taglib audio metadata library"; diff --git a/pkgs/development/python-modules/pytankerkoenig/default.nix b/pkgs/development/python-modules/pytankerkoenig/default.nix index 83c73a9d93d2..67af15854697 100644 --- a/pkgs/development/python-modules/pytankerkoenig/default.nix +++ b/pkgs/development/python-modules/pytankerkoenig/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytap2/default.nix b/pkgs/development/python-modules/pytap2/default.nix index d78a7b364779..1e080f0bbad3 100644 --- a/pkgs/development/python-modules/pytap2/default.nix +++ b/pkgs/development/python-modules/pytap2/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, nettools -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + nettools, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-GN8yFnS7HVgIP73/nVtYnwwhCBI9doGHLGSOaFiWIdw="; }; - propagatedBuildInputs = [ - nettools - ]; + propagatedBuildInputs = [ nettools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytap2" - ]; + pythonImportsCheck = [ "pytap2" ]; meta = with lib; { description = "Object-oriented wrapper around the Linux Tun/Tap device"; diff --git a/pkgs/development/python-modules/pytautulli/default.nix b/pkgs/development/python-modules/pytautulli/default.nix index ae39788541e2..2b97ceb8fb0d 100644 --- a/pkgs/development/python-modules/pytautulli/default.nix +++ b/pkgs/development/python-modules/pytautulli/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -33,26 +34,18 @@ buildPythonPackage rec { --replace "str(self.port)" "int(self.port)" ''; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ aresponses pytest-asyncio ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; - pythonImportsCheck = [ - "pytautulli" - ]; + pythonImportsCheck = [ "pytautulli" ]; meta = with lib; { description = "Python module to get information from Tautulli"; diff --git a/pkgs/development/python-modules/pyte/default.nix b/pkgs/development/python-modules/pyte/default.nix index 6968f568941a..216b9d38b52b 100644 --- a/pkgs/development/python-modules/pyte/default.nix +++ b/pkgs/development/python-modules/pyte/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, wcwidth +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + wcwidth, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytedee-async/default.nix b/pkgs/development/python-modules/pytedee-async/default.nix index cdb89a843c13..181da2761bab 100644 --- a/pkgs/development/python-modules/pytedee-async/default.nix +++ b/pkgs/development/python-modules/pytedee-async/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-5mCHCzoDJ6+ao2guhAtVjvPaAS6Hutn+NwaQIjWDlgo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - aiohttp - ]; + dependencies = [ aiohttp ]; - pythonImportsCheck = [ - "pytedee_async" - ]; + pythonImportsCheck = [ "pytedee_async" ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pytensor/default.nix b/pkgs/development/python-modules/pytensor/default.nix index 5d997cab0044..5c3329af5e10 100644 --- a/pkgs/development/python-modules/pytensor/default.nix +++ b/pkgs/development/python-modules/pytensor/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, versioneer -, cons -, etuples -, filelock -, logical-unification -, minikanren -, numpy -, scipy -, typing-extensions -, jax -, jaxlib -, numba -, numba-scipy -, pytest-mock -, pytestCheckHook -, pythonOlder -, tensorflow-probability +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + versioneer, + cons, + etuples, + filelock, + logical-unification, + minikanren, + numpy, + scipy, + typing-extensions, + jax, + jaxlib, + numba, + numba-scipy, + pytest-mock, + pytestCheckHook, + pythonOlder, + tensorflow-probability, }: buildPythonPackage rec { @@ -69,9 +70,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "pytensor" - ]; + pythonImportsCheck = [ "pytensor" ]; disabledTests = [ # benchmarks (require pytest-benchmark): @@ -95,6 +94,9 @@ buildPythonPackage rec { homepage = "https://github.com/pymc-devs/pytensor"; changelog = "https://github.com/pymc-devs/pytensor/releases"; license = licenses.bsd3; - maintainers = with maintainers; [ bcdarwin ferrine ]; + maintainers = with maintainers; [ + bcdarwin + ferrine + ]; }; } diff --git a/pkgs/development/python-modules/pytesseract/default.nix b/pkgs/development/python-modules/pytesseract/default.nix index f6a220c02eba..d8e68f3a920b 100644 --- a/pkgs/development/python-modules/pytesseract/default.nix +++ b/pkgs/development/python-modules/pytesseract/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, packaging -, pillow -, tesseract -, substituteAll -, pytestCheckHook -, setuptools +{ + buildPythonPackage, + fetchFromGitHub, + lib, + packaging, + pillow, + tesseract, + substituteAll, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - tesseract - ]; + buildInputs = [ tesseract ]; propagatedBuildInputs = [ packaging diff --git a/pkgs/development/python-modules/pytest-aiohttp/default.nix b/pkgs/development/python-modules/pytest-aiohttp/default.nix index 85dd9b7bf537..d1eb23db0d9a 100644 --- a/pkgs/development/python-modules/pytest-aiohttp/default.nix +++ b/pkgs/development/python-modules/pytest-aiohttp/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, wheel -, aiohttp -, pytest -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + wheel, + aiohttp, + pytest, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,18 +32,14 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ aiohttp pytest-asyncio ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/aio-libs/pytest-aiohttp/"; diff --git a/pkgs/development/python-modules/pytest-annotate/default.nix b/pkgs/development/python-modules/pytest-annotate/default.nix index 2c70cbd320f6..a7802b2cb716 100644 --- a/pkgs/development/python-modules/pytest-annotate/default.nix +++ b/pkgs/development/python-modules/pytest-annotate/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pyannotate -, pytest +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pyannotate, + pytest, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-CSaTIPjSGHKCR0Nvet6W8zzz/oWEC0BjIULZ+JaMH9A="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - pyannotate - ]; + propagatedBuildInputs = [ pyannotate ]; postPatch = '' substituteInPlace setup.py \ @@ -32,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pytest_annotate" - ]; + pythonImportsCheck = [ "pytest_annotate" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/pytest-ansible/default.nix b/pkgs/development/python-modules/pytest-ansible/default.nix index 4e1a0c1c4153..a95648618f38 100644 --- a/pkgs/development/python-modules/pytest-ansible/default.nix +++ b/pkgs/development/python-modules/pytest-ansible/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, ansible-compat -, ansible-core -, buildPythonPackage -, coreutils -, fetchFromGitHub -, packaging -, pytest -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + stdenv, + ansible-compat, + ansible-core, + buildPythonPackage, + coreutils, + fetchFromGitHub, + packaging, + pytest, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ ansible-core @@ -47,46 +46,45 @@ buildPythonPackage rec { packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR ''; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; - disabledTests = [ - # Host unreachable in the inventory - "test_become" - # [Errno -3] Temporary failure in name resolution - "test_connection_failure_v2" - "test_connection_failure_extra_inventory_v2" - ] ++ lib.optionals stdenv.isDarwin [ - # These tests fail in the Darwin sandbox - "test_ansible_facts" - "test_func" - "test_param_override_with_marker" - ]; + disabledTests = + [ + # Host unreachable in the inventory + "test_become" + # [Errno -3] Temporary failure in name resolution + "test_connection_failure_v2" + "test_connection_failure_extra_inventory_v2" + ] + ++ lib.optionals stdenv.isDarwin [ + # These tests fail in the Darwin sandbox + "test_ansible_facts" + "test_func" + "test_param_override_with_marker" + ]; - disabledTestPaths = [ - # Test want s to execute pytest in a subprocess - "tests/integration/test_molecule.py" - ] ++ lib.optionals stdenv.isDarwin [ - # These tests fail in the Darwin sandbox - "tests/test_adhoc.py" - "tests/test_adhoc_result.py" - ] ++ lib.optionals (lib.versionAtLeast ansible-core.version "2.16") [ - # Test fail in the NixOS environment - "tests/test_adhoc.py" - ]; + disabledTestPaths = + [ + # Test want s to execute pytest in a subprocess + "tests/integration/test_molecule.py" + ] + ++ lib.optionals stdenv.isDarwin [ + # These tests fail in the Darwin sandbox + "tests/test_adhoc.py" + "tests/test_adhoc_result.py" + ] + ++ lib.optionals (lib.versionAtLeast ansible-core.version "2.16") [ + # Test fail in the NixOS environment + "tests/test_adhoc.py" + ]; - pythonImportsCheck = [ - "pytest_ansible" - ]; + pythonImportsCheck = [ "pytest_ansible" ]; meta = with lib; { description = "Plugin for pytest to simplify calling ansible modules from tests or fixtures"; diff --git a/pkgs/development/python-modules/pytest-arraydiff/default.nix b/pkgs/development/python-modules/pytest-arraydiff/default.nix index 2fc73552d549..9f98f85052f3 100644 --- a/pkgs/development/python-modules/pytest-arraydiff/default.nix +++ b/pkgs/development/python-modules/pytest-arraydiff/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pytest -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pytest, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -19,24 +20,16 @@ buildPythonPackage rec { sha256 = "sha256-KTexRQ/JNWIPJHCdh9QMZ+BVoEPXuFQaJf36mU3aZ94="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; # The tests requires astropy, which itself requires pytest-arraydiff doCheck = false; - pythonImportsCheck = [ - "pytest_arraydiff" - ]; + pythonImportsCheck = [ "pytest_arraydiff" ]; meta = with lib; { description = "Pytest plugin to help with comparing array output from tests"; diff --git a/pkgs/development/python-modules/pytest-astropy-header/default.nix b/pkgs/development/python-modules/pytest-astropy-header/default.nix index 43f2edfc30ea..edaa756b7870 100644 --- a/pkgs/development/python-modules/pytest-astropy-header/default.nix +++ b/pkgs/development/python-modules/pytest-astropy-header/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pytest -, pytest-cov -, pytestCheckHook -, numpy -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pytest, + pytest-cov, + pytestCheckHook, + numpy, + setuptools-scm, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { sha256 = "77891101c94b75a8ca305453b879b318ab6001b370df02be2c0b6d1bb322db10"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pytest-astropy/default.nix b/pkgs/development/python-modules/pytest-astropy/default.nix index 33ffb661d73e..d0acc179479b 100644 --- a/pkgs/development/python-modules/pytest-astropy/default.nix +++ b/pkgs/development/python-modules/pytest-astropy/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, attrs -, hypothesis -, pytest -, pytest-arraydiff -, pytest-astropy-header -, pytest-cov -, pytest-doctestplus -, pytest-filter-subpackage -, pytest-mock -, pytest-openfiles -, pytest-remotedata -, setuptools -, setuptools-scm -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + hypothesis, + pytest, + pytest-arraydiff, + pytest-astropy-header, + pytest-cov, + pytest-doctestplus, + pytest-filter-subpackage, + pytest-mock, + pytest-openfiles, + pytest-remotedata, + setuptools, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ attrs diff --git a/pkgs/development/python-modules/pytest-asyncio/default.nix b/pkgs/development/python-modules/pytest-asyncio/default.nix index b7762e12175c..ef428705d758 100644 --- a/pkgs/development/python-modules/pytest-asyncio/default.nix +++ b/pkgs/development/python-modules/pytest-asyncio/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, pytest -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + pytest, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { "testout" ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; postInstall = '' mkdir $testout @@ -40,11 +37,9 @@ buildPythonPackage rec { ''; doCheck = false; - passthru.tests.pytest = callPackage ./tests.nix {}; + passthru.tests.pytest = callPackage ./tests.nix { }; - pythonImportsCheck = [ - "pytest_asyncio" - ]; + pythonImportsCheck = [ "pytest_asyncio" ]; meta = with lib; { description = "Library for testing asyncio code with pytest"; diff --git a/pkgs/development/python-modules/pytest-asyncio/tests.nix b/pkgs/development/python-modules/pytest-asyncio/tests.nix index 7fd26c85488d..d5f8ead94cbe 100644 --- a/pkgs/development/python-modules/pytest-asyncio/tests.nix +++ b/pkgs/development/python-modules/pytest-asyncio/tests.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, flaky -, hypothesis -, pytest-asyncio -, pytest-trio -, pytestCheckHook +{ + buildPythonPackage, + flaky, + hypothesis, + pytest-asyncio, + pytest-trio, + pytestCheckHook, }: buildPythonPackage { @@ -17,9 +18,7 @@ buildPythonPackage { dontBuild = true; dontInstall = true; - propagatedBuildInputs = [ - pytest-asyncio - ]; + propagatedBuildInputs = [ pytest-asyncio ]; nativeCheckInputs = [ flaky diff --git a/pkgs/development/python-modules/pytest-base-url/default.nix b/pkgs/development/python-modules/pytest-base-url/default.nix index 1d8a3cb6396a..d7afa906d75b 100644 --- a/pkgs/development/python-modules/pytest-base-url/default.nix +++ b/pkgs/development/python-modules/pytest-base-url/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, hatchling -, hatch-vcs -, pytest -, pytest-localserver -, pytest-metadata -, requests -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + hatchling, + hatch-vcs, + pytest, + pytest-localserver, + pytest-metadata, + requests, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { hatch-vcs ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; __darwinAllowLocalNetworking = true; @@ -46,18 +43,14 @@ buildPythonPackage rec { pytest-metadata ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; disabledTests = [ # should be xfail? or mocking doesn't work "test_url_fails" ]; - pythonImportsCheck = [ - "pytest_base_url" - ]; + pythonImportsCheck = [ "pytest_base_url" ]; meta = with lib; { description = "pytest plugin for URL based tests"; diff --git a/pkgs/development/python-modules/pytest-benchmark/default.nix b/pkgs/development/python-modules/pytest-benchmark/default.nix index dc2c27137169..70dc1d0f7fb1 100644 --- a/pkgs/development/python-modules/pytest-benchmark/default.nix +++ b/pkgs/development/python-modules/pytest-benchmark/default.nix @@ -1,20 +1,21 @@ -{ lib -, aspectlib -, buildPythonPackage -, elasticsearch -, elastic-transport -, fetchFromGitHub -, fetchpatch -, freezegun -, git -, mercurial -, py-cpuinfo -, pygal -, pytest -, pytestCheckHook -, pytest-xdist -, pythonOlder -, setuptools +{ + lib, + aspectlib, + buildPythonPackage, + elasticsearch, + elastic-transport, + fetchFromGitHub, + fetchpatch, + freezegun, + git, + mercurial, + py-cpuinfo, + pygal, + pytest, + pytestCheckHook, + pytest-xdist, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,7 +25,6 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - src = fetchFromGitHub { owner = "ionelmc"; repo = pname; @@ -49,17 +49,11 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - py-cpuinfo - ]; + propagatedBuildInputs = [ py-cpuinfo ]; passthru.optional-dependencies = { aspect = [ aspectlib ]; @@ -67,9 +61,7 @@ buildPythonPackage rec { elasticsearch = [ elasticsearch ]; }; - pythonImportsCheck = [ - "pytest_benchmark" - ]; + pythonImportsCheck = [ "pytest_benchmark" ]; nativeCheckInputs = [ elastic-transport @@ -81,7 +73,8 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; preCheck = '' diff --git a/pkgs/development/python-modules/pytest-black/default.nix b/pkgs/development/python-modules/pytest-black/default.nix index a5fbb9874c57..e608f24f30fb 100644 --- a/pkgs/development/python-modules/pytest-black/default.nix +++ b/pkgs/development/python-modules/pytest-black/default.nix @@ -1,8 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi -, black -, pytest -, setuptools-scm -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + black, + pytest, + setuptools-scm, + toml, }: buildPythonPackage rec { @@ -19,7 +22,10 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ black toml ]; + propagatedBuildInputs = [ + black + toml + ]; # does not contain tests doCheck = false; diff --git a/pkgs/development/python-modules/pytest-cases/default.nix b/pkgs/development/python-modules/pytest-cases/default.nix index 9c89a38c1059..8741af9da335 100644 --- a/pkgs/development/python-modules/pytest-cases/default.nix +++ b/pkgs/development/python-modules/pytest-cases/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, makefun -, decopatch -, pythonOlder -, pytest -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + makefun, + decopatch, + pythonOlder, + pytest, + setuptools-scm, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-ySBUGHhHp9MNirZwn7FnCoMOThkjS+cAyFyWttcQLBY="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ decopatch @@ -38,9 +35,7 @@ buildPythonPackage rec { # makefun, pytest-*) have circular dependencies. doCheck = false; - pythonImportsCheck = [ - "pytest_cases" - ]; + pythonImportsCheck = [ "pytest_cases" ]; meta = with lib; { description = "Separate test code from test cases in pytest"; diff --git a/pkgs/development/python-modules/pytest-catchlog/default.nix b/pkgs/development/python-modules/pytest-catchlog/default.nix index 4fbfd57fe583..41cb34b61068 100644 --- a/pkgs/development/python-modules/pytest-catchlog/default.nix +++ b/pkgs/development/python-modules/pytest-catchlog/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, unzip }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + unzip, +}: buildPythonPackage rec { pname = "pytest-catchlog"; diff --git a/pkgs/development/python-modules/pytest-celery/default.nix b/pkgs/development/python-modules/pytest-celery/default.nix index 0af07db4ec1f..12b7c581ab38 100644 --- a/pkgs/development/python-modules/pytest-celery/default.nix +++ b/pkgs/development/python-modules/pytest-celery/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, flit-core }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, +}: buildPythonPackage rec { pname = "pytest-celery"; @@ -19,9 +24,7 @@ buildPythonPackage rec { --replace '"celery >= 4.4.0"' "" ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # This package has nothing to test or import. doCheck = false; diff --git a/pkgs/development/python-modules/pytest-check/default.nix b/pkgs/development/python-modules/pytest-check/default.nix index efa2cc4049bc..c9f7b131c9d4 100644 --- a/pkgs/development/python-modules/pytest-check/default.nix +++ b/pkgs/development/python-modules/pytest-check/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,21 +18,13 @@ buildPythonPackage rec { hash = "sha256-UbjxiozKpCbF2RPE4ORvAUqqdXlIHqA9Itfh9Jj2ibI="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_check" - ]; + pythonImportsCheck = [ "pytest_check" ]; meta = with lib; { description = "pytest plugin allowing multiple failures per test"; diff --git a/pkgs/development/python-modules/pytest-cid/default.nix b/pkgs/development/python-modules/pytest-cid/default.nix index eea7a6ead0ee..85dd4123d8d1 100644 --- a/pkgs/development/python-modules/pytest-cid/default.nix +++ b/pkgs/development/python-modules/pytest-cid/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, flit-core -, py-cid -, pytestCheckHook -, pytest-cov +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + flit-core, + py-cid, + pytestCheckHook, + pytest-cov, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { --replace "pytest >= 5.0, < 7.0" "pytest >= 5.0" ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - py-cid - ]; + propagatedBuildInputs = [ py-cid ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pytest-click/default.nix b/pkgs/development/python-modules/pytest-click/default.nix index eaf81fa468db..8c12563a5be2 100644 --- a/pkgs/development/python-modules/pytest-click/default.nix +++ b/pkgs/development/python-modules/pytest-click/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytest -, click -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytest, + click, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pytest-console-scripts/default.nix b/pkgs/development/python-modules/pytest-console-scripts/default.nix index 81b31c256cfd..0d4130227632 100644 --- a/pkgs/development/python-modules/pytest-console-scripts/default.nix +++ b/pkgs/development/python-modules/pytest-console-scripts/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, mock -, fetchPypi -, pytestCheckHook -, python -, pythonOlder -, setuptools-scm -, setuptools +{ + lib, + buildPythonPackage, + mock, + fetchPypi, + pytestCheckHook, + python, + pythonOlder, + setuptools-scm, + setuptools, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-WoJu2EzAr6IC655EOB19di973ajgwj+feafx9Ez0qJU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; nativeCheckInputs = [ mock @@ -40,9 +37,7 @@ buildPythonPackage rec { --replace "#!/usr/bin/env python" "#!${python.interpreter}" ''; - pythonImportsCheck = [ - "pytest_console_scripts" - ]; + pythonImportsCheck = [ "pytest_console_scripts" ]; meta = with lib; { description = "Pytest plugin for testing console scripts"; diff --git a/pkgs/development/python-modules/pytest-cov/default.nix b/pkgs/development/python-modules/pytest-cov/default.nix index 08ab3e4d1034..15158fe0e0e8 100644 --- a/pkgs/development/python-modules/pytest-cov/default.nix +++ b/pkgs/development/python-modules/pytest-cov/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, coverage -, toml -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + coverage, + toml, + tomli, }: buildPythonPackage rec { @@ -19,7 +20,11 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ coverage toml tomli ]; + propagatedBuildInputs = [ + coverage + toml + tomli + ]; # xdist related tests fail with the following error # OSError: [Errno 13] Permission denied: 'py/_code' diff --git a/pkgs/development/python-modules/pytest-cram/default.nix b/pkgs/development/python-modules/pytest-cram/default.nix index 7aa58096f1bf..8cc38ccc15bc 100644 --- a/pkgs/development/python-modules/pytest-cram/default.nix +++ b/pkgs/development/python-modules/pytest-cram/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, cram, bash }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + cram, + bash, +}: buildPythonPackage rec { version = "0.2.2"; diff --git a/pkgs/development/python-modules/pytest-datadir/default.nix b/pkgs/development/python-modules/pytest-datadir/default.nix index 4adaee73ceae..3c241457449f 100644 --- a/pkgs/development/python-modules/pytest-datadir/default.nix +++ b/pkgs/development/python-modules/pytest-datadir/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-datafiles/default.nix b/pkgs/development/python-modules/pytest-datafiles/default.nix index 314231942089..d60948e7d924 100644 --- a/pkgs/development/python-modules/pytest-datafiles/default.nix +++ b/pkgs/development/python-modules/pytest-datafiles/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, py -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + py, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_datafiles" - ]; + pythonImportsCheck = [ "pytest_datafiles" ]; meta = with lib; { description = "Pytest plugin to create a tmpdir containing predefined files/directories"; diff --git a/pkgs/development/python-modules/pytest-dependency/default.nix b/pkgs/development/python-modules/pytest-dependency/default.nix index 7ca70a0f4fc7..e4409590a971 100644 --- a/pkgs/development/python-modules/pytest-dependency/default.nix +++ b/pkgs/development/python-modules/pytest-dependency/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -16,21 +17,13 @@ buildPythonPackage rec { hash = "sha256-k0sOajnZWZUGLBk/fq7tio/6Bv8bzvS2Kw3HSnCLrME="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_dependency" - ]; + pythonImportsCheck = [ "pytest_dependency" ]; meta = with lib; { homepage = "https://github.com/RKrahl/pytest-dependency"; diff --git a/pkgs/development/python-modules/pytest-describe/default.nix b/pkgs/development/python-modules/pytest-describe/default.nix index c1118327734c..6ce782c44200 100644 --- a/pkgs/development/python-modules/pytest-describe/default.nix +++ b/pkgs/development/python-modules/pytest-describe/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build -, pytest + # build + pytest, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: let @@ -22,13 +23,9 @@ buildPythonPackage { hash = "sha256-ObsF65DySX2co0Lvmgt/pbraflhQWuwz9m1mHWMZVbc="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Describe-style plugin for the pytest framework"; diff --git a/pkgs/development/python-modules/pytest-django/default.nix b/pkgs/development/python-modules/pytest-django/default.nix index af7169bffc60..d1fe3b75ca1c 100644 --- a/pkgs/development/python-modules/pytest-django/default.nix +++ b/pkgs/development/python-modules/pytest-django/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, django -, setuptools -, setuptools-scm -, django-configurations -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + django, + setuptools, + setuptools-scm, + django-configurations, + pytest, + pytestCheckHook, }: buildPythonPackage rec { pname = "pytest-django"; @@ -23,13 +24,9 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - django - ]; + propagatedBuildInputs = [ django ]; nativeCheckInputs = [ django-configurations diff --git a/pkgs/development/python-modules/pytest-doctestplus/default.nix b/pkgs/development/python-modules/pytest-doctestplus/default.nix index ff5e1b0ef2b6..3a57ab7db41c 100644 --- a/pkgs/development/python-modules/pytest-doctestplus/default.nix +++ b/pkgs/development/python-modules/pytest-doctestplus/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gitMinimal -, numpy -, packaging -, pytest -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + gitMinimal, + numpy, + packaging, + pytest, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { --replace-fail '"git"' '"${lib.getExe gitMinimal}"' ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ packaging diff --git a/pkgs/development/python-modules/pytest-dotenv/default.nix b/pkgs/development/python-modules/pytest-dotenv/default.nix index 9f045315f6d1..e093feed1ca2 100644 --- a/pkgs/development/python-modules/pytest-dotenv/default.nix +++ b/pkgs/development/python-modules/pytest-dotenv/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, python-dotenv }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + python-dotenv, +}: buildPythonPackage rec { pname = "pytest-dotenv"; diff --git a/pkgs/development/python-modules/pytest-emoji/default.nix b/pkgs/development/python-modules/pytest-emoji/default.nix index 1700c34fb37a..bfd8ea7b8534 100644 --- a/pkgs/development/python-modules/pytest-emoji/default.nix +++ b/pkgs/development/python-modules/pytest-emoji/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-GuKBbIIODDnMi9YMX3zR4Jc3cbK+Zibj1ZeWvYkUY24="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_emoji" - ]; + pythonImportsCheck = [ "pytest_emoji" ]; disabledTests = [ # Test scompare CLI output diff --git a/pkgs/development/python-modules/pytest-env/default.nix b/pkgs/development/python-modules/pytest-env/default.nix index c5589f1cccd4..c013b583a012 100644 --- a/pkgs/development/python-modules/pytest-env/default.nix +++ b/pkgs/development/python-modules/pytest-env/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hatchling ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Pytest plugin used to set environment variables"; diff --git a/pkgs/development/python-modules/pytest-error-for-skips/default.nix b/pkgs/development/python-modules/pytest-error-for-skips/default.nix index 574e36c11970..594c16c4a87f 100644 --- a/pkgs/development/python-modules/pytest-error-for-skips/default.nix +++ b/pkgs/development/python-modules/pytest-error-for-skips/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-examples/default.nix b/pkgs/development/python-modules/pytest-examples/default.nix index 03df14e8c7b9..8dd796c5e0bf 100644 --- a/pkgs/development/python-modules/pytest-examples/default.nix +++ b/pkgs/development/python-modules/pytest-examples/default.nix @@ -1,14 +1,15 @@ -{ lib -, black -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, hatchling -, pytest -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, ruff +{ + lib, + black, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + hatchling, + pytest, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + ruff, }: buildPythonPackage rec { @@ -42,30 +43,20 @@ buildPythonPackage rec { --replace "'ruff'" "'${ruff}/bin/ruff'" ''; - pythonRemoveDeps = [ - "ruff" - ]; + pythonRemoveDeps = [ "ruff" ]; nativeBuildInputs = [ hatchling pythonRelaxDepsHook ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - black - ]; + propagatedBuildInputs = [ black ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_examples" - ]; + pythonImportsCheck = [ "pytest_examples" ]; disabledTests = [ # Test fails with latest ruff v0.1.2 diff --git a/pkgs/development/python-modules/pytest-expect/default.nix b/pkgs/development/python-modules/pytest-expect/default.nix index df5376e310e7..0a8211cdb2dd 100644 --- a/pkgs/development/python-modules/pytest-expect/default.nix +++ b/pkgs/development/python-modules/pytest-expect/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, lib -, fetchPypi -, pytest -, u-msgpack-python -, six +{ + buildPythonPackage, + lib, + fetchPypi, + pytest, + u-msgpack-python, + six, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { }; buildInputs = [ pytest ]; - propagatedBuildInputs = [ u-msgpack-python six ]; + propagatedBuildInputs = [ + u-msgpack-python + six + ]; # Tests in neither the archive nor the repo doCheck = false; diff --git a/pkgs/development/python-modules/pytest-factoryboy/default.nix b/pkgs/development/python-modules/pytest-factoryboy/default.nix index c1a89dbe012e..5b10967a0b00 100644 --- a/pkgs/development/python-modules/pytest-factoryboy/default.nix +++ b/pkgs/development/python-modules/pytest-factoryboy/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, poetry-core + # build-system + poetry-core, -# unpropagated -, pytest + # unpropagated + pytest, -# propagated -, inflection -, factory-boy -, typing-extensions + # propagated + inflection, + factory-boy, + typing-extensions, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { sha256 = "sha256-GYqYwtbmMWVqImVPPBbZNRJJGcbksUPsIbi6QuPRMco="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ factory-boy @@ -43,17 +40,11 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "pytest_factoryboy" - ]; + pythonImportsCheck = [ "pytest_factoryboy" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "--ignore=docs" - ]; + pytestFlagsArray = [ "--ignore=docs" ]; meta = with lib; { description = "Integration of factory_boy into the pytest runner"; diff --git a/pkgs/development/python-modules/pytest-filter-subpackage/default.nix b/pkgs/development/python-modules/pytest-filter-subpackage/default.nix index af173182f313..5196a6e8f108 100644 --- a/pkgs/development/python-modules/pytest-filter-subpackage/default.nix +++ b/pkgs/development/python-modules/pytest-filter-subpackage/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pytest-cov -, pytest-doctestplus -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytest-cov, + pytest-doctestplus, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -21,27 +22,19 @@ buildPythonPackage rec { hash = "sha256-P0aPGzZRgSiGm5Xeq2YbpF7WKThUMp/vFNpMjKx4r1Y="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ pytest-doctestplus pytest-cov ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # missing some files - disabledTests = [ - "with_rst" - ]; + disabledTests = [ "with_rst" ]; meta = with lib; { description = "Meta-package containing dependencies for testing"; diff --git a/pkgs/development/python-modules/pytest-flake8/default.nix b/pkgs/development/python-modules/pytest-flake8/default.nix index fab7bab0ba94..f836e9cc78a7 100644 --- a/pkgs/development/python-modules/pytest-flake8/default.nix +++ b/pkgs/development/python-modules/pytest-flake8/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchpatch -, buildPythonPackage -, pythonOlder -, fetchPypi -, flake8 -, pytestCheckHook +{ + lib, + fetchpatch, + buildPythonPackage, + pythonOlder, + fetchPypi, + flake8, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - flake8 - ]; + propagatedBuildInputs = [ flake8 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "py.test plugin for efficiently checking PEP8 compliance"; diff --git a/pkgs/development/python-modules/pytest-flakes/default.nix b/pkgs/development/python-modules/pytest-flakes/default.nix index d6709da423ad..6c9a42cd632a 100644 --- a/pkgs/development/python-modules/pytest-flakes/default.nix +++ b/pkgs/development/python-modules/pytest-flakes/default.nix @@ -1,6 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder -, pytest -, pyflakes +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytest, + pyflakes, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-flask/default.nix b/pkgs/development/python-modules/pytest-flask/default.nix index 428e0c5c3e01..0076502ff878 100644 --- a/pkgs/development/python-modules/pytest-flask/default.nix +++ b/pkgs/development/python-modules/pytest-flask/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, flask -, pytest -, pytestCheckHook -, pythonOlder -, setuptools-scm -, werkzeug +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + flask, + pytest, + pytestCheckHook, + pythonOlder, + setuptools-scm, + werkzeug, }: buildPythonPackage rec { @@ -22,30 +23,20 @@ buildPythonPackage rec { hash = "sha256-WL4cl7Ibo8TUfgp2ketBAHdIUGw2v1EAT3jfEGkfqV4="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ flask werkzeug ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_flask" - ]; + pythonImportsCheck = [ "pytest_flask" ]; - pytestFlagsArray = lib.optionals stdenv.isDarwin [ - "--ignore=tests/test_live_server.py" - ]; + pytestFlagsArray = lib.optionals stdenv.isDarwin [ "--ignore=tests/test_live_server.py" ]; meta = with lib; { description = "A set of pytest fixtures to test Flask applications"; diff --git a/pkgs/development/python-modules/pytest-forked/default.nix b/pkgs/development/python-modules/pytest-forked/default.nix index c7ed502e7a41..64c43164a01b 100644 --- a/pkgs/development/python-modules/pytest-forked/default.nix +++ b/pkgs/development/python-modules/pytest-forked/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, pythonAtLeast -, fetchFromGitHub -, fetchpatch2 -, setuptools -, setuptools-scm -, wheel -, py -, pytest -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + pythonAtLeast, + fetchFromGitHub, + fetchpatch2, + setuptools, + setuptools-scm, + wheel, + py, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -43,24 +44,24 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - py - ]; + propagatedBuildInputs = [ py ]; nativeCheckInputs = [ py pytestCheckHook ]; - disabledTests = if (pythonAtLeast "3.12" && stdenv.isDarwin && stdenv.isx86_64) then [ - # non reproducible test failure on hydra, works on community builder - # https://hydra.nixos.org/build/252537267 - "test_xfail" - ] else null; + disabledTests = + if (pythonAtLeast "3.12" && stdenv.isDarwin && stdenv.isx86_64) then + [ + # non reproducible test failure on hydra, works on community builder + # https://hydra.nixos.org/build/252537267 + "test_xfail" + ] + else + null; setupHook = ./setup-hook.sh; diff --git a/pkgs/development/python-modules/pytest-freezegun/default.nix b/pkgs/development/python-modules/pytest-freezegun/default.nix index 0435eb095124..259f698431ab 100644 --- a/pkgs/development/python-modules/pytest-freezegun/default.nix +++ b/pkgs/development/python-modules/pytest-freezegun/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, freezegun -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + freezegun, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ - freezegun - ]; + propagatedBuildInputs = [ freezegun ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Wrap tests with fixtures in freeze_time"; diff --git a/pkgs/development/python-modules/pytest-freezer/default.nix b/pkgs/development/python-modules/pytest-freezer/default.nix index d7381c44a680..521def7dfda0 100644 --- a/pkgs/development/python-modules/pytest-freezer/default.nix +++ b/pkgs/development/python-modules/pytest-freezer/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, freezegun -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + freezegun, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,25 +23,15 @@ buildPythonPackage rec { hash = "sha256-Eak6LNoyu2wvZbPaBBUO0UkyB9vni8YbsADGK0as7Cg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - freezegun - ]; + propagatedBuildInputs = [ freezegun ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_freezer" - ]; + pythonImportsCheck = [ "pytest_freezer" ]; meta = with lib; { description = "Pytest plugin providing a fixture interface for spulec/freezegun"; diff --git a/pkgs/development/python-modules/pytest-golden/default.nix b/pkgs/development/python-modules/pytest-golden/default.nix index dede2e30b9fd..6cc78e6d7018 100644 --- a/pkgs/development/python-modules/pytest-golden/default.nix +++ b/pkgs/development/python-modules/pytest-golden/default.nix @@ -1,16 +1,17 @@ -{ lib -, atomicwrites -, buildPythonPackage -, fetchFromGitHub +{ + lib, + atomicwrites, + buildPythonPackage, + fetchFromGitHub, #, hatchling -, ruamel-yaml -, poetry-core -, pytest -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, testfixtures + ruamel-yaml, + poetry-core, + pytest, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + testfixtures, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace poetry.masonry.api poetry.core.masonry.api ''; - pythonRelaxDeps = [ - "testfixtures" - ]; + pythonRelaxDeps = [ "testfixtures" ]; nativeBuildInputs = [ # hatchling used for > 0.2.2 @@ -43,9 +42,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ atomicwrites @@ -58,9 +55,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_golden" - ]; + pythonImportsCheck = [ "pytest_golden" ]; meta = with lib; { description = "Plugin for pytest that offloads expected outputs to data files"; diff --git a/pkgs/development/python-modules/pytest-grpc/default.nix b/pkgs/development/python-modules/pytest-grpc/default.nix index 9918faad2c2e..f3002d2c57da 100644 --- a/pkgs/development/python-modules/pytest-grpc/default.nix +++ b/pkgs/development/python-modules/pytest-grpc/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, grpcio -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + grpcio, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-C9JoP/00GZRE1wfAqwGXCyLgr7umyx3bbVeMhev+Cb0="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - grpcio - ]; + propagatedBuildInputs = [ grpcio ]; meta = with lib; { description = "pytest plugin for grpc"; diff --git a/pkgs/development/python-modules/pytest-harvest/default.nix b/pkgs/development/python-modules/pytest-harvest/default.nix index 3cfcd6635997..2d93e53dea24 100644 --- a/pkgs/development/python-modules/pytest-harvest/default.nix +++ b/pkgs/development/python-modules/pytest-harvest/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, pytest-runner -, pytest -, decopatch -, makefun -, six -, pytestCheckHook -, numpy -, pandas -, tabulate -, pytest-cases -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + pytest-runner, + pytest, + decopatch, + makefun, + six, + pytestCheckHook, + numpy, + pandas, + tabulate, + pytest-cases, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-helpers-namespace/default.nix b/pkgs/development/python-modules/pytest-helpers-namespace/default.nix index 6d1c3cf4f136..45bf7c67c5ca 100644 --- a/pkgs/development/python-modules/pytest-helpers-namespace/default.nix +++ b/pkgs/development/python-modules/pytest-helpers-namespace/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchPypi -, pytestCheckHook -, isPy27 -, lib -, setuptools -, setuptools-declarative-requirements -, setuptools-scm +{ + buildPythonPackage, + fetchPypi, + pytestCheckHook, + isPy27, + lib, + setuptools, + setuptools-declarative-requirements, + setuptools-scm, }: buildPythonPackage rec { @@ -19,7 +20,11 @@ buildPythonPackage rec { sha256 = "792038247e0021beb966a7ea6e3a70ff5fcfba77eb72c6ec8fd6287af871c35b"; }; - nativeBuildInputs = [ setuptools setuptools-declarative-requirements setuptools-scm ]; + nativeBuildInputs = [ + setuptools + setuptools-declarative-requirements + setuptools-scm + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pytest-html/default.nix b/pkgs/development/python-modules/pytest-html/default.nix index 6d4233e043b1..769eaffc3e03 100644 --- a/pkgs/development/python-modules/pytest-html/default.nix +++ b/pkgs/development/python-modules/pytest-html/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildNpmPackage -, buildPythonPackage -, fetchPypi -, pythonOlder -, hatch-vcs -, hatchling -, jinja2 -, pytest -, pytest-metadata +{ + lib, + buildNpmPackage, + buildPythonPackage, + fetchPypi, + pythonOlder, + hatch-vcs, + hatchling, + jinja2, + pytest, + pytest-metadata, }: let pname = "pytest-html"; @@ -45,8 +46,14 @@ buildPythonPackage { hatch-vcs hatchling ]; - buildInputs = [ pytest web-assets ]; - propagatedBuildInputs = [ jinja2 pytest-metadata ]; + buildInputs = [ + pytest + web-assets + ]; + propagatedBuildInputs = [ + jinja2 + pytest-metadata + ]; env.HATCH_BUILD_NO_HOOKS = true; @@ -57,9 +64,7 @@ buildPythonPackage { # tests require network access doCheck = false; - pythonImportsCheck = [ - "pytest_html" - ]; + pythonImportsCheck = [ "pytest_html" ]; meta = with lib; { description = "Plugin for generating HTML reports"; diff --git a/pkgs/development/python-modules/pytest-httpbin/default.nix b/pkgs/development/python-modules/pytest-httpbin/default.nix index db94f2b6e163..767415806602 100644 --- a/pkgs/development/python-modules/pytest-httpbin/default.nix +++ b/pkgs/development/python-modules/pytest-httpbin/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpbin -, pytest -, pytestCheckHook -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpbin, + pytest, + pytestCheckHook, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-tq9nz2na94HkLACt7xB1MUanh9/JOoe2vyEm5sAq0/4="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ httpbin @@ -44,9 +43,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "pytest_httpbin" - ]; + pythonImportsCheck = [ "pytest_httpbin" ]; meta = with lib; { description = "Test your HTTP library against a local copy of httpbin.org"; diff --git a/pkgs/development/python-modules/pytest-httpserver/default.nix b/pkgs/development/python-modules/pytest-httpserver/default.nix index 5759f180ff70..152223f2ea5c 100644 --- a/pkgs/development/python-modules/pytest-httpserver/default.nix +++ b/pkgs/development/python-modules/pytest-httpserver/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, requests -, toml -, werkzeug +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + requests, + toml, + werkzeug, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-KCsZs4MGENByF/wB+aj3yvMp7lssHNVKx8jLhDQ1u4k="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - werkzeug - ]; + propagatedBuildInputs = [ werkzeug ]; nativeCheckInputs = [ pytestCheckHook @@ -43,9 +40,7 @@ buildPythonPackage rec { "test_wait_raise_assertion_false" # racy ]; - pythonImportsCheck = [ - "pytest_httpserver" - ]; + pythonImportsCheck = [ "pytest_httpserver" ]; meta = with lib; { description = "HTTP server for pytest to test HTTP clients"; diff --git a/pkgs/development/python-modules/pytest-httpx/default.nix b/pkgs/development/python-modules/pytest-httpx/default.nix index 85eabe87a76d..b9dfda5404a3 100644 --- a/pkgs/development/python-modules/pytest-httpx/default.nix +++ b/pkgs/development/python-modules/pytest-httpx/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pytest -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pytest, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -31,26 +32,18 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; - pythonRelaxDeps = [ - "httpx" - ]; + pythonRelaxDeps = [ "httpx" ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_httpx" - ]; + pythonImportsCheck = [ "pytest_httpx" ]; meta = with lib; { description = "Send responses to httpx"; diff --git a/pkgs/development/python-modules/pytest-image-diff/default.nix b/pkgs/development/python-modules/pytest-image-diff/default.nix index cbe607d0648e..4a8b94a0c73b 100644 --- a/pkgs/development/python-modules/pytest-image-diff/default.nix +++ b/pkgs/development/python-modules/pytest-image-diff/default.nix @@ -1,12 +1,13 @@ -{ lib -, python3 -, buildPythonPackage -, fetchFromGitHub -, typing-extensions -, diffimg -, imgdiff -, pytestCheckHook -, recommonmark +{ + lib, + python3, + buildPythonPackage, + fetchFromGitHub, + typing-extensions, + diffimg, + imgdiff, + pytestCheckHook, + recommonmark, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-instafail/default.nix b/pkgs/development/python-modules/pytest-instafail/default.nix index 3b237105d4c0..63357c1b48d7 100644 --- a/pkgs/development/python-modules/pytest-instafail/default.nix +++ b/pkgs/development/python-modules/pytest-instafail/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { sha256 = "sha256-M6YG9+DI5kbcO/7g1eOkt7eO98NhaM+h89k698pwbJ4="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_instafail" - ]; + pythonImportsCheck = [ "pytest_instafail" ]; meta = with lib; { description = "pytest plugin that shows failures and errors instantly instead of waiting until the end of test session"; diff --git a/pkgs/development/python-modules/pytest-isort/default.nix b/pkgs/development/python-modules/pytest-isort/default.nix index 6298d18ed0d2..8462f1565ef9 100644 --- a/pkgs/development/python-modules/pytest-isort/default.nix +++ b/pkgs/development/python-modules/pytest-isort/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, isort -, poetry-core -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + isort, + poetry-core, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,27 +24,15 @@ buildPythonPackage rec { hash = "sha256-1oCVIi0sXwac4AufScJJRsfvBwaBAwlMBRNqLcUXEh4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - isort - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ isort ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_isort" - ]; + pythonImportsCheck = [ "pytest_isort" ]; meta = with lib; { description = "Pytest plugin to perform isort checks (import ordering)"; diff --git a/pkgs/development/python-modules/pytest-jupyter/default.nix b/pkgs/development/python-modules/pytest-jupyter/default.nix index 2cae0f7ef1b9..c36bcf52e6e0 100644 --- a/pkgs/development/python-modules/pytest-jupyter/default.nix +++ b/pkgs/development/python-modules/pytest-jupyter/default.nix @@ -1,80 +1,79 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build -, hatchling -, pytest + # build + hatchling, + pytest, -# runtime -, jupyter-core + # runtime + jupyter-core, -# optionals -, jupyter-client -, ipykernel -, jupyter-server -, nbformat + # optionals + jupyter-client, + ipykernel, + jupyter-server, + nbformat, -# tests -, pytest-timeout -, pytestCheckHook + # tests + pytest-timeout, + pytestCheckHook, }: -let self = buildPythonPackage rec { - pname = "pytest-jupyter"; - version = "0.10.1"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "pytest-jupyter"; + version = "0.10.1"; + pyproject = true; - src = fetchFromGitHub { - owner = "jupyter-server"; - repo = "pytest-jupyter"; - rev = "refs/tags/v${version}"; - hash = "sha256-RTpXBbVCRj0oyZ1TXXDv3M7sAI4kA6f3ouzTr0rXjwY="; + src = fetchFromGitHub { + owner = "jupyter-server"; + repo = "pytest-jupyter"; + rev = "refs/tags/v${version}"; + hash = "sha256-RTpXBbVCRj0oyZ1TXXDv3M7sAI4kA6f3ouzTr0rXjwY="; + }; + + nativeBuildInputs = [ hatchling ]; + + buildInputs = [ pytest ]; + + propagatedBuildInputs = [ jupyter-core ]; + + passthru.optional-dependencies = { + client = [ + jupyter-client + nbformat + ipykernel + ]; + server = [ + jupyter-server + jupyter-client + nbformat + ipykernel + ]; + }; + + doCheck = false; # infinite recursion with jupyter-server + + nativeCheckInputs = [ + pytest-timeout + pytestCheckHook + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + + passthru.tests = { + check = self.overridePythonAttrs (_: { + doCheck = false; + }); + }; + + meta = with lib; { + changelog = "https://github.com/jupyter-server/pytest-jupyter/releases/tag/v${version}"; + description = "pytest plugin for testing Jupyter core libraries and extensions"; + homepage = "https://github.com/jupyter-server/pytest-jupyter"; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; + }; }; - - nativeBuildInputs = [ - hatchling - ]; - - buildInputs = [ - pytest - ]; - - propagatedBuildInputs = [ - jupyter-core - ]; - - passthru.optional-dependencies = { - client = [ - jupyter-client - nbformat - ipykernel - ]; - server = [ - jupyter-server - jupyter-client - nbformat - ipykernel - ]; - }; - - doCheck = false; # infinite recursion with jupyter-server - - nativeCheckInputs = [ - pytest-timeout - pytestCheckHook - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - - passthru.tests = { - check = self.overridePythonAttrs (_: { doCheck = false; }); - }; - - meta = with lib; { - changelog = "https://github.com/jupyter-server/pytest-jupyter/releases/tag/v${version}"; - description = "pytest plugin for testing Jupyter core libraries and extensions"; - homepage = "https://github.com/jupyter-server/pytest-jupyter"; - license = licenses.bsd3; - maintainers = with maintainers; [ ]; - }; -}; -in self +in +self diff --git a/pkgs/development/python-modules/pytest-lazy-fixture/default.nix b/pkgs/development/python-modules/pytest-lazy-fixture/default.nix index b4006b700783..64afaa0d0786 100644 --- a/pkgs/development/python-modules/pytest-lazy-fixture/default.nix +++ b/pkgs/development/python-modules/pytest-lazy-fixture/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { ./pytest-8-compatible.patch ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - pythonImportsCheck = [ - "pytest_lazyfixture" - ]; + pythonImportsCheck = [ "pytest_lazyfixture" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Helps to use fixtures in pytest.mark.parametrize"; diff --git a/pkgs/development/python-modules/pytest-localserver/default.nix b/pkgs/development/python-modules/pytest-localserver/default.nix index d550b4b27469..8549d394b984 100644 --- a/pkgs/development/python-modules/pytest-localserver/default.nix +++ b/pkgs/development/python-modules/pytest-localserver/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiosmtpd -, buildPythonPackage -, fetchPypi -, werkzeug -, pythonOlder +{ + lib, + aiosmtpd, + buildPythonPackage, + fetchPypi, + werkzeug, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # all tests access network: does not work in sandbox doCheck = false; - pythonImportsCheck = [ - "pytest_localserver" - ]; + pythonImportsCheck = [ "pytest_localserver" ]; meta = with lib; { description = "Plugin for the pytest testing framework to test server connections locally"; diff --git a/pkgs/development/python-modules/pytest-logdog/default.nix b/pkgs/development/python-modules/pytest-logdog/default.nix index 176bde51525b..b047d86acc12 100644 --- a/pkgs/development/python-modules/pytest-logdog/default.nix +++ b/pkgs/development/python-modules/pytest-logdog/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -22,25 +23,15 @@ buildPythonPackage rec { hash = "sha256-Tmoq+KAGzn0MMj29rukDfAc4LSIwC8DoMTuBAppV32I="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_logdog" - ]; + pythonImportsCheck = [ "pytest_logdog" ]; meta = with lib; { description = "Pytest plugin to test logging"; diff --git a/pkgs/development/python-modules/pytest-markdown-docs/default.nix b/pkgs/development/python-modules/pytest-markdown-docs/default.nix index 46dcd7d94043..d09187cafa59 100644 --- a/pkgs/development/python-modules/pytest-markdown-docs/default.nix +++ b/pkgs/development/python-modules/pytest-markdown-docs/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, markdown-it-py -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + markdown-it-py, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-mclN28tfPcoFxswECjbrkeOI51XXSqUXfbvuSHrd7Sw="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ markdown-it-py pytest ]; - pythonImportsCheck = [ - "pytest_markdown_docs" - ]; + pythonImportsCheck = [ "pytest_markdown_docs" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Run pytest on markdown code fence blocks"; diff --git a/pkgs/development/python-modules/pytest-md-report/default.nix b/pkgs/development/python-modules/pytest-md-report/default.nix index 738579f3ec20..a7b71fd760ae 100644 --- a/pkgs/development/python-modules/pytest-md-report/default.nix +++ b/pkgs/development/python-modules/pytest-md-report/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytablewriter -, pytest -, tcolorpy -, typepy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytablewriter, + pytest, + tcolorpy, + typepy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-metadata/default.nix b/pkgs/development/python-modules/pytest-metadata/default.nix index d4eb108053b1..fc72d1843d38 100644 --- a/pkgs/development/python-modules/pytest-metadata/default.nix +++ b/pkgs/development/python-modules/pytest-metadata/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hatch-vcs ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Plugin for accessing test session metadata"; diff --git a/pkgs/development/python-modules/pytest-mock/default.nix b/pkgs/development/python-modules/pytest-mock/default.nix index 966304cdc83d..8d2c24dbd8c2 100644 --- a/pkgs/development/python-modules/pytest-mock/default.nix +++ b/pkgs/development/python-modules/pytest-mock/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, pythonOlder -, fetchPypi -, pytest -, pytest-asyncio -, pytestCheckHook -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + pythonAtLeast, + pythonOlder, + fetchPypi, + pytest, + pytest-asyncio, + pytestCheckHook, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/pytest-mockito/default.nix b/pkgs/development/python-modules/pytest-mockito/default.nix index 279b04b83e0e..06b9a9355367 100644 --- a/pkgs/development/python-modules/pytest-mockito/default.nix +++ b/pkgs/development/python-modules/pytest-mockito/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, mockito -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + mockito, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-vY/i1YV1lo4mZvnxsXBOyaq31YTiF0BY6PTVwdVX10I="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - mockito - ]; + propagatedBuildInputs = [ mockito ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Base fixtures for mockito"; diff --git a/pkgs/development/python-modules/pytest-mockservers/default.nix b/pkgs/development/python-modules/pytest-mockservers/default.nix index d524457ebbb4..bf89bed0ab60 100644 --- a/pkgs/development/python-modules/pytest-mockservers/default.nix +++ b/pkgs/development/python-modules/pytest-mockservers/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, poetry-core -, aiohttp -, pytest -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + poetry-core, + aiohttp, + pytest, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ aiohttp @@ -47,13 +44,9 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_mockservers" - ]; + pythonImportsCheck = [ "pytest_mockservers" ]; meta = with lib; { description = "A set of fixtures to test your requests to HTTP/UDP servers"; diff --git a/pkgs/development/python-modules/pytest-mpl/default.nix b/pkgs/development/python-modules/pytest-mpl/default.nix index 2399379fdb24..020133c352c6 100644 --- a/pkgs/development/python-modules/pytest-mpl/default.nix +++ b/pkgs/development/python-modules/pytest-mpl/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytest -, jinja2 -, matplotlib -, pynose -, pillow -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytest, + jinja2, + matplotlib, + pynose, + pillow, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-LVcWgRJOj/X04rnA0EfTfQSZ1rbY8vSaG1DN2ZMQRGk="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ jinja2 @@ -35,10 +32,7 @@ buildPythonPackage rec { pillow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; - + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Broken since b6e98f18950c2b5dbdc725c1181df2ad1be19fee diff --git a/pkgs/development/python-modules/pytest-mypy-plugins/default.nix b/pkgs/development/python-modules/pytest-mypy-plugins/default.nix index 097dabe8a39d..ecc53049ee1c 100644 --- a/pkgs/development/python-modules/pytest-mypy-plugins/default.nix +++ b/pkgs/development/python-modules/pytest-mypy-plugins/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, decorator -, fetchFromGitHub -, jinja2 -, jsonschema -, mypy -, packaging -, pytest -, pytestCheckHook -, pythonOlder -, pyyaml -, regex -, setuptools -, tomlkit +{ + lib, + buildPythonPackage, + decorator, + fetchFromGitHub, + jinja2, + jsonschema, + mypy, + packaging, + pytest, + pytestCheckHook, + pythonOlder, + pyyaml, + regex, + setuptools, + tomlkit, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { hash = "sha256-yme1g9Kj5guao0Lf8mbkNJRw6ipS2Wd4Io1cSlEBAGo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; dependencies = [ decorator @@ -48,9 +45,7 @@ buildPythonPackage rec { tomlkit ]; - pythonImportsCheck = [ - "pytest_mypy_plugins" - ]; + pythonImportsCheck = [ "pytest_mypy_plugins" ]; nativeCheckInputs = [ mypy @@ -61,9 +56,7 @@ buildPythonPackage rec { export PATH="$PATH:$out/bin"; ''; - disabledTestPaths = [ - "pytest_mypy_plugins/tests/test_explicit_configs.py" - ]; + disabledTestPaths = [ "pytest_mypy_plugins/tests/test_explicit_configs.py" ]; meta = with lib; { description = "Pytest plugin for testing mypy types, stubs, and plugins"; diff --git a/pkgs/development/python-modules/pytest-mypy/default.nix b/pkgs/development/python-modules/pytest-mypy/default.nix index 84d12cfd825f..554034ad08b0 100644 --- a/pkgs/development/python-modules/pytest-mypy/default.nix +++ b/pkgs/development/python-modules/pytest-mypy/default.nix @@ -1,12 +1,13 @@ -{ lib -, attrs -, buildPythonPackage -, fetchPypi -, filelock -, pytest -, mypy -, setuptools -, setuptools-scm +{ + lib, + attrs, + buildPythonPackage, + fetchPypi, + filelock, + pytest, + mypy, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ attrs diff --git a/pkgs/development/python-modules/pytest-notebook/default.nix b/pkgs/development/python-modules/pytest-notebook/default.nix index 104c33453971..52ce73e01526 100644 --- a/pkgs/development/python-modules/pytest-notebook/default.nix +++ b/pkgs/development/python-modules/pytest-notebook/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pythonRelaxDepsHook -, attrs -, jsonschema -, nbclient -, nbdime -, nbformat -, pytest -, black -, coverage -, ipykernel -, pytest-cov -, pytest-regressions -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pythonRelaxDepsHook, + attrs, + jsonschema, + nbclient, + nbdime, + nbformat, + pytest, + black, + coverage, + ipykernel, + pytest-cov, + pytest-regressions, + pytestCheckHook, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { nbformat ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; pythonImportsCheck = [ "pytest_notebook" ]; diff --git a/pkgs/development/python-modules/pytest-openfiles/default.nix b/pkgs/development/python-modules/pytest-openfiles/default.nix index da894eff91e3..ebd0a0976c64 100644 --- a/pkgs/development/python-modules/pytest-openfiles/default.nix +++ b/pkgs/development/python-modules/pytest-openfiles/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, isPy27 -, packaging -, pytest -, pytestCheckHook -, psutil -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + isPy27, + packaging, + pytest, + pytestCheckHook, + psutil, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-order/default.nix b/pkgs/development/python-modules/pytest-order/default.nix index ebb7bbe09d43..34ea35247416 100644 --- a/pkgs/development/python-modules/pytest-order/default.nix +++ b/pkgs/development/python-modules/pytest-order/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchPypi -, lib -, pytest -, pytest-xdist -, pytest-dependency -, pytest-mock -, pytestCheckHook +{ + buildPythonPackage, + fetchPypi, + lib, + pytest, + pytest-xdist, + pytest-dependency, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,6 +34,9 @@ buildPythonPackage rec { description = "Pytest plugin that allows you to customize the order in which your tests are run"; homepage = "https://github.com/pytest-dev/pytest-order"; license = licenses.mit; - maintainers = with maintainers; [ jacg Luflosi ]; + maintainers = with maintainers; [ + jacg + Luflosi + ]; }; } diff --git a/pkgs/development/python-modules/pytest-parallel/default.nix b/pkgs/development/python-modules/pytest-parallel/default.nix index 0bc2070ce354..8f10b942f309 100644 --- a/pkgs/development/python-modules/pytest-parallel/default.nix +++ b/pkgs/development/python-modules/pytest-parallel/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, tblib -, pytest -, py +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + tblib, + pytest, + py, }: let pname = "pytest-parallel"; diff --git a/pkgs/development/python-modules/pytest-param-files/default.nix b/pkgs/development/python-modules/pytest-param-files/default.nix index 55923b5ed266..aebd6ccb85e5 100644 --- a/pkgs/development/python-modules/pytest-param-files/default.nix +++ b/pkgs/development/python-modules/pytest-param-files/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, ruamel-yaml -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + ruamel-yaml, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,25 +20,15 @@ buildPythonPackage rec { hash = "sha256-hgEEfKf9Kmah5WDNHoFWQJKLOs9Z5BDHiebXCdDc1zE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - ruamel-yaml - ]; + propagatedBuildInputs = [ ruamel-yaml ]; - pythonImportsCheck = [ - "pytest_param_files" - ]; + pythonImportsCheck = [ "pytest_param_files" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Package to generate parametrized pytests from external files"; diff --git a/pkgs/development/python-modules/pytest-playwright/default.nix b/pkgs/development/python-modules/pytest-playwright/default.nix index 4c52a882988d..3cb7de0da430 100644 --- a/pkgs/development/python-modules/pytest-playwright/default.nix +++ b/pkgs/development/python-modules/pytest-playwright/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, playwright -, playwright-driver -, pytest -, pytest-base-url -, pytestCheckHook -, python-slugify -, pythonOlder -, setuptools-scm -, django +{ + lib, + fetchFromGitHub, + buildPythonPackage, + playwright, + playwright-driver, + pytest, + pytest-base-url, + pytestCheckHook, + python-slugify, + pythonOlder, + setuptools-scm, + django, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-HS0Qpr5R4dAoXe0bpPGU7JABB7CmwugReRD75XeJ8l4="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ playwright @@ -48,9 +45,7 @@ buildPythonPackage rec { export PLAYWRIGHT_BROWSERS_PATH=${playwright-driver.browsers} ''; - pythonImportsCheck = [ - "pytest_playwright" - ]; + pythonImportsCheck = [ "pytest_playwright" ]; meta = with lib; { description = "Pytest plugin to write end-to-end browser tests with Playwright"; diff --git a/pkgs/development/python-modules/pytest-plt/default.nix b/pkgs/development/python-modules/pytest-plt/default.nix index 55051359d7e4..42e6e19abdf5 100644 --- a/pkgs/development/python-modules/pytest-plt/default.nix +++ b/pkgs/development/python-modules/pytest-plt/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, matplotlib -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + matplotlib, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-postgresql/default.nix b/pkgs/development/python-modules/pytest-postgresql/default.nix index b5804dcf4977..27f2d5bbd094 100644 --- a/pkgs/development/python-modules/pytest-postgresql/default.nix +++ b/pkgs/development/python-modules/pytest-postgresql/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools -, mirakuru -, port-for -, psycopg -, pytest -, postgresql +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, + mirakuru, + port-for, + psycopg, + pytest, + postgresql, }: buildPythonPackage rec { @@ -38,7 +39,7 @@ buildPythonPackage rec { mirakuru port-for psycopg - setuptools # requires 'pkg_resources' at runtime + setuptools # requires 'pkg_resources' at runtime ]; nativeCheckInputs = [ @@ -49,7 +50,7 @@ buildPythonPackage rec { "-p" "no:postgresql" ]; - disabledTestPaths = [ "tests/docker/test_noproc_docker.py" ]; # requires Docker + disabledTestPaths = [ "tests/docker/test_noproc_docker.py" ]; # requires Docker disabledTests = [ # permissions issue running pg as Nixbld user "test_executor_init_with_password" @@ -63,7 +64,6 @@ buildPythonPackage rec { "pytest_postgresql.executor" ]; - meta = with lib; { homepage = "https://pypi.python.org/pypi/pytest-postgresql"; description = "Pytest plugin that enables you to test code on a temporary PostgreSQL database"; diff --git a/pkgs/development/python-modules/pytest-pudb/default.nix b/pkgs/development/python-modules/pytest-pudb/default.nix index cc3e0db8570f..376a7142af04 100644 --- a/pkgs/development/python-modules/pytest-pudb/default.nix +++ b/pkgs/development/python-modules/pytest-pudb/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest -, pudb +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest, + pudb, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-pylint/default.nix b/pkgs/development/python-modules/pytest-pylint/default.nix index c989948afd8c..214863978df0 100644 --- a/pkgs/development/python-modules/pytest-pylint/default.nix +++ b/pkgs/development/python-modules/pytest-pylint/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pylint -, pytest -, pytestCheckHook -, pythonOlder -, toml +{ + lib, + buildPythonPackage, + fetchPypi, + pylint, + pytest, + pytestCheckHook, + pythonOlder, + toml, }: buildPythonPackage rec { @@ -25,22 +26,16 @@ buildPythonPackage rec { --replace "pytest-runner" "" ''; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ pylint toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_pylint" - ]; + pythonImportsCheck = [ "pytest_pylint" ]; meta = with lib; { description = "Pytest plugin to check source code with pylint"; diff --git a/pkgs/development/python-modules/pytest-pytestrail/default.nix b/pkgs/development/python-modules/pytest-pytestrail/default.nix index 618bccfa3bc5..63c0d3735f38 100644 --- a/pkgs/development/python-modules/pytest-pytestrail/default.nix +++ b/pkgs/development/python-modules/pytest-pytestrail/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, pytest -, testrail-api +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + pytest, + testrail-api, }: buildPythonPackage rec { @@ -18,24 +19,16 @@ buildPythonPackage rec { sha256 = "sha256-y34aRxQ8mu6b6GBRMFVzn1shMVc7TumdjRS3daMEZJM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - testrail-api - ]; + propagatedBuildInputs = [ testrail-api ]; # all tests require network accesss doCheck = false; - pythonImportsCheck = [ - "pytest_pytestrail" - ]; + pythonImportsCheck = [ "pytest_pytestrail" ]; meta = with lib; { description = "Pytest plugin for interaction with TestRail"; diff --git a/pkgs/development/python-modules/pytest-qt/default.nix b/pkgs/development/python-modules/pytest-qt/default.nix index 1996265365e1..6e468060c6b7 100644 --- a/pkgs/development/python-modules/pytest-qt/default.nix +++ b/pkgs/development/python-modules/pytest-qt/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytest -, pyqt5 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytest, + pyqt5, + pythonOlder, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-dolhQqlApChTOQCNaSijbUvnSv7H5jRXfoQsnMXFaEQ="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pyqt5 - ]; + nativeCheckInputs = [ pyqt5 ]; - pythonImportsCheck = [ - "pytestqt" - ]; + pythonImportsCheck = [ "pytestqt" ]; # Tests require X server doCheck = false; diff --git a/pkgs/development/python-modules/pytest-quickcheck/default.nix b/pkgs/development/python-modules/pytest-quickcheck/default.nix index a5e11c66a71a..79ca2dc11363 100644 --- a/pkgs/development/python-modules/pytest-quickcheck/default.nix +++ b/pkgs/development/python-modules/pytest-quickcheck/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pytestCheckHook -, pytest-flakes +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytestCheckHook, + pytest-flakes, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-UFF8ldnaImXU6al4kGjf720mbwXE6Nut9VlvNVrMVoY="; }; - propagatedBuildInputs = [ - pytest - ]; + propagatedBuildInputs = [ pytest ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/pytest-raises/default.nix b/pkgs/development/python-modules/pytest-raises/default.nix index 1b7beb74c594..84c8ee190966 100644 --- a/pkgs/development/python-modules/pytest-raises/default.nix +++ b/pkgs/development/python-modules/pytest-raises/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-wmtWPWwe1sFbWSYxs5ZXDUZM1qvjRGMudWdjQeskaz0="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_raises" - ]; + pythonImportsCheck = [ "pytest_raises" ]; disabledTests = [ # Failed: nomatch: '*::test_pytest_mark_raises_unexpected_exception FAILED*' diff --git a/pkgs/development/python-modules/pytest-raisesregexp/default.nix b/pkgs/development/python-modules/pytest-raisesregexp/default.nix index edca8cbaa97d..d9f2a8f4c07e 100644 --- a/pkgs/development/python-modules/pytest-raisesregexp/default.nix +++ b/pkgs/development/python-modules/pytest-raisesregexp/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, py, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + py, + pytest, +}: buildPythonPackage rec { pname = "pytest-raisesregexp"; @@ -11,7 +16,10 @@ buildPythonPackage rec { sha256 = "b54372494fc1f11388b1b9348aeb36b69609699eb8f46e0e010afc733d78236a"; }; - buildInputs = [ py pytest ]; + buildInputs = [ + py + pytest + ]; # https://github.com/kissgyorgy/pytest-raisesregexp/pull/3 prePatch = '' diff --git a/pkgs/development/python-modules/pytest-raisin/default.nix b/pkgs/development/python-modules/pytest-raisin/default.nix index 2da96d21c9ea..762a3a6fa0ec 100644 --- a/pkgs/development/python-modules/pytest-raisin/default.nix +++ b/pkgs/development/python-modules/pytest-raisin/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit, + pytest, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-BI0SWy671DYDTPH4iO811ku6SzpH4ho7eQFUA8PmxW8="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; - propagatedBuildInputs = [ - pytest - ]; + propagatedBuildInputs = [ pytest ]; # tests cause circular pytest-raisin already registered with pytest error doCheck = false; diff --git a/pkgs/development/python-modules/pytest-random-order/default.nix b/pkgs/development/python-modules/pytest-random-order/default.nix index 2b2b6624c099..9886bcf7f869 100644 --- a/pkgs/development/python-modules/pytest-random-order/default.nix +++ b/pkgs/development/python-modules/pytest-random-order/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, py -, pytest -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + py, + pytest, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-RHLX008fHF86NZxP/FwT7QZSMvMeyhnIhEwatAbnkIA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ py @@ -35,9 +32,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "random_order" - ]; + pythonImportsCheck = [ "random_order" ]; meta = with lib; { homepage = "https://github.com/jbasko/pytest-random-order"; diff --git a/pkgs/development/python-modules/pytest-randomly/default.nix b/pkgs/development/python-modules/pytest-randomly/default.nix index 5549f89334a6..b2ecfb4edb50 100644 --- a/pkgs/development/python-modules/pytest-randomly/default.nix +++ b/pkgs/development/python-modules/pytest-randomly/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, factory-boy -, faker -, fetchFromGitHub -, importlib-metadata -, numpy -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + factory-boy, + faker, + fetchFromGitHub, + importlib-metadata, + numpy, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-bxbW22Nf/0hfJYSiz3xdrNCzrb7vZwuVvSIrWl0Bkv4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ factory-boy @@ -47,9 +44,7 @@ buildPythonPackage rec { "no:randomly" ]; - pythonImportsCheck = [ - "pytest_randomly" - ]; + pythonImportsCheck = [ "pytest_randomly" ]; meta = with lib; { changelog = "https://github.com/pytest-dev/pytest-randomly/blob/${version}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/pytest-recording/default.nix b/pkgs/development/python-modules/pytest-recording/default.nix index e35b1a352b85..e28f9ebf052e 100644 --- a/pkgs/development/python-modules/pytest-recording/default.nix +++ b/pkgs/development/python-modules/pytest-recording/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -# install dependencies -, pytest -, vcrpy -# test dependencies -, hatchling -, pytestCheckHook -, pytest-httpbin -, pytest-mock -, requests +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + # install dependencies + pytest, + vcrpy, + # test dependencies + hatchling, + pytestCheckHook, + pytest-httpbin, + pytest-mock, + requests, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { pytest ]; - propagatedBuildInputs = [ - vcrpy - ]; + propagatedBuildInputs = [ vcrpy ]; __darwinAllowLocalNetworking = true; @@ -43,20 +42,16 @@ buildPythonPackage rec { requests ]; - disabledTests = [ - "test_block_network_with_allowed_hosts" - ] ++ lib.optionals stdenv.isDarwin [ - # Missing socket.AF_NETLINK - "test_other_socket" - ]; + disabledTests = + [ "test_block_network_with_allowed_hosts" ] + ++ lib.optionals stdenv.isDarwin [ + # Missing socket.AF_NETLINK + "test_other_socket" + ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; - pythonImportsCheck = [ - "pytest_recording" - ]; + pythonImportsCheck = [ "pytest_recording" ]; meta = with lib; { description = "A pytest plugin that allows you recording of network interactions via VCR.py"; diff --git a/pkgs/development/python-modules/pytest-regressions/default.nix b/pkgs/development/python-modules/pytest-regressions/default.nix index e9950b01fdf1..eb0afeda5e22 100644 --- a/pkgs/development/python-modules/pytest-regressions/default.nix +++ b/pkgs/development/python-modules/pytest-regressions/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pythonOlder -, matplotlib -, numpy -, pandas -, pillow -, pytest -, pytest-datadir -, pytestCheckHook -, pyyaml -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + pythonOlder, + matplotlib, + numpy, + pandas, + pillow, + pytest, + pytest-datadir, + pytestCheckHook, + pyyaml, + setuptools-scm, }: buildPythonPackage rec { @@ -26,20 +27,15 @@ buildPythonPackage rec { hash = "sha256-gYx4hMHP87q/ie67AsvCezB4VrGYVCfCTVLLgSoQb9k="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ pytest-datadir pyyaml ]; - nativeCheckInputs = [ matplotlib pandas @@ -47,7 +43,8 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; disabledTestPathss = lib.optionals (pythonAtLeast "3.12") [ @@ -61,9 +58,18 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - dataframe = [ pandas numpy ]; - image = [ numpy pillow ]; - num = [ numpy pandas ]; + dataframe = [ + pandas + numpy + ]; + image = [ + numpy + pillow + ]; + num = [ + numpy + pandas + ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/pytest-relaxed/default.nix b/pkgs/development/python-modules/pytest-relaxed/default.nix index 8a541c74e5f6..a86aceae8ddc 100644 --- a/pkgs/development/python-modules/pytest-relaxed/default.nix +++ b/pkgs/development/python-modules/pytest-relaxed/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, decorator -, fetchPypi -, invocations -, invoke -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + decorator, + fetchPypi, + invocations, + invoke, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-lW6gKOww27+2gN2Oe0p/uPgKI5WV6Ius4Bi/LA1xgkg="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - decorator - ]; + propagatedBuildInputs = [ decorator ]; nativeCheckInputs = [ invocations @@ -35,13 +32,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; - pythonImportsCheck = [ - "pytest_relaxed" - ]; + pythonImportsCheck = [ "pytest_relaxed" ]; meta = with lib; { homepage = "https://pytest-relaxed.readthedocs.io/"; diff --git a/pkgs/development/python-modules/pytest-remotedata/default.nix b/pkgs/development/python-modules/pytest-remotedata/default.nix index 581145212f90..43778bfab64e 100644 --- a/pkgs/development/python-modules/pytest-remotedata/default.nix +++ b/pkgs/development/python-modules/pytest-remotedata/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pytestCheckHook -, pythonOlder -, setuptools-scm -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytestCheckHook, + pythonOlder, + setuptools-scm, + six, }: buildPythonPackage rec { @@ -20,32 +21,22 @@ buildPythonPackage rec { hash = "sha256-BcCL9jjN0e1m6wFzihZHw8cUc3w+w6vgCdLB95O0u1k="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # These tests require a network connection "tests/test_strict_check.py" ]; - pythonImportsCheck = [ - "pytest_remotedata" - ]; + pythonImportsCheck = [ "pytest_remotedata" ]; meta = with lib; { description = "Pytest plugin for controlling remote data access"; diff --git a/pkgs/development/python-modules/pytest-repeat/default.nix b/pkgs/development/python-modules/pytest-repeat/default.nix index 1c020428c4b8..34c4ab2cce2c 100644 --- a/pkgs/development/python-modules/pytest-repeat/default.nix +++ b/pkgs/development/python-modules/pytest-repeat/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, hatch-vcs -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + hatch-vcs, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { hatch-vcs ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_repeat" - ]; + pythonImportsCheck = [ "pytest_repeat" ]; meta = with lib; { description = "Pytest plugin for repeating tests"; diff --git a/pkgs/development/python-modules/pytest-rerunfailures/default.nix b/pkgs/development/python-modules/pytest-rerunfailures/default.nix index 59d459adb6c9..3d2873321a75 100644 --- a/pkgs/development/python-modules/pytest-rerunfailures/default.nix +++ b/pkgs/development/python-modules/pytest-rerunfailures/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, packaging -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + packaging, + pytest, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-resource-path/default.nix b/pkgs/development/python-modules/pytest-resource-path/default.nix index 28e62eaa7e45..66389e622e64 100644 --- a/pkgs/development/python-modules/pytest-resource-path/default.nix +++ b/pkgs/development/python-modules/pytest-resource-path/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, colorama -, pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + colorama, + pytest, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,21 +26,13 @@ buildPythonPackage rec { --replace "pytest-runner" "" ''; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - colorama - ]; + propagatedBuildInputs = [ colorama ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_resource_path" - ]; + pythonImportsCheck = [ "pytest_resource_path" ]; meta = with lib; { description = "Pytest plugin to provide path for uniform access to test resources"; diff --git a/pkgs/development/python-modules/pytest-reverse/default.nix b/pkgs/development/python-modules/pytest-reverse/default.nix index 567b5b13683b..9e6736625b36 100644 --- a/pkgs/development/python-modules/pytest-reverse/default.nix +++ b/pkgs/development/python-modules/pytest-reverse/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytest -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytest, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-r0aSbUgArHQkpaXUvMT6oyOxEliQRtSGuDt4IILzhH4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/pytest-runner/default.nix b/pkgs/development/python-modules/pytest-runner/default.nix index f0c7acda466a..57b970fc98df 100644 --- a/pkgs/development/python-modules/pytest-runner/default.nix +++ b/pkgs/development/python-modules/pytest-runner/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytest-services/default.nix b/pkgs/development/python-modules/pytest-services/default.nix index 0b6a8f8f87b5..d4ae297d0a1f 100644 --- a/pkgs/development/python-modules/pytest-services/default.nix +++ b/pkgs/development/python-modules/pytest-services/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, psutil -, pylibmc -, pytest -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, setuptools-scm -, toml -, mysqlclient -, zc-lockfile +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + psutil, + pylibmc, + pytest, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + setuptools-scm, + toml, + mysqlclient, + zc-lockfile, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_services" - ]; + pythonImportsCheck = [ "pytest_services" ]; disabledTests = [ # Tests require binaries and additional parts diff --git a/pkgs/development/python-modules/pytest-shutil/default.nix b/pkgs/development/python-modules/pytest-shutil/default.nix index d9c80a93510e..9c5bffacb431 100644 --- a/pkgs/development/python-modules/pytest-shutil/default.nix +++ b/pkgs/development/python-modules/pytest-shutil/default.nix @@ -1,24 +1,25 @@ -{ lib -, isPyPy -, buildPythonPackage -, pytest-fixture-config -, fetchpatch +{ + lib, + isPyPy, + buildPythonPackage, + pytest-fixture-config, + fetchpatch, -# build-time -, setuptools -, setuptools-git + # build-time + setuptools, + setuptools-git, -# runtime -, pytest -, mock -, path -, execnet -, termcolor -, six + # runtime + pytest, + mock, + path, + execnet, + termcolor, + six, -# tests -, pytestCheckHook - }: + # tests + pytestCheckHook, +}: buildPythonPackage rec { pname = "pytest-shutil"; @@ -52,16 +53,14 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_pretty_formatter" - ] ++ lib.optionals isPyPy [ - "test_run" - "test_run_integration" - ]; + disabledTests = + [ "test_pretty_formatter" ] + ++ lib.optionals isPyPy [ + "test_run" + "test_run_integration" + ]; meta = with lib; { description = "A goodie-bag of unix shell and environment tools for py.test"; diff --git a/pkgs/development/python-modules/pytest-snapshot/default.nix b/pkgs/development/python-modules/pytest-snapshot/default.nix index c04c9b74e3b3..1e76535680ca 100644 --- a/pkgs/development/python-modules/pytest-snapshot/default.nix +++ b/pkgs/development/python-modules/pytest-snapshot/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, pytest -, setuptools-scm -, pytest7CheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + pytest, + setuptools-scm, + pytest7CheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,26 +23,18 @@ buildPythonPackage rec { hash = "sha256-0PZu9wL29iEppLxxbl4D0E4WfOHe61KUUld003cRBRU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; nativeCheckInputs = [ # https://github.com/joseph-roitman/pytest-snapshot/issues/71 pytest7CheckHook ]; - pythonImportsCheck = [ - "pytest_snapshot" - ]; + pythonImportsCheck = [ "pytest_snapshot" ]; meta = with lib; { description = "A plugin to enable snapshot testing with pytest"; diff --git a/pkgs/development/python-modules/pytest-socket/default.nix b/pkgs/development/python-modules/pytest-socket/default.nix index 9a420c1a0986..7e34ef0a99b9 100644 --- a/pkgs/development/python-modules/pytest-socket/default.nix +++ b/pkgs/development/python-modules/pytest-socket/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest -, pythonOlder -, setuptoolsBuildHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest, + pythonOlder, + setuptoolsBuildHook, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-19YF3q85maCVdVg2HOOPbN45RNjBf6kiFAhLut8B2tQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; # pytest-socket require network for majority of tests doCheck = false; - pythonImportsCheck = [ - "pytest_socket" - ]; + pythonImportsCheck = [ "pytest_socket" ]; meta = with lib; { description = "Pytest Plugin to disable socket calls during tests"; diff --git a/pkgs/development/python-modules/pytest-subprocess/default.nix b/pkgs/development/python-modules/pytest-subprocess/default.nix index 966ca16dd0ba..4557e7fe4576 100644 --- a/pkgs/development/python-modules/pytest-subprocess/default.nix +++ b/pkgs/development/python-modules/pytest-subprocess/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, pytest -, pytestCheckHook -, docutils -, pygments -, pytest-rerunfailures -, pytest-asyncio -, anyio +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pytest, + pytestCheckHook, + docutils, + pygments, + pytest-rerunfailures, + pytest-asyncio, + anyio, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { hash = "sha256-u9d9RhbikOyknMWs18j2efYJb9YdHsQrp31LfcbudoA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ pytestCheckHook @@ -43,9 +40,7 @@ buildPythonPackage rec { anyio ]; - pytestFlagsArray = [ - "-W ignore::DeprecationWarning" - ]; + pytestFlagsArray = [ "-W ignore::DeprecationWarning" ]; meta = with lib; { description = "A plugin to fake subprocess for pytest"; diff --git a/pkgs/development/python-modules/pytest-subtesthack/default.nix b/pkgs/development/python-modules/pytest-subtesthack/default.nix index 319fffe01db3..abf57ae1832a 100644 --- a/pkgs/development/python-modules/pytest-subtesthack/default.nix +++ b/pkgs/development/python-modules/pytest-subtesthack/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "pytest-subtesthack"; diff --git a/pkgs/development/python-modules/pytest-subtests/default.nix b/pkgs/development/python-modules/pytest-subtests/default.nix index d9afd5f0c9a9..664e0609080d 100644 --- a/pkgs/development/python-modules/pytest-subtests/default.nix +++ b/pkgs/development/python-modules/pytest-subtests/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, attrs + # dependencies + attrs, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -31,17 +32,11 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_subtests" - ]; + pythonImportsCheck = [ "pytest_subtests" ]; meta = with lib; { description = "Pytest plugin for unittest subTest() support and subtests fixture"; diff --git a/pkgs/development/python-modules/pytest-sugar/default.nix b/pkgs/development/python-modules/pytest-sugar/default.nix index 8076c639e7d4..91446a6e7734 100644 --- a/pkgs/development/python-modules/pytest-sugar/default.nix +++ b/pkgs/development/python-modules/pytest-sugar/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, termcolor -, pytest -, packaging -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + termcolor, + pytest, + packaging, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-ZCLoMlj1sMBM58YyF2x3Msq1/bkJyznMpckTn4EnbAo="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ termcolor packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A plugin that changes the default look and feel of pytest"; diff --git a/pkgs/development/python-modules/pytest-tap/default.nix b/pkgs/development/python-modules/pytest-tap/default.nix index 32b12ddcc236..91513ca894e2 100644 --- a/pkgs/development/python-modules/pytest-tap/default.nix +++ b/pkgs/development/python-modules/pytest-tap/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytest -, tappy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytest, + tappy, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,26 +22,18 @@ buildPythonPackage rec { sha256 = "R0RSdKTyJYGq+x0+ut4pJEywTGNgGp/ps36ZaH5dyY4="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - tappy - ]; + propagatedBuildInputs = [ tappy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Fixed in 4ed0138bf659c348b6dfb8bb701ae1989625d3d8 and hopefully in next release "test_unittest_expected_failure" ]; - pythonImportsCheck = [ - "pytest_tap" - ]; + pythonImportsCheck = [ "pytest_tap" ]; meta = with lib; { description = "Test Anything Protocol (TAP) reporting plugin for pytest"; diff --git a/pkgs/development/python-modules/pytest-test-utils/default.nix b/pkgs/development/python-modules/pytest-test-utils/default.nix index 127b0c163356..6c50a815fa28 100644 --- a/pkgs/development/python-modules/pytest-test-utils/default.nix +++ b/pkgs/development/python-modules/pytest-test-utils/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, wheel -, pytestCheckHook -, pytest -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + wheel, + pytestCheckHook, + pytest, + pythonOlder, }: buildPythonPackage rec { @@ -29,17 +30,11 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pytest_test_utils" - ]; + pythonImportsCheck = [ "pytest_test_utils" ]; meta = with lib; { description = "Pytest utilities for tests"; diff --git a/pkgs/development/python-modules/pytest-testmon/default.nix b/pkgs/development/python-modules/pytest-testmon/default.nix index 9bceb430820e..6080586d6ec4 100644 --- a/pkgs/development/python-modules/pytest-testmon/default.nix +++ b/pkgs/development/python-modules/pytest-testmon/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, coverage -, fetchFromGitHub -, poetry-core -, pytest -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + coverage, + fetchFromGitHub, + poetry-core, + pytest, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,24 +23,16 @@ buildPythonPackage rec { hash = "sha256-zbMX9r9lftdm9hzXMZRZZ/GEDViGk9QiYYUhO9ZcEAc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - coverage - ]; + propagatedBuildInputs = [ coverage ]; # The project does not include tests since version 1.3.0 doCheck = false; - pythonImportsCheck = [ - "testmon" - ]; + pythonImportsCheck = [ "testmon" ]; meta = with lib; { description = "Pytest plug-in which automatically selects and re-executes only tests affected by recent changes"; diff --git a/pkgs/development/python-modules/pytest-textual-snapshot/default.nix b/pkgs/development/python-modules/pytest-textual-snapshot/default.nix index d9b51373bcdf..6661b9397ac9 100644 --- a/pkgs/development/python-modules/pytest-textual-snapshot/default.nix +++ b/pkgs/development/python-modules/pytest-textual-snapshot/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, jinja2 -, pytest -, rich -, pythonOlder -, syrupy -, textual +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + jinja2, + pytest, + rich, + pythonOlder, + syrupy, + textual, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-XkXeyodRdwWqCP63Onx82Z3IbNLDDR/Lvaw8xUY7fAg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ jinja2 @@ -42,9 +39,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pytest_textual_snapshot" - ]; + pythonImportsCheck = [ "pytest_textual_snapshot" ]; meta = with lib; { description = "Snapshot testing for Textual applications"; diff --git a/pkgs/development/python-modules/pytest-timeout/default.nix b/pkgs/development/python-modules/pytest-timeout/default.nix index 3ea96b52634c..d916162e5a5c 100644 --- a/pkgs/development/python-modules/pytest-timeout/default.nix +++ b/pkgs/development/python-modules/pytest-timeout/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pytestCheckHook -, pexpect +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pytestCheckHook, + pexpect, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-Ejl3KRJcbsvaygEDW55SOdTblzUjIK8VWz9d4bpRZdk="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ pytestCheckHook @@ -31,13 +30,9 @@ buildPythonPackage rec { "test_suppresses_timeout_when_debugger_is_entered" ]; - pytestFlagsArray = [ - "-ra" - ]; + pytestFlagsArray = [ "-ra" ]; - pythonImportsCheck = [ - "pytest_timeout" - ]; + pythonImportsCheck = [ "pytest_timeout" ]; meta = with lib; { description = "Pytest plugin to abort hanging tests"; diff --git a/pkgs/development/python-modules/pytest-tornado/default.nix b/pkgs/development/python-modules/pytest-tornado/default.nix index 0a39ce94b2e2..57922bf4b04d 100644 --- a/pkgs/development/python-modules/pytest-tornado/default.nix +++ b/pkgs/development/python-modules/pytest-tornado/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pytest -, tornado -, fetchPypi +{ + lib, + buildPythonPackage, + pytest, + tornado, + fetchPypi, }: buildPythonPackage rec { @@ -24,7 +25,7 @@ buildPythonPackage rec { meta = with lib; { description = "A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications."; - homepage = "https://github.com/eugeniy/pytest-tornado"; + homepage = "https://github.com/eugeniy/pytest-tornado"; license = licenses.asl20; }; } diff --git a/pkgs/development/python-modules/pytest-tornasync/default.nix b/pkgs/development/python-modules/pytest-tornasync/default.nix index b9fbd73c8402..b35b412c71cc 100644 --- a/pkgs/development/python-modules/pytest-tornasync/default.nix +++ b/pkgs/development/python-modules/pytest-tornasync/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27 -, pytest, tornado }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + pytest, + tornado, +}: buildPythonPackage rec { pname = "pytest-tornasync"; @@ -18,9 +24,7 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ - tornado - ]; + propagatedBuildInputs = [ tornado ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/pytest-trio/default.nix b/pkgs/development/python-modules/pytest-trio/default.nix index 291b10f9b1b8..31caf8fc5e09 100644 --- a/pkgs/development/python-modules/pytest-trio/default.nix +++ b/pkgs/development/python-modules/pytest-trio/default.nix @@ -1,5 +1,13 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder -, trio, hypothesis, outcome, pytest }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + trio, + hypothesis, + outcome, + pytest, +}: buildPythonPackage rec { pname = "pytest-trio"; diff --git a/pkgs/development/python-modules/pytest-twisted/default.nix b/pkgs/development/python-modules/pytest-twisted/default.nix index d83153c54c91..306d7a06a4c9 100644 --- a/pkgs/development/python-modules/pytest-twisted/default.nix +++ b/pkgs/development/python-modules/pytest-twisted/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, greenlet -, pytest -, decorator -, twisted -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + greenlet, + pytest, + decorator, + twisted, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "sha256-qbGLyfykfSiG+O/j/SeHmoHxwLtJ8cVgZmyedkSRtjI="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ decorator @@ -32,9 +31,7 @@ buildPythonPackage rec { twisted ]; - pythonImportsCheck = [ - "pytest_twisted" - ]; + pythonImportsCheck = [ "pytest_twisted" ]; meta = with lib; { description = "A twisted plugin for py.test"; diff --git a/pkgs/development/python-modules/pytest-unordered/default.nix b/pkgs/development/python-modules/pytest-unordered/default.nix index d0446e764645..990586f28112 100644 --- a/pkgs/development/python-modules/pytest-unordered/default.nix +++ b/pkgs/development/python-modules/pytest-unordered/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pytest7CheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytest7CheckHook, }: buildPythonPackage rec { @@ -17,18 +18,14 @@ buildPythonPackage rec { hash = "sha256-51UJjnGBO7qBvQlY8F0B29n8+EO2aa3DF3WOwcjZzSo="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; nativeCheckInputs = [ # https://github.com/utapyngo/pytest-unordered/issues/15 pytest7CheckHook ]; - pythonImportsCheck = [ - "pytest_unordered" - ]; + pythonImportsCheck = [ "pytest_unordered" ]; meta = with lib; { changelog = "https://github.com/utapyngo/pytest-unordered/blob/v${version}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/pytest-vcr/default.nix b/pkgs/development/python-modules/pytest-vcr/default.nix index eb28f2f74c28..2e77d3af8261 100644 --- a/pkgs/development/python-modules/pytest-vcr/default.nix +++ b/pkgs/development/python-modules/pytest-vcr/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, vcrpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + vcrpy, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ - vcrpy - ]; + propagatedBuildInputs = [ vcrpy ]; # Tests are using an obsolete attribute 'config' # https://github.com/ktosiek/pytest-vcr/issues/43 diff --git a/pkgs/development/python-modules/pytest-voluptuous/default.nix b/pkgs/development/python-modules/pytest-voluptuous/default.nix index ce1081e5febf..c22d2d463b72 100644 --- a/pkgs/development/python-modules/pytest-voluptuous/default.nix +++ b/pkgs/development/python-modules/pytest-voluptuous/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pytestCheckHook -, pythonOlder -, six -, voluptuous +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pytestCheckHook, + pythonOlder, + six, + voluptuous, }: buildPythonPackage rec { @@ -22,26 +23,18 @@ buildPythonPackage rec { hash = "sha256-xdj4qCSSJQI9Rb1WyUYrAg1I5wQ5o6IJyIjJAafP/LY="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - voluptuous - ]; + propagatedBuildInputs = [ voluptuous ]; nativeCheckInputs = [ pytestCheckHook six ]; - pythonImportsCheck = [ - "pytest_voluptuous" - ]; + pythonImportsCheck = [ "pytest_voluptuous" ]; - pytestFlagsArray = [ - "tests/test_plugin.py" - ]; + pytestFlagsArray = [ "tests/test_plugin.py" ]; meta = with lib; { description = "A pytest plugin for asserting data against voluptuous schema"; diff --git a/pkgs/development/python-modules/pytest-warnings/default.nix b/pkgs/development/python-modules/pytest-warnings/default.nix index 594c27f18ec8..d79138af5f41 100644 --- a/pkgs/development/python-modules/pytest-warnings/default.nix +++ b/pkgs/development/python-modules/pytest-warnings/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "pytest-warnings"; diff --git a/pkgs/development/python-modules/pytest-watch/default.nix b/pkgs/development/python-modules/pytest-watch/default.nix index 6158106d92de..400812545767 100644 --- a/pkgs/development/python-modules/pytest-watch/default.nix +++ b/pkgs/development/python-modules/pytest-watch/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, docopt -, colorama -, pytest -, watchdog +{ + lib, + buildPythonPackage, + fetchPypi, + docopt, + colorama, + pytest, + watchdog, }: buildPythonPackage rec { @@ -19,7 +20,11 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ colorama docopt watchdog ]; + propagatedBuildInputs = [ + colorama + docopt + watchdog + ]; # No Tests doCheck = false; diff --git a/pkgs/development/python-modules/pytest-xdist/default.nix b/pkgs/development/python-modules/pytest-xdist/default.nix index 947040fbf5fd..b75a4b790528 100644 --- a/pkgs/development/python-modules/pytest-xdist/default.nix +++ b/pkgs/development/python-modules/pytest-xdist/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, pytestCheckHook -, filelock -, execnet -, pytest -, psutil -, setproctitle +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + pytestCheckHook, + filelock, + execnet, + pytest, + psutil, + setproctitle, }: buildPythonPackage rec { @@ -23,17 +24,11 @@ buildPythonPackage rec { hash = "sha256-y7NvPWfgxHi6pX+k7ciEOIfg9s/ELWd1MKNtdHKzLYo="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - execnet - ]; + propagatedBuildInputs = [ execnet ]; nativeCheckInputs = [ filelock diff --git a/pkgs/development/python-modules/pytest-xprocess/default.nix b/pkgs/development/python-modules/pytest-xprocess/default.nix index 601eaecd3e05..6442d27f35f4 100644 --- a/pkgs/development/python-modules/pytest-xprocess/default.nix +++ b/pkgs/development/python-modules/pytest-xprocess/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, psutil -, py -, pytest -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + psutil, + py, + pytest, + setuptools-scm, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { --replace "'pytest-cache', " "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; propagatedBuildInputs = [ psutil diff --git a/pkgs/development/python-modules/pytest-xvfb/default.nix b/pkgs/development/python-modules/pytest-xvfb/default.nix index 0b555274c90a..b665ea25a3b2 100644 --- a/pkgs/development/python-modules/pytest-xvfb/default.nix +++ b/pkgs/development/python-modules/pytest-xvfb/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pyvirtualdisplay -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pyvirtualdisplay, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-N0arH00RWfA/dRY40FNonM0oQpGzi4+wPT67579pz8A="; }; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - pyvirtualdisplay - ]; + propagatedBuildInputs = [ pyvirtualdisplay ]; meta = with lib; { description = "A pytest plugin to run Xvfb for tests"; diff --git a/pkgs/development/python-modules/pytest/7.nix b/pkgs/development/python-modules/pytest/7.nix index 835e8ff42b3c..8ca33b158e5c 100644 --- a/pkgs/development/python-modules/pytest/7.nix +++ b/pkgs/development/python-modules/pytest/7.nix @@ -1,116 +1,122 @@ -{ lib -, buildPythonPackage -, callPackage -, pythonOlder -, fetchPypi -, writeText +{ + lib, + buildPythonPackage, + callPackage, + pythonOlder, + fetchPypi, + writeText, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, attrs -, exceptiongroup -, iniconfig -, packaging -, pluggy -, tomli + # dependencies + attrs, + exceptiongroup, + iniconfig, + packaging, + pluggy, + tomli, -# optional-dependencies -, argcomplete -, hypothesis -, mock -, nose -, pygments -, requests -, xmlschema + # optional-dependencies + argcomplete, + hypothesis, + mock, + nose, + pygments, + requests, + xmlschema, }: -let self = buildPythonPackage rec { - pname = "pytest"; - version = "7.4.4"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "pytest"; + version = "7.4.4"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-LPAAWSLGrOSj4uyLQIDrDZdT/ckxB0FTMvUM6eeZQoA="; - }; + src = fetchPypi { + inherit pname version; + hash = "sha256-LPAAWSLGrOSj4uyLQIDrDZdT/ckxB0FTMvUM6eeZQoA="; + }; - outputs = [ - "out" - "testout" - ]; - - nativeBuildInputs = [ - setuptools - setuptools-scm - ]; - - propagatedBuildInputs = [ - iniconfig - packaging - pluggy - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - tomli - ]; - - passthru.optional-dependencies = { - testing = [ - argcomplete - attrs - hypothesis - mock - nose - pygments - requests - setuptools - xmlschema + outputs = [ + "out" + "testout" ]; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + propagatedBuildInputs = + [ + iniconfig + packaging + pluggy + ] + ++ lib.optionals (pythonOlder "3.11") [ + exceptiongroup + tomli + ]; + + passthru.optional-dependencies = { + testing = [ + argcomplete + attrs + hypothesis + mock + nose + pygments + requests + setuptools + xmlschema + ]; + }; + + postInstall = '' + mkdir $testout + cp -R testing $testout/testing + ''; + + doCheck = false; + passthru.tests.pytest = callPackage ./tests.nix { pytest = self; }; + + # Remove .pytest_cache when using py.test in a Nix build + setupHook = writeText "pytest-hook" '' + pytestcachePhase() { + find $out -name .pytest_cache -type d -exec rm -rf {} + + } + preDistPhases+=" pytestcachePhase" + + # pytest generates it's own bytecode files to improve assertion messages. + # These files similar to cpython's bytecode files but are never laoded + # by python interpreter directly. We remove them for a few reasons: + # - files are non-deterministic: https://github.com/NixOS/nixpkgs/issues/139292 + # (file headers are generatedt by pytest directly and contain timestamps) + # - files are not needed after tests are finished + pytestRemoveBytecodePhase () { + # suffix is defined at: + # https://github.com/pytest-dev/pytest/blob/7.2.1/src/_pytest/assertion/rewrite.py#L51-L53 + find $out -name "*-pytest-*.py[co]" -delete + } + preDistPhases+=" pytestRemoveBytecodePhase" + ''; + + pythonImportsCheck = [ "pytest" ]; + + meta = with lib; { + description = "Framework for writing tests"; + homepage = "https://docs.pytest.org"; + changelog = "https://github.com/pytest-dev/pytest/releases/tag/${version}"; + maintainers = with maintainers; [ + domenkozar + lovek323 + madjar + lsix + ]; + license = licenses.mit; + }; }; - - postInstall = '' - mkdir $testout - cp -R testing $testout/testing - ''; - - doCheck = false; - passthru.tests.pytest = callPackage ./tests.nix { - pytest = self; - }; - - # Remove .pytest_cache when using py.test in a Nix build - setupHook = writeText "pytest-hook" '' - pytestcachePhase() { - find $out -name .pytest_cache -type d -exec rm -rf {} + - } - preDistPhases+=" pytestcachePhase" - - # pytest generates it's own bytecode files to improve assertion messages. - # These files similar to cpython's bytecode files but are never laoded - # by python interpreter directly. We remove them for a few reasons: - # - files are non-deterministic: https://github.com/NixOS/nixpkgs/issues/139292 - # (file headers are generatedt by pytest directly and contain timestamps) - # - files are not needed after tests are finished - pytestRemoveBytecodePhase () { - # suffix is defined at: - # https://github.com/pytest-dev/pytest/blob/7.2.1/src/_pytest/assertion/rewrite.py#L51-L53 - find $out -name "*-pytest-*.py[co]" -delete - } - preDistPhases+=" pytestRemoveBytecodePhase" - ''; - - pythonImportsCheck = [ - "pytest" - ]; - - meta = with lib; { - description = "Framework for writing tests"; - homepage = "https://docs.pytest.org"; - changelog = "https://github.com/pytest-dev/pytest/releases/tag/${version}"; - maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ]; - license = licenses.mit; - }; -}; -in self +in +self diff --git a/pkgs/development/python-modules/pytest/default.nix b/pkgs/development/python-modules/pytest/default.nix index 9b99112a5f0e..291f469be960 100644 --- a/pkgs/development/python-modules/pytest/default.nix +++ b/pkgs/development/python-modules/pytest/default.nix @@ -1,30 +1,31 @@ -{ lib -, buildPythonPackage -, callPackage -, pythonOlder -, fetchPypi -, writeText +{ + lib, + buildPythonPackage, + callPackage, + pythonOlder, + fetchPypi, + writeText, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, attrs -, exceptiongroup -, iniconfig -, packaging -, pluggy -, tomli + # dependencies + attrs, + exceptiongroup, + iniconfig, + packaging, + pluggy, + tomli, -# optional-dependencies -, argcomplete -, hypothesis -, mock -, nose -, pygments -, requests -, xmlschema + # optional-dependencies + argcomplete, + hypothesis, + mock, + nose, + pygments, + requests, + xmlschema, }: buildPythonPackage rec { @@ -47,14 +48,16 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - iniconfig - packaging - pluggy - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - tomli - ]; + propagatedBuildInputs = + [ + iniconfig + packaging + pluggy + ] + ++ lib.optionals (pythonOlder "3.11") [ + exceptiongroup + tomli + ]; passthru.optional-dependencies = { testing = [ @@ -99,15 +102,18 @@ buildPythonPackage rec { preDistPhases+=" pytestRemoveBytecodePhase" ''; - pythonImportsCheck = [ - "pytest" - ]; + pythonImportsCheck = [ "pytest" ]; meta = with lib; { description = "Framework for writing tests"; homepage = "https://docs.pytest.org"; changelog = "https://github.com/pytest-dev/pytest/releases/tag/${version}"; - maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ]; + maintainers = with maintainers; [ + domenkozar + lovek323 + madjar + lsix + ]; license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/pytest/tests.nix b/pkgs/development/python-modules/pytest/tests.nix index 8bf8dafdf927..a60e3a031fdc 100644 --- a/pkgs/development/python-modules/pytest/tests.nix +++ b/pkgs/development/python-modules/pytest/tests.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, isPyPy -, pytest +{ + buildPythonPackage, + isPyPy, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytestcache/default.nix b/pkgs/development/python-modules/pytestcache/default.nix index cf8643db06d1..dbed88eb85fa 100644 --- a/pkgs/development/python-modules/pytestcache/default.nix +++ b/pkgs/development/python-modules/pytestcache/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, pytest, execnet }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + execnet, +}: buildPythonPackage rec { pname = "pytest-cache"; diff --git a/pkgs/development/python-modules/python-arango/default.nix b/pkgs/development/python-modules/python-arango/default.nix index 09218269828a..9abc67d70294 100644 --- a/pkgs/development/python-modules/python-arango/default.nix +++ b/pkgs/development/python-modules/python-arango/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, -# build-system -, setuptools -, setuptools-scm + # build-system + setuptools, + setuptools-scm, -# dependencies -, urllib3 -, requests -, requests-toolbelt -, pyjwt -, importlib-metadata -, packaging + # dependencies + urllib3, + requests, + requests-toolbelt, + pyjwt, + importlib-metadata, + packaging, -# tests -, arangodb -, mock + # tests + arangodb, + mock, }: let @@ -147,9 +148,7 @@ buildPythonPackage rec { "test_replication_applier" ]; - pythonImportsCheck = [ - "arango" - ]; + pythonImportsCheck = [ "arango" ]; meta = with lib; { description = "Python Driver for ArangoDB"; diff --git a/pkgs/development/python-modules/python-awair/default.nix b/pkgs/development/python-modules/python-awair/default.nix index fb65b6f848bc..c814188477fa 100644 --- a/pkgs/development/python-modules/python-awair/default.nix +++ b/pkgs/development/python-modules/python-awair/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, voluptuous -, vcrpy +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + voluptuous, + vcrpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-axolotl-curve25519/default.nix b/pkgs/development/python-modules/python-axolotl-curve25519/default.nix index 9d039abd13f9..cb2185845e65 100644 --- a/pkgs/development/python-modules/python-axolotl-curve25519/default.nix +++ b/pkgs/development/python-modules/python-axolotl-curve25519/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "python-axolotl-curve25519"; diff --git a/pkgs/development/python-modules/python-axolotl/default.nix b/pkgs/development/python-modules/python-axolotl/default.nix index 3725d0359a4e..8af55b83ff58 100644 --- a/pkgs/development/python-modules/python-axolotl/default.nix +++ b/pkgs/development/python-modules/python-axolotl/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, cryptography, python-axolotl-curve25519, protobuf }: +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, + python-axolotl-curve25519, + protobuf, +}: buildPythonPackage rec { pname = "python-axolotl"; @@ -10,7 +17,11 @@ buildPythonPackage rec { sha256 = "1bwdp24fmriffwx91aigs9k162albb51iskp23nc939z893q23py"; }; - propagatedBuildInputs = [ cryptography python-axolotl-curve25519 protobuf ]; + propagatedBuildInputs = [ + cryptography + python-axolotl-curve25519 + protobuf + ]; meta = with lib; { homepage = "https://github.com/tgalal/python-axolotl"; diff --git a/pkgs/development/python-modules/python-barcode/default.nix b/pkgs/development/python-modules/python-barcode/default.nix index 4c4d9b367993..63d39dc9a852 100644 --- a/pkgs/development/python-modules/python-barcode/default.nix +++ b/pkgs/development/python-modules/python-barcode/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, pillow -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + pillow, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,14 +20,10 @@ buildPythonPackage rec { hash = "sha256-Oxgl+9sR5ZdGbf9ChrTqmx6GpXcXtZ5WOuZ5cm/IVN4="; }; - propagatedBuildInputs = [ - setuptools-scm - ]; + propagatedBuildInputs = [ setuptools-scm ]; passthru.optional-dependencies = { - images = [ - pillow - ]; + images = [ pillow ]; }; postPatch = '' @@ -36,9 +33,7 @@ buildPythonPackage rec { --replace "--no-cov-on-fail" "" ''; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.images; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.images; pythonImportsCheck = [ "barcode" ]; diff --git a/pkgs/development/python-modules/python-baseconv/default.nix b/pkgs/development/python-modules/python-baseconv/default.nix index 6e9acbb7873c..c6f9386ca36c 100644 --- a/pkgs/development/python-modules/python-baseconv/default.nix +++ b/pkgs/development/python-modules/python-baseconv/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, }: buildPythonPackage rec { pname = "python-baseconv"; @@ -8,7 +9,7 @@ buildPythonPackage rec { format = "setuptools"; src = fetchPypi { - inherit pname version ; + inherit pname version; sha256 = "0539f8bd0464013b05ad62e0a1673f0ac9086c76b43ebf9f833053527cd9931b"; }; diff --git a/pkgs/development/python-modules/python-benedict/default.nix b/pkgs/development/python-modules/python-benedict/default.nix index 1757de4c851b..a20a469eb3c1 100644 --- a/pkgs/development/python-modules/python-benedict/default.nix +++ b/pkgs/development/python-modules/python-benedict/default.nix @@ -1,26 +1,27 @@ -{ lib -, boto3 -, buildPythonPackage -, fetchFromGitHub -, ftfy -, mailchecker -, openpyxl -, orjson -, phonenumbers -, beautifulsoup4 -, pytestCheckHook -, python-dateutil -, python-decouple -, python-fsutil -, python-slugify -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, requests -, setuptools -, toml -, xlrd -, xmltodict +{ + lib, + boto3, + buildPythonPackage, + fetchFromGitHub, + ftfy, + mailchecker, + openpyxl, + orjson, + phonenumbers, + beautifulsoup4, + pytestCheckHook, + python-dateutil, + python-decouple, + python-fsutil, + python-slugify, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + requests, + setuptools, + toml, + xlrd, + xmltodict, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-1/eLJFXACn1W5Yz43BIhdqqUVk3t9285d8aLwH+VmAE="; }; - pythonRelaxDeps = [ - "boto3" - ]; + pythonRelaxDeps = [ "boto3" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -84,22 +83,14 @@ buildPythonPackage rec { phonenumbers python-dateutil ]; - s3 = [ - boto3 - ]; - toml = [ - toml - ]; + s3 = [ boto3 ]; + toml = [ toml ]; xls = [ openpyxl xlrd ]; - xml = [ - xmltodict - ]; - yaml = [ - pyyaml - ]; + xml = [ xmltodict ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ @@ -123,9 +114,7 @@ buildPythonPackage rec { "test_from_yaml_with_valid_url_valid_content" ]; - pythonImportsCheck = [ - "benedict" - ]; + pythonImportsCheck = [ "benedict" ]; meta = with lib; { description = "Module with keylist/keypath support"; diff --git a/pkgs/development/python-modules/python-bidi/default.nix b/pkgs/development/python-modules/python-bidi/default.nix index c88a2de6a177..c18f52714c3c 100644 --- a/pkgs/development/python-modules/python-bidi/default.nix +++ b/pkgs/development/python-modules/python-bidi/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, +}: buildPythonPackage rec { pname = "python-bidi"; diff --git a/pkgs/development/python-modules/python-binance/default.nix b/pkgs/development/python-modules/python-binance/default.nix index 59a36e776094..4f626ae2e78c 100644 --- a/pkgs/development/python-modules/python-binance/default.nix +++ b/pkgs/development/python-modules/python-binance/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, buildPythonPackage -, dateparser -, fetchFromGitHub -, fetchpatch -, pycryptodome -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, six -, ujson -, websockets +{ + lib, + aiohttp, + buildPythonPackage, + dateparser, + fetchFromGitHub, + fetchpatch, + pycryptodome, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + six, + ujson, + websockets, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { "tests/test_historical_klines.py" ]; - pythonImportsCheck = [ - "binance" - ]; + pythonImportsCheck = [ "binance" ]; meta = with lib; { description = "Binance Exchange API python implementation for automated trading"; diff --git a/pkgs/development/python-modules/python-box/default.nix b/pkgs/development/python-modules/python-box/default.nix index 9a7350c34eb8..1167204729bc 100644 --- a/pkgs/development/python-modules/python-box/default.nix +++ b/pkgs/development/python-modules/python-box/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, msgpack -, poetry-core -, pytestCheckHook -, pythonOlder -, pyyaml -, ruamel-yaml -, setuptools -, toml -, tomli -, tomli-w +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + msgpack, + poetry-core, + pytestCheckHook, + pythonOlder, + pyyaml, + ruamel-yaml, + setuptools, + toml, + tomli, + tomli-w, }: buildPythonPackage rec { @@ -39,35 +40,17 @@ buildPythonPackage rec { ruamel-yaml toml ]; - yaml = [ - ruamel-yaml - ]; - ruamel-yaml = [ - ruamel-yaml - ]; - PyYAML = [ - pyyaml - ]; - tomli = [ - tomli-w - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; - toml = [ - toml - ]; - msgpack = [ - msgpack - ]; + yaml = [ ruamel-yaml ]; + ruamel-yaml = [ ruamel-yaml ]; + PyYAML = [ pyyaml ]; + tomli = [ tomli-w ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; + toml = [ toml ]; + msgpack = [ msgpack ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.all; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.all; - pythonImportsCheck = [ - "box" - ]; + pythonImportsCheck = [ "box" ]; meta = with lib; { description = "Python dictionaries with advanced dot notation access"; diff --git a/pkgs/development/python-modules/python-bring-api/default.nix b/pkgs/development/python-modules/python-bring-api/default.nix index a5003690c404..060c73d39cd4 100644 --- a/pkgs/development/python-modules/python-bring-api/default.nix +++ b/pkgs/development/python-modules/python-bring-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-VCGCm9N6pMhEYT9WuWh7qKacZEf6bcIpEsILfCC6his="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "python_bring_api" - ]; + pythonImportsCheck = [ "python_bring_api" ]; meta = with lib; { description = "Module to access the Bring! shopping lists API"; diff --git a/pkgs/development/python-modules/python-bsblan/default.nix b/pkgs/development/python-modules/python-bsblan/default.nix index 01d9704c0399..198d283c521a 100644 --- a/pkgs/development/python-modules/python-bsblan/default.nix +++ b/pkgs/development/python-modules/python-bsblan/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, aresponses -, backoff -, buildPythonPackage -, fetchFromGitHub -, packaging -, poetry-core -, pydantic -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + backoff, + buildPythonPackage, + fetchFromGitHub, + packaging, + poetry-core, + pydantic, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { sed -i "/ruff/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -61,9 +60,7 @@ buildPythonPackage rec { "test_not_authorized_401_response" ]; - pythonImportsCheck = [ - "bsblan" - ]; + pythonImportsCheck = [ "bsblan" ]; meta = with lib; { description = "Module to control and monitor an BSBLan device programmatically"; diff --git a/pkgs/development/python-modules/python-cinderclient/default.nix b/pkgs/development/python-modules/python-cinderclient/default.nix index 037d93adb4a6..b942574c6e9c 100644 --- a/pkgs/development/python-modules/python-cinderclient/default.nix +++ b/pkgs/development/python-modules/python-cinderclient/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ddt -, keystoneauth1 -, oslo-i18n -, oslo-serialization -, oslo-utils -, pbr -, requests -, prettytable -, requests-mock -, simplejson -, stestr -, stevedore +{ + lib, + buildPythonPackage, + fetchPypi, + ddt, + keystoneauth1, + oslo-i18n, + oslo-serialization, + oslo-utils, + pbr, + requests, + prettytable, + requests-mock, + simplejson, + stestr, + stevedore, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-codon-tables/default.nix b/pkgs/development/python-modules/python-codon-tables/default.nix index 455ea329675d..f5fc127aa471 100644 --- a/pkgs/development/python-modules/python-codon-tables/default.nix +++ b/pkgs/development/python-modules/python-codon-tables/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-constraint/default.nix b/pkgs/development/python-modules/python-constraint/default.nix index 7b191010aac5..cd54dc4b0b52 100644 --- a/pkgs/development/python-modules/python-constraint/default.nix +++ b/pkgs/development/python-modules/python-constraint/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, # Check inputs -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-creole/default.nix b/pkgs/development/python-modules/python-creole/default.nix index 0291c0473f42..53f77d388f5f 100644 --- a/pkgs/development/python-modules/python-creole/default.nix +++ b/pkgs/development/python-modules/python-creole/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, runtimeShell +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + runtimeShell, -# build -, poetry-core + # build + poetry-core, -# propagates -, docutils + # propagates + docutils, -# tests -, pytestCheckHook -, readme-renderer -, textile + # tests + pytestCheckHook, + readme-renderer, + textile, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace Makefile \ @@ -48,13 +47,9 @@ buildPythonPackage rec { sed -i "/-cov/d" pytest.ini ''; - propagatedBuildInputs = [ - docutils - ]; + propagatedBuildInputs = [ docutils ]; - pythonImportsCheck = [ - "creole" - ]; + pythonImportsCheck = [ "creole" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/python-crfsuite/default.nix b/pkgs/development/python-modules/python-crfsuite/default.nix index 34ed7eba301e..834bfa60a0f0 100644 --- a/pkgs/development/python-modules/python-crfsuite/default.nix +++ b/pkgs/development/python-modules/python-crfsuite/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { rm -r pycrfsuite ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pycrfsuite" - ]; + pythonImportsCheck = [ "pycrfsuite" ]; meta = with lib; { description = "Python binding for CRFsuite"; diff --git a/pkgs/development/python-modules/python-crontab/default.nix b/pkgs/development/python-modules/python-crontab/default.nix index 8af332aa316b..08ca5de2b71e 100644 --- a/pkgs/development/python-modules/python-crontab/default.nix +++ b/pkgs/development/python-modules/python-crontab/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-eft0ZQOd39T7k9By1u4NRcGsi/FZfwaG6hT9Q2Hbo3k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - python-dateutil - ]; + propagatedBuildInputs = [ python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ "test_07_non_posix_shell" @@ -40,9 +35,7 @@ buildPythonPackage rec { "test_20_frequency_at_year" ]; - pythonImportsCheck = [ - "crontab" - ]; + pythonImportsCheck = [ "crontab" ]; meta = with lib; { description = "Python API for crontab"; diff --git a/pkgs/development/python-modules/python-csxcad/default.nix b/pkgs/development/python-modules/python-csxcad/default.nix index b7dc56ed2774..1208aa47cc82 100644 --- a/pkgs/development/python-modules/python-csxcad/default.nix +++ b/pkgs/development/python-modules/python-csxcad/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, openems -, csxcad -, numpy -, matplotlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + openems, + csxcad, + numpy, + matplotlib, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/python"; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ openems @@ -28,7 +27,11 @@ buildPythonPackage rec { matplotlib ]; - setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ]; + setupPyBuildFlags = [ + "-I${openems}/include" + "-L${openems}/lib" + "-R${openems}/lib" + ]; meta = with lib; { description = "Python interface to CSXCAD"; diff --git a/pkgs/development/python-modules/python-ctags3/default.nix b/pkgs/development/python-modules/python-ctags3/default.nix index 245fa3209ccb..aa82db324c16 100644 --- a/pkgs/development/python-modules/python-ctags3/default.nix +++ b/pkgs/development/python-modules/python-ctags3/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, cython, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "python-ctags3"; @@ -12,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-XVsZckNVJ1H5q8FzqoVd1UWRw0zOygvRtb7arX9dwGE="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; # Regenerating the bindings keeps later versions of Python happy postPatch = '' diff --git a/pkgs/development/python-modules/python-daemon/default.nix b/pkgs/development/python-modules/python-daemon/default.nix index a0dc1f05b76e..802abf87d086 100644 --- a/pkgs/development/python-modules/python-daemon/default.nix +++ b/pkgs/development/python-modules/python-daemon/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, docutils -, lockfile -, pytestCheckHook -, testscenarios -, testtools -, twine -, python -, pythonOlder -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + docutils, + lockfile, + pytestCheckHook, + testscenarios, + testtools, + twine, + python, + pythonOlder, + fetchpatch, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { sha256 = "sha256-bFdFI3L36v9Ak0ocA60YJr9eeTVY6H/vSRMeZGS02uU="; }; - nativeBuildInputs = [ - twine - ]; + nativeBuildInputs = [ twine ]; propagatedBuildInputs = [ docutils @@ -66,7 +65,10 @@ buildPythonPackage rec { description = "Library to implement a well-behaved Unix daemon process"; homepage = "https://pagure.io/python-daemon/"; # See "Copying" section in https://pagure.io/python-daemon/blob/main/f/README - license = with licenses; [ gpl3Plus asl20 ]; + license = with licenses; [ + gpl3Plus + asl20 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/python-datemath/default.nix b/pkgs/development/python-modules/python-datemath/default.nix index 3c12e92b9036..4c2215602fff 100644 --- a/pkgs/development/python-modules/python-datemath/default.nix +++ b/pkgs/development/python-modules/python-datemath/default.nix @@ -1,10 +1,11 @@ -{ lib -, arrow -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, pytestCheckHook +{ + lib, + arrow, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,21 +30,13 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - arrow - ]; + propagatedBuildInputs = [ arrow ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "datemath" - ]; + pythonImportsCheck = [ "datemath" ]; meta = with lib; { description = "Python module to emulate the date math used in SOLR and Elasticsearch"; diff --git a/pkgs/development/python-modules/python-dateutil/default.nix b/pkgs/development/python-modules/python-dateutil/default.nix index dd7cc0f2ea1a..71def22fc9c5 100644 --- a/pkgs/development/python-modules/python-dateutil/default.nix +++ b/pkgs/development/python-modules/python-dateutil/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, six +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + six, }: buildPythonPackage rec { @@ -41,7 +42,10 @@ buildPythonPackage rec { changelog = "https://github.com/dateutil/dateutil/blob/${version}/NEWS"; description = "Powerful extensions to the standard datetime module"; homepage = "https://github.com/dateutil/dateutil/"; - license = with licenses; [ asl20 bsd3 ]; + license = with licenses; [ + asl20 + bsd3 + ]; maintainers = with maintainers; [ dotlambda ]; }; } diff --git a/pkgs/development/python-modules/python-dbusmock/default.nix b/pkgs/development/python-modules/python-dbusmock/default.nix index cec0275dfdbe..5f0ebb3988e1 100644 --- a/pkgs/development/python-modules/python-dbusmock/default.nix +++ b/pkgs/development/python-modules/python-dbusmock/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, dbus -, gobject-introspection -, dbus-python -, pygobject3 -, bluez -, networkmanager -, setuptools-scm -, runCommand +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + dbus, + gobject-introspection, + dbus-python, + pygobject3, + bluez, + networkmanager, + setuptools-scm, + runCommand, }: let @@ -19,7 +20,8 @@ let mkdir -p "$out/bin" ln -s "${bluez.test}/test/pbap-client" "$out/bin/pbap-client" ''; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "python-dbusmock"; version = "0.31.1"; format = "setuptools"; @@ -31,13 +33,9 @@ in buildPythonPackage rec { hash = "sha256-DdV78o089Jkc7mSsGvlJgVpv8kPpMILo7lC6EbLxkxg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - dbus-python - ]; + propagatedBuildInputs = [ dbus-python ]; nativeCheckInputs = [ dbus diff --git a/pkgs/development/python-modules/python-decouple/default.nix b/pkgs/development/python-modules/python-decouple/default.nix index 144aec0fa5c5..41173ce42486 100644 --- a/pkgs/development/python-modules/python-decouple/default.nix +++ b/pkgs/development/python-modules/python-decouple/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "decouple" - ]; + pythonImportsCheck = [ "decouple" ]; meta = with lib; { description = "Module to handle code and condifuration"; diff --git a/pkgs/development/python-modules/python-didl-lite/default.nix b/pkgs/development/python-modules/python-didl-lite/default.nix index aaa546730844..05746ccfadf5 100644 --- a/pkgs/development/python-modules/python-didl-lite/default.nix +++ b/pkgs/development/python-modules/python-didl-lite/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, defusedxml -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + defusedxml, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-A+G97T/udyL/yRqykq1sEGDEI6ZwtDBc5xUNFiJp0UQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - defusedxml - ]; + propagatedBuildInputs = [ defusedxml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "didl_lite" - ]; + pythonImportsCheck = [ "didl_lite" ]; meta = with lib; { description = "DIDL-Lite (Digital Item Declaration Language) tools for Python"; diff --git a/pkgs/development/python-modules/python-djvulibre/default.nix b/pkgs/development/python-modules/python-djvulibre/default.nix index 3853e7951167..de74e70eb79b 100644 --- a/pkgs/development/python-modules/python-djvulibre/default.nix +++ b/pkgs/development/python-modules/python-djvulibre/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, djvulibre -, ghostscript_headless -, packaging -, pkg-config -, requests -, setuptools -, unittestCheckHook -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + djvulibre, + ghostscript_headless, + packaging, + pkg-config, + requests, + setuptools, + unittestCheckHook, + wheel, }: buildPythonPackage rec { @@ -43,7 +44,10 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "tests" "-v" ]; + unittestFlagsArray = [ + "tests" + "-v" + ]; meta = with lib; { description = "Python support for the DjVu image format"; diff --git a/pkgs/development/python-modules/python-docs-theme/default.nix b/pkgs/development/python-modules/python-docs-theme/default.nix index e464edc7cbc5..8ac3ce796799 100644 --- a/pkgs/development/python-modules/python-docs-theme/default.nix +++ b/pkgs/development/python-modules/python-docs-theme/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pythonOlder -, sphinx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pythonOlder, + sphinx, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-x1r71/Urpqf0FtL2Bao5SgsRQfmwym34F7qYzxFkT5c="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; - pythonImportsCheck = [ - "python_docs_theme" - ]; + pythonImportsCheck = [ "python_docs_theme" ]; meta = with lib; { description = "Sphinx theme for CPython project"; diff --git a/pkgs/development/python-modules/python-docx/default.nix b/pkgs/development/python-modules/python-docx/default.nix index 6a5c01d216da..627cb55ff354 100644 --- a/pkgs/development/python-modules/python-docx/default.nix +++ b/pkgs/development/python-modules/python-docx/default.nix @@ -1,14 +1,15 @@ -{ lib -, behave -, buildPythonPackage -, fetchPypi -, lxml -, mock -, pyparsing -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + behave, + buildPythonPackage, + fetchPypi, + lxml, + mock, + pyparsing, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-WCm3IhQc8at5rt8MNNn+mSSyl2RYTA8hZOsrAtzfF8k="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ lxml @@ -43,9 +42,7 @@ buildPythonPackage rec { behave --format progress --stop --tags=-wip ''; - pythonImportsCheck = [ - "docx" - ]; + pythonImportsCheck = [ "docx" ]; disabledTests = [ # https://github.com/python-openxml/python-docx/issues/1302 diff --git a/pkgs/development/python-modules/python-doi/default.nix b/pkgs/development/python-modules/python-doi/default.nix index b917611deb36..c624d1284532 100644 --- a/pkgs/development/python-modules/python-doi/default.nix +++ b/pkgs/development/python-modules/python-doi/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, +}: buildPythonPackage rec { pname = "python-doi"; diff --git a/pkgs/development/python-modules/python-dotenv/default.nix b/pkgs/development/python-modules/python-dotenv/default.nix index 5a860279bc46..30b817686a65 100644 --- a/pkgs/development/python-modules/python-dotenv/default.nix +++ b/pkgs/development/python-modules/python-dotenv/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, ipython -, mock -, pytestCheckHook -, pythonOlder -, sh +{ + lib, + buildPythonPackage, + click, + fetchPypi, + ipython, + mock, + pytestCheckHook, + pythonOlder, + sh, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { sh ]; - disabledTests = [ - "cli" - ]; + disabledTests = [ "cli" ]; pythonImportsCheck = [ "dotenv" ]; diff --git a/pkgs/development/python-modules/python-editor/default.nix b/pkgs/development/python-modules/python-editor/default.nix index 40c86f3cf527..f466115a27a6 100644 --- a/pkgs/development/python-modules/python-editor/default.nix +++ b/pkgs/development/python-modules/python-editor/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/python-efl/default.nix b/pkgs/development/python-modules/python-efl/default.nix index 6bc480b315de..63c1043729fe 100644 --- a/pkgs/development/python-modules/python-efl/default.nix +++ b/pkgs/development/python-modules/python-efl/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchurl -, buildPythonPackage -, pkg-config -, python -, dbus-python -, packaging -, enlightenment -, directoryListingUpdater +{ + lib, + fetchurl, + buildPythonPackage, + pkg-config, + python, + dbus-python, + packaging, + enlightenment, + directoryListingUpdater, }: # Should be bumped along with EFL! @@ -25,7 +26,10 @@ buildPythonPackage rec { buildInputs = [ enlightenment.efl ]; - propagatedBuildInputs = [ dbus-python packaging ]; + propagatedBuildInputs = [ + dbus-python + packaging + ]; preConfigure = '' NIX_CFLAGS_COMPILE="$(pkg-config --cflags efl evas) $NIX_CFLAGS_COMPILE" @@ -47,7 +51,16 @@ buildPythonPackage rec { description = "Python bindings for Enlightenment Foundation Libraries"; homepage = "https://github.com/DaveMDS/python-efl"; platforms = platforms.linux; - license = with licenses; [ gpl3 lgpl3 ]; - maintainers = with maintainers; [ matejc ftrvxmtrx ] ++ teams.enlightenment.members; + license = with licenses; [ + gpl3 + lgpl3 + ]; + maintainers = + with maintainers; + [ + matejc + ftrvxmtrx + ] + ++ teams.enlightenment.members; }; } diff --git a/pkgs/development/python-modules/python-etcd/default.nix b/pkgs/development/python-modules/python-etcd/default.nix index 4e711d914086..14c26b2e899b 100644 --- a/pkgs/development/python-modules/python-etcd/default.nix +++ b/pkgs/development/python-modules/python-etcd/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, mock -, pyopenssl -, urllib3 -, dnspython +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + mock, + pyopenssl, + urllib3, + dnspython, }: buildPythonPackage rec { @@ -18,9 +19,16 @@ buildPythonPackage rec { sha256 = "f1b5ebb825a3e8190494f5ce1509fde9069f2754838ed90402a8c11e1f52b8cb"; }; - buildInputs = [ nose mock pyopenssl ]; + buildInputs = [ + nose + mock + pyopenssl + ]; - propagatedBuildInputs = [ urllib3 dnspython ]; + propagatedBuildInputs = [ + urllib3 + dnspython + ]; postPatch = '' sed -i '19s/dns/"dnspython"/' setup.py @@ -34,5 +42,4 @@ buildPythonPackage rec { homepage = "https://github.com/jplana/python-etcd"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/python-ethtool/default.nix b/pkgs/development/python-modules/python-ethtool/default.nix index d91550e02913..d028d1af2429 100644 --- a/pkgs/development/python-modules/python-ethtool/default.nix +++ b/pkgs/development/python-modules/python-ethtool/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pkg-config -, libnl -, nettools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pkg-config, + libnl, + nettools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-ev3dev2/default.nix b/pkgs/development/python-modules/python-ev3dev2/default.nix index 219678ef2421..dc185aced7d1 100644 --- a/pkgs/development/python-modules/python-ev3dev2/default.nix +++ b/pkgs/development/python-modules/python-ev3dev2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pillow +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pillow, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-family-hub-local/default.nix b/pkgs/development/python-modules/python-family-hub-local/default.nix index 01d9da8423dd..14a14e829ead 100644 --- a/pkgs/development/python-modules/python-family-hub-local/default.nix +++ b/pkgs/development/python-modules/python-family-hub-local/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, aiohttp -, async-timeout -, pillow -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + aiohttp, + async-timeout, + pillow, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pyfamilyhublocal" - ]; + pythonImportsCheck = [ "pyfamilyhublocal" ]; meta = with lib; { description = "Module to accesse information from Samsung FamilyHub fridges locally"; diff --git a/pkgs/development/python-modules/python-fedora/default.nix b/pkgs/development/python-modules/python-fedora/default.nix index 01c79c39ea1c..f424a3f01b97 100644 --- a/pkgs/development/python-modules/python-fedora/default.nix +++ b/pkgs/development/python-modules/python-fedora/default.nix @@ -1,18 +1,19 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, kitchen -, lockfile -, munch -, nose -, openidc-client -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, six -, urllib3 +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + kitchen, + lockfile, + munch, + nose, + openidc-client, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + six, + urllib3, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-VrnYQaObQDDjiOkMe3fazUefHOXi/5sYw5VNl9Vwmhk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 @@ -52,9 +51,7 @@ buildPythonPackage rec { "tests/functional/test_openidbaseclient.py" ]; - pythonImportsCheck = [ - "fedora" - ]; + pythonImportsCheck = [ "fedora" ]; meta = with lib; { description = "Module to interact with the infrastructure of the Fedora Project"; diff --git a/pkgs/development/python-modules/python-flirt/default.nix b/pkgs/development/python-modules/python-flirt/default.nix index 54d942fd0840..8034a621f8b2 100644 --- a/pkgs/development/python-modules/python-flirt/default.nix +++ b/pkgs/development/python-modules/python-flirt/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, rustPlatform -, libiconv +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + rustPlatform, + libiconv, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { maturinBuildHook ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; buildAndTestSubdir = "pyflirt"; diff --git a/pkgs/development/python-modules/python-fontconfig/default.nix b/pkgs/development/python-modules/python-fontconfig/default.nix index 7eab74cb280e..2f90ca56dac6 100644 --- a/pkgs/development/python-modules/python-fontconfig/default.nix +++ b/pkgs/development/python-modules/python-fontconfig/default.nix @@ -1,10 +1,18 @@ -{ lib, buildPythonPackage, fetchPypi, fontconfig, python, cython, freefont_ttf, makeFontsConf }: +{ + lib, + buildPythonPackage, + fetchPypi, + fontconfig, + python, + cython, + freefont_ttf, + makeFontsConf, +}: let - fontsConf = makeFontsConf { - fontDirectories = [ freefont_ttf ]; - }; -in buildPythonPackage rec { + fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; +in +buildPythonPackage rec { pname = "python-fontconfig"; version = "0.5.1"; diff --git a/pkgs/development/python-modules/python-frontmatter/default.nix b/pkgs/development/python-modules/python-frontmatter/default.nix index eab892f49283..7f630a0705a8 100644 --- a/pkgs/development/python-modules/python-frontmatter/default.nix +++ b/pkgs/development/python-modules/python-frontmatter/default.nix @@ -1,4 +1,12 @@ -{ lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pyyaml, + six, + pytest, + pyaml, +}: buildPythonPackage rec { pname = "python-frontmatter"; @@ -21,9 +29,7 @@ buildPythonPackage rec { # tries to import test.test, which conflicts with module # exported by python interpreter doCheck = false; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; pythonImportsCheck = [ "frontmatter" ]; diff --git a/pkgs/development/python-modules/python-fsutil/default.nix b/pkgs/development/python-modules/python-fsutil/default.nix index c1c433ddd2db..5bf32af28757 100644 --- a/pkgs/development/python-modules/python-fsutil/default.nix +++ b/pkgs/development/python-modules/python-fsutil/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-Cs78zpf3W5UZJkkUBEP6l6fi2J4OtJXGvqqQ8PWKx+8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/test.py" - ]; + pytestFlagsArray = [ "tests/test.py" ]; disabledTests = [ # Tests require network access @@ -43,9 +36,7 @@ buildPythonPackage rec { "test_read_file_from_url" ]; - pythonImportsCheck = [ - "fsutil" - ]; + pythonImportsCheck = [ "fsutil" ]; meta = with lib; { description = "Module with file-system utilities"; diff --git a/pkgs/development/python-modules/python-fullykiosk/default.nix b/pkgs/development/python-modules/python-fullykiosk/default.nix index d1931f82f310..8bb0eac6da13 100644 --- a/pkgs/development/python-modules/python-fullykiosk/default.nix +++ b/pkgs/development/python-modules/python-fullykiosk/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-88PsJ1qAlOpxDtZyQe8pFC2Y3ygg3boiPxmYad58Fm8="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "fullykiosk" - ]; + pythonImportsCheck = [ "fullykiosk" ]; meta = with lib; { description = "Wrapper for Fully Kiosk Browser REST interface"; diff --git a/pkgs/development/python-modules/python-fx/default.nix b/pkgs/development/python-modules/python-fx/default.nix index 8e7de3b6a336..cdaae586a52e 100644 --- a/pkgs/development/python-modules/python-fx/default.nix +++ b/pkgs/development/python-modules/python-fx/default.nix @@ -1,31 +1,32 @@ -{ lib -, antlr4-python3-runtime -, asciimatics -, buildPythonPackage -, click -, dacite -, decorator -, fetchFromGitHub -, future -, first -, jsonpath-ng -, loguru -, overrides -, pillow -, ply -, pyfiglet -, pyperclip -, pytestCheckHook -, pythonOlder -, antlr4 -, pythonRelaxDepsHook -, pyyaml -, setuptools -, six -, urwid -, parameterized -, wcwidth -, yamale +{ + lib, + antlr4-python3-runtime, + asciimatics, + buildPythonPackage, + click, + dacite, + decorator, + fetchFromGitHub, + future, + first, + jsonpath-ng, + loguru, + overrides, + pillow, + ply, + pyfiglet, + pyperclip, + pytestCheckHook, + pythonOlder, + antlr4, + pythonRelaxDepsHook, + pyyaml, + setuptools, + six, + urwid, + parameterized, + wcwidth, + yamale, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-gammu/default.nix b/pkgs/development/python-modules/python-gammu/default.nix index 4fb5e259329a..ed35a96f7752 100644 --- a/pkgs/development/python-modules/python-gammu/default.nix +++ b/pkgs/development/python-modules/python-gammu/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, #, pytestCheckHook -, pythonOlder -, pkg-config -, gammu + pythonOlder, + pkg-config, + gammu, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { hash = "sha256-lFQBrKWwdvUScwsBva08izZVeVDn1u+ldzixtL9YTpA="; }; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - gammu - ]; + buildInputs = [ gammu ]; # Check with the next release if tests could be run with pytest # nativeCheckInputs = [ pytestCheckHook ]; # Don't run tests for now doCheck = false; - pythonImportsCheck = [ - "gammu" - ]; + pythonImportsCheck = [ "gammu" ]; meta = with lib; { description = "Python bindings for Gammu"; diff --git a/pkgs/development/python-modules/python-gitlab/default.nix b/pkgs/development/python-modules/python-gitlab/default.nix index 3703843091d2..2209320f8712 100644 --- a/pkgs/development/python-modules/python-gitlab/default.nix +++ b/pkgs/development/python-modules/python-gitlab/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, argcomplete -, requests -, requests-toolbelt -, pyyaml + # dependencies + argcomplete, + requests, + requests-toolbelt, + pyyaml, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-HRF797QzroJV5ddOcsZgl49Q7oXrYiSMn7Uu9Dw+OBQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -35,20 +34,14 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - autocompletion = [ - argcomplete - ]; - yaml = [ - pyyaml - ]; + autocompletion = [ argcomplete ]; + yaml = [ pyyaml ]; }; # Tests rely on a gitlab instance on a local docker setup doCheck = false; - pythonImportsCheck = [ - "gitlab" - ]; + pythonImportsCheck = [ "gitlab" ]; meta = with lib; { description = "Interact with GitLab API"; diff --git a/pkgs/development/python-modules/python-gnupg/default.nix b/pkgs/development/python-modules/python-gnupg/default.nix index 95ebc2b954e8..32c9ccd33a9a 100644 --- a/pkgs/development/python-modules/python-gnupg/default.nix +++ b/pkgs/development/python-modules/python-gnupg/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, gnupg -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + gnupg, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { --replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${gnupg}/bin/gpg')" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # network access diff --git a/pkgs/development/python-modules/python-google-nest/default.nix b/pkgs/development/python-modules/python-google-nest/default.nix index 32dc8de3964a..39e4b707c5b9 100644 --- a/pkgs/development/python-modules/python-google-nest/default.nix +++ b/pkgs/development/python-modules/python-google-nest/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests-oauthlib +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests-oauthlib, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-qL4Qk2NW41Sb9raF0vnEb04w3uyaWPauDnNY+DvnNgQ="; }; - propagatedBuildInputs = [ - requests-oauthlib - ]; + propagatedBuildInputs = [ requests-oauthlib ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "nest" - ]; + pythonImportsCheck = [ "nest" ]; meta = with lib; { description = "Python API and command line tool for talking to Nest thermostats"; diff --git a/pkgs/development/python-modules/python-gvm/default.nix b/pkgs/development/python-modules/python-gvm/default.nix index efe048a33d1f..6d7923023689 100644 --- a/pkgs/development/python-modules/python-gvm/default.nix +++ b/pkgs/development/python-modules/python-gvm/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, lxml -, paramiko -, poetry-core -, pontos -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + lxml, + paramiko, + poetry-core, + pontos, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-GIEsP8+RJMIehsBbZWpIRXCdqxm042lPbYTHY7/fknM="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ defusedxml @@ -46,13 +45,9 @@ buildPythonPackage rec { # No running SSH available "test_connect_error" "test_feed_xml_error" - ] ++ lib.optionals stdenv.isDarwin [ - "test_feed_xml_error" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_feed_xml_error" ]; - pythonImportsCheck = [ - "gvm" - ]; + pythonImportsCheck = [ "gvm" ]; meta = with lib; { description = "Collection of APIs that help with remote controlling a Greenbone Security Manager"; diff --git a/pkgs/development/python-modules/python-heatclient/default.nix b/pkgs/development/python-modules/python-heatclient/default.nix index d29b07a94e50..d2cefc90b58d 100644 --- a/pkgs/development/python-modules/python-heatclient/default.nix +++ b/pkgs/development/python-modules/python-heatclient/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, cliff -, fetchPypi -, iso8601 -, keystoneauth1 -, osc-lib -, oslo-i18n -, oslo-serialization -, oslo-utils -, pbr -, prettytable -, python-swiftclient -, pythonOlder -, pyyaml -, requests -, requests-mock -, stestr -, testscenarios +{ + lib, + buildPythonPackage, + cliff, + fetchPypi, + iso8601, + keystoneauth1, + osc-lib, + oslo-i18n, + oslo-serialization, + oslo-utils, + pbr, + prettytable, + python-swiftclient, + pythonOlder, + pyyaml, + requests, + requests-mock, + stestr, + testscenarios, }: buildPythonPackage rec { @@ -59,9 +60,7 @@ buildPythonPackage rec { ") ''; - pythonImportsCheck = [ - "heatclient" - ]; + pythonImportsCheck = [ "heatclient" ]; meta = with lib; { description = "Library for Heat built on the Heat orchestration API"; diff --git a/pkgs/development/python-modules/python-hglib/default.nix b/pkgs/development/python-modules/python-hglib/default.nix index 5cce7429173f..fb7d6ba23159 100644 --- a/pkgs/development/python-modules/python-hglib/default.nix +++ b/pkgs/development/python-modules/python-hglib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mercurial -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + mercurial, + nose, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-sYvR7VPJDuV9VxTWata7crZOkw1K7KmDCJLAi7KNpgg="; }; - nativeCheckInputs = [ mercurial nose ]; + nativeCheckInputs = [ + mercurial + nose + ]; preCheck = '' export HGTMP=$(mktemp -d) @@ -28,6 +32,6 @@ buildPythonPackage rec { description = "Library with a fast, convenient interface to Mercurial. It uses Mercurial’s command server for communication with hg."; homepage = "https://www.mercurial-scm.org/wiki/PythonHglibs"; license = licenses.mit; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/python-hl7/default.nix b/pkgs/development/python-modules/python-hl7/default.nix index 1c2b05860869..1844f6dd3367 100644 --- a/pkgs/development/python-modules/python-hl7/default.nix +++ b/pkgs/development/python-modules/python-hl7/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-homewizard-energy/default.nix b/pkgs/development/python-modules/python-homewizard-energy/default.nix index 8447c2bccbe9..7a79c8648a5c 100644 --- a/pkgs/development/python-modules/python-homewizard-energy/default.nix +++ b/pkgs/development/python-modules/python-homewizard-energy/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aresponses -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy +{ + lib, + aiohttp, + aresponses, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace-fail 'version = "0.0.0"' 'version = "${version}"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "homewizard_energy" - ]; + pythonImportsCheck = [ "homewizard_energy" ]; meta = with lib; { description = "Library to communicate with HomeWizard Energy devices"; diff --git a/pkgs/development/python-modules/python-hosts/default.nix b/pkgs/development/python-modules/python-hosts/default.nix index c866a5fc72d2..b8c54f2e330f 100644 --- a/pkgs/development/python-modules/python-hosts/default.nix +++ b/pkgs/development/python-modules/python-hosts/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { --replace "import win_inet_pton" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pyyaml pytestCheckHook ]; - pythonImportsCheck = [ - "python_hosts" - ]; + pythonImportsCheck = [ "python_hosts" ]; disabledTests = [ # Tests require network access @@ -60,4 +57,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ psyanticy ]; }; } - diff --git a/pkgs/development/python-modules/python-hpilo/default.nix b/pkgs/development/python-modules/python-hpilo/default.nix index 6fdfc5d14031..6aeeab370c1b 100644 --- a/pkgs/development/python-modules/python-hpilo/default.nix +++ b/pkgs/development/python-modules/python-hpilo/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { @@ -23,7 +24,10 @@ buildPythonPackage rec { description = "Python module to access the HP iLO XML interface"; mainProgram = "hpilo_cli"; homepage = "https://seveas.github.io/python-hpilo/"; - license = with licenses; [ asl20 gpl3Plus ]; + license = with licenses; [ + asl20 + gpl3Plus + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/python-http-client/default.nix b/pkgs/development/python-modules/python-http-client/default.nix index f2ecd2145846..7d303d71ef01 100644 --- a/pkgs/development/python-modules/python-http-client/default.nix +++ b/pkgs/development/python-modules/python-http-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { "test_daterange" ]; - pythonImportsCheck = [ - "python_http_client" - ]; + pythonImportsCheck = [ "python_http_client" ]; meta = with lib; { description = "Python HTTP library to call APIs"; diff --git a/pkgs/development/python-modules/python-i18n/default.nix b/pkgs/development/python-modules/python-i18n/default.nix index 1ae07dfbec6d..319fe49f8d1f 100644 --- a/pkgs/development/python-modules/python-i18n/default.nix +++ b/pkgs/development/python-modules/python-i18n/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pyyaml }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pyyaml, +}: buildPythonPackage rec { pname = "python-i18n"; @@ -18,7 +24,10 @@ buildPythonPackage rec { --replace-fail assertRaisesRegexp assertRaisesRegex ''; - nativeCheckInputs = [ pytestCheckHook pyyaml ]; + nativeCheckInputs = [ + pytestCheckHook + pyyaml + ]; pytestFlagsArray = [ "i18n/tests/run_tests.py" ]; pythonImportsCheck = [ "i18n" ]; diff --git a/pkgs/development/python-modules/python-idzip/default.nix b/pkgs/development/python-modules/python-idzip/default.nix index c754bb144554..07ea6116f782 100644 --- a/pkgs/development/python-modules/python-idzip/default.nix +++ b/pkgs/development/python-modules/python-idzip/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, -, pythonOlder + pythonOlder, -, setuptools + setuptools, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -34,13 +35,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # need third-party files diff --git a/pkgs/development/python-modules/python-ipmi/default.nix b/pkgs/development/python-modules/python-ipmi/default.nix index 4cb05be7257b..2e644fa1dc82 100644 --- a/pkgs/development/python-modules/python-ipmi/default.nix +++ b/pkgs/development/python-modules/python-ipmi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, mock -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + mock, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { --replace-fail "version=version," "version='${version}'," ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - future - ]; + propagatedBuildInputs = [ future ]; nativeCheckInputs = [ mock pytestCheckHook ]; - pythonImportsCheck = [ - "pyipmi" - ]; + pythonImportsCheck = [ "pyipmi" ]; meta = with lib; { description = "Python IPMI Library"; diff --git a/pkgs/development/python-modules/python-ipware/default.nix b/pkgs/development/python-modules/python-ipware/default.nix index 5564eabdb4f6..4b5718630320 100644 --- a/pkgs/development/python-modules/python-ipware/default.nix +++ b/pkgs/development/python-modules/python-ipware/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, unittestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + unittestCheckHook, + setuptools, }: buildPythonPackage rec { pname = "python-ipware"; @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-j43uAcb1dyKe/SHQLLR+QJS6hKGB5qxjb9NiJaUPj8Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "python_ipware" - ]; + pythonImportsCheck = [ "python_ipware" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { description = "A python package for server applications to retrieve client's IP address"; diff --git a/pkgs/development/python-modules/python-ironicclient/default.nix b/pkgs/development/python-modules/python-ironicclient/default.nix index feb8849b21d3..703be62e3051 100644 --- a/pkgs/development/python-modules/python-ironicclient/default.nix +++ b/pkgs/development/python-modules/python-ironicclient/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, appdirs -, cliff -, dogpile-cache -, jsonschema -, keystoneauth1 -, openstacksdk -, osc-lib -, oslo-utils -, pyyaml -, requests -, stevedore -, stestr -, requests-mock -, oslotest +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + appdirs, + cliff, + dogpile-cache, + jsonschema, + keystoneauth1, + openstacksdk, + osc-lib, + oslo-utils, + pyyaml, + requests, + stevedore, + stestr, + requests-mock, + oslotest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-izone/default.nix b/pkgs/development/python-modules/python-izone/default.nix index 0173c277a526..2eba0d6b1bb4 100644 --- a/pkgs/development/python-modules/python-izone/default.nix +++ b/pkgs/development/python-modules/python-izone/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiohttp -, netifaces -, pytest-aio -, pytest-asyncio -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiohttp, + netifaces, + pytest-aio, + pytest-asyncio, + pytestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-0rj+tKn2pbFe+nczTMGLwIwmc4jCznGGF4/IMjlEvQg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp @@ -41,9 +40,7 @@ buildPythonPackage rec { doCheck = false; # most tests access network - pythonImportsCheck = [ - "pizone" - ]; + pythonImportsCheck = [ "pizone" ]; meta = with lib; { description = "Python interface to the iZone airconditioner controller"; diff --git a/pkgs/development/python-modules/python-jenkins/default.nix b/pkgs/development/python-modules/python-jenkins/default.nix index 2632372f0dd8..090f5acd8e4a 100644 --- a/pkgs/development/python-modules/python-jenkins/default.nix +++ b/pkgs/development/python-modules/python-jenkins/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, mock -, pbr -, pyyaml -, setuptools -, six -, multi-key-dict -, testscenarios -, requests -, requests-mock -, stestr -, multiprocess -, pythonRelaxDepsHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + mock, + pbr, + pyyaml, + setuptools, + six, + multi-key-dict, + testscenarios, + requests, + requests-mock, + stestr, + multiprocess, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -33,19 +34,27 @@ buildPythonPackage rec { --replace test_jenkins_open_no_timeout dont_test_jenkins_open_no_timeout ''; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ - "setuptools" - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; + pythonRelaxDeps = [ "setuptools" ]; buildInputs = [ mock ]; - propagatedBuildInputs = [ pbr pyyaml setuptools six multi-key-dict requests ]; + propagatedBuildInputs = [ + pbr + pyyaml + setuptools + six + multi-key-dict + requests + ]; __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ stestr testscenarios requests-mock multiprocess ]; + nativeCheckInputs = [ + stestr + testscenarios + requests-mock + multiprocess + ]; checkPhase = '' # Skip tests that fail due to setuptools>=66.0.0 rejecting PEP 440 # non-conforming versions. See @@ -59,5 +68,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ gador ]; }; - } diff --git a/pkgs/development/python-modules/python-jose/default.nix b/pkgs/development/python-modules/python-jose/default.nix index 82600b4d3e59..92f2bd6ce9b3 100644 --- a/pkgs/development/python-modules/python-jose/default.nix +++ b/pkgs/development/python-modules/python-jose/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, ecdsa -, rsa -, pyasn1 + # dependencies + ecdsa, + rsa, + pyasn1, -# optional-dependencies -, cryptography -, pycrypto -, pycryptodome + # optional-dependencies + cryptography, + pycrypto, + pycryptodome, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -35,12 +36,12 @@ buildPythonPackage rec { patches = [ (fetchpatch { name = "CVE-2024-33663.patch"; - url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-python-jose/CVE-2024-33663.patch?rev=36cd8815411620042f56a3b81599b341"; + url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-python-jose/CVE-2024-33663.patch?rev=36cd8815411620042f56a3b81599b341"; hash = "sha256-uxOCa7Lg82zY2nuHzw6CbcymCKUodITrFU3lLY1XMFU="; }) (fetchpatch { name = "CVE-2024-33664.patch"; - url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-python-jose/CVE-2024-33664.patch?rev=36cd8815411620042f56a3b81599b341"; + url = "https://build.opensuse.org/public/source/openSUSE:Factory/python-python-jose/CVE-2024-33664.patch?rev=36cd8815411620042f56a3b81599b341"; hash = "sha256-wx/U1T7t7TloP+dMXxGxEVB3bMC7e6epmN8RE8FKksM="; }) ]; @@ -50,9 +51,7 @@ buildPythonPackage rec { --replace '"pytest-runner",' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ecdsa @@ -61,20 +60,12 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - cryptography = [ - cryptography - ]; - pycrypto = [ - pycrypto - ]; - pycryptodome = [ - pycryptodome - ]; + cryptography = [ cryptography ]; + pycrypto = [ pycrypto ]; + pycryptodome = [ pycryptodome ]; }; - pythonImportsCheck = [ - "jose" - ]; + pythonImportsCheck = [ "jose" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/python-json-logger/default.nix b/pkgs/development/python-modules/python-json-logger/default.nix index 0a02ccb688ad..c56428e33c4a 100644 --- a/pkgs/development/python-modules/python-json-logger/default.nix +++ b/pkgs/development/python-modules/python-json-logger/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-jsonrpc-server/default.nix b/pkgs/development/python-modules/python-jsonrpc-server/default.nix index 4a659c1e26a5..db3374cea17f 100644 --- a/pkgs/development/python-modules/python-jsonrpc-server/default.nix +++ b/pkgs/development/python-modules/python-jsonrpc-server/default.nix @@ -1,6 +1,14 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, pytestCheckHook, mock, pytest-cov, coverage -, future, ujson}: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + mock, + pytest-cov, + coverage, + future, + ujson, +}: buildPythonPackage rec { pname = "python-jsonrpc-server"; @@ -19,10 +27,16 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ - pytestCheckHook mock pytest-cov coverage + pytestCheckHook + mock + pytest-cov + coverage ]; - propagatedBuildInputs = [ future ujson ]; + propagatedBuildInputs = [ + future + ujson + ]; meta = with lib; { homepage = "https://github.com/palantir/python-jsonrpc-server"; diff --git a/pkgs/development/python-modules/python-juicenet/default.nix b/pkgs/development/python-modules/python-juicenet/default.nix index ad27a913257e..1ceb9d031cc6 100644 --- a/pkgs/development/python-modules/python-juicenet/default.nix +++ b/pkgs/development/python-modules/python-juicenet/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-5RKnVwOfEHzFZCiC8OUpS8exKrENK+I3Ok45HlKEvtU="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # no tests implemented doCheck = false; - pythonImportsCheck = [ - "pyjuicenet" - ]; + pythonImportsCheck = [ "pyjuicenet" ]; meta = with lib; { description = "Read and control Juicenet/Juicepoint/Juicebox based EVSE devices"; diff --git a/pkgs/development/python-modules/python-kasa/default.nix b/pkgs/development/python-modules/python-kasa/default.nix index 807d5d5af9a7..1ccae8b44d0e 100644 --- a/pkgs/development/python-modules/python-kasa/default.nix +++ b/pkgs/development/python-modules/python-kasa/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiohttp -, anyio -, async-timeout -, asyncclick -, buildPythonPackage -, cryptography -, fetchFromGitHub -, kasa-crypt -, orjson -, poetry-core -, pydantic -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, voluptuous +{ + lib, + aiohttp, + anyio, + async-timeout, + asyncclick, + buildPythonPackage, + cryptography, + fetchFromGitHub, + kasa-crypt, + orjson, + poetry-core, + pydantic, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + voluptuous, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-iCqJY3qkA3ZVXTCfxvQoaZsaqGui8PwKGAmLXKZgLJs="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -58,18 +57,14 @@ buildPythonPackage rec { ]; }; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; disabledTestPaths = [ # Skip the examples tests "kasa/tests/test_readme_examples.py" ]; - pythonImportsCheck = [ - "kasa" - ]; + pythonImportsCheck = [ "kasa" ]; meta = with lib; { description = "Python API for TP-Link Kasa Smarthome products"; diff --git a/pkgs/development/python-modules/python-keystoneclient/default.nix b/pkgs/development/python-modules/python-keystoneclient/default.nix index 81d3d3d217a7..e8f19e2a01a2 100644 --- a/pkgs/development/python-modules/python-keystoneclient/default.nix +++ b/pkgs/development/python-modules/python-keystoneclient/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, keystoneauth1 -, openssl -, oslo-config -, oslo-serialization -, pbr -, pythonOlder -, requests-mock -, stestr -, testresources -, testscenarios +{ + lib, + buildPythonPackage, + fetchPypi, + keystoneauth1, + openssl, + oslo-config, + oslo-serialization, + pbr, + pythonOlder, + requests-mock, + stestr, + testresources, + testscenarios, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { stestr run ''; - pythonImportsCheck = [ - "keystoneclient" - ]; + pythonImportsCheck = [ "keystoneclient" ]; meta = with lib; { description = "Client Library for OpenStack Identity"; diff --git a/pkgs/development/python-modules/python-ldap-test/default.nix b/pkgs/development/python-modules/python-ldap-test/default.nix index e88a49f4cc35..5b2f69f4e5e9 100644 --- a/pkgs/development/python-modules/python-ldap-test/default.nix +++ b/pkgs/development/python-modules/python-ldap-test/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, py4j }: +{ + lib, + buildPythonPackage, + fetchPypi, + py4j, +}: buildPythonPackage rec { pname = "python-ldap-test"; @@ -26,4 +31,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ psyanticy ]; }; } - diff --git a/pkgs/development/python-modules/python-libnmap/default.nix b/pkgs/development/python-modules/python-libnmap/default.nix index a6acf665ee85..782b23be2538 100644 --- a/pkgs/development/python-modules/python-libnmap/default.nix +++ b/pkgs/development/python-modules/python-libnmap/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,17 +22,13 @@ buildPythonPackage rec { }; passthru.optional-dependencies = { - defusedxml = [ - defusedxml - ]; + defusedxml = [ defusedxml ]; }; # We don't want the nmap binary being present doCheck = false; - pythonImportsCheck = [ - "libnmap" - ]; + pythonImportsCheck = [ "libnmap" ]; meta = with lib; { description = "Library to run nmap scans, parse and diff scan results"; diff --git a/pkgs/development/python-modules/python-linux-procfs/default.nix b/pkgs/development/python-modules/python-linux-procfs/default.nix index e72b2e362098..0b074adf94a5 100644 --- a/pkgs/development/python-modules/python-linux-procfs/default.nix +++ b/pkgs/development/python-modules/python-linux-procfs/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchzip, six }: +{ + lib, + buildPythonPackage, + fetchzip, + six, +}: buildPythonPackage rec { pname = "python-linux-procfs"; diff --git a/pkgs/development/python-modules/python-logstash/default.nix b/pkgs/development/python-modules/python-logstash/default.nix index 0ce49d98de03..71fddc53da0a 100644 --- a/pkgs/development/python-modules/python-logstash/default.nix +++ b/pkgs/development/python-modules/python-logstash/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "python-logstash"; diff --git a/pkgs/development/python-modules/python-louvain/default.nix b/pkgs/development/python-modules/python-louvain/default.nix index b9f264755991..0747ee1dd790 100644 --- a/pkgs/development/python-modules/python-louvain/default.nix +++ b/pkgs/development/python-modules/python-louvain/default.nix @@ -1,11 +1,13 @@ -{ lib -, fetchPypi -, buildPythonPackage -, fetchpatch -, networkx -, pandas -, scipy -, numpy }: +{ + lib, + fetchPypi, + buildPythonPackage, + fetchpatch, + networkx, + pandas, + scipy, + numpy, +}: buildPythonPackage rec { pname = "python-louvain"; @@ -26,11 +28,17 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ networkx numpy ]; + propagatedBuildInputs = [ + networkx + numpy + ]; pythonImportsCheck = [ "community" ]; - nativeCheckInputs = [ pandas scipy ]; + nativeCheckInputs = [ + pandas + scipy + ]; meta = with lib; { homepage = "https://github.com/taynaud/python-louvain"; diff --git a/pkgs/development/python-modules/python-lsp-black/default.nix b/pkgs/development/python-modules/python-lsp-black/default.nix index 20828ac3e38d..efa83fe40d54 100644 --- a/pkgs/development/python-modules/python-lsp-black/default.nix +++ b/pkgs/development/python-modules/python-lsp-black/default.nix @@ -1,13 +1,14 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, black -, python-lsp-server -, setuptools -, tomli -, fetchpatch +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + black, + python-lsp-server, + setuptools, + tomli, + fetchpatch, }: buildPythonPackage rec { @@ -24,37 +25,29 @@ buildPythonPackage rec { }; patches = - /** includes a series of patches fixing tests not yet released as 2.0.1+ version - they are meant to keep up to date with black releases */ - lib.optional - (with lib; versionAtLeast black.version "24.2.0") - (fetchpatch { - url = "https://github.com/python-lsp/python-lsp-black/commit/d43b41431379f9c9bb05fab158c4d97e6d515f8f.patch"; - hash = "sha256-38bYU27+xtA8Kq3appXTkNnkG5/XgrUJ2nQ5+yuSU2U="; - }) - ++ lib.optional - (with lib; versionAtLeast black.version "24.3.0") - (fetchpatch { - url = "https://github.com/python-lsp/python-lsp-black/commit/9298585a9d14d25920c33b188d79e820dc98d4a9.patch"; - hash = "sha256-4u0VIS7eidVEiKRW2wc8lJVkJwhzJD/M+uuqmTtiZ7E="; - }); + /** + includes a series of patches fixing tests not yet released as 2.0.1+ version + they are meant to keep up to date with black releases + */ + lib.optional (with lib; versionAtLeast black.version "24.2.0") (fetchpatch { + url = "https://github.com/python-lsp/python-lsp-black/commit/d43b41431379f9c9bb05fab158c4d97e6d515f8f.patch"; + hash = "sha256-38bYU27+xtA8Kq3appXTkNnkG5/XgrUJ2nQ5+yuSU2U="; + }) + ++ lib.optional (with lib; versionAtLeast black.version "24.3.0") (fetchpatch { + url = "https://github.com/python-lsp/python-lsp-black/commit/9298585a9d14d25920c33b188d79e820dc98d4a9.patch"; + hash = "sha256-4u0VIS7eidVEiKRW2wc8lJVkJwhzJD/M+uuqmTtiZ7E="; + }); - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ black python-lsp-server - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - pythonImportsCheck = [ - "pylsp_black" - ]; + pythonImportsCheck = [ "pylsp_black" ]; meta = with lib; { homepage = "https://github.com/python-lsp/python-lsp-black"; diff --git a/pkgs/development/python-modules/python-lsp-jsonrpc/default.nix b/pkgs/development/python-modules/python-lsp-jsonrpc/default.nix index 040d901a7e73..948eba8e6e57 100644 --- a/pkgs/development/python-modules/python-lsp-jsonrpc/default.nix +++ b/pkgs/development/python-modules/python-lsp-jsonrpc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, ujson +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + ujson, }: buildPythonPackage rec { @@ -32,17 +33,11 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - ujson - ]; + propagatedBuildInputs = [ ujson ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pylsp_jsonrpc" - ]; + pythonImportsCheck = [ "pylsp_jsonrpc" ]; meta = with lib; { description = "Python server implementation of the JSON RPC 2.0 protocol"; diff --git a/pkgs/development/python-modules/python-lsp-ruff/default.nix b/pkgs/development/python-modules/python-lsp-ruff/default.nix index 3a208e608920..9b10cc6eb8e6 100644 --- a/pkgs/development/python-modules/python-lsp-ruff/default.nix +++ b/pkgs/development/python-modules/python-lsp-ruff/default.nix @@ -1,13 +1,14 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchPypi -, ruff -, cattrs -, lsprotocol -, python-lsp-server -, tomli -, pytestCheckHook +{ + lib, + pythonOlder, + buildPythonPackage, + fetchPypi, + ruff, + cattrs, + lsprotocol, + python-lsp-server, + tomli, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { cattrs lsprotocol python-lsp-server - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/python-lsp/python-lsp-ruff"; diff --git a/pkgs/development/python-modules/python-ly/default.nix b/pkgs/development/python-modules/python-ly/default.nix index b1aa0c68b209..f30ac614d8ff 100644 --- a/pkgs/development/python-modules/python-ly/default.nix +++ b/pkgs/development/python-modules/python-ly/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, lib }: +{ + buildPythonPackage, + fetchPypi, + lib, +}: buildPythonPackage rec { pname = "python-ly"; diff --git a/pkgs/development/python-modules/python-lzf/default.nix b/pkgs/development/python-modules/python-lzf/default.nix index d7548fd8446f..bcf7ea480a42 100644 --- a/pkgs/development/python-modules/python-lzf/default.nix +++ b/pkgs/development/python-modules/python-lzf/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { version = "0.2.4"; diff --git a/pkgs/development/python-modules/python-lzo/default.nix b/pkgs/development/python-modules/python-lzo/default.nix index f0652410828c..ec0d6ff58a8b 100644 --- a/pkgs/development/python-modules/python-lzo/default.nix +++ b/pkgs/development/python-modules/python-lzo/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lzo -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lzo, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -22,23 +23,16 @@ buildPythonPackage rec { hash = "sha256-iXAvOCzHPvNERMkE5y4QTHi4ZieW1wrYWYScs7zyb2c="; }; - nativeBuildInputs = [ setuptools wheel ]; - buildInputs = [ - lzo - ]; + buildInputs = [ lzo ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "lzo" - ]; + pythonImportsCheck = [ "lzo" ]; meta = with lib; { description = "Python bindings for the LZO data compression library"; diff --git a/pkgs/development/python-modules/python-magic/default.nix b/pkgs/development/python-modules/python-magic/default.nix index efb32d8444ab..14f35b2d795f 100644 --- a/pkgs/development/python-modules/python-magic/default.nix +++ b/pkgs/development/python-modules/python-magic/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, substituteAll -, file -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + substituteAll, + file, + pytestCheckHook, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { export LC_ALL=en_US.UTF-8 ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A python interface to the libmagic file type identification library"; diff --git a/pkgs/development/python-modules/python-manilaclient/default.nix b/pkgs/development/python-modules/python-manilaclient/default.nix index 61fbc746f7cc..1f11d62af855 100644 --- a/pkgs/development/python-modules/python-manilaclient/default.nix +++ b/pkgs/development/python-modules/python-manilaclient/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchPypi -, installShellFiles -, pbr -, openstackdocstheme -, oslo-config -, oslo-log -, oslo-serialization -, oslo-utils -, prettytable -, requests -, simplejson -, sphinx -, sphinxcontrib-programoutput -, babel -, osc-lib -, python-keystoneclient -, debtcollector -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + installShellFiles, + pbr, + openstackdocstheme, + oslo-config, + oslo-log, + oslo-serialization, + oslo-utils, + prettytable, + requests, + simplejson, + sphinx, + sphinxcontrib-programoutput, + babel, + osc-lib, + python-keystoneclient, + debtcollector, + callPackage, }: buildPythonPackage rec { @@ -65,9 +66,7 @@ buildPythonPackage rec { tests = callPackage ./tests.nix { }; }; - pythonImportsCheck = [ - "manilaclient" - ]; + pythonImportsCheck = [ "manilaclient" ]; meta = with lib; { description = "Client library for OpenStack Manila API"; diff --git a/pkgs/development/python-modules/python-manilaclient/tests.nix b/pkgs/development/python-modules/python-manilaclient/tests.nix index d1ceb5ed7431..f743e5b2fb13 100644 --- a/pkgs/development/python-modules/python-manilaclient/tests.nix +++ b/pkgs/development/python-modules/python-manilaclient/tests.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, python-manilaclient -, stestr -, ddt -, tempest -, mock -, python-openstackclient +{ + buildPythonPackage, + python-manilaclient, + stestr, + ddt, + tempest, + mock, + python-openstackclient, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/python-mapnik/default.nix b/pkgs/development/python-modules/python-mapnik/default.nix index 044199f6c2a6..a68a618ccd46 100644 --- a/pkgs/development/python-modules/python-mapnik/default.nix +++ b/pkgs/development/python-modules/python-mapnik/default.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, substituteAll -, isPyPy -, python -, pillow -, pycairo -, pkg-config -, boost -, cairo -, harfbuzz -, icu -, libjpeg -, libpng -, libtiff -, libwebp -, mapnik -, proj -, zlib -, libxml2 -, sqlite -, nose -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + substituteAll, + isPyPy, + python, + pillow, + pycairo, + pkg-config, + boost, + cairo, + harfbuzz, + icu, + libjpeg, + libpng, + libtiff, + libwebp, + mapnik, + proj, + zlib, + libxml2, + sqlite, + nose, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -72,12 +73,13 @@ buildPythonPackage rec { sqlite ]; - propagatedBuildInputs = [ pillow pycairo ]; - - configureFlags = [ - "XMLPARSER=libxml2" + propagatedBuildInputs = [ + pillow + pycairo ]; + configureFlags = [ "XMLPARSER=libxml2" ]; + disabled = isPyPy; preBuild = '' @@ -93,13 +95,15 @@ buildPythonPackage rec { pytestCheckHook ]; - preCheck = '' - # import from $out - rm -r mapnik - '' + lib.optionalString stdenv.isDarwin '' - # Replace the hardcoded /tmp references with $TMPDIR - sed -i "s,/tmp,$TMPDIR,g" test/python_tests/*.py - ''; + preCheck = + '' + # import from $out + rm -r mapnik + '' + + lib.optionalString stdenv.isDarwin '' + # Replace the hardcoded /tmp references with $TMPDIR + sed -i "s,/tmp,$TMPDIR,g" test/python_tests/*.py + ''; # https://github.com/mapnik/python-mapnik/issues/255 disabledTests = [ @@ -111,9 +115,7 @@ buildPythonPackage rec { "test_pdf_printing" "test_visual_zoom_all_rendering2" "test_wgs84_inverse_forward" - ] ++ lib.optionals stdenv.isDarwin [ - "test_passing_pycairo_context_svg" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_passing_pycairo_context_svg" ]; pythonImportsCheck = [ "mapnik" ]; diff --git a/pkgs/development/python-modules/python-markdown-math/default.nix b/pkgs/development/python-modules/python-markdown-math/default.nix index 9ea32e860646..3bf104029b40 100644 --- a/pkgs/development/python-modules/python-markdown-math/default.nix +++ b/pkgs/development/python-modules/python-markdown-math/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, markdown -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + markdown, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-matter-server/default.nix b/pkgs/development/python-modules/python-matter-server/default.nix index 98c0efd01d0a..8c86581d6d9a 100644 --- a/pkgs/development/python-modules/python-matter-server/default.nix +++ b/pkgs/development/python-modules/python-matter-server/default.nix @@ -1,33 +1,34 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, stdenvNoCC -, substituteAll +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + stdenvNoCC, + substituteAll, -# build -, setuptools -, pythonRelaxDepsHook + # build + setuptools, + pythonRelaxDepsHook, -# propagates -, aiohttp -, aiorun -, async-timeout -, coloredlogs -, dacite -, orjson -, home-assistant-chip-clusters + # propagates + aiohttp, + aiorun, + async-timeout, + coloredlogs, + dacite, + orjson, + home-assistant-chip-clusters, -# optionals -, cryptography -, home-assistant-chip-core -, zeroconf + # optionals + cryptography, + home-assistant-chip-core, + zeroconf, -# tests -, python -, pytest -, pytest-aiohttp -, pytestCheckHook + # tests + python, + pytest, + pytest-aiohttp, + pytestCheckHook, }: let @@ -85,9 +86,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "home-assistant-chip-clusters" - ]; + pythonRelaxDeps = [ "home-assistant-chip-clusters" ]; propagatedBuildInputs = [ aiohttp @@ -110,15 +109,15 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-aiohttp pytestCheckHook - ] - ++ lib.flatten (lib.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - preCheck = let - pythonEnv = python.withPackages (_: propagatedBuildInputs ++ nativeCheckInputs ++ [ pytest ]); - in - '' - export PYTHONPATH=${pythonEnv}/${python.sitePackages} - ''; + preCheck = + let + pythonEnv = python.withPackages (_: propagatedBuildInputs ++ nativeCheckInputs ++ [ pytest ]); + in + '' + export PYTHONPATH=${pythonEnv}/${python.sitePackages} + ''; pytestFlagsArray = [ # Upstream theymselves limit the test scope diff --git a/pkgs/development/python-modules/python-mbedtls/default.nix b/pkgs/development/python-modules/python-mbedtls/default.nix index 967bade85b3b..8459559938c7 100644 --- a/pkgs/development/python-modules/python-mbedtls/default.nix +++ b/pkgs/development/python-modules/python-mbedtls/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, certifi -, cython -, mbedtls_2 -, pytestCheckHook -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + certifi, + cython, + mbedtls_2, + pytestCheckHook, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { setuptools ]; - buildInputs = [ - mbedtls_2 - ]; + buildInputs = [ mbedtls_2 ]; propagatedBuildInputs = [ certifi typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "mbedtls" ]; diff --git a/pkgs/development/python-modules/python-memcached/default.nix b/pkgs/development/python-modules/python-memcached/default.nix index 4ca7cbbadd25..048e53e7eb4c 100644 --- a/pkgs/development/python-modules/python-memcached/default.nix +++ b/pkgs/development/python-modules/python-memcached/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, memcached -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + memcached, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-Qko4Qr9WofeklU0uRRrSPrT8YaBYMCy0GP+TF7YZHLI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ memcached diff --git a/pkgs/development/python-modules/python-miio/default.nix b/pkgs/development/python-modules/python-miio/default.nix index 1d900d3d7fd8..b465f6a4d60e 100644 --- a/pkgs/development/python-modules/python-miio/default.nix +++ b/pkgs/development/python-modules/python-miio/default.nix @@ -1,30 +1,30 @@ -{ lib -, android-backup -, appdirs -, attrs -, buildPythonPackage -, click -, construct -, croniter -, cryptography -, defusedxml -, fetchPypi -, fetchpatch -, importlib-metadata -, micloud -, netifaces -, poetry-core -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, pytz -, pyyaml -, tqdm -, zeroconf +{ + lib, + android-backup, + appdirs, + attrs, + buildPythonPackage, + click, + construct, + croniter, + cryptography, + defusedxml, + fetchPypi, + fetchpatch, + importlib-metadata, + micloud, + netifaces, + poetry-core, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + pytz, + pyyaml, + tqdm, + zeroconf, }: - buildPythonPackage rec { pname = "python-miio"; version = "0.5.12"; @@ -37,9 +37,7 @@ buildPythonPackage rec { hash = "sha256-BJw1Gg3FO2R6WWKjkrpxDN4fTMTug5AIj0SNq1gEbBY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; patches = [ (fetchpatch { @@ -64,9 +62,7 @@ buildPythonPackage rec { pyyaml tqdm zeroconf - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ pytest-asyncio @@ -74,9 +70,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "miio" - ]; + pythonImportsCheck = [ "miio" ]; meta = with lib; { description = "Python library for interfacing with Xiaomi smart appliances"; diff --git a/pkgs/development/python-modules/python-mimeparse/default.nix b/pkgs/development/python-modules/python-mimeparse/default.nix index ddf89c914ad0..eb9a69e0fea9 100644 --- a/pkgs/development/python-modules/python-mimeparse/default.nix +++ b/pkgs/development/python-modules/python-mimeparse/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges"; diff --git a/pkgs/development/python-modules/python-mnist/default.nix b/pkgs/development/python-modules/python-mnist/default.nix index 5937fceb1a9c..ec7d447f36c2 100644 --- a/pkgs/development/python-modules/python-mnist/default.nix +++ b/pkgs/development/python-modules/python-mnist/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "python-mnist"; diff --git a/pkgs/development/python-modules/python-mpv-jsonipc/default.nix b/pkgs/development/python-modules/python-mpv-jsonipc/default.nix index c0e72be59825..13118b316958 100644 --- a/pkgs/development/python-modules/python-mpv-jsonipc/default.nix +++ b/pkgs/development/python-modules/python-mpv-jsonipc/default.nix @@ -1,5 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests -, tqdm, websocket-client, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + tqdm, + websocket-client, + pythonOlder, +}: buildPythonPackage rec { pname = "python-mpv-jsonipc"; @@ -17,7 +24,11 @@ buildPythonPackage rec { # 'mpv-jsonipc' does not have any tests doCheck = false; - propagatedBuildInputs = [ requests tqdm websocket-client ]; + propagatedBuildInputs = [ + requests + tqdm + websocket-client + ]; pythonImportsCheck = [ "python_mpv_jsonipc" ]; diff --git a/pkgs/development/python-modules/python-multipart/default.nix b/pkgs/development/python-modules/python-multipart/default.nix index f65beeed10d5..84b187a3ce68 100644 --- a/pkgs/development/python-modules/python-multipart/default.nix +++ b/pkgs/development/python-modules/python-multipart/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, pytestCheckHook -, mock -, pyyaml -, six +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + pytestCheckHook, + mock, + pyyaml, + six, -# for passthru.tests -, asgi-csrf -, connexion -, fastapi -, gradio -, starlette + # for passthru.tests + asgi-csrf, + connexion, + fastapi, + gradio, + starlette, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { hash = "sha256-A/VGiMZj8beXcQXwIQQ7B5MVHkyxwanUoR/BPWIsQCY="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ - "multipart" - ]; + pythonImportsCheck = [ "multipart" ]; nativeCheckInputs = [ pytestCheckHook @@ -51,7 +46,7 @@ buildPythonPackage rec { fastapi gradio starlette - ; + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/python-musicpd/default.nix b/pkgs/development/python-modules/python-musicpd/default.nix index c105dcea14da..45846d299517 100644 --- a/pkgs/development/python-modules/python-musicpd/default.nix +++ b/pkgs/development/python-modules/python-musicpd/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-mystrom/default.nix b/pkgs/development/python-modules/python-mystrom/default.nix index 5b2f76d2571e..ac95067f25e7 100644 --- a/pkgs/development/python-modules/python-mystrom/default.nix +++ b/pkgs/development/python-modules/python-mystrom/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, click -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + click, + requests, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-ndn/default.nix b/pkgs/development/python-modules/python-ndn/default.nix index 8051c79173e8..897bd8c8de15 100644 --- a/pkgs/development/python-modules/python-ndn/default.nix +++ b/pkgs/development/python-modules/python-ndn/default.nix @@ -1,17 +1,18 @@ -{ lib -, aenum -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, lark -, poetry-core -, poetry-dynamic-versioning -, pycryptodomex -, pygtrie -, pytestCheckHook -, pythonRelaxDepsHook -, pythonOlder -, setuptools +{ + lib, + aenum, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lark, + poetry-core, + poetry-dynamic-versioning, + pycryptodomex, + pygtrie, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -44,13 +45,9 @@ buildPythonPackage rec { aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonRelaxDeps = [ - "lark" - ]; + pythonRelaxDeps = [ "lark" ]; pythonImportsCheck = [ "ndn" ]; diff --git a/pkgs/development/python-modules/python-nest/default.nix b/pkgs/development/python-modules/python-nest/default.nix index 1cbdd2837a72..bcac7a5cad8e 100644 --- a/pkgs/development/python-modules/python-nest/default.nix +++ b/pkgs/development/python-modules/python-nest/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, requests -, six -, sseclient-py -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + requests, + six, + sseclient-py, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "nest" - ]; + pythonImportsCheck = [ "nest" ]; meta = with lib; { description = "Python API and command line tool for talking to the Nest™ Thermostat"; diff --git a/pkgs/development/python-modules/python-nmap/default.nix b/pkgs/development/python-modules/python-nmap/default.nix index d0f3129a321c..b6651d641dcb 100644 --- a/pkgs/development/python-modules/python-nmap/default.nix +++ b/pkgs/development/python-modules/python-nmap/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nmap +{ + lib, + buildPythonPackage, + fetchPypi, + nmap, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-91r2uR3Y47DDH4adsyFj9iraaGlF5bfCX4S8D3+tO2Q="; }; - propagatedBuildInputs = [ - nmap - ]; + propagatedBuildInputs = [ nmap ]; postPatch = '' substituteInPlace setup.cfg \ @@ -26,9 +25,7 @@ buildPythonPackage rec { # Tests requires sudo and performs scans doCheck = false; - pythonImportsCheck = [ - "nmap" - ]; + pythonImportsCheck = [ "nmap" ]; meta = with lib; { description = "Python library which helps in using nmap"; diff --git a/pkgs/development/python-modules/python-nomad/default.nix b/pkgs/development/python-modules/python-nomad/default.nix index 3a7750e9deac..5969aeb56b78 100644 --- a/pkgs/development/python-modules/python-nomad/default.nix +++ b/pkgs/development/python-modules/python-nomad/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-5IyHNw1ArE8fU9DoSQMGkDI9d/OiR1YI/7nTPeFIK+A="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests require nomad agent doCheck = false; - pythonImportsCheck = [ - "nomad" - ]; + pythonImportsCheck = [ "nomad" ]; meta = with lib; { description = "Python client library for Hashicorp Nomad"; diff --git a/pkgs/development/python-modules/python-novaclient/default.nix b/pkgs/development/python-modules/python-novaclient/default.nix index d3451236d091..e0257ae1cfda 100644 --- a/pkgs/development/python-modules/python-novaclient/default.nix +++ b/pkgs/development/python-modules/python-novaclient/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ddt -, iso8601 -, keystoneauth1 -, openssl -, oslo-i18n -, oslo-serialization -, pbr -, prettytable -, pythonOlder -, requests-mock -, stestr -, testscenarios +{ + lib, + buildPythonPackage, + fetchPypi, + ddt, + iso8601, + keystoneauth1, + openssl, + oslo-i18n, + oslo-serialization, + pbr, + prettytable, + pythonOlder, + requests-mock, + stestr, + testscenarios, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-nvd3/default.nix b/pkgs/development/python-modules/python-nvd3/default.nix index 3674cb9bf568..a293ee90d157 100644 --- a/pkgs/development/python-modules/python-nvd3/default.nix +++ b/pkgs/development/python-modules/python-nvd3/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python-slugify, jinja2, setuptools, coverage }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python-slugify, + jinja2, + setuptools, + coverage, +}: buildPythonPackage rec { pname = "python-nvd3"; @@ -12,7 +20,11 @@ buildPythonPackage rec { sha256 = "1vjnicszcc9j0rgb58104fk9sry5xad1xli64jana9bkx42c6x1v"; }; - propagatedBuildInputs = [ python-slugify jinja2 setuptools ]; + propagatedBuildInputs = [ + python-slugify + jinja2 + setuptools + ]; nativeCheckInputs = [ coverage ]; checkPhase = '' diff --git a/pkgs/development/python-modules/python-oauth2/default.nix b/pkgs/development/python-modules/python-oauth2/default.nix index cd1baccf286c..14bf4a05a425 100644 --- a/pkgs/development/python-modules/python-oauth2/default.nix +++ b/pkgs/development/python-modules/python-oauth2/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -17,7 +18,7 @@ buildPythonPackage rec { meta = with lib; { description = "Framework that aims at making it easy to provide authentication via OAuth 2.0 within an application stack"; - homepage = "https://github.com/wndhydrnt/python-oauth2"; + homepage = "https://github.com/wndhydrnt/python-oauth2"; license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/python-olm/default.nix b/pkgs/development/python-modules/python-olm/default.nix index 8d0459e6eb63..7af0f8fd7c63 100644 --- a/pkgs/development/python-modules/python-olm/default.nix +++ b/pkgs/development/python-modules/python-olm/default.nix @@ -1,9 +1,13 @@ -{ lib, buildPythonPackage, isPy3k, olm -, cffi -, future -, aspectlib -, pytest-benchmark -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPy3k, + olm, + cffi, + future, + aspectlib, + pytest-benchmark, + pytestCheckHook, }: buildPythonPackage { @@ -25,9 +29,7 @@ buildPythonPackage { future ]; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; pythonImportsCheck = [ "olm" ]; diff --git a/pkgs/development/python-modules/python-on-whales/default.nix b/pkgs/development/python-modules/python-on-whales/default.nix index 3cd8f85e6a40..590ec69df624 100644 --- a/pkgs/development/python-modules/python-on-whales/default.nix +++ b/pkgs/development/python-modules/python-on-whales/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, pydantic -, requests -, tqdm -, typer +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + pydantic, + requests, + tqdm, + typer, }: buildPythonPackage rec { @@ -32,7 +33,7 @@ buildPythonPackage rec { typer ]; - doCheck = false; # majority of tests require Docker and/or network access + doCheck = false; # majority of tests require Docker and/or network access pythonImportsCheck = [ "python_on_whales" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/python-opendata-transport/default.nix b/pkgs/development/python-modules/python-opendata-transport/default.nix index 473eb8089707..0473b5dcfe19 100644 --- a/pkgs/development/python-modules/python-opendata-transport/default.nix +++ b/pkgs/development/python-modules/python-opendata-transport/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, urllib3 +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-2lEKPu5vjyqNUqz1NGmZ5b6YP3oWnCgoubDdiQCbdps="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -32,9 +31,7 @@ buildPythonPackage rec { # No tests are present doCheck = false; - pythonImportsCheck = [ - "opendata_transport" - ]; + pythonImportsCheck = [ "opendata_transport" ]; meta = with lib; { description = "Python client for interacting with transport.opendata.ch"; diff --git a/pkgs/development/python-modules/python-openems/default.nix b/pkgs/development/python-modules/python-openems/default.nix index c4b07b18cafa..a13f0d8bff84 100644 --- a/pkgs/development/python-modules/python-openems/default.nix +++ b/pkgs/development/python-modules/python-openems/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython_0 -, openems -, csxcad -, boost -, python-csxcad -, numpy -, h5py +{ + lib, + buildPythonPackage, + cython_0, + openems, + csxcad, + boost, + python-csxcad, + numpy, + h5py, }: buildPythonPackage rec { @@ -31,7 +32,11 @@ buildPythonPackage rec { h5py ]; - setupPyBuildFlags = [ "-I${openems}/include" "-L${openems}/lib" "-R${openems}/lib" ]; + setupPyBuildFlags = [ + "-I${openems}/include" + "-L${openems}/lib" + "-R${openems}/lib" + ]; pythonImportsCheck = [ "openEMS" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/python-opensky/default.nix b/pkgs/development/python-modules/python-opensky/default.nix index e6b7a41f6e68..7f5dc62febb7 100644 --- a/pkgs/development/python-modules/python-opensky/default.nix +++ b/pkgs/development/python-modules/python-opensky/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pydantic -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pydantic, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, + yarl, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace ".joinpath(uri)" "/ uri" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -51,9 +50,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "python_opensky" - ]; + pythonImportsCheck = [ "python_opensky" ]; meta = with lib; { description = "Asynchronous Python client for the OpenSky API"; diff --git a/pkgs/development/python-modules/python-openstackclient/default.nix b/pkgs/development/python-modules/python-openstackclient/default.nix index 9663fce022f1..fc48197864ab 100644 --- a/pkgs/development/python-modules/python-openstackclient/default.nix +++ b/pkgs/development/python-modules/python-openstackclient/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ddt -, installShellFiles -, openstackdocstheme -, osc-lib -, pbr -, python-cinderclient -, python-keystoneclient -, python-novaclient -, requests-mock -, sphinx -, sphinxcontrib-apidoc -, stestr +{ + lib, + buildPythonPackage, + fetchPypi, + ddt, + installShellFiles, + openstackdocstheme, + osc-lib, + pbr, + python-cinderclient, + python-keystoneclient, + python-novaclient, + requests-mock, + sphinx, + sphinxcontrib-apidoc, + stestr, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-openzwave/default.nix b/pkgs/development/python-modules/python-openzwave/default.nix index 4611039e34d9..179f3fd2b9bd 100644 --- a/pkgs/development/python-modules/python-openzwave/default.nix +++ b/pkgs/development/python-modules/python-openzwave/default.nix @@ -1,7 +1,18 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k -, pkg-config -, systemd, libyaml, openzwave, cython, pyserial -, six, pydispatcher, urwid }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + pkg-config, + systemd, + libyaml, + openzwave, + cython, + pyserial, + six, + pydispatcher, + urwid, +}: buildPythonPackage rec { pname = "python-openzwave"; @@ -18,8 +29,18 @@ buildPythonPackage rec { }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ systemd libyaml openzwave cython ]; - propagatedBuildInputs = [ six urwid pydispatcher pyserial ]; + buildInputs = [ + systemd + libyaml + openzwave + cython + ]; + propagatedBuildInputs = [ + six + urwid + pydispatcher + pyserial + ]; # primary location for the .xml files is in /etc/openzwave so we override the # /usr/local/etc lookup instead as that allows us to dump new .xml files into diff --git a/pkgs/development/python-modules/python-osc/default.nix b/pkgs/development/python-modules/python-osc/default.nix index b82549955bda..ee782b7362a7 100644 --- a/pkgs/development/python-modules/python-osc/default.nix +++ b/pkgs/development/python-modules/python-osc/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-pc4bpWyNgt9Ryz8pRrXdM6cFInkazEuFZOYtKyCtnKo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "pythonosc" - ]; + pythonImportsCheck = [ "pythonosc" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Open Sound Control server and client in pure python"; diff --git a/pkgs/development/python-modules/python-otbr-api/default.nix b/pkgs/development/python-modules/python-otbr-api/default.nix index 675f72d5e035..6df0b0c8f36f 100644 --- a/pkgs/development/python-modules/python-otbr-api/default.nix +++ b/pkgs/development/python-modules/python-otbr-api/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, bitstruct -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, voluptuous +{ + lib, + aiohttp, + bitstruct, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + voluptuous, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-RMj4NdEbMIxh2PDzbhUWgmcdzRXY8RxcQNN/bbGOW5Q="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "python_otbr_api" - ]; + pythonImportsCheck = [ "python_otbr_api" ]; meta = with lib; { description = "Library for the Open Thread Border Router"; diff --git a/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix b/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix index e9ad3d9893ef..5aaca9b14f11 100644 --- a/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix +++ b/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyhamcrest -, pytestCheckHook -, requests -, requests-mock -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyhamcrest, + pytestCheckHook, + requests, + requests-mock, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-packer/default.nix b/pkgs/development/python-modules/python-packer/default.nix index d4380da9b4e9..ecba77e1b84a 100644 --- a/pkgs/development/python-modules/python-packer/default.nix +++ b/pkgs/development/python-modules/python-packer/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, fetchpatch, sh }: +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + sh, +}: buildPythonPackage rec { pname = "python-packer"; diff --git a/pkgs/development/python-modules/python-pae/default.nix b/pkgs/development/python-modules/python-pae/default.nix index 73456cbd8f55..d5595c14f03d 100644 --- a/pkgs/development/python-modules/python-pae/default.nix +++ b/pkgs/development/python-modules/python-pae/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-D0X2T0ze79KR6Gno4UWpA/XvlkK6Y/jXUtLbzlOKr3E="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "python_pae" ]; diff --git a/pkgs/development/python-modules/python-pam/default.nix b/pkgs/development/python-modules/python-pam/default.nix index 22dcf9e467b8..3a2d011ab0c5 100644 --- a/pkgs/development/python-modules/python-pam/default.nix +++ b/pkgs/development/python-modules/python-pam/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pam -, six -, toml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pam, + six, + toml, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { --replace 'find_library("pam_misc")' '"${pam}/lib/libpam_misc.so"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - pam - ]; + buildInputs = [ pam ]; propagatedBuildInputs = [ six @@ -44,6 +41,9 @@ buildPythonPackage rec { description = "Python pam module"; homepage = "https://github.com/FirefighterBlu3/python-pam"; license = licenses.mit; - maintainers = with maintainers; [ abbradar mkg20001 ]; + maintainers = with maintainers; [ + abbradar + mkg20001 + ]; }; } diff --git a/pkgs/development/python-modules/python-periphery/default.nix b/pkgs/development/python-modules/python-periphery/default.nix index 6437bbffe01c..ed97aef27a39 100644 --- a/pkgs/development/python-modules/python-periphery/default.nix +++ b/pkgs/development/python-modules/python-periphery/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "python-periphery"; diff --git a/pkgs/development/python-modules/python-picnic-api/default.nix b/pkgs/development/python-modules/python-picnic-api/default.nix index b467a1a36f84..5267f99587c0 100644 --- a/pkgs/development/python-modules/python-picnic-api/default.nix +++ b/pkgs/development/python-modules/python-picnic-api/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -14,17 +15,13 @@ buildPythonPackage rec { sha256 = "1axqw4bs3wa9mdac35h7r25v3i5g7v55cvyy48c4sg31dxnr4wcp"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project doesn't ship tests # https://github.com/MikeBrink/python-picnic-api/issues/13 doCheck = false; - pythonImportsCheck = [ - "python_picnic_api" - ]; + pythonImportsCheck = [ "python_picnic_api" ]; meta = with lib; { description = "Python wrapper for the Picnic API"; diff --git a/pkgs/development/python-modules/python-pidfile/default.nix b/pkgs/development/python-modules/python-pidfile/default.nix index b9629d7303ce..44a44306ee8e 100644 --- a/pkgs/development/python-modules/python-pidfile/default.nix +++ b/pkgs/development/python-modules/python-pidfile/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, psutil +{ + lib, + buildPythonPackage, + fetchPypi, + psutil, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-pgQBL2iagsHMRFEKI85ZwyaIL7kcIftAy6s+lX958M0="; }; - propagatedBuildInputs = [ - psutil - ]; + propagatedBuildInputs = [ psutil ]; pythonImportsCheck = [ "pidfile" ]; diff --git a/pkgs/development/python-modules/python-pipedrive/default.nix b/pkgs/development/python-modules/python-pipedrive/default.nix index a3c37ab5a5da..9f541ba8005c 100644 --- a/pkgs/development/python-modules/python-pipedrive/default.nix +++ b/pkgs/development/python-modules/python-pipedrive/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, httplib2 +{ + lib, + buildPythonPackage, + fetchPypi, + httplib2, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-pkcs11/default.nix b/pkgs/development/python-modules/python-pkcs11/default.nix index 260b26730728..b4891105ce22 100644 --- a/pkgs/development/python-modules/python-pkcs11/default.nix +++ b/pkgs/development/python-modules/python-pkcs11/default.nix @@ -1,10 +1,11 @@ -{ lib -, asn1crypto -, buildPythonPackage -, cached-property -, cython -, fetchFromGitHub -, setuptools-scm +{ + lib, + asn1crypto, + buildPythonPackage, + cached-property, + cython, + fetchFromGitHub, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-pptx/default.nix b/pkgs/development/python-modules/python-pptx/default.nix index b18a5606f66b..92ff6ce7857e 100644 --- a/pkgs/development/python-modules/python-pptx/default.nix +++ b/pkgs/development/python-modules/python-pptx/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, xlsxwriter -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + xlsxwriter, + pillow, }: buildPythonPackage rec { pname = "python-pptx"; @@ -34,6 +35,6 @@ buildPythonPackage rec { homepage = "https://github.com/scanny/python-pptx"; description = "Create Open XML PowerPoint documents in Python"; license = licenses.mit; - maintainers = with maintainers; [happysalada]; + maintainers = with maintainers; [ happysalada ]; }; } diff --git a/pkgs/development/python-modules/python-prctl/default.nix b/pkgs/development/python-modules/python-prctl/default.nix index 6ebb017e7fd7..ffc946a56f54 100644 --- a/pkgs/development/python-modules/python-prctl/default.nix +++ b/pkgs/development/python-modules/python-prctl/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, libcap -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + libcap, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-ptrace/default.nix b/pkgs/development/python-modules/python-ptrace/default.nix index 496987c94e4a..545610fb695f 100644 --- a/pkgs/development/python-modules/python-ptrace/default.nix +++ b/pkgs/development/python-modules/python-ptrace/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-Vrv+9E6vOne+SBOMyldnzfRx6CeP4Umfm3LxUZB/Jc8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # requires distorm, which is optionally doCheck = false; diff --git a/pkgs/development/python-modules/python-rabbitair/default.nix b/pkgs/development/python-modules/python-rabbitair/default.nix index 28c0ab9f4e56..fee2f88d5038 100644 --- a/pkgs/development/python-modules/python-rabbitair/default.nix +++ b/pkgs/development/python-modules/python-rabbitair/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions -, zeroconf +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, + zeroconf, }: buildPythonPackage rec { @@ -24,25 +25,19 @@ buildPythonPackage rec { hash = "sha256-CGr7NvnGRNTiKq5BpB/zmfgyd/2ggTbO0nj+Q+MavTs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography zeroconf - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pythonImportsCheck = [ - "rabbitair" - ]; + pythonImportsCheck = [ "rabbitair" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/python-rapidjson/default.nix b/pkgs/development/python-modules/python-rapidjson/default.nix index 6c6aea0f161c..d6efce383b80 100644 --- a/pkgs/development/python-modules/python-rapidjson/default.nix +++ b/pkgs/development/python-modules/python-rapidjson/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, rapidjson -, pytestCheckHook -, pytz -, setuptools -, substituteAll +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + rapidjson, + pytestCheckHook, + pytz, + setuptools, + substituteAll, }: let @@ -27,7 +28,8 @@ let }) ]; }); -in buildPythonPackage rec { +in +buildPythonPackage rec { version = "1.16"; pname = "python-rapidjson"; disabled = pythonOlder "3.8"; @@ -48,18 +50,14 @@ in buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook pytz ]; - disabledTestPaths = [ - "benchmarks" - ]; + disabledTestPaths = [ "benchmarks" ]; meta = with lib; { changelog = "https://github.com/python-rapidjson/python-rapidjson/blob/${src.rev}/CHANGES.rst"; diff --git a/pkgs/development/python-modules/python-redis-lock/default.nix b/pkgs/development/python-modules/python-redis-lock/default.nix index 44527977bc19..2bc0c40cc1a0 100644 --- a/pkgs/development/python-modules/python-redis-lock/default.nix +++ b/pkgs/development/python-modules/python-redis-lock/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, eventlet -, fetchPypi -, gevent -, pkgs -, process-tests -, pytestCheckHook -, pythonOlder -, redis -, withDjango ? false -, django-redis +{ + lib, + stdenv, + buildPythonPackage, + eventlet, + fetchPypi, + gevent, + pkgs, + process-tests, + pytestCheckHook, + pythonOlder, + redis, + withDjango ? false, + django-redis, }: buildPythonPackage rec { @@ -25,11 +26,7 @@ buildPythonPackage rec { hash = "sha256-Sr0Lz0kTasrWZye/VIbdJJQHjKVeSe+mk/eUB3MZCRo="; }; - propagatedBuildInputs = [ - redis - ] ++ lib.optionals withDjango [ - django-redis - ]; + propagatedBuildInputs = [ redis ] ++ lib.optionals withDjango [ django-redis ]; nativeCheckInputs = [ eventlet @@ -39,18 +36,18 @@ buildPythonPackage rec { pkgs.redis ]; - disabledTests = [ - # https://github.com/ionelmc/python-redis-lock/issues/86 - "test_no_overlap2" - ] ++ lib.optionals stdenv.isDarwin [ - # fail on Darwin because it defaults to multiprocessing `spawn` - "test_reset_signalizes" - "test_reset_all_signalizes" - ]; + disabledTests = + [ + # https://github.com/ionelmc/python-redis-lock/issues/86 + "test_no_overlap2" + ] + ++ lib.optionals stdenv.isDarwin [ + # fail on Darwin because it defaults to multiprocessing `spawn` + "test_reset_signalizes" + "test_reset_all_signalizes" + ]; - pythonImportsCheck = [ - "redis_lock" - ]; + pythonImportsCheck = [ "redis_lock" ]; meta = with lib; { changelog = "https://github.com/ionelmc/python-redis-lock/blob/v${version}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/python-registry/default.nix b/pkgs/development/python-modules/python-registry/default.nix index 4f8c4beae6c9..04c6e81d3911 100644 --- a/pkgs/development/python-modules/python-registry/default.nix +++ b/pkgs/development/python-modules/python-registry/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, enum-compat -, fetchFromGitHub -, pytestCheckHook -, unicodecsv -, six +{ + lib, + buildPythonPackage, + enum-compat, + fetchFromGitHub, + pytestCheckHook, + unicodecsv, + six, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { six ]; - disabledTestPaths = [ - "samples" - ]; + disabledTestPaths = [ "samples" ]; - pythonImportsCheck = [ - "Registry" - ]; + pythonImportsCheck = [ "Registry" ]; meta = with lib; { description = "Pure Python parser for Windows Registry hives"; diff --git a/pkgs/development/python-modules/python-rtmidi/default.nix b/pkgs/development/python-modules/python-rtmidi/default.nix index 9f073fd0a6ae..a91ffec78c29 100644 --- a/pkgs/development/python-modules/python-rtmidi/default.nix +++ b/pkgs/development/python-modules/python-rtmidi/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, alabaster -, alsa-lib -, buildPythonPackage -, CoreAudio -, CoreMIDI -, CoreServices -, Foundation -, cython -, fetchPypi -, flake8 -, libjack2 -, meson-python -, ninja -, pkg-config -, pythonOlder -, tox -, wheel +{ + lib, + stdenv, + alabaster, + alsa-lib, + buildPythonPackage, + CoreAudio, + CoreMIDI, + CoreServices, + Foundation, + cython, + fetchPypi, + flake8, + libjack2, + meson-python, + ninja, + pkg-config, + pythonOlder, + tox, + wheel, }: buildPythonPackage rec { @@ -40,16 +41,18 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - ] ++ lib.optionals stdenv.isLinux [ - libjack2 - alsa-lib - ] ++ lib.optionals stdenv.isDarwin [ - CoreAudio - CoreMIDI - CoreServices - Foundation - ]; + buildInputs = + [ ] + ++ lib.optionals stdenv.isLinux [ + libjack2 + alsa-lib + ] + ++ lib.optionals stdenv.isDarwin [ + CoreAudio + CoreMIDI + CoreServices + Foundation + ]; nativeCheckInputs = [ tox @@ -57,9 +60,7 @@ buildPythonPackage rec { alabaster ]; - pythonImportsCheck = [ - "rtmidi" - ]; + pythonImportsCheck = [ "rtmidi" ]; meta = with lib; { description = "A Python binding for the RtMidi C++ library implemented using Cython"; diff --git a/pkgs/development/python-modules/python-sat/default.nix b/pkgs/development/python-modules/python-sat/default.nix index dfc512f6bc55..bf1c6c45982c 100644 --- a/pkgs/development/python-modules/python-sat/default.nix +++ b/pkgs/development/python-modules/python-sat/default.nix @@ -1,4 +1,11 @@ -{ buildPythonPackage, fetchFromGitHub, lib, six, pypblib, pytestCheckHook }: +{ + buildPythonPackage, + fetchFromGitHub, + lib, + six, + pypblib, + pytestCheckHook, +}: buildPythonPackage rec { pname = "python-sat"; @@ -12,21 +19,24 @@ buildPythonPackage rec { hash = "sha256-zGdgD+SgoMB7/zDQI/trmV70l91TB7OkDxaJ30W3dkI="; }; - propagatedBuildInputs = [ six pypblib ]; + propagatedBuildInputs = [ + six + pypblib + ]; nativeCheckInputs = [ pytestCheckHook ]; # https://github.com/pysathq/pysat/pull/102 postPatch = '' - # Fix for case-insensitive filesystem - cat >>solvers/patches/cadical.patch <>solvers/patches/cadical.patch <=2.1.0" ''; - pythonImportsCheck = [ - "smarttub" - ]; + pythonImportsCheck = [ "smarttub" ]; meta = with lib; { description = "Python API for SmartTub enabled hot tubs"; diff --git a/pkgs/development/python-modules/python-snap7/default.nix b/pkgs/development/python-modules/python-snap7/default.nix index d33bdc77f8b0..fcbd2f98060c 100644 --- a/pkgs/development/python-modules/python-snap7/default.nix +++ b/pkgs/development/python-modules/python-snap7/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, snap7 -, fetchFromGitHub -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + snap7, + fetchFromGitHub, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-90WwgqPHsHbuQUY49cSQblN1jfoLydiG0dm1aMF/NCA="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; prePatch = '' substituteInPlace snap7/common.py \ diff --git a/pkgs/development/python-modules/python-snappy/default.nix b/pkgs/development/python-modules/python-snappy/default.nix index 1dfb5b83a6b5..88f4408dd59e 100644 --- a/pkgs/development/python-modules/python-snappy/default.nix +++ b/pkgs/development/python-modules/python-snappy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cramjam -, setuptools -, snappy -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + cramjam, + setuptools, + snappy, + unittestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { buildInputs = [ snappy ]; - dependencies = [ - cramjam - ]; + dependencies = [ cramjam ]; nativeCheckInputs = [ unittestCheckHook ]; diff --git a/pkgs/development/python-modules/python-socketio/default.nix b/pkgs/development/python-modules/python-socketio/default.nix index c45cd33b43e0..1825c58e181b 100644 --- a/pkgs/development/python-modules/python-socketio/default.nix +++ b/pkgs/development/python-modules/python-socketio/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, bidict -, python-engineio + # dependencies + bidict, + python-engineio, -# optional-dependencies -, aiohttp -, requests -, websocket-client + # optional-dependencies + aiohttp, + requests, + websocket-client, -# tests -, msgpack -, pytestCheckHook -, simple-websocket -, uvicorn + # tests + msgpack, + pytestCheckHook, + simple-websocket, + uvicorn, }: @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-t5QbuXjipLaf9GV+N5FLq45xJPK2/FUaM/0s8RNPTzo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ bidict @@ -51,9 +50,7 @@ buildPythonPackage rec { requests websocket-client ]; - asyncio_client = [ - aiohttp - ]; + asyncio_client = [ aiohttp ]; }; nativeCheckInputs = [ @@ -63,9 +60,7 @@ buildPythonPackage rec { simple-websocket ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "socketio" - ]; + pythonImportsCheck = [ "socketio" ]; meta = with lib; { description = "Python Socket.IO server and client"; diff --git a/pkgs/development/python-modules/python-socks/default.nix b/pkgs/development/python-modules/python-socks/default.nix index 3bf501791b30..208df3d95b10 100644 --- a/pkgs/development/python-modules/python-socks/default.nix +++ b/pkgs/development/python-modules/python-socks/default.nix @@ -1,17 +1,18 @@ -{ lib -, async-timeout -, buildPythonPackage -, curio -, fetchFromGitHub -, anyio -, flask -, pytest-asyncio -, pytest-trio -, pythonOlder -, pytestCheckHook -, trio -, trustme -, yarl +{ + lib, + async-timeout, + buildPythonPackage, + curio, + fetchFromGitHub, + anyio, + flask, + pytest-asyncio, + pytest-trio, + pythonOlder, + pytestCheckHook, + trio, + trustme, + yarl, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { yarl ]; - pythonImportsCheck = [ - "python_socks" - ]; + pythonImportsCheck = [ "python_socks" ]; meta = with lib; { changelog = "https://github.com/romis2012/python-socks/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/python-songpal/default.nix b/pkgs/development/python-modules/python-songpal/default.nix index 7affafc582bf..84bb6e27f012 100644 --- a/pkgs/development/python-modules/python-songpal/default.nix +++ b/pkgs/development/python-modules/python-songpal/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, aiohttp -, async-upnp-client -, attrs -, click +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + aiohttp, + async-upnp-client, + attrs, + click, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-PYw6xlUtBrxl+YeVO/2Njt5LYWEprzGPVNk1Mlr83HM="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ aiohttp diff --git a/pkgs/development/python-modules/python-sql/default.nix b/pkgs/development/python-modules/python-sql/default.nix index 2605080729c7..9ccfc02646ac 100644 --- a/pkgs/development/python-modules/python-sql/default.nix +++ b/pkgs/development/python-modules/python-sql/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-YmC+/4NaNdOgrsTx2jUbC+nKoaDZSmy6lAp82Nz2Ymk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sql" - ]; + pythonImportsCheck = [ "sql" ]; meta = with lib; { description = "Library to write SQL queries in a pythonic way"; diff --git a/pkgs/development/python-modules/python-status/default.nix b/pkgs/development/python-modules/python-status/default.nix index cf3beab789b6..5a1c14628dad 100644 --- a/pkgs/development/python-modules/python-status/default.nix +++ b/pkgs/development/python-modules/python-status/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-stdnum/default.nix b/pkgs/development/python-modules/python-stdnum/default.nix index d8bdc0574dc9..2a2b5d714dee 100644 --- a/pkgs/development/python-modules/python-stdnum/default.nix +++ b/pkgs/development/python-modules/python-stdnum/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, zeep +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + zeep, }: buildPythonPackage rec { @@ -24,23 +25,15 @@ buildPythonPackage rec { --replace-fail " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; passthru.optional-dependencies = { - SOAP = [ - zeep - ]; + SOAP = [ zeep ]; }; - pythonImportsCheck = [ - "stdnum" - ]; + pythonImportsCheck = [ "stdnum" ]; meta = with lib; { description = "Python module to handle standardized numbers and codes"; diff --git a/pkgs/development/python-modules/python-string-utils/default.nix b/pkgs/development/python-modules/python-string-utils/default.nix index 17619b1b4db7..1e962148703c 100644 --- a/pkgs/development/python-modules/python-string-utils/default.nix +++ b/pkgs/development/python-modules/python-string-utils/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -13,7 +14,7 @@ buildPythonPackage rec { hash = "sha256-3PkGCwPwdkfApgNAjciwP4B/O1SgXG4Z6xRGAlb6wMs="; }; - pythonImportsCheck = ["string_utils"]; + pythonImportsCheck = [ "string_utils" ]; # tests are not available in pypi tarball doCheck = false; diff --git a/pkgs/development/python-modules/python-swiftclient/default.nix b/pkgs/development/python-modules/python-swiftclient/default.nix index 4e7c02371071..481b70972d2c 100644 --- a/pkgs/development/python-modules/python-swiftclient/default.nix +++ b/pkgs/development/python-modules/python-swiftclient/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, installShellFiles -, mock -, openstacksdk -, pbr -, python-keystoneclient -, pythonOlder -, stestr +{ + lib, + buildPythonPackage, + fetchPypi, + installShellFiles, + mock, + openstacksdk, + pbr, + python-keystoneclient, + pythonOlder, + stestr, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { sed -i '/bin\/swift/d' setup.cfg ''; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; propagatedBuildInputs = [ pbr @@ -54,9 +53,7 @@ buildPythonPackage rec { stestr run ''; - pythonImportsCheck = [ - "swiftclient" - ]; + pythonImportsCheck = [ "swiftclient" ]; meta = with lib; { homepage = "https://github.com/openstack/python-swiftclient"; diff --git a/pkgs/development/python-modules/python-tds/default.nix b/pkgs/development/python-modules/python-tds/default.nix index 502ff1433666..5a2e8e70da6c 100644 --- a/pkgs/development/python-modules/python-tds/default.nix +++ b/pkgs/development/python-modules/python-tds/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, six -, pytestCheckHook -, pyopenssl -, pyspnego -, namedlist -, pydes -, cryptography +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + six, + pytestCheckHook, + pyopenssl, + pyspnego, + namedlist, + pydes, + cryptography, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { --replace "version.get_git_version()" '"${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/python-technove/default.nix b/pkgs/development/python-modules/python-technove/default.nix index 795ddf5b1236..55a92fbc7281 100644 --- a/pkgs/development/python-modules/python-technove/default.nix +++ b/pkgs/development/python-modules/python-technove/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, aresponses -, awesomeversion -, backoff -, buildPythonPackage -, cachetools -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + awesomeversion, + backoff, + buildPythonPackage, + cachetools, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace-fail "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "technove" - ]; + pythonImportsCheck = [ "technove" ]; meta = with lib; { description = "Python library to interact with TechnoVE local device API"; diff --git a/pkgs/development/python-modules/python-telegram/default.nix b/pkgs/development/python-modules/python-telegram/default.nix index 003806712d0e..e3b493f43806 100644 --- a/pkgs/development/python-modules/python-telegram/default.nix +++ b/pkgs/development/python-modules/python-telegram/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, tdlib -, telegram-text -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + tdlib, + telegram-text, + pytestCheckHook, }: buildPythonPackage rec { @@ -36,17 +37,11 @@ buildPythonPackage rec { telegram-text ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "TestGetTdjsonTdlibPath" - ]; + disabledTests = [ "TestGetTdjsonTdlibPath" ]; - pythonImportsCheck = [ - "telegram.client" - ]; + pythonImportsCheck = [ "telegram.client" ]; meta = with lib; { description = "Python client for the Telegram's tdlib"; diff --git a/pkgs/development/python-modules/python-toolbox/default.nix b/pkgs/development/python-modules/python-toolbox/default.nix index bd975092ae9a..3a91ae373788 100644 --- a/pkgs/development/python-modules/python-toolbox/default.nix +++ b/pkgs/development/python-modules/python-toolbox/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, docutils -, fetchFromGitHub -, isPy27 -, pytestCheckHook +{ + lib, + buildPythonPackage, + docutils, + fetchFromGitHub, + isPy27, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-trovo/default.nix b/pkgs/development/python-modules/python-trovo/default.nix index d76d5d4a2b97..0458711c584e 100644 --- a/pkgs/development/python-modules/python-trovo/default.nix +++ b/pkgs/development/python-modules/python-trovo/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, poetry-core -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + poetry-core, + requests, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-3EVSF4+nLvvM2RocNM2xz9Us5VrRRTCu/MWCcqwwikw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests ]; diff --git a/pkgs/development/python-modules/python-twitch-client/default.nix b/pkgs/development/python-modules/python-twitch-client/default.nix index 29a10ced06f2..2128314b0d88 100644 --- a/pkgs/development/python-modules/python-twitch-client/default.nix +++ b/pkgs/development/python-modules/python-twitch-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, responses -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + responses, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { sha256 = "sha256-gxBpltwExb9bg3HLkz/MNlP5Q3/x97RHxhbwNqqanIM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; - pythonImportsCheck = [ - "twitch" - ]; + pythonImportsCheck = [ "twitch" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/python-twitter/default.nix b/pkgs/development/python-modules/python-twitter/default.nix index 92661187059f..b085ed0caee8 100644 --- a/pkgs/development/python-modules/python-twitter/default.nix +++ b/pkgs/development/python-modules/python-twitter/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, filetype -, future -, hypothesis -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + filetype, + future, + hypothesis, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, + responses, }: buildPythonPackage rec { @@ -52,9 +53,7 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; - pythonImportsCheck = [ - "twitter" - ]; + pythonImportsCheck = [ "twitter" ]; meta = with lib; { description = "Python wrapper around the Twitter API"; diff --git a/pkgs/development/python-modules/python-u2flib-host/default.nix b/pkgs/development/python-modules/python-u2flib-host/default.nix index e2f16cef34d9..3edc24d30bbe 100644 --- a/pkgs/development/python-modules/python-u2flib-host/default.nix +++ b/pkgs/development/python-modules/python-u2flib-host/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, requests, hidapi }: +{ + lib, + fetchPypi, + buildPythonPackage, + requests, + hidapi, +}: buildPythonPackage rec { pname = "python-u2flib-host"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "02pwafd5kyjpc310ys0pgnd0adff1laz18naxxwsfrllqafqnrxb"; }; - propagatedBuildInputs = [ requests hidapi ]; + propagatedBuildInputs = [ + requests + hidapi + ]; # Tests fail: "ValueError: underlying buffer has been detached" doCheck = false; diff --git a/pkgs/development/python-modules/python-u2flib-server/default.nix b/pkgs/development/python-modules/python-u2flib-server/default.nix index 08a62d41363a..d64370a3e095 100644 --- a/pkgs/development/python-modules/python-u2flib-server/default.nix +++ b/pkgs/development/python-modules/python-u2flib-server/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, -# propagates -, cryptography -, six + # propagates + cryptography, + six, -# optional -, webob + # optional + webob, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-ginP9u+aHcdaWpwcFYJWu0Ghf7+nDZq9i3TVAacIPhg="; }; - patches = [ - ./cryptography-37-compat.patch - ]; + patches = [ ./cryptography-37-compat.patch ]; propagatedBuildInputs = [ cryptography @@ -36,9 +35,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - u2f_server = [ - webob - ]; + u2f_server = [ webob ]; }; pythonImportsCheck = [ @@ -46,9 +43,7 @@ buildPythonPackage rec { "u2flib_server.u2f" ]; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.u2f_server; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.u2f_server; meta = with lib; { description = "Python based U2F server library"; diff --git a/pkgs/development/python-modules/python-uinput/default.nix b/pkgs/development/python-modules/python-uinput/default.nix index f491ab1fe6bb..ef5ecb4105bc 100644 --- a/pkgs/development/python-modules/python-uinput/default.nix +++ b/pkgs/development/python-modules/python-uinput/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, udev +{ + lib, + buildPythonPackage, + fetchPypi, + udev, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-ulid/default.nix b/pkgs/development/python-modules/python-ulid/default.nix index af437c8f23fe..59c07c6453c8 100644 --- a/pkgs/development/python-modules/python-ulid/default.nix +++ b/pkgs/development/python-modules/python-ulid/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, freezegun -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + freezegun, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-unshare/default.nix b/pkgs/development/python-modules/python-unshare/default.nix index 86958dfc003e..1cfe02a07e2e 100644 --- a/pkgs/development/python-modules/python-unshare/default.nix +++ b/pkgs/development/python-modules/python-unshare/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage { @@ -19,10 +20,9 @@ buildPythonPackage { meta = with lib; { description = "Python bindings for the Linux unshare() syscall"; - homepage = "https://github.com/thetincho/python-unshare"; - license = licenses.gpl2; - platforms = platforms.linux; + homepage = "https://github.com/thetincho/python-unshare"; + license = licenses.gpl2; + platforms = platforms.linux; maintainers = with maintainers; [ abbradar ]; }; - } diff --git a/pkgs/development/python-modules/python-utils/default.nix b/pkgs/development/python-modules/python-utils/default.nix index 6e2e3fe79510..a5b5537868c7 100644 --- a/pkgs/development/python-modules/python-utils/default.nix +++ b/pkgs/development/python-modules/python-utils/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, loguru -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + loguru, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -29,14 +30,10 @@ buildPythonPackage rec { -e '/--mypy/d' ''; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; passthru.optional-dependencies = { - loguru = [ - loguru - ]; + loguru = [ loguru ]; }; nativeCheckInputs = [ @@ -44,13 +41,9 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.loguru; - pythonImportsCheck = [ - "python_utils" - ]; + pythonImportsCheck = [ "python_utils" ]; - pytestFlagsArray = [ - "_python_utils_tests" - ]; + pytestFlagsArray = [ "_python_utils_tests" ]; disabledTests = lib.optionals stdenv.isDarwin [ # Flaky tests on darwin diff --git a/pkgs/development/python-modules/python-vagrant/default.nix b/pkgs/development/python-modules/python-vagrant/default.nix index dcf29a4662d9..3527defa41da 100644 --- a/pkgs/development/python-modules/python-vagrant/default.nix +++ b/pkgs/development/python-modules/python-vagrant/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # The tests try to connect to qemu doCheck = false; - pythonImportsCheck = [ - "vagrant" - ]; + pythonImportsCheck = [ "vagrant" ]; meta = { description = "Python module that provides a thin wrapper around the vagrant command line executable"; diff --git a/pkgs/development/python-modules/python-velbus/default.nix b/pkgs/development/python-modules/python-velbus/default.nix index 75d4e24f869b..d93267cbcfb4 100644 --- a/pkgs/development/python-modules/python-velbus/default.nix +++ b/pkgs/development/python-modules/python-velbus/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyserial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-3eDfXPMO167QI/umLBjlHTBV67XQ8QYkg4EzfrRTw6M="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # Project has not tests doCheck = false; - pythonImportsCheck = [ - "velbus" - ]; + pythonImportsCheck = [ "velbus" ]; meta = with lib; { description = "Python library to control the Velbus home automation system"; diff --git a/pkgs/development/python-modules/python-vipaccess/default.nix b/pkgs/development/python-modules/python-vipaccess/default.nix index 7455408f0bc6..8e13a0b0b142 100644 --- a/pkgs/development/python-modules/python-vipaccess/default.nix +++ b/pkgs/development/python-modules/python-vipaccess/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, oath -, pycryptodome -, requests -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + oath, + pycryptodome, + requests, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-vlc/default.nix b/pkgs/development/python-modules/python-vlc/default.nix index cdc557bbe879..3a58531de57c 100644 --- a/pkgs/development/python-modules/python-vlc/default.nix +++ b/pkgs/development/python-modules/python-vlc/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, libvlc -, substituteAll -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + libvlc, + substituteAll, + pythonOlder, }: buildPythonPackage rec { @@ -23,20 +24,16 @@ buildPythonPackage rec { # Patch path for VLC (substituteAll { src = ./vlc-paths.patch; - libvlcPath="${libvlc}/lib/libvlc.so.5"; + libvlcPath = "${libvlc}/lib/libvlc.so.5"; }) ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "vlc" - ]; + pythonImportsCheck = [ "vlc" ]; meta = with lib; { description = "Python bindings for VLC, the cross-platform multimedia player and framework"; diff --git a/pkgs/development/python-modules/python-wifi/default.nix b/pkgs/development/python-modules/python-wifi/default.nix index 05936274eef0..2dfd18079c72 100644 --- a/pkgs/development/python-modules/python-wifi/default.nix +++ b/pkgs/development/python-modules/python-wifi/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, }: buildPythonPackage rec { @@ -21,7 +22,9 @@ buildPythonPackage rec { homepage = "http://pythonwifi.tuxfamily.org/"; # From the README: "pythonwifi is licensed under LGPLv2+, however, the # examples (e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+." - license = with licenses; [ lgpl2Plus gpl2Plus ]; + license = with licenses; [ + lgpl2Plus + gpl2Plus + ]; }; - } diff --git a/pkgs/development/python-modules/python-wink/default.nix b/pkgs/development/python-modules/python-wink/default.nix index 45f360462474..464daf8ebd02 100644 --- a/pkgs/development/python-modules/python-wink/default.nix +++ b/pkgs/development/python-modules/python-wink/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-xmp-toolkit/default.nix b/pkgs/development/python-modules/python-xmp-toolkit/default.nix index 73957c33da26..e9541adb6a5d 100644 --- a/pkgs/development/python-modules/python-xmp-toolkit/default.nix +++ b/pkgs/development/python-modules/python-xmp-toolkit/default.nix @@ -1,9 +1,11 @@ -{ buildPythonPackage -, exempi -, fetchFromGitHub -, mock -, pytz -, lib, stdenv +{ + buildPythonPackage, + exempi, + fetchFromGitHub, + mock, + pytz, + lib, + stdenv, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/python-xz/default.nix b/pkgs/development/python-modules/python-xz/default.nix index a66ddd6ea857..83fbc0997e57 100644 --- a/pkgs/development/python-modules/python-xz/default.nix +++ b/pkgs/development/python-modules/python-xz/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python-yate/default.nix b/pkgs/development/python-modules/python-yate/default.nix index a6cc7ac6575f..6207b13381e8 100644 --- a/pkgs/development/python-modules/python-yate/default.nix +++ b/pkgs/development/python-modules/python-yate/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { async-timeout ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "yate" - ]; + pythonImportsCheck = [ "yate" ]; meta = with lib; { description = "Python library for the yate telephony engine"; diff --git a/pkgs/development/python-modules/python-youtube/default.nix b/pkgs/development/python-modules/python-youtube/default.nix index 62987a03bc43..b7e50995f7e0 100644 --- a/pkgs/development/python-modules/python-youtube/default.nix +++ b/pkgs/development/python-modules/python-youtube/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, dataclasses-json -, isodate -, requests -, requests-oauthlib -, pytestCheckHook -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + dataclasses-json, + isodate, + requests, + requests-oauthlib, + pytestCheckHook, + responses, }: buildPythonPackage rec { pname = "python-youtube"; @@ -27,9 +28,7 @@ buildPythonPackage rec { --replace "--cov-report xml" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ dataclasses-json @@ -53,4 +52,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ blaggacao ]; }; } - diff --git a/pkgs/development/python-modules/python-zbar/default.nix b/pkgs/development/python-modules/python-zbar/default.nix index 539823f064ac..bd8f4c01ff97 100644 --- a/pkgs/development/python-modules/python-zbar/default.nix +++ b/pkgs/development/python-modules/python-zbar/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, setuptools -, pillow -, zbar -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + setuptools, + pillow, + zbar, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/python3-application/default.nix b/pkgs/development/python-modules/python3-application/default.nix index 8abfd28cb15e..b508ca98ba9f 100644 --- a/pkgs/development/python-modules/python3-application/default.nix +++ b/pkgs/development/python-modules/python3-application/default.nix @@ -1,4 +1,12 @@ -{ stdenv, lib, isPy3k, buildPythonPackage, fetchFromGitHub, zope-interface, twisted }: +{ + stdenv, + lib, + isPy3k, + buildPythonPackage, + fetchFromGitHub, + zope-interface, + twisted, +}: buildPythonPackage rec { pname = "python3-application"; @@ -14,7 +22,10 @@ buildPythonPackage rec { hash = "sha256-L7KN6rKkbjNmkSoy8vdMYpXSBkWN7afNpreJO0twjq8="; }; - propagatedBuildInputs = [ zope-interface twisted ]; + propagatedBuildInputs = [ + zope-interface + twisted + ]; pythonImportsCheck = [ "application" ]; @@ -23,7 +34,10 @@ buildPythonPackage rec { description = "A collection of modules that are useful when building python applications"; homepage = "https://github.com/AGProjects/python3-application"; license = licenses.lgpl21Plus; - maintainers = with maintainers; [ chanley yureien ]; + maintainers = with maintainers; [ + chanley + yureien + ]; longDescription = '' This package is a collection of modules that are useful when building python applications. Their purpose is to eliminate the need to divert resources into implementing the small tasks that every application needs to do in order to run successfully and focus instead on the application logic itself. The modules that the application package provides are: diff --git a/pkgs/development/python-modules/python3-eventlib/default.nix b/pkgs/development/python-modules/python3-eventlib/default.nix index a108e7f0b625..1a0830a3b817 100644 --- a/pkgs/development/python-modules/python3-eventlib/default.nix +++ b/pkgs/development/python-modules/python3-eventlib/default.nix @@ -1,4 +1,12 @@ -{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, zope-interface, twisted, greenlet }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + isPy3k, + zope-interface, + twisted, + greenlet, +}: buildPythonPackage rec { pname = "python3-eventlib"; @@ -14,7 +22,11 @@ buildPythonPackage rec { hash = "sha256-LFW3rCGa7A8tk6SjgYgjkLQ+72GE2WN8wG+XkXYTAoQ="; }; - propagatedBuildInputs = [ zope-interface twisted greenlet ]; + propagatedBuildInputs = [ + zope-interface + twisted + greenlet + ]; dontUseSetuptoolsCheck = true; diff --git a/pkgs/development/python-modules/python3-gnutls/default.nix b/pkgs/development/python-modules/python3-gnutls/default.nix index 6adaf3c03393..48b3b6d54463 100644 --- a/pkgs/development/python-modules/python3-gnutls/default.nix +++ b/pkgs/development/python-modules/python3-gnutls/default.nix @@ -1,5 +1,15 @@ -{ lib, fetchFromGitHub, substituteAll, buildPythonPackage, isPy3k, gnutls -, twisted, pyopenssl, service-identity, setuptools }: +{ + lib, + fetchFromGitHub, + substituteAll, + buildPythonPackage, + isPy3k, + gnutls, + twisted, + pyopenssl, + service-identity, + setuptools, +}: buildPythonPackage rec { pname = "python3-gnutls"; @@ -17,14 +27,18 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ twisted pyopenssl service-identity ]; + propagatedBuildInputs = [ + twisted + pyopenssl + service-identity + ]; patches = [ (substituteAll { src = ./libgnutls-path.patch; gnutlslib = "${lib.getLib gnutls}/lib"; }) - ]; + ]; pythonImportsCheck = [ "gnutls" ]; diff --git a/pkgs/development/python-modules/python3-openid/default.nix b/pkgs/development/python-modules/python3-openid/default.nix index 9c70c1ff9478..e096743e909d 100644 --- a/pkgs/development/python-modules/python3-openid/default.nix +++ b/pkgs/development/python-modules/python3-openid/default.nix @@ -1,4 +1,10 @@ -{ lib, isPy3k, buildPythonPackage, fetchPypi, defusedxml }: +{ + lib, + isPy3k, + buildPythonPackage, + fetchPypi, + defusedxml, +}: buildPythonPackage rec { pname = "python3-openid"; diff --git a/pkgs/development/python-modules/python3-saml/default.nix b/pkgs/development/python-modules/python3-saml/default.nix index adfea3091c71..fa5a004ff99d 100644 --- a/pkgs/development/python-modules/python3-saml/default.nix +++ b/pkgs/development/python-modules/python3-saml/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, freezegun -, isodate -, lxml -, pytestCheckHook -, pythonOlder -, poetry-core -, xmlsec +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + freezegun, + isodate, + lxml, + pytestCheckHook, + pythonOlder, + poetry-core, + xmlsec, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ isodate @@ -49,9 +48,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "onelogin.saml2" - ]; + pythonImportsCheck = [ "onelogin.saml2" ]; disabledTests = [ # Tests require network acces or additions files diff --git a/pkgs/development/python-modules/pythondialog/default.nix b/pkgs/development/python-modules/pythondialog/default.nix index abf7b8e9eb2a..5205e34ea44c 100644 --- a/pkgs/development/python-modules/pythondialog/default.nix +++ b/pkgs/development/python-modules/pythondialog/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { @@ -24,5 +25,4 @@ buildPythonPackage rec { homepage = "http://pythondialog.sourceforge.net/"; license = licenses.lgpl3; }; - } diff --git a/pkgs/development/python-modules/pythonegardia/default.nix b/pkgs/development/python-modules/pythonegardia/default.nix index 1affca4ca65f..4b3d6ce8f0e4 100644 --- a/pkgs/development/python-modules/pythonegardia/default.nix +++ b/pkgs/development/python-modules/pythonegardia/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { sha256 = "sha256-lQ/7tH74MllwFe2kF5OcYSb4rQd+yJU1W6ztG4Z6Y0U="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests, only two test file for manual interaction doCheck = false; - pythonImportsCheck = [ - "pythonegardia" - ]; + pythonImportsCheck = [ "pythonegardia" ]; meta = with lib; { description = "Python interface with Egardia/Woonveilig alarms"; diff --git a/pkgs/development/python-modules/pythonfinder/default.nix b/pkgs/development/python-modules/pythonfinder/default.nix index af5f916dd05a..1261da097fe0 100644 --- a/pkgs/development/python-modules/pythonfinder/default.nix +++ b/pkgs/development/python-modules/pythonfinder/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cached-property -, click -, fetchFromGitHub -, packaging -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cached-property, + click, + fetchFromGitHub, + packaging, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -29,20 +30,12 @@ buildPythonPackage rec { --replace " --cov" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.8") [ - cached-property - ]; + propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.8") [ cached-property ]; passthru.optional-dependencies = { - cli = [ - click - ]; + cli = [ click ]; }; nativeCheckInputs = [ @@ -50,9 +43,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "pythonfinder" - ]; + pythonImportsCheck = [ "pythonfinder" ]; meta = with lib; { description = "Cross platform search tool for finding Python"; diff --git a/pkgs/development/python-modules/pythonix/default.nix b/pkgs/development/python-modules/pythonix/default.nix index 9059e3b424ef..18eb56419219 100644 --- a/pkgs/development/python-modules/pythonix/default.nix +++ b/pkgs/development/python-modules/pythonix/default.nix @@ -1,4 +1,15 @@ -{ lib, buildPythonPackage, fetchFromGitHub, ninja, boost, meson, pkg-config, nix, isPy3k, python }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ninja, + boost, + meson, + pkg-config, + nix, + isPy3k, + python, +}: buildPythonPackage rec { pname = "pythonix"; @@ -14,9 +25,16 @@ buildPythonPackage rec { disabled = !isPy3k; - nativeBuildInputs = [ meson ninja pkg-config ]; + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; - buildInputs = [ nix boost ]; + buildInputs = [ + nix + boost + ]; postInstall = '' # This is typically set by pipInstallHook/eggInstallHook, @@ -28,7 +46,7 @@ buildPythonPackage rec { meta = with lib; { description = '' - Eval nix code from python. + Eval nix code from python. ''; maintainers = [ ]; license = licenses.mit; diff --git a/pkgs/development/python-modules/pythonnet/default.nix b/pkgs/development/python-modules/pythonnet/default.nix index 5a2272c668c3..d90244486516 100644 --- a/pkgs/development/python-modules/pythonnet/default.nix +++ b/pkgs/development/python-modules/pythonnet/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook -, pycparser -, psutil -, dotnet-sdk -, buildDotnetModule -, clr-loader -, setuptools +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, + pycparser, + psutil, + dotnet-sdk, + buildDotnetModule, + clr-loader, + setuptools, }: let @@ -74,6 +75,9 @@ buildPythonPackage { license = licenses.mit; # badPlatforms = [ "aarch64-linux" ]; - maintainers = with maintainers; [ jraygauthier mdarocha ]; + maintainers = with maintainers; [ + jraygauthier + mdarocha + ]; }; } diff --git a/pkgs/development/python-modules/pythonnet/deps.nix b/pkgs/development/python-modules/pythonnet/deps.nix index 43d3a4992c7b..2cbc3430b432 100644 --- a/pkgs/development/python-modules/pythonnet/deps.nix +++ b/pkgs/development/python-modules/pythonnet/deps.nix @@ -1,194 +1,951 @@ # This file was automatically generated by passthru.fetch-deps. # Please dont edit it manually, your changes might get overwritten! -{ fetchNuGet }: [ - (fetchNuGet { pname = "BenchmarkDotNet"; version = "0.13.1"; sha256 = "1kgypxfp34vjy9kvqq8csznsjbnv37pp4r0457i5l1j6zrsm76rp"; }) - (fetchNuGet { pname = "BenchmarkDotNet.Annotations"; version = "0.13.1"; sha256 = "0fizarpvdajwcvfhd45c35xrnrci5rbn5ksf3zvlw4q300hnlsir"; }) - (fetchNuGet { pname = "CommandLineParser"; version = "2.4.3"; sha256 = "1aca3q25n3dg55v4j3kzlzfzd5k2jpy6zhp8x7g74pdfdqzrhg55"; }) - (fetchNuGet { pname = "Iced"; version = "1.8.0"; sha256 = "12cgd9p3jm81wd7m8bp3pm20gmrmbad2hcwzynhz644h3062nn24"; }) - (fetchNuGet { pname = "Lost.Compat.NullabilityAttributes"; version = "0.0.4"; sha256 = "1h8m1n4x1p69xh86ia1rf4dcr17w965fpxws7d3458r4w1wl143a"; }) - (fetchNuGet { pname = "Microsoft.Build.Tasks.Git"; version = "1.1.1"; sha256 = "1bb5p4zlnfn88skkvymxfsn0jybqncl4356hwnic9jxdq2d4fz1w"; }) - (fetchNuGet { pname = "Microsoft.CodeAnalysis.Analyzers"; version = "2.6.1"; sha256 = "1plk343h9fyxg08b9bcnlqyaq00cbnc1v73pj9nbcyphmgf5bqfp"; }) - (fetchNuGet { pname = "Microsoft.CodeAnalysis.Common"; version = "2.10.0"; sha256 = "1l690xqrhmkasns5ghz0vqj8n2xyl5yrwan5gs52hwfxdwahqaaj"; }) - (fetchNuGet { pname = "Microsoft.CodeAnalysis.CSharp"; version = "2.10.0"; sha256 = "0saabsr81crawdzs2cnzyjp5cgg2hk5k6q7n0i0pxghswb0m4dxk"; }) - (fetchNuGet { pname = "Microsoft.CodeCoverage"; version = "16.11.0"; sha256 = "0f41l3kks6wk5vjaxpjh8m2flnrvlbvqgqflamhv8rfz4y8ifgdv"; }) - (fetchNuGet { pname = "Microsoft.CodeCoverage"; version = "17.0.0"; sha256 = "18gdbsqf6i79ld4ikqr4jhx9ndsggm865b5xj1xmnmgg12ydp19a"; }) - (fetchNuGet { pname = "Microsoft.CodeCoverage"; version = "17.6.2"; sha256 = "1wwmg6hn4dp2mvwn2bm81wccdw149lq17xdnpz17mvg4zcwmax7g"; }) - (fetchNuGet { pname = "Microsoft.CSharp"; version = "4.7.0"; sha256 = "0gd67zlw554j098kabg887b5a6pq9kzavpa3jjy5w53ccjzjfy8j"; }) - (fetchNuGet { pname = "Microsoft.Diagnostics.NETCore.Client"; version = "0.2.61701"; sha256 = "1ic1607jj4ln8dbibf1fz5v9svk9x2kqlgvhndc6ijaqnbc4wcr1"; }) - (fetchNuGet { pname = "Microsoft.Diagnostics.Runtime"; version = "1.1.126102"; sha256 = "0w7jcxkd4cix6dbh0szawilmykjmdc1rqysllrpwb7ivrxzazypn"; }) - (fetchNuGet { pname = "Microsoft.Diagnostics.Tracing.TraceEvent"; version = "2.0.61"; sha256 = "0gq51l4yyyn8dir6w41im9fwhw9r6jz6n7jm4zhmvvway5ijbcac"; }) - (fetchNuGet { pname = "Microsoft.DotNet.InternalAbstractions"; version = "1.0.0"; sha256 = "0mp8ihqlb7fsa789frjzidrfjc1lrhk88qp3xm5qvr7vf4wy4z8x"; }) - (fetchNuGet { pname = "Microsoft.DotNet.PlatformAbstractions"; version = "2.1.0"; sha256 = "1qydvyyinj3b5mraazjal3n2k7jqhn05b6n1a2f3qjkqkxi63dmy"; }) - (fetchNuGet { pname = "Microsoft.Net.Compilers.Toolset"; version = "4.0.1"; sha256 = "08njbdnmjzjd6phys94w0di3vcxfq7pniad6s3jc5f65r9s1f0w2"; }) - (fetchNuGet { pname = "Microsoft.NET.Test.Sdk"; version = "16.11.0"; sha256 = "1a2y6vw6p9xp3w72zq2lwrjl8bxv87s9d7zd2dh4zwbzh1c5slxl"; }) - (fetchNuGet { pname = "Microsoft.NET.Test.Sdk"; version = "17.0.0"; sha256 = "0bknyf5kig5icwjxls7pcn51x2b2qf91dz9qv67fl70v6cczaz2r"; }) - (fetchNuGet { pname = "Microsoft.NET.Test.Sdk"; version = "17.6.2"; sha256 = "1a658bnh5q3lfkrr81h3lyx1mc3hggnjr1bpmim71rr2s42ad70v"; }) - (fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "1.0.1"; sha256 = "01al6cfxp68dscl15z7rxfw9zvhm64dncsw09a1vmdkacsa2v6lr"; }) - (fetchNuGet { pname = "Microsoft.NETCore.Platforms"; version = "1.1.0"; sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; }) - (fetchNuGet { pname = "Microsoft.NETCore.Targets"; version = "1.0.1"; sha256 = "0ppdkwy6s9p7x9jix3v4402wb171cdiibq7js7i13nxpdky7074p"; }) - (fetchNuGet { pname = "Microsoft.NETCore.Targets"; version = "1.1.0"; sha256 = "193xwf33fbm0ni3idxzbr5fdq3i2dlfgihsac9jj7whj0gd902nh"; }) - (fetchNuGet { pname = "Microsoft.NETFramework.ReferenceAssemblies"; version = "1.0.0"; sha256 = "0na724xhvqm63vq9y18fl9jw9q2v99bdwr353378s5fsi11qzxp9"; }) - (fetchNuGet { pname = "Microsoft.NETFramework.ReferenceAssemblies.net461"; version = "1.0.0"; sha256 = "00vkn4c6i0rn1l9pv912y0wgb9h6ks76qah8hvk441nari8fqbm1"; }) - (fetchNuGet { pname = "Microsoft.NETFramework.ReferenceAssemblies.net472"; version = "1.0.0"; sha256 = "1bqinq2nxnpqxziypg1sqy3ly0nymxxjpn8fwkn3rl4vl6gdg3rc"; }) - (fetchNuGet { pname = "Microsoft.SourceLink.Common"; version = "1.1.1"; sha256 = "0xkdqs7az2cprar7jzjlgjpd64l6f8ixcmwmpkdm03fyb4s5m0bg"; }) - (fetchNuGet { pname = "Microsoft.SourceLink.GitHub"; version = "1.1.1"; sha256 = "099y35f2npvva3jk1zp8hn0vb9pwm2l0ivjasdly6y2idv53s5yy"; }) - (fetchNuGet { pname = "Microsoft.TestPlatform.ObjectModel"; version = "16.11.0"; sha256 = "1fc0ghk1cny4i8w43b94pxhl0srxisv6kaflkkp30ncsa9szhkxh"; }) - (fetchNuGet { pname = "Microsoft.TestPlatform.ObjectModel"; version = "17.6.2"; sha256 = "0asbrbdyyig1p034smf79lszzbfv1cn6q181i7d4p2vsiqpjp9sj"; }) - (fetchNuGet { pname = "Microsoft.TestPlatform.TestHost"; version = "16.11.0"; sha256 = "0hp1vndf2jhyg1f3miq4g2068z5kpfzy6nmswm25vymghxp1ws4k"; }) - (fetchNuGet { pname = "Microsoft.TestPlatform.TestHost"; version = "17.6.2"; sha256 = "0lcj8kkcnxbwiaw6j0xf4fxqpa6z0s41nq52spvckfg4367lg4fg"; }) - (fetchNuGet { pname = "Microsoft.Win32.Primitives"; version = "4.3.0"; sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq"; }) - (fetchNuGet { pname = "Microsoft.Win32.Registry"; version = "4.3.0"; sha256 = "1gxyzxam8163vk1kb6xzxjj4iwspjsz9zhgn1w9rjzciphaz0ig7"; }) - (fetchNuGet { pname = "Microsoft.Win32.Registry"; version = "4.5.0"; sha256 = "1zapbz161ji8h82xiajgriq6zgzmb1f3ar517p2h63plhsq5gh2q"; }) - (fetchNuGet { pname = "NETStandard.Library"; version = "2.0.0"; sha256 = "1bc4ba8ahgk15m8k4nd7x406nhi0kwqzbgjk2dmw52ss553xz7iy"; }) - (fetchNuGet { pname = "NETStandard.Library"; version = "2.0.3"; sha256 = "1fn9fxppfcg4jgypp2pmrpr6awl3qz1xmnri0cygpkwvyx27df1y"; }) - (fetchNuGet { pname = "Newtonsoft.Json"; version = "13.0.1"; sha256 = "0fijg0w6iwap8gvzyjnndds0q4b8anwxxvik7y8vgq97dram4srb"; }) - (fetchNuGet { pname = "Newtonsoft.Json"; version = "9.0.1"; sha256 = "0mcy0i7pnfpqm4pcaiyzzji4g0c8i3a5gjz28rrr28110np8304r"; }) - (fetchNuGet { pname = "NonCopyableAnalyzer"; version = "0.7.0"; sha256 = "1jry36p53fkk3fn9pawgg7qiv79j30y0kvd4xrnd58d7zg7zzdj0"; }) - (fetchNuGet { pname = "NuGet.Frameworks"; version = "5.0.0"; sha256 = "18ijvmj13cwjdrrm52c8fpq021531zaz4mj4b4zapxaqzzxf2qjr"; }) - (fetchNuGet { pname = "NuGet.Frameworks"; version = "6.5.0"; sha256 = "0s37d1p4md0k6d4cy6sq36f2dgkd9qfbzapxhkvi8awwh0vrynhj"; }) - (fetchNuGet { pname = "NUnit"; version = "3.12.0"; sha256 = "1880j2xwavi8f28vxan3hyvdnph4nlh5sbmh285s4lc9l0b7bdk2"; }) - (fetchNuGet { pname = "NUnit"; version = "3.13.3"; sha256 = "0wdzfkygqnr73s6lpxg5b1pwaqz9f414fxpvpdmf72bvh4jaqzv6"; }) - (fetchNuGet { pname = "NUnit3TestAdapter"; version = "3.16.1"; sha256 = "1pzhmapfdszsfza7zjr3zrlz4fssdxsyiwmlj76a40mbhxhfa4q9"; }) - (fetchNuGet { pname = "NUnit3TestAdapter"; version = "3.17.0"; sha256 = "0kxc6z3b8ccdrcyqz88jm5yh5ch9nbg303v67q8sp5hhs8rl8nk6"; }) - (fetchNuGet { pname = "NUnit3TestAdapter"; version = "4.5.0"; sha256 = "1srx1629s0k1kmf02nmz251q07vj6pv58mdafcr5dr0bbn1fh78i"; }) - (fetchNuGet { pname = "Perfolizer"; version = "0.2.1"; sha256 = "012aqqi3y3nfikqmn26yajpwd52c04zlzp0p91iyslw7mf26qncy"; }) - (fetchNuGet { pname = "runtime.any.System.Collections"; version = "4.3.0"; sha256 = "0bv5qgm6vr47ynxqbnkc7i797fdi8gbjjxii173syrx14nmrkwg0"; }) - (fetchNuGet { pname = "runtime.any.System.Diagnostics.Tools"; version = "4.3.0"; sha256 = "1wl76vk12zhdh66vmagni66h5xbhgqq7zkdpgw21jhxhvlbcl8pk"; }) - (fetchNuGet { pname = "runtime.any.System.Diagnostics.Tracing"; version = "4.3.0"; sha256 = "00j6nv2xgmd3bi347k00m7wr542wjlig53rmj28pmw7ddcn97jbn"; }) - (fetchNuGet { pname = "runtime.any.System.Globalization"; version = "4.3.0"; sha256 = "1daqf33hssad94lamzg01y49xwndy2q97i2lrb7mgn28656qia1x"; }) - (fetchNuGet { pname = "runtime.any.System.IO"; version = "4.3.0"; sha256 = "0l8xz8zn46w4d10bcn3l4yyn4vhb3lrj2zw8llvz7jk14k4zps5x"; }) - (fetchNuGet { pname = "runtime.any.System.Reflection"; version = "4.3.0"; sha256 = "02c9h3y35pylc0zfq3wcsvc5nqci95nrkq0mszifc0sjx7xrzkly"; }) - (fetchNuGet { pname = "runtime.any.System.Reflection.Extensions"; version = "4.3.0"; sha256 = "0zyri97dfc5vyaz9ba65hjj1zbcrzaffhsdlpxc9bh09wy22fq33"; }) - (fetchNuGet { pname = "runtime.any.System.Reflection.Primitives"; version = "4.3.0"; sha256 = "0x1mm8c6iy8rlxm8w9vqw7gb7s1ljadrn049fmf70cyh42vdfhrf"; }) - (fetchNuGet { pname = "runtime.any.System.Resources.ResourceManager"; version = "4.3.0"; sha256 = "03kickal0iiby82wa5flar18kyv82s9s6d4xhk5h4bi5kfcyfjzl"; }) - (fetchNuGet { pname = "runtime.any.System.Runtime"; version = "4.3.0"; sha256 = "1cqh1sv3h5j7ixyb7axxbdkqx6cxy00p4np4j91kpm492rf4s25b"; }) - (fetchNuGet { pname = "runtime.any.System.Runtime.Handles"; version = "4.3.0"; sha256 = "0bh5bi25nk9w9xi8z23ws45q5yia6k7dg3i4axhfqlnj145l011x"; }) - (fetchNuGet { pname = "runtime.any.System.Runtime.InteropServices"; version = "4.3.0"; sha256 = "0c3g3g3jmhlhw4klrc86ka9fjbl7i59ds1fadsb2l8nqf8z3kb19"; }) - (fetchNuGet { pname = "runtime.any.System.Text.Encoding"; version = "4.3.0"; sha256 = "0aqqi1v4wx51h51mk956y783wzags13wa7mgqyclacmsmpv02ps3"; }) - (fetchNuGet { pname = "runtime.any.System.Text.Encoding.Extensions"; version = "4.3.0"; sha256 = "0lqhgqi0i8194ryqq6v2gqx0fb86db2gqknbm0aq31wb378j7ip8"; }) - (fetchNuGet { pname = "runtime.any.System.Threading.Tasks"; version = "4.3.0"; sha256 = "03mnvkhskbzxddz4hm113zsch1jyzh2cs450dk3rgfjp8crlw1va"; }) - (fetchNuGet { pname = "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "16rnxzpk5dpbbl1x354yrlsbvwylrq456xzpsha1n9y3glnhyx9d"; }) - (fetchNuGet { pname = "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0hkg03sgm2wyq8nqk6dbm9jh5vcq57ry42lkqdmfklrw89lsmr59"; }) - (fetchNuGet { pname = "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0c2p354hjx58xhhz7wv6div8xpi90sc6ibdm40qin21bvi7ymcaa"; }) - (fetchNuGet { pname = "runtime.native.System"; version = "4.3.0"; sha256 = "15hgf6zaq9b8br2wi1i3x0zvmk410nlmsmva9p0bbg73v6hml5k4"; }) - (fetchNuGet { pname = "runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "18pzfdlwsg2nb1jjjjzyb5qlgy6xjxzmhnfaijq5s2jw3cm3ab97"; }) - (fetchNuGet { pname = "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0qyynf9nz5i7pc26cwhgi8j62ps27sqmf78ijcfgzab50z9g8ay3"; }) - (fetchNuGet { pname = "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "1klrs545awhayryma6l7g2pvnp9xy4z0r1i40r80zb45q3i9nbyf"; }) - (fetchNuGet { pname = "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0zcxjv5pckplvkg0r6mw3asggm7aqzbdjimhvsasb0cgm59x09l3"; }) - (fetchNuGet { pname = "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "0vhynn79ih7hw7cwjazn87rm9z9fj0rvxgzlab36jybgcpcgphsn"; }) - (fetchNuGet { pname = "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "160p68l2c7cqmyqjwxydcvgw7lvl1cr0znkw8fp24d1by9mqc8p3"; }) - (fetchNuGet { pname = "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "15zrc8fgd8zx28hdghcj5f5i34wf3l6bq5177075m2bc2j34jrqy"; }) - (fetchNuGet { pname = "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; version = "4.3.0"; sha256 = "1p4dgxax6p7rlgj4q73k73rslcnz4wdcv8q2flg1s8ygwcm58ld5"; }) - (fetchNuGet { pname = "runtime.unix.Microsoft.Win32.Primitives"; version = "4.3.0"; sha256 = "0y61k9zbxhdi0glg154v30kkq7f8646nif8lnnxbvkjpakggd5id"; }) - (fetchNuGet { pname = "runtime.unix.System.Diagnostics.Debug"; version = "4.3.0"; sha256 = "1lps7fbnw34bnh3lm31gs5c0g0dh7548wfmb8zz62v0zqz71msj5"; }) - (fetchNuGet { pname = "runtime.unix.System.IO.FileSystem"; version = "4.3.0"; sha256 = "14nbkhvs7sji5r1saj2x8daz82rnf9kx28d3v2qss34qbr32dzix"; }) - (fetchNuGet { pname = "runtime.unix.System.Private.Uri"; version = "4.3.0"; sha256 = "1jx02q6kiwlvfksq1q9qr17fj78y5v6mwsszav4qcz9z25d5g6vk"; }) - (fetchNuGet { pname = "runtime.unix.System.Runtime.Extensions"; version = "4.3.0"; sha256 = "0pnxxmm8whx38dp6yvwgmh22smknxmqs5n513fc7m4wxvs1bvi4p"; }) - (fetchNuGet { pname = "System.AppContext"; version = "4.1.0"; sha256 = "0fv3cma1jp4vgj7a8hqc9n7hr1f1kjp541s6z0q1r6nazb4iz9mz"; }) - (fetchNuGet { pname = "System.AppContext"; version = "4.3.0"; sha256 = "1649qvy3dar900z3g817h17nl8jp4ka5vcfmsr05kh0fshn7j3ya"; }) - (fetchNuGet { pname = "System.Buffers"; version = "4.3.0"; sha256 = "0fgns20ispwrfqll4q1zc1waqcmylb3zc50ys9x8zlwxh9pmd9jy"; }) - (fetchNuGet { pname = "System.Buffers"; version = "4.4.0"; sha256 = "183f8063w8zqn99pv0ni0nnwh7fgx46qzxamwnans55hhs2l0g19"; }) - (fetchNuGet { pname = "System.Collections"; version = "4.0.11"; sha256 = "1ga40f5lrwldiyw6vy67d0sg7jd7ww6kgwbksm19wrvq9hr0bsm6"; }) - (fetchNuGet { pname = "System.Collections"; version = "4.3.0"; sha256 = "19r4y64dqyrq6k4706dnyhhw7fs24kpp3awak7whzss39dakpxk9"; }) - (fetchNuGet { pname = "System.Collections.Concurrent"; version = "4.3.0"; sha256 = "0wi10md9aq33jrkh2c24wr2n9hrpyamsdhsxdcnf43b7y86kkii8"; }) - (fetchNuGet { pname = "System.Collections.Immutable"; version = "1.5.0"; sha256 = "1d5gjn5afnrf461jlxzawcvihz195gayqpcfbv6dd7pxa9ialn06"; }) - (fetchNuGet { pname = "System.Collections.NonGeneric"; version = "4.3.0"; sha256 = "07q3k0hf3mrcjzwj8fwk6gv3n51cb513w4mgkfxzm3i37sc9kz7k"; }) - (fetchNuGet { pname = "System.Collections.Specialized"; version = "4.3.0"; sha256 = "1sdwkma4f6j85m3dpb53v9vcgd0zyc9jb33f8g63byvijcj39n20"; }) - (fetchNuGet { pname = "System.ComponentModel"; version = "4.3.0"; sha256 = "0986b10ww3nshy30x9sjyzm0jx339dkjxjj3401r3q0f6fx2wkcb"; }) - (fetchNuGet { pname = "System.ComponentModel.EventBasedAsync"; version = "4.3.0"; sha256 = "1rv9bkb8yyhqqqrx6x95njv6mdxlbvv527b44mrd93g8fmgkifl7"; }) - (fetchNuGet { pname = "System.ComponentModel.Primitives"; version = "4.3.0"; sha256 = "1svfmcmgs0w0z9xdw2f2ps05rdxmkxxhf0l17xk9l1l8xfahkqr0"; }) - (fetchNuGet { pname = "System.ComponentModel.TypeConverter"; version = "4.3.0"; sha256 = "17ng0p7v3nbrg3kycz10aqrrlw4lz9hzhws09pfh8gkwicyy481x"; }) - (fetchNuGet { pname = "System.Console"; version = "4.3.0"; sha256 = "1flr7a9x920mr5cjsqmsy9wgnv3lvd0h1g521pdr1lkb2qycy7ay"; }) - (fetchNuGet { pname = "System.Diagnostics.Debug"; version = "4.0.11"; sha256 = "0gmjghrqmlgzxivd2xl50ncbglb7ljzb66rlx8ws6dv8jm0d5siz"; }) - (fetchNuGet { pname = "System.Diagnostics.Debug"; version = "4.3.0"; sha256 = "00yjlf19wjydyr6cfviaph3vsjzg3d5nvnya26i2fvfg53sknh3y"; }) - (fetchNuGet { pname = "System.Diagnostics.FileVersionInfo"; version = "4.3.0"; sha256 = "094hx249lb3vb336q7dg3v257hbxvz2jnalj695l7cg5kxzqwai7"; }) - (fetchNuGet { pname = "System.Diagnostics.Process"; version = "4.3.0"; sha256 = "0g4prsbkygq8m21naqmcp70f24a1ksyix3dihb1r1f71lpi3cfj7"; }) - (fetchNuGet { pname = "System.Diagnostics.StackTrace"; version = "4.3.0"; sha256 = "0ash4h9k0m7xsm0yl79r0ixrdz369h7y922wipp5gladmlbvpyjd"; }) - (fetchNuGet { pname = "System.Diagnostics.Tools"; version = "4.0.1"; sha256 = "19cknvg07yhakcvpxg3cxa0bwadplin6kyxd8mpjjpwnp56nl85x"; }) - (fetchNuGet { pname = "System.Diagnostics.Tools"; version = "4.3.0"; sha256 = "0in3pic3s2ddyibi8cvgl102zmvp9r9mchh82ns9f0ms4basylw1"; }) - (fetchNuGet { pname = "System.Diagnostics.Tracing"; version = "4.3.0"; sha256 = "1m3bx6c2s958qligl67q7grkwfz3w53hpy7nc97mh6f7j5k168c4"; }) - (fetchNuGet { pname = "System.Dynamic.Runtime"; version = "4.0.11"; sha256 = "1pla2dx8gkidf7xkciig6nifdsb494axjvzvann8g2lp3dbqasm9"; }) - (fetchNuGet { pname = "System.Dynamic.Runtime"; version = "4.3.0"; sha256 = "1d951hrvrpndk7insiag80qxjbf2y0y39y8h5hnq9612ws661glk"; }) - (fetchNuGet { pname = "System.Globalization"; version = "4.0.11"; sha256 = "070c5jbas2v7smm660zaf1gh0489xanjqymkvafcs4f8cdrs1d5d"; }) - (fetchNuGet { pname = "System.Globalization"; version = "4.3.0"; sha256 = "1cp68vv683n6ic2zqh2s1fn4c2sd87g5hpp6l4d4nj4536jz98ki"; }) - (fetchNuGet { pname = "System.Globalization.Extensions"; version = "4.3.0"; sha256 = "02a5zfxavhv3jd437bsncbhd2fp1zv4gxzakp1an9l6kdq1mcqls"; }) - (fetchNuGet { pname = "System.IO"; version = "4.1.0"; sha256 = "1g0yb8p11vfd0kbkyzlfsbsp5z44lwsvyc0h3dpw6vqnbi035ajp"; }) - (fetchNuGet { pname = "System.IO"; version = "4.3.0"; sha256 = "05l9qdrzhm4s5dixmx68kxwif4l99ll5gqmh7rqgw554fx0agv5f"; }) - (fetchNuGet { pname = "System.IO.Compression"; version = "4.3.0"; sha256 = "084zc82yi6yllgda0zkgl2ys48sypiswbiwrv7irb3r0ai1fp4vz"; }) - (fetchNuGet { pname = "System.IO.FileSystem"; version = "4.0.1"; sha256 = "0kgfpw6w4djqra3w5crrg8xivbanh1w9dh3qapb28q060wb9flp1"; }) - (fetchNuGet { pname = "System.IO.FileSystem"; version = "4.3.0"; sha256 = "0z2dfrbra9i6y16mm9v1v6k47f0fm617vlb7s5iybjjsz6g1ilmw"; }) - (fetchNuGet { pname = "System.IO.FileSystem.Primitives"; version = "4.0.1"; sha256 = "1s0mniajj3lvbyf7vfb5shp4ink5yibsx945k6lvxa96r8la1612"; }) - (fetchNuGet { pname = "System.IO.FileSystem.Primitives"; version = "4.3.0"; sha256 = "0j6ndgglcf4brg2lz4wzsh1av1gh8xrzdsn9f0yznskhqn1xzj9c"; }) - (fetchNuGet { pname = "System.Linq"; version = "4.1.0"; sha256 = "1ppg83svb39hj4hpp5k7kcryzrf3sfnm08vxd5sm2drrijsla2k5"; }) - (fetchNuGet { pname = "System.Linq"; version = "4.3.0"; sha256 = "1w0gmba695rbr80l1k2h4mrwzbzsyfl2z4klmpbsvsg5pm4a56s7"; }) - (fetchNuGet { pname = "System.Linq.Expressions"; version = "4.1.0"; sha256 = "1gpdxl6ip06cnab7n3zlcg6mqp7kknf73s8wjinzi4p0apw82fpg"; }) - (fetchNuGet { pname = "System.Linq.Expressions"; version = "4.3.0"; sha256 = "0ky2nrcvh70rqq88m9a5yqabsl4fyd17bpr63iy2mbivjs2nyypv"; }) - (fetchNuGet { pname = "System.Management"; version = "4.5.0"; sha256 = "19z5x23n21xi94bgl531l9hrm64nyw9d5fpd7klfvr5xfsbh9jwr"; }) - (fetchNuGet { pname = "System.Memory"; version = "4.5.3"; sha256 = "0naqahm3wljxb5a911d37mwjqjdxv9l0b49p5dmfyijvni2ppy8a"; }) - (fetchNuGet { pname = "System.Numerics.Vectors"; version = "4.4.0"; sha256 = "0rdvma399070b0i46c4qq1h2yvjj3k013sqzkilz4bz5cwmx1rba"; }) - (fetchNuGet { pname = "System.ObjectModel"; version = "4.0.12"; sha256 = "1sybkfi60a4588xn34nd9a58png36i0xr4y4v4kqpg8wlvy5krrj"; }) - (fetchNuGet { pname = "System.Private.Uri"; version = "4.3.0"; sha256 = "04r1lkdnsznin0fj4ya1zikxiqr0h6r6a1ww2dsm60gqhdrf0mvx"; }) - (fetchNuGet { pname = "System.Reflection"; version = "4.1.0"; sha256 = "1js89429pfw79mxvbzp8p3q93il6rdff332hddhzi5wqglc4gml9"; }) - (fetchNuGet { pname = "System.Reflection"; version = "4.3.0"; sha256 = "0xl55k0mw8cd8ra6dxzh974nxif58s3k1rjv1vbd7gjbjr39j11m"; }) - (fetchNuGet { pname = "System.Reflection.Emit"; version = "4.0.1"; sha256 = "0ydqcsvh6smi41gyaakglnv252625hf29f7kywy2c70nhii2ylqp"; }) - (fetchNuGet { pname = "System.Reflection.Emit"; version = "4.3.0"; sha256 = "11f8y3qfysfcrscjpjym9msk7lsfxkk4fmz9qq95kn3jd0769f74"; }) - (fetchNuGet { pname = "System.Reflection.Emit.ILGeneration"; version = "4.0.1"; sha256 = "1pcd2ig6bg144y10w7yxgc9d22r7c7ww7qn1frdfwgxr24j9wvv0"; }) - (fetchNuGet { pname = "System.Reflection.Emit.ILGeneration"; version = "4.3.0"; sha256 = "0w1n67glpv8241vnpz1kl14sy7zlnw414aqwj4hcx5nd86f6994q"; }) - (fetchNuGet { pname = "System.Reflection.Emit.Lightweight"; version = "4.0.1"; sha256 = "1s4b043zdbx9k39lfhvsk68msv1nxbidhkq6nbm27q7sf8xcsnxr"; }) - (fetchNuGet { pname = "System.Reflection.Emit.Lightweight"; version = "4.3.0"; sha256 = "0ql7lcakycrvzgi9kxz1b3lljd990az1x6c4jsiwcacrvimpib5c"; }) - (fetchNuGet { pname = "System.Reflection.Extensions"; version = "4.0.1"; sha256 = "0m7wqwq0zqq9gbpiqvgk3sr92cbrw7cp3xn53xvw7zj6rz6fdirn"; }) - (fetchNuGet { pname = "System.Reflection.Extensions"; version = "4.3.0"; sha256 = "02bly8bdc98gs22lqsfx9xicblszr2yan7v2mmw3g7hy6miq5hwq"; }) - (fetchNuGet { pname = "System.Reflection.Metadata"; version = "1.6.0"; sha256 = "1wdbavrrkajy7qbdblpbpbalbdl48q3h34cchz24gvdgyrlf15r4"; }) - (fetchNuGet { pname = "System.Reflection.Primitives"; version = "4.0.1"; sha256 = "1bangaabhsl4k9fg8khn83wm6yial8ik1sza7401621jc6jrym28"; }) - (fetchNuGet { pname = "System.Reflection.Primitives"; version = "4.3.0"; sha256 = "04xqa33bld78yv5r93a8n76shvc8wwcdgr1qvvjh959g3rc31276"; }) - (fetchNuGet { pname = "System.Reflection.TypeExtensions"; version = "4.1.0"; sha256 = "1bjli8a7sc7jlxqgcagl9nh8axzfl11f4ld3rjqsyxc516iijij7"; }) - (fetchNuGet { pname = "System.Reflection.TypeExtensions"; version = "4.3.0"; sha256 = "0y2ssg08d817p0vdag98vn238gyrrynjdj4181hdg780sif3ykp1"; }) - (fetchNuGet { pname = "System.Resources.ResourceManager"; version = "4.0.1"; sha256 = "0b4i7mncaf8cnai85jv3wnw6hps140cxz8vylv2bik6wyzgvz7bi"; }) - (fetchNuGet { pname = "System.Resources.ResourceManager"; version = "4.3.0"; sha256 = "0sjqlzsryb0mg4y4xzf35xi523s4is4hz9q4qgdvlvgivl7qxn49"; }) - (fetchNuGet { pname = "System.Runtime"; version = "4.1.0"; sha256 = "02hdkgk13rvsd6r9yafbwzss8kr55wnj8d5c7xjnp8gqrwc8sn0m"; }) - (fetchNuGet { pname = "System.Runtime"; version = "4.3.0"; sha256 = "066ixvgbf2c929kgknshcxqj6539ax7b9m570cp8n179cpfkapz7"; }) - (fetchNuGet { pname = "System.Runtime.CompilerServices.Unsafe"; version = "4.5.2"; sha256 = "1vz4275fjij8inf31np78hw50al8nqkngk04p3xv5n4fcmf1grgi"; }) - (fetchNuGet { pname = "System.Runtime.Extensions"; version = "4.1.0"; sha256 = "0rw4rm4vsm3h3szxp9iijc3ksyviwsv6f63dng3vhqyg4vjdkc2z"; }) - (fetchNuGet { pname = "System.Runtime.Extensions"; version = "4.3.0"; sha256 = "1ykp3dnhwvm48nap8q23893hagf665k0kn3cbgsqpwzbijdcgc60"; }) - (fetchNuGet { pname = "System.Runtime.Handles"; version = "4.0.1"; sha256 = "1g0zrdi5508v49pfm3iii2hn6nm00bgvfpjq1zxknfjrxxa20r4g"; }) - (fetchNuGet { pname = "System.Runtime.Handles"; version = "4.3.0"; sha256 = "0sw2gfj2xr7sw9qjn0j3l9yw07x73lcs97p8xfc9w1x9h5g5m7i8"; }) - (fetchNuGet { pname = "System.Runtime.InteropServices"; version = "4.1.0"; sha256 = "01kxqppx3dr3b6b286xafqilv4s2n0gqvfgzfd4z943ga9i81is1"; }) - (fetchNuGet { pname = "System.Runtime.InteropServices"; version = "4.3.0"; sha256 = "00hywrn4g7hva1b2qri2s6rabzwgxnbpw9zfxmz28z09cpwwgh7j"; }) - (fetchNuGet { pname = "System.Runtime.InteropServices.RuntimeInformation"; version = "4.0.0"; sha256 = "0glmvarf3jz5xh22iy3w9v3wyragcm4hfdr17v90vs7vcrm7fgp6"; }) - (fetchNuGet { pname = "System.Runtime.InteropServices.RuntimeInformation"; version = "4.3.0"; sha256 = "0q18r1sh4vn7bvqgd6dmqlw5v28flbpj349mkdish2vjyvmnb2ii"; }) - (fetchNuGet { pname = "System.Runtime.Numerics"; version = "4.3.0"; sha256 = "19rav39sr5dky7afygh309qamqqmi9kcwvz3i0c5700v0c5cg61z"; }) - (fetchNuGet { pname = "System.Runtime.Serialization.Primitives"; version = "4.1.1"; sha256 = "042rfjixknlr6r10vx2pgf56yming8lkjikamg3g4v29ikk78h7k"; }) - (fetchNuGet { pname = "System.Security.AccessControl"; version = "4.5.0"; sha256 = "1wvwanz33fzzbnd2jalar0p0z3x0ba53vzx1kazlskp7pwyhlnq0"; }) - (fetchNuGet { pname = "System.Security.Cryptography.Algorithms"; version = "4.3.0"; sha256 = "03sq183pfl5kp7gkvq77myv7kbpdnq3y0xj7vi4q1kaw54sny0ml"; }) - (fetchNuGet { pname = "System.Security.Cryptography.Encoding"; version = "4.3.0"; sha256 = "1jr6w70igqn07k5zs1ph6xja97hxnb3mqbspdrff6cvssgrixs32"; }) - (fetchNuGet { pname = "System.Security.Cryptography.Primitives"; version = "4.3.0"; sha256 = "0pyzncsv48zwly3lw4f2dayqswcfvdwq2nz0dgwmi7fj3pn64wby"; }) - (fetchNuGet { pname = "System.Security.Cryptography.X509Certificates"; version = "4.3.0"; sha256 = "0valjcz5wksbvijylxijjxb1mp38mdhv03r533vnx1q3ikzdav9h"; }) - (fetchNuGet { pname = "System.Security.Principal.Windows"; version = "4.5.0"; sha256 = "0rmj89wsl5yzwh0kqjgx45vzf694v9p92r4x4q6yxldk1cv1hi86"; }) - (fetchNuGet { pname = "System.Text.Encoding"; version = "4.0.11"; sha256 = "1dyqv0hijg265dwxg6l7aiv74102d6xjiwplh2ar1ly6xfaa4iiw"; }) - (fetchNuGet { pname = "System.Text.Encoding"; version = "4.3.0"; sha256 = "1f04lkir4iladpp51sdgmis9dj4y8v08cka0mbmsy0frc9a4gjqr"; }) - (fetchNuGet { pname = "System.Text.Encoding.CodePages"; version = "4.3.0"; sha256 = "0lgxg1gn7pg7j0f942pfdc9q7wamzxsgq3ng248ikdasxz0iadkv"; }) - (fetchNuGet { pname = "System.Text.Encoding.Extensions"; version = "4.0.11"; sha256 = "08nsfrpiwsg9x5ml4xyl3zyvjfdi4mvbqf93kjdh11j4fwkznizs"; }) - (fetchNuGet { pname = "System.Text.Encoding.Extensions"; version = "4.3.0"; sha256 = "11q1y8hh5hrp5a3kw25cb6l00v5l5dvirkz8jr3sq00h1xgcgrxy"; }) - (fetchNuGet { pname = "System.Text.RegularExpressions"; version = "4.1.0"; sha256 = "1mw7vfkkyd04yn2fbhm38msk7dz2xwvib14ygjsb8dq2lcvr18y7"; }) - (fetchNuGet { pname = "System.Text.RegularExpressions"; version = "4.3.0"; sha256 = "1bgq51k7fwld0njylfn7qc5fmwrk2137gdq7djqdsw347paa9c2l"; }) - (fetchNuGet { pname = "System.Threading"; version = "4.0.11"; sha256 = "19x946h926bzvbsgj28csn46gak2crv2skpwsx80hbgazmkgb1ls"; }) - (fetchNuGet { pname = "System.Threading"; version = "4.3.0"; sha256 = "0rw9wfamvhayp5zh3j7p1yfmx9b5khbf4q50d8k5rk993rskfd34"; }) - (fetchNuGet { pname = "System.Threading.Tasks"; version = "4.0.11"; sha256 = "0nr1r41rak82qfa5m0lhk9mp0k93bvfd7bbd9sdzwx9mb36g28p5"; }) - (fetchNuGet { pname = "System.Threading.Tasks"; version = "4.3.0"; sha256 = "134z3v9abw3a6jsw17xl3f6hqjpak5l682k2vz39spj4kmydg6k7"; }) - (fetchNuGet { pname = "System.Threading.Tasks.Extensions"; version = "4.0.0"; sha256 = "1cb51z062mvc2i8blpzmpn9d9mm4y307xrwi65di8ri18cz5r1zr"; }) - (fetchNuGet { pname = "System.Threading.Tasks.Extensions"; version = "4.3.0"; sha256 = "1xxcx2xh8jin360yjwm4x4cf5y3a2bwpn2ygkfkwkicz7zk50s2z"; }) - (fetchNuGet { pname = "System.Threading.Tasks.Extensions"; version = "4.5.2"; sha256 = "1sh63dz0dymqcwmprp0nadm77b83vmm7lyllpv578c397bslb8hj"; }) - (fetchNuGet { pname = "System.Threading.Tasks.Parallel"; version = "4.3.0"; sha256 = "1rr3qa4hxwyj531s4nb3bwrxnxxwz617i0n9gh6x7nr7dd3ayzgh"; }) - (fetchNuGet { pname = "System.Threading.Thread"; version = "4.3.0"; sha256 = "0y2xiwdfcph7znm2ysxanrhbqqss6a3shi1z3c779pj2s523mjx4"; }) - (fetchNuGet { pname = "System.Threading.ThreadPool"; version = "4.3.0"; sha256 = "027s1f4sbx0y1xqw2irqn6x161lzj8qwvnh2gn78ciiczdv10vf1"; }) - (fetchNuGet { pname = "System.ValueTuple"; version = "4.5.0"; sha256 = "00k8ja51d0f9wrq4vv5z2jhq8hy31kac2rg0rv06prylcybzl8cy"; }) - (fetchNuGet { pname = "System.Xml.ReaderWriter"; version = "4.0.11"; sha256 = "0c6ky1jk5ada9m94wcadih98l6k1fvf6vi7vhn1msjixaha419l5"; }) - (fetchNuGet { pname = "System.Xml.ReaderWriter"; version = "4.3.0"; sha256 = "0c47yllxifzmh8gq6rq6l36zzvw4kjvlszkqa9wq3fr59n0hl3s1"; }) - (fetchNuGet { pname = "System.Xml.XDocument"; version = "4.0.11"; sha256 = "0n4lvpqzy9kc7qy1a4acwwd7b7pnvygv895az5640idl2y9zbz18"; }) - (fetchNuGet { pname = "System.Xml.XDocument"; version = "4.3.0"; sha256 = "08h8fm4l77n0nd4i4fk2386y809bfbwqb7ih9d7564ifcxr5ssxd"; }) - (fetchNuGet { pname = "System.Xml.XmlDocument"; version = "4.3.0"; sha256 = "0bmz1l06dihx52jxjr22dyv5mxv6pj4852lx68grjm7bivhrbfwi"; }) - (fetchNuGet { pname = "System.Xml.XPath"; version = "4.3.0"; sha256 = "1cv2m0p70774a0sd1zxc8fm8jk3i5zk2bla3riqvi8gsm0r4kpci"; }) - (fetchNuGet { pname = "System.Xml.XPath.XDocument"; version = "4.3.0"; sha256 = "1wxckyb7n1pi433xzz0qcwcbl1swpra64065mbwwi8dhdc4kiabn"; }) - (fetchNuGet { pname = "System.Xml.XPath.XmlDocument"; version = "4.3.0"; sha256 = "1h9lh7qkp0lff33z847sdfjj8yaz98ylbnkbxlnsbflhj9xyfqrm"; }) +{ fetchNuGet }: +[ + (fetchNuGet { + pname = "BenchmarkDotNet"; + version = "0.13.1"; + sha256 = "1kgypxfp34vjy9kvqq8csznsjbnv37pp4r0457i5l1j6zrsm76rp"; + }) + (fetchNuGet { + pname = "BenchmarkDotNet.Annotations"; + version = "0.13.1"; + sha256 = "0fizarpvdajwcvfhd45c35xrnrci5rbn5ksf3zvlw4q300hnlsir"; + }) + (fetchNuGet { + pname = "CommandLineParser"; + version = "2.4.3"; + sha256 = "1aca3q25n3dg55v4j3kzlzfzd5k2jpy6zhp8x7g74pdfdqzrhg55"; + }) + (fetchNuGet { + pname = "Iced"; + version = "1.8.0"; + sha256 = "12cgd9p3jm81wd7m8bp3pm20gmrmbad2hcwzynhz644h3062nn24"; + }) + (fetchNuGet { + pname = "Lost.Compat.NullabilityAttributes"; + version = "0.0.4"; + sha256 = "1h8m1n4x1p69xh86ia1rf4dcr17w965fpxws7d3458r4w1wl143a"; + }) + (fetchNuGet { + pname = "Microsoft.Build.Tasks.Git"; + version = "1.1.1"; + sha256 = "1bb5p4zlnfn88skkvymxfsn0jybqncl4356hwnic9jxdq2d4fz1w"; + }) + (fetchNuGet { + pname = "Microsoft.CodeAnalysis.Analyzers"; + version = "2.6.1"; + sha256 = "1plk343h9fyxg08b9bcnlqyaq00cbnc1v73pj9nbcyphmgf5bqfp"; + }) + (fetchNuGet { + pname = "Microsoft.CodeAnalysis.Common"; + version = "2.10.0"; + sha256 = "1l690xqrhmkasns5ghz0vqj8n2xyl5yrwan5gs52hwfxdwahqaaj"; + }) + (fetchNuGet { + pname = "Microsoft.CodeAnalysis.CSharp"; + version = "2.10.0"; + sha256 = "0saabsr81crawdzs2cnzyjp5cgg2hk5k6q7n0i0pxghswb0m4dxk"; + }) + (fetchNuGet { + pname = "Microsoft.CodeCoverage"; + version = "16.11.0"; + sha256 = "0f41l3kks6wk5vjaxpjh8m2flnrvlbvqgqflamhv8rfz4y8ifgdv"; + }) + (fetchNuGet { + pname = "Microsoft.CodeCoverage"; + version = "17.0.0"; + sha256 = "18gdbsqf6i79ld4ikqr4jhx9ndsggm865b5xj1xmnmgg12ydp19a"; + }) + (fetchNuGet { + pname = "Microsoft.CodeCoverage"; + version = "17.6.2"; + sha256 = "1wwmg6hn4dp2mvwn2bm81wccdw149lq17xdnpz17mvg4zcwmax7g"; + }) + (fetchNuGet { + pname = "Microsoft.CSharp"; + version = "4.7.0"; + sha256 = "0gd67zlw554j098kabg887b5a6pq9kzavpa3jjy5w53ccjzjfy8j"; + }) + (fetchNuGet { + pname = "Microsoft.Diagnostics.NETCore.Client"; + version = "0.2.61701"; + sha256 = "1ic1607jj4ln8dbibf1fz5v9svk9x2kqlgvhndc6ijaqnbc4wcr1"; + }) + (fetchNuGet { + pname = "Microsoft.Diagnostics.Runtime"; + version = "1.1.126102"; + sha256 = "0w7jcxkd4cix6dbh0szawilmykjmdc1rqysllrpwb7ivrxzazypn"; + }) + (fetchNuGet { + pname = "Microsoft.Diagnostics.Tracing.TraceEvent"; + version = "2.0.61"; + sha256 = "0gq51l4yyyn8dir6w41im9fwhw9r6jz6n7jm4zhmvvway5ijbcac"; + }) + (fetchNuGet { + pname = "Microsoft.DotNet.InternalAbstractions"; + version = "1.0.0"; + sha256 = "0mp8ihqlb7fsa789frjzidrfjc1lrhk88qp3xm5qvr7vf4wy4z8x"; + }) + (fetchNuGet { + pname = "Microsoft.DotNet.PlatformAbstractions"; + version = "2.1.0"; + sha256 = "1qydvyyinj3b5mraazjal3n2k7jqhn05b6n1a2f3qjkqkxi63dmy"; + }) + (fetchNuGet { + pname = "Microsoft.Net.Compilers.Toolset"; + version = "4.0.1"; + sha256 = "08njbdnmjzjd6phys94w0di3vcxfq7pniad6s3jc5f65r9s1f0w2"; + }) + (fetchNuGet { + pname = "Microsoft.NET.Test.Sdk"; + version = "16.11.0"; + sha256 = "1a2y6vw6p9xp3w72zq2lwrjl8bxv87s9d7zd2dh4zwbzh1c5slxl"; + }) + (fetchNuGet { + pname = "Microsoft.NET.Test.Sdk"; + version = "17.0.0"; + sha256 = "0bknyf5kig5icwjxls7pcn51x2b2qf91dz9qv67fl70v6cczaz2r"; + }) + (fetchNuGet { + pname = "Microsoft.NET.Test.Sdk"; + version = "17.6.2"; + sha256 = "1a658bnh5q3lfkrr81h3lyx1mc3hggnjr1bpmim71rr2s42ad70v"; + }) + (fetchNuGet { + pname = "Microsoft.NETCore.Platforms"; + version = "1.0.1"; + sha256 = "01al6cfxp68dscl15z7rxfw9zvhm64dncsw09a1vmdkacsa2v6lr"; + }) + (fetchNuGet { + pname = "Microsoft.NETCore.Platforms"; + version = "1.1.0"; + sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm"; + }) + (fetchNuGet { + pname = "Microsoft.NETCore.Targets"; + version = "1.0.1"; + sha256 = "0ppdkwy6s9p7x9jix3v4402wb171cdiibq7js7i13nxpdky7074p"; + }) + (fetchNuGet { + pname = "Microsoft.NETCore.Targets"; + version = "1.1.0"; + sha256 = "193xwf33fbm0ni3idxzbr5fdq3i2dlfgihsac9jj7whj0gd902nh"; + }) + (fetchNuGet { + pname = "Microsoft.NETFramework.ReferenceAssemblies"; + version = "1.0.0"; + sha256 = "0na724xhvqm63vq9y18fl9jw9q2v99bdwr353378s5fsi11qzxp9"; + }) + (fetchNuGet { + pname = "Microsoft.NETFramework.ReferenceAssemblies.net461"; + version = "1.0.0"; + sha256 = "00vkn4c6i0rn1l9pv912y0wgb9h6ks76qah8hvk441nari8fqbm1"; + }) + (fetchNuGet { + pname = "Microsoft.NETFramework.ReferenceAssemblies.net472"; + version = "1.0.0"; + sha256 = "1bqinq2nxnpqxziypg1sqy3ly0nymxxjpn8fwkn3rl4vl6gdg3rc"; + }) + (fetchNuGet { + pname = "Microsoft.SourceLink.Common"; + version = "1.1.1"; + sha256 = "0xkdqs7az2cprar7jzjlgjpd64l6f8ixcmwmpkdm03fyb4s5m0bg"; + }) + (fetchNuGet { + pname = "Microsoft.SourceLink.GitHub"; + version = "1.1.1"; + sha256 = "099y35f2npvva3jk1zp8hn0vb9pwm2l0ivjasdly6y2idv53s5yy"; + }) + (fetchNuGet { + pname = "Microsoft.TestPlatform.ObjectModel"; + version = "16.11.0"; + sha256 = "1fc0ghk1cny4i8w43b94pxhl0srxisv6kaflkkp30ncsa9szhkxh"; + }) + (fetchNuGet { + pname = "Microsoft.TestPlatform.ObjectModel"; + version = "17.6.2"; + sha256 = "0asbrbdyyig1p034smf79lszzbfv1cn6q181i7d4p2vsiqpjp9sj"; + }) + (fetchNuGet { + pname = "Microsoft.TestPlatform.TestHost"; + version = "16.11.0"; + sha256 = "0hp1vndf2jhyg1f3miq4g2068z5kpfzy6nmswm25vymghxp1ws4k"; + }) + (fetchNuGet { + pname = "Microsoft.TestPlatform.TestHost"; + version = "17.6.2"; + sha256 = "0lcj8kkcnxbwiaw6j0xf4fxqpa6z0s41nq52spvckfg4367lg4fg"; + }) + (fetchNuGet { + pname = "Microsoft.Win32.Primitives"; + version = "4.3.0"; + sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq"; + }) + (fetchNuGet { + pname = "Microsoft.Win32.Registry"; + version = "4.3.0"; + sha256 = "1gxyzxam8163vk1kb6xzxjj4iwspjsz9zhgn1w9rjzciphaz0ig7"; + }) + (fetchNuGet { + pname = "Microsoft.Win32.Registry"; + version = "4.5.0"; + sha256 = "1zapbz161ji8h82xiajgriq6zgzmb1f3ar517p2h63plhsq5gh2q"; + }) + (fetchNuGet { + pname = "NETStandard.Library"; + version = "2.0.0"; + sha256 = "1bc4ba8ahgk15m8k4nd7x406nhi0kwqzbgjk2dmw52ss553xz7iy"; + }) + (fetchNuGet { + pname = "NETStandard.Library"; + version = "2.0.3"; + sha256 = "1fn9fxppfcg4jgypp2pmrpr6awl3qz1xmnri0cygpkwvyx27df1y"; + }) + (fetchNuGet { + pname = "Newtonsoft.Json"; + version = "13.0.1"; + sha256 = "0fijg0w6iwap8gvzyjnndds0q4b8anwxxvik7y8vgq97dram4srb"; + }) + (fetchNuGet { + pname = "Newtonsoft.Json"; + version = "9.0.1"; + sha256 = "0mcy0i7pnfpqm4pcaiyzzji4g0c8i3a5gjz28rrr28110np8304r"; + }) + (fetchNuGet { + pname = "NonCopyableAnalyzer"; + version = "0.7.0"; + sha256 = "1jry36p53fkk3fn9pawgg7qiv79j30y0kvd4xrnd58d7zg7zzdj0"; + }) + (fetchNuGet { + pname = "NuGet.Frameworks"; + version = "5.0.0"; + sha256 = "18ijvmj13cwjdrrm52c8fpq021531zaz4mj4b4zapxaqzzxf2qjr"; + }) + (fetchNuGet { + pname = "NuGet.Frameworks"; + version = "6.5.0"; + sha256 = "0s37d1p4md0k6d4cy6sq36f2dgkd9qfbzapxhkvi8awwh0vrynhj"; + }) + (fetchNuGet { + pname = "NUnit"; + version = "3.12.0"; + sha256 = "1880j2xwavi8f28vxan3hyvdnph4nlh5sbmh285s4lc9l0b7bdk2"; + }) + (fetchNuGet { + pname = "NUnit"; + version = "3.13.3"; + sha256 = "0wdzfkygqnr73s6lpxg5b1pwaqz9f414fxpvpdmf72bvh4jaqzv6"; + }) + (fetchNuGet { + pname = "NUnit3TestAdapter"; + version = "3.16.1"; + sha256 = "1pzhmapfdszsfza7zjr3zrlz4fssdxsyiwmlj76a40mbhxhfa4q9"; + }) + (fetchNuGet { + pname = "NUnit3TestAdapter"; + version = "3.17.0"; + sha256 = "0kxc6z3b8ccdrcyqz88jm5yh5ch9nbg303v67q8sp5hhs8rl8nk6"; + }) + (fetchNuGet { + pname = "NUnit3TestAdapter"; + version = "4.5.0"; + sha256 = "1srx1629s0k1kmf02nmz251q07vj6pv58mdafcr5dr0bbn1fh78i"; + }) + (fetchNuGet { + pname = "Perfolizer"; + version = "0.2.1"; + sha256 = "012aqqi3y3nfikqmn26yajpwd52c04zlzp0p91iyslw7mf26qncy"; + }) + (fetchNuGet { + pname = "runtime.any.System.Collections"; + version = "4.3.0"; + sha256 = "0bv5qgm6vr47ynxqbnkc7i797fdi8gbjjxii173syrx14nmrkwg0"; + }) + (fetchNuGet { + pname = "runtime.any.System.Diagnostics.Tools"; + version = "4.3.0"; + sha256 = "1wl76vk12zhdh66vmagni66h5xbhgqq7zkdpgw21jhxhvlbcl8pk"; + }) + (fetchNuGet { + pname = "runtime.any.System.Diagnostics.Tracing"; + version = "4.3.0"; + sha256 = "00j6nv2xgmd3bi347k00m7wr542wjlig53rmj28pmw7ddcn97jbn"; + }) + (fetchNuGet { + pname = "runtime.any.System.Globalization"; + version = "4.3.0"; + sha256 = "1daqf33hssad94lamzg01y49xwndy2q97i2lrb7mgn28656qia1x"; + }) + (fetchNuGet { + pname = "runtime.any.System.IO"; + version = "4.3.0"; + sha256 = "0l8xz8zn46w4d10bcn3l4yyn4vhb3lrj2zw8llvz7jk14k4zps5x"; + }) + (fetchNuGet { + pname = "runtime.any.System.Reflection"; + version = "4.3.0"; + sha256 = "02c9h3y35pylc0zfq3wcsvc5nqci95nrkq0mszifc0sjx7xrzkly"; + }) + (fetchNuGet { + pname = "runtime.any.System.Reflection.Extensions"; + version = "4.3.0"; + sha256 = "0zyri97dfc5vyaz9ba65hjj1zbcrzaffhsdlpxc9bh09wy22fq33"; + }) + (fetchNuGet { + pname = "runtime.any.System.Reflection.Primitives"; + version = "4.3.0"; + sha256 = "0x1mm8c6iy8rlxm8w9vqw7gb7s1ljadrn049fmf70cyh42vdfhrf"; + }) + (fetchNuGet { + pname = "runtime.any.System.Resources.ResourceManager"; + version = "4.3.0"; + sha256 = "03kickal0iiby82wa5flar18kyv82s9s6d4xhk5h4bi5kfcyfjzl"; + }) + (fetchNuGet { + pname = "runtime.any.System.Runtime"; + version = "4.3.0"; + sha256 = "1cqh1sv3h5j7ixyb7axxbdkqx6cxy00p4np4j91kpm492rf4s25b"; + }) + (fetchNuGet { + pname = "runtime.any.System.Runtime.Handles"; + version = "4.3.0"; + sha256 = "0bh5bi25nk9w9xi8z23ws45q5yia6k7dg3i4axhfqlnj145l011x"; + }) + (fetchNuGet { + pname = "runtime.any.System.Runtime.InteropServices"; + version = "4.3.0"; + sha256 = "0c3g3g3jmhlhw4klrc86ka9fjbl7i59ds1fadsb2l8nqf8z3kb19"; + }) + (fetchNuGet { + pname = "runtime.any.System.Text.Encoding"; + version = "4.3.0"; + sha256 = "0aqqi1v4wx51h51mk956y783wzags13wa7mgqyclacmsmpv02ps3"; + }) + (fetchNuGet { + pname = "runtime.any.System.Text.Encoding.Extensions"; + version = "4.3.0"; + sha256 = "0lqhgqi0i8194ryqq6v2gqx0fb86db2gqknbm0aq31wb378j7ip8"; + }) + (fetchNuGet { + pname = "runtime.any.System.Threading.Tasks"; + version = "4.3.0"; + sha256 = "03mnvkhskbzxddz4hm113zsch1jyzh2cs450dk3rgfjp8crlw1va"; + }) + (fetchNuGet { + pname = "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "16rnxzpk5dpbbl1x354yrlsbvwylrq456xzpsha1n9y3glnhyx9d"; + }) + (fetchNuGet { + pname = "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "0hkg03sgm2wyq8nqk6dbm9jh5vcq57ry42lkqdmfklrw89lsmr59"; + }) + (fetchNuGet { + pname = "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "0c2p354hjx58xhhz7wv6div8xpi90sc6ibdm40qin21bvi7ymcaa"; + }) + (fetchNuGet { + pname = "runtime.native.System"; + version = "4.3.0"; + sha256 = "15hgf6zaq9b8br2wi1i3x0zvmk410nlmsmva9p0bbg73v6hml5k4"; + }) + (fetchNuGet { + pname = "runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "18pzfdlwsg2nb1jjjjzyb5qlgy6xjxzmhnfaijq5s2jw3cm3ab97"; + }) + (fetchNuGet { + pname = "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "0qyynf9nz5i7pc26cwhgi8j62ps27sqmf78ijcfgzab50z9g8ay3"; + }) + (fetchNuGet { + pname = "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "1klrs545awhayryma6l7g2pvnp9xy4z0r1i40r80zb45q3i9nbyf"; + }) + (fetchNuGet { + pname = "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "0zcxjv5pckplvkg0r6mw3asggm7aqzbdjimhvsasb0cgm59x09l3"; + }) + (fetchNuGet { + pname = "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "0vhynn79ih7hw7cwjazn87rm9z9fj0rvxgzlab36jybgcpcgphsn"; + }) + (fetchNuGet { + pname = "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "160p68l2c7cqmyqjwxydcvgw7lvl1cr0znkw8fp24d1by9mqc8p3"; + }) + (fetchNuGet { + pname = "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "15zrc8fgd8zx28hdghcj5f5i34wf3l6bq5177075m2bc2j34jrqy"; + }) + (fetchNuGet { + pname = "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl"; + version = "4.3.0"; + sha256 = "1p4dgxax6p7rlgj4q73k73rslcnz4wdcv8q2flg1s8ygwcm58ld5"; + }) + (fetchNuGet { + pname = "runtime.unix.Microsoft.Win32.Primitives"; + version = "4.3.0"; + sha256 = "0y61k9zbxhdi0glg154v30kkq7f8646nif8lnnxbvkjpakggd5id"; + }) + (fetchNuGet { + pname = "runtime.unix.System.Diagnostics.Debug"; + version = "4.3.0"; + sha256 = "1lps7fbnw34bnh3lm31gs5c0g0dh7548wfmb8zz62v0zqz71msj5"; + }) + (fetchNuGet { + pname = "runtime.unix.System.IO.FileSystem"; + version = "4.3.0"; + sha256 = "14nbkhvs7sji5r1saj2x8daz82rnf9kx28d3v2qss34qbr32dzix"; + }) + (fetchNuGet { + pname = "runtime.unix.System.Private.Uri"; + version = "4.3.0"; + sha256 = "1jx02q6kiwlvfksq1q9qr17fj78y5v6mwsszav4qcz9z25d5g6vk"; + }) + (fetchNuGet { + pname = "runtime.unix.System.Runtime.Extensions"; + version = "4.3.0"; + sha256 = "0pnxxmm8whx38dp6yvwgmh22smknxmqs5n513fc7m4wxvs1bvi4p"; + }) + (fetchNuGet { + pname = "System.AppContext"; + version = "4.1.0"; + sha256 = "0fv3cma1jp4vgj7a8hqc9n7hr1f1kjp541s6z0q1r6nazb4iz9mz"; + }) + (fetchNuGet { + pname = "System.AppContext"; + version = "4.3.0"; + sha256 = "1649qvy3dar900z3g817h17nl8jp4ka5vcfmsr05kh0fshn7j3ya"; + }) + (fetchNuGet { + pname = "System.Buffers"; + version = "4.3.0"; + sha256 = "0fgns20ispwrfqll4q1zc1waqcmylb3zc50ys9x8zlwxh9pmd9jy"; + }) + (fetchNuGet { + pname = "System.Buffers"; + version = "4.4.0"; + sha256 = "183f8063w8zqn99pv0ni0nnwh7fgx46qzxamwnans55hhs2l0g19"; + }) + (fetchNuGet { + pname = "System.Collections"; + version = "4.0.11"; + sha256 = "1ga40f5lrwldiyw6vy67d0sg7jd7ww6kgwbksm19wrvq9hr0bsm6"; + }) + (fetchNuGet { + pname = "System.Collections"; + version = "4.3.0"; + sha256 = "19r4y64dqyrq6k4706dnyhhw7fs24kpp3awak7whzss39dakpxk9"; + }) + (fetchNuGet { + pname = "System.Collections.Concurrent"; + version = "4.3.0"; + sha256 = "0wi10md9aq33jrkh2c24wr2n9hrpyamsdhsxdcnf43b7y86kkii8"; + }) + (fetchNuGet { + pname = "System.Collections.Immutable"; + version = "1.5.0"; + sha256 = "1d5gjn5afnrf461jlxzawcvihz195gayqpcfbv6dd7pxa9ialn06"; + }) + (fetchNuGet { + pname = "System.Collections.NonGeneric"; + version = "4.3.0"; + sha256 = "07q3k0hf3mrcjzwj8fwk6gv3n51cb513w4mgkfxzm3i37sc9kz7k"; + }) + (fetchNuGet { + pname = "System.Collections.Specialized"; + version = "4.3.0"; + sha256 = "1sdwkma4f6j85m3dpb53v9vcgd0zyc9jb33f8g63byvijcj39n20"; + }) + (fetchNuGet { + pname = "System.ComponentModel"; + version = "4.3.0"; + sha256 = "0986b10ww3nshy30x9sjyzm0jx339dkjxjj3401r3q0f6fx2wkcb"; + }) + (fetchNuGet { + pname = "System.ComponentModel.EventBasedAsync"; + version = "4.3.0"; + sha256 = "1rv9bkb8yyhqqqrx6x95njv6mdxlbvv527b44mrd93g8fmgkifl7"; + }) + (fetchNuGet { + pname = "System.ComponentModel.Primitives"; + version = "4.3.0"; + sha256 = "1svfmcmgs0w0z9xdw2f2ps05rdxmkxxhf0l17xk9l1l8xfahkqr0"; + }) + (fetchNuGet { + pname = "System.ComponentModel.TypeConverter"; + version = "4.3.0"; + sha256 = "17ng0p7v3nbrg3kycz10aqrrlw4lz9hzhws09pfh8gkwicyy481x"; + }) + (fetchNuGet { + pname = "System.Console"; + version = "4.3.0"; + sha256 = "1flr7a9x920mr5cjsqmsy9wgnv3lvd0h1g521pdr1lkb2qycy7ay"; + }) + (fetchNuGet { + pname = "System.Diagnostics.Debug"; + version = "4.0.11"; + sha256 = "0gmjghrqmlgzxivd2xl50ncbglb7ljzb66rlx8ws6dv8jm0d5siz"; + }) + (fetchNuGet { + pname = "System.Diagnostics.Debug"; + version = "4.3.0"; + sha256 = "00yjlf19wjydyr6cfviaph3vsjzg3d5nvnya26i2fvfg53sknh3y"; + }) + (fetchNuGet { + pname = "System.Diagnostics.FileVersionInfo"; + version = "4.3.0"; + sha256 = "094hx249lb3vb336q7dg3v257hbxvz2jnalj695l7cg5kxzqwai7"; + }) + (fetchNuGet { + pname = "System.Diagnostics.Process"; + version = "4.3.0"; + sha256 = "0g4prsbkygq8m21naqmcp70f24a1ksyix3dihb1r1f71lpi3cfj7"; + }) + (fetchNuGet { + pname = "System.Diagnostics.StackTrace"; + version = "4.3.0"; + sha256 = "0ash4h9k0m7xsm0yl79r0ixrdz369h7y922wipp5gladmlbvpyjd"; + }) + (fetchNuGet { + pname = "System.Diagnostics.Tools"; + version = "4.0.1"; + sha256 = "19cknvg07yhakcvpxg3cxa0bwadplin6kyxd8mpjjpwnp56nl85x"; + }) + (fetchNuGet { + pname = "System.Diagnostics.Tools"; + version = "4.3.0"; + sha256 = "0in3pic3s2ddyibi8cvgl102zmvp9r9mchh82ns9f0ms4basylw1"; + }) + (fetchNuGet { + pname = "System.Diagnostics.Tracing"; + version = "4.3.0"; + sha256 = "1m3bx6c2s958qligl67q7grkwfz3w53hpy7nc97mh6f7j5k168c4"; + }) + (fetchNuGet { + pname = "System.Dynamic.Runtime"; + version = "4.0.11"; + sha256 = "1pla2dx8gkidf7xkciig6nifdsb494axjvzvann8g2lp3dbqasm9"; + }) + (fetchNuGet { + pname = "System.Dynamic.Runtime"; + version = "4.3.0"; + sha256 = "1d951hrvrpndk7insiag80qxjbf2y0y39y8h5hnq9612ws661glk"; + }) + (fetchNuGet { + pname = "System.Globalization"; + version = "4.0.11"; + sha256 = "070c5jbas2v7smm660zaf1gh0489xanjqymkvafcs4f8cdrs1d5d"; + }) + (fetchNuGet { + pname = "System.Globalization"; + version = "4.3.0"; + sha256 = "1cp68vv683n6ic2zqh2s1fn4c2sd87g5hpp6l4d4nj4536jz98ki"; + }) + (fetchNuGet { + pname = "System.Globalization.Extensions"; + version = "4.3.0"; + sha256 = "02a5zfxavhv3jd437bsncbhd2fp1zv4gxzakp1an9l6kdq1mcqls"; + }) + (fetchNuGet { + pname = "System.IO"; + version = "4.1.0"; + sha256 = "1g0yb8p11vfd0kbkyzlfsbsp5z44lwsvyc0h3dpw6vqnbi035ajp"; + }) + (fetchNuGet { + pname = "System.IO"; + version = "4.3.0"; + sha256 = "05l9qdrzhm4s5dixmx68kxwif4l99ll5gqmh7rqgw554fx0agv5f"; + }) + (fetchNuGet { + pname = "System.IO.Compression"; + version = "4.3.0"; + sha256 = "084zc82yi6yllgda0zkgl2ys48sypiswbiwrv7irb3r0ai1fp4vz"; + }) + (fetchNuGet { + pname = "System.IO.FileSystem"; + version = "4.0.1"; + sha256 = "0kgfpw6w4djqra3w5crrg8xivbanh1w9dh3qapb28q060wb9flp1"; + }) + (fetchNuGet { + pname = "System.IO.FileSystem"; + version = "4.3.0"; + sha256 = "0z2dfrbra9i6y16mm9v1v6k47f0fm617vlb7s5iybjjsz6g1ilmw"; + }) + (fetchNuGet { + pname = "System.IO.FileSystem.Primitives"; + version = "4.0.1"; + sha256 = "1s0mniajj3lvbyf7vfb5shp4ink5yibsx945k6lvxa96r8la1612"; + }) + (fetchNuGet { + pname = "System.IO.FileSystem.Primitives"; + version = "4.3.0"; + sha256 = "0j6ndgglcf4brg2lz4wzsh1av1gh8xrzdsn9f0yznskhqn1xzj9c"; + }) + (fetchNuGet { + pname = "System.Linq"; + version = "4.1.0"; + sha256 = "1ppg83svb39hj4hpp5k7kcryzrf3sfnm08vxd5sm2drrijsla2k5"; + }) + (fetchNuGet { + pname = "System.Linq"; + version = "4.3.0"; + sha256 = "1w0gmba695rbr80l1k2h4mrwzbzsyfl2z4klmpbsvsg5pm4a56s7"; + }) + (fetchNuGet { + pname = "System.Linq.Expressions"; + version = "4.1.0"; + sha256 = "1gpdxl6ip06cnab7n3zlcg6mqp7kknf73s8wjinzi4p0apw82fpg"; + }) + (fetchNuGet { + pname = "System.Linq.Expressions"; + version = "4.3.0"; + sha256 = "0ky2nrcvh70rqq88m9a5yqabsl4fyd17bpr63iy2mbivjs2nyypv"; + }) + (fetchNuGet { + pname = "System.Management"; + version = "4.5.0"; + sha256 = "19z5x23n21xi94bgl531l9hrm64nyw9d5fpd7klfvr5xfsbh9jwr"; + }) + (fetchNuGet { + pname = "System.Memory"; + version = "4.5.3"; + sha256 = "0naqahm3wljxb5a911d37mwjqjdxv9l0b49p5dmfyijvni2ppy8a"; + }) + (fetchNuGet { + pname = "System.Numerics.Vectors"; + version = "4.4.0"; + sha256 = "0rdvma399070b0i46c4qq1h2yvjj3k013sqzkilz4bz5cwmx1rba"; + }) + (fetchNuGet { + pname = "System.ObjectModel"; + version = "4.0.12"; + sha256 = "1sybkfi60a4588xn34nd9a58png36i0xr4y4v4kqpg8wlvy5krrj"; + }) + (fetchNuGet { + pname = "System.Private.Uri"; + version = "4.3.0"; + sha256 = "04r1lkdnsznin0fj4ya1zikxiqr0h6r6a1ww2dsm60gqhdrf0mvx"; + }) + (fetchNuGet { + pname = "System.Reflection"; + version = "4.1.0"; + sha256 = "1js89429pfw79mxvbzp8p3q93il6rdff332hddhzi5wqglc4gml9"; + }) + (fetchNuGet { + pname = "System.Reflection"; + version = "4.3.0"; + sha256 = "0xl55k0mw8cd8ra6dxzh974nxif58s3k1rjv1vbd7gjbjr39j11m"; + }) + (fetchNuGet { + pname = "System.Reflection.Emit"; + version = "4.0.1"; + sha256 = "0ydqcsvh6smi41gyaakglnv252625hf29f7kywy2c70nhii2ylqp"; + }) + (fetchNuGet { + pname = "System.Reflection.Emit"; + version = "4.3.0"; + sha256 = "11f8y3qfysfcrscjpjym9msk7lsfxkk4fmz9qq95kn3jd0769f74"; + }) + (fetchNuGet { + pname = "System.Reflection.Emit.ILGeneration"; + version = "4.0.1"; + sha256 = "1pcd2ig6bg144y10w7yxgc9d22r7c7ww7qn1frdfwgxr24j9wvv0"; + }) + (fetchNuGet { + pname = "System.Reflection.Emit.ILGeneration"; + version = "4.3.0"; + sha256 = "0w1n67glpv8241vnpz1kl14sy7zlnw414aqwj4hcx5nd86f6994q"; + }) + (fetchNuGet { + pname = "System.Reflection.Emit.Lightweight"; + version = "4.0.1"; + sha256 = "1s4b043zdbx9k39lfhvsk68msv1nxbidhkq6nbm27q7sf8xcsnxr"; + }) + (fetchNuGet { + pname = "System.Reflection.Emit.Lightweight"; + version = "4.3.0"; + sha256 = "0ql7lcakycrvzgi9kxz1b3lljd990az1x6c4jsiwcacrvimpib5c"; + }) + (fetchNuGet { + pname = "System.Reflection.Extensions"; + version = "4.0.1"; + sha256 = "0m7wqwq0zqq9gbpiqvgk3sr92cbrw7cp3xn53xvw7zj6rz6fdirn"; + }) + (fetchNuGet { + pname = "System.Reflection.Extensions"; + version = "4.3.0"; + sha256 = "02bly8bdc98gs22lqsfx9xicblszr2yan7v2mmw3g7hy6miq5hwq"; + }) + (fetchNuGet { + pname = "System.Reflection.Metadata"; + version = "1.6.0"; + sha256 = "1wdbavrrkajy7qbdblpbpbalbdl48q3h34cchz24gvdgyrlf15r4"; + }) + (fetchNuGet { + pname = "System.Reflection.Primitives"; + version = "4.0.1"; + sha256 = "1bangaabhsl4k9fg8khn83wm6yial8ik1sza7401621jc6jrym28"; + }) + (fetchNuGet { + pname = "System.Reflection.Primitives"; + version = "4.3.0"; + sha256 = "04xqa33bld78yv5r93a8n76shvc8wwcdgr1qvvjh959g3rc31276"; + }) + (fetchNuGet { + pname = "System.Reflection.TypeExtensions"; + version = "4.1.0"; + sha256 = "1bjli8a7sc7jlxqgcagl9nh8axzfl11f4ld3rjqsyxc516iijij7"; + }) + (fetchNuGet { + pname = "System.Reflection.TypeExtensions"; + version = "4.3.0"; + sha256 = "0y2ssg08d817p0vdag98vn238gyrrynjdj4181hdg780sif3ykp1"; + }) + (fetchNuGet { + pname = "System.Resources.ResourceManager"; + version = "4.0.1"; + sha256 = "0b4i7mncaf8cnai85jv3wnw6hps140cxz8vylv2bik6wyzgvz7bi"; + }) + (fetchNuGet { + pname = "System.Resources.ResourceManager"; + version = "4.3.0"; + sha256 = "0sjqlzsryb0mg4y4xzf35xi523s4is4hz9q4qgdvlvgivl7qxn49"; + }) + (fetchNuGet { + pname = "System.Runtime"; + version = "4.1.0"; + sha256 = "02hdkgk13rvsd6r9yafbwzss8kr55wnj8d5c7xjnp8gqrwc8sn0m"; + }) + (fetchNuGet { + pname = "System.Runtime"; + version = "4.3.0"; + sha256 = "066ixvgbf2c929kgknshcxqj6539ax7b9m570cp8n179cpfkapz7"; + }) + (fetchNuGet { + pname = "System.Runtime.CompilerServices.Unsafe"; + version = "4.5.2"; + sha256 = "1vz4275fjij8inf31np78hw50al8nqkngk04p3xv5n4fcmf1grgi"; + }) + (fetchNuGet { + pname = "System.Runtime.Extensions"; + version = "4.1.0"; + sha256 = "0rw4rm4vsm3h3szxp9iijc3ksyviwsv6f63dng3vhqyg4vjdkc2z"; + }) + (fetchNuGet { + pname = "System.Runtime.Extensions"; + version = "4.3.0"; + sha256 = "1ykp3dnhwvm48nap8q23893hagf665k0kn3cbgsqpwzbijdcgc60"; + }) + (fetchNuGet { + pname = "System.Runtime.Handles"; + version = "4.0.1"; + sha256 = "1g0zrdi5508v49pfm3iii2hn6nm00bgvfpjq1zxknfjrxxa20r4g"; + }) + (fetchNuGet { + pname = "System.Runtime.Handles"; + version = "4.3.0"; + sha256 = "0sw2gfj2xr7sw9qjn0j3l9yw07x73lcs97p8xfc9w1x9h5g5m7i8"; + }) + (fetchNuGet { + pname = "System.Runtime.InteropServices"; + version = "4.1.0"; + sha256 = "01kxqppx3dr3b6b286xafqilv4s2n0gqvfgzfd4z943ga9i81is1"; + }) + (fetchNuGet { + pname = "System.Runtime.InteropServices"; + version = "4.3.0"; + sha256 = "00hywrn4g7hva1b2qri2s6rabzwgxnbpw9zfxmz28z09cpwwgh7j"; + }) + (fetchNuGet { + pname = "System.Runtime.InteropServices.RuntimeInformation"; + version = "4.0.0"; + sha256 = "0glmvarf3jz5xh22iy3w9v3wyragcm4hfdr17v90vs7vcrm7fgp6"; + }) + (fetchNuGet { + pname = "System.Runtime.InteropServices.RuntimeInformation"; + version = "4.3.0"; + sha256 = "0q18r1sh4vn7bvqgd6dmqlw5v28flbpj349mkdish2vjyvmnb2ii"; + }) + (fetchNuGet { + pname = "System.Runtime.Numerics"; + version = "4.3.0"; + sha256 = "19rav39sr5dky7afygh309qamqqmi9kcwvz3i0c5700v0c5cg61z"; + }) + (fetchNuGet { + pname = "System.Runtime.Serialization.Primitives"; + version = "4.1.1"; + sha256 = "042rfjixknlr6r10vx2pgf56yming8lkjikamg3g4v29ikk78h7k"; + }) + (fetchNuGet { + pname = "System.Security.AccessControl"; + version = "4.5.0"; + sha256 = "1wvwanz33fzzbnd2jalar0p0z3x0ba53vzx1kazlskp7pwyhlnq0"; + }) + (fetchNuGet { + pname = "System.Security.Cryptography.Algorithms"; + version = "4.3.0"; + sha256 = "03sq183pfl5kp7gkvq77myv7kbpdnq3y0xj7vi4q1kaw54sny0ml"; + }) + (fetchNuGet { + pname = "System.Security.Cryptography.Encoding"; + version = "4.3.0"; + sha256 = "1jr6w70igqn07k5zs1ph6xja97hxnb3mqbspdrff6cvssgrixs32"; + }) + (fetchNuGet { + pname = "System.Security.Cryptography.Primitives"; + version = "4.3.0"; + sha256 = "0pyzncsv48zwly3lw4f2dayqswcfvdwq2nz0dgwmi7fj3pn64wby"; + }) + (fetchNuGet { + pname = "System.Security.Cryptography.X509Certificates"; + version = "4.3.0"; + sha256 = "0valjcz5wksbvijylxijjxb1mp38mdhv03r533vnx1q3ikzdav9h"; + }) + (fetchNuGet { + pname = "System.Security.Principal.Windows"; + version = "4.5.0"; + sha256 = "0rmj89wsl5yzwh0kqjgx45vzf694v9p92r4x4q6yxldk1cv1hi86"; + }) + (fetchNuGet { + pname = "System.Text.Encoding"; + version = "4.0.11"; + sha256 = "1dyqv0hijg265dwxg6l7aiv74102d6xjiwplh2ar1ly6xfaa4iiw"; + }) + (fetchNuGet { + pname = "System.Text.Encoding"; + version = "4.3.0"; + sha256 = "1f04lkir4iladpp51sdgmis9dj4y8v08cka0mbmsy0frc9a4gjqr"; + }) + (fetchNuGet { + pname = "System.Text.Encoding.CodePages"; + version = "4.3.0"; + sha256 = "0lgxg1gn7pg7j0f942pfdc9q7wamzxsgq3ng248ikdasxz0iadkv"; + }) + (fetchNuGet { + pname = "System.Text.Encoding.Extensions"; + version = "4.0.11"; + sha256 = "08nsfrpiwsg9x5ml4xyl3zyvjfdi4mvbqf93kjdh11j4fwkznizs"; + }) + (fetchNuGet { + pname = "System.Text.Encoding.Extensions"; + version = "4.3.0"; + sha256 = "11q1y8hh5hrp5a3kw25cb6l00v5l5dvirkz8jr3sq00h1xgcgrxy"; + }) + (fetchNuGet { + pname = "System.Text.RegularExpressions"; + version = "4.1.0"; + sha256 = "1mw7vfkkyd04yn2fbhm38msk7dz2xwvib14ygjsb8dq2lcvr18y7"; + }) + (fetchNuGet { + pname = "System.Text.RegularExpressions"; + version = "4.3.0"; + sha256 = "1bgq51k7fwld0njylfn7qc5fmwrk2137gdq7djqdsw347paa9c2l"; + }) + (fetchNuGet { + pname = "System.Threading"; + version = "4.0.11"; + sha256 = "19x946h926bzvbsgj28csn46gak2crv2skpwsx80hbgazmkgb1ls"; + }) + (fetchNuGet { + pname = "System.Threading"; + version = "4.3.0"; + sha256 = "0rw9wfamvhayp5zh3j7p1yfmx9b5khbf4q50d8k5rk993rskfd34"; + }) + (fetchNuGet { + pname = "System.Threading.Tasks"; + version = "4.0.11"; + sha256 = "0nr1r41rak82qfa5m0lhk9mp0k93bvfd7bbd9sdzwx9mb36g28p5"; + }) + (fetchNuGet { + pname = "System.Threading.Tasks"; + version = "4.3.0"; + sha256 = "134z3v9abw3a6jsw17xl3f6hqjpak5l682k2vz39spj4kmydg6k7"; + }) + (fetchNuGet { + pname = "System.Threading.Tasks.Extensions"; + version = "4.0.0"; + sha256 = "1cb51z062mvc2i8blpzmpn9d9mm4y307xrwi65di8ri18cz5r1zr"; + }) + (fetchNuGet { + pname = "System.Threading.Tasks.Extensions"; + version = "4.3.0"; + sha256 = "1xxcx2xh8jin360yjwm4x4cf5y3a2bwpn2ygkfkwkicz7zk50s2z"; + }) + (fetchNuGet { + pname = "System.Threading.Tasks.Extensions"; + version = "4.5.2"; + sha256 = "1sh63dz0dymqcwmprp0nadm77b83vmm7lyllpv578c397bslb8hj"; + }) + (fetchNuGet { + pname = "System.Threading.Tasks.Parallel"; + version = "4.3.0"; + sha256 = "1rr3qa4hxwyj531s4nb3bwrxnxxwz617i0n9gh6x7nr7dd3ayzgh"; + }) + (fetchNuGet { + pname = "System.Threading.Thread"; + version = "4.3.0"; + sha256 = "0y2xiwdfcph7znm2ysxanrhbqqss6a3shi1z3c779pj2s523mjx4"; + }) + (fetchNuGet { + pname = "System.Threading.ThreadPool"; + version = "4.3.0"; + sha256 = "027s1f4sbx0y1xqw2irqn6x161lzj8qwvnh2gn78ciiczdv10vf1"; + }) + (fetchNuGet { + pname = "System.ValueTuple"; + version = "4.5.0"; + sha256 = "00k8ja51d0f9wrq4vv5z2jhq8hy31kac2rg0rv06prylcybzl8cy"; + }) + (fetchNuGet { + pname = "System.Xml.ReaderWriter"; + version = "4.0.11"; + sha256 = "0c6ky1jk5ada9m94wcadih98l6k1fvf6vi7vhn1msjixaha419l5"; + }) + (fetchNuGet { + pname = "System.Xml.ReaderWriter"; + version = "4.3.0"; + sha256 = "0c47yllxifzmh8gq6rq6l36zzvw4kjvlszkqa9wq3fr59n0hl3s1"; + }) + (fetchNuGet { + pname = "System.Xml.XDocument"; + version = "4.0.11"; + sha256 = "0n4lvpqzy9kc7qy1a4acwwd7b7pnvygv895az5640idl2y9zbz18"; + }) + (fetchNuGet { + pname = "System.Xml.XDocument"; + version = "4.3.0"; + sha256 = "08h8fm4l77n0nd4i4fk2386y809bfbwqb7ih9d7564ifcxr5ssxd"; + }) + (fetchNuGet { + pname = "System.Xml.XmlDocument"; + version = "4.3.0"; + sha256 = "0bmz1l06dihx52jxjr22dyv5mxv6pj4852lx68grjm7bivhrbfwi"; + }) + (fetchNuGet { + pname = "System.Xml.XPath"; + version = "4.3.0"; + sha256 = "1cv2m0p70774a0sd1zxc8fm8jk3i5zk2bla3riqvi8gsm0r4kpci"; + }) + (fetchNuGet { + pname = "System.Xml.XPath.XDocument"; + version = "4.3.0"; + sha256 = "1wxckyb7n1pi433xzz0qcwcbl1swpra64065mbwwi8dhdc4kiabn"; + }) + (fetchNuGet { + pname = "System.Xml.XPath.XmlDocument"; + version = "4.3.0"; + sha256 = "1h9lh7qkp0lff33z847sdfjj8yaz98ylbnkbxlnsbflhj9xyfqrm"; + }) ] diff --git a/pkgs/development/python-modules/pythonocc-core/default.nix b/pkgs/development/python-modules/pythonocc-core/default.nix index cedf05029c9c..1718cf91593e 100644 --- a/pkgs/development/python-modules/pythonocc-core/default.nix +++ b/pkgs/development/python-modules/pythonocc-core/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, python -, fetchFromGitHub -, cmake -, Cocoa -, fontconfig -, freetype -, libGL -, libGLU -, libX11 -, libXext -, libXi -, libXmu -, opencascade-occt -, rapidjson -, swig4 +{ + lib, + stdenv, + python, + fetchFromGitHub, + cmake, + Cocoa, + fontconfig, + freetype, + libGL, + libGLU, + libX11, + libXext, + libXi, + libXmu, + opencascade-occt, + rapidjson, + swig4, }: stdenv.mkDerivation rec { @@ -34,11 +35,22 @@ stdenv.mkDerivation rec { --replace "/usr/X11R6/lib/libGLU.dylib" "${libGLU}/lib/libGLU.dylib" ''; - nativeBuildInputs = [ cmake swig4 ]; + nativeBuildInputs = [ + cmake + swig4 + ]; buildInputs = [ - python opencascade-occt - freetype libGL libGLU libX11 libXext libXmu libXi - fontconfig rapidjson + python + opencascade-occt + freetype + libGL + libGLU + libX11 + libXext + libXmu + libXi + fontconfig + rapidjson ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; cmakeFlags = [ diff --git a/pkgs/development/python-modules/pythran/default.nix b/pkgs/development/python-modules/pythran/default.nix index 3e62fa882cc9..dbf1f0f50527 100644 --- a/pkgs/development/python-modules/pythran/default.nix +++ b/pkgs/development/python-modules/pythran/default.nix @@ -1,29 +1,30 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, isPy3k -, substituteAll +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + isPy3k, + substituteAll, -# build-system -, setuptools + # build-system + setuptools, -# native dependencies -, openmp -, xsimd + # native dependencies + openmp, + xsimd, -# dependencies -, ply -, gast -, numpy -, beniget + # dependencies + ply, + gast, + numpy, + beniget, }: let inherit (python) stdenv; - -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "pythran"; version = "0.15.0"; pyproject = true; @@ -39,7 +40,9 @@ in buildPythonPackage rec { # Hardcode path to mp library (substituteAll { src = ./0001-hardcode-path-to-libgomp.patch; - gomp = "${if stdenv.cc.isClang then openmp else stdenv.cc.cc.lib}/lib/libgomp${stdenv.hostPlatform.extensions.sharedLibrary}"; + gomp = "${ + if stdenv.cc.isClang then openmp else stdenv.cc.cc.lib + }/lib/libgomp${stdenv.hostPlatform.extensions.sharedLibrary}"; }) ]; @@ -49,9 +52,7 @@ in buildPythonPackage rec { ln -s '${lib.getDev xsimd}'/include/xsimd pythran/ ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ply diff --git a/pkgs/development/python-modules/pytibber/default.nix b/pkgs/development/python-modules/pytibber/default.nix index 83b1a73820e8..d5c7532b4780 100644 --- a/pkgs/development/python-modules/pytibber/default.nix +++ b/pkgs/development/python-modules/pytibber/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, gql -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + gql, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-fKeNQifSCxsqR2mhK2w5kG669byYNNLkfxAYTUtfWE0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -37,16 +36,12 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "test/test.py" - ]; + pytestFlagsArray = [ "test/test.py" ]; # Tests access network doCheck = false; - pythonImportsCheck = [ - "tibber" - ]; + pythonImportsCheck = [ "tibber" ]; meta = with lib; { description = "Python library to communicate with Tibber"; diff --git a/pkgs/development/python-modules/pytidylib/default.nix b/pkgs/development/python-modules/pytidylib/default.nix index e8d417f0cec5..7f5b2db40dd6 100644 --- a/pkgs/development/python-modules/pytidylib/default.nix +++ b/pkgs/development/python-modules/pytidylib/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, buildPythonPackage, fetchPypi, unittestCheckHook, html-tidy }: +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + unittestCheckHook, + html-tidy, +}: buildPythonPackage rec { pname = "pytidylib"; diff --git a/pkgs/development/python-modules/pytikz-allefeld/default.nix b/pkgs/development/python-modules/pytikz-allefeld/default.nix index 9dd0bdb2bbe6..141d91953a7b 100644 --- a/pkgs/development/python-modules/pytikz-allefeld/default.nix +++ b/pkgs/development/python-modules/pytikz-allefeld/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, setuptools -, pymupdf -, numpy -, ipython -, texlive +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + setuptools, + pymupdf, + numpy, + ipython, + texlive, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-G59UUkpjttJKNBN0MB/A9CftO8tO3nv8qlTxt3/fKHk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ pymupdf diff --git a/pkgs/development/python-modules/pytile/default.nix b/pkgs/development/python-modules/pytile/default.nix index 73b084ec9d3d..ab61021b10c3 100644 --- a/pkgs/development/python-modules/pytile/default.nix +++ b/pkgs/development/python-modules/pytile/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-oHOeEaqkh+RjhpdQ5v1tFhaS6gUzl8UzDGnPLNRY90c="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -48,9 +47,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "pytile" - ]; + pythonImportsCheck = [ "pytile" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/pytimeparse/default.nix b/pkgs/development/python-modules/pytimeparse/default.nix index ec7dac91c12a..44985f080a64 100644 --- a/pkgs/development/python-modules/pytimeparse/default.nix +++ b/pkgs/development/python-modules/pytimeparse/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pynose -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pynose, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-6GE2R3vpJNfmcGRqmFYZV+jKcwjUSEHiH13ep1dVago="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pynose - ]; + nativeCheckInputs = [ pynose ]; - pythonImportsCheck = [ - "pytimeparse" - ]; + pythonImportsCheck = [ "pytimeparse" ]; meta = with lib; { description = "Library to parse various kinds of time expressions"; diff --git a/pkgs/development/python-modules/pytimeparse2/default.nix b/pkgs/development/python-modules/pytimeparse2/default.nix index b35202e6fd4b..546f0a3201f6 100644 --- a/pkgs/development/python-modules/pytimeparse2/default.nix +++ b/pkgs/development/python-modules/pytimeparse2/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildPythonPackage, dateutils }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + dateutils, +}: buildPythonPackage rec { pname = "pytimeparse2"; diff --git a/pkgs/development/python-modules/pytlv/default.nix b/pkgs/development/python-modules/pytlv/default.nix index d4381f904423..630cc9a21b3c 100644 --- a/pkgs/development/python-modules/pytlv/default.nix +++ b/pkgs/development/python-modules/pytlv/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-btxZ0oQzn1ZpwXihHlg6CduLh8nkerLV7SoFyXzJjVY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "pytlv" ]; @@ -25,6 +24,9 @@ buildPythonPackage rec { description = "TLV (tag length lavue) data parser, especially useful for EMV tags parsing"; homepage = "https://github.com/timgabets/pytlv"; license = licenses.lgpl2; - maintainers = with maintainers; [ flokli janik ]; + maintainers = with maintainers; [ + flokli + janik + ]; }; } diff --git a/pkgs/development/python-modules/pytm/default.nix b/pkgs/development/python-modules/pytm/default.nix index 8d3d7c9af838..07b386e043d3 100644 --- a/pkgs/development/python-modules/pytm/default.nix +++ b/pkgs/development/python-modules/pytm/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pythonOlder -, pydal -, graphviz -, pandoc -, plantuml +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pythonOlder, + pydal, + graphviz, + pandoc, + plantuml, }: buildPythonPackage rec { @@ -21,14 +22,22 @@ buildPythonPackage rec { sha256 = "sha256-MseV1ucDCzSM36zx04g9v5euDX0t74KqUSB4+brHzt8="; }; - propagatedBuildInputs = [ pydal graphviz pandoc plantuml ]; + propagatedBuildInputs = [ + pydal + graphviz + pandoc + plantuml + ]; pythonImportsCheck = [ "pytm" ]; meta = with lib; { description = "A Pythonic framework for threat modeling"; homepage = "https://owasp.org/www-project-pytm/"; - license = with licenses; [ capec mit ]; + license = with licenses; [ + capec + mit + ]; maintainers = with maintainers; [ wamserma ]; }; } diff --git a/pkgs/development/python-modules/pytmx/default.nix b/pkgs/development/python-modules/pytmx/default.nix index 177d255a13b5..77e3656e2f29 100644 --- a/pkgs/development/python-modules/pytmx/default.nix +++ b/pkgs/development/python-modules/pytmx/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pygame -, pyglet -, pysdl2 -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pygame, + pyglet, + pysdl2, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { "pytmx.util_pysdl2" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # AssertionError on the property name diff --git a/pkgs/development/python-modules/pytomlpp/default.nix b/pkgs/development/python-modules/pytomlpp/default.nix index eb25af828278..6ea09930e0aa 100644 --- a/pkgs/development/python-modules/pytomlpp/default.nix +++ b/pkgs/development/python-modules/pytomlpp/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pybind11 -, pytestCheckHook -, python-dateutil -, doxygen -, python -, pelican -, matplotlib +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pybind11, + pytestCheckHook, + python-dateutil, + doxygen, + python, + pelican, + matplotlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pytomorrowio/default.nix b/pkgs/development/python-modules/pytomorrowio/default.nix index 83d5af50c96f..b749a805eb27 100644 --- a/pkgs/development/python-modules/pytomorrowio/default.nix +++ b/pkgs/development/python-modules/pytomorrowio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, aiohttp -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + aiohttp, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-ZCA+GYuZuRgc4Pi9Bcg4zthOnkmQ+/IddFMkR0WYfKk="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-aiohttp @@ -30,9 +29,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pytomorrowio" - ]; + pythonImportsCheck = [ "pytomorrowio" ]; meta = { description = "Async Python package to access the Tomorrow.io API"; diff --git a/pkgs/development/python-modules/pytoolconfig/default.nix b/pkgs/development/python-modules/pytoolconfig/default.nix index 1ba80dae8037..bec278f08e6f 100644 --- a/pkgs/development/python-modules/pytoolconfig/default.nix +++ b/pkgs/development/python-modules/pytoolconfig/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, docutils -, fetchFromGitHub -, packaging -, pdm-backend -, platformdirs -, pydantic -, pytestCheckHook -, pythonOlder -, sphinx -, sphinx-autodoc-typehints -, sphinx-rtd-theme -, sphinxHook -, tabulate -, tomli +{ + lib, + buildPythonPackage, + docutils, + fetchFromGitHub, + packaging, + pdm-backend, + platformdirs, + pydantic, + pytestCheckHook, + pythonOlder, + sphinx, + sphinx-autodoc-typehints, + sphinx-rtd-theme, + sphinxHook, + tabulate, + tomli, }: buildPythonPackage rec { @@ -47,28 +48,18 @@ buildPythonPackage rec { sphinxHook ] ++ passthru.optional-dependencies.doc; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = [ packaging ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; passthru.optional-dependencies = { - validation = [ - pydantic - ]; - global = [ - platformdirs - ]; + validation = [ pydantic ]; + global = [ platformdirs ]; doc = [ sphinx tabulate ]; }; - pythonImportsCheck = [ - "pytoolconfig" - ]; + pythonImportsCheck = [ "pytoolconfig" ]; nativeCheckInputs = [ pytestCheckHook @@ -79,6 +70,9 @@ buildPythonPackage rec { homepage = "https://github.com/bagel897/pytoolconfig"; changelog = "https://github.com/bagel897/pytoolconfig/releases/tag/v${version}"; license = licenses.lgpl3Plus; - maintainers = with maintainers; [ fab hexa ]; + maintainers = with maintainers; [ + fab + hexa + ]; }; } diff --git a/pkgs/development/python-modules/pytools/default.nix b/pkgs/development/python-modules/pytools/default.nix index ed4ac27bf63a..3f7c35ff4bdc 100644 --- a/pkgs/development/python-modules/pytools/default.nix +++ b/pkgs/development/python-modules/pytools/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, decorator -, numpy -, platformdirs -, typing-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + decorator, + numpy, + platformdirs, + typing-extensions, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { decorator numpy platformdirs - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pytools" diff --git a/pkgs/development/python-modules/pytorch-lightning/default.nix b/pkgs/development/python-modules/pytorch-lightning/default.nix index 780b2be18ca7..1a8a7226033a 100644 --- a/pkgs/development/python-modules/pytorch-lightning/default.nix +++ b/pkgs/development/python-modules/pytorch-lightning/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, fsspec -, lightning-utilities -, numpy -, packaging -, pyyaml -, tensorboardx -, torch -, torchmetrics -, tqdm -, traitlets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + fsspec, + lightning-utilities, + numpy, + packaging, + pyyaml, + tensorboardx, + torch, + torchmetrics, + tqdm, + traitlets, -# tests -, psutil -, pytestCheckHook + # tests + psutil, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,7 +33,7 @@ buildPythonPackage rec { preConfigure = '' export PACKAGE_NAME=pytorch - ''; + ''; propagatedBuildInputs = [ fsspec @@ -45,8 +46,7 @@ buildPythonPackage rec { torchmetrics tqdm traitlets - ] - ++ fsspec.optional-dependencies.http; + ] ++ fsspec.optional-dependencies.http; nativeCheckInputs = [ psutil @@ -57,9 +57,7 @@ buildPythonPackage rec { # models, which doesn't work in the sandbox. doCheck = false; - pythonImportsCheck = [ - "pytorch_lightning" - ]; + pythonImportsCheck = [ "pytorch_lightning" ]; meta = with lib; { description = "Lightweight PyTorch wrapper for machine learning researchers"; diff --git a/pkgs/development/python-modules/pytorch-metric-learning/default.nix b/pkgs/development/python-modules/pytorch-metric-learning/default.nix index a1d1f7f38a2c..ec57a02f0acd 100644 --- a/pkgs/development/python-modules/pytorch-metric-learning/default.nix +++ b/pkgs/development/python-modules/pytorch-metric-learning/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, numpy -, scikit-learn -, pytestCheckHook -, torch -, torchvision -, tqdm -, faiss +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + numpy, + scikit-learn, + pytestCheckHook, + torch, + torchvision, + tqdm, + faiss, }: buildPythonPackage rec { - pname = "pytorch-metric-learning"; + pname = "pytorch-metric-learning"; version = "2.5.0"; format = "setuptools"; @@ -46,23 +47,25 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # TypeError: setup() missing 1 required positional argument: 'world_size' - "TestDistributedLossWrapper" - # require network access: - "TestInference" - "test_get_nearest_neighbors" - "test_tuplestoweights_sampler" - "test_untrained_indexer" - "test_metric_loss_only" - "test_pca" - # flaky - "test_distributed_classifier_loss_and_miner" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - # RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly - "test_global_embedding_space_tester" - "test_with_same_parent_label_tester" - ]; + disabledTests = + [ + # TypeError: setup() missing 1 required positional argument: 'world_size' + "TestDistributedLossWrapper" + # require network access: + "TestInference" + "test_get_nearest_neighbors" + "test_tuplestoweights_sampler" + "test_untrained_indexer" + "test_metric_loss_only" + "test_pca" + # flaky + "test_distributed_classifier_loss_and_miner" + ] + ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ + # RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly + "test_global_embedding_space_tester" + "test_with_same_parent_label_tester" + ]; meta = { description = "Metric learning library for PyTorch"; diff --git a/pkgs/development/python-modules/pytorch-msssim/default.nix b/pkgs/development/python-modules/pytorch-msssim/default.nix index 371ae7514aeb..a75aa6eb5b18 100644 --- a/pkgs/development/python-modules/pytorch-msssim/default.nix +++ b/pkgs/development/python-modules/pytorch-msssim/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, torch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + torch, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - torch - ]; + propagatedBuildInputs = [ torch ]; pythonImportsCheck = [ "pytorch_msssim" ]; diff --git a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix index 21da795609d9..f77d143f7b03 100644 --- a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix +++ b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix @@ -1,17 +1,18 @@ -{ buildPythonPackage -, fetchFromGitHub -, fetchpatch -, lib -, numpy -, onnx -, packaging -, pytestCheckHook -, pythonAtLeast -, setuptools -, stdenv -, torch -, torchvision -, typing-extensions +{ + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + lib, + numpy, + onnx, + packaging, + pytestCheckHook, + pythonAtLeast, + setuptools, + stdenv, + torch, + torchvision, + typing-extensions, }: buildPythonPackage rec { @@ -34,13 +35,20 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools + build-system = [ setuptools ]; + + dependencies = [ + numpy + packaging + torch + typing-extensions ]; - dependencies = [ numpy packaging torch typing-extensions ]; - - nativeCheckInputs = [ onnx pytestCheckHook torchvision ]; + nativeCheckInputs = [ + onnx + pytestCheckHook + torchvision + ]; pytestFlagsArray = [ # Requires CUDA access which is not possible in the nix environment. @@ -50,35 +58,39 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytorch_pfn_extras" ]; - disabledTestPaths = [ - # Requires optuna which is currently (2022-02-16) marked as broken. - "tests/pytorch_pfn_extras_tests/test_config_types.py" + disabledTestPaths = + [ + # Requires optuna which is currently (2022-02-16) marked as broken. + "tests/pytorch_pfn_extras_tests/test_config_types.py" - # requires onnxruntime which was removed because of poor maintainability - # See https://github.com/NixOS/nixpkgs/pull/105951 https://github.com/NixOS/nixpkgs/pull/155058 - "tests/pytorch_pfn_extras_tests/onnx_tests/test_annotate.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/test_as_output.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/test_export.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/test_export_testcase.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/test_lax.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/test_load_model.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/test_torchvision.py" - "tests/pytorch_pfn_extras_tests/onnx_tests/utils.py" + # requires onnxruntime which was removed because of poor maintainability + # See https://github.com/NixOS/nixpkgs/pull/105951 https://github.com/NixOS/nixpkgs/pull/155058 + "tests/pytorch_pfn_extras_tests/onnx_tests/test_annotate.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/test_as_output.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/test_export.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/test_export_testcase.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/test_lax.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/test_load_model.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/test_torchvision.py" + "tests/pytorch_pfn_extras_tests/onnx_tests/utils.py" - # RuntimeError: No Op registered for Gradient with domain_version of 9 - "tests/pytorch_pfn_extras_tests/onnx_tests/test_grad.py" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # RuntimeError: Dynamo is not supported on Python 3.12+ - "tests/pytorch_pfn_extras_tests/dynamo_tests/test_compile.py" - "tests/pytorch_pfn_extras_tests/test_ops/test_register.py" - ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ - # torch.distributed is not available on darwin - "tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_sharded_snapshot.py" - ] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ - # RuntimeError: internal error - # convolution (e.g. F.conv3d) causes runtime error - "tests/pytorch_pfn_extras_tests/nn_tests/modules_tests/test_lazy_conv.py" - ]; + # RuntimeError: No Op registered for Gradient with domain_version of 9 + "tests/pytorch_pfn_extras_tests/onnx_tests/test_grad.py" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # RuntimeError: Dynamo is not supported on Python 3.12+ + "tests/pytorch_pfn_extras_tests/dynamo_tests/test_compile.py" + "tests/pytorch_pfn_extras_tests/test_ops/test_register.py" + ] + ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ + # torch.distributed is not available on darwin + "tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_sharded_snapshot.py" + ] + ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # RuntimeError: internal error + # convolution (e.g. F.conv3d) causes runtime error + "tests/pytorch_pfn_extras_tests/nn_tests/modules_tests/test_lazy_conv.py" + ]; meta = with lib; { description = "Supplementary components to accelerate research and development in PyTorch"; diff --git a/pkgs/development/python-modules/pytraccar/default.nix b/pkgs/development/python-modules/pytraccar/default.nix index 3af3cb33e96d..c26ee031b887 100644 --- a/pkgs/development/python-modules/pytraccar/default.nix +++ b/pkgs/development/python-modules/pytraccar/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pytest-asyncio -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-WTRqYw66iD4bbb1aWJfBI67+DtE1FE4oiuUKpfVqypE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # https://github.com/ludeeus/pytraccar/issues/31 doCheck = lib.versionOlder aiohttp.version "3.9.0"; @@ -38,9 +35,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; postPatch = '' # Upstream doesn't set version in the repo @@ -48,9 +43,7 @@ buildPythonPackage rec { --replace 'version = "0"' 'version = "${version}"' ''; - pythonImportsCheck = [ - "pytraccar" - ]; + pythonImportsCheck = [ "pytraccar" ]; meta = with lib; { description = "Python library to handle device information from Traccar"; diff --git a/pkgs/development/python-modules/pytradfri/default.nix b/pkgs/development/python-modules/pytradfri/default.nix index b4de887f5455..9e710823127a 100644 --- a/pkgs/development/python-modules/pytradfri/default.nix +++ b/pkgs/development/python-modules/pytradfri/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiocoap -, dtlssocket -, pydantic -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiocoap, + dtlssocket, + pydantic, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-CWv3ebDulZuiFP+nJ2Xr7U/HTDFTqA9VYC0USLkpWR0="; }; - propagatedBuildInputs = [ - pydantic - ]; + propagatedBuildInputs = [ pydantic ]; passthru.optional-dependencies = { async = [ @@ -33,14 +32,9 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] - ++ passthru.optional-dependencies.async; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.async; - pythonImportsCheck = [ - "pytradfri" - ]; + pythonImportsCheck = [ "pytradfri" ]; meta = with lib; { description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway"; diff --git a/pkgs/development/python-modules/pytrafikverket/default.nix b/pkgs/development/python-modules/pytrafikverket/default.nix index d880602a5123..ed187fc619fe 100644 --- a/pkgs/development/python-modules/pytrafikverket/default.nix +++ b/pkgs/development/python-modules/pytrafikverket/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp -, lxml -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, + lxml, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-B3K9wDFj7uSgs6BsJUnD6r2JVcH7u7UrbVXUTMGqmQE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -31,9 +30,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "pytrafikverket" - ]; + pythonImportsCheck = [ "pytrafikverket" ]; meta = with lib; { description = "Library to get data from the Swedish Transport Administration (Trafikverket) API"; diff --git a/pkgs/development/python-modules/pytransportnsw/default.nix b/pkgs/development/python-modules/pytransportnsw/default.nix index 67c0749df56b..db65727bf85d 100644 --- a/pkgs/development/python-modules/pytransportnsw/default.nix +++ b/pkgs/development/python-modules/pytransportnsw/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "00jklgjirmc58hiaqqc2n2rgixvx91bgrd6lv6hv28k51kid10f3"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/pytrends/default.nix b/pkgs/development/python-modules/pytrends/default.nix index d52436348ad7..c9e20859086b 100644 --- a/pkgs/development/python-modules/pytrends/default.nix +++ b/pkgs/development/python-modules/pytrends/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, requests -, lxml -, pandas -, pytestCheckHook -, pytest-recording -, responses +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + requests, + lxml, + pandas, + pytestCheckHook, + pytest-recording, + responses, }: buildPythonPackage rec { @@ -33,7 +34,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ requests lxml pandas ]; + propagatedBuildInputs = [ + requests + lxml + pandas + ]; nativeCheckInputs = [ pytestCheckHook @@ -41,9 +46,7 @@ buildPythonPackage rec { responses ]; - pytestFlagsArray = [ - "--block-network" - ]; + pytestFlagsArray = [ "--block-network" ]; pythonImportsCheck = [ "pytrends" ]; @@ -53,5 +56,4 @@ buildPythonPackage rec { license = [ licenses.asl20 ]; maintainers = [ maintainers.mmahut ]; }; - } diff --git a/pkgs/development/python-modules/pytricia/default.nix b/pkgs/development/python-modules/pytricia/default.nix index 88bbce684fca..f2543f4a72d8 100644 --- a/pkgs/development/python-modules/pytricia/default.nix +++ b/pkgs/development/python-modules/pytricia/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyttsx3/default.nix b/pkgs/development/python-modules/pyttsx3/default.nix index 0cd58e6fa5bc..6243ae776d27 100644 --- a/pkgs/development/python-modules/pyttsx3/default.nix +++ b/pkgs/development/python-modules/pyttsx3/default.nix @@ -1,4 +1,10 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, espeak-ng }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + espeak-ng, +}: buildPythonPackage rec { pname = "pyttsx3"; diff --git a/pkgs/development/python-modules/pytube/default.nix b/pkgs/development/python-modules/pytube/default.nix index 2e173e5f482b..eabf55c89caa 100644 --- a/pkgs/development/python-modules/pytube/default.nix +++ b/pkgs/development/python-modules/pytube/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-Nvs/YlOjk/P5nd1kpUnCM2n6yiEaqZP830UQI0Ug1rk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_streaming" - ]; + disabledTests = [ "test_streaming" ]; disabledTestPaths = [ "tests/test_extract.py" diff --git a/pkgs/development/python-modules/pytun/default.nix b/pkgs/development/python-modules/pytun/default.nix index 0c16d8eb5f55..ab11320ec436 100644 --- a/pkgs/development/python-modules/pytun/default.nix +++ b/pkgs/development/python-modules/pytun/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyturbojpeg/default.nix b/pkgs/development/python-modules/pyturbojpeg/default.nix index b64b7527e8be..dea91c9c4469 100644 --- a/pkgs/development/python-modules/pyturbojpeg/default.nix +++ b/pkgs/development/python-modules/pyturbojpeg/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, libjpeg_turbo -, setuptools -, numpy -, python -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + libjpeg_turbo, + setuptools, + numpy, + python, + substituteAll, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; # upstream has no tests, but we want to test whether the library is found checkPhase = '' ${python.interpreter} -c 'from turbojpeg import TurboJPEG; TurboJPEG()' ''; - pythonImportsCheck = [ - "turbojpeg" - ]; + pythonImportsCheck = [ "turbojpeg" ]; meta = with lib; { description = "A Python wrapper of libjpeg-turbo for decoding and encoding JPEG image"; diff --git a/pkgs/development/python-modules/pytweening/default.nix b/pkgs/development/python-modules/pytweening/default.nix index 1c7535f4405e..b15a6e6b6a7a 100644 --- a/pkgs/development/python-modules/pytweening/default.nix +++ b/pkgs/development/python-modules/pytweening/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { pname = "pytweening"; diff --git a/pkgs/development/python-modules/pytz-deprecation-shim/default.nix b/pkgs/development/python-modules/pytz-deprecation-shim/default.nix index dd37c3c1af28..ef40519c544a 100644 --- a/pkgs/development/python-modules/pytz-deprecation-shim/default.nix +++ b/pkgs/development/python-modules/pytz-deprecation-shim/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pythonOlder -, backports-zoneinfo -, python-dateutil -, setuptools -, tzdata -, hypothesis -, pytestCheckHook -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + pythonOlder, + backports-zoneinfo, + python-dateutil, + setuptools, + tzdata, + hypothesis, + pytestCheckHook, + pytz, }: buildPythonPackage rec { @@ -26,13 +27,10 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = (lib.optionals (pythonAtLeast "3.6" && pythonOlder "3.9") [ - backports-zoneinfo - ]) ++ (lib.optionals (pythonOlder "3.6") [ - python-dateutil - ]) ++ (lib.optionals (pythonAtLeast "3.6") [ - tzdata - ]); + propagatedBuildInputs = + (lib.optionals (pythonAtLeast "3.6" && pythonOlder "3.9") [ backports-zoneinfo ]) + ++ (lib.optionals (pythonOlder "3.6") [ python-dateutil ]) + ++ (lib.optionals (pythonAtLeast "3.6") [ tzdata ]); nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/pytz/default.nix b/pkgs/development/python-modules/pytz/default.nix index 359c7c142d5e..d99da5d17d18 100644 --- a/pkgs/development/python-modules/pytz/default.nix +++ b/pkgs/development/python-modules/pytz/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { @@ -15,13 +16,14 @@ buildPythonPackage rec { hash = "sha256-KilzXqnBi68UtEiEa95aSAMO0mdXhHLYlVzQ50Q6mBI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "pytz/tests" ]; + unittestFlagsArray = [ + "-s" + "pytz/tests" + ]; pythonImportsCheck = [ "pytz" ]; diff --git a/pkgs/development/python-modules/pytzdata/default.nix b/pkgs/development/python-modules/pytzdata/default.nix index f6b8e9438925..8b66daba06af 100644 --- a/pkgs/development/python-modules/pytzdata/default.nix +++ b/pkgs/development/python-modules/pytzdata/default.nix @@ -1,4 +1,8 @@ -{ lib, fetchPypi, buildPythonPackage }: +{ + lib, + fetchPypi, + buildPythonPackage, +}: buildPythonPackage rec { pname = "pytzdata"; diff --git a/pkgs/development/python-modules/pyu2f/default.nix b/pkgs/development/python-modules/pyu2f/default.nix index ef09f1285183..fd63b2bf10ed 100644 --- a/pkgs/development/python-modules/pyu2f/default.nix +++ b/pkgs/development/python-modules/pyu2f/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, mock -, pyfakefs -, pytest-forked -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + mock, + pyfakefs, + pytest-forked, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { sha256 = "0mx7bn1p3n0fxyxa82wg3c719hby7vqkxv57fhf7zvhlg2zfnr0v"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; postPatch = '' for path in \ diff --git a/pkgs/development/python-modules/pyuca/default.nix b/pkgs/development/python-modules/pyuca/default.nix index 94b29dc80f9b..0886412054ac 100644 --- a/pkgs/development/python-modules/pyuca/default.nix +++ b/pkgs/development/python-modules/pyuca/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-KIWk+/o1MX5J9cO7xITvjHrYg0NdgdTetOzfGVwAI/4="; }; - pythonImportsCheck = [ - "pyuca" - ]; + pythonImportsCheck = [ "pyuca" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { description = "A Python implementation of the Unicode Collation Algorithm"; diff --git a/pkgs/development/python-modules/pyudev/default.nix b/pkgs/development/python-modules/pyudev/default.nix index 685da38ed2f1..019158e1cbf1 100644 --- a/pkgs/development/python-modules/pyudev/default.nix +++ b/pkgs/development/python-modules/pyudev/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchPypi -, buildPythonPackage -, six -, udev -, pytest -, mock -, hypothesis -, docutils -, stdenvNoCC +{ + lib, + fetchPypi, + buildPythonPackage, + six, + udev, + pytest, + mock, + hypothesis, + docutils, + stdenvNoCC, }: buildPythonPackage rec { @@ -23,9 +24,14 @@ buildPythonPackage rec { postPatch = lib.optionalString stdenvNoCC.isLinux '' substituteInPlace src/pyudev/_ctypeslib/utils.py \ --replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'" - ''; + ''; - nativeCheckInputs = [ pytest mock hypothesis docutils ]; + nativeCheckInputs = [ + pytest + mock + hypothesis + docutils + ]; propagatedBuildInputs = [ six ]; checkPhase = '' diff --git a/pkgs/development/python-modules/pyunifi/default.nix b/pkgs/development/python-modules/pyunifi/default.nix index 5b0272076b9f..b006354be12c 100644 --- a/pkgs/development/python-modules/pyunifi/default.nix +++ b/pkgs/development/python-modules/pyunifi/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "pyunifi"; diff --git a/pkgs/development/python-modules/pyunifiprotect/default.nix b/pkgs/development/python-modules/pyunifiprotect/default.nix index 7b7a042ad8be..b33c6695bc0b 100644 --- a/pkgs/development/python-modules/pyunifiprotect/default.nix +++ b/pkgs/development/python-modules/pyunifiprotect/default.nix @@ -1,34 +1,35 @@ -{ lib -, aiofiles -, aiohttp -, aioshutil -, async-timeout -, buildPythonPackage -, dateparser -, fetchFromGitHub -, ffmpeg -, hatch-vcs -, hatchling -, ipython -, orjson -, packaging -, pillow -, platformdirs -, poetry-core -, py -, pydantic -, pyjwt -, pytest-aiohttp -, pytest-asyncio -, pytest-benchmark -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, python-dotenv -, pythonOlder -, pytz -, termcolor -, typer +{ + lib, + aiofiles, + aiohttp, + aioshutil, + async-timeout, + buildPythonPackage, + dateparser, + fetchFromGitHub, + ffmpeg, + hatch-vcs, + hatchling, + ipython, + orjson, + packaging, + pillow, + platformdirs, + poetry-core, + py, + pydantic, + pyjwt, + pytest-aiohttp, + pytest-asyncio, + pytest-benchmark, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + python-dotenv, + pythonOlder, + pytz, + termcolor, + typer, }: buildPythonPackage rec { @@ -70,10 +71,7 @@ buildPythonPackage rec { pyjwt pytz typer - ] ++ typer.optional-dependencies.all - ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ typer.optional-dependencies.all ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; passthru.optional-dependencies = { shell = [ @@ -94,13 +92,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyunifiprotect" - ]; + pythonImportsCheck = [ "pyunifiprotect" ]; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; meta = with lib; { description = "Library for interacting with the Unifi Protect API"; diff --git a/pkgs/development/python-modules/pyunpack/default.nix b/pkgs/development/python-modules/pyunpack/default.nix index 631c9706f0df..4c3c56c7ed53 100644 --- a/pkgs/development/python-modules/pyunpack/default.nix +++ b/pkgs/development/python-modules/pyunpack/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, easyprocess -, entrypoint2 -, patool -, cabextract +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + easyprocess, + entrypoint2, + patool, + cabextract, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyupdate/default.nix b/pkgs/development/python-modules/pyupdate/default.nix index 34c4d1f54ae6..7224907916d2 100644 --- a/pkgs/development/python-modules/pyupdate/default.nix +++ b/pkgs/development/python-modules/pyupdate/default.nix @@ -1,5 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k -, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + requests, +}: buildPythonPackage rec { pname = "pyupdate"; diff --git a/pkgs/development/python-modules/pyupgrade/default.nix b/pkgs/development/python-modules/pyupgrade/default.nix index 04ccee1bc757..f5a4ad76af47 100644 --- a/pkgs/development/python-modules/pyupgrade/default.nix +++ b/pkgs/development/python-modules/pyupgrade/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, tokenize-rt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + tokenize-rt, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-n6WlJc7Hh7SArJ8Z0fikxidtpXaPQvKTDGn6HukL2q8="; }; - propagatedBuildInputs = [ - tokenize-rt - ]; + propagatedBuildInputs = [ tokenize-rt ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyupgrade" - ]; + pythonImportsCheck = [ "pyupgrade" ]; meta = with lib; { description = "Tool to automatically upgrade syntax for newer versions of the language"; diff --git a/pkgs/development/python-modules/pyuptimerobot/default.nix b/pkgs/development/python-modules/pyuptimerobot/default.nix index 8b6af6dc5d92..918be59eaddf 100644 --- a/pkgs/development/python-modules/pyuptimerobot/default.nix +++ b/pkgs/development/python-modules/pyuptimerobot/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-asyncio -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace 'version="main",' 'version="${version}",' ''; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ aresponses @@ -38,9 +37,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "pyuptimerobot" - ]; + pythonImportsCheck = [ "pyuptimerobot" ]; meta = with lib; { description = "Python API wrapper for Uptime Robot"; diff --git a/pkgs/development/python-modules/pyusb/default.nix b/pkgs/development/python-modules/pyusb/default.nix index 091ee1b5f4f4..c9fdbb623beb 100644 --- a/pkgs/development/python-modules/pyusb/default.nix +++ b/pkgs/development/python-modules/pyusb/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchPypi, buildPythonPackage, libusb1, setuptools-scm }: +{ + lib, + stdenv, + fetchPypi, + buildPythonPackage, + libusb1, + setuptools-scm, +}: buildPythonPackage rec { pname = "pyusb"; @@ -10,17 +17,14 @@ buildPythonPackage rec { sha256 = "a4cc7404a203144754164b8b40994e2849fde1cfff06b08492f12fff9d9de7b9"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; # Fix the USB backend library lookup - postPatch = - '' - libusb=${libusb1.out}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary} - test -f $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; } - sed -i -e "s|find_library=None|find_library=lambda _:\"$libusb\"|" usb/backend/libusb1.py - ''; + postPatch = '' + libusb=${libusb1.out}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary} + test -f $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; } + sed -i -e "s|find_library=None|find_library=lambda _:\"$libusb\"|" usb/backend/libusb1.py + ''; # No tests included doCheck = false; @@ -28,7 +32,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "usb" ]; meta = with lib; { - description = "Python USB access module (wraps libusb 1.0)"; # can use other backends + description = "Python USB access module (wraps libusb 1.0)"; # can use other backends homepage = "https://pyusb.github.io/pyusb/"; license = licenses.bsd3; maintainers = with maintainers; [ bjornfor ]; diff --git a/pkgs/development/python-modules/pyuseragents/default.nix b/pkgs/development/python-modules/pyuseragents/default.nix index 0bfae94e0275..f817a04222de 100644 --- a/pkgs/development/python-modules/pyuseragents/default.nix +++ b/pkgs/development/python-modules/pyuseragents/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyutil/default.nix b/pkgs/development/python-modules/pyutil/default.nix index 91f5d0d89f89..a98538cc43ea 100644 --- a/pkgs/development/python-modules/pyutil/default.nix +++ b/pkgs/development/python-modules/pyutil/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, mock -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, simplejson -, twisted -, versioneer +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + mock, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, + simplejson, + twisted, + versioneer, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - jsonutil = [ - simplejson - ]; + jsonutil = [ simplejson ]; # Module not available # randcookie = [ # zbase32 @@ -49,9 +48,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "pyutil" - ]; + pythonImportsCheck = [ "pyutil" ]; disabledTests = lib.optionals (pythonAtLeast "3.12") [ # https://github.com/tpltnt/pyutil/issues/10 @@ -74,5 +71,4 @@ buildPythonPackage rec { license = licenses.gpl2Plus; maintainers = with maintainers; [ prusnak ]; }; - } diff --git a/pkgs/development/python-modules/pyutilib/default.nix b/pkgs/development/python-modules/pyutilib/default.nix index ba1670a92645..eb2905444fe8 100644 --- a/pkgs/development/python-modules/pyutilib/default.nix +++ b/pkgs/development/python-modules/pyutilib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, six +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyuv/default.nix b/pkgs/development/python-modules/pyuv/default.nix index 594e1d7b34e0..1437a87ff6f5 100644 --- a/pkgs/development/python-modules/pyuv/default.nix +++ b/pkgs/development/python-modules/pyuv/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonAtLeast -, fetchFromGitHub -, fetchpatch -, libuv +{ + lib, + buildPythonPackage, + pythonAtLeast, + fetchFromGitHub, + fetchpatch, + libuv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyvcd/default.nix b/pkgs/development/python-modules/pyvcd/default.nix index 9f206dcda1bf..1a1e912c9b50 100644 --- a/pkgs/development/python-modules/pyvcd/default.nix +++ b/pkgs/development/python-modules/pyvcd/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,6 +30,9 @@ buildPythonPackage rec { homepage = "https://github.com/SanDisk-Open-Source/pyvcd"; changelog = "https://github.com/SanDisk-Open-Source/pyvcd/blob/${version}/CHANGELOG.rst"; license = licenses.mit; - maintainers = with maintainers; [ sb0 emily ]; + maintainers = with maintainers; [ + sb0 + emily + ]; }; } diff --git a/pkgs/development/python-modules/pyvera/default.nix b/pkgs/development/python-modules/pyvera/default.nix index b43840b0790a..7fbc696ec598 100644 --- a/pkgs/development/python-modules/pyvera/default.nix +++ b/pkgs/development/python-modules/pyvera/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-cov -, pytest-asyncio -, pytest-timeout -, responses -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-cov, + pytest-asyncio, + pytest-timeout, + responses, + pytestCheckHook, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyverilog/default.nix b/pkgs/development/python-modules/pyverilog/default.nix index bc526604d87b..ba591fa9f53b 100644 --- a/pkgs/development/python-modules/pyverilog/default.nix +++ b/pkgs/development/python-modules/pyverilog/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, jinja2 -, ply -, verilog -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + jinja2, + ply, + verilog, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace "python_paths" "pythonpath" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/PyHDI/Pyverilog"; diff --git a/pkgs/development/python-modules/pyversasense/default.nix b/pkgs/development/python-modules/pyversasense/default.nix index 908d9d37f7ba..d6328c4acf81 100644 --- a/pkgs/development/python-modules/pyversasense/default.nix +++ b/pkgs/development/python-modules/pyversasense/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, asynctest -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + asynctest, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { sha256 = "vTaDEwImWDMInwti0Jj+j+RFEtXOOKtiH5wOMD6ZmJk="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; doCheck = pythonOlder "3.11"; # asynctest unsupported on python3.11 @@ -34,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests/test.py" - ]; + pytestFlagsArray = [ "tests/test.py" ]; disabledTests = [ # Tests are not properly mocking network requests @@ -46,9 +43,7 @@ buildPythonPackage rec { "test_samples" ]; - pythonImportsCheck = [ - "pyversasense" - ]; + pythonImportsCheck = [ "pyversasense" ]; meta = with lib; { description = "Python library to communicate with the VersaSense API"; diff --git a/pkgs/development/python-modules/pyvesync/default.nix b/pkgs/development/python-modules/pyvesync/default.nix index 62ea4229079e..02ebd91c037e 100644 --- a/pkgs/development/python-modules/pyvesync/default.nix +++ b/pkgs/development/python-modules/pyvesync/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-ddtTtTAUpvS8DN1vKVN+CjnmYp20xyxHydwOaDRjWzo="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Test are not available (not in PyPI tarball and there are no GitHub releases) doCheck = false; - pythonImportsCheck = [ - "pyvesync" - ]; + pythonImportsCheck = [ "pyvesync" ]; meta = with lib; { description = "Python library to manage Etekcity Devices and Levoit Air Purifier"; diff --git a/pkgs/development/python-modules/pyvex/default.nix b/pkgs/development/python-modules/pyvex/default.nix index d3765866dc61..8537a3240814 100644 --- a/pkgs/development/python-modules/pyvex/default.nix +++ b/pkgs/development/python-modules/pyvex/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, bitstring -, buildPythonPackage -, cffi -, fetchPypi -, pycparser -, pythonOlder -, setuptools +{ + lib, + stdenv, + bitstring, + buildPythonPackage, + cffi, + fetchPypi, + pycparser, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-P16jsBmFkuzMHcVTvGEK7/SzIkVpFJsUlxFeHCHivig="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ bitstring @@ -51,14 +50,16 @@ buildPythonPackage rec { # Switch to GitHub release after all angr parts are present doCheck = false; - pythonImportsCheck = [ - "pyvex" - ]; + pythonImportsCheck = [ "pyvex" ]; meta = with lib; { description = "Python interface to libVEX and VEX IR"; homepage = "https://github.com/angr/pyvex"; - license = with licenses; [ bsd2 gpl3Plus lgpl3Plus ]; + license = with licenses; [ + bsd2 + gpl3Plus + lgpl3Plus + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/pyvicare/default.nix b/pkgs/development/python-modules/pyvicare/default.nix index 56f74a93b21e..69edcefbb4a0 100644 --- a/pkgs/development/python-modules/pyvicare/default.nix +++ b/pkgs/development/python-modules/pyvicare/default.nix @@ -1,11 +1,12 @@ -{ lib -, authlib -, buildPythonPackage -, fetchFromGitHub -, pkce -, pytestCheckHook -, pythonOlder -, simplejson +{ + lib, + authlib, + buildPythonPackage, + fetchFromGitHub, + pkce, + pytestCheckHook, + pythonOlder, + simplejson, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { simplejson ]; - pythonImportsCheck = [ - "PyViCare" - ]; + pythonImportsCheck = [ "PyViCare" ]; meta = with lib; { description = "Python Library to access Viessmann ViCare API"; diff --git a/pkgs/development/python-modules/pyvips/default.nix b/pkgs/development/python-modules/pyvips/default.nix index a3872cdb858b..023e1bb79636 100644 --- a/pkgs/development/python-modules/pyvips/default.nix +++ b/pkgs/development/python-modules/pyvips/default.nix @@ -1,14 +1,16 @@ -{ stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, glib -, vips -, cffi -, pkgconfig # from pythonPackages -, pkg-config # from pkgs -, lib }: +{ + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + glib, + vips, + cffi, + pkgconfig, # from pythonPackages + pkg-config, # from pkgs + lib, +}: buildPythonPackage rec { pname = "pyvips"; @@ -24,9 +26,15 @@ buildPythonPackage rec { hash = "sha256-9S7h3bkm+QP78cpemYS7l3c8t+wXsJ5MUAP2T50R/Mc="; }; - nativeBuildInputs = [ pkgconfig pkg-config ]; + nativeBuildInputs = [ + pkgconfig + pkg-config + ]; - buildInputs = [ glib vips ]; + buildInputs = [ + glib + vips + ]; propagatedBuildInputs = [ cffi ]; @@ -51,6 +59,9 @@ buildPythonPackage rec { homepage = "https://github.com/libvips/pyvips"; changelog = "https://github.com/libvips/pyvips/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; - maintainers = with maintainers; [ ccellado anthonyroussel ]; + maintainers = with maintainers; [ + ccellado + anthonyroussel + ]; }; } diff --git a/pkgs/development/python-modules/pyvirtualdisplay/default.nix b/pkgs/development/python-modules/pyvirtualdisplay/default.nix index b4d29851ef34..0574c5706338 100644 --- a/pkgs/development/python-modules/pyvirtualdisplay/default.nix +++ b/pkgs/development/python-modules/pyvirtualdisplay/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, easyprocess }: +{ + lib, + buildPythonPackage, + fetchPypi, + easyprocess, +}: buildPythonPackage rec { pname = "pyvirtualdisplay"; diff --git a/pkgs/development/python-modules/pyvis/default.nix b/pkgs/development/python-modules/pyvis/default.nix index cb39d67192c9..d7bc582a551c 100644 --- a/pkgs/development/python-modules/pyvis/default.nix +++ b/pkgs/development/python-modules/pyvis/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, fetchpatch -, buildPythonPackage -, setuptools -, networkx -, jinja2 -, ipython -, jsonpickle -, pytestCheckHook -, numpy +{ + lib, + fetchFromGitHub, + fetchpatch, + buildPythonPackage, + setuptools, + networkx, + jinja2, + ipython, + jsonpickle, + pytestCheckHook, + numpy, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-eo9Mk2c0hrBarCrzwmkXha3Qt4Bl1qR7Lhl9EkUx96E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ jinja2 diff --git a/pkgs/development/python-modules/pyvisa-py/default.nix b/pkgs/development/python-modules/pyvisa-py/default.nix index d64213c2c540..4a2b39a87ab2 100644 --- a/pkgs/development/python-modules/pyvisa-py/default.nix +++ b/pkgs/development/python-modules/pyvisa-py/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools -, setuptools-scm -, gpib-ctypes -, pyserial -, pyusb -, pyvisa -, typing-extensions -, psutil -, zeroconf -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + setuptools-scm, + gpib-ctypes, + pyserial, + pyusb, + pyvisa, + typing-extensions, + psutil, + zeroconf, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { # vicp = [ pyvicp zeroconf ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Module that implements the Virtual Instrument Software Architecture"; diff --git a/pkgs/development/python-modules/pyvisa-sim/default.nix b/pkgs/development/python-modules/pyvisa-sim/default.nix index 9fcce19d6a20..69e61ea9d034 100644 --- a/pkgs/development/python-modules/pyvisa-sim/default.nix +++ b/pkgs/development/python-modules/pyvisa-sim/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchPypi -, pythonOlder -, buildPythonPackage -, pyvisa -, pyyaml -, stringparser -, typing-extensions -, pytestCheckHook -, setuptools -, setuptools-scm -, wheel +{ + lib, + fetchPypi, + pythonOlder, + buildPythonPackage, + pyvisa, + pyyaml, + stringparser, + typing-extensions, + pytestCheckHook, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -38,16 +39,12 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pyvisa_sim" ]; # should be fixed after 0.5.1, remove at next release - disabledTestPaths = [ - "pyvisa_sim/testsuite/test_all.py" - ]; + disabledTestPaths = [ "pyvisa_sim/testsuite/test_all.py" ]; meta = with lib; { description = "Simulated backend for PyVISA implementing TCPIP, GPIB, RS232, and USB resources"; diff --git a/pkgs/development/python-modules/pyvisa/default.nix b/pkgs/development/python-modules/pyvisa/default.nix index 3d017f8ad2e5..c70ec5302ff1 100644 --- a/pkgs/development/python-modules/pyvisa/default.nix +++ b/pkgs/development/python-modules/pyvisa/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools-scm -, setuptools -, typing-extensions -, pytestCheckHook -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools-scm, + setuptools, + typing-extensions, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,18 +28,12 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Test can't find cli tool bin path correctly - disabledTests = [ - "test_visa_info" - ]; + disabledTests = [ "test_visa_info" ]; meta = with lib; { description = "Python package for support of the Virtual Instrument Software Architecture (VISA)"; diff --git a/pkgs/development/python-modules/pyvista/default.nix b/pkgs/development/python-modules/pyvista/default.nix index c31819a693cb..2f17321b6010 100644 --- a/pkgs/development/python-modules/pyvista/default.nix +++ b/pkgs/development/python-modules/pyvista/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, imageio -, matplotlib -, numpy -, pillow -, pooch -, pythonOlder -, scooby -, setuptools -, vtk +{ + lib, + buildPythonPackage, + fetchFromGitHub, + imageio, + matplotlib, + numpy, + pillow, + pooch, + pythonOlder, + scooby, + setuptools, + vtk, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-ZAj0aIinaVet/zK8yF1LrB63hrb2dTmTROA8uNl0yug="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ imageio @@ -43,9 +42,7 @@ buildPythonPackage rec { # Fatal Python error: Aborted doCheck = false; - pythonImportsCheck = [ - "pyvista" - ]; + pythonImportsCheck = [ "pyvista" ]; meta = with lib; { description = "Easier Pythonic interface to VTK"; diff --git a/pkgs/development/python-modules/pyviz-comms/default.nix b/pkgs/development/python-modules/pyviz-comms/default.nix index 4b3678494990..a83c27077965 100644 --- a/pkgs/development/python-modules/pyviz-comms/default.nix +++ b/pkgs/development/python-modules/pyviz-comms/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, lib -, param -, panel +{ + buildPythonPackage, + fetchPypi, + lib, + param, + panel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyvizio/default.nix b/pkgs/development/python-modules/pyvizio/default.nix index 930e6e77bfa9..72793ca72b92 100644 --- a/pkgs/development/python-modules/pyvizio/default.nix +++ b/pkgs/development/python-modules/pyvizio/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, click -, fetchPypi -, jsonpickle -, requests -, tabulate -, xmltodict -, zeroconf +{ + lib, + aiohttp, + buildPythonPackage, + click, + fetchPypi, + jsonpickle, + requests, + tabulate, + xmltodict, + zeroconf, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyvlx/default.nix b/pkgs/development/python-modules/pyvlx/default.nix index 263971e93321..0bfb49ebc383 100644 --- a/pkgs/development/python-modules/pyvlx/default.nix +++ b/pkgs/development/python-modules/pyvlx/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools -, typing-extensions -, zeroconf +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools, + typing-extensions, + zeroconf, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-J+oJQHsULrJQNdZqYsl2hufNubMwV1KtG10jZH0jbU4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyyaml @@ -34,13 +33,9 @@ buildPythonPackage rec { zeroconf ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyvlx" - ]; + pythonImportsCheck = [ "pyvlx" ]; meta = with lib; { description = "Python client to work with Velux units"; diff --git a/pkgs/development/python-modules/pyvmomi/default.nix b/pkgs/development/python-modules/pyvmomi/default.nix index f395f88bf7dc..c075df382106 100644 --- a/pkgs/development/python-modules/pyvmomi/default.nix +++ b/pkgs/development/python-modules/pyvmomi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, requests -, six -, pyopenssl -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + requests, + six, + pyopenssl, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyvo/default.nix b/pkgs/development/python-modules/pyvo/default.nix index 6ebabd1b7340..382877c477d8 100644 --- a/pkgs/development/python-modules/pyvo/default.nix +++ b/pkgs/development/python-modules/pyvo/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, astropy -, pillow -, pythonOlder -, pytestCheckHook -, pytest-astropy -, requests -, requests-mock -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + astropy, + pillow, + pythonOlder, + pytestCheckHook, + pytest-astropy, + requests, + requests-mock, + setuptools-scm, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-ByCBD+e3ZrpT0Q6dnkuyO8lnwVGm85LiKmy/4NRTpjI="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ astropy diff --git a/pkgs/development/python-modules/pyvolumio/default.nix b/pkgs/development/python-modules/pyvolumio/default.nix index aac4f9c73a71..10a846948f24 100644 --- a/pkgs/development/python-modules/pyvolumio/default.nix +++ b/pkgs/development/python-modules/pyvolumio/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyvoro/default.nix b/pkgs/development/python-modules/pyvoro/default.nix index 5c17554935d2..403f61571b46 100644 --- a/pkgs/development/python-modules/pyvoro/default.nix +++ b/pkgs/development/python-modules/pyvoro/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pywal/default.nix b/pkgs/development/python-modules/pywal/default.nix index a37a52f14663..2a5ff3bd8e69 100644 --- a/pkgs/development/python-modules/pywal/default.nix +++ b/pkgs/development/python-modules/pywal/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, imagemagick, feh, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + imagemagick, + feh, + isPy3k, +}: buildPythonPackage rec { pname = "pywal"; diff --git a/pkgs/development/python-modules/pywatchman/default.nix b/pkgs/development/python-modules/pywatchman/default.nix index b4448ecdbe1d..d0311c4fdb39 100644 --- a/pkgs/development/python-modules/pywatchman/default.nix +++ b/pkgs/development/python-modules/pywatchman/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, watchman }: +{ + lib, + buildPythonPackage, + fetchPypi, + watchman, +}: buildPythonPackage rec { pname = "pywatchman"; @@ -23,5 +28,4 @@ buildPythonPackage rec { homepage = "https://facebook.github.io/watchman/"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/pywaterkotte/default.nix b/pkgs/development/python-modules/pywaterkotte/default.nix index 43f276a2df82..04b7ebbe06f4 100644 --- a/pkgs/development/python-modules/pywaterkotte/default.nix +++ b/pkgs/development/python-modules/pywaterkotte/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytestCheckHook -, pythonOlder -, requests -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytestCheckHook, + pythonOlder, + requests, + responses, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-zK0x6LyXPPNPA20Zq+S1B1q7ZWGxQmWf4JxEfjNkPQw="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; - pythonImportsCheck = [ - "pywaterkotte" - ]; + pythonImportsCheck = [ "pywaterkotte" ]; meta = with lib; { description = "Library to communicate with Waterkotte heatpumps"; diff --git a/pkgs/development/python-modules/pywavefront/default.nix b/pkgs/development/python-modules/pywavefront/default.nix index 0139f8209f37..534b5647c046 100644 --- a/pkgs/development/python-modules/pywavefront/default.nix +++ b/pkgs/development/python-modules/pywavefront/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pyglet -, pytestCheckHook -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pyglet, + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -19,20 +20,15 @@ buildPythonPackage rec { hash = "sha256-ci40L2opJ+NYYtaAeX1Y5pzkdK+loFspTriX/xv4KR8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - passthru.optional-dependencies.visualization = [ - pyglet - ]; + passthru.optional-dependencies.visualization = [ pyglet ]; nativeCheckInputs = [ pytestCheckHook mock ]; - pythonImportsCheck = [ "pywavefront" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/pywavelets/default.nix b/pkgs/development/python-modules/pywavelets/default.nix index af598a1439ca..149b9fb57fd8 100644 --- a/pkgs/development/python-modules/pywavelets/default.nix +++ b/pkgs/development/python-modules/pywavelets/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, meson-python -, cython -, pytestCheckHook -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + meson-python, + cython, + pytestCheckHook, + numpy, }: buildPythonPackage rec { @@ -56,5 +57,4 @@ buildPythonPackage rec { changelog = "https://github.com/PyWavelets/pywt/releases/tag/v${version}"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/pywayland/default.nix b/pkgs/development/python-modules/pywayland/default.nix index 97e75684e8f4..2efb46513e1c 100644 --- a/pkgs/development/python-modules/pywayland/default.nix +++ b/pkgs/development/python-modules/pywayland/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, cffi -, pkg-config -, wayland -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + python, + cffi, + pkg-config, + wayland, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pywbem/default.nix b/pkgs/development/python-modules/pywbem/default.nix index 4f06262c59d2..f61baecd5e85 100644 --- a/pkgs/development/python-modules/pywbem/default.nix +++ b/pkgs/development/python-modules/pywbem/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, decorator -, fetchPypi -, formencode -, httpretty -, libxml2 -, lxml -, mock -, nocasedict -, nocaselist -, pbr -, ply -, pytest -, pythonOlder -, pytz -, pyyaml -, requests -, requests-mock -, six -, testfixtures -, yamlloader +{ + lib, + buildPythonPackage, + decorator, + fetchPypi, + formencode, + httpretty, + libxml2, + lxml, + mock, + nocasedict, + nocaselist, + pbr, + ply, + pytest, + pythonOlder, + pytz, + pyyaml, + requests, + requests-mock, + six, + testfixtures, + yamlloader, }: buildPythonPackage rec { @@ -58,9 +59,7 @@ buildPythonPackage rec { testfixtures ]; - pythonImportsCheck = [ - "pywbem" - ]; + pythonImportsCheck = [ "pywbem" ]; meta = with lib; { description = "Support for the WBEM standard for systems management"; diff --git a/pkgs/development/python-modules/pyweatherflowrest/default.nix b/pkgs/development/python-modules/pyweatherflowrest/default.nix index 2d04fe3feb21..3ae2b78132ef 100644 --- a/pkgs/development/python-modules/pyweatherflowrest/default.nix +++ b/pkgs/development/python-modules/pyweatherflowrest/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,14 +21,9 @@ buildPythonPackage rec { hash = "sha256-l1V3HgzqnnoY6sWHwfgBtcIR782RwKhekY2qOLrUMNY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -37,9 +33,7 @@ buildPythonPackage rec { # Module has no tests. test.py is a demo script doCheck = false; - pythonImportsCheck = [ - "pyweatherflowrest" - ]; + pythonImportsCheck = [ "pyweatherflowrest" ]; meta = with lib; { description = "Python module to get data from WeatherFlow Weather Stations"; diff --git a/pkgs/development/python-modules/pyweatherflowudp/default.nix b/pkgs/development/python-modules/pyweatherflowudp/default.nix index 34674635a418..a39c1d356294 100644 --- a/pkgs/development/python-modules/pyweatherflowudp/default.nix +++ b/pkgs/development/python-modules/pyweatherflowudp/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pint -, poetry-core -, psychrolib -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pint, + poetry-core, + psychrolib, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-aTwGFYTtd07BsWFaFc7ns+8oh2AxTUfRFSu81Zv5OoA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pint @@ -37,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pyweatherflowudp" - ]; + pythonImportsCheck = [ "pyweatherflowudp" ]; disabledTests = [ # Tests require network access @@ -59,4 +56,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ fab ]; }; } - diff --git a/pkgs/development/python-modules/pywebpush/default.nix b/pkgs/development/python-modules/pywebpush/default.nix index ebb3313b20c5..cc00679867f3 100644 --- a/pkgs/development/python-modules/pywebpush/default.nix +++ b/pkgs/development/python-modules/pywebpush/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, buildPythonPackage -, cryptography -, fetchPypi -, http-ece -, mock -, py-vapid -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, six +{ + lib, + aiohttp, + buildPythonPackage, + cryptography, + fetchPypi, + http-ece, + mock, + py-vapid, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + six, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-A8zD6XW2A3S3Y0xJVZVha+Ujvyx9oNl26E/amsjGMwE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pywebpush" - ]; + pythonImportsCheck = [ "pywebpush" ]; meta = with lib; { description = "Webpush Data encryption library for Python"; diff --git a/pkgs/development/python-modules/pywebview/default.nix b/pkgs/development/python-modules/pywebview/default.nix index b2d832275221..db508d3e5ef9 100644 --- a/pkgs/development/python-modules/pywebview/default.nix +++ b/pkgs/development/python-modules/pywebview/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, bottle -, importlib-resources -, proxy-tools -, pygobject3 -, pyqtwebengine -, pytest -, pythonOlder -, qt5 -, qtpy -, six -, xvfb-run +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + bottle, + importlib-resources, + proxy-tools, + pygobject3, + pyqtwebengine, + pytest, + pythonOlder, + qt5, + qtpy, + six, + xvfb-run, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { pyqtwebengine proxy-tools six - ] ++ lib.optionals (pythonOlder "3.7") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ]; nativeCheckInputs = [ pygobject3 @@ -68,9 +67,7 @@ buildPythonPackage rec { popd ''; - pythonImportsCheck = [ - "webview" - ]; + pythonImportsCheck = [ "webview" ]; meta = with lib; { description = "Lightweight cross-platform wrapper around a webview"; diff --git a/pkgs/development/python-modules/pywemo/default.nix b/pkgs/development/python-modules/pywemo/default.nix index c0e69285d15a..4734e9522925 100644 --- a/pkgs/development/python-modules/pywemo/default.nix +++ b/pkgs/development/python-modules/pywemo/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hypothesis -, ifaddr -, lxml -, poetry-core -, pytest-vcr -, pytestCheckHook -, pythonOlder -, requests -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hypothesis, + ifaddr, + lxml, + poetry-core, + pytest-vcr, + pytestCheckHook, + pythonOlder, + requests, + urllib3, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-XpCRrCJYHv1so5/aHoGrtkgp3RX1NUKPUawJqK/FaG0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ ifaddr @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "pywemo" - ]; + pythonImportsCheck = [ "pywemo" ]; meta = with lib; { description = "Python module to discover and control WeMo devices"; diff --git a/pkgs/development/python-modules/pywerview/default.nix b/pkgs/development/python-modules/pywerview/default.nix index e3fb6770f365..3e92420c5423 100644 --- a/pkgs/development/python-modules/pywerview/default.nix +++ b/pkgs/development/python-modules/pywerview/default.nix @@ -1,15 +1,16 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, gssapi -, impacket -, ldap3 -, lxml -, pyasn1 -, pycryptodome -, pythonOlder -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + gssapi, + impacket, + ldap3, + lxml, + pyasn1, + pycryptodome, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,14 +22,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "the-useless-one"; - repo ="pywerview"; + repo = "pywerview"; rev = "refs/tags/v${version}"; hash = "sha256-WZE6qWq9v4A78YELMEcbgyufBRrVFRTqlhGmknpKn1Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 @@ -43,9 +42,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pywerview" - ]; + pythonImportsCheck = [ "pywerview" ]; meta = with lib; { description = "Module for PowerSploit's PowerView support"; diff --git a/pkgs/development/python-modules/pywfa/default.nix b/pkgs/development/python-modules/pywfa/default.nix index 2aca36a07da7..1741cbb9bf71 100644 --- a/pkgs/development/python-modules/pywfa/default.nix +++ b/pkgs/development/python-modules/pywfa/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, cython -, setuptools -, wheel -, pysam -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + cython, + setuptools, + wheel, + pysam, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pywilight/default.nix b/pkgs/development/python-modules/pywilight/default.nix index e25f24d40334..1c8d28858c75 100644 --- a/pkgs/development/python-modules/pywilight/default.nix +++ b/pkgs/development/python-modules/pywilight/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ifaddr -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + ifaddr, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "pywilight" - ]; + pythonImportsCheck = [ "pywilight" ]; meta = with lib; { description = "Python API for WiLight device"; diff --git a/pkgs/development/python-modules/pywinrm/default.nix b/pkgs/development/python-modules/pywinrm/default.nix index 2455b476a4d9..f35c2757e4e6 100644 --- a/pkgs/development/python-modules/pywinrm/default.nix +++ b/pkgs/development/python-modules/pywinrm/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, mock -, pytestCheckHook -, requests -, requests-ntlm -, six -, xmltodict +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + mock, + pytestCheckHook, + requests, + requests-ntlm, + six, + xmltodict, }: buildPythonPackage rec { @@ -34,18 +35,17 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "winrm" - ]; + pythonImportsCheck = [ "winrm" ]; - pytestFlagsArray = [ - "winrm/tests/" - ]; + pytestFlagsArray = [ "winrm/tests/" ]; meta = with lib; { description = "Python library for Windows Remote Management"; homepage = "https://github.com/diyan/pywinrm"; license = licenses.mit; - maintainers = with maintainers; [ elasticdog kamadorueda ]; + maintainers = with maintainers; [ + elasticdog + kamadorueda + ]; }; } diff --git a/pkgs/development/python-modules/pywizlight/default.nix b/pkgs/development/python-modules/pywizlight/default.nix index 860ce91d7144..3a925663da96 100644 --- a/pkgs/development/python-modules/pywizlight/default.nix +++ b/pkgs/development/python-modules/pywizlight/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-IkuAYEg5nuUT6zxmuJe6afp4MVWf0+HAnEoAdOrdTvQ="; }; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=auto" - ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; disabledTests = [ # Tests requires network features (e. g., discovery testing) @@ -43,9 +40,7 @@ buildPythonPackage rec { "test_error_PilotBuilder_cold_white_lower" ]; - pythonImportsCheck = [ - "pywizlight" - ]; + pythonImportsCheck = [ "pywizlight" ]; meta = with lib; { description = "Python connector for WiZ light bulbs"; diff --git a/pkgs/development/python-modules/pywlroots/default.nix b/pkgs/development/python-modules/pywlroots/default.nix index a3d52e1bbb6b..4d9522b98bb1 100644 --- a/pkgs/development/python-modules/pywlroots/default.nix +++ b/pkgs/development/python-modules/pywlroots/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, cffi -, pkg-config -, libxkbcommon -, libinput -, pixman -, pythonOlder -, udev -, wlroots -, wayland -, pywayland -, xkbcommon -, xorg -, pytestCheckHook -, qtile +{ + lib, + buildPythonPackage, + fetchPypi, + python, + cffi, + pkg-config, + libxkbcommon, + libinput, + pixman, + pythonOlder, + udev, + wlroots, + wayland, + pywayland, + xkbcommon, + xorg, + pytestCheckHook, + qtile, }: buildPythonPackage rec { @@ -32,8 +33,21 @@ buildPythonPackage rec { nativeBuildInputs = [ pkg-config ]; propagatedNativeBuildInputs = [ cffi ]; - buildInputs = [ libinput libxkbcommon pixman xorg.libxcb xorg.xcbutilwm udev wayland wlroots ]; - propagatedBuildInputs = [ cffi pywayland xkbcommon ]; + buildInputs = [ + libinput + libxkbcommon + pixman + xorg.libxcb + xorg.xcbutilwm + udev + wayland + wlroots + ]; + propagatedBuildInputs = [ + cffi + pywayland + xkbcommon + ]; nativeCheckInputs = [ pytestCheckHook ]; postBuild = '' @@ -42,7 +56,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "wlroots" ]; - passthru.tests = { inherit qtile; }; + passthru.tests = { + inherit qtile; + }; meta = with lib; { homepage = "https://github.com/flacjacket/pywlroots"; diff --git a/pkgs/development/python-modules/pyworld/default.nix b/pkgs/development/python-modules/pyworld/default.nix index cf1547c8cab6..76addd25795e 100644 --- a/pkgs/development/python-modules/pyworld/default.nix +++ b/pkgs/development/python-modules/pyworld/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, cython +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + cython, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-EGxw7np9jJukiNgCLyAzcGkppA8CZCVrjofaWquYMDo="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "pyworld" ]; diff --git a/pkgs/development/python-modules/pyws66i/default.nix b/pkgs/development/python-modules/pyws66i/default.nix index 6931a0531ced..47df29289202 100644 --- a/pkgs/development/python-modules/pyws66i/default.nix +++ b/pkgs/development/python-modules/pyws66i/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-NTL2+xLqSNsz4YdUTwr0nFjhm1NNgB8qDnWSoE2sizY="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyws66i" - ]; + pythonImportsCheck = [ "pyws66i" ]; meta = with lib; { description = "Library to interface with WS66i 6-zone amplifier"; diff --git a/pkgs/development/python-modules/pyx/default.nix b/pkgs/development/python-modules/pyx/default.nix index 393f63123322..0cb5b39462e6 100644 --- a/pkgs/development/python-modules/pyx/default.nix +++ b/pkgs/development/python-modules/pyx/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyxattr/default.nix b/pkgs/development/python-modules/pyxattr/default.nix index ebb922c8d97a..5c2489000fea 100644 --- a/pkgs/development/python-modules/pyxattr/default.nix +++ b/pkgs/development/python-modules/pyxattr/default.nix @@ -1,27 +1,28 @@ -{ lib -, pkgs -, fetchPypi -, buildPythonPackage +{ + lib, + pkgs, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { - pname = "pyxattr"; - version = "0.8.1"; - format = "setuptools"; + pname = "pyxattr"; + version = "0.8.1"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - hash = "sha256-SMV47PjqC9Q1GxdSRw4wGpCjdhx8IfAPlT3PbW+m7lo="; - }; + src = fetchPypi { + inherit pname version; + hash = "sha256-SMV47PjqC9Q1GxdSRw4wGpCjdhx8IfAPlT3PbW+m7lo="; + }; - # IOError: [Errno 95] Operation not supported (expected) - doCheck = false; + # IOError: [Errno 95] Operation not supported (expected) + doCheck = false; - buildInputs = with pkgs; [ attr ]; + buildInputs = with pkgs; [ attr ]; - meta = with lib; { - description = "A Python extension module which gives access to the extended attributes for filesystem objects available in some operating systems"; - license = licenses.lgpl21Plus; - inherit (pkgs.attr.meta) platforms; - }; + meta = with lib; { + description = "A Python extension module which gives access to the extended attributes for filesystem objects available in some operating systems"; + license = licenses.lgpl21Plus; + inherit (pkgs.attr.meta) platforms; + }; } diff --git a/pkgs/development/python-modules/pyxbe/default.nix b/pkgs/development/python-modules/pyxbe/default.nix index 3442d5f9848e..7fc137cdaf1d 100644 --- a/pkgs/development/python-modules/pyxbe/default.nix +++ b/pkgs/development/python-modules/pyxbe/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-iLzGGgizUbaEG1xrNq4WDaWrGtcaLwAYgn4NGYiSDBo="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Update location for run with pytest preCheck = '' @@ -29,9 +28,7 @@ buildPythonPackage rec { --replace '"xbefiles"' '"tests/xbefiles"' ''; - pythonImportsCheck = [ - "xbe" - ]; + pythonImportsCheck = [ "xbe" ]; meta = with lib; { description = "Library to work with XBE files"; diff --git a/pkgs/development/python-modules/pyxdg/default.nix b/pkgs/development/python-modules/pyxdg/default.nix index a5ef39c2f69a..b7ec762f7d6b 100644 --- a/pkgs/development/python-modules/pyxdg/default.nix +++ b/pkgs/development/python-modules/pyxdg/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab +{ + lib, + buildPythonPackage, + fetchFromGitLab, }: buildPythonPackage rec { @@ -8,7 +9,7 @@ buildPythonPackage rec { version = "0.28"; format = "setuptools"; - src = fetchFromGitLab { + src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "xdg"; repo = pname; diff --git a/pkgs/development/python-modules/pyxeoma/default.nix b/pkgs/development/python-modules/pyxeoma/default.nix index 2036440a4699..18199146a921 100644 --- a/pkgs/development/python-modules/pyxeoma/default.nix +++ b/pkgs/development/python-modules/pyxeoma/default.nix @@ -1,7 +1,8 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyxiaomigateway/default.nix b/pkgs/development/python-modules/pyxiaomigateway/default.nix index dde2e8df94ae..c42d7f055c8c 100644 --- a/pkgs/development/python-modules/pyxiaomigateway/default.nix +++ b/pkgs/development/python-modules/pyxiaomigateway/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cryptography +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cryptography, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyxl3/default.nix b/pkgs/development/python-modules/pyxl3/default.nix index e6f940e0272f..04d5ef2b5b96 100644 --- a/pkgs/development/python-modules/pyxl3/default.nix +++ b/pkgs/development/python-modules/pyxl3/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, isPy27 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyxlsb/default.nix b/pkgs/development/python-modules/pyxlsb/default.nix index df000db7e25d..a6d14a1aff3c 100644 --- a/pkgs/development/python-modules/pyxlsb/default.nix +++ b/pkgs/development/python-modules/pyxlsb/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyxnat/default.nix b/pkgs/development/python-modules/pyxnat/default.nix index 6fc74602a8a8..b905ba64bead 100644 --- a/pkgs/development/python-modules/pyxnat/default.nix +++ b/pkgs/development/python-modules/pyxnat/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, lxml -, matplotlib -, networkx -, pandas -, requests -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + lxml, + matplotlib, + networkx, + pandas, + requests, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyyaml-env-tag/default.nix b/pkgs/development/python-modules/pyyaml-env-tag/default.nix index 71488c1bb5eb..8167c85c6534 100644 --- a/pkgs/development/python-modules/pyyaml-env-tag/default.nix +++ b/pkgs/development/python-modules/pyyaml-env-tag/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pyyaml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pyyaml, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { sha256 = "1nsva88jsmwn0cb9jnrfiz4dvs9xakkpgfii7g1xwkx1pmsjc2bh"; }; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "yaml_env_tag" ]; diff --git a/pkgs/development/python-modules/pyyaml-include/default.nix b/pkgs/development/python-modules/pyyaml-include/default.nix index 3b5b9faeec9e..317ce298df95 100644 --- a/pkgs/development/python-modules/pyyaml-include/default.nix +++ b/pkgs/development/python-modules/pyyaml-include/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pyyaml -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pyyaml, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "yamlinclude" ]; diff --git a/pkgs/development/python-modules/pyyaml/default.nix b/pkgs/development/python-modules/pyyaml/default.nix index ce562e48ce54..8c6279b3ed09 100644 --- a/pkgs/development/python-modules/pyyaml/default.nix +++ b/pkgs/development/python-modules/pyyaml/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cython_0 -, setuptools -, libyaml -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cython_0, + setuptools, + libyaml, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/pyyardian/default.nix b/pkgs/development/python-modules/pyyardian/default.nix index 0216d562faea..f0c76c798bc0 100644 --- a/pkgs/development/python-modules/pyyardian/default.nix +++ b/pkgs/development/python-modules/pyyardian/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder -, wheel +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, + wheel, }: buildPythonPackage rec { @@ -26,16 +27,12 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Tests require network access doCheck = false; - pythonImportsCheck = [ - "pyyardian" - ]; + pythonImportsCheck = [ "pyyardian" ]; meta = with lib; { description = "Module for interacting with the Yardian irrigation controller"; diff --git a/pkgs/development/python-modules/pyzabbix/default.nix b/pkgs/development/python-modules/pyzabbix/default.nix index ae695f6f8684..1dd570d0660f 100644 --- a/pkgs/development/python-modules/pyzabbix/default.nix +++ b/pkgs/development/python-modules/pyzabbix/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-2yCbxPUlbTrtjD9eKmkw0fKnjiwPzmjIo5vKGv4aerU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ packaging @@ -33,9 +32,7 @@ buildPythonPackage rec { # Tests require a running Zabbix instance doCheck = false; - pythonImportsCheck = [ - "pyzabbix" - ]; + pythonImportsCheck = [ "pyzabbix" ]; meta = with lib; { description = "Module to interact with the Zabbix API"; diff --git a/pkgs/development/python-modules/pyzbar/default.nix b/pkgs/development/python-modules/pyzbar/default.nix index 334db791c3b7..44fb1c613a40 100644 --- a/pkgs/development/python-modules/pyzbar/default.nix +++ b/pkgs/development/python-modules/pyzbar/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, numpy -, pillow -, zbar -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + numpy, + pillow, + zbar, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,7 +23,10 @@ buildPythonPackage rec { buildInputs = [ zbar ]; - propagatedBuildInputs = [ pillow numpy ]; + propagatedBuildInputs = [ + pillow + numpy + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/pyzerproc/default.nix b/pkgs/development/python-modules/pyzerproc/default.nix index 6270b26bb718..5245b0205f37 100644 --- a/pkgs/development/python-modules/pyzerproc/default.nix +++ b/pkgs/development/python-modules/pyzerproc/default.nix @@ -1,13 +1,14 @@ -{ lib -, bleak -, click -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-mock -, pythonAtLeast -, pytestCheckHook -, pythonOlder +{ + lib, + bleak, + click, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-mock, + pythonAtLeast, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { "tests/test_light.py" ]; - pythonImportsCheck = [ - "pyzerproc" - ]; + pythonImportsCheck = [ "pyzerproc" ]; meta = with lib; { description = "Python library to control Zerproc Bluetooth LED smart string lights"; diff --git a/pkgs/development/python-modules/pyzipper/default.nix b/pkgs/development/python-modules/pyzipper/default.nix index 5aa583228b49..8112958b10c3 100644 --- a/pkgs/development/python-modules/pyzipper/default.nix +++ b/pkgs/development/python-modules/pyzipper/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, pycryptodomex -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + pycryptodomex, + setuptools, }: buildPythonPackage rec { @@ -23,21 +24,13 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pycryptodomex - ]; + propagatedBuildInputs = [ pycryptodomex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "pyzipper" - ]; + pythonImportsCheck = [ "pyzipper" ]; disabledTests = [ # Tests are parsing CLI output diff --git a/pkgs/development/python-modules/pyzmq/default.nix b/pkgs/development/python-modules/pyzmq/default.nix index 51429d535df4..cf07118b5d02 100644 --- a/pkgs/development/python-modules/pyzmq/default.nix +++ b/pkgs/development/python-modules/pyzmq/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, -# build-system -, cython -, setuptools -, setuptools-scm -, packaging -, cffi + # build-system + cython, + setuptools, + setuptools-scm, + packaging, + cffi, -# dependencies + # dependencies -, py -, pytestCheckHook -, python -, pythonOlder -, tornado -, zeromq -, pytest-asyncio + py, + pytestCheckHook, + python, + pythonOlder, + tornado, + zeromq, + pytest-asyncio, }: buildPythonPackage rec { @@ -37,19 +38,11 @@ buildPythonPackage rec { setuptools setuptools-scm packaging - ] ++ (if isPyPy then [ - cffi - ] else [ - cython - ]); + ] ++ (if isPyPy then [ cffi ] else [ cython ]); - buildInputs = [ - zeromq - ]; + buildInputs = [ zeromq ]; - propagatedBuildInputs = lib.optionals isPyPy [ - cffi - ]; + propagatedBuildInputs = lib.optionals isPyPy [ cffi ]; nativeCheckInputs = [ pytestCheckHook @@ -57,9 +50,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "zmq" - ]; + pythonImportsCheck = [ "zmq" ]; pytestFlagsArray = [ "$out/${python.sitePackages}/zmq/tests/" # Folder with tests @@ -89,7 +80,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python bindings for ØMQ"; homepage = "https://pyzmq.readthedocs.io/"; - license = with licenses; [ bsd3 /* or */ lgpl3Only ]; + license = with licenses; [ + bsd3 # or + lgpl3Only + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/qasync/default.nix b/pkgs/development/python-modules/qasync/default.nix index d8eb5b4c7c69..58451552bd3f 100644 --- a/pkgs/development/python-modules/qasync/default.nix +++ b/pkgs/development/python-modules/qasync/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyqt5 -, pytestCheckHook -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyqt5, + pytestCheckHook, + poetry-core, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "qasync" ]; - disabledTestPaths = [ - "tests/test_qeventloop.py" - ]; + disabledTestPaths = [ "tests/test_qeventloop.py" ]; meta = { description = "Allows coroutines to be used in PyQt/PySide applications by providing an implementation of the PEP 3156 event-loop"; diff --git a/pkgs/development/python-modules/qbittorrent-api/default.nix b/pkgs/development/python-modules/qbittorrent-api/default.nix index c2087c3f52b1..e9c1c73609cf 100644 --- a/pkgs/development/python-modules/qbittorrent-api/default.nix +++ b/pkgs/development/python-modules/qbittorrent-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, urllib3 -, packaging -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + urllib3, + packaging, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # Tests require internet access doCheck = false; - pythonImportsCheck = [ - "qbittorrentapi" - ]; + pythonImportsCheck = [ "qbittorrentapi" ]; meta = with lib; { description = "Python client implementation for qBittorrent's Web API"; diff --git a/pkgs/development/python-modules/qcelemental/default.nix b/pkgs/development/python-modules/qcelemental/default.nix index 59c8f47eea38..e585051f5aa8 100644 --- a/pkgs/development/python-modules/qcelemental/default.nix +++ b/pkgs/development/python-modules/qcelemental/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, buildPythonPackage -, lib -, fetchPypi -, poetry-core -, networkx -, numpy -, pint -, pydantic -, pytestCheckHook -, pythonOlder +{ + stdenv, + buildPythonPackage, + lib, + fetchPypi, + poetry-core, + networkx, + numpy, + pint, + pydantic, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-dlcfIUKAg6yc4S3RXVJ1sKM29E1ZvHY82kjx1CM8/08="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ networkx @@ -35,13 +34,9 @@ buildPythonPackage rec { pydantic ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "qcelemental" - ]; + pythonImportsCheck = [ "qcelemental" ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/qcengine/default.nix b/pkgs/development/python-modules/qcengine/default.nix index 7c572c98ea76..bb3c41e5b02c 100644 --- a/pkgs/development/python-modules/qcengine/default.nix +++ b/pkgs/development/python-modules/qcengine/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, psutil -, py-cpuinfo -, pydantic -, pytestCheckHook -, pythonOlder -, pyyaml -, qcelemental -, msgpack +{ + lib, + buildPythonPackage, + fetchPypi, + psutil, + py-cpuinfo, + pydantic, + pytestCheckHook, + pythonOlder, + pyyaml, + qcelemental, + msgpack, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { msgpack ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "qcengine" - ]; + pythonImportsCheck = [ "qcengine" ]; meta = with lib; { description = "Quantum chemistry program executor and IO standardizer (QCSchema) for quantum chemistry"; diff --git a/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix b/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix index c50def28bc11..10ae5affa430 100644 --- a/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix +++ b/pkgs/development/python-modules/qcodes-contrib-drivers/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, pythonOlder -, buildPythonPackage -, setuptools -, versioningit -, qcodes -, packaging -, pytestCheckHook -, pytest-mock -, pyvisa-sim +{ + lib, + fetchFromGitHub, + pythonOlder, + buildPythonPackage, + setuptools, + versioningit, + qcodes, + packaging, + pytestCheckHook, + pytest-mock, + pyvisa-sim, }: buildPythonPackage rec { @@ -25,7 +26,10 @@ buildPythonPackage rec { sha256 = "sha256-7WkG6Bq4J4PU4eWX52RaupQ8cNzE+sJ7s3PoXFRxG2w="; }; - nativeBuildInputs = [ setuptools versioningit ]; + nativeBuildInputs = [ + setuptools + versioningit + ]; propagatedBuildInputs = [ qcodes @@ -41,9 +45,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "qcodes_contrib_drivers" ]; # should be fixed starting with 0.19.0, remove at next release - disabledTestPaths = [ - "qcodes_contrib_drivers/tests/test_Keysight_M3201A.py" - ]; + disabledTestPaths = [ "qcodes_contrib_drivers/tests/test_Keysight_M3201A.py" ]; postInstall = '' export HOME="$TMPDIR" diff --git a/pkgs/development/python-modules/qcodes/default.nix b/pkgs/development/python-modules/qcodes/default.nix index 740939959e76..a33da9b4bedd 100644 --- a/pkgs/development/python-modules/qcodes/default.nix +++ b/pkgs/development/python-modules/qcodes/default.nix @@ -1,49 +1,50 @@ -{ lib -, broadbean -, buildPythonPackage -, cf-xarray -, dask -, deepdiff -, fetchFromGitHub -, h5netcdf -, h5py -, hypothesis -, importlib-metadata -, ipykernel -, ipython -, ipywidgets -, jsonschema -, lxml -, matplotlib -, numpy -, opencensus -, opencensus-ext-azure -, opentelemetry-api -, packaging -, pandas -, pillow -, pip -, pytest-asyncio -, pytest-mock -, pytest-rerunfailures -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pyvisa -, pyvisa-sim -, rsa -, ruamel-yaml -, setuptools -, sphinx -, tabulate -, tqdm -, typing-extensions -, uncertainties -, versioningit -, websockets -, wheel -, wrapt -, xarray +{ + lib, + broadbean, + buildPythonPackage, + cf-xarray, + dask, + deepdiff, + fetchFromGitHub, + h5netcdf, + h5py, + hypothesis, + importlib-metadata, + ipykernel, + ipython, + ipywidgets, + jsonschema, + lxml, + matplotlib, + numpy, + opencensus, + opencensus-ext-azure, + opentelemetry-api, + packaging, + pandas, + pillow, + pip, + pytest-asyncio, + pytest-mock, + pytest-rerunfailures, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pyvisa, + pyvisa-sim, + rsa, + ruamel-yaml, + setuptools, + sphinx, + tabulate, + tqdm, + typing-extensions, + uncertainties, + versioningit, + websockets, + wheel, + wrapt, + xarray, }: buildPythonPackage rec { @@ -94,9 +95,7 @@ buildPythonPackage rec { websockets wrapt xarray - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ deepdiff @@ -150,9 +149,7 @@ buildPythonPackage rec { "test_step_ramp" ]; - pythonImportsCheck = [ - "qcodes" - ]; + pythonImportsCheck = [ "qcodes" ]; postPatch = '' substituteInPlace pyproject.toml \ diff --git a/pkgs/development/python-modules/qdarkstyle/default.nix b/pkgs/development/python-modules/qdarkstyle/default.nix index 7c35ba686929..e492d99c70ff 100644 --- a/pkgs/development/python-modules/qdarkstyle/default.nix +++ b/pkgs/development/python-modules/qdarkstyle/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, helpdev -, qtpy +{ + lib, + fetchPypi, + buildPythonPackage, + helpdev, + qtpy, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { # No tests available doCheck = false; - propagatedBuildInputs = [ helpdev qtpy ]; + propagatedBuildInputs = [ + helpdev + qtpy + ]; meta = with lib; { description = "A dark stylesheet for Python and Qt applications"; diff --git a/pkgs/development/python-modules/qdldl/default.nix b/pkgs/development/python-modules/qdldl/default.nix index 10d05be78696..7b8d4b1fdb38 100644 --- a/pkgs/development/python-modules/qdldl/default.nix +++ b/pkgs/development/python-modules/qdldl/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cmake -, pybind11 -, numpy -, scipy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + cmake, + pybind11, + numpy, + scipy, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/qds-sdk/default.nix b/pkgs/development/python-modules/qds-sdk/default.nix index d4fb7a503144..78e2c12c66a2 100644 --- a/pkgs/development/python-modules/qds-sdk/default.nix +++ b/pkgs/development/python-modules/qds-sdk/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, boto -, inflection -, requests -, six -, urllib3 -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + boto, + inflection, + requests, + six, + urllib3, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-8aPIE2E3Fy2EiBM2FPRyjnJolIBdOzafI3Fvlod5hxU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ boto @@ -35,12 +34,13 @@ buildPythonPackage rec { urllib3 ]; - nativeCheckInputs = [ pytestCheckHook mock ]; - - pythonImportsCheck = [ - "qds_sdk" + nativeCheckInputs = [ + pytestCheckHook + mock ]; + pythonImportsCheck = [ "qds_sdk" ]; + meta = with lib; { description = "A Python module that provides the tools you need to authenticate with, and use the Qubole Data Service API"; homepage = "https://github.com/qubole/qds-sdk-py"; diff --git a/pkgs/development/python-modules/qemu/default.nix b/pkgs/development/python-modules/qemu/default.nix index ba730548bca8..9971f254c43e 100644 --- a/pkgs/development/python-modules/qemu/default.nix +++ b/pkgs/development/python-modules/qemu/default.nix @@ -1,10 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, qemu -, setuptools -, fuseSupport ? false, fusepy -, tuiSupport ? false, urwid, urwid-readline, pygments +{ + lib, + buildPythonPackage, + pythonOlder, + qemu, + setuptools, + fuseSupport ? false, + fusepy, + tuiSupport ? false, + urwid, + urwid-readline, + pygments, }: buildPythonPackage { @@ -29,13 +34,16 @@ buildPythonPackage { fi ''; - buildInputs = [ - setuptools - ]; + buildInputs = [ setuptools ]; - propagatedBuildInputs = [ ] + propagatedBuildInputs = + [ ] ++ lib.optionals fuseSupport [ fusepy ] - ++ lib.optionals tuiSupport [ urwid urwid-readline pygments ]; + ++ lib.optionals tuiSupport [ + urwid + urwid-readline + pygments + ]; # Project requires avocado-framework for testing, therefore replacing check phase checkPhase = '' @@ -47,10 +55,10 @@ buildPythonPackage { pythonImportsCheck = [ "qemu" ]; preFixup = - (lib.optionalString (! tuiSupport) '' + (lib.optionalString (!tuiSupport) '' rm $out/bin/qmp-tui '') - + (lib.optionalString (! fuseSupport) '' + + (lib.optionalString (!fuseSupport) '' rm $out/bin/qom-fuse ''); @@ -58,6 +66,9 @@ buildPythonPackage { homepage = "http://www.qemu.org/"; description = "Python tooling used by the QEMU project to build, configure, and test QEMU"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ devplayer0 davhau ]; + maintainers = with maintainers; [ + devplayer0 + davhau + ]; }; } diff --git a/pkgs/development/python-modules/qgrid/default.nix b/pkgs/development/python-modules/qgrid/default.nix index 778a9eae3714..5fa79708ffa7 100644 --- a/pkgs/development/python-modules/qgrid/default.nix +++ b/pkgs/development/python-modules/qgrid/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, ipywidgets -, notebook -, pandas -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + ipywidgets, + notebook, + pandas, + pytestCheckHook, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pandas ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Those tests are also failing upstream disabledTests = [ diff --git a/pkgs/development/python-modules/qiling/default.nix b/pkgs/development/python-modules/qiling/default.nix index b7d424be3bfe..584cca959d6e 100644 --- a/pkgs/development/python-modules/qiling/default.nix +++ b/pkgs/development/python-modules/qiling/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, capstone -, fetchFromGitHub -, fetchPypi -, gevent -, keystone-engine -, multiprocess -, pefile -, pyelftools -, pythonOlder -, python-fx -, python-registry -, pyyaml -, questionary -, termcolor -, unicorn +{ + lib, + buildPythonPackage, + capstone, + fetchFromGitHub, + fetchPypi, + gevent, + keystone-engine, + multiprocess, + pefile, + pyelftools, + pythonOlder, + python-fx, + python-registry, + pyyaml, + questionary, + termcolor, + unicorn, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { # amongst other things) doCheck = false; - pythonImportsCheck = [ - "qiling" - ]; + pythonImportsCheck = [ "qiling" ]; meta = with lib; { description = "Qiling Advanced Binary Emulation Framework"; diff --git a/pkgs/development/python-modules/qimage2ndarray/default.nix b/pkgs/development/python-modules/qimage2ndarray/default.nix index 2a5f575fb117..346f7084e497 100644 --- a/pkgs/development/python-modules/qimage2ndarray/default.nix +++ b/pkgs/development/python-modules/qimage2ndarray/default.nix @@ -1,6 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k -, numpy -, pyqt5 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + numpy, + pyqt5, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/qingping-ble/default.nix b/pkgs/development/python-modules/qingping-ble/default.nix index 1a678a2db496..949ebbd187b8 100644 --- a/pkgs/development/python-modules/qingping-ble/default.nix +++ b/pkgs/development/python-modules/qingping-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-5w3KGJLdHFv6kURKTz3YImZNjaETiVqbbJTJpBSLSo8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -33,18 +32,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=qingping_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "qingping_ble" - ]; + pythonImportsCheck = [ "qingping_ble" ]; meta = with lib; { description = "Library for Qingping BLE devices"; diff --git a/pkgs/development/python-modules/qiskit-aer/default.nix b/pkgs/development/python-modules/qiskit-aer/default.nix index 6f6f42f8fd76..7106f74578a3 100644 --- a/pkgs/development/python-modules/qiskit-aer/default.nix +++ b/pkgs/development/python-modules/qiskit-aer/default.nix @@ -1,32 +1,33 @@ -{ stdenv -, lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + stdenv, + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, # C Inputs -, blas -, catch2 -, cmake -, cython -, fmt -, muparserx -, ninja -, nlohmann_json -, spdlog + blas, + catch2, + cmake, + cython, + fmt, + muparserx, + ninja, + nlohmann_json, + spdlog, # Python Inputs -, cvxpy -, numpy -, pybind11 -, scikit-build + cvxpy, + numpy, + pybind11, + scikit-build, # Check Inputs -, pytestCheckHook -, ddt -, fixtures -, pytest-timeout -, qiskit-terra -, setuptools -, testtools + pytestCheckHook, + ddt, + fixtures, + pytest-timeout, + qiskit-terra, + setuptools, + testtools, }: buildPythonPackage rec { @@ -69,7 +70,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ cvxpy - cython # generates some cython files at runtime that need to be cython-ized + cython # generates some cython files at runtime that need to be cython-ized numpy pybind11 ]; diff --git a/pkgs/development/python-modules/qiskit-finance/default.nix b/pkgs/development/python-modules/qiskit-finance/default.nix index 62584bb17165..0fb5525fee2c 100644 --- a/pkgs/development/python-modules/qiskit-finance/default.nix +++ b/pkgs/development/python-modules/qiskit-finance/default.nix @@ -1,27 +1,28 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, # Python Inputs -, fastdtw -, numpy -, pandas -, psutil -, qiskit-terra -, qiskit-optimization -, scikit-learn -, scipy -, quandl -, yfinance + fastdtw, + numpy, + pandas, + psutil, + qiskit-terra, + qiskit-optimization, + scikit-learn, + scipy, + quandl, + yfinance, # Check Inputs -, pytestCheckHook -, ddt -, pytest-timeout -, qiskit-aer + pytestCheckHook, + ddt, + pytest-timeout, + qiskit-aer, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { substituteInPlace requirements.txt --replace "pandas<1.4.0" "pandas" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ fastdtw @@ -76,9 +75,7 @@ buildPythonPackage rec { "test_yahoo" "test_wikipedia" ]; - pytestFlagsArray = [ - "--durations=10" - ]; + pytestFlagsArray = [ "--durations=10" ]; meta = with lib; { description = "Software for developing quantum computing programs"; diff --git a/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix b/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix index 030f94efc852..833dec1f0d2c 100644 --- a/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix +++ b/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix @@ -1,30 +1,31 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, arrow -, nest-asyncio -, qiskit-terra -, requests -, requests-ntlm -, websocket-client +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + arrow, + nest-asyncio, + qiskit-terra, + requests, + requests-ntlm, + websocket-client, # Visualization inputs -, withVisualization ? true -, ipython -, ipyvuetify -, ipywidgets -, matplotlib -, plotly -, pyperclip -, seaborn + withVisualization ? true, + ipython, + ipyvuetify, + ipywidgets, + matplotlib, + plotly, + pyperclip, + seaborn, # check inputs -, pytestCheckHook -, nbconvert -, nbformat -, pproxy -, qiskit-aer -, websockets -, vcrpy + pytestCheckHook, + nbconvert, + nbformat, + pproxy, + qiskit-aer, + websockets, + vcrpy, }: let @@ -78,7 +79,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "qiskit.providers.ibmq" ]; disabledTests = [ - "test_coder_operators" # fails for some reason on nixos-21.05+ + "test_coder_operators" # fails for some reason on nixos-21.05+ # These disabled tests require internet connection, aren't skipped elsewhere "test_old_api_url" "test_non_auth_url" diff --git a/pkgs/development/python-modules/qiskit-ignis/default.nix b/pkgs/development/python-modules/qiskit-ignis/default.nix index 9fbaa5957fee..a5744586b1a5 100644 --- a/pkgs/development/python-modules/qiskit-ignis/default.nix +++ b/pkgs/development/python-modules/qiskit-ignis/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, numpy -, qiskit-terra -, scikit-learn -, scipy +{ + lib, + stdenv, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + numpy, + qiskit-terra, + scikit-learn, + scipy, # Optional package inputs -, withVisualization ? false -, matplotlib -, withCvx ? false -, cvxpy -, withJit ? false -, numba + withVisualization ? false, + matplotlib, + withCvx ? false, + cvxpy, + withJit ? false, + numba, # Check Inputs -, pytestCheckHook -, ddt -, pyfakefs -, qiskit-aer + pytestCheckHook, + ddt, + pyfakefs, + qiskit-aer, }: buildPythonPackage rec { @@ -36,14 +37,16 @@ buildPythonPackage rec { hash = "sha256-WyLNtZhtuGzqCJdOBvtBjZZiGFQihpeSjJQtP7lI248="; }; - propagatedBuildInputs = [ - numpy - qiskit-terra - scikit-learn - scipy - ] ++ lib.optionals (withCvx) [ cvxpy ] - ++ lib.optionals (withVisualization) [ matplotlib ] - ++ lib.optionals (withJit) [ numba ]; + propagatedBuildInputs = + [ + numpy + qiskit-terra + scikit-learn + scipy + ] + ++ lib.optionals (withCvx) [ cvxpy ] + ++ lib.optionals (withVisualization) [ matplotlib ] + ++ lib.optionals (withJit) [ numba ]; # Tests pythonImportsCheck = [ "qiskit.ignis" ]; @@ -57,11 +60,13 @@ buildPythonPackage rec { pyfakefs qiskit-aer ]; - disabledTests = [ - "test_tensored_meas_cal_on_circuit" # Flaky test, occasionally returns result outside bounds - ] ++ lib.optionals stdenv.isAarch64 [ - "test_fitters" # Fails check that arrays are close. Might be due to aarch64 math issues. - ]; + disabledTests = + [ + "test_tensored_meas_cal_on_circuit" # Flaky test, occasionally returns result outside bounds + ] + ++ lib.optionals stdenv.isAarch64 [ + "test_fitters" # Fails check that arrays are close. Might be due to aarch64 math issues. + ]; meta = with lib; { description = "Qiskit tools for quantum hardware verification, noise characterization, and error correction"; diff --git a/pkgs/development/python-modules/qiskit-machine-learning/default.nix b/pkgs/development/python-modules/qiskit-machine-learning/default.nix index 1ad1b138af87..16c3e94431a2 100644 --- a/pkgs/development/python-modules/qiskit-machine-learning/default.nix +++ b/pkgs/development/python-modules/qiskit-machine-learning/default.nix @@ -1,24 +1,25 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, # Python Inputs -, fastdtw -, numpy -, psutil -, qiskit-terra -, scikit-learn -, sparse -, torch + fastdtw, + numpy, + psutil, + qiskit-terra, + scikit-learn, + sparse, + torch, # Check Inputs -, pytestCheckHook -, ddt -, pytest-timeout -, qiskit-aer + pytestCheckHook, + ddt, + pytest-timeout, + qiskit-aer, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-EBjWWoNRuIZFWQkrjf9IyZZ648rP5d7MZkjeIYifgGk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ fastdtw @@ -49,7 +48,7 @@ buildPythonPackage rec { sparse ]; - doCheck = false; # TODO: enable. Tests fail on unstable due to some multithreading issue? + doCheck = false; # TODO: enable. Tests fail on unstable due to some multithreading issue? nativeCheckInputs = [ pytestCheckHook pytest-timeout @@ -63,7 +62,7 @@ buildPythonPackage rec { "--durations=10" "--showlocals" "-vv" - "--ignore=test/connectors/test_torch_connector.py" # TODO: fix, get multithreading errors with python3.9, segfaults + "--ignore=test/connectors/test_torch_connector.py" # TODO: fix, get multithreading errors with python3.9, segfaults ]; disabledTests = [ # Slow tests >10 s diff --git a/pkgs/development/python-modules/qiskit-nature/default.nix b/pkgs/development/python-modules/qiskit-nature/default.nix index 483f9f67cc42..61710ba4c8e3 100644 --- a/pkgs/development/python-modules/qiskit-nature/default.nix +++ b/pkgs/development/python-modules/qiskit-nature/default.nix @@ -1,26 +1,27 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, # Python Inputs -, h5py -, numpy -, psutil -, qiskit-terra -, rustworkx -, scikit-learn -, scipy -, withPyscf ? false -, pyscf + h5py, + numpy, + psutil, + qiskit-terra, + rustworkx, + scikit-learn, + scipy, + withPyscf ? false, + pyscf, # Check Inputs -, pytestCheckHook -, ddt -, pylatexenc -, qiskit-aer + pytestCheckHook, + ddt, + pylatexenc, + qiskit-aer, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { hash = "sha256-SVzg3McB885RMyAp90Kr6/iVKw3Su9ucTob2jBckBo0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ h5py @@ -60,12 +59,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "qiskit_nature" ]; - pytestFlagsArray = [ - "--durations=10" - ]; + pytestFlagsArray = [ "--durations=10" ]; disabledTests = [ - "test_two_qubit_reduction" # failure cause unclear + "test_two_qubit_reduction" # failure cause unclear ]; meta = with lib; { @@ -75,7 +72,7 @@ buildPythonPackage rec { changelog = "https://qiskit.org/documentation/release_notes.html"; sourceProvenance = with sourceTypes; [ fromSource - binaryNativeCode # drivers/gaussiand/gauopen/*.so + binaryNativeCode # drivers/gaussiand/gauopen/*.so ]; license = licenses.asl20; maintainers = with maintainers; [ drewrisinger ]; diff --git a/pkgs/development/python-modules/qiskit-optimization/default.nix b/pkgs/development/python-modules/qiskit-optimization/default.nix index 3e1d6b3e49e0..539f7bcbe28b 100644 --- a/pkgs/development/python-modules/qiskit-optimization/default.nix +++ b/pkgs/development/python-modules/qiskit-optimization/default.nix @@ -1,23 +1,24 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, # Python Inputs -, decorator -, docplex -, networkx -, numpy -, qiskit-terra -, scipy + decorator, + docplex, + networkx, + numpy, + qiskit-terra, + scipy, # Check Inputs -, pytestCheckHook -, ddt -, pylatexenc -, qiskit-aer + pytestCheckHook, + ddt, + pylatexenc, + qiskit-aer, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { substituteInPlace requirements.txt --replace "networkx>=2.2,<2.6" "networkx" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ docplex diff --git a/pkgs/development/python-modules/qiskit-terra/default.nix b/pkgs/development/python-modules/qiskit-terra/default.nix index 38c01d252ae1..f30549131f84 100644 --- a/pkgs/development/python-modules/qiskit-terra/default.nix +++ b/pkgs/development/python-modules/qiskit-terra/default.nix @@ -1,48 +1,49 @@ -{ stdenv -, lib -, pythonAtLeast -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, cargo -, rustPlatform -, rustc -, libiconv +{ + stdenv, + lib, + pythonAtLeast, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + cargo, + rustPlatform, + rustc, + libiconv, # Python requirements -, dill -, numpy -, networkx -, ply -, psutil -, python-constraint -, python-dateutil -, rustworkx -, scipy -, scikit-quant ? null -, setuptools-rust -, stevedore -, symengine -, sympy -, tweedledum -, withVisualization ? false + dill, + numpy, + networkx, + ply, + psutil, + python-constraint, + python-dateutil, + rustworkx, + scipy, + scikit-quant ? null, + setuptools-rust, + stevedore, + symengine, + sympy, + tweedledum, + withVisualization ? false, # Python visualization requirements, optional -, ipywidgets -, matplotlib -, pillow -, pydot -, pygments -, pylatexenc -, seaborn + ipywidgets, + matplotlib, + pillow, + pydot, + pygments, + pylatexenc, + seaborn, # Crosstalk-adaptive layout pass -, withCrosstalkPass ? false -, z3-solver + withCrosstalkPass ? false, + z3-solver, # test requirements -, ddt -, hypothesis -, nbformat -, nbconvert -, pytestCheckHook -, python + ddt, + hypothesis, + nbformat, + nbconvert, + pytestCheckHook, + python, }: let @@ -72,7 +73,12 @@ buildPythonPackage rec { hash = "sha256-4/LVKDNxKsRztCtU/mMfKMVHHJqfadZXmxeOlnlz9Tc="; }; - nativeBuildInputs = [ setuptools-rust rustc cargo rustPlatform.cargoSetupHook ]; + nativeBuildInputs = [ + setuptools-rust + rustc + cargo + rustPlatform.cargoSetupHook + ]; buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; @@ -82,23 +88,25 @@ buildPythonPackage rec { hash = "sha256-f5VLNxv9DKwfRy5zacydfz4Zrkbiee7JecOAbVelSto="; }; - propagatedBuildInputs = [ - dill - numpy - networkx - ply - psutil - python-constraint - python-dateutil - rustworkx - scipy - scikit-quant - stevedore - symengine - sympy - tweedledum - ] ++ lib.optionals withVisualization visualizationPackages - ++ lib.optionals withCrosstalkPass crosstalkPackages; + propagatedBuildInputs = + [ + dill + numpy + networkx + ply + psutil + python-constraint + python-dateutil + rustworkx + scipy + scikit-quant + stevedore + symengine + sympy + tweedledum + ] + ++ lib.optionals withVisualization visualizationPackages + ++ lib.optionals withCrosstalkPass crosstalkPackages; # *** Tests *** nativeCheckInputs = [ @@ -125,68 +133,68 @@ buildPythonPackage rec { "test/visual/mpl/circuit/test_circuit_matplotlib_drawer.py" ]; pytestFlagsArray = [ "--durations=10" ]; - disabledTests = [ - "TestUnitarySynthesisPlugin" # use unittest mocks for transpiler.run(), seems incompatible somehow w/ pytest infrastructure - # matplotlib tests seems to fail non-deterministically - "TestMatplotlibDrawer" - "TestGraphMatplotlibDrawer" - "test_copy" # assertNotIn doesn't seem to work as expected w/ pytest vs unittest + disabledTests = + [ + "TestUnitarySynthesisPlugin" # use unittest mocks for transpiler.run(), seems incompatible somehow w/ pytest infrastructure + # matplotlib tests seems to fail non-deterministically + "TestMatplotlibDrawer" + "TestGraphMatplotlibDrawer" + "test_copy" # assertNotIn doesn't seem to work as expected w/ pytest vs unittest - "test_bound_pass_manager" # AssertionError: 0 != 2 - "test_complex_parameter_bound_to_real" # qiskit.circuit.exceptions.CircuitError: "Invalid param type for gate rx." - "test_expressions_of_parameter_with_constant" # Floating point arithmetic error - "test_handle_measurement" # AssertionError: The two circuits are not equal + "test_bound_pass_manager" # AssertionError: 0 != 2 + "test_complex_parameter_bound_to_real" # qiskit.circuit.exceptions.CircuitError: "Invalid param type for gate rx." + "test_expressions_of_parameter_with_constant" # Floating point arithmetic error + "test_handle_measurement" # AssertionError: The two circuits are not equal - # Flaky tests - "test_pulse_limits" # Fails on GitHub Actions, probably due to minor floating point arithmetic error. - "test_cx_equivalence" # Fails due to flaky test - "test_two_qubit_synthesis_not_pulse_optimal" # test of random circuit, seems to randomly fail depending on seed - "test_qv_natural" # fails due to sign error. Not sure why - ] ++ lib.optionals (lib.versionAtLeast matplotlib.version "3.4.0") [ - "test_plot_circuit_layout" - ] - # Disabling slow tests for build constraints - ++ [ - "test_all_examples" - "test_controlled_random_unitary" - "test_controlled_standard_gates_1" - "test_jupyter_jobs_pbars" - "test_lookahead_swap_higher_depth_width_is_better" - "test_move_measurements" - "test_job_monitor" - "test_wait_for_final_state" - "test_multi_controlled_y_rotation_matrix_basic_mode" - "test_two_qubit_weyl_decomposition_abc" - "test_isometry" - "test_parallel" - "test_random_state" - "test_random_clifford_valid" - "test_to_matrix" - "test_block_collection_reduces_1q_gate" - "test_multi_controlled_rotation_gate_matrices" - "test_block_collection_runs_for_non_cx_bases" - "test_with_two_qubit_reduction" - "test_basic_aer_qasm" - "test_hhl" - "test_H2_hamiltonian" - "test_max_evals_grouped_2" - "test_qaoa_qc_mixer_4" - "test_abelian_grouper_random_2" - "test_pauli_two_design" - "test_shor_factoring" - "test_sample_counts_memory_ghz" - "test_two_qubit_weyl_decomposition_ab0" - "test_sample_counts_memory_superposition" - "test_piecewise_polynomial_function" - "test_piecewise_chebyshev_mutability" - "test_bit_conditional_no_cregbundle" - "test_gradient_wrapper2" - "test_two_qubit_weyl_decomposition_abmb" - "test_two_qubit_weyl_decomposition_abb" - "test_vqe_qasm" - "test_dag_from_networkx" - "test_defaults_to_dict_46" - ]; + # Flaky tests + "test_pulse_limits" # Fails on GitHub Actions, probably due to minor floating point arithmetic error. + "test_cx_equivalence" # Fails due to flaky test + "test_two_qubit_synthesis_not_pulse_optimal" # test of random circuit, seems to randomly fail depending on seed + "test_qv_natural" # fails due to sign error. Not sure why + ] + ++ lib.optionals (lib.versionAtLeast matplotlib.version "3.4.0") [ "test_plot_circuit_layout" ] + # Disabling slow tests for build constraints + ++ [ + "test_all_examples" + "test_controlled_random_unitary" + "test_controlled_standard_gates_1" + "test_jupyter_jobs_pbars" + "test_lookahead_swap_higher_depth_width_is_better" + "test_move_measurements" + "test_job_monitor" + "test_wait_for_final_state" + "test_multi_controlled_y_rotation_matrix_basic_mode" + "test_two_qubit_weyl_decomposition_abc" + "test_isometry" + "test_parallel" + "test_random_state" + "test_random_clifford_valid" + "test_to_matrix" + "test_block_collection_reduces_1q_gate" + "test_multi_controlled_rotation_gate_matrices" + "test_block_collection_runs_for_non_cx_bases" + "test_with_two_qubit_reduction" + "test_basic_aer_qasm" + "test_hhl" + "test_H2_hamiltonian" + "test_max_evals_grouped_2" + "test_qaoa_qc_mixer_4" + "test_abelian_grouper_random_2" + "test_pauli_two_design" + "test_shor_factoring" + "test_sample_counts_memory_ghz" + "test_two_qubit_weyl_decomposition_ab0" + "test_sample_counts_memory_superposition" + "test_piecewise_polynomial_function" + "test_piecewise_chebyshev_mutability" + "test_bit_conditional_no_cregbundle" + "test_gradient_wrapper2" + "test_two_qubit_weyl_decomposition_abmb" + "test_two_qubit_weyl_decomposition_abb" + "test_vqe_qasm" + "test_dag_from_networkx" + "test_defaults_to_dict_46" + ]; # Moves tests to $PACKAGEDIR/test. They can't be run from /build because of finding # cythonized modules and expecting to find some resource files in the test directory. @@ -205,7 +213,6 @@ buildPythonPackage rec { popd ''; - meta = with lib; { description = "Provides the foundations for Qiskit."; longDescription = '' diff --git a/pkgs/development/python-modules/qiskit/default.nix b/pkgs/development/python-modules/qiskit/default.nix index 0977a1944e93..84d68da4b937 100644 --- a/pkgs/development/python-modules/qiskit/default.nix +++ b/pkgs/development/python-modules/qiskit/default.nix @@ -1,24 +1,25 @@ -{ lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, # Python Inputs -, qiskit-aer -, qiskit-ibmq-provider -, qiskit-ignis -, qiskit-terra + qiskit-aer, + qiskit-ibmq-provider, + qiskit-ignis, + qiskit-terra, # Optional inputs -, withOptionalPackages ? true -, qiskit-finance -, qiskit-machine-learning -, qiskit-nature -, qiskit-optimization + withOptionalPackages ? true, + qiskit-finance, + qiskit-machine-learning, + qiskit-nature, + qiskit-optimization, # Check Inputs -, pytestCheckHook + pytestCheckHook, }: let @@ -44,9 +45,7 @@ buildPythonPackage rec { hash = "sha256-Cjfn+9h8W08FcAlVC7b7O8Z+VGx5UeHosSgYJin/evE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ qiskit-aer @@ -71,6 +70,9 @@ buildPythonPackage rec { downloadPage = "https://github.com/QISKit/qiskit/releases"; changelog = "https://qiskit.org/documentation/release_notes.html"; license = licenses.asl20; - maintainers = with maintainers; [ drewrisinger pandaman ]; + maintainers = with maintainers; [ + drewrisinger + pandaman + ]; }; } diff --git a/pkgs/development/python-modules/qmk-dotty-dict/default.nix b/pkgs/development/python-modules/qmk-dotty-dict/default.nix index 39b7fe21b88c..abceedd5a8f5 100644 --- a/pkgs/development/python-modules/qmk-dotty-dict/default.nix +++ b/pkgs/development/python-modules/qmk-dotty-dict/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, poetry-core +{ + buildPythonPackage, + fetchFromGitHub, + lib, + poetry-core, }: buildPythonPackage rec { @@ -9,16 +10,14 @@ buildPythonPackage rec { version = "1.3.1"; pyproject = true; - src = fetchFromGitHub { + src = fetchFromGitHub { owner = "pawelzny"; repo = "dotty_dict"; rev = "refs/tags/v${version}"; hash = "sha256-kY7o9wgfsV7oc5twOeuhG47C0Js6JzCt02S9Sd8dSGc="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; doCheck = false; diff --git a/pkgs/development/python-modules/qnap-qsw/default.nix b/pkgs/development/python-modules/qnap-qsw/default.nix index f4e9a1cdf8b8..697b0b98fe8a 100644 --- a/pkgs/development/python-modules/qnap-qsw/default.nix +++ b/pkgs/development/python-modules/qnap-qsw/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { sha256 = "WP1bGt7aAtSVFOMJgPXKqVSbi5zj9K7qoIVrYCrPGqk="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "qnap_qsw" - ]; + pythonImportsCheck = [ "qnap_qsw" ]; meta = with lib; { description = "Python library to interact with the QNAP QSW API"; diff --git a/pkgs/development/python-modules/qnapstats/default.nix b/pkgs/development/python-modules/qnapstats/default.nix index e42b0753bd3e..88f892c42e36 100644 --- a/pkgs/development/python-modules/qnapstats/default.nix +++ b/pkgs/development/python-modules/qnapstats/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, xmltodict -, responses -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + xmltodict, + responses, + python, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - responses - ]; + nativeCheckInputs = [ responses ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/qpageview/default.nix b/pkgs/development/python-modules/qpageview/default.nix index db5ea8ad1f7d..9f5148e0996a 100644 --- a/pkgs/development/python-modules/qpageview/default.nix +++ b/pkgs/development/python-modules/qpageview/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, python3Packages -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python3Packages, + pythonOlder, }: python3Packages.buildPythonPackage rec { @@ -19,7 +20,11 @@ python3Packages.buildPythonPackage rec { hash = "sha256-XFMTOD7ums8sbFHUViEI9q6/rCjUmEtXAdd3/OmLsHU="; }; - propagatedBuildInputs = with python3Packages; [ pyqt5 poppler-qt5 pycups ]; + propagatedBuildInputs = with python3Packages; [ + pyqt5 + poppler-qt5 + pycups + ]; pythonImportsCheck = [ "qpageview" ]; diff --git a/pkgs/development/python-modules/qpsolvers/default.nix b/pkgs/development/python-modules/qpsolvers/default.nix index 9d3bba7ecb02..d8c20804134d 100644 --- a/pkgs/development/python-modules/qpsolvers/default.nix +++ b/pkgs/development/python-modules/qpsolvers/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, unittestCheckHook -, flit-core -, numpy -, scipy +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + unittestCheckHook, + flit-core, + numpy, + scipy, -# optional dependencies -, clarabel -, cvxopt -, daqp -, ecos -, gurobipy -, osqp -, quadprog -, scs + # optional dependencies + clarabel, + cvxopt, + daqp, + ecos, + gurobipy, + osqp, + quadprog, + scs, }: buildPythonPackage rec { pname = "qpsolvers"; @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-EU7/OGLeOIHw7wyNTibMmHZLAiRTCUFwjEaVNsHg1vw="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; pythonImportsCheck = [ "qpsolvers" ]; @@ -55,14 +54,20 @@ buildPythonPackage rec { # qpalm = [ qpalm ]; quadprog = [ quadprog ]; scs = [ scs ]; - open_source_solvers = with passthru.optional-dependencies; lib.flatten [ - clarabel cvxopt daqp ecos /* highs */ osqp /* piqp proxqp qpalm */ quadprog scs - ]; + open_source_solvers = + with passthru.optional-dependencies; + lib.flatten [ + clarabel + cvxopt + daqp + ecos # highs + osqp # piqp proxqp qpalm + quadprog + scs + ]; }; - nativeCheckInputs = [ - unittestCheckHook - ] ++ passthru.optional-dependencies.open_source_solvers; + nativeCheckInputs = [ unittestCheckHook ] ++ passthru.optional-dependencies.open_source_solvers; meta = with lib; { changelog = "https://github.com/qpsolvers/qpsolvers/blob/${src.rev}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/qrcode/default.nix b/pkgs/development/python-modules/qrcode/default.nix index 3d7ad90dbaaf..c0ac1f4bff04 100644 --- a/pkgs/development/python-modules/qrcode/default.nix +++ b/pkgs/development/python-modules/qrcode/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pillow -, pypng -, pytestCheckHook -, pythonAtLeast -, qrcode -, setuptools -, testers -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pillow, + pypng, + pytestCheckHook, + pythonAtLeast, + qrcode, + setuptools, + testers, + typing-extensions, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-ndlpRUgn4Sfb2TaWsgdHI55tVA4IKTfJDxSslbMPWEU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ typing-extensions @@ -33,9 +32,7 @@ buildPythonPackage rec { setuptools ]; - passthru.optional-dependencies.pil = [ - pillow - ]; + passthru.optional-dependencies.pil = [ pillow ]; nativeCheckInputs = [ mock @@ -49,9 +46,7 @@ buildPythonPackage rec { }; }; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ - "test_change" - ] ++ [ + disabledTests = lib.optionals (pythonAtLeast "3.12") [ "test_change" ] ++ [ # Attempts to open a file which doesn't exist in sandbox "test_piped" ]; diff --git a/pkgs/development/python-modules/qreactor/default.nix b/pkgs/development/python-modules/qreactor/default.nix index 77d2c30fa32b..5caaf04047e8 100644 --- a/pkgs/development/python-modules/qreactor/default.nix +++ b/pkgs/development/python-modules/qreactor/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, twisted -, qtpy -, pyqt5 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + twisted, + qtpy, + pyqt5, }: buildPythonPackage rec { @@ -18,16 +19,13 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - twisted qtpy + twisted + qtpy ]; - nativeCheckInputs = [ - pyqt5 - ]; + nativeCheckInputs = [ pyqt5 ]; - pythonImportsCheck = [ - "qreactor" - ]; + pythonImportsCheck = [ "qreactor" ]; meta = with lib; { homepage = "https://github.com/frmdstryr/qt-reactor"; diff --git a/pkgs/development/python-modules/qscintilla-qt5/default.nix b/pkgs/development/python-modules/qscintilla-qt5/default.nix index 46622bc3e991..c55289e80654 100644 --- a/pkgs/development/python-modules/qscintilla-qt5/default.nix +++ b/pkgs/development/python-modules/qscintilla-qt5/default.nix @@ -1,15 +1,25 @@ -{ lib -, pythonPackages -, qscintilla -, qtbase -, qmake -, qtmacextras -, stdenv +{ + lib, + pythonPackages, + qscintilla, + qtbase, + qmake, + qtmacextras, + stdenv, }: let - inherit (pythonPackages) buildPythonPackage isPy3k python sip sipbuild pyqt5 pyqt-builder; -in buildPythonPackage rec { + inherit (pythonPackages) + buildPythonPackage + isPy3k + python + sip + sipbuild + pyqt5 + pyqt-builder + ; +in +buildPythonPackage rec { pname = "qscintilla-qt5"; version = qscintilla.version; src = qscintilla.src; @@ -17,30 +27,38 @@ in buildPythonPackage rec { disabled = !isPy3k; - nativeBuildInputs = [ sip qmake pyqt-builder qscintilla pythonPackages.setuptools ]; + nativeBuildInputs = [ + sip + qmake + pyqt-builder + qscintilla + pythonPackages.setuptools + ]; buildInputs = [ qtbase ]; propagatedBuildInputs = [ pyqt5 ] ++ lib.optionals stdenv.isDarwin [ qtmacextras ]; dontWrapQtApps = true; - postPatch = '' - cd Python - cp pyproject-qt5.toml pyproject.toml - echo '[tool.sip.project]' >> pyproject.toml - echo 'sip-include-dirs = [ "${pyqt5}/${python.sitePackages}/PyQt5/bindings"]' \ - >> pyproject.toml - '' + lib.optionalString stdenv.isDarwin '' - substituteInPlace project.py \ - --replace \ - "if self.project.qsci_external_lib: - if self.qsci_features_dir is not None:" \ - "if self.project.qsci_external_lib: - self.builder_settings.append('QT += widgets') + postPatch = + '' + cd Python + cp pyproject-qt5.toml pyproject.toml + echo '[tool.sip.project]' >> pyproject.toml + echo 'sip-include-dirs = [ "${pyqt5}/${python.sitePackages}/PyQt5/bindings"]' \ + >> pyproject.toml + '' + + lib.optionalString stdenv.isDarwin '' + substituteInPlace project.py \ + --replace \ + "if self.project.qsci_external_lib: + if self.qsci_features_dir is not None:" \ + "if self.project.qsci_external_lib: + self.builder_settings.append('QT += widgets') - self.builder_settings.append('QT += printsupport') + self.builder_settings.append('QT += printsupport') - if self.qsci_features_dir is not None:" - ''; + if self.qsci_features_dir is not None:" + ''; dontConfigure = true; diff --git a/pkgs/development/python-modules/qstylizer/default.nix b/pkgs/development/python-modules/qstylizer/default.nix index ee49d37055d4..22aa5d14843b 100644 --- a/pkgs/development/python-modules/qstylizer/default.nix +++ b/pkgs/development/python-modules/qstylizer/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, inflection -, pbr -, pytest-mock -, pytestCheckHook -, pythonOlder -, tinycss2 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + inflection, + pbr, + pytest-mock, + pytestCheckHook, + pythonOlder, + tinycss2, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { PBR_VERSION = version; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; propagatedBuildInputs = [ inflection @@ -39,9 +38,7 @@ buildPythonPackage rec { pytest-mock ]; - pythonImportsCheck = [ - "qstylizer" - ]; + pythonImportsCheck = [ "qstylizer" ]; meta = with lib; { description = "Qt stylesheet generation utility for PyQt/PySide"; diff --git a/pkgs/development/python-modules/qt-material/default.nix b/pkgs/development/python-modules/qt-material/default.nix index 25885676a9da..2a6d64c55e22 100644 --- a/pkgs/development/python-modules/qt-material/default.nix +++ b/pkgs/development/python-modules/qt-material/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-tdu1relyF8964za7fAR8kL6zncfyBIpJjJFq1fL3riM="; }; - propagatedBuildInputs = [ - jinja2 - ]; + propagatedBuildInputs = [ jinja2 ]; - pythonImportsCheck = [ - "qt_material" - ]; + pythonImportsCheck = [ "qt_material" ]; meta = with lib; { description = "Material inspired stylesheet for PySide2, PySide6, PyQt5 and PyQt6"; diff --git a/pkgs/development/python-modules/qt5reactor/default.nix b/pkgs/development/python-modules/qt5reactor/default.nix index 07420ca1502d..08b2d7c2c1a9 100644 --- a/pkgs/development/python-modules/qt5reactor/default.nix +++ b/pkgs/development/python-modules/qt5reactor/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyqt5 -, twisted -, pytest-twisted -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pyqt5, + twisted, + pytest-twisted, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/qtawesome/default.nix b/pkgs/development/python-modules/qtawesome/default.nix index b5e668c10a68..6cf875c9f155 100644 --- a/pkgs/development/python-modules/qtawesome/default.nix +++ b/pkgs/development/python-modules/qtawesome/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyqt5 -, pytestCheckHook -, pythonOlder -, qtpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyqt5, + pytestCheckHook, + pythonOlder, + qtpy, }: buildPythonPackage rec { @@ -26,16 +27,12 @@ buildPythonPackage rec { qtpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Requires https://github.com/boylea/qtbot which is unmaintained doCheck = false; - pythonImportsCheck = [ - "qtawesome" - ]; + pythonImportsCheck = [ "qtawesome" ]; meta = with lib; { description = "Iconic fonts in PyQt and PySide applications"; diff --git a/pkgs/development/python-modules/qtconsole/default.nix b/pkgs/development/python-modules/qtconsole/default.nix index 43dc6ce2a114..1ccb60f07f34 100644 --- a/pkgs/development/python-modules/qtconsole/default.nix +++ b/pkgs/development/python-modules/qtconsole/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ipykernel -, jupyter-core -, jupyter-client -, ipython-genutils -, pygments -, pyqt5 -, pytestCheckHook -, pythonOlder -, pyzmq -, qtpy -, setuptools -, traitlets +{ + lib, + buildPythonPackage, + fetchPypi, + ipykernel, + jupyter-core, + jupyter-client, + ipython-genutils, + pygments, + pyqt5, + pytestCheckHook, + pythonOlder, + pyzmq, + qtpy, + setuptools, + traitlets, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-a1+xEnSyl0Y3Bq+E3LvVySJzsfYZ5tJdCIdLCohRaYk="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ ipykernel @@ -43,16 +42,12 @@ buildPythonPackage rec { traitlets ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # : cannot connect to X server doCheck = false; - pythonImportsCheck = [ - "qtconsole" - ]; + pythonImportsCheck = [ "qtconsole" ]; meta = with lib; { description = "Jupyter Qt console"; diff --git a/pkgs/development/python-modules/qtile/default.nix b/pkgs/development/python-modules/qtile/default.nix index a4d8bb91ea16..0935969e4db4 100644 --- a/pkgs/development/python-modules/qtile/default.nix +++ b/pkgs/development/python-modules/qtile/default.nix @@ -1,34 +1,35 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cairocffi -, dbus-next -, dbus-python -, glib -, iwlib -, libdrm -, libinput -, libxkbcommon -, mpd2 -, pango -, pixman -, pkg-config -, psutil -, pulsectl-asyncio -, pygobject3 -, python-dateutil -, pywayland -, pywlroots -, pyxdg -, setuptools -, setuptools-scm -, wayland -, wlroots -, xcbutilcursor -, xcbutilwm -, xcffib -, xkbcommon -, nixosTests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cairocffi, + dbus-next, + dbus-python, + glib, + iwlib, + libdrm, + libinput, + libxkbcommon, + mpd2, + pango, + pixman, + pkg-config, + psutil, + pulsectl-asyncio, + pygobject3, + python-dateutil, + pywayland, + pywlroots, + pyxdg, + setuptools, + setuptools-scm, + wayland, + wlroots, + xcbutilcursor, + xcbutilwm, + xcffib, + xkbcommon, + nixosTests, }: buildPythonPackage rec { @@ -102,6 +103,9 @@ buildPythonPackage rec { description = "A small, flexible, scriptable tiling window manager written in Python"; mainProgram = "qtile"; platforms = platforms.linux; - maintainers = with maintainers; [ arjan-s sigmanificient ]; + maintainers = with maintainers; [ + arjan-s + sigmanificient + ]; }; } diff --git a/pkgs/development/python-modules/qtpy/default.nix b/pkgs/development/python-modules/qtpy/default.nix index 5aef7c38edff..cdac0a59c71d 100644 --- a/pkgs/development/python-modules/qtpy/default.nix +++ b/pkgs/development/python-modules/qtpy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# propagates -, packaging + # propagates + packaging, -# tests -, pyqt5 -, pyside2 -, pytestCheckHook + # tests + pyqt5, + pyside2, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-paFf/VGVUKE2G9xW/8B/2lamr3KS8Xx7OV1Ag69jKYc="; }; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity' nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/quadprog/default.nix b/pkgs/development/python-modules/quadprog/default.nix index c566887bb363..d592c443e1d5 100644 --- a/pkgs/development/python-modules/quadprog/default.nix +++ b/pkgs/development/python-modules/quadprog/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cython -, setuptools -, numpy -, pytestCheckHook -, scipy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cython, + setuptools, + numpy, + pytestCheckHook, + scipy, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/qualysclient/default.nix b/pkgs/development/python-modules/qualysclient/default.nix index be16a8c48cc5..39c3c47e67be 100644 --- a/pkgs/development/python-modules/qualysclient/default.nix +++ b/pkgs/development/python-modules/qualysclient/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, certifi -, charset-normalizer -, fetchFromGitHub -, idna -, lxml -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, responses -, urllib3 +{ + lib, + buildPythonPackage, + certifi, + charset-normalizer, + fetchFromGitHub, + idna, + lxml, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + responses, + urllib3, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "qualysclient" - ]; + pythonImportsCheck = [ "qualysclient" ]; meta = with lib; { description = "Python SDK for interacting with the Qualys API"; diff --git a/pkgs/development/python-modules/quamash/default.nix b/pkgs/development/python-modules/quamash/default.nix index 7257f480696d..b920d7421f8e 100644 --- a/pkgs/development/python-modules/quamash/default.nix +++ b/pkgs/development/python-modules/quamash/default.nix @@ -1,6 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, pytest, isPy3k, pyqt5, pyqt ? pyqt5 -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + isPy3k, + pyqt5, + pyqt ? pyqt5, + fetchpatch, }: buildPythonPackage rec { @@ -30,7 +36,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest ]; checkPhase = '' - pytest -k 'test_qthreadexec.py' # the others cause the test execution to be aborted, I think because of asyncio + pytest -k 'test_qthreadexec.py' # the others cause the test execution to be aborted, I think because of asyncio ''; meta = with lib; { diff --git a/pkgs/development/python-modules/quandl/default.nix b/pkgs/development/python-modules/quandl/default.nix index 85a8fdd12bcc..ea7a305eb377 100644 --- a/pkgs/development/python-modules/quandl/default.nix +++ b/pkgs/development/python-modules/quandl/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, factory-boy -, faker -, fetchPypi -, httpretty -, importlib-metadata -, inflection -, jsondate -, mock -, more-itertools -, numpy -, pandas -, parameterized -, pytestCheckHook -, python-dateutil -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + factory-boy, + faker, + fetchPypi, + httpretty, + importlib-metadata, + inflection, + jsondate, + mock, + more-itertools, + numpy, + pandas, + parameterized, + pytestCheckHook, + python-dateutil, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-bguC+8eGFhCzV3xTlyd8QiDgZe7g/tTkbNa2AhZVtkw="; }; - patches = [ - ./pandas2-datetime-removal.patch - ]; + patches = [ ./pandas2-datetime-removal.patch ]; propagatedBuildInputs = [ pandas @@ -44,9 +43,7 @@ buildPythonPackage rec { python-dateutil six more-itertools - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ factory-boy @@ -58,9 +55,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "quandl" - ]; + pythonImportsCheck = [ "quandl" ]; meta = with lib; { description = "Quandl Python client library"; diff --git a/pkgs/development/python-modules/quantile-python/default.nix b/pkgs/development/python-modules/quantile-python/default.nix index 98206ff8aaba..5d15c9252056 100644 --- a/pkgs/development/python-modules/quantile-python/default.nix +++ b/pkgs/development/python-modules/quantile-python/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/quantiphy-eval/default.nix b/pkgs/development/python-modules/quantiphy-eval/default.nix index 92e1f94c1adc..a95cf4903b5d 100644 --- a/pkgs/development/python-modules/quantiphy-eval/default.nix +++ b/pkgs/development/python-modules/quantiphy-eval/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, inform -, pythonOlder -, sly +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + inform, + pythonOlder, + sly, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-7VHcuINhe17lRNkHUnZkVOEtD6mVWk5gu0NbrLZwprg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ inform diff --git a/pkgs/development/python-modules/quantiphy/default.nix b/pkgs/development/python-modules/quantiphy/default.nix index 56790351dcd6..66026ad8eafb 100644 --- a/pkgs/development/python-modules/quantiphy/default.nix +++ b/pkgs/development/python-modules/quantiphy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder -, inform -, parametrize-from-file -, setuptools -, voluptuous -, quantiphy-eval -, rkm-codes +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, + inform, + parametrize-from-file, + setuptools, + voluptuous, + quantiphy-eval, + rkm-codes, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-QXCs93plNSVNiCLEoXx2raH6EbH1rXyjvpBfl+8eXjc="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ quantiphy-eval @@ -43,9 +42,7 @@ buildPythonPackage rec { voluptuous ]; - pythonImportsCheck = [ - "quantiphy" - ]; + pythonImportsCheck = [ "quantiphy" ]; meta = with lib; { description = "Module for physical quantities (numbers with units)"; diff --git a/pkgs/development/python-modules/quantities/default.nix b/pkgs/development/python-modules/quantities/default.nix index 0461c5bc83c8..74f28e526ff8 100644 --- a/pkgs/development/python-modules/quantities/default.nix +++ b/pkgs/development/python-modules/quantities/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -25,22 +26,16 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # test fails with numpy 1.24 "test_mul" ]; - pythonImportsCheck = [ - "quantities" - ]; + pythonImportsCheck = [ "quantities" ]; meta = with lib; { description = "Quantities is designed to handle arithmetic and conversions of physical quantities"; diff --git a/pkgs/development/python-modules/quantulum3/default.nix b/pkgs/development/python-modules/quantulum3/default.nix index ae35505d8648..889b15a79c17 100644 --- a/pkgs/development/python-modules/quantulum3/default.nix +++ b/pkgs/development/python-modules/quantulum3/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonOlder -, pythonAtLeast -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + pythonAtLeast, + fetchFromGitHub, # build inputs -, inflect -, num2words -, numpy -, scipy -, scikit-learn -, joblib -, wikipedia -, stemming -, setuptools + inflect, + num2words, + numpy, + scipy, + scikit-learn, + joblib, + wikipedia, + stemming, + setuptools, }: let pname = "quantulum3"; diff --git a/pkgs/development/python-modules/quantum-gateway/default.nix b/pkgs/development/python-modules/quantum-gateway/default.nix index 43c9c8dcb2d3..6b498ae2272d 100644 --- a/pkgs/development/python-modules/quantum-gateway/default.nix +++ b/pkgs/development/python-modules/quantum-gateway/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, esprima -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools-scm -, urllib3 +{ + lib, + buildPythonPackage, + esprima, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools-scm, + urllib3, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "quantum_gateway" - ]; + pythonImportsCheck = [ "quantum_gateway" ]; disabledTests = [ # Tests require network features diff --git a/pkgs/development/python-modules/quart-cors/default.nix b/pkgs/development/python-modules/quart-cors/default.nix index 78f3f0311f88..056975545724 100644 --- a/pkgs/development/python-modules/quart-cors/default.nix +++ b/pkgs/development/python-modules/quart-cors/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, quart -, typing-extensions + # propagates + quart, + typing-extensions, -# tests -, pytestCheckHook -, pytest-asyncio + # tests + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -27,24 +28,16 @@ buildPythonPackage rec { hash = "sha256-qUzs0CTZHf3fGADBXPkd3CjZ6dnz1t3cTxflMErvz/k="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace pyproject.toml \ --replace "--no-cov-on-fail " "" ''; - propagatedBuildInputs = [ - quart - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = [ quart ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; - pythonImportsCheck = [ - "quart_cors" - ]; + pythonImportsCheck = [ "quart_cors" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/quart/default.nix b/pkgs/development/python-modules/quart/default.nix index d909dfd2f5fa..bf4e2708721b 100644 --- a/pkgs/development/python-modules/quart/default.nix +++ b/pkgs/development/python-modules/quart/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# propagates -, aiofiles -, blinker -, click -, flask -, hypercorn -, importlib-metadata -, itsdangerous -, jinja2 -, markupsafe -, pydata-sphinx-theme -, python-dotenv -, typing-extensions -, werkzeug + # propagates + aiofiles, + blinker, + click, + flask, + hypercorn, + importlib-metadata, + itsdangerous, + jinja2, + markupsafe, + pydata-sphinx-theme, + python-dotenv, + typing-extensions, + werkzeug, -# tests -, hypothesis -, mock -, py -, pytest-asyncio -, pytest7CheckHook + # tests + hypothesis, + mock, + py, + pytest-asyncio, + pytest7CheckHook, }: buildPythonPackage rec { @@ -41,35 +42,33 @@ buildPythonPackage rec { hash = "sha256-oR03Qu93F+pcWywbdYgMKIAdohBNezlGz04ws3yGAxs="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; postPatch = '' substituteInPlace pyproject.toml \ --replace "--no-cov-on-fail " "" ''; - dependencies = [ - aiofiles - blinker - click - flask - hypercorn - itsdangerous - jinja2 - markupsafe - pydata-sphinx-theme - python-dotenv - werkzeug - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - typing-extensions - ]; + dependencies = + [ + aiofiles + blinker + click + flask + hypercorn + itsdangerous + jinja2 + markupsafe + pydata-sphinx-theme + python-dotenv + werkzeug + ] + ++ lib.optionals (pythonOlder "3.10") [ + importlib-metadata + typing-extensions + ]; - pythonImportsCheck = [ - "quart" - ]; + pythonImportsCheck = [ "quart" ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/quaternion/default.nix b/pkgs/development/python-modules/quaternion/default.nix index 6307334edfdf..ac3a9a2959c7 100644 --- a/pkgs/development/python-modules/quaternion/default.nix +++ b/pkgs/development/python-modules/quaternion/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, oldest-supported-numpy -, scipy -, numba +{ + lib, + buildPythonPackage, + fetchFromGitHub, + oldest-supported-numpy, + scipy, + numba, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/qudida/default.nix b/pkgs/development/python-modules/qudida/default.nix index 48d83c4d14ee..5003b5860c5d 100644 --- a/pkgs/development/python-modules/qudida/default.nix +++ b/pkgs/development/python-modules/qudida/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, opencv4 -, pythonOlder -, pythonRelaxDepsHook -, scikit-learn -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + opencv4, + pythonOlder, + pythonRelaxDepsHook, + scikit-learn, + typing-extensions, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-2xmOKIerDJqgAj5WWvv/Qd+3azYfhf1eE/eA11uhjMg="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRemoveDeps = [ - "opencv-python" - ]; + pythonRemoveDeps = [ "opencv-python" ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/questionary/default.nix b/pkgs/development/python-modules/questionary/default.nix index 98a50c6079ca..654aeca183d1 100644 --- a/pkgs/development/python-modules/questionary/default.nix +++ b/pkgs/development/python-modules/questionary/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, prompt-toolkit -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + prompt-toolkit, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "prompt_toolkit" - ]; + pythonRelaxDeps = [ "prompt_toolkit" ]; - propagatedBuildInputs = [ - prompt-toolkit - ]; + propagatedBuildInputs = [ prompt-toolkit ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = lib.optionalString stdenv.isDarwin '' ulimit -n 1024 @@ -49,9 +44,7 @@ buildPythonPackage rec { "test_blank_line_fix" ]; - pythonImportsCheck = [ - "questionary" - ]; + pythonImportsCheck = [ "questionary" ]; meta = with lib; { description = "Python library to build command line user prompts"; diff --git a/pkgs/development/python-modules/queuelib/default.nix b/pkgs/development/python-modules/queuelib/default.nix index d2622ffbf5fb..3f7c802cde56 100644 --- a/pkgs/development/python-modules/queuelib/default.nix +++ b/pkgs/development/python-modules/queuelib/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { @@ -22,5 +23,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/quil/default.nix b/pkgs/development/python-modules/quil/default.nix index 4043f8b332fd..1d77ff861e48 100644 --- a/pkgs/development/python-modules/quil/default.nix +++ b/pkgs/development/python-modules/quil/default.nix @@ -8,7 +8,7 @@ numpy, pytestCheckHook, syrupy, - libiconv + libiconv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/qutip/default.nix b/pkgs/development/python-modules/qutip/default.nix index d30759869cc8..6884ca0fe925 100644 --- a/pkgs/development/python-modules/qutip/default.nix +++ b/pkgs/development/python-modules/qutip/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, cvxopt -, cvxpy -, cython_0 -, fetchFromGitHub -, ipython -, matplotlib -, numpy -, packaging -, pytest-rerunfailures -, pytestCheckHook -, python -, pythonOlder -, scipy +{ + lib, + stdenv, + buildPythonPackage, + cvxopt, + cvxpy, + cython_0, + fetchFromGitHub, + ipython, + matplotlib, + numpy, + packaging, + pytest-rerunfailures, + pytestCheckHook, + python, + pythonOlder, + scipy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-4nXZPZFu9L+Okha3qvPil1KvLGO1EbrzotQjqQ8r9l8="; }; - nativeBuildInputs = [ - cython_0 - ]; + nativeBuildInputs = [ cython_0 ]; propagatedBuildInputs = [ numpy @@ -46,9 +45,7 @@ buildPythonPackage rec { ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); # Disabling OpenMP support on Darwin. - setupPyGlobalFlags = lib.optionals (!stdenv.isDarwin) [ - "--with-openmp" - ]; + setupPyGlobalFlags = lib.optionals (!stdenv.isDarwin) [ "--with-openmp" ]; # QuTiP tries to access the home directory to create an rc file for us. # We need to go to another directory to run the tests from there. @@ -67,17 +64,11 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "qutip" - ]; + pythonImportsCheck = [ "qutip" ]; passthru.optional-dependencies = { - graphics = [ - matplotlib - ]; - ipython = [ - ipython - ]; + graphics = [ matplotlib ]; + ipython = [ ipython ]; semidefinite = [ cvxpy cvxopt diff --git a/pkgs/development/python-modules/r2pipe/default.nix b/pkgs/development/python-modules/r2pipe/default.nix index ab043450e40e..2436fe3acd60 100644 --- a/pkgs/development/python-modules/r2pipe/default.nix +++ b/pkgs/development/python-modules/r2pipe/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, lib -, python -, buildPythonPackage -, fetchPypi -, radare2 -, coreutils -, pythonOlder +{ + stdenv, + lib, + python, + buildPythonPackage, + fetchPypi, + radare2, + coreutils, + pythonOlder, }: buildPythonPackage rec { @@ -15,19 +16,20 @@ buildPythonPackage rec { disabled = pythonOlder "3.7"; - postPatch = let - r2lib = "${lib.getOutput "lib" radare2}/lib"; - libr_core = "${r2lib}/libr_core${stdenv.hostPlatform.extensions.sharedLibrary}"; - in - '' - # Fix find_library, can be removed after - # https://github.com/NixOS/nixpkgs/issues/7307 is resolved. - substituteInPlace r2pipe/native.py --replace 'find_library("r_core")' "'${libr_core}'" + postPatch = + let + r2lib = "${lib.getOutput "lib" radare2}/lib"; + libr_core = "${r2lib}/libr_core${stdenv.hostPlatform.extensions.sharedLibrary}"; + in + '' + # Fix find_library, can be removed after + # https://github.com/NixOS/nixpkgs/issues/7307 is resolved. + substituteInPlace r2pipe/native.py --replace 'find_library("r_core")' "'${libr_core}'" - # Fix the default r2 executable - substituteInPlace r2pipe/open_sync.py --replace 'r2e = "radare2"' "r2e = '${radare2}/bin/radare2'" - substituteInPlace r2pipe/open_base.py --replace 'which("radare2")' "'${radare2}/bin/radare2'" - ''; + # Fix the default r2 executable + substituteInPlace r2pipe/open_sync.py --replace 'r2e = "radare2"' "r2e = '${radare2}/bin/radare2'" + substituteInPlace r2pipe/open_base.py --replace 'which("radare2")' "'${radare2}/bin/radare2'" + ''; src = fetchPypi { inherit pname version; diff --git a/pkgs/development/python-modules/rachiopy/default.nix b/pkgs/development/python-modules/rachiopy/default.nix index 1eb1b547e418..5aa28e517370 100644 --- a/pkgs/development/python-modules/rachiopy/default.nix +++ b/pkgs/development/python-modules/rachiopy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jsonschema -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jsonschema, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-PsdEXNy8vUxba/C00ARhLTQU9gMlChy9XdU20r+Maus="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ jsonschema pytestCheckHook ]; - pythonImportsCheck = [ - "rachiopy" - ]; + pythonImportsCheck = [ "rachiopy" ]; meta = with lib; { description = "Python client for Rachio Irrigation controller"; diff --git a/pkgs/development/python-modules/radian/default.nix b/pkgs/development/python-modules/radian/default.nix index 09d0c38c4157..22aad3efdc69 100644 --- a/pkgs/development/python-modules/radian/default.nix +++ b/pkgs/development/python-modules/radian/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pyte -, pexpect -, ptyprocess -, jedi -, git -, lineedit -, prompt-toolkit -, pygments -, rchitect -, R -, rPackages -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pyte, + pexpect, + ptyprocess, + jedi, + git, + lineedit, + prompt-toolkit, + pygments, + rchitect, + R, + rPackages, + pythonOlder, }: buildPythonPackage rec { @@ -39,15 +40,17 @@ buildPythonPackage rec { R # needed at setup time to detect R_HOME ]; - propagatedBuildInputs = [ - lineedit - prompt-toolkit - pygments - rchitect - ] ++ (with rPackages; [ - reticulate - askpass - ]); + propagatedBuildInputs = + [ + lineedit + prompt-toolkit + pygments + rchitect + ] + ++ (with rPackages; [ + reticulate + askpass + ]); nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/radicale-infcloud/default.nix b/pkgs/development/python-modules/radicale-infcloud/default.nix index a59b8221f5d8..778090071856 100644 --- a/pkgs/development/python-modules/radicale-infcloud/default.nix +++ b/pkgs/development/python-modules/radicale-infcloud/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildPythonPackage, radicale }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + radicale, +}: buildPythonPackage { pname = "radicale-infcloud"; @@ -22,7 +27,10 @@ buildPythonPackage { meta = with lib; { homepage = "https://github.com/Unrud/RadicaleInfCloud/"; description = "Integrate InfCloud into Radicale's web interface"; - license = with licenses; [ agpl3Plus gpl3 ]; + license = with licenses; [ + agpl3Plus + gpl3 + ]; maintainers = with maintainers; [ erictapen ]; }; } diff --git a/pkgs/development/python-modules/radio-beam/default.nix b/pkgs/development/python-modules/radio-beam/default.nix index c0e9c31a5eca..f88a1957bdb1 100644 --- a/pkgs/development/python-modules/radio-beam/default.nix +++ b/pkgs/development/python-modules/radio-beam/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchPypi -, fetchpatch2 -, buildPythonPackage -, setuptools-scm -, astropy -, numpy -, matplotlib -, scipy -, six -, pytestCheckHook -, pytest-astropy +{ + lib, + fetchPypi, + fetchpatch2, + buildPythonPackage, + setuptools-scm, + astropy, + numpy, + matplotlib, + scipy, + six, + pytestCheckHook, + pytest-astropy, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ astropy @@ -48,9 +47,7 @@ buildPythonPackage rec { pytest-astropy ]; - pythonImportsCheck = [ - "radio_beam" - ]; + pythonImportsCheck = [ "radio_beam" ]; meta = with lib; { description = "Tools for Beam IO and Manipulation"; diff --git a/pkgs/development/python-modules/radios/default.nix b/pkgs/development/python-modules/radios/default.nix index 5831579f7df5..d66a41e2b343 100644 --- a/pkgs/development/python-modules/radios/default.nix +++ b/pkgs/development/python-modules/radios/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, aiodns -, aiohttp -, awesomeversion -, backoff -, cachetools -, mashumaro -, orjson -, pycountry -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + aiodns, + aiohttp, + awesomeversion, + backoff, + cachetools, + mashumaro, + orjson, + pycountry, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,7 +26,6 @@ buildPythonPackage rec { disabled = pythonOlder "3.11"; - src = fetchFromGitHub { owner = "frenck"; repo = "python-radios"; @@ -44,9 +44,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pycountry" - ]; + pythonRelaxDeps = [ "pycountry" ]; propagatedBuildInputs = [ aiodns diff --git a/pkgs/development/python-modules/radiotherm/default.nix b/pkgs/development/python-modules/radiotherm/default.nix index 1d62144e00cc..c574b09301b8 100644 --- a/pkgs/development/python-modules/radiotherm/default.nix +++ b/pkgs/development/python-modules/radiotherm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/radish-bdd/default.nix b/pkgs/development/python-modules/radish-bdd/default.nix index f0f9070180ef..6e350cbccf71 100644 --- a/pkgs/development/python-modules/radish-bdd/default.nix +++ b/pkgs/development/python-modules/radish-bdd/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, click -, colorful -, docopt -, fetchFromGitHub -, freezegun -, humanize -, lark -, lxml -, parse-type -, pysingleton -, pytest-mock -, pytestCheckHook -, pythonOlder -, pyyaml -, tag-expressions +{ + lib, + buildPythonPackage, + click, + colorful, + docopt, + fetchFromGitHub, + freezegun, + humanize, + lark, + lxml, + parse-type, + pysingleton, + pytest-mock, + pytestCheckHook, + pythonOlder, + pyyaml, + tag-expressions, }: buildPythonPackage rec { @@ -50,13 +51,9 @@ buildPythonPackage rec { pyyaml ]; - pythonImportsCheck = [ - "radish" - ]; + pythonImportsCheck = [ "radish" ]; - disabledTests = [ - "test_main_cli_calls" - ]; + disabledTests = [ "test_main_cli_calls" ]; meta = with lib; { description = "Behaviour-Driven-Development tool for python"; diff --git a/pkgs/development/python-modules/radon/default.nix b/pkgs/development/python-modules/radon/default.nix index 23f1a9427b56..5d494b4c2996 100644 --- a/pkgs/development/python-modules/radon/default.nix +++ b/pkgs/development/python-modules/radon/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, fetchpatch -# Python deps -, mando -, colorama -, pytest-mock -, tomli -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + fetchpatch, + # Python deps + mando, + colorama, + pytest-mock, + tomli, + poetry-core, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook @@ -47,14 +46,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - toml = [ - tomli - ]; + toml = [ tomli ]; }; - pythonImportsCheck = [ - "radon" - ]; + pythonImportsCheck = [ "radon" ]; meta = with lib; { description = "Various code metrics for Python code"; diff --git a/pkgs/development/python-modules/railroad-diagrams/default.nix b/pkgs/development/python-modules/railroad-diagrams/default.nix index e720c180014b..60ba6862af53 100644 --- a/pkgs/development/python-modules/railroad-diagrams/default.nix +++ b/pkgs/development/python-modules/railroad-diagrams/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # This is a dependency of pyparsing, which is a dependency of pytest doCheck = false; - pythonImportsCheck = [ - "railroad" - ]; + pythonImportsCheck = [ "railroad" ]; meta = with lib; { description = "Module to generate SVG railroad syntax diagrams"; diff --git a/pkgs/development/python-modules/rainbowstream/default.nix b/pkgs/development/python-modules/rainbowstream/default.nix index 5f2f4c5904c5..92fcac8b67ad 100644 --- a/pkgs/development/python-modules/rainbowstream/default.nix +++ b/pkgs/development/python-modules/rainbowstream/default.nix @@ -1,19 +1,20 @@ -{ lib -, arrow -, buildPythonPackage -, fetchFromGitHub -, freetype -, glibcLocales -, libjpeg -, pillow -, pocket -, pyfiglet -, pysocks -, python -, python-dateutil -, requests -, twitter -, zlib +{ + lib, + arrow, + buildPythonPackage, + fetchFromGitHub, + freetype, + glibcLocales, + libjpeg, + pillow, + pocket, + pyfiglet, + pysocks, + python, + python-dateutil, + requests, + twitter, + zlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ramlfications/default.nix b/pkgs/development/python-modules/ramlfications/default.nix index e58cbeeb7947..43aac163dc2f 100644 --- a/pkgs/development/python-modules/ramlfications/default.nix +++ b/pkgs/development/python-modules/ramlfications/default.nix @@ -1,6 +1,20 @@ -{ lib, buildPythonPackage, fetchPypi -, mock, pytest, pytest-mock, pytest-server-fixtures, pytest-localserver -, termcolor, click, markdown2, six, jsonref, pyyaml, xmltodict, attrs +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytest, + pytest-mock, + pytest-server-fixtures, + pytest-localserver, + termcolor, + click, + markdown2, + six, + jsonref, + pyyaml, + xmltodict, + attrs, }: buildPythonPackage rec { @@ -16,16 +30,31 @@ buildPythonPackage rec { meta = with lib; { description = "A Python RAML parser."; mainProgram = "ramlfications"; - homepage = "https://ramlfications.readthedocs.org"; - license = licenses.asl20; + homepage = "https://ramlfications.readthedocs.org"; + license = licenses.asl20; maintainers = with maintainers; [ ]; - platforms = platforms.all; + platforms = platforms.all; }; doCheck = false; # [darwin] AssertionError: Expected 'update_mime_types' to have been called once. Called 0 times. - buildInputs = [ mock pytest pytest-mock pytest-server-fixtures pytest-localserver ]; + buildInputs = [ + mock + pytest + pytest-mock + pytest-server-fixtures + pytest-localserver + ]; - propagatedBuildInputs = [ termcolor click markdown2 six jsonref pyyaml xmltodict attrs ]; + propagatedBuildInputs = [ + termcolor + click + markdown2 + six + jsonref + pyyaml + xmltodict + attrs + ]; } diff --git a/pkgs/development/python-modules/random2/default.nix b/pkgs/development/python-modules/random2/default.nix index ee289b906d34..89d544e54a9b 100644 --- a/pkgs/development/python-modules/random2/default.nix +++ b/pkgs/development/python-modules/random2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + fetchpatch, }: buildPythonPackage rec { @@ -30,5 +31,4 @@ buildPythonPackage rec { description = "Python 3 compatible Python 2 `random` Module"; license = licenses.psfl; }; - } diff --git a/pkgs/development/python-modules/randomfiletree/default.nix b/pkgs/development/python-modules/randomfiletree/default.nix index 9326c7b3062b..b4075202f51d 100644 --- a/pkgs/development/python-modules/randomfiletree/default.nix +++ b/pkgs/development/python-modules/randomfiletree/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/range-typed-integers/default.nix b/pkgs/development/python-modules/range-typed-integers/default.nix index 1bb5d7b26f62..68367e974ea5 100644 --- a/pkgs/development/python-modules/range-typed-integers/default.nix +++ b/pkgs/development/python-modules/range-typed-integers/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rangehttpserver/default.nix b/pkgs/development/python-modules/rangehttpserver/default.nix index 6fbcebbffed8..a357f2138052 100644 --- a/pkgs/development/python-modules/rangehttpserver/default.nix +++ b/pkgs/development/python-modules/rangehttpserver/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytest7CheckHook -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytest7CheckHook, + requests, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-ZXEbis37QO8t05JQ2qQQf5rkUSxq3DwzR3khAJkZ5W0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; __darwinAllowLocalNetworking = true; @@ -29,9 +28,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "RangeHTTPServer" - ]; + pythonImportsCheck = [ "RangeHTTPServer" ]; meta = with lib; { description = "SimpleHTTPServer with support for Range requests"; diff --git a/pkgs/development/python-modules/rangeparser/default.nix b/pkgs/development/python-modules/rangeparser/default.nix index 8cc4833975c0..60330d213a24 100644 --- a/pkgs/development/python-modules/rangeparser/default.nix +++ b/pkgs/development/python-modules/rangeparser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-gjA7Iytg802Lv7/rLfhGE0yjz4e6FfOXbEoWNPjhCOY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rangeparser" - ]; + pythonImportsCheck = [ "rangeparser" ]; meta = with lib; { description = "Parses ranges"; diff --git a/pkgs/development/python-modules/rank-bm25/default.nix b/pkgs/development/python-modules/rank-bm25/default.nix index 9b0c5080449d..1d6d5e3bcd07 100644 --- a/pkgs/development/python-modules/rank-bm25/default.nix +++ b/pkgs/development/python-modules/rank-bm25/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, numpy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + numpy, }: let pname = "rank-bm25"; @@ -27,9 +28,7 @@ buildPythonPackage { substituteInPlace setup.py --replace "get_version()" "'${version}'" ''; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "rank_bm25" ]; diff --git a/pkgs/development/python-modules/rapidfuzz-capi/default.nix b/pkgs/development/python-modules/rapidfuzz-capi/default.nix index 9444b949a510..342f09b2708b 100644 --- a/pkgs/development/python-modules/rapidfuzz-capi/default.nix +++ b/pkgs/development/python-modules/rapidfuzz-capi/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rapidfuzz/default.nix b/pkgs/development/python-modules/rapidfuzz/default.nix index c25a3416df0c..747611f2b17b 100644 --- a/pkgs/development/python-modules/rapidfuzz/default.nix +++ b/pkgs/development/python-modules/rapidfuzz/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cmake -, cython -, ninja -, scikit-build -, setuptools -, numpy -, hypothesis -, pandas -, pytestCheckHook -, rapidfuzz-cpp -, taskflow +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cmake, + cython, + ninja, + scikit-build, + setuptools, + numpy, + hypothesis, + pandas, + pytestCheckHook, + rapidfuzz-cpp, + taskflow, }: buildPythonPackage rec { @@ -50,15 +51,19 @@ buildPythonPackage rec { taskflow ]; - preBuild = '' - export RAPIDFUZZ_BUILD_EXTENSION=1 - '' + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) '' - export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB" - ''; + preBuild = + '' + export RAPIDFUZZ_BUILD_EXTENSION=1 + '' + + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) '' + export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB" + ''; - env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ - "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 - ]); + env.NIX_CFLAGS_COMPILE = toString ( + lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ + "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 + ] + ); passthru.optional-dependencies = { full = [ numpy ]; diff --git a/pkgs/development/python-modules/rapidgzip/default.nix b/pkgs/development/python-modules/rapidgzip/default.nix index 475d5291c20e..46b3ae0730b3 100644 --- a/pkgs/development/python-modules/rapidgzip/default.nix +++ b/pkgs/development/python-modules/rapidgzip/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, pythonOlder -, setuptools -, nasm +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + pythonOlder, + setuptools, + nasm, }: buildPythonPackage rec { @@ -19,7 +20,11 @@ buildPythonPackage rec { hash = "sha256-3PvBRYswEtnAZerRD18laW6pQ8i6cgRgGZy+bgSOaI0="; }; - nativeBuildInputs = [ cython nasm setuptools ]; + nativeBuildInputs = [ + cython + nasm + setuptools + ]; # has no tests doCheck = false; diff --git a/pkgs/development/python-modules/rapt-ble/default.nix b/pkgs/development/python-modules/rapt-ble/default.nix index 4c5df7b4b9fa..a72e0f68d657 100644 --- a/pkgs/development/python-modules/rapt-ble/default.nix +++ b/pkgs/development/python-modules/rapt-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace " --cov=rapt_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -40,13 +39,9 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rapt_ble" - ]; + pythonImportsCheck = [ "rapt_ble" ]; meta = with lib; { description = "Library for RAPT Pill hydrometer BLE devices"; diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix index b11ff18fc9db..158394a3b331 100644 --- a/pkgs/development/python-modules/rasterio/default.nix +++ b/pkgs/development/python-modules/rasterio/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, stdenv -, testers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + stdenv, + testers, -, affine -, attrs -, boto3 -, certifi -, click -, click-plugins -, cligj -, cython -, gdal -, hypothesis -, ipython -, matplotlib -, numpy -, packaging -, pytest-randomly -, setuptools -, shapely -, snuggs -, wheel + affine, + attrs, + boto3, + certifi, + click, + click-plugins, + cligj, + cython, + gdal, + hypothesis, + ipython, + matplotlib, + numpy, + packaging, + pytest-randomly, + setuptools, + shapely, + snuggs, + wheel, -, rasterio # required to run version test + rasterio, # required to run version test }: buildPythonPackage rec { @@ -51,7 +52,7 @@ buildPythonPackage rec { # relax dependency on yet non-packaged, RC version of numpy substituteInPlace pyproject.toml \ --replace-fail "numpy==2.0.0rc1" "numpy" - ''; + ''; nativeBuildInputs = [ cython @@ -73,15 +74,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - ipython = [ - ipython - ]; - plot = [ - matplotlib - ]; - s3 = [ - boto3 - ]; + ipython = [ ipython ]; + plot = [ matplotlib ]; + s3 = [ boto3 ]; }; nativeCheckInputs = [ @@ -99,20 +94,14 @@ buildPythonPackage rec { rm -r rasterio # prevent importing local rasterio ''; - pytestFlagsArray = [ - "-m 'not network'" - ]; + pytestFlagsArray = [ "-m 'not network'" ]; disabledTests = [ # flaky "test_outer_boundless_pixel_fidelity" - ] ++ lib.optionals stdenv.isDarwin [ - "test_reproject_error_propagation" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_reproject_error_propagation" ]; - pythonImportsCheck = [ - "rasterio" - ]; + pythonImportsCheck = [ "rasterio" ]; passthru.tests.version = testers.testVersion { package = rasterio; diff --git a/pkgs/development/python-modules/ratarmount/default.nix b/pkgs/development/python-modules/ratarmount/default.nix index 64c11f7f3fe7..b5ef1f623db9 100644 --- a/pkgs/development/python-modules/ratarmount/default.nix +++ b/pkgs/development/python-modules/ratarmount/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, fusepy -, ratarmountcore +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + fusepy, + ratarmountcore, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-2slLshH07O+4PIU3dF9vX2ZcXjaUVyTFYc59LL2J5iY="; }; - propagatedBuildInputs = [ ratarmountcore fusepy ]; + propagatedBuildInputs = [ + ratarmountcore + fusepy + ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/ratarmountcore/default.nix b/pkgs/development/python-modules/ratarmountcore/default.nix index 844fa2c49923..eb97b7a4a64e 100644 --- a/pkgs/development/python-modules/ratarmountcore/default.nix +++ b/pkgs/development/python-modules/ratarmountcore/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, indexed-bzip2 -, indexed-gzip -, indexed-zstd -, python-xz -, setuptools -, rapidgzip -, rarfile -, zstandard # Python bindings -, zstd # System tool +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + indexed-bzip2, + indexed-gzip, + indexed-zstd, + python-xz, + setuptools, + rapidgzip, + rarfile, + zstandard, # Python bindings + zstd, # System tool }: buildPythonPackage rec { @@ -32,11 +33,22 @@ buildPythonPackage rec { sourceRoot = "${src.name}/core"; nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ indexed-gzip indexed-bzip2 indexed-zstd python-xz rapidgzip rarfile ]; + propagatedBuildInputs = [ + indexed-gzip + indexed-bzip2 + indexed-zstd + python-xz + rapidgzip + rarfile + ]; pythonImportsCheck = [ "ratarmountcore" ]; - nativeCheckInputs = [ pytestCheckHook zstandard zstd ]; + nativeCheckInputs = [ + pytestCheckHook + zstandard + zstd + ]; disabledTestPaths = [ # Disable this test because for arcane reasons running pytest with nix-build uses 10-100x diff --git a/pkgs/development/python-modules/ratelim/default.nix b/pkgs/development/python-modules/ratelim/default.nix index c271b44ca32f..c48469168cba 100644 --- a/pkgs/development/python-modules/ratelim/default.nix +++ b/pkgs/development/python-modules/ratelim/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, decorator +{ + lib, + buildPythonPackage, + fetchPypi, + decorator, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "07dirdd8y23706110nb0lfz5pzbrcvd9y74h64la3y8igqbk4vc2"; }; - propagatedBuildInputs = [ - decorator - ]; + propagatedBuildInputs = [ decorator ]; pythonImportsCheck = [ "ratelim" ]; diff --git a/pkgs/development/python-modules/ratelimit/default.nix b/pkgs/development/python-modules/ratelimit/default.nix index 5a2c40efd105..b17d017fbd6a 100644 --- a/pkgs/development/python-modules/ratelimit/default.nix +++ b/pkgs/development/python-modules/ratelimit/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rauth/default.nix b/pkgs/development/python-modules/rauth/default.nix index 059dfa9a2a60..a5456603e0a7 100644 --- a/pkgs/development/python-modules/rauth/default.nix +++ b/pkgs/development/python-modules/rauth/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, requests -, pytestCheckHook -, mock -, nose -, pycrypto +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + requests, + pytestCheckHook, + mock, + nose, + pycrypto, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; pythonImportsCheck = [ "rauth" ]; @@ -51,4 +50,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ blaggacao ]; }; } - diff --git a/pkgs/development/python-modules/raven/default.nix b/pkgs/development/python-modules/raven/default.nix index f49230494e48..88727591db83 100644 --- a/pkgs/development/python-modules/raven/default.nix +++ b/pkgs/development/python-modules/raven/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, blinker -, flask +{ + lib, + buildPythonPackage, + fetchFromGitHub, + blinker, + flask, }: buildPythonPackage rec { @@ -23,7 +24,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "raven" ]; passthru.optional-dependencies = { - flask = [ blinker flask ]; + flask = [ + blinker + flask + ]; }; meta = { diff --git a/pkgs/development/python-modules/rawkit/default.nix b/pkgs/development/python-modules/rawkit/default.nix index 7a644220e93a..e4b50337f05a 100644 --- a/pkgs/development/python-modules/rawkit/default.nix +++ b/pkgs/development/python-modules/rawkit/default.nix @@ -1,6 +1,12 @@ -{ lib, fetchPypi, buildPythonPackage, fetchpatch -, libraw -, pytest, mock }: +{ + lib, + fetchPypi, + buildPythonPackage, + fetchpatch, + libraw, + pytest, + mock, +}: buildPythonPackage rec { pname = "rawkit"; @@ -22,7 +28,10 @@ buildPythonPackage rec { buildInputs = [ libraw ]; - nativeCheckInputs = [ pytest mock ]; + nativeCheckInputs = [ + pytest + mock + ]; checkPhase = '' py.test tests diff --git a/pkgs/development/python-modules/ray/default.nix b/pkgs/development/python-modules/ray/default.nix index b1c886153192..98acc7ff2c4e 100644 --- a/pkgs/development/python-modules/ray/default.nix +++ b/pkgs/development/python-modules/ray/default.nix @@ -1,53 +1,54 @@ -{ aiohttp -, aiohttp-cors -, aiorwlock -, aiosignal -, attrs -, autoPatchelfHook -, buildPythonPackage -, fetchPypi -, click -, cloudpickle -, colorama -, colorful -, cython -, dm-tree -, fastapi -, filelock -, frozenlist -, fsspec -, gpustat -, grpcio -, gym -, jsonschema -, lib -, lz4 -, matplotlib -, msgpack -, numpy -, opencensus -, packaging -, pandas -, py-spy -, prometheus-client -, psutil -, pyarrow -, pydantic -, python -, pythonAtLeast -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, requests -, scikit-image -, scipy -, setproctitle -, smart-open -, starlette -, tabulate -, tensorboardx -, uvicorn -, virtualenv +{ + aiohttp, + aiohttp-cors, + aiorwlock, + aiosignal, + attrs, + autoPatchelfHook, + buildPythonPackage, + fetchPypi, + click, + cloudpickle, + colorama, + colorful, + cython, + dm-tree, + fastapi, + filelock, + frozenlist, + fsspec, + gpustat, + grpcio, + gym, + jsonschema, + lib, + lz4, + matplotlib, + msgpack, + numpy, + opencensus, + packaging, + pandas, + py-spy, + prometheus-client, + psutil, + pyarrow, + pydantic, + python, + pythonAtLeast, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + requests, + scikit-image, + scipy, + setproctitle, + smart-open, + starlette, + tabulate, + tensorboardx, + uvicorn, + virtualenv, }: let @@ -62,16 +63,19 @@ buildPythonPackage rec { src = let - pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}"; - binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}" or {}; + pyShortVersion = "cp${builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion}"; + binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}" or { }; in - fetchPypi ({ - inherit pname version format; - dist = pyShortVersion; - python = pyShortVersion; - abi = pyShortVersion; - platform = "manylinux2014_x86_64"; - } // binary-hash); + fetchPypi ( + { + inherit pname version format; + dist = pyShortVersion; + python = pyShortVersion; + abi = pyShortVersion; + platform = "manylinux2014_x86_64"; + } + // binary-hash + ); passthru.optional-dependencies = rec { data-deps = [ @@ -152,9 +156,7 @@ buildPythonPackage rec { chmod +x $out/${python.sitePackages}/ray/core/src/ray/{gcs/gcs_server,raylet/raylet} ''; - pythonImportsCheck = [ - "ray" - ]; + pythonImportsCheck = [ "ray" ]; meta = with lib; { description = "A unified framework for scaling AI and Python applications"; diff --git a/pkgs/development/python-modules/razdel/default.nix b/pkgs/development/python-modules/razdel/default.nix index 519abbd734f4..a5f23fbd37f8 100644 --- a/pkgs/development/python-modules/razdel/default.nix +++ b/pkgs/development/python-modules/razdel/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest7CheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytest7CheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rbtools/default.nix b/pkgs/development/python-modules/rbtools/default.nix index 57887196cbae..bbab71ec70bb 100644 --- a/pkgs/development/python-modules/rbtools/default.nix +++ b/pkgs/development/python-modules/rbtools/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchurl -, isPy3k -, setuptools -, colorama -, six -, texttable -, tqdm +{ + lib, + buildPythonPackage, + fetchurl, + isPy3k, + setuptools, + colorama, + six, + texttable, + tqdm, }: buildPythonPackage rec { @@ -21,7 +22,13 @@ buildPythonPackage rec { sha256 = "577c2f8bbf88f77bda84ee95af0310b59111c156f48a5aab56ca481e2f77eaf4"; }; - propagatedBuildInputs = [ six texttable tqdm colorama setuptools ]; + propagatedBuildInputs = [ + six + texttable + tqdm + colorama + setuptools + ]; # The kgb test dependency is not in nixpkgs doCheck = false; @@ -33,5 +40,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/rchitect/default.nix b/pkgs/development/python-modules/rchitect/default.nix index cbafc0d2b2b6..dc2f22e97194 100644 --- a/pkgs/development/python-modules/rchitect/default.nix +++ b/pkgs/development/python-modules/rchitect/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cffi -, pytestCheckHook -, pytest-mock -, pythonOlder -, R -, rPackages -, six -, packaging +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cffi, + pytestCheckHook, + pytest-mock, + pythonOlder, + R, + rPackages, + six, + packaging, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { cffi six packaging - ] ++ (with rPackages; [ - reticulate - ]); + ] ++ (with rPackages; [ reticulate ]); nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/rcssmin/default.nix b/pkgs/development/python-modules/rcssmin/default.nix index 15fc1c3bfee1..ce3442245a58 100644 --- a/pkgs/development/python-modules/rcssmin/default.nix +++ b/pkgs/development/python-modules/rcssmin/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { # tests auto-discovery doCheck = false; - pythonImportsCheck = [ - "rcssmin" - ]; + pythonImportsCheck = [ "rcssmin" ]; meta = with lib; { description = "CSS minifier written in pure python"; diff --git a/pkgs/development/python-modules/rdflib/default.nix b/pkgs/development/python-modules/rdflib/default.nix index d0f62efa6a78..7c131ffe8bc2 100644 --- a/pkgs/development/python-modules/rdflib/default.nix +++ b/pkgs/development/python-modules/rdflib/default.nix @@ -1,30 +1,31 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# builds -, poetry-core + # builds + poetry-core, -# propagates -, isodate -, pyparsing + # propagates + isodate, + pyparsing, -# propagates <3.8 -, importlib-metadata + # propagates <3.8 + importlib-metadata, -# extras: networkx -, networkx + # extras: networkx + networkx, -# extras: html -, html5lib + # extras: html + html5lib, -# tests -, pip -, pytest-cov -, pytest7CheckHook -, setuptools + # tests + pip, + pytest-cov, + pytest7CheckHook, + setuptools, }: buildPythonPackage rec { @@ -41,25 +42,17 @@ buildPythonPackage rec { hash = "sha256-VCjvgXMun1Hs+gPeqjzLXbIX1NBQ5aMLz0aWlwsm0iY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ isodate html5lib pyparsing - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; passthru.optional-dependencies = { - html = [ - html5lib - ]; - networkx = [ - networkx - ]; + html = [ html5lib ]; + networkx = [ networkx ]; }; __darwinAllowLocalNetworking = true; @@ -70,9 +63,7 @@ buildPythonPackage rec { # Failed: DID NOT WARN. No warnings of type (,) were emitted. pytest7CheckHook setuptools - ] - ++ passthru.optional-dependencies.networkx - ++ passthru.optional-dependencies.html; + ] ++ passthru.optional-dependencies.networkx ++ passthru.optional-dependencies.html; pytestFlagsArray = [ # requires network access @@ -80,23 +71,23 @@ buildPythonPackage rec { "--deselect=test/jsonld/test_onedotone.py::test_suite" ]; - disabledTests = [ - # Requires network access - "test_service" - "testGuessFormatForParse" - "test_infix_owl_example1" - "test_context" - "test_example" - "test_guess_format_for_parse" - "rdflib.extras.infixowl" - ] ++ lib.optionals stdenv.isDarwin [ - # Require loopback network access - "TestGraphHTTP" - ]; + disabledTests = + [ + # Requires network access + "test_service" + "testGuessFormatForParse" + "test_infix_owl_example1" + "test_context" + "test_example" + "test_guess_format_for_parse" + "rdflib.extras.infixowl" + ] + ++ lib.optionals stdenv.isDarwin [ + # Require loopback network access + "TestGraphHTTP" + ]; - pythonImportsCheck = [ - "rdflib" - ]; + pythonImportsCheck = [ "rdflib" ]; meta = with lib; { description = "Python library for working with RDF"; diff --git a/pkgs/development/python-modules/rdkit/default.nix b/pkgs/development/python-modules/rdkit/default.nix index 2d5af44a068d..44096b6910c0 100644 --- a/pkgs/development/python-modules/rdkit/default.nix +++ b/pkgs/development/python-modules/rdkit/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, cmake -, comic-neue -, boost -, catch2_3 -, inchi -, cairo -, eigen -, python -, rapidjson -, maeparser -, coordgenlibs -, numpy -, pandas -, pillow -, memorymappingHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + cmake, + comic-neue, + boost, + catch2_3, + inchi, + cairo, + eigen, + python, + rapidjson, + maeparser, + coordgenlibs, + numpy, + pandas, + pillow, + memorymappingHook, }: let external = { @@ -77,17 +78,13 @@ buildPythonPackage rec { ln -s ${comic-neue}/share/fonts/truetype/ComicNeue-Regular.ttf Data/Fonts/ ''; - nativeBuildInputs = [ - cmake - ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ boost cairo catch2_3 - ] ++ lib.optionals (stdenv.system == "x86_64-darwin") [ - memorymappingHook - ]; + ] ++ lib.optionals (stdenv.system == "x86_64-darwin") [ memorymappingHook ]; propagatedBuildInputs = [ numpy @@ -153,7 +150,10 @@ buildPythonPackage rec { meta = with lib; { description = "Open source toolkit for cheminformatics"; - maintainers = with maintainers; [ rmcgibbo natsukium ]; + maintainers = with maintainers; [ + rmcgibbo + natsukium + ]; license = licenses.bsd3; homepage = "https://www.rdkit.org"; changelog = "https://github.com/rdkit/rdkit/releases/tag/${src.rev}"; diff --git a/pkgs/development/python-modules/re-assert/default.nix b/pkgs/development/python-modules/re-assert/default.nix index 9cf32d79802e..5dc156b15053 100644 --- a/pkgs/development/python-modules/re-assert/default.nix +++ b/pkgs/development/python-modules/re-assert/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, regex +{ + lib, + buildPythonPackage, + fetchPypi, + regex, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # No tests in archive doCheck = false; - propagatedBuildInputs = [ - regex - ]; + propagatedBuildInputs = [ regex ]; meta = { description = "Show where your regex match assertion failed"; diff --git a/pkgs/development/python-modules/reactivex/default.nix b/pkgs/development/python-modules/reactivex/default.nix index 430581fce58f..ab38b8a968b4 100644 --- a/pkgs/development/python-modules/reactivex/default.nix +++ b/pkgs/development/python-modules/reactivex/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-W1qYNbYV6Roz1GJtP/vpoPD6KigWaaQOWe1R5DZHlUw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ pytest-asyncio @@ -41,9 +38,7 @@ buildPythonPackage rec { --replace 'version = "0.0.0"' 'version = "${version}"' ''; - pythonImportsCheck = [ - "reactivex" - ]; + pythonImportsCheck = [ "reactivex" ]; meta = with lib; { description = "Library for composing asynchronous and event-based programs"; diff --git a/pkgs/development/python-modules/readabilipy/default.nix b/pkgs/development/python-modules/readabilipy/default.nix index e97b238ac599..862a6428546c 100644 --- a/pkgs/development/python-modules/readabilipy/default.nix +++ b/pkgs/development/python-modules/readabilipy/default.nix @@ -1,13 +1,14 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, html5lib -, lxml -, pytestCheckHook -, pythonOlder -, regex -, setuptools +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + html5lib, + lxml, + pytestCheckHook, + pythonOlder, + regex, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-XrmdQjLFYdadWeO5DoKAQeEdta+6T6BqfvGlDkzLMyM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 @@ -35,13 +34,9 @@ buildPythonPackage rec { regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "readabilipy" - ]; + pythonImportsCheck = [ "readabilipy" ]; disabledTests = [ # AssertionError diff --git a/pkgs/development/python-modules/readability-lxml/default.nix b/pkgs/development/python-modules/readability-lxml/default.nix index b1360d7bf520..5c772879dcc7 100644 --- a/pkgs/development/python-modules/readability-lxml/default.nix +++ b/pkgs/development/python-modules/readability-lxml/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, chardet -, cssselect -, lxml -, timeout-decorator +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + chardet, + cssselect, + lxml, + timeout-decorator, }: buildPythonPackage rec { @@ -21,7 +22,11 @@ buildPythonPackage rec { hash = "sha256-MKdQRety24qOG9xgIdaCJ72XEImP42SlMG6tC7bwzo4="; }; - propagatedBuildInputs = [ chardet cssselect lxml ]; + propagatedBuildInputs = [ + chardet + cssselect + lxml + ]; postPatch = '' substituteInPlace setup.py --replace 'sys.platform == "darwin"' "False" diff --git a/pkgs/development/python-modules/readchar/default.nix b/pkgs/development/python-modules/readchar/default.nix index 115e0c284a2a..b9d80f945c25 100644 --- a/pkgs/development/python-modules/readchar/default.nix +++ b/pkgs/development/python-modules/readchar/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytestCheckHook -, pexpect + # tests + pytestCheckHook, + pexpect, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace 'sys.platform.startswith("linux")' 'sys.platform.startswith(("darwin", "linux"))' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "readchar" ]; diff --git a/pkgs/development/python-modules/readlike/default.nix b/pkgs/development/python-modules/readlike/default.nix index da43d1cec2ce..fa7480f31ad4 100644 --- a/pkgs/development/python-modules/readlike/default.nix +++ b/pkgs/development/python-modules/readlike/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; meta = with lib; { description = "GNU Readline-like line editing module"; diff --git a/pkgs/development/python-modules/readmdict/default.nix b/pkgs/development/python-modules/readmdict/default.nix index 5ce332df5504..74fec466ad92 100644 --- a/pkgs/development/python-modules/readmdict/default.nix +++ b/pkgs/development/python-modules/readmdict/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -, poetry-core -, python-lzo -, tkinter + poetry-core, + python-lzo, + tkinter, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -24,22 +25,16 @@ buildPythonPackage rec { hash = "sha256-1/f+o2bVscT3EA8XQyS2hWjhimLRzfIBM6u2O7UqwcA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ python-lzo tkinter ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "readmdict" - ]; + pythonImportsCheck = [ "readmdict" ]; meta = with lib; { description = "Read mdx/mdd files (repacking of readmdict from mdict-analysis)"; diff --git a/pkgs/development/python-modules/readme-renderer/default.nix b/pkgs/development/python-modules/readme-renderer/default.nix index bcc961bc18ff..2e927f5473dc 100644 --- a/pkgs/development/python-modules/readme-renderer/default.nix +++ b/pkgs/development/python-modules/readme-renderer/default.nix @@ -1,14 +1,15 @@ -{ lib -, bleach -, buildPythonPackage -, cmarkgfm -, docutils -, fetchPypi -, nh3 -, pygments -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + bleach, + buildPythonPackage, + cmarkgfm, + docutils, + fetchPypi, + nh3, + pygments, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-GBjdKBQIE1Ce7tjWJof3zU97rZDU21hgAcXcCdT94xE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ docutils @@ -34,23 +33,16 @@ buildPythonPackage rec { pygments ]; - optional-dependencies.md = [ - cmarkgfm - ]; + optional-dependencies.md = [ cmarkgfm ]; - nativeCheckInputs = [ - pytestCheckHook - ] - ++ optional-dependencies.md; + nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.md; disabledTests = [ "test_rst_fixtures" "test_rst_008.rst" ]; - pythonImportsCheck = [ - "readme_renderer" - ]; + pythonImportsCheck = [ "readme_renderer" ]; meta = with lib; { description = "Python library for rendering readme descriptions"; diff --git a/pkgs/development/python-modules/readme/default.nix b/pkgs/development/python-modules/readme/default.nix index 2e959bf26871..40ab04142897 100644 --- a/pkgs/development/python-modules/readme/default.nix +++ b/pkgs/development/python-modules/readme/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, readme-renderer +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + readme-renderer, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231"; }; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; - propagatedBuildInputs = [ - readme-renderer - ]; + propagatedBuildInputs = [ readme-renderer ]; checkPhase = '' pytest @@ -37,5 +34,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix b/pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix index 7d114a5fe23e..6d974563bc1e 100644 --- a/pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix +++ b/pkgs/development/python-modules/readthedocs-sphinx-ext/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, requests -, pytestCheckHook -, mock -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + requests, + pytestCheckHook, + mock, + sphinx, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-7l/VuZ258MGAsjlsvOUoqjZnGVG5UmuwJy2/zlUXvSc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/rebulk/default.nix b/pkgs/development/python-modules/rebulk/default.nix index cab55c3a29fe..2aebf689bbaa 100644 --- a/pkgs/development/python-modules/rebulk/default.nix +++ b/pkgs/development/python-modules/rebulk/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, regex +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + regex, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-DTC/gPygD6nGlxhaxHXarJveX2Rs4zOMn/XV3B69/rw="; }; - propagatedBuildInputs = [ - regex - ]; + propagatedBuildInputs = [ regex ]; - buildInputs = [ - pytestCheckHook - ]; + buildInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rebulk" - ]; + pythonImportsCheck = [ "rebulk" ]; meta = with lib; { description = "Advanced string matching from simple patterns"; diff --git a/pkgs/development/python-modules/recipe-scrapers/default.nix b/pkgs/development/python-modules/recipe-scrapers/default.nix index 4c9ad2d8295e..690a5def8ef2 100644 --- a/pkgs/development/python-modules/recipe-scrapers/default.nix +++ b/pkgs/development/python-modules/recipe-scrapers/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, beautifulsoup4 -, extruct -, language-tags -, regex -, requests -, pytestCheckHook -, responses -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + extruct, + language-tags, + regex, + requests, + pytestCheckHook, + responses, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-+9oQLCuR+rRCG5tnyofHd8WMkQ5QPsWfLCnwIDU5d9o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ beautifulsoup4 @@ -48,9 +47,7 @@ buildPythonPackage rec { "test_instructions" ]; - pythonImportsCheck = [ - "recipe_scrapers" - ]; + pythonImportsCheck = [ "recipe_scrapers" ]; meta = with lib; { description = "Python package for scraping recipes data"; diff --git a/pkgs/development/python-modules/recline/default.nix b/pkgs/development/python-modules/recline/default.nix index 074e1da03386..1f191576ea3f 100644 --- a/pkgs/development/python-modules/recline/default.nix +++ b/pkgs/development/python-modules/recline/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pudb -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pudb, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "sha256-jsWOPkzhN4D+Q/lK5yWg1kTgFkmOEIQY8O7oAXq5Nak="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pudb diff --git a/pkgs/development/python-modules/recommonmark/default.nix b/pkgs/development/python-modules/recommonmark/default.nix index b58cf8f28000..644c36627449 100644 --- a/pkgs/development/python-modules/recommonmark/default.nix +++ b/pkgs/development/python-modules/recommonmark/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, commonmark -, docutils -, sphinx -, isPy3k +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + commonmark, + docutils, + sphinx, + isPy3k, }: buildPythonPackage rec { @@ -21,7 +22,11 @@ buildPythonPackage rec { }; nativeCheckInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ commonmark docutils sphinx ]; + propagatedBuildInputs = [ + commonmark + docutils + sphinx + ]; dontUseSetuptoolsCheck = true; diff --git a/pkgs/development/python-modules/recordlinkage/default.nix b/pkgs/development/python-modules/recordlinkage/default.nix index 7b92cfacebf9..b89a11830bc4 100644 --- a/pkgs/development/python-modules/recordlinkage/default.nix +++ b/pkgs/development/python-modules/recordlinkage/default.nix @@ -1,21 +1,22 @@ -{ lib -, bottleneck -, buildPythonPackage -, fetchPypi -, jellyfish -, joblib -, networkx -, numexpr -, numpy -, pandas -, pyarrow -, pytest -, pythonOlder -, scikit-learn -, scipy -, setuptools -, setuptools-scm -, wheel +{ + lib, + bottleneck, + buildPythonPackage, + fetchPypi, + jellyfish, + joblib, + networkx, + numexpr, + numpy, + pandas, + pyarrow, + pytest, + pythonOlder, + scikit-learn, + scipy, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -51,13 +52,9 @@ buildPythonPackage rec { # pytestCheckHook does not work # Reusing their CI setup which involves 'rm -rf recordlinkage' in preCheck phase do not work too. - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; - pythonImportsCheck = [ - "recordlinkage" - ]; + pythonImportsCheck = [ "recordlinkage" ]; meta = with lib; { description = "Library to link records in or between data sources"; diff --git a/pkgs/development/python-modules/recurring-ical-events/default.nix b/pkgs/development/python-modules/recurring-ical-events/default.nix index fd5cdb62dd7c..bd3b2b7a99a2 100644 --- a/pkgs/development/python-modules/recurring-ical-events/default.nix +++ b/pkgs/development/python-modules/recurring-ical-events/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, icalendar -, pytz -, python-dateutil -, x-wr-timezone -, pytestCheckHook -, restructuredtext-lint -, pygments -, tzdata +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + icalendar, + pytz, + python-dateutil, + x-wr-timezone, + pytestCheckHook, + restructuredtext-lint, + pygments, + tzdata, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-Njd+sc35jlA96iVf2uuVN2BK92ctwUDfBAUfpgqtPs0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ icalendar diff --git a/pkgs/development/python-modules/recursive-pth-loader/default.nix b/pkgs/development/python-modules/recursive-pth-loader/default.nix index e42988eeff9a..c5a21d488fcf 100644 --- a/pkgs/development/python-modules/recursive-pth-loader/default.nix +++ b/pkgs/development/python-modules/recursive-pth-loader/default.nix @@ -12,14 +12,13 @@ stdenv.mkDerivation { buildPhase = "${python.pythonOnBuildForHost}/bin/${python.pythonOnBuildForHost.executable} -m compileall ."; - installPhase = - '' - dst=$out/${python.sitePackages} - mkdir -p $dst - cp sitecustomize.* $dst/ - ''; + installPhase = '' + dst=$out/${python.sitePackages} + mkdir -p $dst + cp sitecustomize.* $dst/ + ''; meta = { - description = "Enable recursive processing of pth files anywhere in sys.path"; + description = "Enable recursive processing of pth files anywhere in sys.path"; }; } diff --git a/pkgs/development/python-modules/red-black-tree-mod/default.nix b/pkgs/development/python-modules/red-black-tree-mod/default.nix index dd17a45bc8ea..92eca8c4411f 100644 --- a/pkgs/development/python-modules/red-black-tree-mod/default.nix +++ b/pkgs/development/python-modules/red-black-tree-mod/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-OONlKQOiv5Y3nCfCCCygt7kFFYZi3X7wyX9P2TqaqQg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no test doCheck = false; - pythonImportsCheck = [ - "red_black_dict_mod" - ]; + pythonImportsCheck = [ "red_black_dict_mod" ]; meta = with lib; { description = "Flexible python implementation of red black trees"; diff --git a/pkgs/development/python-modules/redbaron/default.nix b/pkgs/development/python-modules/redbaron/default.nix index 52a3ac5b265e..5938221f7c0d 100644 --- a/pkgs/development/python-modules/redbaron/default.nix +++ b/pkgs/development/python-modules/redbaron/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, baron, pytestCheckHook }: +{ + lib, + fetchPypi, + buildPythonPackage, + baron, + pytestCheckHook, +}: buildPythonPackage rec { pname = "redbaron"; @@ -15,7 +21,7 @@ buildPythonPackage rec { preCheck = '' rm -rf tests/__pycache__ rm tests/test_bounding_box.py - ''; #error about fixtures + ''; # error about fixtures nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/redis-om/default.nix b/pkgs/development/python-modules/redis-om/default.nix index 4e84e3ea37c4..24b267d688ad 100644 --- a/pkgs/development/python-modules/redis-om/default.nix +++ b/pkgs/development/python-modules/redis-om/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pythonRelaxDepsHook -, unasync -, poetry-core -, python -, click -, hiredis -, more-itertools -, pydantic -, python-ulid -, redis -, types-redis -, typing-extensions -, pkgs -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pythonRelaxDepsHook, + unasync, + poetry-core, + python, + click, + hiredis, + more-itertools, + pydantic, + python-ulid, + redis, + types-redis, + typing-extensions, + pkgs, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/redis/default.nix b/pkgs/development/python-modules/redis/default.nix index 9e583447e101..31b2da5d6d3f 100644 --- a/pkgs/development/python-modules/redis/default.nix +++ b/pkgs/development/python-modules/redis/default.nix @@ -1,22 +1,23 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, -# propagates -, async-timeout -, deprecated -, importlib-metadata -, packaging -, typing-extensions + # propagates + async-timeout, + deprecated, + importlib-metadata, + packaging, + typing-extensions, -# extras: hiredis -, hiredis + # extras: hiredis + hiredis, -# extras: ocsp -, cryptography -, pyopenssl -, requests + # extras: ocsp + cryptography, + pyopenssl, + requests, }: buildPythonPackage rec { @@ -36,14 +37,10 @@ buildPythonPackage rec { deprecated packaging typing-extensions - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; passthru.optional-dependencies = { - hiredis = [ - hiredis - ]; + hiredis = [ hiredis ]; ocsp = [ cryptography pyopenssl diff --git a/pkgs/development/python-modules/redshift-connector/default.nix b/pkgs/development/python-modules/redshift-connector/default.nix index 704eb5d1e1f6..f7248c1fb2f3 100644 --- a/pkgs/development/python-modules/redshift-connector/default.nix +++ b/pkgs/development/python-modules/redshift-connector/default.nix @@ -1,16 +1,17 @@ -{ beautifulsoup4 -, boto3 -, buildPythonPackage -, fetchFromGitHub -, lib -, lxml -, packaging -, pytest-mock -, pytestCheckHook -, pythonOlder -, pytz -, requests -, scramp +{ + beautifulsoup4, + boto3, + buildPythonPackage, + fetchFromGitHub, + lib, + lxml, + packaging, + pytest-mock, + pytestCheckHook, + pythonOlder, + pytz, + requests, + scramp, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/reedsolo/default.nix b/pkgs/development/python-modules/reedsolo/default.nix index a2fb336f70b4..491c60d71306 100644 --- a/pkgs/development/python-modules/reedsolo/default.nix +++ b/pkgs/development/python-modules/reedsolo/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cython -, setuptools + # build-system + cython, + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ "tests/test_creedsolo.py" # TODO: package creedsolo diff --git a/pkgs/development/python-modules/refery/default.nix b/pkgs/development/python-modules/refery/default.nix index 0bae769fbdad..1d434c4d569c 100644 --- a/pkgs/development/python-modules/refery/default.nix +++ b/pkgs/development/python-modules/refery/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -, poetry-core -, pyyaml -, colorama -, junit-xml + poetry-core, + pyyaml, + colorama, + junit-xml, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { junit-xml ]; - pythonImportCheck = [ - "refery" - ]; + pythonImportCheck = [ "refery" ]; disabled = pythonOlder "3.10"; diff --git a/pkgs/development/python-modules/reflink/default.nix b/pkgs/development/python-modules/reflink/default.nix index ab7504cf2f31..feb533ee69f0 100644 --- a/pkgs/development/python-modules/reflink/default.nix +++ b/pkgs/development/python-modules/reflink/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, cffi -, fetchPypi -, lib -, pytestCheckHook +{ + buildPythonPackage, + cffi, + fetchPypi, + lib, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/regenmaschine/default.nix b/pkgs/development/python-modules/regenmaschine/default.nix index 9c8cd8053f5f..9b24dc91f92f 100644 --- a/pkgs/development/python-modules/regenmaschine/default.nix +++ b/pkgs/development/python-modules/regenmaschine/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, certifi -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder -, typing-extensions +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + certifi, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-RdmK6oK92j4xqLoAjjqlONYu3IfNNWudo4v7jcc+VGU="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "regenmaschine" - ]; + pythonImportsCheck = [ "regenmaschine" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/regex/default.nix b/pkgs/development/python-modules/regex/default.nix index 0ada0fe50ba2..76506e1f0f9b 100644 --- a/pkgs/development/python-modules/regex/default.nix +++ b/pkgs/development/python-modules/regex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { ${python.interpreter} -m unittest ''; - pythonImportsCheck = [ - "regex" - ]; + pythonImportsCheck = [ "regex" ]; meta = with lib; { description = "Alternative regular expression module, to replace re"; diff --git a/pkgs/development/python-modules/regional/default.nix b/pkgs/development/python-modules/regional/default.nix index ccbfb1cb874a..e5dea4940b31 100644 --- a/pkgs/development/python-modules/regional/default.nix +++ b/pkgs/development/python-modules/regional/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, scipy -, matplotlib -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, + matplotlib, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "regional" - ]; + pythonImportsCheck = [ "regional" ]; disabledTests = [ "test_dilate" diff --git a/pkgs/development/python-modules/regress/default.nix b/pkgs/development/python-modules/regress/default.nix index b70e52008778..b6a77758fa61 100644 --- a/pkgs/development/python-modules/regress/default.nix +++ b/pkgs/development/python-modules/regress/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, fetchPypi -, buildPythonPackage -, rustPlatform -, libiconv +{ + lib, + stdenv, + fetchPypi, + buildPythonPackage, + rustPlatform, + libiconv, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { hash = "sha256-tCrFBjkK6obzaYkYiJ3WQ5yi3KkC86/cbXCSnRRGZu8="; }; - nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ]; + nativeBuildInputs = with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; diff --git a/pkgs/development/python-modules/reikna/default.nix b/pkgs/development/python-modules/reikna/default.nix index ad71a2943ea1..95bdca651be5 100644 --- a/pkgs/development/python-modules/reikna/default.nix +++ b/pkgs/development/python-modules/reikna/default.nix @@ -1,14 +1,17 @@ -{ lib -, fetchPypi -, buildPythonPackage -, sphinx -, pytest-cov -, pytest -, mako -, numpy -, funcsigs -, withCuda ? false, pycuda -, withOpenCL ? true, pyopencl +{ + lib, + fetchPypi, + buildPythonPackage, + sphinx, + pytest-cov, + pytest, + mako, + numpy, + funcsigs, + withCuda ? false, + pycuda, + withOpenCL ? true, + pyopencl, }: buildPythonPackage rec { @@ -21,11 +24,17 @@ buildPythonPackage rec { hash = "sha256-fpa1Pfo5EAafg7Pgha17G6k5G13fdErjclv0On/uYyI="; }; - nativeCheckInputs = [ sphinx pytest-cov pytest ]; + nativeCheckInputs = [ + sphinx + pytest-cov + pytest + ]; - propagatedBuildInputs = [ mako numpy funcsigs ] - ++ lib.optional withCuda pycuda - ++ lib.optional withOpenCL pyopencl; + propagatedBuildInputs = [ + mako + numpy + funcsigs + ] ++ lib.optional withCuda pycuda ++ lib.optional withOpenCL pyopencl; checkPhase = '' py.test @@ -38,7 +47,5 @@ buildPythonPackage rec { description = "GPGPU algorithms for PyCUDA and PyOpenCL"; homepage = "https://github.com/fjarri/reikna"; license = licenses.mit; - }; - } diff --git a/pkgs/development/python-modules/related/default.nix b/pkgs/development/python-modules/related/default.nix index 8c131e146944..d36157d818cc 100644 --- a/pkgs/development/python-modules/related/default.nix +++ b/pkgs/development/python-modules/related/default.nix @@ -1,12 +1,13 @@ -{ lib -, attrs -, buildPythonPackage -, fetchPypi -, future -, pytestCheckHook -, python-dateutil -, pythonOlder -, pyyaml +{ + lib, + attrs, + buildPythonPackage, + fetchPypi, + future, + pytestCheckHook, + python-dateutil, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' # Remove outdated setup.cfg @@ -47,9 +46,7 @@ buildPythonPackage rec { "test_store_data_from_json" ]; - pythonImportsCheck = [ - "related" - ]; + pythonImportsCheck = [ "related" ]; meta = with lib; { description = "Nested Object Models in Python"; diff --git a/pkgs/development/python-modules/relatorio/default.nix b/pkgs/development/python-modules/relatorio/default.nix index 23a3a87df727..740f4658c202 100644 --- a/pkgs/development/python-modules/relatorio/default.nix +++ b/pkgs/development/python-modules/relatorio/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, genshi -, lxml -, pyyaml -, python-magic -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + genshi, + lxml, + pyyaml, + python-magic, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,13 +29,14 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - chart = [ /* pycha */ pyyaml ]; + chart = [ + # pycha + pyyaml + ]; fodt = [ python-magic ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.fodt; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.fodt; pythonImportsCheck = [ "relatorio" ]; diff --git a/pkgs/development/python-modules/releases/default.nix b/pkgs/development/python-modules/releases/default.nix index 05c6d5ae75d0..324a4017a10e 100644 --- a/pkgs/development/python-modules/releases/default.nix +++ b/pkgs/development/python-modules/releases/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, semantic-version -, sphinx +{ + buildPythonPackage, + fetchFromGitHub, + lib, + semantic-version, + sphinx, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "semantic_version<2.7" "semantic_version" ''; - propagatedBuildInputs = [ semantic-version sphinx ]; + propagatedBuildInputs = [ + semantic-version + sphinx + ]; # Test suite doesn't run. See https://github.com/bitprophet/releases/issues/95. doCheck = false; diff --git a/pkgs/development/python-modules/remarshal/default.nix b/pkgs/development/python-modules/remarshal/default.nix index 0d8829201afc..708e0acc5324 100644 --- a/pkgs/development/python-modules/remarshal/default.nix +++ b/pkgs/development/python-modules/remarshal/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, -# build deps -, poetry-core + # build deps + poetry-core, -# propagates -, cbor2 -, python-dateutil -, pyyaml -, tomlkit -, u-msgpack-python + # propagates + cbor2, + python-dateutil, + pyyaml, + tomlkit, + u-msgpack-python, -# tested using -, pytestCheckHook + # tested using + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pytest" - ]; + pythonRelaxDeps = [ "pytest" ]; propagatedBuildInputs = [ cbor2 @@ -46,9 +45,7 @@ buildPythonPackage rec { u-msgpack-python ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/remarshal-project/remarshal/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/remi/default.nix b/pkgs/development/python-modules/remi/default.nix index 64b6a7066974..413c2563ee02 100644 --- a/pkgs/development/python-modules/remi/default.nix +++ b/pkgs/development/python-modules/remi/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, matplotlib -, python-snap7 -, opencv4 +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + matplotlib, + python-snap7, + opencv4, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { "self.assertEqual(" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/remote-pdb/default.nix b/pkgs/development/python-modules/remote-pdb/default.nix index 5081c34c3c46..796875196a21 100644 --- a/pkgs/development/python-modules/remote-pdb/default.nix +++ b/pkgs/development/python-modules/remote-pdb/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchFromGitHub, lib }: +{ + buildPythonPackage, + fetchFromGitHub, + lib, +}: buildPythonPackage rec { pname = "remote-pdb"; version = "2.1.0"; diff --git a/pkgs/development/python-modules/remotezip/default.nix b/pkgs/development/python-modules/remotezip/default.nix index ec81726cd243..473ea7762355 100644 --- a/pkgs/development/python-modules/remotezip/default.nix +++ b/pkgs/development/python-modules/remotezip/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, requests -, tabulate -, pytestCheckHook -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, + tabulate, + pytestCheckHook, + requests-mock, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-TNEM7Dm4iH4Z/P/PAqjJppbn1CKmyi9Xpq/sU9O8uxg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook requests-mock ]; - pythonImportsCheck = [ - "remotezip" - ]; + pythonImportsCheck = [ "remotezip" ]; meta = with lib; { description = "Python module to access single members of a zip archive without downloading the full content"; diff --git a/pkgs/development/python-modules/rencode/default.nix b/pkgs/development/python-modules/rencode/default.nix index ffbe1ef8967a..f9a0cf816400 100644 --- a/pkgs/development/python-modules/rencode/default.nix +++ b/pkgs/development/python-modules/rencode/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { nativeBuildInputs = [ cython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # import from $out diff --git a/pkgs/development/python-modules/renson-endura-delta/default.nix b/pkgs/development/python-modules/renson-endura-delta/default.nix index 013678d5eeec..03914c36dba2 100644 --- a/pkgs/development/python-modules/renson-endura-delta/default.nix +++ b/pkgs/development/python-modules/renson-endura-delta/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook requests-mock ]; - pythonImportsCheck = [ - "renson_endura_delta" - ]; + pythonImportsCheck = [ "renson_endura_delta" ]; meta = with lib; { description = "Module to interact with Renson endura delta"; diff --git a/pkgs/development/python-modules/reolink/default.nix b/pkgs/development/python-modules/reolink/default.nix index 06143c2922f4..c05b83b06dea 100644 --- a/pkgs/development/python-modules/reolink/default.nix +++ b/pkgs/development/python-modules/reolink/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, aiounittest -, buildPythonPackage -, fetchFromGitHub -, ffmpeg-python -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + aiohttp, + aiounittest, + buildPythonPackage, + fetchFromGitHub, + ffmpeg-python, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # https://github.com/fwestenberg/reolink/issues/83 doCheck = false; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; disabledTests = [ # Tests require network access @@ -56,9 +55,7 @@ buildPythonPackage rec { "test_succes" ]; - pythonImportsCheck = [ - "reolink" - ]; + pythonImportsCheck = [ "reolink" ]; meta = with lib; { description = "Module to interact with the Reolink IP camera API"; diff --git a/pkgs/development/python-modules/reorder-python-imports/default.nix b/pkgs/development/python-modules/reorder-python-imports/default.nix index b00896c801f0..f907993c888c 100644 --- a/pkgs/development/python-modules/reorder-python-imports/default.nix +++ b/pkgs/development/python-modules/reorder-python-imports/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, aspy-refactor-imports -, classify-imports +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + aspy-refactor-imports, + classify-imports, }: buildPythonPackage rec { @@ -25,19 +26,13 @@ buildPythonPackage rec { classify-imports ]; - pythonImportsCheck = [ - "reorder_python_imports" - ]; + pythonImportsCheck = [ "reorder_python_imports" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # prints an explanation about PYTHONPATH first # and therefore fails the assertion - disabledTests = [ - "test_success_messages_are_printed_on_stderr" - ]; + disabledTests = [ "test_success_messages_are_printed_on_stderr" ]; meta = with lib; { description = "Tool for automatically reordering python imports"; diff --git a/pkgs/development/python-modules/reparser/default.nix b/pkgs/development/python-modules/reparser/default.nix index fe0befde9db1..4ea2dab3e785 100644 --- a/pkgs/development/python-modules/reparser/default.nix +++ b/pkgs/development/python-modules/reparser/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/repath/default.nix b/pkgs/development/python-modules/repath/default.nix index b052b408e9f4..4704f6856b40 100644 --- a/pkgs/development/python-modules/repath/default.nix +++ b/pkgs/development/python-modules/repath/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-gpITm6xqDkP9nXBgXU6NrrJdRmcuSE7TGiTHzgrvD7c="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - pythonImportsCheck = [ - "repath" - ]; + pythonImportsCheck = [ "repath" ]; meta = { description = "A port of the node module path-to-regexp to Python"; diff --git a/pkgs/development/python-modules/repeated-test/default.nix b/pkgs/development/python-modules/repeated-test/default.nix index f87d5cdc782c..3a3531458eed 100644 --- a/pkgs/development/python-modules/repeated-test/default.nix +++ b/pkgs/development/python-modules/repeated-test/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-3YPU8SL9rud5s0pnwwH5TJk1MXsDhdkDnZp/Oj6sgXs="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "repeated_test" - ]; + pythonImportsCheck = [ "repeated_test" ]; meta = with lib; { description = "Unittest-compatible framework for repeating a test function over many fixtures"; diff --git a/pkgs/development/python-modules/repocheck/default.nix b/pkgs/development/python-modules/repocheck/default.nix index 9b73dabf027e..d5df17ae89fd 100644 --- a/pkgs/development/python-modules/repocheck/default.nix +++ b/pkgs/development/python-modules/repocheck/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { mainProgram = "repocheck"; license = licenses.gpl3Plus; }; - } diff --git a/pkgs/development/python-modules/reportengine/default.nix b/pkgs/development/python-modules/reportengine/default.nix index 3eb6cf2a869c..c472594486f4 100644 --- a/pkgs/development/python-modules/reportengine/default.nix +++ b/pkgs/development/python-modules/reportengine/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit -, jinja2 -, ruamel-yaml -, matplotlib -, pandas -, pandoc -, pygments -, blessings -, curio -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit, + jinja2, + ruamel-yaml, + matplotlib, + pandas, + pandoc, + pygments, + blessings, + curio, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/reportlab-qrcode/default.nix b/pkgs/development/python-modules/reportlab-qrcode/default.nix index 97d1e9d13732..b540fd219caf 100644 --- a/pkgs/development/python-modules/reportlab-qrcode/default.nix +++ b/pkgs/development/python-modules/reportlab-qrcode/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, qrcode -, reportlab -, pillow -, pytest -, pyzbar +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + qrcode, + reportlab, + pillow, + pytest, + pyzbar, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/reportlab/default.nix b/pkgs/development/python-modules/reportlab/default.nix index 2024b2835a75..6a94ba77e043 100644 --- a/pkgs/development/python-modules/reportlab/default.nix +++ b/pkgs/development/python-modules/reportlab/default.nix @@ -1,18 +1,22 @@ -{ lib -, buildPythonPackage -, chardet -, fetchPypi -, freetype -, pillow -, setuptools -, glibcLocales -, python -, isPyPy +{ + lib, + buildPythonPackage, + chardet, + fetchPypi, + freetype, + pillow, + setuptools, + glibcLocales, + python, + isPyPy, }: let - ft = freetype.overrideAttrs (oldArgs: { dontDisableStatic = true; }); -in buildPythonPackage rec { + ft = freetype.overrideAttrs (oldArgs: { + dontDisableStatic = true; + }); +in +buildPythonPackage rec { pname = "reportlab"; version = "4.2.0"; pyproject = true; @@ -36,22 +40,16 @@ in buildPythonPackage rec { rm tests/test_graphics_charts.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - ft - ]; + buildInputs = [ ft ]; propagatedBuildInputs = [ chardet pillow ]; - nativeCheckInputs = [ - glibcLocales - ]; + nativeCheckInputs = [ glibcLocales ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/repoze-lru/default.nix b/pkgs/development/python-modules/repoze-lru/default.nix index ef8ecba935ed..7578cf0877d7 100644 --- a/pkgs/development/python-modules/repoze-lru/default.nix +++ b/pkgs/development/python-modules/repoze-lru/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,17 +17,11 @@ buildPythonPackage rec { hash = "sha256-BCmnXhk4Dk7VDAaU4mrIgZtOp4Ue4fx1g8hXLbgK/3c="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "repoze/lru/tests.py" - ]; + pytestFlagsArray = [ "repoze/lru/tests.py" ]; disabledTests = [ # time sensitive tests diff --git a/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix b/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix index 879a18e3d4a7..ca7c14c1e2d9 100644 --- a/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix +++ b/pkgs/development/python-modules/repoze-sphinx-autointerface/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook -, zope-interface -, zope-testrunner -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, + zope-interface, + zope-testrunner, + sphinx, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-SGvxQjpGlrkVPkiM750ybElv/Bbd6xSwyYh7RsYOKKE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ zope-interface @@ -36,9 +35,7 @@ buildPythonPackage rec { zope-testrunner ]; - pythonImportsCheck = [ - "repoze.sphinx.autointerface" - ]; + pythonImportsCheck = [ "repoze.sphinx.autointerface" ]; pythonNamespaces = [ "repoze" diff --git a/pkgs/development/python-modules/repoze-who/default.nix b/pkgs/development/python-modules/repoze-who/default.nix index 07d6de4e67e6..abbc62a0aa83 100644 --- a/pkgs/development/python-modules/repoze-who/default.nix +++ b/pkgs/development/python-modules/repoze-who/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, zope-interface -, webob -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + zope-interface, + webob, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,15 +19,14 @@ buildPythonPackage rec { hash = "sha256-6VWt8AwfCwxxXoKJeaI37Ev37nCCe9l/Xhe/gnYNyzA="; }; - nativeBuildInputs = [ - setuptools + nativeBuildInputs = [ setuptools ]; + + propagatedBuildInputs = [ + zope-interface + webob ]; - propagatedBuildInputs = [ zope-interface webob ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # skip failing test # OSError: [Errno 22] Invalid argument @@ -34,9 +34,7 @@ buildPythonPackage rec { rm repoze/who/plugins/tests/test_htpasswd.py ''; - pythonImportsCheck = [ - "repoze.who" - ]; + pythonImportsCheck = [ "repoze.who" ]; pythonNamespaces = [ "repoze" diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index 940e2d0daac5..7deb0b20614e 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -1,20 +1,21 @@ -{ lib -, astropy -, astropy-extension-helpers -, astropy-healpix -, buildPythonPackage -, cloudpickle -, cython -, dask -, fetchPypi -, fsspec -, numpy -, pytest-astropy -, pytestCheckHook -, pythonOlder -, scipy -, setuptools-scm -, zarr +{ + lib, + astropy, + astropy-extension-helpers, + astropy-healpix, + buildPythonPackage, + cloudpickle, + cython, + dask, + fetchPypi, + fsspec, + numpy, + pytest-astropy, + pytestCheckHook, + pythonOlder, + scipy, + setuptools-scm, + zarr, }: buildPythonPackage rec { @@ -68,9 +69,7 @@ buildPythonPackage rec { "-o 'markers=filterwarnings'" ]; - pythonImportsCheck = [ - "reproject" - ]; + pythonImportsCheck = [ "reproject" ]; meta = with lib; { description = "Reproject astronomical images"; diff --git a/pkgs/development/python-modules/reprshed/default.nix b/pkgs/development/python-modules/reprshed/default.nix index 1aa9469aab29..196e9b5c6b77 100644 --- a/pkgs/development/python-modules/reprshed/default.nix +++ b/pkgs/development/python-modules/reprshed/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-XfmiewI74eDLKTAU6Ed76QXfJYMRb+idRACl6CW07ME="; }; - pythonImportsCheck = [ - "reprshed" - ]; + pythonImportsCheck = [ "reprshed" ]; meta = with lib; { homepage = "https://github.com/mentalisttraceur/python-reprshed"; diff --git a/pkgs/development/python-modules/reqif/default.nix b/pkgs/development/python-modules/reqif/default.nix index 0a13af92ee51..f07d88a5f3fa 100644 --- a/pkgs/development/python-modules/reqif/default.nix +++ b/pkgs/development/python-modules/reqif/default.nix @@ -1,15 +1,16 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, hatchling -, jinja2 -, lxml -, pytestCheckHook -, python -, pythonOlder -, pythonRelaxDepsHook -, xmlschema +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + hatchling, + jinja2, + lxml, + pytestCheckHook, + python, + pythonOlder, + pythonRelaxDepsHook, + xmlschema, }: buildPythonPackage rec { @@ -44,13 +45,9 @@ buildPythonPackage rec { xmlschema ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "reqif" - ]; + pythonImportsCheck = [ "reqif" ]; meta = with lib; { description = "Python library for ReqIF format"; diff --git a/pkgs/development/python-modules/requests-aws4auth/default.nix b/pkgs/development/python-modules/requests-aws4auth/default.nix index 9ce588e3206b..670c50c51a2a 100644 --- a/pkgs/development/python-modules/requests-aws4auth/default.nix +++ b/pkgs/development/python-modules/requests-aws4auth/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pytestCheckHook -, python -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pytestCheckHook, + python, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -29,18 +30,12 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - httpx = [ - httpx - ]; + httpx = [ httpx ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.httpx; + nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.httpx; - pythonImportsCheck = [ - "requests_aws4auth" - ]; + pythonImportsCheck = [ "requests_aws4auth" ]; meta = with lib; { description = "Amazon Web Services version 4 authentication for the Python Requests library"; diff --git a/pkgs/development/python-modules/requests-cache/default.nix b/pkgs/development/python-modules/requests-cache/default.nix index 1e4b0299be29..cf282e472eb4 100644 --- a/pkgs/development/python-modules/requests-cache/default.nix +++ b/pkgs/development/python-modules/requests-cache/default.nix @@ -1,32 +1,33 @@ -{ lib -, attrs -, buildPythonPackage -, bson -, boto3 -, botocore -, cattrs -, fetchFromGitHub -, itsdangerous -, platformdirs -, poetry-core -, psutil -, pymongo -, pytestCheckHook -, pytest-rerunfailures -, pytest-xdist -, pythonOlder -, pyyaml -, redis -, requests -, requests-mock -, responses -, rich -, tenacity -, time-machine -, timeout-decorator -, ujson -, urllib3 -, url-normalize +{ + lib, + attrs, + buildPythonPackage, + bson, + boto3, + botocore, + cattrs, + fetchFromGitHub, + itsdangerous, + platformdirs, + poetry-core, + psutil, + pymongo, + pytestCheckHook, + pytest-rerunfailures, + pytest-xdist, + pythonOlder, + pyyaml, + redis, + requests, + requests-mock, + responses, + rich, + tenacity, + time-machine, + timeout-decorator, + ujson, + urllib3, + url-normalize, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { hash = "sha256-w1ptKi/MH3kGZxLMUNq/Gs6btGx+n2fG4nfQUXCXmiY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ attrs @@ -61,24 +60,12 @@ buildPythonPackage rec { boto3 botocore ]; - mongodbo = [ - pymongo - ]; - redis = [ - redis - ]; - bson = [ - bson - ]; - json = [ - ujson - ]; - security = [ - itsdangerous - ]; - yaml = [ - pyyaml - ]; + mongodbo = [ pymongo ]; + redis = [ redis ]; + bson = [ bson ]; + json = [ ujson ]; + security = [ itsdangerous ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ @@ -92,9 +79,7 @@ buildPythonPackage rec { tenacity time-machine timeout-decorator - ] - ++ passthru.optional-dependencies.json - ++ passthru.optional-dependencies.security; + ] ++ passthru.optional-dependencies.json ++ passthru.optional-dependencies.security; preCheck = '' export HOME=$(mktemp -d); @@ -113,9 +98,7 @@ buildPythonPackage rec { "test_stale_if_error__error_code" ]; - pythonImportsCheck = [ - "requests_cache" - ]; + pythonImportsCheck = [ "requests_cache" ]; meta = with lib; { description = "Persistent cache for requests library"; diff --git a/pkgs/development/python-modules/requests-credssp/default.nix b/pkgs/development/python-modules/requests-credssp/default.nix index 8c7dfc3aee8d..243332123f79 100644 --- a/pkgs/development/python-modules/requests-credssp/default.nix +++ b/pkgs/development/python-modules/requests-credssp/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, gssapi -, krb5 -, pyspnego -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + gssapi, + krb5, + pyspnego, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; passthru.optional-dependencies = { kerberos = [ @@ -42,9 +41,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "requests_credssp" - ]; + pythonImportsCheck = [ "requests_credssp" ]; meta = with lib; { description = "HTTPS CredSSP authentication with the requests library"; diff --git a/pkgs/development/python-modules/requests-download/default.nix b/pkgs/development/python-modules/requests-download/default.nix index 8a09dabbaf13..63390f71e1fd 100644 --- a/pkgs/development/python-modules/requests-download/default.nix +++ b/pkgs/development/python-modules/requests-download/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/requests-file/default.nix b/pkgs/development/python-modules/requests-file/default.nix index 294c3c76d872..2c57e46c5696 100644 --- a/pkgs/development/python-modules/requests-file/default.nix +++ b/pkgs/development/python-modules/requests-file/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools -, setuptools-scm -, pytestCheckHook -, requests +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, + setuptools-scm, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "requests_file" - ]; + pythonImportsCheck = [ "requests_file" ]; meta = with lib; { description = "Transport adapter for fetching file:// URLs with the requests python library"; diff --git a/pkgs/development/python-modules/requests-futures/default.nix b/pkgs/development/python-modules/requests-futures/default.nix index b2f1aab46988..d166a0fe0fde 100644 --- a/pkgs/development/python-modules/requests-futures/default.nix +++ b/pkgs/development/python-modules/requests-futures/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { sha256 = "sha256-9VpO+ABw4oWOfR5zEj0r+uryW5P9NDhNjd8UjitnY3M="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests are disabled because they require being online doCheck = false; - pythonImportsCheck = [ - "requests_futures" - ]; + pythonImportsCheck = [ "requests_futures" ]; meta = with lib; { description = "Asynchronous Python HTTP Requests for Humans using Futures"; diff --git a/pkgs/development/python-modules/requests-gssapi/default.nix b/pkgs/development/python-modules/requests-gssapi/default.nix index 68cd61761854..b6b4e272dd5a 100644 --- a/pkgs/development/python-modules/requests-gssapi/default.nix +++ b/pkgs/development/python-modules/requests-gssapi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, gssapi -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + gssapi, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,22 +21,16 @@ buildPythonPackage rec { hash = "sha256-TVK/jCqiqCkTDvzKhcFJQ/3QqnVFWquYWyuHJhWcIMo="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ gssapi requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportCheck = [ - "requests_gssapi" - ]; + pythonImportCheck = [ "requests_gssapi" ]; meta = with lib; { description = "A GSSAPI authentication handler for python-requests"; diff --git a/pkgs/development/python-modules/requests-hawk/default.nix b/pkgs/development/python-modules/requests-hawk/default.nix index 0f4b040be582..1bc8862dd353 100644 --- a/pkgs/development/python-modules/requests-hawk/default.nix +++ b/pkgs/development/python-modules/requests-hawk/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, python, mohawk, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + python, + mohawk, + requests, +}: buildPythonPackage rec { pname = "requests-hawk"; @@ -10,7 +17,10 @@ buildPythonPackage rec { sha256 = "sha256-rZIFBCyUvbFa+qGbB4DhEHeyTZ5c/6wfs9JssIqkNbc="; }; - propagatedBuildInputs = [ mohawk requests ]; + propagatedBuildInputs = [ + mohawk + requests + ]; meta = with lib; { description = "Hawk authentication strategy for the requests python library."; diff --git a/pkgs/development/python-modules/requests-http-signature/default.nix b/pkgs/development/python-modules/requests-http-signature/default.nix index d0eda6329cda..541604089e25 100644 --- a/pkgs/development/python-modules/requests-http-signature/default.nix +++ b/pkgs/development/python-modules/requests-http-signature/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, http-message-signatures -, http-sfv -, requests -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + http-message-signatures, + http-sfv, + requests, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-sW2vYqT/nY27DvEKHdptc3dUpuqKmD7PLMs+Xp+cpeU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ http-message-signatures @@ -33,22 +32,16 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test/test.py" - ]; + pytestFlagsArray = [ "test/test.py" ]; disabledTests = [ # Test require network access "test_readme_example" ]; - pythonImportsCheck = [ - "requests_http_signature" - ]; + pythonImportsCheck = [ "requests_http_signature" ]; meta = with lib; { description = "Requests authentication module for HTTP Signature"; diff --git a/pkgs/development/python-modules/requests-kerberos/default.nix b/pkgs/development/python-modules/requests-kerberos/default.nix index 38a38f27dfa4..69c401ff3619 100644 --- a/pkgs/development/python-modules/requests-kerberos/default.nix +++ b/pkgs/development/python-modules/requests-kerberos/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pykerberos -, pyspnego -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pykerberos, + pyspnego, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { --replace "pyspnego[kerberos]" "pyspnego" ''; - pythonImportsCheck = [ - "requests_kerberos" - ]; + pythonImportsCheck = [ "requests_kerberos" ]; meta = with lib; { description = "An authentication handler for using Kerberos with Python Requests"; diff --git a/pkgs/development/python-modules/requests-mock/default.nix b/pkgs/development/python-modules/requests-mock/default.nix index 9273875ab688..d97df4e4b77b 100644 --- a/pkgs/development/python-modules/requests-mock/default.nix +++ b/pkgs/development/python-modules/requests-mock/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fixtures -, purl -, pytestCheckHook -, requests -, requests-futures -, setuptools -, setuptools-scm -, testtools +{ + lib, + buildPythonPackage, + fetchPypi, + fixtures, + purl, + pytestCheckHook, + requests, + requests-futures, + setuptools, + setuptools-scm, + testtools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { setuptools-scm ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; nativeCheckInputs = [ fixtures diff --git a/pkgs/development/python-modules/requests-ntlm/default.nix b/pkgs/development/python-modules/requests-ntlm/default.nix index 43a002e1e19e..347bf8cbee72 100644 --- a/pkgs/development/python-modules/requests-ntlm/default.nix +++ b/pkgs/development/python-modules/requests-ntlm/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, cryptography -, pyspnego -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + cryptography, + pyspnego, + requests, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-M8KF9QdOMXy90zjRma+kanwBEy5cER02vUFVNOm5Fqg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography diff --git a/pkgs/development/python-modules/requests-oauthlib/default.nix b/pkgs/development/python-modules/requests-oauthlib/default.nix index 150719c6fff6..46d63b3a8c27 100644 --- a/pkgs/development/python-modules/requests-oauthlib/default.nix +++ b/pkgs/development/python-modules/requests-oauthlib/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, oauthlib -, pytestCheckHook -, requests -, requests-mock +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + oauthlib, + pytestCheckHook, + requests, + requests-mock, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-db6sSkeIHuuU1epdatMe+IhWr/4jMrmq+1LGRSzPDXo="; }; - propagatedBuildInputs = [ oauthlib requests ]; + propagatedBuildInputs = [ + oauthlib + requests + ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/requests-pkcs12/default.nix b/pkgs/development/python-modules/requests-pkcs12/default.nix index 87f20922a712..f98c85a0b745 100644 --- a/pkgs/development/python-modules/requests-pkcs12/default.nix +++ b/pkgs/development/python-modules/requests-pkcs12/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyopenssl -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyopenssl, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "requests_pkcs12" - ]; + pythonImportsCheck = [ "requests_pkcs12" ]; meta = with lib; { description = "PKCS#12 support for the Python requests library"; diff --git a/pkgs/development/python-modules/requests-ratelimiter/default.nix b/pkgs/development/python-modules/requests-ratelimiter/default.nix index af5304341b28..11d85a560525 100644 --- a/pkgs/development/python-modules/requests-ratelimiter/default.nix +++ b/pkgs/development/python-modules/requests-ratelimiter/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyrate-limiter -, requests -, pytestCheckHook -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyrate-limiter, + requests, + pytestCheckHook, + requests-mock, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-ctCD+vlV90KCO7DdPUZJipBC/lz6NXx0gYuHHrs22IY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyrate-limiter diff --git a/pkgs/development/python-modules/requests-toolbelt/default.nix b/pkgs/development/python-modules/requests-toolbelt/default.nix index 0d4bf487d7bf..ae687d9645f8 100644 --- a/pkgs/development/python-modules/requests-toolbelt/default.nix +++ b/pkgs/development/python-modules/requests-toolbelt/default.nix @@ -1,11 +1,12 @@ -{ lib -, betamax -, buildPythonPackage -, fetchPypi -, pyopenssl -, pytestCheckHook -, requests -, trustme +{ + lib, + betamax, + buildPythonPackage, + fetchPypi, + pyopenssl, + pytestCheckHook, + requests, + trustme, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-doGgo9BHAStb3A7jfX+PB+vnarCMrsz8OSHOI8iNW8Y="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ betamax @@ -39,9 +38,7 @@ buildPythonPackage rec { "test_request_with_base" ]; - pythonImportsCheck = [ - "requests_toolbelt" - ]; + pythonImportsCheck = [ "requests_toolbelt" ]; meta = with lib; { description = "Toolbelt of useful classes and functions to be used with requests"; diff --git a/pkgs/development/python-modules/requests-unixsocket/default.nix b/pkgs/development/python-modules/requests-unixsocket/default.nix index 58ecce446c21..fd39f2c23cd4 100644 --- a/pkgs/development/python-modules/requests-unixsocket/default.nix +++ b/pkgs/development/python-modules/requests-unixsocket/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pbr -, requests -, pytestCheckHook -, waitress +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pbr, + requests, + pytestCheckHook, + waitress, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook waitress ]; - pythonImportsCheck = [ - "requests_unixsocket" - ]; + pythonImportsCheck = [ "requests_unixsocket" ]; meta = with lib; { description = "Use requests to talk HTTP via a UNIX domain socket"; diff --git a/pkgs/development/python-modules/requests-wsgi-adapter/default.nix b/pkgs/development/python-modules/requests-wsgi-adapter/default.nix index 906bf06f8eaf..8cdec28f2abb 100644 --- a/pkgs/development/python-modules/requests-wsgi-adapter/default.nix +++ b/pkgs/development/python-modules/requests-wsgi-adapter/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-WncJ6Qq/SdGB9sMqo3eUU39yXeD23UI2K8jIyQgSyHg="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # tests are not contained in pypi-release doCheck = false; diff --git a/pkgs/development/python-modules/requests/default.nix b/pkgs/development/python-modules/requests/default.nix index 33749a992471..3c4be1f8c1f6 100644 --- a/pkgs/development/python-modules/requests/default.nix +++ b/pkgs/development/python-modules/requests/default.nix @@ -1,19 +1,20 @@ -{ lib -, stdenv -, brotlicffi -, buildPythonPackage -, certifi -, chardet -, charset-normalizer -, fetchPypi -, fetchpatch -, idna -, pysocks -, pytest-mock -, pytest-xdist -, pytestCheckHook -, pythonOlder -, urllib3 +{ + lib, + stdenv, + brotlicffi, + buildPythonPackage, + certifi, + chardet, + charset-normalizer, + fetchPypi, + fetchpatch, + idna, + pysocks, + pytest-mock, + pytest-xdist, + pytestCheckHook, + pythonOlder, + urllib3, }: buildPythonPackage rec { @@ -39,50 +40,45 @@ buildPythonPackage rec { ]; optional-dependencies = { - security = []; - socks = [ - pysocks - ]; - use_chardet_on_py3 = [ - chardet - ]; + security = [ ]; + socks = [ pysocks ]; + use_chardet_on_py3 = [ chardet ]; }; nativeCheckInputs = [ pytest-mock pytest-xdist pytestCheckHook - ] - ++ optional-dependencies.socks; + ] ++ optional-dependencies.socks; - disabledTests = [ - # Disable tests that require network access and use httpbin - "requests.api.request" - "requests.models.PreparedRequest" - "requests.sessions.Session" - "requests" - "test_redirecting_to_bad_url" - "test_requests_are_updated_each_time" - "test_should_bypass_proxies_pass_only_hostname" - "test_urllib3_pool_connection_closed" - "test_urllib3_retries" - "test_use_proxy_from_environment" - "TestRequests" - "TestTimeout" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # Fatal Python error: Aborted - "test_basic_response" - "test_text_response" - ]; + disabledTests = + [ + # Disable tests that require network access and use httpbin + "requests.api.request" + "requests.models.PreparedRequest" + "requests.sessions.Session" + "requests" + "test_redirecting_to_bad_url" + "test_requests_are_updated_each_time" + "test_should_bypass_proxies_pass_only_hostname" + "test_urllib3_pool_connection_closed" + "test_urllib3_retries" + "test_use_proxy_from_environment" + "TestRequests" + "TestTimeout" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # Fatal Python error: Aborted + "test_basic_response" + "test_text_response" + ]; disabledTestPaths = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ # Fatal Python error: Aborted "tests/test_lowlevel.py" ]; - pythonImportsCheck = [ - "requests" - ]; + pythonImportsCheck = [ "requests" ]; meta = with lib; { description = "HTTP library for Python"; diff --git a/pkgs/development/python-modules/requestsexceptions/default.nix b/pkgs/development/python-modules/requestsexceptions/default.nix index 5530c2ecd48c..8a5580baa6c9 100644 --- a/pkgs/development/python-modules/requestsexceptions/default.nix +++ b/pkgs/development/python-modules/requestsexceptions/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pbr }: +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, +}: buildPythonPackage rec { pname = "requestsexceptions"; diff --git a/pkgs/development/python-modules/requirements-detector/default.nix b/pkgs/development/python-modules/requirements-detector/default.nix index 164500d3e218..4106b7cbf01f 100644 --- a/pkgs/development/python-modules/requirements-detector/default.nix +++ b/pkgs/development/python-modules/requirements-detector/default.nix @@ -1,13 +1,14 @@ -{ lib -, astroid -, buildPythonPackage -, fetchFromGitHub -, packaging -, poetry-core -, semver -, pytestCheckHook -, pythonOlder -, toml +{ + lib, + astroid, + buildPythonPackage, + fetchFromGitHub, + packaging, + poetry-core, + semver, + pytestCheckHook, + pythonOlder, + toml, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-qmrHFQRypBJOI1N6W/Dtc5ss9JGqoPhFlbqrLHcb6vc="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ astroid @@ -35,13 +34,9 @@ buildPythonPackage rec { semver ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "requirements_detector" - ]; + pythonImportsCheck = [ "requirements_detector" ]; meta = with lib; { description = "Python tool to find and list requirements of a Python project"; diff --git a/pkgs/development/python-modules/reretry/default.nix b/pkgs/development/python-modules/reretry/default.nix index e5db5b50cbaa..a4ec197c350c 100644 --- a/pkgs/development/python-modules/reretry/default.nix +++ b/pkgs/development/python-modules/reretry/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "reretry"; diff --git a/pkgs/development/python-modules/rerun-sdk/default.nix b/pkgs/development/python-modules/rerun-sdk/default.nix index f6476b1675bd..4c8ac5c3933f 100644 --- a/pkgs/development/python-modules/rerun-sdk/default.nix +++ b/pkgs/development/python-modules/rerun-sdk/default.nix @@ -29,12 +29,14 @@ buildPythonPackage { rustPlatform.maturinBuildHook ]; - buildInputs = [ - libiconv # No-op on Linux, necessary on Darwin. - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.apple_sdk.frameworks.AppKit - darwin.apple_sdk.frameworks.CoreServices - ]; + buildInputs = + [ + libiconv # No-op on Linux, necessary on Darwin. + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + darwin.apple_sdk.frameworks.AppKit + darwin.apple_sdk.frameworks.CoreServices + ]; propagatedBuildInputs = [ attrs @@ -73,7 +75,12 @@ buildPythonPackage { meta = { description = "Python bindings for `rerun` (an interactive visualization tool for stream data)"; - inherit (rerun.meta) changelog homepage license maintainers; + inherit (rerun.meta) + changelog + homepage + license + maintainers + ; mainProgram = "rerun"; }; } diff --git a/pkgs/development/python-modules/resampy/default.nix b/pkgs/development/python-modules/resampy/default.nix index 84ded2238993..9250bf55931e 100644 --- a/pkgs/development/python-modules/resampy/default.nix +++ b/pkgs/development/python-modules/resampy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cython -, fetchFromGitHub -, numba -, numpy -, pytestCheckHook -, pythonOlder -, scipy +{ + lib, + buildPythonPackage, + cython, + fetchFromGitHub, + numba, + numpy, + pytestCheckHook, + pythonOlder, + scipy, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { --replace " --cov-report term-missing --cov resampy --cov-report=xml" "" ''; - pythonImportsCheck = [ - "resampy" - ]; + pythonImportsCheck = [ "resampy" ]; meta = with lib; { description = "Efficient signal resampling"; diff --git a/pkgs/development/python-modules/resize-right/default.nix b/pkgs/development/python-modules/resize-right/default.nix index 99b42faf3995..b7541e0c6a65 100644 --- a/pkgs/development/python-modules/resize-right/default.nix +++ b/pkgs/development/python-modules/resize-right/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# dependencies -, numpy -, torch + # dependencies + numpy, + torch, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { torch ]; - pythonImportsCheck = [ - "resize_right" - ]; + pythonImportsCheck = [ "resize_right" ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/resolvelib/default.nix b/pkgs/development/python-modules/resolvelib/default.nix index d6c479fc4adf..15c05ed6da6a 100644 --- a/pkgs/development/python-modules/resolvelib/default.nix +++ b/pkgs/development/python-modules/resolvelib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, commentjson -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + commentjson, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { hash = "sha256-oxyPn3aFPOyx/2aP7Eg2ThtPbyzrFT1JzWqy6GqNbzM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ commentjson pytestCheckHook ]; - pythonImportsCheck = [ - "resolvelib" - ]; + pythonImportsCheck = [ "resolvelib" ]; meta = with lib; { description = "Resolve abstract dependencies into concrete ones"; diff --git a/pkgs/development/python-modules/responses/default.nix b/pkgs/development/python-modules/responses/default.nix index 5a9960cbac59..615234474a6a 100644 --- a/pkgs/development/python-modules/responses/default.nix +++ b/pkgs/development/python-modules/responses/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, pytest-asyncio -, pytest-httpserver -, pytestCheckHook -, pythonOlder -, pyyaml -, requests -, setuptools -, tomli -, tomli-w -, types-pyyaml -, types-toml -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + pytest-asyncio, + pytest-httpserver, + pytestCheckHook, + pythonOlder, + pyyaml, + requests, + setuptools, + tomli, + tomli-w, + types-pyyaml, + types-toml, + urllib3, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyyaml @@ -57,13 +56,9 @@ buildPythonPackage rec { pytest-httpserver pytestCheckHook tomli-w - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - pythonImportsCheck = [ - "responses" - ]; + pythonImportsCheck = [ "responses" ]; meta = with lib; { description = "Python module for mocking out the requests Python library"; diff --git a/pkgs/development/python-modules/respx/default.nix b/pkgs/development/python-modules/respx/default.nix index 9d0bf307ff23..1dae80096035 100644 --- a/pkgs/development/python-modules/respx/default.nix +++ b/pkgs/development/python-modules/respx/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, httpcore -, httpx -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, starlette -, trio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + httpcore, + httpx, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + starlette, + trio, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-OiBKNK8V9WNQDe29Q5+E/jjBWD0qFcYUzhYUWA+7oFc="; }; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; nativeCheckInputs = [ httpcore @@ -43,13 +42,9 @@ buildPythonPackage rec { sed -i "/--cov/d" setup.cfg ''; - disabledTests = [ - "test_pass_through" - ]; + disabledTests = [ "test_pass_through" ]; - pythonImportsCheck = [ - "respx" - ]; + pythonImportsCheck = [ "respx" ]; meta = with lib; { description = "Python library for mocking HTTPX"; diff --git a/pkgs/development/python-modules/restfly/default.nix b/pkgs/development/python-modules/restfly/default.nix index 8ebc4ee2b880..e7cb1dcbf694 100644 --- a/pkgs/development/python-modules/restfly/default.nix +++ b/pkgs/development/python-modules/restfly/default.nix @@ -1,14 +1,15 @@ -{ lib -, arrow -, buildPythonPackage -, fetchFromGitHub -, pytest-datafiles -, pytest-vcr -, pytestCheckHook -, python-box -, pythonOlder -, responses -, requests +{ + lib, + arrow, + buildPythonPackage, + fetchFromGitHub, + pytest-datafiles, + pytest-vcr, + pytestCheckHook, + python-box, + pythonOlder, + responses, + requests, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { "test_session_ssl_error" ]; - pythonImportsCheck = [ - "restfly" - ]; + pythonImportsCheck = [ "restfly" ]; meta = with lib; { description = "Python RESTfly API Library Framework"; diff --git a/pkgs/development/python-modules/restrictedpython/default.nix b/pkgs/development/python-modules/restrictedpython/default.nix index 64dbb3016829..f7d419b478e9 100644 --- a/pkgs/development/python-modules/restrictedpython/default.nix +++ b/pkgs/development/python-modules/restrictedpython/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest-mock -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytest-mock, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,22 +22,16 @@ buildPythonPackage rec { hash = "sha256-h1rrUcE51440zvhgXcZTCbRJFoBg3QhVGh/p7bR8uaU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook pytest-mock ]; - disabledTests = lib.optionals (pythonAtLeast "3.11") [ - "test_compile__compile_restricted_exec__5" - ]; + disabledTests = lib.optionals (pythonAtLeast "3.11") [ "test_compile__compile_restricted_exec__5" ]; - pythonImportsCheck = [ - "RestrictedPython" - ]; + pythonImportsCheck = [ "RestrictedPython" ]; meta = with lib; { description = "Restricted execution environment for Python to run untrusted code"; diff --git a/pkgs/development/python-modules/restructuredtext-lint/default.nix b/pkgs/development/python-modules/restructuredtext-lint/default.nix index 3b7f4dfd57f1..29249205de92 100644 --- a/pkgs/development/python-modules/restructuredtext-lint/default.nix +++ b/pkgs/development/python-modules/restructuredtext-lint/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, docutils -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + docutils, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,23 +18,15 @@ buildPythonPackage rec { hash = "sha256-GyNcDJIjQatsUwOQiS656S+QubdQRgY+BHys+w8FDEU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ docutils ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "restructuredtext_lint/test/test.py" - ]; + pytestFlagsArray = [ "restructuredtext_lint/test/test.py" ]; - pythonImportsCheck = [ - "restructuredtext_lint" - ]; + pythonImportsCheck = [ "restructuredtext_lint" ]; meta = { description = "reStructuredText linter"; diff --git a/pkgs/development/python-modules/restview/default.nix b/pkgs/development/python-modules/restview/default.nix index e5694e92137d..485210d20b3f 100644 --- a/pkgs/development/python-modules/restview/default.nix +++ b/pkgs/development/python-modules/restview/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, docutils -, readme-renderer -, packaging -, pygments -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + docutils, + readme-renderer, + packaging, + pygments, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "restview" - ]; + pythonImportsCheck = [ "restview" ]; disabledTests = [ # Tests are comparing output diff --git a/pkgs/development/python-modules/result/default.nix b/pkgs/development/python-modules/result/default.nix index 111c8dad2a30..4278bcf3b391 100644 --- a/pkgs/development/python-modules/result/default.nix +++ b/pkgs/development/python-modules/result/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-asyncio -, nix-update-script +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-asyncio, + nix-update-script, }: buildPythonPackage rec { @@ -33,7 +34,7 @@ buildPythonPackage rec { pytest-asyncio ]; - passthru.updateScript = nix-update-script {}; + passthru.updateScript = nix-update-script { }; pythonImportsCheck = [ "result" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/rethinkdb/default.nix b/pkgs/development/python-modules/rethinkdb/default.nix index 35db8bd3dd3d..2a3f6c1db08a 100644 --- a/pkgs/development/python-modules/rethinkdb/default.nix +++ b/pkgs/development/python-modules/rethinkdb/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, looseversion -, six -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + looseversion, + six, + setuptools, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-NjTgPuE91jf9cZa4BHS/RMZNProd0GnqkrlJJnAqYL0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ looseversion @@ -34,5 +33,4 @@ buildPythonPackage rec { homepage = "https://github.com/RethinkDB/rethinkdb-python"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/retry-decorator/default.nix b/pkgs/development/python-modules/retry-decorator/default.nix index a2c984dfe412..7d63966c08a0 100644 --- a/pkgs/development/python-modules/retry-decorator/default.nix +++ b/pkgs/development/python-modules/retry-decorator/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-0dZq4YbPcH4ItyMnpF7B20YYLtzwniJClBK9gRndU1M="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "retry_decorator" - ]; + pythonImportsCheck = [ "retry_decorator" ]; meta = with lib; { description = "Decorator for retrying when exceptions occur"; diff --git a/pkgs/development/python-modules/retry/default.nix b/pkgs/development/python-modules/retry/default.nix index 993c7270b807..c4df5b909e44 100644 --- a/pkgs/development/python-modules/retry/default.nix +++ b/pkgs/development/python-modules/retry/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, decorator -, py -, mock -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + decorator, + py, + mock, + pytest, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4"; }; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; propagatedBuildInputs = [ decorator diff --git a/pkgs/development/python-modules/retrying/default.nix b/pkgs/development/python-modules/retrying/default.nix index 36e76f6bc6c7..320603a10b81 100644 --- a/pkgs/development/python-modules/retrying/default.nix +++ b/pkgs/development/python-modules/retrying/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-NF2oxXZb2YKx0ZFd65EC/T0fetFr2EqXALhfZNJOjz4="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # doesn't ship tests in tarball doCheck = false; - pythonImportsCheck = [ - "retrying" - ]; + pythonImportsCheck = [ "retrying" ]; meta = with lib; { description = "General-purpose retrying library"; diff --git a/pkgs/development/python-modules/returns/default.nix b/pkgs/development/python-modules/returns/default.nix index 2e0275bd8040..a468f377387f 100644 --- a/pkgs/development/python-modules/returns/default.nix +++ b/pkgs/development/python-modules/returns/default.nix @@ -1,18 +1,19 @@ -{ lib -, anyio -, buildPythonPackage -, curio -, fetchFromGitHub -, httpx -, hypothesis -, poetry-core -, pytest-aio -, pytest-subtests -, pytestCheckHook -, pythonOlder -, setuptools -, trio -, typing-extensions +{ + lib, + anyio, + buildPythonPackage, + curio, + fetchFromGitHub, + httpx, + hypothesis, + poetry-core, + pytest-aio, + pytest-subtests, + pytestCheckHook, + pythonOlder, + setuptools, + trio, + typing-extensions, }: buildPythonPackage rec { @@ -35,13 +36,9 @@ buildPythonPackage rec { -e '/--mypy.*/d' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; nativeCheckInputs = [ anyio @@ -59,13 +56,9 @@ buildPythonPackage rec { rm -rf returns/contrib/mypy ''; - pythonImportsCheck = [ - "returns" - ]; + pythonImportsCheck = [ "returns" ]; - pytestFlagsArray = [ - "--ignore=typesafety" - ]; + pytestFlagsArray = [ "--ignore=typesafety" ]; meta = with lib; { description = "Make your functions return something meaningful, typed, and safe!"; diff --git a/pkgs/development/python-modules/rfc3339-validator/default.nix b/pkgs/development/python-modules/rfc3339-validator/default.nix index 9de6919692a4..6fcc9297e6a3 100644 --- a/pkgs/development/python-modules/rfc3339-validator/default.nix +++ b/pkgs/development/python-modules/rfc3339-validator/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, hypothesis -, six -, strict-rfc3339 +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + hypothesis, + six, + strict-rfc3339, }: buildPythonPackage rec { @@ -20,7 +21,11 @@ buildPythonPackage rec { propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ pytestCheckHook hypothesis strict-rfc3339 ]; + nativeCheckInputs = [ + pytestCheckHook + hypothesis + strict-rfc3339 + ]; pythonImportsCheck = [ "rfc3339_validator" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/rfc3339/default.nix b/pkgs/development/python-modules/rfc3339/default.nix index 9c5faa38131c..f95888578ac5 100644 --- a/pkgs/development/python-modules/rfc3339/default.nix +++ b/pkgs/development/python-modules/rfc3339/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rfc3986-validator/default.nix b/pkgs/development/python-modules/rfc3986-validator/default.nix index 823eb16aef1a..0f681dba2413 100644 --- a/pkgs/development/python-modules/rfc3986-validator/default.nix +++ b/pkgs/development/python-modules/rfc3986-validator/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, rfc3987 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + rfc3987, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rfc3986/default.nix b/pkgs/development/python-modules/rfc3986/default.nix index d2b4bf57a062..8fbf10e332a9 100644 --- a/pkgs/development/python-modules/rfc3986/default.nix +++ b/pkgs/development/python-modules/rfc3986/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, idna -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + idna, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-l6rPnb1L/YKbqtbmMJ+mVzqvG+P2+nNcirBeRs7LJhw="; }; - propagatedBuildInputs = [ - idna - ]; + propagatedBuildInputs = [ idna ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rfc3986" - ]; + pythonImportsCheck = [ "rfc3986" ]; meta = with lib; { description = "Validating URI References per RFC 3986"; diff --git a/pkgs/development/python-modules/rfc3987/default.nix b/pkgs/development/python-modules/rfc3987/default.nix index 51c6d04ea6dc..25c77a68e95e 100644 --- a/pkgs/development/python-modules/rfc3987/default.nix +++ b/pkgs/development/python-modules/rfc3987/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "rfc3987"; diff --git a/pkgs/development/python-modules/rfc6555/default.nix b/pkgs/development/python-modules/rfc6555/default.nix index a3986a490feb..063f6146a192 100644 --- a/pkgs/development/python-modules/rfc6555/default.nix +++ b/pkgs/development/python-modules/rfc6555/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-Lmwgusc4EQlF0GHmMTUxWzUCjBk19cvurNwbOnT+1jM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Disabling tests that require a functional DNS IPv{4,6} stack to pass "test_create_connection_has_proper_timeout" ]; - pythonImportsCheck = [ - "rfc6555" - ]; + pythonImportsCheck = [ "rfc6555" ]; meta = with lib; { description = "Python implementation of the Happy Eyeballs Algorithm"; diff --git a/pkgs/development/python-modules/rfc7464/default.nix b/pkgs/development/python-modules/rfc7464/default.nix index e65c9ec3ab2a..e6c3c85bfb54 100644 --- a/pkgs/development/python-modules/rfc7464/default.nix +++ b/pkgs/development/python-modules/rfc7464/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, lib }: +{ + buildPythonPackage, + fetchPypi, + lib, +}: buildPythonPackage rec { pname = "rfc7464"; diff --git a/pkgs/development/python-modules/rfcat/default.nix b/pkgs/development/python-modules/rfcat/default.nix index 9ee83c5fa728..4112e826f7e4 100644 --- a/pkgs/development/python-modules/rfcat/default.nix +++ b/pkgs/development/python-modules/rfcat/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, future -, ipython -, numpy -, pyserial -, pyusb -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + future, + ipython, + numpy, + pyserial, + pyusb, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -38,13 +39,9 @@ buildPythonPackage rec { cp etc/udev/rules.d/20-rfcat.rules $out/etc/udev/rules.d ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rflib" - ]; + pythonImportsCheck = [ "rflib" ]; meta = with lib; { description = "Swiss Army knife of sub-GHz ISM band radio"; diff --git a/pkgs/development/python-modules/rflink/default.nix b/pkgs/development/python-modules/rflink/default.nix index 354c66c41adc..e5959e3a9b86 100644 --- a/pkgs/development/python-modules/rflink/default.nix +++ b/pkgs/development/python-modules/rflink/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, async-timeout -, docopt -, pyserial -, pyserial-asyncio -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + async-timeout, + docopt, + pyserial, + pyserial-asyncio, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,18 +33,14 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "version=version_from_git()" "version='${version}'" ''; - pythonImportsCheck = [ - "rflink.protocol" - ]; + pythonImportsCheck = [ "rflink.protocol" ]; meta = with lib; { description = "Library and CLI tools for interacting with RFlink 433MHz transceiver"; diff --git a/pkgs/development/python-modules/rich-argparse-plus/default.nix b/pkgs/development/python-modules/rich-argparse-plus/default.nix index e152ce267f4c..159190d45e1d 100644 --- a/pkgs/development/python-modules/rich-argparse-plus/default.nix +++ b/pkgs/development/python-modules/rich-argparse-plus/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, rich -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + rich, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-oF2wuvyLYwObVJ4fhJl9b/sdfmQ2ahgKkfd9ZwObfPw="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - rich - ]; + propagatedBuildInputs = [ rich ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rich_argparse_plus" - ]; + pythonImportsCheck = [ "rich_argparse_plus" ]; disabledTests = [ # Tests are comparing CLI output diff --git a/pkgs/development/python-modules/rich-argparse/default.nix b/pkgs/development/python-modules/rich-argparse/default.nix index 7dc2878d391d..459c5db23f99 100644 --- a/pkgs/development/python-modules/rich-argparse/default.nix +++ b/pkgs/development/python-modules/rich-argparse/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, rich -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + rich, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { rich ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rich_argparse" - ]; + pythonImportsCheck = [ "rich_argparse" ]; meta = with lib; { description = "Format argparse help output using rich."; diff --git a/pkgs/development/python-modules/rich-pixels/default.nix b/pkgs/development/python-modules/rich-pixels/default.nix index 7b77e59b6c9f..470d450b0904 100644 --- a/pkgs/development/python-modules/rich-pixels/default.nix +++ b/pkgs/development/python-modules/rich-pixels/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytestCheckHook -, syrupy -, pillow -, rich -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytestCheckHook, + syrupy, + pillow, + rich, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -35,22 +36,16 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - checkInputs = [ - syrupy - ]; + checkInputs = [ syrupy ]; propagatedBuildInputs = [ pillow rich ]; - pythonRelaxDeps = [ - "pillow" - ]; + pythonRelaxDeps = [ "pillow" ]; pythonImportsCheck = [ "rich_pixels" ]; diff --git a/pkgs/development/python-modules/rich/default.nix b/pkgs/development/python-modules/rich/default.nix index 518be3f4e2fe..3d14a05bfd50 100644 --- a/pkgs/development/python-modules/rich/default.nix +++ b/pkgs/development/python-modules/rich/default.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, markdown-it-py -, pygments -, typing-extensions + # dependencies + markdown-it-py, + pygments, + typing-extensions, -# optional-dependencies -, ipywidgets + # optional-dependencies + ipywidgets, -# tests -, attrs -, pytestCheckHook -, setuptools + # tests + attrs, + pytestCheckHook, + setuptools, -# for passthru.tests -, enrich -, httpie -, rich-rst -, textual + # for passthru.tests + enrich, + httpie, + rich-rst, + textual, }: buildPythonPackage rec { @@ -40,21 +41,15 @@ buildPythonPackage rec { hash = "sha256-7LvmPrCpHfPEfJ1r8IFnQhYkBstvtIrWYhGwcchlc0s="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ markdown-it-py pygments - ] ++ lib.optionals (pythonOlder "3.9") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ typing-extensions ]; passthru.optional-dependencies = { - jupyter = [ - ipywidgets - ]; + jupyter = [ ipywidgets ]; }; nativeCheckInputs = [ @@ -77,12 +72,15 @@ buildPythonPackage rec { "test_syntax_highlight_ranges" ]; - pythonImportsCheck = [ - "rich" - ]; + pythonImportsCheck = [ "rich" ]; passthru.tests = { - inherit enrich httpie rich-rst textual; + inherit + enrich + httpie + rich-rst + textual + ; }; meta = with lib; { @@ -90,6 +88,9 @@ buildPythonPackage rec { homepage = "https://github.com/Textualize/rich"; changelog = "https://github.com/Textualize/rich/blob/v${version}/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ ris joelkoen ]; + maintainers = with maintainers; [ + ris + joelkoen + ]; }; } diff --git a/pkgs/development/python-modules/ripe-atlas-cousteau/default.nix b/pkgs/development/python-modules/ripe-atlas-cousteau/default.nix index b02f1f9a72f0..93a6308099c8 100644 --- a/pkgs/development/python-modules/ripe-atlas-cousteau/default.nix +++ b/pkgs/development/python-modules/ripe-atlas-cousteau/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jsonschema -, pytestCheckHook -, python-dateutil -, python-socketio -, pythonOlder -, requests -, websocket-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jsonschema, + pytestCheckHook, + python-dateutil, + python-socketio, + pythonOlder, + requests, + websocket-client, }: buildPythonPackage rec { @@ -15,7 +16,6 @@ buildPythonPackage rec { version = "2.0.0"; format = "setuptools"; - disabled = pythonOlder "3.6"; src = fetchFromGitHub { @@ -42,9 +42,7 @@ buildPythonPackage rec { jsonschema ]; - pythonImportsCheck = [ - "ripe.atlas.cousteau" - ]; + pythonImportsCheck = [ "ripe.atlas.cousteau" ]; meta = with lib; { description = "Python client library for RIPE ATLAS API"; diff --git a/pkgs/development/python-modules/ripe-atlas-sagan/default.nix b/pkgs/development/python-modules/ripe-atlas-sagan/default.nix index a9ed4bd3f52c..cbedf4f3cffc 100644 --- a/pkgs/development/python-modules/ripe-atlas-sagan/default.nix +++ b/pkgs/development/python-modules/ripe-atlas-sagan/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, ujson +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + ujson, }: buildPythonPackage rec { @@ -30,27 +31,19 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - fast = [ - ujson - ]; + fast = [ ujson ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/*.py" - ]; + pytestFlagsArray = [ "tests/*.py" ]; disabledTests = [ # This test fail for unknown reason, I suspect it to be flaky. "test_invalid_country_code" ]; - pythonImportsCheck = [ - "ripe.atlas.sagan" - ]; + pythonImportsCheck = [ "ripe.atlas.sagan" ]; meta = with lib; { description = "A parsing library for RIPE Atlas measurements results"; diff --git a/pkgs/development/python-modules/riprova/default.nix b/pkgs/development/python-modules/riprova/default.nix index cafe14e01bd9..98d70bcd939a 100644 --- a/pkgs/development/python-modules/riprova/default.nix +++ b/pkgs/development/python-modules/riprova/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: -buildPythonPackage rec{ +buildPythonPackage rec { pname = "riprova"; version = "0.3.1"; format = "setuptools"; diff --git a/pkgs/development/python-modules/ripser/default.nix b/pkgs/development/python-modules/ripser/default.nix index c71d9f0a03fd..136d40c0d919 100644 --- a/pkgs/development/python-modules/ripser/default.nix +++ b/pkgs/development/python-modules/ripser/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, numpy -, persim -, pytestCheckHook -, pythonOlder -, scikit-learn -, scipy +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + numpy, + persim, + pytestCheckHook, + pythonOlder, + scikit-learn, + scipy, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-J5ctOvGtmg/e2ls7fN59LR4AbHedC9gKk6f8jIDIoFI="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ numpy @@ -33,9 +32,7 @@ buildPythonPackage rec { persim ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # specifically needed for darwin @@ -44,9 +41,7 @@ buildPythonPackage rec { echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; - pythonImportsCheck = [ - "ripser" - ]; + pythonImportsCheck = [ "ripser" ]; meta = with lib; { description = "A Lean Persistent Homology Library for Python"; diff --git a/pkgs/development/python-modules/riscof/default.nix b/pkgs/development/python-modules/riscof/default.nix index eabaf0ded530..af2879b0e2e5 100644 --- a/pkgs/development/python-modules/riscof/default.nix +++ b/pkgs/development/python-modules/riscof/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, git -, jinja2 -, pythonOlder -, riscv-config -, riscv-isac +{ + lib, + buildPythonPackage, + fetchFromGitHub, + git, + jinja2, + pythonOlder, + riscv-config, + riscv-isac, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { jinja2 ]; - pythonImportsCheck = [ - "riscof" - ]; + pythonImportsCheck = [ "riscof" ]; # No unitests available doCheck = false; diff --git a/pkgs/development/python-modules/riscv-isac/default.nix b/pkgs/development/python-modules/riscv-isac/default.nix index 19a6eea71319..be15c5d53807 100644 --- a/pkgs/development/python-modules/riscv-isac/default.nix +++ b/pkgs/development/python-modules/riscv-isac/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, click -, colorlog -, gitpython -, pluggy -, pyelftools -, pytablewriter -, pytestCheckHook -, pyyaml -, ruamel-yaml -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + click, + colorlog, + gitpython, + pluggy, + pyelftools, + pytablewriter, + pytestCheckHook, + pyyaml, + ruamel-yaml, + pythonOlder, }: buildPythonPackage rec { @@ -44,13 +45,9 @@ buildPythonPackage rec { ruamel-yaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "riscv_isac" - ]; + pythonImportsCheck = [ "riscv_isac" ]; meta = with lib; { description = "An ISA coverage extraction tool"; diff --git a/pkgs/development/python-modules/rising/default.nix b/pkgs/development/python-modules/rising/default.nix index 5df3998f8015..85990fda4809 100644 --- a/pkgs/development/python-modules/rising/default.nix +++ b/pkgs/development/python-modules/rising/default.nix @@ -1,16 +1,17 @@ -{ stdenv -, lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytestCheckHook -, pythonRelaxDepsHook -, dill -, lightning-utilities -, numpy -, torch -, threadpoolctl -, tqdm +{ + stdenv, + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytestCheckHook, + pythonRelaxDepsHook, + dill, + lightning-utilities, + numpy, + torch, + threadpoolctl, + tqdm, }: buildPythonPackage rec { @@ -31,9 +32,16 @@ buildPythonPackage rec { pythonRelaxDeps = [ "lightning-utilities" ]; propagatedBuildInputs = [ - lightning-utilities numpy torch threadpoolctl tqdm + lightning-utilities + numpy + torch + threadpoolctl + tqdm + ]; + nativeCheckInputs = [ + dill + pytestCheckHook ]; - nativeCheckInputs = [ dill pytestCheckHook ]; disabledTests = lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ # RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly: "test_progressive_resize_integration" diff --git a/pkgs/development/python-modules/ritassist/default.nix b/pkgs/development/python-modules/ritassist/default.nix index a23bb3df5dee..8a3691b307c4 100644 --- a/pkgs/development/python-modules/ritassist/default.nix +++ b/pkgs/development/python-modules/ritassist/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, ciso8601 -, fetchPypi -, geopy -, pythonOlder -, requests -, sseclient +{ + lib, + buildPythonPackage, + ciso8601, + fetchPypi, + geopy, + pythonOlder, + requests, + sseclient, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "ritassist" - ]; + pythonImportsCheck = [ "ritassist" ]; meta = with lib; { description = "Python client to access RitAssist and FleetGO API"; diff --git a/pkgs/development/python-modules/rjpl/default.nix b/pkgs/development/python-modules/rjpl/default.nix index 8d5cfbc92aae..439d207aa58d 100644 --- a/pkgs/development/python-modules/rjpl/default.nix +++ b/pkgs/development/python-modules/rjpl/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, requests -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + requests, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-GLNIpZuM3yuCnPyjBa8KjdaL5cFK8InluuY+LTCrimc="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "rjpl" - ]; + pythonImportsCheck = [ "rjpl" ]; meta = with lib; { description = "Library for interacting with the Rejseplanen API"; diff --git a/pkgs/development/python-modules/rjsmin/default.nix b/pkgs/development/python-modules/rjsmin/default.nix index f2a7a7874e6f..cdfeebb49169 100644 --- a/pkgs/development/python-modules/rjsmin/default.nix +++ b/pkgs/development/python-modules/rjsmin/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { # tests auto-discovery doCheck = false; - pythonImportsCheck = [ - "rjsmin" - ]; + pythonImportsCheck = [ "rjsmin" ]; meta = with lib; { description = "Module to minify Javascript"; diff --git a/pkgs/development/python-modules/rki-covid-parser/default.nix b/pkgs/development/python-modules/rki-covid-parser/default.nix index 4a9263f389c2..f7e91699b9b2 100644 --- a/pkgs/development/python-modules/rki-covid-parser/default.nix +++ b/pkgs/development/python-modules/rki-covid-parser/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-e0MJjE4zgBPL+vt9EkgsdGrgqUyKK/1S9ZFxy56PUjc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ aioresponses @@ -43,9 +40,7 @@ buildPythonPackage rec { "tests/test_endpoint_availibility.py" ]; - pythonImportsCheck = [ - "rki_covid_parser" - ]; + pythonImportsCheck = [ "rki_covid_parser" ]; meta = with lib; { description = "Python module for working with data from the Robert-Koch Institut"; diff --git a/pkgs/development/python-modules/rkm-codes/default.nix b/pkgs/development/python-modules/rkm-codes/default.nix index 0a8869052d60..9fa267fa4b7d 100644 --- a/pkgs/development/python-modules/rkm-codes/default.nix +++ b/pkgs/development/python-modules/rkm-codes/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + setuptools, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-CkLLZuWcNL8sqAupc7lHXu0DXUXrX3qwd1g/ekyHdw4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; # this has a circular dependency on quantiphy preBuild = '' diff --git a/pkgs/development/python-modules/rlax/default.nix b/pkgs/development/python-modules/rlax/default.nix index ceb8e9758619..977db6b748ec 100644 --- a/pkgs/development/python-modules/rlax/default.nix +++ b/pkgs/development/python-modules/rlax/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, absl-py -, chex -, distrax -, dm-env -, jax -, jaxlib -, numpy -, tensorflow-probability -, dm-haiku -, optax -, pytest-xdist -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + absl-py, + chex, + distrax, + dm-env, + jax, + jaxlib, + numpy, + tensorflow-probability, + dm-haiku, + optax, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,7 +30,8 @@ buildPythonPackage rec { }; patches = [ - (fetchpatch { # Follow chex API change (https://github.com/google-deepmind/chex/pull/52) + (fetchpatch { + # Follow chex API change (https://github.com/google-deepmind/chex/pull/52) name = "replace-deprecated-chex-assertions"; url = "https://github.com/google-deepmind/rlax/commit/30e7913a1102667137654d6e652a6c4b9e9ba1f4.patch"; hash = "sha256-OPnuTKEtwZ28hzR1660v3DcktxTYjhR1xYvFbQvOhgs="; @@ -54,9 +56,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "rlax" - ]; + pythonImportsCheck = [ "rlax" ]; disabledTests = [ # RuntimeErrors diff --git a/pkgs/development/python-modules/rlcard/default.nix b/pkgs/development/python-modules/rlcard/default.nix index 5477a50ba291..e80a46e301a0 100644 --- a/pkgs/development/python-modules/rlcard/default.nix +++ b/pkgs/development/python-modules/rlcard/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, numpy -, pip -, termcolor -, pytestCheckHook -, torch -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + numpy, + pip, + termcolor, + pytestCheckHook, + torch, + pythonAtLeast, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { termcolor ]; - pythonImportsCheck = [ - "rlcard" - ]; + pythonImportsCheck = [ "rlcard" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/rlp/default.nix b/pkgs/development/python-modules/rlp/default.nix index 8aeee9d0dd9c..f04ecac4c4b9 100644 --- a/pkgs/development/python-modules/rlp/default.nix +++ b/pkgs/development/python-modules/rlp/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchFromGitHub -, setuptools -, buildPythonPackage -, eth-utils -, hypothesis -, pytestCheckHook +{ + lib, + fetchFromGitHub, + setuptools, + buildPythonPackage, + eth-utils, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,11 +20,9 @@ buildPythonPackage rec { hash = "sha256-cRp+ZOPYs9kcqMKGaiYMOFBY+aPCyFqu+1/5wloLwqU="; }; - build-system = [ setuptools]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - eth-utils - ]; + propagatedBuildInputs = [ eth-utils ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/rmcl/default.nix b/pkgs/development/python-modules/rmcl/default.nix index 001992f539eb..eebfe1c329f8 100644 --- a/pkgs/development/python-modules/rmcl/default.nix +++ b/pkgs/development/python-modules/rmcl/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core -, asks -, trio -, xdg +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + poetry-core, + asks, + trio, + xdg, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace '= "^' '= ">=' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ asks diff --git a/pkgs/development/python-modules/rmrl/default.nix b/pkgs/development/python-modules/rmrl/default.nix index 3b93126aa73c..f07165c23c18 100644 --- a/pkgs/development/python-modules/rmrl/default.nix +++ b/pkgs/development/python-modules/rmrl/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pythonRelaxDepsHook -, pdfrw -, reportlab -, rmscene -, setuptools -, svglib -, xdg +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pythonRelaxDepsHook, + pdfrw, + reportlab, + rmscene, + setuptools, + svglib, + xdg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rmscene/default.nix b/pkgs/development/python-modules/rmscene/default.nix index a7eb4d2c632c..e402463eca6b 100644 --- a/pkgs/development/python-modules/rmscene/default.nix +++ b/pkgs/development/python-modules/rmscene/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, pythonRelaxDepsHook -, fetchFromGitHub -, poetry-core -, packaging -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + pythonRelaxDepsHook, + fetchFromGitHub, + poetry-core, + packaging, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "packaging" - ]; + pythonRelaxDeps = [ "packaging" ]; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; pythonImportsCheck = [ "rmscene" ]; diff --git a/pkgs/development/python-modules/rmsd/default.nix b/pkgs/development/python-modules/rmsd/default.nix index caa13ff5299f..c60fcf298f08 100644 --- a/pkgs/development/python-modules/rmsd/default.nix +++ b/pkgs/development/python-modules/rmsd/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, scipy +{ + buildPythonPackage, + lib, + fetchPypi, + scipy, }: buildPythonPackage rec { @@ -24,6 +25,9 @@ buildPythonPackage rec { homepage = "https://github.com/charnley/rmsd"; license = licenses.bsd2; platforms = platforms.linux; - maintainers = with maintainers; [ sheepforce markuskowa ]; + maintainers = with maintainers; [ + sheepforce + markuskowa + ]; }; } diff --git a/pkgs/development/python-modules/rnc2rng/default.nix b/pkgs/development/python-modules/rnc2rng/default.nix index 90bfc37266f8..bc4147153356 100644 --- a/pkgs/development/python-modules/rnc2rng/default.nix +++ b/pkgs/development/python-modules/rnc2rng/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, rply +{ + lib, + buildPythonPackage, + fetchPypi, + python, + rply, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rnginline/default.nix b/pkgs/development/python-modules/rnginline/default.nix index 7505cfd7346a..9346594b28b8 100644 --- a/pkgs/development/python-modules/rnginline/default.nix +++ b/pkgs/development/python-modules/rnginline/default.nix @@ -1,15 +1,16 @@ -{ lib -, fetchPypi -, buildPythonPackage -, poetry-core -, pythonRelaxDepsHook -, lxml -, docopt-ng -, typing-extensions -, importlib-metadata -, importlib-resources -, pytestCheckHook -, mock +{ + lib, + fetchPypi, + buildPythonPackage, + poetry-core, + pythonRelaxDepsHook, + lxml, + docopt-ng, + typing-extensions, + importlib-metadata, + importlib-resources, + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { "lxml" ]; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ docopt-ng diff --git a/pkgs/development/python-modules/roadrecon/default.nix b/pkgs/development/python-modules/roadrecon/default.nix index 0f1f412919b2..9c4b5b7da1c9 100644 --- a/pkgs/development/python-modules/roadrecon/default.nix +++ b/pkgs/development/python-modules/roadrecon/default.nix @@ -1,19 +1,20 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, flask -, flask-cors -, flask-marshmallow -, flask-sqlalchemy -, marshmallow -, marshmallow-sqlalchemy -, openpyxl -, pythonOlder -, pythonRelaxDepsHook -, roadlib -, setuptools -, sqlalchemy +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + flask, + flask-cors, + flask-marshmallow, + flask-sqlalchemy, + marshmallow, + marshmallow-sqlalchemy, + openpyxl, + pythonOlder, + pythonRelaxDepsHook, + roadlib, + setuptools, + sqlalchemy, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-OEftVwU30tLP091Z5CIl67hkjjcqY+Qo04/wHZlbuFc="; }; - pythonRelaxDeps = [ - "flask" - ]; + pythonRelaxDeps = [ "flask" ]; nativeBuildInputs = [ pythonRelaxDepsHook @@ -50,9 +49,7 @@ buildPythonPackage rec { sqlalchemy ]; - pythonImportsCheck = [ - "roadtools.roadrecon" - ]; + pythonImportsCheck = [ "roadtools.roadrecon" ]; meta = with lib; { description = "Azure AD recon"; diff --git a/pkgs/development/python-modules/roadtools/default.nix b/pkgs/development/python-modules/roadtools/default.nix index 6ea6bc5138b2..e1cdcf4001e4 100644 --- a/pkgs/development/python-modules/roadtools/default.nix +++ b/pkgs/development/python-modules/roadtools/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, roadrecon -, roadlib -, roadtx +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + roadrecon, + roadlib, + roadtx, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-Cqcd+bKkfYXCeJBXu6peMjBoA6gve2XBPdCAAuTKGEE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ roadrecon @@ -30,9 +29,7 @@ buildPythonPackage rec { roadtx ]; - pythonImportsCheck = [ - "roadtools" - ]; + pythonImportsCheck = [ "roadtools" ]; meta = with lib; { description = "Azure AD tooling framework"; diff --git a/pkgs/development/python-modules/robomachine/default.nix b/pkgs/development/python-modules/robomachine/default.nix index afcdf0ed3599..795e31cb701c 100644 --- a/pkgs/development/python-modules/robomachine/default.nix +++ b/pkgs/development/python-modules/robomachine/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, allpairspy -, buildPythonPackage -, fetchPypi -, pyparsing -, pythonRelaxDepsHook -, robotframework -, setuptools +{ + stdenv, + lib, + allpairspy, + buildPythonPackage, + fetchPypi, + pyparsing, + pythonRelaxDepsHook, + robotframework, + setuptools, }: buildPythonPackage rec { @@ -31,17 +32,11 @@ buildPythonPackage rec { allpairspy ]; - pythonRemoveDeps = [ - "argparse" - ]; + pythonRemoveDeps = [ "argparse" ]; - pythonRelaxDeps = [ - "pyparsing" - ]; + pythonRelaxDeps = [ "pyparsing" ]; - pythonImportsCheck = [ - "robomachine" - ]; + pythonImportsCheck = [ "robomachine" ]; meta = with lib; { description = "Test data generator for Robot Framework"; diff --git a/pkgs/development/python-modules/robot-detection/default.nix b/pkgs/development/python-modules/robot-detection/default.nix index 87475e14e091..0e582aa3867b 100644 --- a/pkgs/development/python-modules/robot-detection/default.nix +++ b/pkgs/development/python-modules/robot-detection/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, +}: buildPythonPackage rec { pname = "robot-detection"; diff --git a/pkgs/development/python-modules/robotframework-databaselibrary/default.nix b/pkgs/development/python-modules/robotframework-databaselibrary/default.nix index e60162ea38d2..fa0b02658d20 100644 --- a/pkgs/development/python-modules/robotframework-databaselibrary/default.nix +++ b/pkgs/development/python-modules/robotframework-databaselibrary/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, robotframework -, robotframework-excellib -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + robotframework, + robotframework-excellib, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "DatabaseLibrary" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Database Library contains utilities meant for Robot Framework"; @@ -41,5 +40,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = with maintainers; [ talkara ]; }; - } diff --git a/pkgs/development/python-modules/robotframework-excellib/default.nix b/pkgs/development/python-modules/robotframework-excellib/default.nix index 550cc45e8ca3..8810bfbac9a1 100644 --- a/pkgs/development/python-modules/robotframework-excellib/default.nix +++ b/pkgs/development/python-modules/robotframework-excellib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, openpyxl -, robotframework +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + openpyxl, + robotframework, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-ZzAwlYM8DgWD1hfWRnY8u2RnZc3V368kgigBApeDZYg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ openpyxl diff --git a/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix b/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix index 39feab338d24..559e769f37ff 100644 --- a/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix +++ b/pkgs/development/python-modules/robotframework-pythonlibcore/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch2 -, setuptools -, robotframework -, approvaltests -, pytest-mockito -, pytestCheckHook -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch2, + setuptools, + robotframework, + approvaltests, + pytest-mockito, + pytestCheckHook, + typing-extensions, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - robotframework - ]; + dependencies = [ robotframework ]; nativeCheckInputs = [ approvaltests diff --git a/pkgs/development/python-modules/robotframework-requests/default.nix b/pkgs/development/python-modules/robotframework-requests/default.nix index d1b6f21df06b..542aea236da4 100644 --- a/pkgs/development/python-modules/robotframework-requests/default.nix +++ b/pkgs/development/python-modules/robotframework-requests/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, pytestCheckHook -, pythonOlder -, requests -, robotframework +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + pytestCheckHook, + pythonOlder, + requests, + robotframework, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { robotframework ]; - buildInputs = [ - pytestCheckHook - ]; + buildInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "RequestsLibrary" - ]; + pythonImportsCheck = [ "RequestsLibrary" ]; - pytestFlagsArray = [ - "utests" - ]; + pytestFlagsArray = [ "utests" ]; meta = with lib; { description = "Robot Framework keyword library wrapper around the HTTP client library requests"; diff --git a/pkgs/development/python-modules/robotframework-selenium2library/default.nix b/pkgs/development/python-modules/robotframework-selenium2library/default.nix index c66d7c6ad646..c9567e83f16e 100644 --- a/pkgs/development/python-modules/robotframework-selenium2library/default.nix +++ b/pkgs/development/python-modules/robotframework-selenium2library/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, robotframework-seleniumlibrary }: +{ + lib, + buildPythonPackage, + fetchPypi, + robotframework-seleniumlibrary, +}: buildPythonPackage rec { version = "3.0.0"; @@ -21,5 +26,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix b/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix index a1130eaac619..d025d3761215 100644 --- a/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix +++ b/pkgs/development/python-modules/robotframework-seleniumlibrary/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, robotframework -, robotframework-pythonlibcore -, selenium -, approvaltests -, pytest-mockito -, pytestCheckHook -, robotstatuschecker +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + robotframework, + robotframework-pythonlibcore, + selenium, + approvaltests, + pytest-mockito, + pytestCheckHook, + robotstatuschecker, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { sha256 = "sha256-/bYk8S9fGTsftBokz1FH+7HwdhhtAvZgtQscUESTsjY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ robotframework diff --git a/pkgs/development/python-modules/robotframework-sshlibrary/default.nix b/pkgs/development/python-modules/robotframework-sshlibrary/default.nix index 0a55d66b0a60..c8717a2ed2ac 100644 --- a/pkgs/development/python-modules/robotframework-sshlibrary/default.nix +++ b/pkgs/development/python-modules/robotframework-sshlibrary/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, robotframework -, paramiko -, scp +{ + lib, + buildPythonPackage, + fetchPypi, + robotframework, + paramiko, + scp, }: buildPythonPackage rec { @@ -19,12 +20,15 @@ buildPythonPackage rec { # unit tests are impure doCheck = false; - propagatedBuildInputs = [ robotframework paramiko scp ]; + propagatedBuildInputs = [ + robotframework + paramiko + scp + ]; meta = with lib; { description = "SSHLibrary is a Robot Framework test library for SSH and SFTP"; homepage = "https://github.com/robotframework/SSHLibrary"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/robotframework-tools/default.nix b/pkgs/development/python-modules/robotframework-tools/default.nix index 48cf214986c2..048822afb1d0 100644 --- a/pkgs/development/python-modules/robotframework-tools/default.nix +++ b/pkgs/development/python-modules/robotframework-tools/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, robotframework -, moretools -, path -, six -, zetup -, modeled -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + robotframework, + moretools, + path, + six, + zetup, + modeled, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/robotframework/default.nix b/pkgs/development/python-modules/robotframework/default.nix index f87fe2bdd37a..ea323ac63455 100644 --- a/pkgs/development/python-modules/robotframework/default.nix +++ b/pkgs/development/python-modules/robotframework/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, jsonschema -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + jsonschema, + python, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-IyOm2MTHj2rOew/IkyGIfI4XZSFU88+Tx8KHKIRT2G4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - jsonschema - ]; + nativeCheckInputs = [ jsonschema ]; checkPhase = '' ${python.interpreter} utest/run.py diff --git a/pkgs/development/python-modules/robotstatuschecker/default.nix b/pkgs/development/python-modules/robotstatuschecker/default.nix index 949945515c22..4c49e2108f6f 100644 --- a/pkgs/development/python-modules/robotstatuschecker/default.nix +++ b/pkgs/development/python-modules/robotstatuschecker/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, robotframework -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + robotframework, + python, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { --replace-fail BuiltIn.Log Log ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ robotframework ]; diff --git a/pkgs/development/python-modules/robotsuite/default.nix b/pkgs/development/python-modules/robotsuite/default.nix index ffc86ec86815..dc19ae15154e 100644 --- a/pkgs/development/python-modules/robotsuite/default.nix +++ b/pkgs/development/python-modules/robotsuite/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, robotframework -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + robotframework, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python unittest test suite for Robot Framework"; diff --git a/pkgs/development/python-modules/rocket-errbot/default.nix b/pkgs/development/python-modules/rocket-errbot/default.nix index 9d86e73bd851..57c9d2eeae31 100644 --- a/pkgs/development/python-modules/rocket-errbot/default.nix +++ b/pkgs/development/python-modules/rocket-errbot/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, fetchpatch, buildPythonPackage }: +{ + lib, + fetchPypi, + fetchpatch, + buildPythonPackage, +}: buildPythonPackage rec { pname = "rocket-errbot"; @@ -11,12 +16,14 @@ buildPythonPackage rec { }; # remove with 1.2.6 - patches = [ (fetchpatch { - # https://github.com/errbotio/rocket/pull/1 - name = "errbotio-rocket-pull-1.patch"; - url = "https://github.com/errbotio/rocket/compare/f1a52fe17164f83bccce5e6a1935fc5071c2265f...d69adcd49de5d78bd80f952a2ee31e6a0bac4e3d.patch"; - sha256 = "1s668yv5b86b78vbqwhcl44k2l16c9bhk3199yy9hayf0vkxnwif"; - }) ]; + patches = [ + (fetchpatch { + # https://github.com/errbotio/rocket/pull/1 + name = "errbotio-rocket-pull-1.patch"; + url = "https://github.com/errbotio/rocket/compare/f1a52fe17164f83bccce5e6a1935fc5071c2265f...d69adcd49de5d78bd80f952a2ee31e6a0bac4e3d.patch"; + sha256 = "1s668yv5b86b78vbqwhcl44k2l16c9bhk3199yy9hayf0vkxnwif"; + }) + ]; meta = { homepage = "https://github.com/errbotio/rocket"; @@ -24,4 +31,3 @@ buildPythonPackage rec { license = lib.licenses.mit; }; } - diff --git a/pkgs/development/python-modules/roku/default.nix b/pkgs/development/python-modules/roku/default.nix index 354e2f650fac..262f31dd5306 100644 --- a/pkgs/development/python-modules/roku/default.nix +++ b/pkgs/development/python-modules/roku/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchFromGitHub, buildPythonPackage, requests, pytest, flask, isPy27 +{ + lib, + fetchFromGitHub, + buildPythonPackage, + requests, + pytest, + flask, + isPy27, }: buildPythonPackage rec { @@ -16,7 +23,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ pytest flask ]; + nativeCheckInputs = [ + pytest + flask + ]; pythonImportsCheck = [ "roku" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/rollbar/default.nix b/pkgs/development/python-modules/rollbar/default.nix index 26edb9046504..323f123377e6 100644 --- a/pkgs/development/python-modules/rollbar/default.nix +++ b/pkgs/development/python-modules/rollbar/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiocontextvars -, blinker -, buildPythonPackage -, fetchPypi -, fetchpatch -, httpx -, mock -, pytestCheckHook -, requests -, six -, pythonOlder -, webob +{ + lib, + aiocontextvars, + blinker, + buildPythonPackage, + fetchPypi, + fetchpatch, + httpx, + mock, + pytestCheckHook, + requests, + six, + pythonOlder, + webob, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { # https://github.com/rollbar/pyrollbar/pull/340 doCheck = false; - pythonImportsCheck = [ - "rollbar" - ]; + pythonImportsCheck = [ "rollbar" ]; meta = with lib; { description = "Error tracking and logging from Python to Rollbar"; diff --git a/pkgs/development/python-modules/roman/default.nix b/pkgs/development/python-modules/roman/default.nix index f1a0ac31e1e6..83ab749a7889 100644 --- a/pkgs/development/python-modules/roman/default.nix +++ b/pkgs/development/python-modules/roman/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/roman"; license = licenses.psfl; }; - } diff --git a/pkgs/development/python-modules/ronin/default.nix b/pkgs/development/python-modules/ronin/default.nix index 5b001aa392a3..7de9b522aa64 100644 --- a/pkgs/development/python-modules/ronin/default.nix +++ b/pkgs/development/python-modules/ronin/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, blessings -, colorama -, glob2 +{ + lib, + buildPythonPackage, + fetchPypi, + blessings, + colorama, + glob2, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { glob2 ]; - pythonImportsCheck = [ - "ronin" - ]; + pythonImportsCheck = [ "ronin" ]; meta = with lib; { homepage = "https://github.com/tliron/ronin/"; diff --git a/pkgs/development/python-modules/roombapy/default.nix b/pkgs/development/python-modules/roombapy/default.nix index 465da76efe4b..00a8793f36dc 100644 --- a/pkgs/development/python-modules/roombapy/default.nix +++ b/pkgs/development/python-modules/roombapy/default.nix @@ -1,17 +1,18 @@ -{ lib -, amqtt -, buildPythonPackage -, click -, fetchFromGitHub -, mashumaro -, orjson -, paho-mqtt -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, tabulate +{ + lib, + amqtt, + buildPythonPackage, + click, + fetchFromGitHub, + mashumaro, + orjson, + paho-mqtt, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + tabulate, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "orjson" - ]; + pythonRelaxDeps = [ "orjson" ]; propagatedBuildInputs = [ mashumaro @@ -64,9 +63,7 @@ buildPythonPackage rec { "test_roomba_connect" ]; - pythonImportsCheck = [ - "roombapy" - ]; + pythonImportsCheck = [ "roombapy" ]; meta = with lib; { description = "Python program and library to control Wi-Fi enabled iRobot Roombas"; diff --git a/pkgs/development/python-modules/roonapi/default.nix b/pkgs/development/python-modules/roonapi/default.nix index 7c8935a6def9..76f93dc33905 100644 --- a/pkgs/development/python-modules/roonapi/default.nix +++ b/pkgs/development/python-modules/roonapi/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ifaddr -, poetry-core -, pythonOlder -, requests -, six -, websocket-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ifaddr, + poetry-core, + pythonOlder, + requests, + six, + websocket-client, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-6wQsaZ50J2xIPXzICglg5pf8U0r4tL8iqcbdwjZadwU="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ ifaddr @@ -37,9 +36,7 @@ buildPythonPackage rec { # Tests require access to the Roon API doCheck = false; - pythonImportsCheck = [ - "roonapi" - ]; + pythonImportsCheck = [ "roonapi" ]; meta = with lib; { description = "Python library to interface with the Roon API"; diff --git a/pkgs/development/python-modules/rope/default.nix b/pkgs/development/python-modules/rope/default.nix index e027b1922ec9..9379f13f7ee3 100644 --- a/pkgs/development/python-modules/rope/default.nix +++ b/pkgs/development/python-modules/rope/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytoolconfig -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytoolconfig, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-g/fta5gW/xPs3VaVuLtikfLhqCKyy1AKRnOcOXjQ8bA="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pytoolconfig - ] ++ pytoolconfig.optional-dependencies.global; + dependencies = [ pytoolconfig ] ++ pytoolconfig.optional-dependencies.global; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/ropgadget/default.nix b/pkgs/development/python-modules/ropgadget/default.nix index d0ae5b7aeec0..53908cb4db73 100644 --- a/pkgs/development/python-modules/ropgadget/default.nix +++ b/pkgs/development/python-modules/ropgadget/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, capstone -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + capstone, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-6m8opcTM4vrK+VCPXxNhZttUq6YmS8swLUDhjyfinWE="; }; - propagatedBuildInputs = [ - capstone - ]; + propagatedBuildInputs = [ capstone ]; # Test suite is working with binaries doCheck = false; - pythonImportsCheck = [ - "ropgadget" - ]; + pythonImportsCheck = [ "ropgadget" ]; meta = with lib; { description = "Tool to search for gadgets in binaries to facilitate ROP exploitation"; diff --git a/pkgs/development/python-modules/ropper/default.nix b/pkgs/development/python-modules/ropper/default.nix index 973b11de4728..b7a4c9964c04 100644 --- a/pkgs/development/python-modules/ropper/default.nix +++ b/pkgs/development/python-modules/ropper/default.nix @@ -1,11 +1,12 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, capstone -, filebytes -, pytestCheckHook -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + capstone, + filebytes, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { filebytes ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ropper" - ]; + pythonImportsCheck = [ "ropper" ]; meta = with lib; { description = "Show information about files in different file formats"; diff --git a/pkgs/development/python-modules/rotary-embedding-torch/default.nix b/pkgs/development/python-modules/rotary-embedding-torch/default.nix index 22720a759238..f644d299470a 100644 --- a/pkgs/development/python-modules/rotary-embedding-torch/default.nix +++ b/pkgs/development/python-modules/rotary-embedding-torch/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools -, wheel + # build-system + setuptools, + wheel, -# dependencies -, beartype -, einops -, torch + # dependencies + beartype, + einops, + torch, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { torch ]; - pythonImportsCheck = [ - "rotary_embedding_torch" - ]; + pythonImportsCheck = [ "rotary_embedding_torch" ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/rouge-score/default.nix b/pkgs/development/python-modules/rouge-score/default.nix index 09d2bcc1dc81..a3bd05b8a5c0 100644 --- a/pkgs/development/python-modules/rouge-score/default.nix +++ b/pkgs/development/python-modules/rouge-score/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchPypi -, fetchFromGitHub -, python -, buildPythonPackage -, absl-py -, nltk -, numpy -, six -, pytestCheckHook -, pythonOlder +{ + lib, + fetchPypi, + fetchFromGitHub, + python, + buildPythonPackage, + absl-py, + nltk, + numpy, + six, + pytestCheckHook, + pythonOlder, }: let testdata = fetchFromGitHub { @@ -18,7 +19,8 @@ let rev = "1d4d2f1aa6f2883a790d2ae46a6ee8ab150d8f31"; hash = "sha256-ojqk6U2caS7Xz4iGUC9aQVHrKb2QNvMlPuQAL/jJat0="; }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "rouge-score"; version = "0.1.2"; format = "setuptools"; @@ -37,7 +39,12 @@ in buildPythonPackage rec { --replace 'os.path.join(os.path.dirname(__file__), "testdata")' '"${testdata}/rouge/testdata/"' ''; - propagatedBuildInputs = [ absl-py nltk numpy six ]; + propagatedBuildInputs = [ + absl-py + nltk + numpy + six + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/routeros-api/default.nix b/pkgs/development/python-modules/routeros-api/default.nix index 52bc4295a89f..1f5812b44c1a 100644 --- a/pkgs/development/python-modules/routeros-api/default.nix +++ b/pkgs/development/python-modules/routeros-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, mock -, tox +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + mock, + tox, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/routes/default.nix b/pkgs/development/python-modules/routes/default.nix index 5e639b557d40..153aac57546c 100644 --- a/pkgs/development/python-modules/routes/default.nix +++ b/pkgs/development/python-modules/routes/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, repoze-lru -, six -, soupsieve -, webob +{ + lib, + buildPythonPackage, + fetchPypi, + repoze-lru, + six, + soupsieve, + webob, }: buildPythonPackage rec { @@ -18,7 +19,12 @@ buildPythonPackage rec { sha256 = "b6346459a15f0cbab01a45a90c3d25caf980d4733d628b4cc1952b865125d053"; }; - propagatedBuildInputs = [ repoze-lru six soupsieve webob ]; + propagatedBuildInputs = [ + repoze-lru + six + soupsieve + webob + ]; # incompatible with latest soupsieve doCheck = false; diff --git a/pkgs/development/python-modules/rova/default.nix b/pkgs/development/python-modules/rova/default.nix index 32c0c97b3494..d69947e24575 100644 --- a/pkgs/development/python-modules/rova/default.nix +++ b/pkgs/development/python-modules/rova/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-y73Vf/E2xDy+2vnvZEllRUgsDfX33Q7AsL/UY2pR1sI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "rova" - ]; + pythonImportsCheck = [ "rova" ]; meta = with lib; { description = "Module to access for ROVA calendars"; diff --git a/pkgs/development/python-modules/rpcq/default.nix b/pkgs/development/python-modules/rpcq/default.nix index 42643ca74826..fafcc896262e 100644 --- a/pkgs/development/python-modules/rpcq/default.nix +++ b/pkgs/development/python-modules/rpcq/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, msgpack -, numpy -, pytest-asyncio -, pytestCheckHook -, python-rapidjson -, pythonOlder -, pyzmq -, ruamel-yaml -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + msgpack, + numpy, + pytest-asyncio, + pytestCheckHook, + python-rapidjson, + pythonOlder, + pyzmq, + ruamel-yaml, + setuptools, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace "msgpack>=0.6,<1.0" "msgpack" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ msgpack @@ -54,9 +53,7 @@ buildPythonPackage rec { "rpcq/test/test_spec.py" ]; - pythonImportsCheck = [ - "rpcq" - ]; + pythonImportsCheck = [ "rpcq" ]; meta = with lib; { description = "The RPC framework and message specification for rigetti Quantum Cloud services"; diff --git a/pkgs/development/python-modules/rpdb/default.nix b/pkgs/development/python-modules/rpdb/default.nix index 7b3fb288f26c..ae689da1474e 100644 --- a/pkgs/development/python-modules/rpdb/default.nix +++ b/pkgs/development/python-modules/rpdb/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "https://github.com/tamentis/rpdb"; license = licenses.bsd2; }; - } diff --git a/pkgs/development/python-modules/rpds-py/default.nix b/pkgs/development/python-modules/rpds-py/default.nix index 76798ccfc397..0b7a74166a91 100644 --- a/pkgs/development/python-modules/rpds-py/default.nix +++ b/pkgs/development/python-modules/rpds-py/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, cargo -, fetchPypi -, pytestCheckHook -, pythonOlder -, rustc -, rustPlatform -, libiconv +{ + stdenv, + lib, + buildPythonPackage, + cargo, + fetchPypi, + pytestCheckHook, + pythonOlder, + rustc, + rustPlatform, + libiconv, }: buildPythonPackage rec { @@ -36,17 +37,11 @@ buildPythonPackage rec { rustc ]; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "rpds" - ]; + pythonImportsCheck = [ "rpds" ]; meta = with lib; { description = "Python bindings to Rust's persistent data structures (rpds"; diff --git a/pkgs/development/python-modules/rpi-bad-power/default.nix b/pkgs/development/python-modules/rpi-bad-power/default.nix index 5a73ee4a1bf1..00e7830fbd7c 100644 --- a/pkgs/development/python-modules/rpi-bad-power/default.nix +++ b/pkgs/development/python-modules/rpi-bad-power/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: let @@ -20,17 +21,11 @@ buildPythonPackage { hash = "sha256:1yvfz28blq4fdnn614n985vbs5hcw1gm3i9am53k410sfs7ilvkk"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "rpi_bad_power" - ]; + pythonImportsCheck = [ "rpi_bad_power" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python library to detect bad power supply on Raspberry Pi"; diff --git a/pkgs/development/python-modules/rpi-gpio/default.nix b/pkgs/development/python-modules/rpi-gpio/default.nix index a045744d122e..569e8cd07c0c 100644 --- a/pkgs/development/python-modules/rpi-gpio/default.nix +++ b/pkgs/development/python-modules/rpi-gpio/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "rpi-gpio"; diff --git a/pkgs/development/python-modules/rpi-gpio2/default.nix b/pkgs/development/python-modules/rpi-gpio2/default.nix index 2836cd7e3703..f24f6a5f6fe9 100644 --- a/pkgs/development/python-modules/rpi-gpio2/default.nix +++ b/pkgs/development/python-modules/rpi-gpio2/default.nix @@ -1,4 +1,9 @@ -{ lib, libgpiod, buildPythonPackage, fetchFromGitHub }: +{ + lib, + libgpiod, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "rpi-gpio2"; @@ -13,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-CNnej67yTh3C8n4cCA7NW97rlfIDrrlepRNDkv+BUeY="; }; - propagatedBuildInputs = [ - libgpiod - ]; + propagatedBuildInputs = [ libgpiod ]; # Disable checks because they need to run on the specific platform doCheck = false; diff --git a/pkgs/development/python-modules/rplcd/default.nix b/pkgs/development/python-modules/rplcd/default.nix index e521523ba697..899dc8c5c31e 100644 --- a/pkgs/development/python-modules/rplcd/default.nix +++ b/pkgs/development/python-modules/rplcd/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "rplcd"; diff --git a/pkgs/development/python-modules/rply/default.nix b/pkgs/development/python-modules/rply/default.nix index ff42e93f9560..1685aadd922b 100644 --- a/pkgs/development/python-modules/rply/default.nix +++ b/pkgs/development/python-modules/rply/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, appdirs -, py -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + appdirs, + py, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-5uINDCX4Jr4bSSwqBjvkS3f5wTMnZvsRGq1DeCw8Y+M="; }; - propagatedBuildInputs = [ - appdirs - ]; + propagatedBuildInputs = [ appdirs ]; nativeCheckInputs = [ py diff --git a/pkgs/development/python-modules/rpmfile/default.nix b/pkgs/development/python-modules/rpmfile/default.nix index 89401e4ac607..bec7009ae86f 100644 --- a/pkgs/development/python-modules/rpmfile/default.nix +++ b/pkgs/development/python-modules/rpmfile/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, }: buildPythonPackage rec { pname = "rpmfile"; @@ -16,13 +17,9 @@ buildPythonPackage rec { # Tests access the internet doCheck = false; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - pythonImportsCheck = [ - "rpmfile" - ]; + pythonImportsCheck = [ "rpmfile" ]; meta = with lib; { description = "Read rpm archive files"; diff --git a/pkgs/development/python-modules/rpmfluff/default.nix b/pkgs/development/python-modules/rpmfluff/default.nix index 2d8a45fd102f..2b60f24e7d39 100644 --- a/pkgs/development/python-modules/rpmfluff/default.nix +++ b/pkgs/development/python-modules/rpmfluff/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchurl -, glibcLocales +{ + lib, + buildPythonPackage, + fetchurl, + glibcLocales, }: buildPythonPackage rec { @@ -10,11 +11,11 @@ buildPythonPackage rec { format = "setuptools"; src = fetchurl { - url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz"; + url = "https://releases.pagure.org/${pname}/${pname}-${version}.tar.xz"; sha256 = "19vnlzma8b0aghdiixk0q3wc10y6306hsnic0qvswaaiki94fss1"; }; - LC_ALL="en_US.utf-8"; + LC_ALL = "en_US.utf-8"; buildInputs = [ glibcLocales ]; meta = with lib; { @@ -23,5 +24,4 @@ buildPythonPackage rec { license = licenses.gpl2; maintainers = with maintainers; [ disassembler ]; }; - } diff --git a/pkgs/development/python-modules/rpy2/default.nix b/pkgs/development/python-modules/rpy2/default.nix index 2f3e66b76ba1..65ae9652cd06 100644 --- a/pkgs/development/python-modules/rpy2/default.nix +++ b/pkgs/development/python-modules/rpy2/default.nix @@ -1,58 +1,61 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, isPyPy -, R -, rWrapper -, rPackages -, pcre -, xz -, bzip2 -, zlib -, icu -, ipython -, jinja2 -, pytz -, pandas -, numpy -, cffi -, tzlocal -, simplegeneric -, pytestCheckHook -, extraRPackages ? [] +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + isPyPy, + R, + rWrapper, + rPackages, + pcre, + xz, + bzip2, + zlib, + icu, + ipython, + jinja2, + pytz, + pandas, + numpy, + cffi, + tzlocal, + simplegeneric, + pytestCheckHook, + extraRPackages ? [ ], }: buildPythonPackage rec { - version = "3.5.16"; - format = "setuptools"; - pname = "rpy2"; + version = "3.5.16"; + format = "setuptools"; + pname = "rpy2"; - disabled = isPyPy; - src = fetchPypi { - inherit version pname; - hash = "sha256-g34vdFg2WKXEwzl2GnP5Q08z75ztPjDGTadWIWXCgBs="; - }; + disabled = isPyPy; + src = fetchPypi { + inherit version pname; + hash = "sha256-g34vdFg2WKXEwzl2GnP5Q08z75ztPjDGTadWIWXCgBs="; + }; - patches = [ - # R_LIBS_SITE is used by the nix r package to point to the installed R libraries. - # This patch sets R_LIBS_SITE when rpy2 is imported. - ./rpy2-3.x-r-libs-site.patch - ]; + patches = [ + # R_LIBS_SITE is used by the nix r package to point to the installed R libraries. + # This patch sets R_LIBS_SITE when rpy2 is imported. + ./rpy2-3.x-r-libs-site.patch + ]; - postPatch = '' - substituteInPlace 'rpy2/rinterface_lib/embedded.py' --replace '@NIX_R_LIBS_SITE@' "$R_LIBS_SITE" - substituteInPlace 'requirements.txt' --replace 'pytest' "" - ''; + postPatch = '' + substituteInPlace 'rpy2/rinterface_lib/embedded.py' --replace '@NIX_R_LIBS_SITE@' "$R_LIBS_SITE" + substituteInPlace 'requirements.txt' --replace 'pytest' "" + ''; - buildInputs = [ + buildInputs = + [ pcre xz bzip2 zlib icu - ] ++ (with rPackages; [ + ] + ++ (with rPackages; [ # packages expected by the test framework ggplot2 dplyr @@ -64,34 +67,34 @@ buildPythonPackage rec { lazyeval lme4 tidyr - ]) ++ extraRPackages ++ rWrapper.recommendedPackages; + ]) + ++ extraRPackages + ++ rWrapper.recommendedPackages; - nativeBuildInputs = [ - R # needed at setup time to detect R_HOME (alternatively set R_HOME explicitly) - ]; + nativeBuildInputs = [ + R # needed at setup time to detect R_HOME (alternatively set R_HOME explicitly) + ]; - propagatedBuildInputs = [ - ipython - jinja2 - pytz - pandas - numpy - cffi - tzlocal - simplegeneric - ]; + propagatedBuildInputs = [ + ipython + jinja2 + pytz + pandas + numpy + cffi + tzlocal + simplegeneric + ]; - doCheck = !stdenv.isDarwin; + doCheck = !stdenv.isDarwin; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - meta = { - homepage = "https://rpy2.github.io/"; - description = "Python interface to R"; - license = lib.licenses.gpl2Plus; - platforms = lib.platforms.unix; - maintainers = with lib.maintainers; [ joelmo ]; - }; - } + meta = { + homepage = "https://rpy2.github.io/"; + description = "Python interface to R"; + license = lib.licenses.gpl2Plus; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ joelmo ]; + }; +} diff --git a/pkgs/development/python-modules/rpyc/default.nix b/pkgs/development/python-modules/rpyc/default.nix index 73c40ee23f79..a9873de90632 100644 --- a/pkgs/development/python-modules/rpyc/default.nix +++ b/pkgs/development/python-modules/rpyc/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, hatchling -, plumbum -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + hatchling, + plumbum, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-BvXEXZlVbOmKBwnSBCDksUkbT7JPcMX48KZe/Gd5Y8Q="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - plumbum - ]; + dependencies = [ plumbum ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export PYTHONPATH=$(pwd)/tests:$PYTHONPATH @@ -62,9 +57,7 @@ buildPythonPackage rec { "tests/test_magic.py" ]; - pythonImportsCheck = [ - "rpyc" - ]; + pythonImportsCheck = [ "rpyc" ]; doCheck = !stdenv.isDarwin; diff --git a/pkgs/development/python-modules/rpyc4/default.nix b/pkgs/development/python-modules/rpyc4/default.nix index c883ebef4dc6..09842a0045d6 100644 --- a/pkgs/development/python-modules/rpyc4/default.nix +++ b/pkgs/development/python-modules/rpyc4/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools -, hatchling -, plumbum -, pytestCheckHook -, pythonOlder -, pythonAtLeast +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools, + hatchling, + plumbum, + pytestCheckHook, + pythonOlder, + pythonAtLeast, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - plumbum - ]; + propagatedBuildInputs = [ plumbum ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Disable tests that requires network access @@ -58,9 +55,7 @@ buildPythonPackage rec { "tests/test_teleportation.py" ]; - pythonImportsCheck = [ - "rpyc" - ]; + pythonImportsCheck = [ "rpyc" ]; doCheck = !stdenv.isDarwin; diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index 47a0a7dcfc5e..c4e408cced64 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, pythonOlder +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, click -, redis + # dependencies + click, + redis, -# tests -, psutil -, pytestCheckHook -, redis-server -, sentry-sdk + # tests + psutil, + pytestCheckHook, + redis-server, + sentry-sdk, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-8uhCV4aJNbY273jOa9D5OlgEG1w3hXVncClKQTO9Pyk="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ click @@ -63,9 +62,7 @@ buildPythonPackage rec { "test_clean_large_registry" ]; - pythonImportsCheck = [ - "rq" - ]; + pythonImportsCheck = [ "rq" ]; meta = with lib; { description = "Library for creating background jobs and processing them"; @@ -75,4 +72,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ mrmebelman ]; }; } - diff --git a/pkgs/development/python-modules/rsa/default.nix b/pkgs/development/python-modules/rsa/default.nix index 792024166d97..3c9e029b12f1 100644 --- a/pkgs/development/python-modules/rsa/default.nix +++ b/pkgs/development/python-modules/rsa/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pyasn1 -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pyasn1, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "open('README.md')" "open('README.md',encoding='utf-8')" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ pyasn1 ]; @@ -35,13 +34,9 @@ buildPythonPackage rec { sed -i '/addopts/d' tox.ini ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = [ - "tests/test_mypy.py" - ]; + disabledTestPaths = [ "tests/test_mypy.py" ]; meta = with lib; { homepage = "https://stuvel.eu/rsa"; diff --git a/pkgs/development/python-modules/rsskey/default.nix b/pkgs/development/python-modules/rsskey/default.nix index 61cba286d1b1..e76744b1fb46 100644 --- a/pkgs/development/python-modules/rsskey/default.nix +++ b/pkgs/development/python-modules/rsskey/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, feedparser -, httpx -, loca -, markdownify -, trio +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + feedparser, + httpx, + loca, + markdownify, + trio, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-QedLuwd0ES2LWhZ72Cjh3+ZZ7HbRyNsyLN9lNFbY5dQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ feedparser diff --git a/pkgs/development/python-modules/rst2ansi/default.nix b/pkgs/development/python-modules/rst2ansi/default.nix index 4f1ca27137a2..d1a03b5db582 100644 --- a/pkgs/development/python-modules/rst2ansi/default.nix +++ b/pkgs/development/python-modules/rst2ansi/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, docutils, }: +{ + lib, + buildPythonPackage, + fetchPypi, + docutils, +}: buildPythonPackage rec { pname = "rst2ansi"; diff --git a/pkgs/development/python-modules/rst2pdf/default.nix b/pkgs/development/python-modules/rst2pdf/default.nix index 956767735cb8..ae81f6d2ff31 100644 --- a/pkgs/development/python-modules/rst2pdf/default.nix +++ b/pkgs/development/python-modules/rst2pdf/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, installShellFiles -, setuptools -, setuptools-scm -, wheel -, docutils -, importlib-metadata -, jinja2 -, packaging -, pygments -, pyyaml -, reportlab -, smartypants -, pillow -, pytestCheckHook -, pymupdf -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + installShellFiles, + setuptools, + setuptools-scm, + wheel, + docutils, + importlib-metadata, + jinja2, + packaging, + pygments, + pyyaml, + reportlab, + smartypants, + pillow, + pytestCheckHook, + pymupdf, + sphinx, }: buildPythonPackage rec { @@ -29,7 +30,10 @@ buildPythonPackage rec { hash = "sha256-AF8FssEIFHmeY2oVrAPNe85pbmgKWO52yD6ycNNzTSg="; }; - outputs = [ "out" "man" ]; + outputs = [ + "out" + "man" + ]; nativeBuildInputs = [ installShellFiles @@ -50,9 +54,7 @@ buildPythonPackage rec { pillow ]; - pythonImportsCheck = [ - "rst2pdf" - ]; + pythonImportsCheck = [ "rst2pdf" ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/rstr/default.nix b/pkgs/development/python-modules/rstr/default.nix index 3c80a274ceaf..7bf0eb244fb9 100644 --- a/pkgs/development/python-modules/rstr/default.nix +++ b/pkgs/development/python-modules/rstr/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + unittestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { ]; doCheck = true; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { description = "Python library to generate random strings"; @@ -34,4 +33,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/rtfde/default.nix b/pkgs/development/python-modules/rtfde/default.nix index 3b11adc34a1a..fd49c3d12447 100644 --- a/pkgs/development/python-modules/rtfde/default.nix +++ b/pkgs/development/python-modules/rtfde/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lark -, lxml -, oletools -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lark, + lxml, + oletools, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace-fail "==" ">=" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ lark @@ -43,9 +42,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "RTFDE" - ]; + pythonImportsCheck = [ "RTFDE" ]; meta = with lib; { description = "Library for extracting encapsulated HTML and plain text content from the RTF bodies"; diff --git a/pkgs/development/python-modules/rtfunicode/default.nix b/pkgs/development/python-modules/rtfunicode/default.nix index 2de60bc6bef9..07d7ecc2ea8c 100644 --- a/pkgs/development/python-modules/rtfunicode/default.nix +++ b/pkgs/development/python-modules/rtfunicode/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, unittestCheckHook +{ + buildPythonPackage, + lib, + fetchFromGitHub, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rtmidi-python/default.nix b/pkgs/development/python-modules/rtmidi-python/default.nix index 462207a2fea4..a700b4c41137 100644 --- a/pkgs/development/python-modules/rtmidi-python/default.nix +++ b/pkgs/development/python-modules/rtmidi-python/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, cython_0 -, alsa-lib -, CoreAudio -, CoreMIDI -, CoreServices +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + cython_0, + alsa-lib, + CoreAudio, + CoreMIDI, + CoreServices, }: buildPythonPackage rec { @@ -24,22 +25,20 @@ buildPythonPackage rec { ''; nativeBuildInputs = [ cython_0 ]; - buildInputs = lib.optionals stdenv.isLinux [ - alsa-lib - ] ++ lib.optionals stdenv.isDarwin [ - CoreAudio - CoreMIDI - CoreServices - ]; + buildInputs = + lib.optionals stdenv.isLinux [ alsa-lib ] + ++ lib.optionals stdenv.isDarwin [ + CoreAudio + CoreMIDI + CoreServices + ]; setupPyBuildFlags = [ "--from-cython" ]; # package has no tests doCheck = false; - pythonImportsCheck = [ - "rtmidi_python" - ]; + pythonImportsCheck = [ "rtmidi_python" ]; meta = with lib; { description = "Python wrapper for RtMidi"; diff --git a/pkgs/development/python-modules/rtmixer/default.nix b/pkgs/development/python-modules/rtmixer/default.nix index 83d619840377..0f8be5e13d20 100644 --- a/pkgs/development/python-modules/rtmixer/default.nix +++ b/pkgs/development/python-modules/rtmixer/default.nix @@ -1,12 +1,13 @@ -{ fetchFromGitHub -, buildPythonPackage -, isPy27 -, cython -, portaudio -, cffi -, pa-ringbuffer -, sounddevice -, lib +{ + fetchFromGitHub, + buildPythonPackage, + isPy27, + cython, + portaudio, + cffi, + pa-ringbuffer, + sounddevice, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rtoml/default.nix b/pkgs/development/python-modules/rtoml/default.nix index 2ccec6d9e5b1..0f4fe3a9966f 100644 --- a/pkgs/development/python-modules/rtoml/default.nix +++ b/pkgs/development/python-modules/rtoml/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cargo -, fetchFromGitHub -, libiconv -, pytestCheckHook -, pythonOlder -, rustPlatform -, rustc -, setuptools-rust +{ + lib, + buildPythonPackage, + cargo, + fetchFromGitHub, + libiconv, + pytestCheckHook, + pythonOlder, + rustPlatform, + rustc, + setuptools-rust, }: buildPythonPackage rec { @@ -37,17 +38,11 @@ buildPythonPackage rec { rustPlatform.cargoSetupHook ]; - buildInputs = [ - libiconv - ]; + buildInputs = [ libiconv ]; - pythonImportsCheck = [ - "rtoml" - ]; + pythonImportsCheck = [ "rtoml" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' cd tests diff --git a/pkgs/development/python-modules/rtp/default.nix b/pkgs/development/python-modules/rtp/default.nix index aef1171d8d47..b06327f1c38e 100644 --- a/pkgs/development/python-modules/rtp/default.nix +++ b/pkgs/development/python-modules/rtp/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python3 +{ + lib, + buildPythonPackage, + fetchPypi, + python3, # nativeCheckInputs -, hypothesis -, unittestCheckHook + hypothesis, + unittestCheckHook, }: @@ -24,12 +25,13 @@ buildPythonPackage rec { unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" "-v" ]; - - pythonImportsCheck = [ - "rtp" + unittestFlagsArray = [ + "-s" + "tests" + "-v" ]; + pythonImportsCheck = [ "rtp" ]; meta = with lib; { description = "A library for decoding/encoding rtp packets"; diff --git a/pkgs/development/python-modules/rtree/default.nix b/pkgs/development/python-modules/rtree/default.nix index ff4b3b85e9cf..fee90dff358f 100644 --- a/pkgs/development/python-modules/rtree/default.nix +++ b/pkgs/development/python-modules/rtree/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, libspatialindex -, numpy -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + libspatialindex, + numpy, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/rtslib/default.nix b/pkgs/development/python-modules/rtslib/default.nix index 968a33607d92..23ec07248994 100644 --- a/pkgs/development/python-modules/rtslib/default.nix +++ b/pkgs/development/python-modules/rtslib/default.nix @@ -1,4 +1,11 @@ -{ lib, fetchFromGitHub, buildPythonPackage, six, pyudev, pygobject3 }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + six, + pyudev, + pygobject3, +}: buildPythonPackage rec { pname = "rtslib"; @@ -12,7 +19,11 @@ buildPythonPackage rec { hash = "sha256-z9fpSVyv96ZoJaP0ch2A3bX/o/K23ooEpxa/OAhY6Z4="; }; - propagatedBuildInputs = [ six pyudev pygobject3 ]; + propagatedBuildInputs = [ + six + pyudev + pygobject3 + ]; meta = with lib; { description = "A Python object API for managing the Linux LIO kernel target"; diff --git a/pkgs/development/python-modules/ruamel-base/default.nix b/pkgs/development/python-modules/ruamel-base/default.nix index a3906794bd84..65e96e71faa8 100644 --- a/pkgs/development/python-modules/ruamel-base/default.nix +++ b/pkgs/development/python-modules/ruamel-base/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ruamel-yaml-clib/default.nix b/pkgs/development/python-modules/ruamel-yaml-clib/default.nix index a7a362bcf4ab..1f898ed67073 100644 --- a/pkgs/development/python-modules/ruamel-yaml-clib/default.nix +++ b/pkgs/development/python-modules/ruamel-yaml-clib/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchhg -, cython +{ + lib, + buildPythonPackage, + fetchhg, + cython, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ruamel-yaml/default.nix b/pkgs/development/python-modules/ruamel-yaml/default.nix index 4ac0d552ebdf..cfd009e7fd04 100644 --- a/pkgs/development/python-modules/ruamel-yaml/default.nix +++ b/pkgs/development/python-modules/ruamel-yaml/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, ruamel-base -, ruamel-yaml-clib -, isPyPy +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + ruamel-base, + ruamel-yaml-clib, + isPyPy, }: buildPythonPackage rec { @@ -18,15 +19,12 @@ buildPythonPackage rec { hash = "sha256-iyfmohfnhsb75WNNjz8RvGPg+A9qWJDyiGPZxFqsMRs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Tests use relative paths doCheck = false; - propagatedBuildInputs = [ ruamel-base ] - ++ lib.optional (!isPyPy) ruamel-yaml-clib; + propagatedBuildInputs = [ ruamel-base ] ++ lib.optional (!isPyPy) ruamel-yaml-clib; pythonImportsCheck = [ "ruamel.yaml" ]; diff --git a/pkgs/development/python-modules/rubicon-objc/default.nix b/pkgs/development/python-modules/rubicon-objc/default.nix index f12f08e0ad47..5695642e4f56 100644 --- a/pkgs/development/python-modules/rubicon-objc/default.nix +++ b/pkgs/development/python-modules/rubicon-objc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, darwin -, fetchFromGitHub -, pythonOlder -, setuptools -, setuptools-scm -, unittestCheckHook +{ + lib, + buildPythonPackage, + darwin, + fetchFromGitHub, + pythonOlder, + setuptools, + setuptools-scm, + unittestCheckHook, }: buildPythonPackage rec { @@ -37,17 +38,11 @@ buildPythonPackage rec { make -C tests/objc ''; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - checkInputs = [ - darwin.apple_sdk.frameworks.Foundation - ]; + checkInputs = [ darwin.apple_sdk.frameworks.Foundation ]; - pythonImportsCheck = [ - "rubicon.objc" - ]; + pythonImportsCheck = [ "rubicon.objc" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/rubymarshal/default.nix b/pkgs/development/python-modules/rubymarshal/default.nix index 08303c74ae71..d2b485ee4f06 100644 --- a/pkgs/development/python-modules/rubymarshal/default.nix +++ b/pkgs/development/python-modules/rubymarshal/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, hypothesis, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + isPy3k, +}: buildPythonPackage rec { pname = "rubymarshal"; diff --git a/pkgs/development/python-modules/ruffus/default.nix b/pkgs/development/python-modules/ruffus/default.nix index eecd65b513de..37ff8340634a 100644 --- a/pkgs/development/python-modules/ruffus/default.nix +++ b/pkgs/development/python-modules/ruffus/default.nix @@ -1,9 +1,11 @@ -{ gevent -, buildPythonPackage -, fetchFromGitHub -, hostname -, pytest -, lib, stdenv +{ + gevent, + buildPythonPackage, + fetchFromGitHub, + hostname, + pytest, + lib, + stdenv, }: buildPythonPackage rec { @@ -45,4 +47,3 @@ buildPythonPackage rec { maintainers = [ maintainers.kiwi ]; }; } - diff --git a/pkgs/development/python-modules/rules/default.nix b/pkgs/development/python-modules/rules/default.nix index cc153e44c6f3..c2ab611d6f9c 100644 --- a/pkgs/development/python-modules/rules/default.nix +++ b/pkgs/development/python-modules/rules/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# tests -, django -, djangorestframework -, python + # tests + django, + djangorestframework, + python, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-fxLaxjni+0S59vtvKBduR0pYMwJWWBPzR5mnH+j6gVE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - pythonImportsCheck = [ - "rules" - ]; + pythonImportsCheck = [ "rules" ]; nativeCheckInputs = [ django diff --git a/pkgs/development/python-modules/runs/default.nix b/pkgs/development/python-modules/runs/default.nix index ec751bfd7f4b..d161a33a108a 100644 --- a/pkgs/development/python-modules/runs/default.nix +++ b/pkgs/development/python-modules/runs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, xmod -, pytestCheckHook -, tdir +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + xmod, + pytestCheckHook, + tdir, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-aEamhXr3C+jYDzQGzcmGFyl5oEtovxlNacFM08y0ZEk="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - xmod - ]; + dependencies = [ xmod ]; nativeCheckInputs = [ pytestCheckHook @@ -37,9 +34,7 @@ buildPythonPackage rec { "test_many" ]; - pythonImportsCheck = [ - "runs" - ]; + pythonImportsCheck = [ "runs" ]; meta = with lib; { description = "Run a block of text as a subprocess"; diff --git a/pkgs/development/python-modules/rustworkx/default.nix b/pkgs/development/python-modules/rustworkx/default.nix index 69b231854995..3cc2ffe95109 100644 --- a/pkgs/development/python-modules/rustworkx/default.nix +++ b/pkgs/development/python-modules/rustworkx/default.nix @@ -1,16 +1,17 @@ -{ fetchFromGitHub -, buildPythonPackage -, cargo -, rustPlatform -, rustc -, setuptools-rust -, numpy -, fixtures -, networkx -, testtools -, libiconv -, stdenv -, lib +{ + fetchFromGitHub, + buildPythonPackage, + cargo, + rustPlatform, + rustc, + setuptools-rust, + numpy, + fixtures, + networkx, + testtools, + libiconv, + stdenv, + lib, }: buildPythonPackage rec { @@ -39,7 +40,11 @@ buildPythonPackage rec { buildInputs = [ numpy ] ++ lib.optionals stdenv.isDarwin [ libiconv ]; - checkInputs = [ fixtures networkx testtools ]; + checkInputs = [ + fixtures + networkx + testtools + ]; pythonImportsCheck = [ "rustworkx" ]; diff --git a/pkgs/development/python-modules/ruuvitag-ble/default.nix b/pkgs/development/python-modules/ruuvitag-ble/default.nix index d69e92636aef..629e3c539954 100644 --- a/pkgs/development/python-modules/ruuvitag-ble/default.nix +++ b/pkgs/development/python-modules/ruuvitag-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, hatchling -, home-assistant-bluetooth -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + hatchling, + home-assistant-bluetooth, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-J+807p2mE+VZ0oqldFtjdcNGsRTkAU54s6byQSGrng4="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -35,18 +34,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=ruuvitag_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "ruuvitag_ble" - ]; + pythonImportsCheck = [ "ruuvitag_ble" ]; meta = with lib; { description = "Library for Ruuvitag BLE devices"; diff --git a/pkgs/development/python-modules/ruyaml/default.nix b/pkgs/development/python-modules/ruyaml/default.nix index 4131200f2276..6256f3556107 100644 --- a/pkgs/development/python-modules/ruyaml/default.nix +++ b/pkgs/development/python-modules/ruyaml/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, distro -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + distro, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -29,25 +30,18 @@ buildPythonPackage rec { --replace '"setuptools_scm_git_archive >= 1.1",' "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - distro - ]; + propagatedBuildInputs = [ distro ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::DeprecationWarning" ]; - pythonImportsCheck = [ - "ruyaml" - ]; + pythonImportsCheck = [ "ruyaml" ]; disabledTests = [ # Assertion error diff --git a/pkgs/development/python-modules/rx/default.nix b/pkgs/development/python-modules/rx/default.nix index 852dfcb7e663..9bbac4b45437 100644 --- a/pkgs/development/python-modules/rx/default.nix +++ b/pkgs/development/python-modules/rx/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, pythonOlder, nose }: +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + nose, +}: buildPythonPackage rec { pname = "rx"; diff --git a/pkgs/development/python-modules/rxv/default.nix b/pkgs/development/python-modules/rxv/default.nix index 9f947a78ad2a..30be2072b595 100644 --- a/pkgs/development/python-modules/rxv/default.nix +++ b/pkgs/development/python-modules/rxv/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, mock -, pytest-asyncio -, pytest-timeout -, pytest-vcr -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools-scm +{ + lib, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + mock, + pytest-asyncio, + pytest-timeout, + pytest-vcr, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools-scm, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { sha256 = "0jldnlzbfg5jm1nbgv91mlvcqkswd9f2n3qj9aqlbmj1cxq19yz8"; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ defusedxml diff --git a/pkgs/development/python-modules/rzpipe/default.nix b/pkgs/development/python-modules/rzpipe/default.nix index d5a98e0c63bb..76a29b256f1c 100644 --- a/pkgs/development/python-modules/rzpipe/default.nix +++ b/pkgs/development/python-modules/rzpipe/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # No native rz_core library doCheck = false; - pythonImportsCheck = [ - "rzpipe" - ]; + pythonImportsCheck = [ "rzpipe" ]; meta = with lib; { description = "Python interface for rizin"; diff --git a/pkgs/development/python-modules/s2clientprotocol/default.nix b/pkgs/development/python-modules/s2clientprotocol/default.nix index 0bbc0fefe2d8..0ee5f15a24fb 100644 --- a/pkgs/development/python-modules/s2clientprotocol/default.nix +++ b/pkgs/development/python-modules/s2clientprotocol/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, protobuf +{ + buildPythonPackage, + lib, + fetchPypi, + protobuf, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/s3fs/default.nix b/pkgs/development/python-modules/s3fs/default.nix index c267f253102d..fb06d2e73aee 100644 --- a/pkgs/development/python-modules/s3fs/default.nix +++ b/pkgs/development/python-modules/s3fs/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiobotocore -, aiohttp -, buildPythonPackage -, docutils -, fetchPypi -, fsspec -, pythonOlder +{ + lib, + aiobotocore, + aiohttp, + buildPythonPackage, + docutils, + fetchPypi, + fsspec, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { sed -i 's/fsspec==.*/fsspec/' requirements.txt ''; - buildInputs = [ - docutils - ]; + buildInputs = [ docutils ]; propagatedBuildInputs = [ aiobotocore @@ -39,9 +38,7 @@ buildPythonPackage rec { # pythonPackages. doCheck = false; - pythonImportsCheck = [ - "s3fs" - ]; + pythonImportsCheck = [ "s3fs" ]; meta = with lib; { description = "A Pythonic file interface for S3"; diff --git a/pkgs/development/python-modules/s3transfer/default.nix b/pkgs/development/python-modules/s3transfer/default.nix index 52bf82fc502d..e138d2193a5c 100644 --- a/pkgs/development/python-modules/s3transfer/default.nix +++ b/pkgs/development/python-modules/s3transfer/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, botocore -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + botocore, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,37 +23,27 @@ buildPythonPackage rec { hash = "sha256-EHNkYviafnuU8AADp9oyaDuAnoPOdOVNSLCcoONnHPY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - botocore - ]; + propagatedBuildInputs = [ botocore ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTestPaths = [ - # Requires network access - "tests/integration" - ] ++ - # There was a change in python 3.8 that defaults multiprocessing to spawn instead of fork on macOS - # See https://bugs.python.org/issue33725 and https://github.com/python/cpython/pull/13603. - # I suspect the underlying issue here is that upstream tests aren't compatible with spawn multiprocessing, and pass on linux where the default is still fork - lib.optionals stdenv.isDarwin [ - "tests/unit/test_compat.py" - ]; + disabledTestPaths = + [ + # Requires network access + "tests/integration" + ] + ++ + # There was a change in python 3.8 that defaults multiprocessing to spawn instead of fork on macOS + # See https://bugs.python.org/issue33725 and https://github.com/python/cpython/pull/13603. + # I suspect the underlying issue here is that upstream tests aren't compatible with spawn multiprocessing, and pass on linux where the default is still fork + lib.optionals stdenv.isDarwin [ "tests/unit/test_compat.py" ]; - pythonImportsCheck = [ - "s3transfer" - ]; + pythonImportsCheck = [ "s3transfer" ]; passthru.optional-dependencies = { - crt = [ - botocore.optional-dependencies.crt - ]; + crt = [ botocore.optional-dependencies.crt ]; }; meta = with lib; { diff --git a/pkgs/development/python-modules/sabctools/default.nix b/pkgs/development/python-modules/sabctools/default.nix index d5e684bbbb46..05812deb884d 100644 --- a/pkgs/development/python-modules/sabctools/default.nix +++ b/pkgs/development/python-modules/sabctools/default.nix @@ -15,18 +15,18 @@ buildPythonPackage rec { hash = "sha256-PYfbmR9wT3SHT+oFyQF2F13g7FgdvY/l9p0D65c/+RU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = ["sabctools"]; + pythonImportsCheck = [ "sabctools" ]; - passthru.tests = {inherit sabnzbd;}; + passthru.tests = { + inherit sabnzbd; + }; meta = with lib; { description = "C implementations of functions for use within SABnzbd"; homepage = "https://github.com/sabnzbd/sabctools"; license = licenses.gpl2Only; - maintainers = with maintainers; [adamcstephens]; + maintainers = with maintainers; [ adamcstephens ]; }; } diff --git a/pkgs/development/python-modules/sabyenc/default.nix b/pkgs/development/python-modules/sabyenc/default.nix index 8ba0b1df0db9..9dd7e040ca88 100644 --- a/pkgs/development/python-modules/sabyenc/default.nix +++ b/pkgs/development/python-modules/sabyenc/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "sabyenc"; @@ -19,5 +23,4 @@ buildPythonPackage rec { license = lib.licenses.lgpl3; maintainers = [ lib.maintainers.georgewhewell ]; }; - } diff --git a/pkgs/development/python-modules/sabyenc3/default.nix b/pkgs/development/python-modules/sabyenc3/default.nix index 19bd3d36fc46..814ca92de8db 100644 --- a/pkgs/development/python-modules/sabyenc3/default.nix +++ b/pkgs/development/python-modules/sabyenc3/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Tests are not included in pypi distribution doCheck = false; - pythonImportsCheck = [ - "sabyenc3" - ]; + pythonImportsCheck = [ "sabyenc3" ]; meta = with lib; { description = "yEnc Decoding for Python 3"; diff --git a/pkgs/development/python-modules/sacn/default.nix b/pkgs/development/python-modules/sacn/default.nix index f03c7a263271..309e43fb3e74 100644 --- a/pkgs/development/python-modules/sacn/default.nix +++ b/pkgs/development/python-modules/sacn/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "sacn" - ]; + pythonImportsCheck = [ "sacn" ]; meta = with lib; { description = "A simple ANSI E1.31 (aka sACN) module"; diff --git a/pkgs/development/python-modules/sacrebleu/default.nix b/pkgs/development/python-modules/sacrebleu/default.nix index 7a0540b82c73..10a6b0876b94 100644 --- a/pkgs/development/python-modules/sacrebleu/default.nix +++ b/pkgs/development/python-modules/sacrebleu/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# Propagated build inputs -, portalocker -, regex -, tabulate -, numpy -, colorama -, lxml + # Propagated build inputs + portalocker, + regex, + tabulate, + numpy, + colorama, + lxml, -# Check inputs -, pytestCheckHook + # Check inputs + pytestCheckHook, }: let pname = "sacrebleu"; @@ -42,9 +43,7 @@ buildPythonPackage { lxml ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; disabledTestPaths = [ # require network access diff --git a/pkgs/development/python-modules/sacremoses/default.nix b/pkgs/development/python-modules/sacremoses/default.nix index c08589b66e25..08960b6dbc39 100644 --- a/pkgs/development/python-modules/sacremoses/default.nix +++ b/pkgs/development/python-modules/sacremoses/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, click -, six -, tqdm -, joblib -, pytest +{ + buildPythonPackage, + lib, + fetchFromGitHub, + click, + six, + tqdm, + joblib, + pytest, }: buildPythonPackage rec { @@ -20,7 +21,12 @@ buildPythonPackage rec { sha256 = "1gzr56w8yx82mn08wax5m0xyg15ym4ri5l80gmagp8r53443j770"; }; - propagatedBuildInputs = [ click six tqdm joblib ]; + propagatedBuildInputs = [ + click + six + tqdm + joblib + ]; nativeCheckInputs = [ pytest ]; # ignore tests which call to remote host diff --git a/pkgs/development/python-modules/safe-pysha3/default.nix b/pkgs/development/python-modules/safe-pysha3/default.nix index bb96ee1c2dcb..be79b88ef4ad 100644 --- a/pkgs/development/python-modules/safe-pysha3/default.nix +++ b/pkgs/development/python-modules/safe-pysha3/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { --replace "failIf" "assertFalse" ''; - pythonImportsCheck = [ - "sha3" - ]; + pythonImportsCheck = [ "sha3" ]; meta = { changelog = "https://github.com/5afe/pysha3/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/safe/default.nix b/pkgs/development/python-modules/safe/default.nix index 6a4515b90f83..e59107fc33a1 100644 --- a/pkgs/development/python-modules/safe/default.nix +++ b/pkgs/development/python-modules/safe/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + nose, }: buildPythonPackage rec { @@ -20,5 +21,4 @@ buildPythonPackage rec { license = licenses.bsd3; description = "Check password strength"; }; - } diff --git a/pkgs/development/python-modules/safeio/default.nix b/pkgs/development/python-modules/safeio/default.nix index d0dd6c4ca5e1..890e986a81b5 100644 --- a/pkgs/development/python-modules/safeio/default.nix +++ b/pkgs/development/python-modules/safeio/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/safetensors/default.nix b/pkgs/development/python-modules/safetensors/default.nix index 2b6d9ba0ab19..c3e03f98876d 100644 --- a/pkgs/development/python-modules/safetensors/default.nix +++ b/pkgs/development/python-modules/safetensors/default.nix @@ -1,17 +1,18 @@ -{ stdenv -, lib -, buildPythonPackage -, cargo -, fetchFromGitHub -, h5py -, numpy -, pythonOlder -, pytestCheckHook -, rustc -, rustPlatform -, setuptools-rust -, torch -, libiconv +{ + stdenv, + lib, + buildPythonPackage, + cargo, + fetchFromGitHub, + h5py, + numpy, + pythonOlder, + pytestCheckHook, + rustc, + rustPlatform, + setuptools-rust, + torch, + libiconv, }: buildPythonPackage rec { @@ -47,22 +48,25 @@ buildPythonPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; nativeCheckInputs = [ - h5py numpy pytestCheckHook torch + h5py + numpy + pytestCheckHook + torch ]; pytestFlagsArray = [ "tests" ]; # don't require PaddlePaddle (not in Nixpkgs), Flax, or Tensorflow (onerous) to run tests: - disabledTestPaths = [ - "tests/test_flax_comparison.py" - "tests/test_paddle_comparison.py" - "tests/test_tf_comparison.py" - ] ++ lib.optionals stdenv.isDarwin [ - # don't require mlx (not in Nixpkgs) to run tests - "tests/test_mlx_comparison.py" - ]; + disabledTestPaths = + [ + "tests/test_flax_comparison.py" + "tests/test_paddle_comparison.py" + "tests/test_tf_comparison.py" + ] + ++ lib.optionals stdenv.isDarwin [ + # don't require mlx (not in Nixpkgs) to run tests + "tests/test_mlx_comparison.py" + ]; - pythonImportsCheck = [ - "safetensors" - ]; + pythonImportsCheck = [ "safetensors" ]; meta = with lib; { homepage = "https://github.com/huggingface/safetensors"; diff --git a/pkgs/development/python-modules/safety-schemas/default.nix b/pkgs/development/python-modules/safety-schemas/default.nix index 0f9724e95f65..14774300b1f3 100644 --- a/pkgs/development/python-modules/safety-schemas/default.nix +++ b/pkgs/development/python-modules/safety-schemas/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, pythonRelaxDepsHook -, dparse -, packaging -, pydantic -, ruamel-yaml -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + pythonRelaxDepsHook, + dparse, + packaging, + pydantic, + ruamel-yaml, + typing-extensions, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "dparse" - ]; + pythonRelaxDeps = [ "dparse" ]; propagatedBuildInputs = [ dparse diff --git a/pkgs/development/python-modules/safety/default.nix b/pkgs/development/python-modules/safety/default.nix index 00cd2758f0ba..49e5da716a85 100644 --- a/pkgs/development/python-modules/safety/default.nix +++ b/pkgs/development/python-modules/safety/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pythonRelaxDepsHook -, setuptools -, click -, urllib3 -, requests -, packaging -, dparse -, ruamel-yaml -, jinja2 -, marshmallow -, authlib -, jwt -, rich -, typer -, pydantic -, safety-schemas -, typing-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pythonRelaxDepsHook, + setuptools, + click, + urllib3, + requests, + packaging, + dparse, + ruamel-yaml, + jinja2, + marshmallow, + authlib, + jwt, + rich, + typer, + pydantic, + safety-schemas, + typing-extensions, + pytestCheckHook, }: buildPythonPackage rec { @@ -78,9 +79,7 @@ buildPythonPackage rec { typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Disable tests depending on online services disabledTests = [ @@ -105,6 +104,9 @@ buildPythonPackage rec { homepage = "https://github.com/pyupio/safety"; changelog = "https://github.com/pyupio/safety/blob/${version}/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ thomasdesr dotlambda ]; + maintainers = with maintainers; [ + thomasdesr + dotlambda + ]; }; } diff --git a/pkgs/development/python-modules/sagemaker/default.nix b/pkgs/development/python-modules/sagemaker/default.nix index 49156ec55306..c96ad040dc2c 100644 --- a/pkgs/development/python-modules/sagemaker/default.nix +++ b/pkgs/development/python-modules/sagemaker/default.nix @@ -1,33 +1,34 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, pythonRelaxDepsHook -, setuptools -, attrs -, boto3 -, cloudpickle -, google-pasta -, numpy -, protobuf -, smdebug-rulesconfig -, importlib-metadata -, packaging -, pandas -, pathos -, schema -, pyyaml -, jsonschema -, platformdirs -, tblib -, urllib3 -, requests -, docker -, tqdm -, psutil -, scipy -, accelerate +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + pythonRelaxDepsHook, + setuptools, + attrs, + boto3, + cloudpickle, + google-pasta, + numpy, + protobuf, + smdebug-rulesconfig, + importlib-metadata, + packaging, + pandas, + pathos, + schema, + pyyaml, + jsonschema, + platformdirs, + tblib, + urllib3, + requests, + docker, + tqdm, + psutil, + scipy, + accelerate, }: buildPythonPackage rec { @@ -99,7 +100,11 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - local = [ urllib3 docker pyyaml ]; + local = [ + urllib3 + docker + pyyaml + ]; scipy = [ scipy ]; huggingface = [ accelerate ]; # feature-processor = [ pyspark sagemaker-feature-store-pyspark ]; # not available in nixpkgs diff --git a/pkgs/development/python-modules/salmon-mail/default.nix b/pkgs/development/python-modules/salmon-mail/default.nix index 4b821da0fe6c..02ed82ac640f 100644 --- a/pkgs/development/python-modules/salmon-mail/default.nix +++ b/pkgs/development/python-modules/salmon-mail/default.nix @@ -1,5 +1,17 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, dnspython, chardet, lmtpd -, python-daemon, six, jinja2, mock, click }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + dnspython, + chardet, + lmtpd, + python-daemon, + six, + jinja2, + mock, + click, +}: buildPythonPackage rec { pname = "salmon-mail"; @@ -11,8 +23,18 @@ buildPythonPackage rec { sha256 = "0q2m6xri1b7qv46rqpv2qfdgk2jvswj8lpaacnxwjna3m685fhfx"; }; - nativeCheckInputs = [ jinja2 mock ]; - propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon six click ]; + nativeCheckInputs = [ + jinja2 + mock + ]; + propagatedBuildInputs = [ + chardet + dnspython + lmtpd + python-daemon + six + click + ]; # Darwin tests fail without this. See: # https://github.com/NixOS/nixpkgs/pull/82166#discussion_r399909846 diff --git a/pkgs/development/python-modules/sampledata/default.nix b/pkgs/development/python-modules/sampledata/default.nix index ae5086fe47b7..d2f547f32ca2 100644 --- a/pkgs/development/python-modules/sampledata/default.nix +++ b/pkgs/development/python-modules/sampledata/default.nix @@ -1,5 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, - nose, pytz, six, versiontools +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + pytz, + six, + versiontools, }: buildPythonPackage rec { @@ -18,11 +24,17 @@ buildPythonPackage rec { sha256 = "1kx2j49lag30d32zhzsr50gl5b949wa4lcdap2filg0d07picsdh"; }; - buildInputs = [ nose versiontools ]; - propagatedBuildInputs = [ pytz six ]; + buildInputs = [ + nose + versiontools + ]; + propagatedBuildInputs = [ + pytz + six + ]; -# ERROR: test_image_path_from_directory (tests.tests.TestImageHelpers) -# ERROR: test_image_stream (tests.tests.TestImageHelpers) + # ERROR: test_image_path_from_directory (tests.tests.TestImageHelpers) + # ERROR: test_image_stream (tests.tests.TestImageHelpers) doCheck = false; checkPhase = '' diff --git a/pkgs/development/python-modules/samplerate/default.nix b/pkgs/development/python-modules/samplerate/default.nix index 0b7d81a94d96..5323935b7c53 100644 --- a/pkgs/development/python-modules/samplerate/default.nix +++ b/pkgs/development/python-modules/samplerate/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cmake -, setuptools -, setuptools-scm -, pybind11 + # build-system + cmake, + setuptools, + setuptools-scm, + pybind11, -# dependencies -, cffi -, numpy + # dependencies + cffi, + numpy, -# native dependencies -, libsamplerate + # native dependencies + libsamplerate, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -48,22 +49,16 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - buildInputs = [ - libsamplerate - ]; + buildInputs = [ libsamplerate ]; propagatedBuildInputs = [ cffi numpy ]; - pythonImportsCheck = [ - "samplerate" - ]; + pythonImportsCheck = [ "samplerate" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -rf samplerate diff --git a/pkgs/development/python-modules/samsungctl/default.nix b/pkgs/development/python-modules/samsungctl/default.nix index f4f3653d94e9..c139a1d1a4c6 100644 --- a/pkgs/development/python-modules/samsungctl/default.nix +++ b/pkgs/development/python-modules/samsungctl/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# extra: websocket -, websocket-client + # extra: websocket + websocket-client, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { }; passthru.optional-dependencies = { - websocket = [ - websocket-client - ]; + websocket = [ websocket-client ]; # interactive_ui requires curses package }; diff --git a/pkgs/development/python-modules/samsungtvws/default.nix b/pkgs/development/python-modules/samsungtvws/default.nix index d1f5236639f3..7111961f9224 100644 --- a/pkgs/development/python-modules/samsungtvws/default.nix +++ b/pkgs/development/python-modules/samsungtvws/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, -# propagates: -, requests -, websocket-client + # propagates: + requests, + websocket-client, -# extras: async -, aiohttp -, websockets + # extras: async + aiohttp, + websockets, -# extras: encrypted -, cryptography -, py3rijndael + # extras: encrypted + cryptography, + py3rijndael, -# tests -, aioresponses -, pytest-asyncio -, pytestCheckHook + # tests + aioresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -54,9 +55,7 @@ buildPythonPackage rec { aioresponses pytest-asyncio pytestCheckHook - ] - ++ passthru.optional-dependencies.async - ++ passthru.optional-dependencies.encrypted; + ] ++ passthru.optional-dependencies.async ++ passthru.optional-dependencies.encrypted; pythonImportsCheck = [ "samsungtvws" ]; diff --git a/pkgs/development/python-modules/sane/default.nix b/pkgs/development/python-modules/sane/default.nix index 4198549f24cc..f5fb012436bf 100644 --- a/pkgs/development/python-modules/sane/default.nix +++ b/pkgs/development/python-modules/sane/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sane-backends +{ + lib, + buildPythonPackage, + fetchPypi, + sane-backends, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "JAmOuDxujhsBEm5q16WwR5wHsBPF0iBQm1VYkv5JJd4="; }; - buildInputs = [ - sane-backends - ]; + buildInputs = [ sane-backends ]; meta = with lib; { homepage = "https://github.com/python-pillow/Sane"; diff --git a/pkgs/development/python-modules/saneyaml/default.nix b/pkgs/development/python-modules/saneyaml/default.nix index 37ba299b8f5b..db4e2c5fc842 100644 --- a/pkgs/development/python-modules/saneyaml/default.nix +++ b/pkgs/development/python-modules/saneyaml/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools-scm -, pyyaml -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools-scm, + pyyaml, + pytestCheckHook, }: buildPythonPackage rec { pname = "saneyaml"; @@ -17,21 +18,13 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "saneyaml" - ]; + pythonImportsCheck = [ "saneyaml" ]; meta = with lib; { description = "A PyYaml wrapper with sane behaviour to read and write readable YAML safely"; diff --git a/pkgs/development/python-modules/sanic-auth/default.nix b/pkgs/development/python-modules/sanic-auth/default.nix index 23b38820ff22..b2e25cd82c8a 100644 --- a/pkgs/development/python-modules/sanic-auth/default.nix +++ b/pkgs/development/python-modules/sanic-auth/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sanic -, sanic-testing -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + sanic, + sanic-testing, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "0dc24ynqjraqwgvyk0g9bj87zgpq4xnssl24hnsn7l5vlkmk8198"; }; - propagatedBuildInputs = [ - sanic - ]; + propagatedBuildInputs = [ sanic ]; nativeCheckInputs = [ pytestCheckHook @@ -37,9 +36,7 @@ buildPythonPackage rec { --replace "allow_redirects=False" "follow_redirects=False" ''; - pythonImportsCheck = [ - "sanic_auth" - ]; + pythonImportsCheck = [ "sanic_auth" ]; meta = with lib; { description = "Simple Authentication for Sanic"; diff --git a/pkgs/development/python-modules/sanic-routing/default.nix b/pkgs/development/python-modules/sanic-routing/default.nix index f0e09c73862f..7e7897cc509b 100644 --- a/pkgs/development/python-modules/sanic-routing/default.nix +++ b/pkgs/development/python-modules/sanic-routing/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pytest-asyncio -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-asyncio, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "sanic_routing" - ]; + pythonImportsCheck = [ "sanic_routing" ]; meta = with lib; { description = "Core routing component for the Sanic web framework"; diff --git a/pkgs/development/python-modules/sanic-testing/default.nix b/pkgs/development/python-modules/sanic-testing/default.nix index e29ad8eb3c4f..52de4af8f148 100644 --- a/pkgs/development/python-modules/sanic-testing/default.nix +++ b/pkgs/development/python-modules/sanic-testing/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, httpx -, pythonOlder -, sanic -, websockets +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + httpx, + pythonOlder, + sanic, + websockets, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sanic-testing/tests.nix b/pkgs/development/python-modules/sanic-testing/tests.nix index 167a74217463..977aab156208 100644 --- a/pkgs/development/python-modules/sanic-testing/tests.nix +++ b/pkgs/development/python-modules/sanic-testing/tests.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, pytest-asyncio -, pytestCheckHook -, sanic-testing -, setuptools +{ + buildPythonPackage, + pytest-asyncio, + pytestCheckHook, + sanic-testing, + setuptools, }: buildPythonPackage { @@ -22,7 +23,5 @@ buildPythonPackage { setuptools ]; - pythonImportsCheck = [ - "sanic_testing" - ]; + pythonImportsCheck = [ "sanic_testing" ]; } diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index c8cb16ecc137..33779a6f6191 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -1,39 +1,40 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonAtLeast +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonAtLeast, -# build-system -, setuptools -, wheel + # build-system + setuptools, + wheel, -# propagates -, aiofiles -, html5tagger -, httptools -, multidict -, sanic-routing -, tracerite -, typing-extensions -, ujson -, uvloop -, websockets + # propagates + aiofiles, + html5tagger, + httptools, + multidict, + sanic-routing, + tracerite, + typing-extensions, + ujson, + uvloop, + websockets, -# optionals -, aioquic + # optionals + aioquic, -# tests -, doCheck ? !stdenv.isDarwin # on Darwin, tests fail but pkg still works + # tests + doCheck ? !stdenv.isDarwin, # on Darwin, tests fail but pkg still works -, beautifulsoup4 -, gunicorn -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, sanic-testing -, uvicorn + beautifulsoup4, + gunicorn, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + sanic-testing, + uvicorn, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { ext = [ # TODO: sanic-ext ]; - http3 = [ - aioquic - ]; + http3 = [ aioquic ]; }; nativeCheckInputs = [ @@ -88,17 +87,19 @@ buildPythonPackage rec { inherit doCheck; - preCheck = '' - # Some tests depends on sanic on PATH - PATH="$out/bin:$PATH" - PYTHONPATH=$PWD:$PYTHONPATH + preCheck = + '' + # Some tests depends on sanic on PATH + PATH="$out/bin:$PATH" + PYTHONPATH=$PWD:$PYTHONPATH - # needed for relative paths for some packages - cd tests - '' + lib.optionalString stdenv.isDarwin '' - # OSError: [Errno 24] Too many open files - ulimit -n 1024 - ''; + # needed for relative paths for some packages + cd tests + '' + + lib.optionalString stdenv.isDarwin '' + # OSError: [Errno 24] Too many open files + ulimit -n 1024 + ''; # uvloop usage is buggy #SANIC_NO_UVLOOP = true; @@ -108,39 +109,41 @@ buildPythonPackage rec { "-vvv" ]; - disabledTests = [ - # Require networking - "test_full_message" - # Server mode mismatch (debug vs production) - "test_num_workers" - # Racy tests - "test_keep_alive_client_timeout" - "test_keep_alive_server_timeout" - "test_zero_downtime" - # sanic.exceptions.SanicException: Cannot setup Sanic Simple Server without a path to a directory - "test_load_app_simple" - # create defunct python processes - "test_reloader_live" - "test_reloader_live_with_dir" - "test_reload_listeners" - # crash the python interpreter - "test_host_port_localhost" - "test_host_port" - "test_server_run" - # NoneType object is not subscriptable - "test_serve_app_implicit" - # AssertionError: assert [] == ['Restarting a process', 'Begin restart termination', 'Starting a process'] - "test_default_reload_shutdown_order" - # App not found. - "test_input_is_dir" - # HTTP 500 with Websocket subprotocols - "test_websocket_route_with_subprotocols" - # Socket closes early - "test_no_exceptions_when_cancel_pending_request" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute. - "test_ws_frame_put_message_into_queue" - ]; + disabledTests = + [ + # Require networking + "test_full_message" + # Server mode mismatch (debug vs production) + "test_num_workers" + # Racy tests + "test_keep_alive_client_timeout" + "test_keep_alive_server_timeout" + "test_zero_downtime" + # sanic.exceptions.SanicException: Cannot setup Sanic Simple Server without a path to a directory + "test_load_app_simple" + # create defunct python processes + "test_reloader_live" + "test_reloader_live_with_dir" + "test_reload_listeners" + # crash the python interpreter + "test_host_port_localhost" + "test_host_port" + "test_server_run" + # NoneType object is not subscriptable + "test_serve_app_implicit" + # AssertionError: assert [] == ['Restarting a process', 'Begin restart termination', 'Starting a process'] + "test_default_reload_shutdown_order" + # App not found. + "test_input_is_dir" + # HTTP 500 with Websocket subprotocols + "test_websocket_route_with_subprotocols" + # Socket closes early + "test_no_exceptions_when_cancel_pending_request" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: 'has_calls' is not a valid assertion. Use a spec for the mock if 'has_calls' is meant to be an attribute. + "test_ws_frame_put_message_into_queue" + ]; disabledTestPaths = [ # We are not interested in benchmarks diff --git a/pkgs/development/python-modules/sanix/default.nix b/pkgs/development/python-modules/sanix/default.nix index 64fd15074556..8f807fdd4ae2 100644 --- a/pkgs/development/python-modules/sanix/default.nix +++ b/pkgs/development/python-modules/sanix/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-D2w3hmL8ym63liWOYdZS4ry3lJ0utbbYGagWoOTT1TQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/sansio-multipart/default.nix b/pkgs/development/python-modules/sansio-multipart/default.nix index e9379bc52236..ef47ab77c7ed 100644 --- a/pkgs/development/python-modules/sansio-multipart/default.nix +++ b/pkgs/development/python-modules/sansio-multipart/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchPypi +{ + lib, + buildPythonPackage, + isPy27, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sarge/default.nix b/pkgs/development/python-modules/sarge/default.nix index f3dc0f269f85..e9ad2980e319 100644 --- a/pkgs/development/python-modules/sarge/default.nix +++ b/pkgs/development/python-modules/sarge/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-bT1DbcQi+SbeRBsL7ILuQbSnAj3BBB4+FNl+Zek5xU4="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Aarch64-linux times out for these tests, so they need to be disabled. @@ -26,9 +25,7 @@ buildPythonPackage rec { "test_feeder" ]; - pythonImportsCheck = [ - "sarge" - ]; + pythonImportsCheck = [ "sarge" ]; meta = with lib; { description = "Python wrapper for subprocess which provides command pipeline functionality"; diff --git a/pkgs/development/python-modules/sarif-om/default.nix b/pkgs/development/python-modules/sarif-om/default.nix index dafaad9d11e3..3d4e0134d591 100644 --- a/pkgs/development/python-modules/sarif-om/default.nix +++ b/pkgs/development/python-modules/sarif-om/default.nix @@ -1,6 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, attrs -, pbr +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + pbr, }: buildPythonPackage rec { @@ -14,13 +17,9 @@ buildPythonPackage rec { sha256 = "cd5f416b3083e00d402a92e449a7ff67af46f11241073eea0461802a3b5aef98"; }; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; pythonImportsCheck = [ "sarif_om" ]; diff --git a/pkgs/development/python-modules/sarif-tools/default.nix b/pkgs/development/python-modules/sarif-tools/default.nix index 785c26e34529..e9784e366049 100644 --- a/pkgs/development/python-modules/sarif-tools/default.nix +++ b/pkgs/development/python-modules/sarif-tools/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, poetry-core -, jsonpath-ng -, jinja2 -, python -, python-docx -, matplotlib -, pyyaml -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + poetry-core, + jsonpath-ng, + jinja2, + python, + python-docx, + matplotlib, + pyyaml, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -41,22 +42,16 @@ buildPythonPackage rec { pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonRelaxDeps = [ - "python-docx" - ]; + pythonRelaxDeps = [ "python-docx" ]; disabledTests = [ # Broken, re-enable once https://github.com/microsoft/sarif-tools/pull/41 is merged "test_version" ]; - pythonImportsCheck = [ - "sarif" - ]; + pythonImportsCheck = [ "sarif" ]; meta = { description = "A set of command line tools and Python library for working with SARIF files"; diff --git a/pkgs/development/python-modules/sasmodels/default.nix b/pkgs/development/python-modules/sasmodels/default.nix index a0e1907c9b1d..0f044c6e28b5 100644 --- a/pkgs/development/python-modules/sasmodels/default.nix +++ b/pkgs/development/python-modules/sasmodels/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pytest -, numpy -, scipy -, matplotlib -, docutils -, pyopencl -, opencl-headers -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytest, + numpy, + scipy, + matplotlib, + docutils, + pyopencl, + opencl-headers, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-GZQYVvQ4bEBizTmJ+o5fIfGr8gn2/4uD3PxIswEjzSE="; }; - buildInputs = [ - opencl-headers - ]; + buildInputs = [ opencl-headers ]; propagatedBuildInputs = [ docutils @@ -39,17 +38,13 @@ buildPythonPackage rec { # Note: the 1.0.5 release should be compatible with pytest6, so this can # be set back to 'pytest' at that point - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' HOME=$(mktemp -d) py.test -c ./pytest.ini ''; - pythonImportsCheck = [ - "sasmodels" - ]; + pythonImportsCheck = [ "sasmodels" ]; meta = with lib; { description = "Library of small angle scattering models"; diff --git a/pkgs/development/python-modules/scalene/default.nix b/pkgs/development/python-modules/scalene/default.nix index 69004f67a196..2abf29f66205 100644 --- a/pkgs/development/python-modules/scalene/default.nix +++ b/pkgs/development/python-modules/scalene/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, hypothesis -, fetchpatch -, fetchPypi -, setuptools -, setuptools-scm -, cloudpickle -, cython -, jinja2 -, numpy -, psutil -, pynvml -, pytestCheckHook -, pythonOlder -, rich +{ + lib, + buildPythonPackage, + hypothesis, + fetchpatch, + fetchPypi, + setuptools, + setuptools-scm, + cloudpickle, + cython, + jinja2, + numpy, + psutil, + pynvml, + pytestCheckHook, + pythonOlder, + rich, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ hypothesis diff --git a/pkgs/development/python-modules/scales/default.nix b/pkgs/development/python-modules/scales/default.nix index 9c7ebfe8e9a0..ff9ab853e5c9 100644 --- a/pkgs/development/python-modules/scales/default.nix +++ b/pkgs/development/python-modules/scales/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, six +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + six, }: buildPythonPackage rec { @@ -26,5 +27,4 @@ buildPythonPackage rec { homepage = "https://www.github.com/Cue/scales"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/scancode-toolkit/default.nix b/pkgs/development/python-modules/scancode-toolkit/default.nix index 47f7eb93a349..a3ca41383be3 100644 --- a/pkgs/development/python-modules/scancode-toolkit/default.nix +++ b/pkgs/development/python-modules/scancode-toolkit/default.nix @@ -1,61 +1,62 @@ -{ lib -, attrs -, beautifulsoup4 -, bitarray -, boolean-py -, buildPythonPackage -, chardet -, click -, colorama -, commoncode -, container-inspector -, debian-inspector -, dparse2 -, extractcode -, extractcode-7z -, extractcode-libarchive -, fasteners -, fetchPypi -, fingerprints -, ftfy -, gemfileparser2 -, html5lib -, importlib-metadata -, intbitset -, jaraco-functools -, javaproperties -, jinja2 -, jsonstreams -, license-expression -, lxml -, markupsafe -, packageurl-python -, packaging -, parameter-expansion-patched -, pefile -, pip-requirements-parser -, pkginfo2 -, pluggy -, plugincode -, publicsuffix2 -, pyahocorasick -, pycryptodome -, pygmars -, pygments -, pymaven-patch -, pytestCheckHook -, pythonOlder -, requests -, saneyaml -, setuptools -, spdx-tools -, text-unidecode -, toml -, typecode -, typecode-libmagic -, urlpy -, xmltodict -, zipp +{ + lib, + attrs, + beautifulsoup4, + bitarray, + boolean-py, + buildPythonPackage, + chardet, + click, + colorama, + commoncode, + container-inspector, + debian-inspector, + dparse2, + extractcode, + extractcode-7z, + extractcode-libarchive, + fasteners, + fetchPypi, + fingerprints, + ftfy, + gemfileparser2, + html5lib, + importlib-metadata, + intbitset, + jaraco-functools, + javaproperties, + jinja2, + jsonstreams, + license-expression, + lxml, + markupsafe, + packageurl-python, + packaging, + parameter-expansion-patched, + pefile, + pip-requirements-parser, + pkginfo2, + pluggy, + plugincode, + publicsuffix2, + pyahocorasick, + pycryptodome, + pygmars, + pygments, + pymaven-patch, + pytestCheckHook, + pythonOlder, + requests, + saneyaml, + setuptools, + spdx-tools, + text-unidecode, + toml, + typecode, + typecode-libmagic, + urlpy, + xmltodict, + zipp, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { dontConfigure = true; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ attrs @@ -128,13 +127,9 @@ buildPythonPackage rec { typecode-libmagic urlpy xmltodict - ] ++ lib.optionals (pythonOlder "3.9") [ - zipp - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ zipp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Importing scancode needs a writeable home, and preCheck happens in between # pythonImportsCheckPhase and pytestCheckPhase. @@ -142,9 +137,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "scancode" - ]; + pythonImportsCheck = [ "scancode" ]; disabledTestPaths = [ # Tests are outdated @@ -159,7 +152,10 @@ buildPythonPackage rec { description = "Tool to scan code for license, copyright, package and their documented dependencies and other interesting facts"; homepage = "https://github.com/nexB/scancode-toolkit"; changelog = "https://github.com/nexB/scancode-toolkit/blob/v${version}/CHANGELOG.rst"; - license = with licenses; [ asl20 cc-by-40 ]; + license = with licenses; [ + asl20 + cc-by-40 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/scapy/default.nix b/pkgs/development/python-modules/scapy/default.nix index dede907418e3..5211392f612c 100644 --- a/pkgs/development/python-modules/scapy/default.nix +++ b/pkgs/development/python-modules/scapy/default.nix @@ -1,13 +1,31 @@ -{ buildPythonPackage, fetchFromGitHub, stdenv, lib, isPyPy -, pycrypto, ecdsa # TODO -, mock, can, brotli -, withOptionalDeps ? true, tcpdump, ipython -, withCryptography ? true, cryptography -, withVoipSupport ? true, sox -, withPlottingSupport ? true, matplotlib -, withGraphicsSupport ? false, pyx, texliveBasic, graphviz, imagemagick -, withManufDb ? false, wireshark -, libpcap +{ + buildPythonPackage, + fetchFromGitHub, + stdenv, + lib, + isPyPy, + pycrypto, + ecdsa, # TODO + mock, + can, + brotli, + withOptionalDeps ? true, + tcpdump, + ipython, + withCryptography ? true, + cryptography, + withVoipSupport ? true, + sox, + withPlottingSupport ? true, + matplotlib, + withGraphicsSupport ? false, + pyx, + texliveBasic, + graphviz, + imagemagick, + withManufDb ? false, + wireshark, + libpcap, # 2D/3D graphics and graphs TODO: VPython # TODO: nmap, numpy }: @@ -26,35 +44,51 @@ buildPythonPackage rec { hash = "sha256-xJlovcxUQOQHfOU0Jgin/ayd2T5fOyeN4Jg0DbLHoeU="; }; - patches = [ - ./find-library.patch - ]; + patches = [ ./find-library.patch ]; - postPatch = '' - printf "${version}" > scapy/VERSION + postPatch = + '' + printf "${version}" > scapy/VERSION - libpcap_file="${lib.getLib libpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}" - if ! [ -e "$libpcap_file" ]; then - echo "error: $libpcap_file not found" >&2 - exit 1 - fi - substituteInPlace "scapy/libs/winpcapy.py" \ - --replace "@libpcap_file@" "$libpcap_file" - '' + lib.optionalString withManufDb '' - substituteInPlace scapy/data.py --replace "/opt/wireshark" "${wireshark}" - ''; + libpcap_file="${lib.getLib libpcap}/lib/libpcap${stdenv.hostPlatform.extensions.sharedLibrary}" + if ! [ -e "$libpcap_file" ]; then + echo "error: $libpcap_file not found" >&2 + exit 1 + fi + substituteInPlace "scapy/libs/winpcapy.py" \ + --replace "@libpcap_file@" "$libpcap_file" + '' + + lib.optionalString withManufDb '' + substituteInPlace scapy/data.py --replace "/opt/wireshark" "${wireshark}" + ''; buildInputs = lib.optional withVoipSupport sox; - propagatedBuildInputs = [ pycrypto ecdsa ] - ++ lib.optionals withOptionalDeps [ tcpdump ipython ] + propagatedBuildInputs = + [ + pycrypto + ecdsa + ] + ++ lib.optionals withOptionalDeps [ + tcpdump + ipython + ] ++ lib.optional withCryptography cryptography ++ lib.optional withPlottingSupport matplotlib - ++ lib.optionals withGraphicsSupport [ pyx texliveBasic graphviz imagemagick ]; + ++ lib.optionals withGraphicsSupport [ + pyx + texliveBasic + graphviz + imagemagick + ]; # Running the tests seems too complicated: doCheck = false; - nativeCheckInputs = [ mock can brotli ]; + nativeCheckInputs = [ + mock + can + brotli + ]; checkPhase = '' # TODO: be more specific about files patchShebangs . @@ -90,6 +124,9 @@ buildPythonPackage rec { changelog = "https://github.com/secdev/scapy/releases/tag/v${version}"; license = licenses.gpl2Only; platforms = platforms.unix; - maintainers = with maintainers; [ primeos bjornfor ]; + maintainers = with maintainers; [ + primeos + bjornfor + ]; }; } diff --git a/pkgs/development/python-modules/schedule/default.nix b/pkgs/development/python-modules/schedule/default.nix index 443b0f73d2df..98a80ee7b07d 100644 --- a/pkgs/development/python-modules/schedule/default.nix +++ b/pkgs/development/python-modules/schedule/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pythonOlder, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-hDvAU4uZyT8CuLUOPjmIbAby0AOyT0jhqkyt+j80Enk="; }; - buildInputs = [ - mock - ]; + buildInputs = [ mock ]; preCheck = '' # https://github.com/dbader/schedule/issues/488 @@ -28,9 +27,7 @@ buildPythonPackage rec { "# self.assertRaises(ScheduleValueError, every().day.until, datetime.time(hour=5))" ''; - pythonImportsCheck = [ - "schedule" - ]; + pythonImportsCheck = [ "schedule" ]; meta = with lib; { description = "Python job scheduling for humans"; diff --git a/pkgs/development/python-modules/schema/default.nix b/pkgs/development/python-modules/schema/default.nix index 008813330dc8..7bf1de67593b 100644 --- a/pkgs/development/python-modules/schema/default.nix +++ b/pkgs/development/python-modules/schema/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -19,22 +20,16 @@ buildPythonPackage rec { hash = "sha256-8GcXESxhiVyrxHB3UriHFuhCCogZ1xQEUB4RT5EEMZc="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRemoveDeps = [ - "contextlib2" - ]; + pythonRemoveDeps = [ "contextlib2" ]; nativeCheckInputs = [ mock pytestCheckHook ]; - pythonImportsCheck = [ - "schema" - ]; + pythonImportsCheck = [ "schema" ]; meta = with lib; { description = "Library for validating Python data structures"; diff --git a/pkgs/development/python-modules/schemainspect/default.nix b/pkgs/development/python-modules/schemainspect/default.nix index e2c375b11b92..65077eb806d8 100644 --- a/pkgs/development/python-modules/schemainspect/default.nix +++ b/pkgs/development/python-modules/schemainspect/default.nix @@ -1,18 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, sqlalchemy -, sqlbag -, setuptools -, poetry-core -, pytestCheckHook -, pytest-xdist -, pytest-sugar -, postgresql -, postgresqlTestHook -, +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + sqlalchemy, + sqlbag, + setuptools, + poetry-core, + pytestCheckHook, + pytest-xdist, + pytest-sugar, + postgresql, + postgresqlTestHook, }: buildPythonPackage rec { pname = "schemainspect"; @@ -30,17 +30,14 @@ buildPythonPackage rec { patches = [ # https://github.com/djrobstep/schemainspect/pull/87 - (fetchpatch - { - name = "specify_poetry.patch"; - url = "https://github.com/djrobstep/schemainspect/commit/bdcd001ef7798236fe0ff35cef52f34f388bfe68.patch"; - hash = "sha256-/SEmcV9GjjvzfbszeGPkfd2DvYenl7bZyWdC0aI3M4M="; - }) + (fetchpatch { + name = "specify_poetry.patch"; + url = "https://github.com/djrobstep/schemainspect/commit/bdcd001ef7798236fe0ff35cef52f34f388bfe68.patch"; + hash = "sha256-/SEmcV9GjjvzfbszeGPkfd2DvYenl7bZyWdC0aI3M4M="; + }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ setuptools # needed for 'pkg_resources' sqlalchemy @@ -100,9 +97,7 @@ buildPythonPackage rec { "-svv" "tests" ]; - pythonImportsCheck = [ - "schemainspect" - ]; + pythonImportsCheck = [ "schemainspect" ]; postUnpack = '' # this dir is used to bump the version number, having it here fails the build diff --git a/pkgs/development/python-modules/schemdraw/default.nix b/pkgs/development/python-modules/schemdraw/default.nix index 08eecb1d8a2d..3649c23aaa06 100644 --- a/pkgs/development/python-modules/schemdraw/default.nix +++ b/pkgs/development/python-modules/schemdraw/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, pyparsing -, matplotlib -, latex2mathml -, ziafont -, ziamath -, pytestCheckHook -, nbval +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pyparsing, + matplotlib, + latex2mathml, + ziafont, + ziamath, + pytestCheckHook, + nbval, }: buildPythonPackage rec { @@ -26,18 +27,12 @@ buildPythonPackage rec { hash = "sha256-vqEHcazE5DNHr0FceOWLqq+RZmMK5ovHDVjy/2wbTJU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - pyparsing - ]; + dependencies = [ pyparsing ]; optional-dependencies = { - matplotlib = [ - matplotlib - ]; + matplotlib = [ matplotlib ]; svgmath = [ latex2mathml ziafont @@ -59,7 +54,7 @@ buildPythonPackage rec { substituteInPlace test/test_styles.ipynb --replace "font='Times', " "" ''; - preCheck = "rm test/test_pictorial.ipynb"; # Tries to download files + preCheck = "rm test/test_pictorial.ipynb"; # Tries to download files pytestFlagsArray = [ "--nbval-lax" ]; diff --git a/pkgs/development/python-modules/schiene/default.nix b/pkgs/development/python-modules/schiene/default.nix index cc8d49668064..20267d300d69 100644 --- a/pkgs/development/python-modules/schiene/default.nix +++ b/pkgs/development/python-modules/schiene/default.nix @@ -1,9 +1,10 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "schiene" - ]; + pythonImportsCheck = [ "schiene" ]; meta = with lib; { description = "Python library for interacting with Bahn.de"; diff --git a/pkgs/development/python-modules/schwifty/default.nix b/pkgs/development/python-modules/schwifty/default.nix index 6a74fb741577..a3b5467b70d7 100644 --- a/pkgs/development/python-modules/schwifty/default.nix +++ b/pkgs/development/python-modules/schwifty/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, hatchling -, hatch-vcs + # build-system + hatchling, + hatch-vcs, -# dependencies -, importlib-resources -, iso3166 -, pycountry + # dependencies + importlib-resources, + iso3166, + pycountry, -# optional-dependencies -, pydantic + # optional-dependencies + pydantic, -# tests -, pytestCheckHook -, pytest-cov -, pythonOlder + # tests + pytestCheckHook, + pytest-cov, + pythonOlder, }: buildPythonPackage rec { @@ -40,14 +41,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ iso3166 pycountry - ] ++ lib.optionals (pythonOlder "3.12") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ]; passthru.optional-dependencies = { - pydantic = [ - pydantic - ]; + pydantic = [ pydantic ]; }; nativeCheckInputs = [ @@ -55,9 +52,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "schwifty" - ]; + pythonImportsCheck = [ "schwifty" ]; meta = with lib; { changelog = "https://github.com/mdomke/schwifty/blob/${version}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/scikit-build-core/default.nix b/pkgs/development/python-modules/scikit-build-core/default.nix index 0e4734d4a53b..4061b3698a9c 100644 --- a/pkgs/development/python-modules/scikit-build-core/default.nix +++ b/pkgs/development/python-modules/scikit-build-core/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchPypi -, distlib -, pythonOlder -, exceptiongroup -, hatch-vcs -, hatchling -, cattrs -, cmake -, ninja -, packaging -, pathspec -, pyproject-metadata -, pytest-subprocess -, pytestCheckHook -, setuptools -, tomli -, virtualenv -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + distlib, + pythonOlder, + exceptiongroup, + hatch-vcs, + hatchling, + cattrs, + cmake, + ninja, + packaging, + pathspec, + pyproject-metadata, + pytest-subprocess, + pytestCheckHook, + setuptools, + tomli, + virtualenv, + wheel, }: buildPythonPackage rec { @@ -41,12 +42,12 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - tomli - ]; + propagatedBuildInputs = + [ packaging ] + ++ lib.optionals (pythonOlder "3.11") [ + exceptiongroup + tomli + ]; passthru.optional-dependencies = { pyproject = [ @@ -81,9 +82,7 @@ buildPythonPackage rec { "tests/test_editable.py" ]; - pythonImportsCheck = [ - "scikit_build_core" - ]; + pythonImportsCheck = [ "scikit_build_core" ]; meta = with lib; { description = "A next generation Python CMake adaptor and Python API for plugins"; diff --git a/pkgs/development/python-modules/scikit-build/default.nix b/pkgs/development/python-modules/scikit-build/default.nix index 0d35ccf4a8ed..2071f2ca4dec 100644 --- a/pkgs/development/python-modules/scikit-build/default.nix +++ b/pkgs/development/python-modules/scikit-build/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch2 -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, distro -, packaging -, setuptools -, wheel -, tomli +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch2, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + distro, + packaging, + setuptools, + wheel, + tomli, # Test Inputs -, cmake -, cython -, git -, pytestCheckHook -, pytest-mock -, requests -, virtualenv + cmake, + cython, + git, + pytestCheckHook, + pytest-mock, + requests, + virtualenv, }: buildPythonPackage rec { @@ -64,9 +65,7 @@ buildPythonPackage rec { packaging setuptools wheel - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ cmake @@ -104,7 +103,10 @@ buildPythonPackage rec { changelog = "https://github.com/scikit-build/scikit-build/blob/${version}/CHANGES.rst"; description = "Improved build system generator for CPython C/C++/Fortran/Cython extensions"; homepage = "https://github.com/scikit-build/scikit-build"; - license = with licenses; [ mit bsd2 ]; # BSD due to reuses of PyNE code + license = with licenses; [ + mit + bsd2 + ]; # BSD due to reuses of PyNE code maintainers = with maintainers; [ FlorianFranzen ]; }; } diff --git a/pkgs/development/python-modules/scikit-fmm/default.nix b/pkgs/development/python-modules/scikit-fmm/default.nix index b3e4891333ac..c1a9ba9abcab 100644 --- a/pkgs/development/python-modules/scikit-fmm/default.nix +++ b/pkgs/development/python-modules/scikit-fmm/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, python +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + python, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-14ccR/ggdyq6kvJWUe8U5NJ96M45PArjwCqzxuJCPAs="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; checkPhase = '' mkdir testdir; cd testdir diff --git a/pkgs/development/python-modules/scikit-fuzzy/default.nix b/pkgs/development/python-modules/scikit-fuzzy/default.nix index 03f10f129cbd..f3eae80276f2 100644 --- a/pkgs/development/python-modules/scikit-fuzzy/default.nix +++ b/pkgs/development/python-modules/scikit-fuzzy/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonAtLeast -, setuptools -, matplotlib -, networkx -, nose -, numpy -, scipy -, pytest7CheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonAtLeast, + setuptools, + matplotlib, + networkx, + nose, + numpy, + scipy, + pytest7CheckHook, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; propagatedBuildInputs = [ networkx diff --git a/pkgs/development/python-modules/scikit-hep-testdata/default.nix b/pkgs/development/python-modules/scikit-hep-testdata/default.nix index be99cd22b6ab..c3c76512492b 100644 --- a/pkgs/development/python-modules/scikit-hep-testdata/default.nix +++ b/pkgs/development/python-modules/scikit-hep-testdata/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, pythonAtLeast -, buildPythonPackage -, importlib-resources -, pyyaml -, requests -, setuptools-scm -, pythonOlder +{ + lib, + fetchFromGitHub, + pythonAtLeast, + buildPythonPackage, + importlib-resources, + pyyaml, + requests, + setuptools-scm, + pythonOlder, }: buildPythonPackage rec { @@ -23,24 +24,18 @@ buildPythonPackage rec { hash = "sha256-7a1F7180mnbMiEwRWzDQt2EhRsleSoVhWtTc+5DR/2o="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ pyyaml requests - ] ++ lib.optionals (!pythonAtLeast "3.9") [ - importlib-resources - ]; + ] ++ lib.optionals (!pythonAtLeast "3.9") [ importlib-resources ]; SKHEP_DATA = 1; # install the actual root files doCheck = false; # tests require networking - pythonImportsCheck = [ - "skhep_testdata" - ]; + pythonImportsCheck = [ "skhep_testdata" ]; meta = with lib; { homepage = "https://github.com/scikit-hep/scikit-hep-testdata"; diff --git a/pkgs/development/python-modules/scikit-image/default.nix b/pkgs/development/python-modules/scikit-image/default.nix index f29f9870b26a..7e4486f63dcf 100644 --- a/pkgs/development/python-modules/scikit-image/default.nix +++ b/pkgs/development/python-modules/scikit-image/default.nix @@ -1,34 +1,35 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, python -, pythonOlder -, astropy -, cloudpickle -, cython -, dask -, imageio -, lazy-loader -, matplotlib -, meson-python -, networkx -, numpy -, packaging -, pillow -, pooch -, pyamg -, pytestCheckHook -, numpydoc -, pythran -, pywavelets -, scikit-learn -, scipy -, setuptools -, simpleitk -, six -, tifffile -, wheel +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + python, + pythonOlder, + astropy, + cloudpickle, + cython, + dask, + imageio, + lazy-loader, + matplotlib, + meson-python, + networkx, + numpy, + packaging, + pillow, + pooch, + pyamg, + pytestCheckHook, + numpydoc, + pythran, + pywavelets, + scikit-learn, + scipy, + setuptools, + simpleitk, + six, + tifffile, + wheel, }: let @@ -78,9 +79,7 @@ let ]; passthru.optional-dependencies = { - data = [ - pooch - ]; + data = [ pooch ]; optional = [ astropy cloudpickle @@ -95,7 +94,10 @@ let # test suite is very cpu intensive, move to passthru.tests doCheck = false; - nativeCheckInputs = [ pytestCheckHook numpydoc ]; + nativeCheckInputs = [ + pytestCheckHook + numpydoc + ]; # (1) The package has cythonized modules, whose .so libs will appear only in the wheel, i.e. in nix store; # (2) To stop Python from importing the wrong directory, i.e. the one in the build dir, not the one in nix store, `skimage` dir should be removed or renamed; @@ -110,23 +112,33 @@ let # Requires network access (actually some data is loaded via `skimage._shared.testing.fetch` in the global scope, which calls `pytest.skip` when a network is unaccessible, leading to a pytest collection error). "${installedPackageRoot}/skimage/filters/rank/tests/test_rank.py" ]; - pytestFlagsArray = [ "${installedPackageRoot}" "--pyargs" "skimage" ] ++ builtins.map (testid: "--deselect=" + testid) ([ - # These tests require network access - "skimage/data/test_data.py::test_skin" - "skimage/data/tests/test_data.py::test_skin" - "skimage/io/tests/test_io.py::test_imread_http_url" - "skimage/restoration/tests/test_rolling_ball.py::test_ndim" - ] ++ lib.optionals stdenv.isDarwin [ - # Matplotlib tests are broken inside darwin sandbox - "skimage/feature/tests/test_util.py::test_plot_matches" - "skimage/filters/tests/test_thresholding.py::TestSimpleImage::test_try_all_threshold" - "skimage/io/tests/test_mpl_imshow.py::" - # See https://github.com/scikit-image/scikit-image/issues/7061 and https://github.com/scikit-image/scikit-image/issues/7104 - "skimage/measure/tests/test_fit.py" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # https://github.com/scikit-image/scikit-image/issues/7104 - "skimage/measure/tests/test_moments.py" - ]); + pytestFlagsArray = + [ + "${installedPackageRoot}" + "--pyargs" + "skimage" + ] + ++ builtins.map (testid: "--deselect=" + testid) ( + [ + # These tests require network access + "skimage/data/test_data.py::test_skin" + "skimage/data/tests/test_data.py::test_skin" + "skimage/io/tests/test_io.py::test_imread_http_url" + "skimage/restoration/tests/test_rolling_ball.py::test_ndim" + ] + ++ lib.optionals stdenv.isDarwin [ + # Matplotlib tests are broken inside darwin sandbox + "skimage/feature/tests/test_util.py::test_plot_matches" + "skimage/filters/tests/test_thresholding.py::TestSimpleImage::test_try_all_threshold" + "skimage/io/tests/test_mpl_imshow.py::" + # See https://github.com/scikit-image/scikit-image/issues/7061 and https://github.com/scikit-image/scikit-image/issues/7104 + "skimage/measure/tests/test_fit.py" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # https://github.com/scikit-image/scikit-image/issues/7104 + "skimage/measure/tests/test_moments.py" + ] + ); # Check cythonized modules pythonImportsCheck = [ @@ -158,4 +170,4 @@ let }; }; in - self +self diff --git a/pkgs/development/python-modules/scikit-learn-extra/default.nix b/pkgs/development/python-modules/scikit-learn-extra/default.nix index c6d897fb49fe..5674bb68068f 100644 --- a/pkgs/development/python-modules/scikit-learn-extra/default.nix +++ b/pkgs/development/python-modules/scikit-learn-extra/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, numpy -, cython -, scipy -, scikit-learn -, matplotlib -, pytestCheckHook +{ + lib, + fetchFromGitHub, + buildPythonPackage, + numpy, + cython, + scipy, + scikit-learn, + matplotlib, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,19 @@ buildPythonPackage rec { sha256 = "sha256-dHOwo6NIuhcvIehpuJQ621JEg5O3mnXycAhpTZKaxns="; }; - nativeBuildInputs = [ numpy cython ]; - propagatedBuildInputs = [ numpy scipy scikit-learn ]; - nativeCheckInputs = [ matplotlib pytestCheckHook ]; + nativeBuildInputs = [ + numpy + cython + ]; + propagatedBuildInputs = [ + numpy + scipy + scikit-learn + ]; + nativeCheckInputs = [ + matplotlib + pytestCheckHook + ]; preCheck = '' # Remove the package in the build dir, because Python defaults to it and @@ -38,7 +49,7 @@ buildPythonPackage rec { "doc" ]; disabledTests = [ - "build" # needs network connection + "build" # needs network connection "test_all_estimators" # sklearn.exceptions.NotFittedError: Estimator fails to pass `check_is_fitted` even though it has been fit. ]; diff --git a/pkgs/development/python-modules/scikit-learn/default.nix b/pkgs/development/python-modules/scikit-learn/default.nix index 88927aa4f20b..819337e3da47 100644 --- a/pkgs/development/python-modules/scikit-learn/default.nix +++ b/pkgs/development/python-modules/scikit-learn/default.nix @@ -1,26 +1,27 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, -# build-system -, cython -, gfortran -, numpy -, scipy -, setuptools -, wheel + # build-system + cython, + gfortran, + numpy, + scipy, + setuptools, + wheel, -# native dependencies -, glibcLocales -, llvmPackages -, pytestCheckHook -, pythonRelaxDepsHook -, pytest-xdist -, pillow -, joblib -, threadpoolctl -, pythonOlder + # native dependencies + glibcLocales, + llvmPackages, + pytestCheckHook, + pythonRelaxDepsHook, + pytest-xdist, + pillow, + joblib, + threadpoolctl, + pythonOlder, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { buildInputs = [ pillow glibcLocales - ] ++ lib.optionals stdenv.cc.isClang [ - llvmPackages.openmp - ]; + ] ++ lib.optionals stdenv.cc.isClang [ llvmPackages.openmp ]; nativeBuildInputs = [ gfortran @@ -61,9 +60,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy.blas - ]; + propagatedBuildInputs = [ numpy.blas ]; dependencies = [ joblib @@ -77,7 +74,7 @@ buildPythonPackage rec { pytest-xdist ]; - env.LC_ALL="en_US.UTF-8"; + env.LC_ALL = "en_US.UTF-8"; preBuild = '' export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES @@ -94,14 +91,16 @@ buildPythonPackage rec { pytestFlagsArray = [ # verbose build outputs needed to debug hard-to-reproduce hydra failures "-v" - "--pyargs" "sklearn" + "--pyargs" + "sklearn" # NuSVC memmap tests causes segmentation faults in certain environments # (e.g. Hydra Darwin machines) related to a long-standing joblib issue # (https://github.com/joblib/joblib/issues/563). See also: # https://github.com/scikit-learn/scikit-learn/issues/17582 # Since we are overriding '-k' we need to include the 'disabledTests' from above manually. - "-k" "'not (NuSVC and memmap) ${toString (lib.forEach disabledTests (t: "and not ${t}"))}'" + "-k" + "'not (NuSVC and memmap) ${toString (lib.forEach disabledTests (t: "and not ${t}"))}'" ]; preCheck = '' @@ -114,11 +113,12 @@ buildPythonPackage rec { meta = with lib; { description = "A set of python modules for machine learning and data mining"; - changelog = let - major = versions.major version; - minor = versions.minor version; - dashVer = replaceStrings ["."] ["-"] version; - in + changelog = + let + major = versions.major version; + minor = versions.minor version; + dashVer = replaceStrings [ "." ] [ "-" ] version; + in "https://scikit-learn.org/stable/whats_new/v${major}.${minor}.html#version-${dashVer}"; homepage = "https://scikit-learn.org"; license = licenses.bsd3; diff --git a/pkgs/development/python-modules/scikit-misc/default.nix b/pkgs/development/python-modules/scikit-misc/default.nix index 4b995c0ba006..483acaa5de96 100644 --- a/pkgs/development/python-modules/scikit-misc/default.nix +++ b/pkgs/development/python-modules/scikit-misc/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, cython -, gfortran -, git -, meson-python -, pkg-config -, blas -, lapack -, numpy -, setuptools -, wheel -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + cython, + gfortran, + git, + meson-python, + pkg-config, + blas, + lapack, + numpy, + setuptools, + wheel, + pytestCheckHook, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; buildInputs = [ blas @@ -65,22 +64,16 @@ buildPythonPackage rec { "-Dlapack=${lapack.pname}" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # can not run tests from source directory preCheck = '' cd "$(mktemp -d)" ''; - pytestFlagsArray = [ - "--pyargs skmisc" - ]; + pytestFlagsArray = [ "--pyargs skmisc" ]; - pythonImportsCheck = [ - "skmisc" - ]; + pythonImportsCheck = [ "skmisc" ]; meta = with lib; { description = "Miscellaneous tools for scientific computing"; diff --git a/pkgs/development/python-modules/scikit-optimize/default.nix b/pkgs/development/python-modules/scikit-optimize/default.nix index 0456d3697ad2..bc5beda2b27c 100644 --- a/pkgs/development/python-modules/scikit-optimize/default.nix +++ b/pkgs/development/python-modules/scikit-optimize/default.nix @@ -1,13 +1,14 @@ -{ lib -, isPy27 -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, scipy -, scikit-learn -, pyaml -, pytestCheckHook +{ + lib, + isPy27, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + scipy, + scikit-learn, + pyaml, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { pyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Sequential model-based optimization toolbox"; diff --git a/pkgs/development/python-modules/scikit-posthocs/default.nix b/pkgs/development/python-modules/scikit-posthocs/default.nix index 1aba1d935c4e..7072fb03234a 100644 --- a/pkgs/development/python-modules/scikit-posthocs/default.nix +++ b/pkgs/development/python-modules/scikit-posthocs/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, matplotlib -, numpy -, pandas -, scipy -, seaborn -, statsmodels -, pytestCheckHook -, seaborn-data +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + matplotlib, + numpy, + pandas, + scipy, + seaborn, + statsmodels, + pytestCheckHook, + seaborn-data, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # tests require to write to home directory export SEABORN_DATA=${seaborn-data.exercise} ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "scikit_posthocs" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/scikit-rf/default.nix b/pkgs/development/python-modules/scikit-rf/default.nix index 3ee1f89adf4c..cd1f0ff3e1ec 100644 --- a/pkgs/development/python-modules/scikit-rf/default.nix +++ b/pkgs/development/python-modules/scikit-rf/default.nix @@ -1,33 +1,34 @@ -{ stdenv -, lib -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, numpy -, scipy -, pandas -, matplotlib -, tox -, coverage -, flake8 -, nbval -, pyvisa -, networkx -, ipython -, ipykernel -, ipywidgets -, jupyter-client -, sphinx-rtd-theme -, sphinx -, nbsphinx -, openpyxl -, qtpy -, pyqtgraph -, pyqt5 -, setuptools -, pytestCheckHook -, pytest-cov -, pytest-mock +{ + stdenv, + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, + pandas, + matplotlib, + tox, + coverage, + flake8, + nbval, + pyvisa, + networkx, + ipython, + ipykernel, + ipywidgets, + jupyter-client, + sphinx-rtd-theme, + sphinx, + nbsphinx, + openpyxl, + qtpy, + pyqtgraph, + pyqt5, + setuptools, + pytestCheckHook, + pytest-cov, + pytest-mock, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { hash = "sha256-TtRj9pqm5153y78MzhlVpL1EvNiNJyjUH1aOlAWU0WE="; }; - buildInputs = [ - setuptools - ]; + buildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -55,18 +54,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - plot = [ - matplotlib - ]; - xlsx = [ - openpyxl - ]; - netw = [ - networkx - ]; - visa = [ - pyvisa - ]; + plot = [ matplotlib ]; + xlsx = [ openpyxl ]; + netw = [ networkx ]; + visa = [ pyvisa ]; docs = [ ipython ipykernel @@ -97,19 +88,15 @@ buildPythonPackage rec { networkx ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; # test_calibration.py generates a divide by zero error on darwin # https://github.com/scikit-rf/scikit-rf/issues/972 - disabledTestPaths = - lib.optional (stdenv.isAarch64 && stdenv.isDarwin) - "skrf/calibration/tests/test_calibration.py"; + disabledTestPaths = lib.optional ( + stdenv.isAarch64 && stdenv.isDarwin + ) "skrf/calibration/tests/test_calibration.py"; - pythonImportsCheck = [ - "skrf" - ]; + pythonImportsCheck = [ "skrf" ]; meta = with lib; { description = "A Python library for RF/Microwave engineering"; diff --git a/pkgs/development/python-modules/scikit-survival/default.nix b/pkgs/development/python-modules/scikit-survival/default.nix index 003bc4882b91..e2d4ebff287b 100644 --- a/pkgs/development/python-modules/scikit-survival/default.nix +++ b/pkgs/development/python-modules/scikit-survival/default.nix @@ -1,18 +1,19 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, cython -, ecos -, joblib -, numexpr -, numpy -, osqp -, pandas -, setuptools-scm -, scikit-learn -, scipy -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + cython, + ecos, + joblib, + numexpr, + numpy, + osqp, + pandas, + setuptools-scm, + scikit-learn, + scipy, + pytestCheckHook, }: buildPythonPackage rec { @@ -60,19 +61,20 @@ buildPythonPackage rec { postCheck = "popd"; # very long tests, unnecessary for a leaf package - disabledTests = [ - "test_coxph" - "test_datasets" - "test_ensemble_selection" - "test_minlip" - "test_pandas_inputs" - "test_survival_svm" - "test_tree" - ] ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) - # floating point mismatch on aarch64 - # 27079905.88052468 to far from 27079905.880496684 - "test_coxnet" - ; + disabledTests = + [ + "test_coxph" + "test_datasets" + "test_ensemble_selection" + "test_minlip" + "test_pandas_inputs" + "test_survival_svm" + "test_tree" + ] + ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) + # floating point mismatch on aarch64 + # 27079905.88052468 to far from 27079905.880496684 + "test_coxnet"; meta = with lib; { description = "Survival analysis built on top of scikit-learn"; diff --git a/pkgs/development/python-modules/scikit-tda/default.nix b/pkgs/development/python-modules/scikit-tda/default.nix index c4730484f726..1f0531e68412 100644 --- a/pkgs/development/python-modules/scikit-tda/default.nix +++ b/pkgs/development/python-modules/scikit-tda/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, scipy -, scikit-learn -, matplotlib -, numba -, umap-learn -, cython -, ripser -, persim -, pillow -, kmapper -, tadasets -, pytest -, isPy27 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, + scikit-learn, + matplotlib, + numba, + umap-learn, + cython, + ripser, + persim, + pillow, + kmapper, + tadasets, + pytest, + isPy27, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { tadasets ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' pytest test diff --git a/pkgs/development/python-modules/scikits-odes/default.nix b/pkgs/development/python-modules/scikits-odes/default.nix index 4d56ab6fa944..62fb8963c271 100644 --- a/pkgs/development/python-modules/scikits-odes/default.nix +++ b/pkgs/development/python-modules/scikits-odes/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, enum34 -, gfortran -, isPy27 -, isPy3k -, numpy -, pytest -, python -, scipy -, sundials +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + enum34, + gfortran, + isPy27, + isPy3k, + numpy, + pytest, + python, + scipy, + sundials, }: buildPythonPackage rec { @@ -48,6 +49,10 @@ buildPythonPackage rec { homepage = "https://github.com/bmcage/odes"; license = licenses.bsd3; maintainers = with maintainers; [ idontgetoutmuch ]; - platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]; + platforms = [ + "aarch64-linux" + "x86_64-linux" + "x86_64-darwin" + ]; }; } diff --git a/pkgs/development/python-modules/scikits-samplerate/default.nix b/pkgs/development/python-modules/scikits-samplerate/default.nix index 5a437c07f46b..b2cd98d477de 100644 --- a/pkgs/development/python-modules/scikits-samplerate/default.nix +++ b/pkgs/development/python-modules/scikits-samplerate/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, numpy -, libsamplerate -, fetchFromGitHub +{ + lib, + buildPythonPackage, + numpy, + libsamplerate, + fetchFromGitHub, }: buildPythonPackage { @@ -17,20 +18,16 @@ buildPythonPackage { hash = "sha256-7x03Q6VXfP9p8HCk15IDZ9HeqTyi5F1AlGX/otdh8VU="; }; - buildInputs = [ - libsamplerate - ]; + buildInputs = [ libsamplerate ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; preConfigure = '' - cat > site.cfg << END - [samplerate] - library_dirs=${libsamplerate.out}/lib - include_dirs=${lib.getDev libsamplerate}/include - END + cat > site.cfg << END + [samplerate] + library_dirs=${libsamplerate.out}/lib + include_dirs=${lib.getDev libsamplerate}/include + END ''; doCheck = false; @@ -40,5 +37,4 @@ buildPythonPackage { description = "High quality sampling rate convertion from audio data in numpy arrays"; license = licenses.gpl2; }; - } diff --git a/pkgs/development/python-modules/scim2-filter-parser/default.nix b/pkgs/development/python-modules/scim2-filter-parser/default.nix index f3d37df7735c..d3fcb5e4ddae 100644 --- a/pkgs/development/python-modules/scim2-filter-parser/default.nix +++ b/pkgs/development/python-modules/scim2-filter-parser/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, django -, sly -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + django, + sly, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,28 +31,20 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace pyproject.toml \ --replace "poetry.masonry.api" "poetry.core.masonry.api" ''; - propagatedBuildInputs = [ - sly - ]; + propagatedBuildInputs = [ sly ]; passthru.optional-dependencies = { - django-query = [ - django - ]; + django-query = [ django ]; }; - pythonImportsCheck = [ - "scim2_filter_parser" - ]; + pythonImportsCheck = [ "scim2_filter_parser" ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 57769c7f6afe..19bba41bfa50 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -1,33 +1,34 @@ -{ lib -, stdenv -, fetchFromGitHub -, fetchpatch -, fetchurl -, writeText -, python -, pythonOlder -, buildPythonPackage -, cython -, gfortran -, meson-python -, nukeReferences -, pkg-config -, pythran -, wheel -, setuptools -, hypothesis -, pytest7CheckHook -, pytest-xdist -, numpy -, pybind11 -, pooch -, libxcrypt -, xsimd -, blas -, lapack +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + fetchurl, + writeText, + python, + pythonOlder, + buildPythonPackage, + cython, + gfortran, + meson-python, + nukeReferences, + pkg-config, + pythran, + wheel, + setuptools, + hypothesis, + pytest7CheckHook, + pytest-xdist, + numpy, + pybind11, + pooch, + libxcrypt, + xsimd, + blas, + lapack, -# Reverse dependency -, sage + # Reverse dependency + sage, }: let @@ -45,7 +46,8 @@ let face = "11i8x29h80y7hhyqhil1fg8mxag5f827g33lhnsf44qk116hp2wx"; }; datasets = lib.mapAttrs ( - d: hash: fetchurl { + d: hash: + fetchurl { url = "https://raw.githubusercontent.com/scipy/dataset-${d}/main/${d}.dat"; sha256 = hash; } @@ -58,7 +60,8 @@ let host-python-path = '${python.interpreter}' host-python-version = '${python.pythonVersion}' ''; -in buildPythonPackage { +in +buildPythonPackage { inherit pname version; format = "pyproject"; @@ -75,9 +78,7 @@ in buildPythonPackage { (fetchpatch { url = "https://github.com/scipy/scipy/commit/dd50ac9d98dbb70625333a23e3a90e493228e3be.patch"; hash = "sha256-Vf6/hhwu6X5s8KWhq8bUZKtSkdVu/GtEpGtj8Olxe7s="; - excludes = [ - "doc/source/dev/contributor/meson_advanced.rst" - ]; + excludes = [ "doc/source/dev/contributor/meson_advanced.rst" ]; }) # Fix for https://github.com/scipy/scipy/issues/20300 until 1.13.1 is # released. Patch is based upon: @@ -113,9 +114,7 @@ in buildPythonPackage { pybind11 pooch xsimd - ] ++ lib.optionals (pythonOlder "3.9") [ - libxcrypt - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ libxcrypt ]; propagatedBuildInputs = [ numpy ]; @@ -141,18 +140,23 @@ in buildPythonPackage { doCheck = !(stdenv.isx86_64 && stdenv.isDarwin); - preConfigure = '' - # Helps parallelization a bit - export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES - # We download manually the datasets and this variable tells the pooch - # library where these files are cached. See also: - # https://github.com/scipy/scipy/pull/18518#issuecomment-1562350648 And at: - # https://github.com/scipy/scipy/pull/17965#issuecomment-1560759962 - export XDG_CACHE_HOME=$PWD; export HOME=$(mktemp -d); mkdir scipy-data - '' + (lib.concatStringsSep "\n" (lib.mapAttrsToList (d: dpath: - # Actually copy the datasets - "cp ${dpath} scipy-data/${d}.dat" - ) datasets)); + preConfigure = + '' + # Helps parallelization a bit + export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES + # We download manually the datasets and this variable tells the pooch + # library where these files are cached. See also: + # https://github.com/scipy/scipy/pull/18518#issuecomment-1562350648 And at: + # https://github.com/scipy/scipy/pull/17965#issuecomment-1560759962 + export XDG_CACHE_HOME=$PWD; export HOME=$(mktemp -d); mkdir scipy-data + '' + + (lib.concatStringsSep "\n" ( + lib.mapAttrsToList ( + d: dpath: + # Actually copy the datasets + "cp ${dpath} scipy-data/${d}.dat" + ) datasets + )); mesonFlags = [ "-Dblas=${blas.pname}" @@ -188,15 +192,17 @@ in buildPythonPackage { passthru = { inherit blas; - updateScript = [ - ./update.sh - # Pass it this file name as argument - (builtins.unsafeGetAttrPos "pname" python.pkgs.scipy).file - ] - # Pass it the names of the datasets to update their hashes - ++ (builtins.attrNames datasetsHashes) - ; - tests = { inherit sage; }; + updateScript = + [ + ./update.sh + # Pass it this file name as argument + (builtins.unsafeGetAttrPos "pname" python.pkgs.scipy).file + ] + # Pass it the names of the datasets to update their hashes + ++ (builtins.attrNames datasetsHashes); + tests = { + inherit sage; + }; }; SCIPY_USE_G77_ABI_WRAPPER = 1; diff --git a/pkgs/development/python-modules/scmrepo/default.nix b/pkgs/development/python-modules/scmrepo/default.nix index e902cac51101..3a31a78f2d85 100644 --- a/pkgs/development/python-modules/scmrepo/default.nix +++ b/pkgs/development/python-modules/scmrepo/default.nix @@ -1,20 +1,21 @@ -{ lib -, asyncssh -, buildPythonPackage -, dulwich -, dvc-http -, dvc-objects -, fetchFromGitHub -, fsspec -, funcy -, gitpython -, pathspec -, pygit2 -, pygtrie -, pythonOlder -, setuptools -, setuptools-scm -, shortuuid +{ + lib, + asyncssh, + buildPythonPackage, + dulwich, + dvc-http, + dvc-objects, + fetchFromGitHub, + fsspec, + funcy, + gitpython, + pathspec, + pygit2, + pygtrie, + pythonOlder, + setuptools, + setuptools-scm, + shortuuid, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { # Requires a running Docker instance doCheck = false; - pythonImportsCheck = [ - "scmrepo" - ]; + pythonImportsCheck = [ "scmrepo" ]; meta = with lib; { description = "SCM wrapper and fsspec filesystem"; diff --git a/pkgs/development/python-modules/scooby/default.nix b/pkgs/development/python-modules/scooby/default.nix index 229ba0526a97..1626e4a48e7a 100644 --- a/pkgs/development/python-modules/scooby/default.nix +++ b/pkgs/development/python-modules/scooby/default.nix @@ -1,14 +1,15 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytest-console-scripts -, pytestCheckHook -, pythonOlder -, pyvips -, scipy -, setuptools-scm +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytest-console-scripts, + pytestCheckHook, + pythonOlder, + pyvips, + scipy, + setuptools-scm, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-KXhLN8KPz61l+4v88+kVSvodT6OXDJ3Pw9A9aFWSqYE="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ beautifulsoup4 @@ -42,9 +41,7 @@ buildPythonPackage rec { export PATH="$PATH:$out/bin"; ''; - pythonImportsCheck = [ - "scooby" - ]; + pythonImportsCheck = [ "scooby" ]; disabledTests = [ # Tests have additions requirements (e.g., time and module) diff --git a/pkgs/development/python-modules/scour/default.nix b/pkgs/development/python-modules/scour/default.nix index 2b757d4dc3a2..0eaf84083caa 100644 --- a/pkgs/development/python-modules/scour/default.nix +++ b/pkgs/development/python-modules/scour/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, +}: buildPythonPackage rec { pname = "scour"; @@ -18,8 +23,8 @@ buildPythonPackage rec { meta = with lib; { description = "An SVG Optimizer / Cleaner "; mainProgram = "scour"; - homepage = "https://github.com/scour-project/scour"; - license = licenses.asl20; + homepage = "https://github.com/scour-project/scour"; + license = licenses.asl20; maintainers = with maintainers; [ worldofpeace ]; }; } diff --git a/pkgs/development/python-modules/scp/default.nix b/pkgs/development/python-modules/scp/default.nix index 3be97953547f..3a434a496cf3 100644 --- a/pkgs/development/python-modules/scp/default.nix +++ b/pkgs/development/python-modules/scp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, paramiko -, python +{ + lib, + buildPythonPackage, + fetchPypi, + paramiko, + python, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-ZPABWJmz0hLLgIjn1A668Ghoif8OJD1cEkLv6LUPBT4="; }; - propagatedBuildInputs = [ - paramiko - ]; + propagatedBuildInputs = [ paramiko ]; checkPhase = '' SCPPY_PORT=10022 ${python.interpreter} test.py diff --git a/pkgs/development/python-modules/scramp/default.nix b/pkgs/development/python-modules/scramp/default.nix index aa6013589cd3..df14875267d8 100644 --- a/pkgs/development/python-modules/scramp/default.nix +++ b/pkgs/development/python-modules/scramp/default.nix @@ -1,13 +1,14 @@ -{ lib -, asn1crypto -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, pytest-mock -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + asn1crypto, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + pytest-mock, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -29,11 +30,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - asn1crypto - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ asn1crypto ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ pytest-mock @@ -47,13 +44,9 @@ buildPythonPackage rec { sed -i "/dynamic =/d" pyproject.toml ''; - pythonImportsCheck = [ - "scramp" - ]; + pythonImportsCheck = [ "scramp" ]; - disabledTests = [ - "test_readme" - ]; + disabledTests = [ "test_readme" ]; meta = with lib; { description = "Implementation of the SCRAM authentication protocol"; diff --git a/pkgs/development/python-modules/scrap-engine/default.nix b/pkgs/development/python-modules/scrap-engine/default.nix index 785b7280c746..fadb7ba399d6 100644 --- a/pkgs/development/python-modules/scrap-engine/default.nix +++ b/pkgs/development/python-modules/scrap-engine/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/scrapy-deltafetch/default.nix b/pkgs/development/python-modules/scrapy-deltafetch/default.nix index 755b3f02df65..1a7a426af6a3 100644 --- a/pkgs/development/python-modules/scrapy-deltafetch/default.nix +++ b/pkgs/development/python-modules/scrapy-deltafetch/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, scrapy, bsddb3 }: +{ + lib, + fetchPypi, + buildPythonPackage, + scrapy, + bsddb3, +}: buildPythonPackage rec { pname = "scrapy-deltafetch"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "13f7968bd0ffae133e2a1dede215e683b8c95285f046260603a5c3e25f2d57b0"; }; - propagatedBuildInputs = [ bsddb3 scrapy ]; + propagatedBuildInputs = [ + bsddb3 + scrapy + ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/scrapy-fake-useragent/default.nix b/pkgs/development/python-modules/scrapy-fake-useragent/default.nix index f4474235cd23..e987c8ab4c6b 100644 --- a/pkgs/development/python-modules/scrapy-fake-useragent/default.nix +++ b/pkgs/development/python-modules/scrapy-fake-useragent/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fake-useragent -, faker -, fetchFromGitHub -, pytest-mock -, pytestCheckHook -, pythonOlder -, scrapy +{ + lib, + buildPythonPackage, + fake-useragent, + faker, + fetchFromGitHub, + pytest-mock, + pytestCheckHook, + pythonOlder, + scrapy, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { scrapy ]; - pythonImportsCheck = [ - "scrapy_fake_useragent" - ]; + pythonImportsCheck = [ "scrapy_fake_useragent" ]; disabledTests = [ # AttributeError: 'RetryUserAgentMiddleware' object has no attribute 'EXCEPTIONS_TO_RETRY' diff --git a/pkgs/development/python-modules/scrapy-splash/default.nix b/pkgs/development/python-modules/scrapy-splash/default.nix index da37c1712aba..f3de180ef948 100644 --- a/pkgs/development/python-modules/scrapy-splash/default.nix +++ b/pkgs/development/python-modules/scrapy-splash/default.nix @@ -1,4 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage, scrapy, six }: +{ + lib, + fetchPypi, + buildPythonPackage, + scrapy, + six, +}: buildPythonPackage rec { pname = "scrapy-splash"; @@ -10,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-7PEwJk3AjgxGHIYH7K13dGimStAd7bJinA+BvV/NcpU="; }; - propagatedBuildInputs = [ scrapy six ]; + propagatedBuildInputs = [ + scrapy + six + ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/scrapy/default.nix b/pkgs/development/python-modules/scrapy/default.nix index 058f1f8f5607..9c688c7445d3 100644 --- a/pkgs/development/python-modules/scrapy/default.nix +++ b/pkgs/development/python-modules/scrapy/default.nix @@ -1,34 +1,35 @@ -{ lib -, stdenv -, botocore -, buildPythonPackage -, cryptography -, cssselect -, fetchPypi -, fetchpatch -, glibcLocales -, installShellFiles -, itemadapter -, itemloaders -, jmespath -, lxml -, packaging -, parsel -, pexpect -, protego -, pydispatcher -, pyopenssl -, pytestCheckHook -, pythonOlder -, queuelib -, service-identity -, setuptools -, sybil -, testfixtures -, tldextract -, twisted -, w3lib -, zope-interface +{ + lib, + stdenv, + botocore, + buildPythonPackage, + cryptography, + cssselect, + fetchPypi, + fetchpatch, + glibcLocales, + installShellFiles, + itemadapter, + itemloaders, + jmespath, + lxml, + packaging, + parsel, + pexpect, + protego, + pydispatcher, + pyopenssl, + pytestCheckHook, + pythonOlder, + queuelib, + service-identity, + setuptools, + sybil, + testfixtures, + tldextract, + twisted, + w3lib, + zope-interface, }: buildPythonPackage rec { @@ -98,45 +99,47 @@ buildPythonPackage rec { "docs" ]; - disabledTests = [ - # It's unclear if the failures are related to libxml2, https://github.com/NixOS/nixpkgs/pull/123890 - "test_nested_css" - "test_nested_xpath" - "test_flavor_detection" - "test_follow_whitespace" - # Requires network access - "AnonymousFTPTestCase" - "FTPFeedStorageTest" - "FeedExportTest" - "test_custom_asyncio_loop_enabled_true" - "test_custom_loop_asyncio" - "test_custom_loop_asyncio_deferred_signal" - "FileFeedStoragePreFeedOptionsTest" # https://github.com/scrapy/scrapy/issues/5157 - "test_persist" - "test_timeout_download_from_spider_nodata_rcvd" - "test_timeout_download_from_spider_server_hangs" - "test_unbounded_response" - "CookiesMiddlewareTest" - # Depends on uvloop - "test_asyncio_enabled_reactor_different_loop" - "test_asyncio_enabled_reactor_same_loop" - # Fails with AssertionError - "test_peek_fifo" - "test_peek_one_element" - "test_peek_lifo" - "test_callback_kwargs" - # Test fails on Hydra - "test_start_requests_laziness" - ] ++ lib.optionals stdenv.isDarwin [ - "test_xmliter_encoding" - "test_download" - "test_reactor_default_twisted_reactor_select" - "URIParamsSettingTest" - "URIParamsFeedOptionTest" - # flaky on darwin-aarch64 - "test_fixed_delay" - "test_start_requests_laziness" - ]; + disabledTests = + [ + # It's unclear if the failures are related to libxml2, https://github.com/NixOS/nixpkgs/pull/123890 + "test_nested_css" + "test_nested_xpath" + "test_flavor_detection" + "test_follow_whitespace" + # Requires network access + "AnonymousFTPTestCase" + "FTPFeedStorageTest" + "FeedExportTest" + "test_custom_asyncio_loop_enabled_true" + "test_custom_loop_asyncio" + "test_custom_loop_asyncio_deferred_signal" + "FileFeedStoragePreFeedOptionsTest" # https://github.com/scrapy/scrapy/issues/5157 + "test_persist" + "test_timeout_download_from_spider_nodata_rcvd" + "test_timeout_download_from_spider_server_hangs" + "test_unbounded_response" + "CookiesMiddlewareTest" + # Depends on uvloop + "test_asyncio_enabled_reactor_different_loop" + "test_asyncio_enabled_reactor_same_loop" + # Fails with AssertionError + "test_peek_fifo" + "test_peek_one_element" + "test_peek_lifo" + "test_callback_kwargs" + # Test fails on Hydra + "test_start_requests_laziness" + ] + ++ lib.optionals stdenv.isDarwin [ + "test_xmliter_encoding" + "test_download" + "test_reactor_default_twisted_reactor_select" + "URIParamsSettingTest" + "URIParamsFeedOptionTest" + # flaky on darwin-aarch64 + "test_fixed_delay" + "test_start_requests_laziness" + ]; postInstall = '' installManPage extras/scrapy.1 @@ -145,9 +148,7 @@ buildPythonPackage rec { --bash extras/scrapy_bash_completion ''; - pythonImportsCheck = [ - "scrapy" - ]; + pythonImportsCheck = [ "scrapy" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/screed/default.nix b/pkgs/development/python-modules/screed/default.nix index dd5a637e87c1..5663de6dfa28 100644 --- a/pkgs/development/python-modules/screed/default.nix +++ b/pkgs/development/python-modules/screed/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, setuptools-scm -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/screeninfo/default.nix b/pkgs/development/python-modules/screeninfo/default.nix index 40479baca0d1..dc32cbb1dd6b 100644 --- a/pkgs/development/python-modules/screeninfo/default.nix +++ b/pkgs/development/python-modules/screeninfo/default.nix @@ -1,13 +1,14 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, libX11 -, libXinerama -, libXrandr -, poetry-core -, pytestCheckHook -, pythonOlder +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + libX11, + libXinerama, + libXrandr, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-TEy4wff0eRRkX98yK9054d33Tm6G6qWrd9Iv+ITcFmA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace screeninfo/enumerators/xinerama.py \ @@ -37,9 +36,7 @@ buildPythonPackage rec { --replace 'load_library("Xrandr")' 'ctypes.cdll.LoadLibrary("${libXrandr}/lib/libXrandr.so")' ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # We don't have a screen diff --git a/pkgs/development/python-modules/screenlogicpy/default.nix b/pkgs/development/python-modules/screenlogicpy/default.nix index 9245c427e15b..1b2a68910955 100644 --- a/pkgs/development/python-modules/screenlogicpy/default.nix +++ b/pkgs/development/python-modules/screenlogicpy/default.nix @@ -1,12 +1,13 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, pytest-asyncio -, setuptools -, pytestCheckHook +{ + lib, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + pytest-asyncio, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,38 +24,34 @@ buildPythonPackage rec { hash = "sha256-z6cM0sihZvOHCA3v1DYQEev0axf4AcqEW13WA1EMhQM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - async-timeout - ]; + propagatedBuildInputs = [ async-timeout ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook ]; - disabledTests = [ - # Tests require network access - "test_async_discovery" - "test_async" - "test_asyncio_gateway_discovery" - "test_discovery_async_discover" - "test_gateway_discovery" - "test_gateway" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # Tests block on Python 3.12 - "test_sub_unsub" - "test_attach_existing" - "test_login_async_connect_to_gateway" - "test_login_async_gateway_connect" - ]; + disabledTests = + [ + # Tests require network access + "test_async_discovery" + "test_async" + "test_asyncio_gateway_discovery" + "test_discovery_async_discover" + "test_gateway_discovery" + "test_gateway" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # Tests block on Python 3.12 + "test_sub_unsub" + "test_attach_existing" + "test_login_async_connect_to_gateway" + "test_login_async_gateway_connect" + ]; - pythonImportsCheck = [ - "screenlogicpy" - ]; + pythonImportsCheck = [ "screenlogicpy" ]; meta = with lib; { description = "Python interface for Pentair Screenlogic devices"; diff --git a/pkgs/development/python-modules/scripttest/default.nix b/pkgs/development/python-modules/scripttest/default.nix index f61c1747e059..452b17c8a142 100644 --- a/pkgs/development/python-modules/scripttest/default.nix +++ b/pkgs/development/python-modules/scripttest/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/scs/default.nix b/pkgs/development/python-modules/scs/default.nix index 3584174bf284..4afc0219d900 100644 --- a/pkgs/development/python-modules/scs/default.nix +++ b/pkgs/development/python-modules/scs/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, meson-python -, pkg-config -, Accelerate -, blas -, lapack -, numpy -, scipy +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + meson-python, + pkg-config, + Accelerate, + blas, + lapack, + numpy, + scipy, # check inputs -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -55,12 +56,14 @@ buildPythonPackage rec { pkg-config ]; - buildInputs = if stdenv.isDarwin then [ - Accelerate - ] else [ - blas - lapack - ]; + buildInputs = + if stdenv.isDarwin then + [ Accelerate ] + else + [ + blas + lapack + ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/sdds/default.nix b/pkgs/development/python-modules/sdds/default.nix index 805121544080..6331affe5d6d 100644 --- a/pkgs/development/python-modules/sdds/default.nix +++ b/pkgs/development/python-modules/sdds/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-4phANoYohuCaLbzO4TgRkSS+UHE8CnzonpEd46xzD0M="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sdds" - ]; + pythonImportsCheck = [ "sdds" ]; meta = with lib; { description = "Module to handle SDDS files"; diff --git a/pkgs/development/python-modules/sdkmanager/default.nix b/pkgs/development/python-modules/sdkmanager/default.nix index ebace96d136b..9208a146faf6 100644 --- a/pkgs/development/python-modules/sdkmanager/default.nix +++ b/pkgs/development/python-modules/sdkmanager/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, pythonOlder -, pythonAtLeast -, argcomplete -, requests -, looseversion -, gnupg +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pythonOlder, + pythonAtLeast, + argcomplete, + requests, + looseversion, + gnupg, }: buildPythonPackage rec { @@ -26,10 +27,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ argcomplete requests - ] ++ requests.optional-dependencies.socks - ++ lib.optionals (pythonAtLeast "3.12") [ - looseversion - ]; + ] ++ requests.optional-dependencies.socks ++ lib.optionals (pythonAtLeast "3.12") [ looseversion ]; postInstall = '' wrapProgram $out/bin/sdkmanager \ diff --git a/pkgs/development/python-modules/sdnotify/default.nix b/pkgs/development/python-modules/sdnotify/default.nix index c6c0fb224b31..7f191ced6ba8 100644 --- a/pkgs/development/python-modules/sdnotify/default.nix +++ b/pkgs/development/python-modules/sdnotify/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/seaborn/default.nix b/pkgs/development/python-modules/seaborn/default.nix index beaf5d2e109b..16e9d1b98078 100644 --- a/pkgs/development/python-modules/seaborn/default.nix +++ b/pkgs/development/python-modules/seaborn/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, flit-core -, matplotlib -, pytest-xdist -, pytestCheckHook -, numpy -, pandas -, pythonOlder -, scipy -, statsmodels +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + flit-core, + matplotlib, + pytest-xdist, + pytestCheckHook, + numpy, + pandas, + pythonOlder, + scipy, + statsmodels, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-aGIVcdG/XN999nYBHh3lJqGa3QVt0j8kmzaxdkULznY="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ matplotlib @@ -49,21 +48,21 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = [ - # requires internet connection - "test_load_dataset_string_error" - ] ++ lib.optionals (!stdenv.hostPlatform.isx86) [ - # overly strict float tolerances - "TestDendrogram" - ]; + disabledTests = + [ + # requires internet connection + "test_load_dataset_string_error" + ] + ++ lib.optionals (!stdenv.hostPlatform.isx86) [ + # overly strict float tolerances + "TestDendrogram" + ]; # All platforms should use Agg. Let's set it explicitly to avoid probing GUI # backends (leads to crashes on macOS). - env.MPLBACKEND="Agg"; + env.MPLBACKEND = "Agg"; - pythonImportsCheck = [ - "seaborn" - ]; + pythonImportsCheck = [ "seaborn" ]; meta = with lib; { description = "Statistical data visualization"; diff --git a/pkgs/development/python-modules/seabreeze/default.nix b/pkgs/development/python-modules/seabreeze/default.nix index 119e36d663ef..e6907f9c5f7a 100644 --- a/pkgs/development/python-modules/seabreeze/default.nix +++ b/pkgs/development/python-modules/seabreeze/default.nix @@ -1,24 +1,25 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage +{ + lib, + fetchFromGitHub, + buildPythonPackage, -# build-system -, cython -, git -, pkgconfig -, setuptools -, setuptools-scm + # build-system + cython, + git, + pkgconfig, + setuptools, + setuptools-scm, -# dependneices -, numpy + # dependneices + numpy, -# optional-dependenices -, pyusb + # optional-dependenices + pyusb, -# tests -, mock -, pytestCheckHook -, zipp + # tests + mock, + pytestCheckHook, + zipp, }: ## Usage @@ -47,14 +48,10 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; passthru.optional-dependencies = { - pyseabreeze = [ - pyusb - ]; + pyseabreeze = [ pyusb ]; }; postInstall = '' @@ -74,7 +71,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/ap--/python-seabreeze"; description = "A python library to access Ocean Optics spectrometers"; - maintainers = []; + maintainers = [ ]; license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/seasonal/default.nix b/pkgs/development/python-modules/seasonal/default.nix index d38559ff2eed..f6aa8d2e3646 100644 --- a/pkgs/development/python-modules/seasonal/default.nix +++ b/pkgs/development/python-modules/seasonal/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, numpy -, scipy -, pandas -, matplotlib -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + numpy, + scipy, + pandas, + matplotlib, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'setup_requires=["pytest-runner"],' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -41,15 +40,15 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - csv = [ - pandas - ]; - plot = [ - matplotlib - ]; + csv = [ pandas ]; + plot = [ matplotlib ]; }; - pythonImportsCheck = [ "seasonal" "seasonal.trend" "seasonal.periodogram" ]; + pythonImportsCheck = [ + "seasonal" + "seasonal.trend" + "seasonal.periodogram" + ]; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); diff --git a/pkgs/development/python-modules/seatconnect/default.nix b/pkgs/development/python-modules/seatconnect/default.nix index 0acce07138e6..a1a8bc36b311 100644 --- a/pkgs/development/python-modules/seatconnect/default.nix +++ b/pkgs/development/python-modules/seatconnect/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, beautifulsoup4 -, buildPythonPackage -, cryptography -, fetchFromGitHub -, lxml -, pyjwt -, pythonOlder -, setuptools-scm -, xmltodict +{ + lib, + aiohttp, + beautifulsoup4, + buildPythonPackage, + cryptography, + fetchFromGitHub, + lxml, + pyjwt, + pythonOlder, + setuptools-scm, + xmltodict, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-HITVrI0o94a61gy/TYSGFtLBYX4Rw/dK1o2/KsvHLTQ="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ aiohttp @@ -41,9 +40,7 @@ buildPythonPackage rec { # Project only has a dummy test doCheck = false; - pythonImportsCheck = [ - "seatconnect" - ]; + pythonImportsCheck = [ "seatconnect" ]; meta = with lib; { description = "Python module to communicate with Seat Connect"; diff --git a/pkgs/development/python-modules/seccomp/default.nix b/pkgs/development/python-modules/seccomp/default.nix index 3257722b1782..2e8830277b94 100644 --- a/pkgs/development/python-modules/seccomp/default.nix +++ b/pkgs/development/python-modules/seccomp/default.nix @@ -1,11 +1,14 @@ -{ buildPythonPackage, lib -, cython, libseccomp +{ + buildPythonPackage, + lib, + cython, + libseccomp, }: buildPythonPackage rec { - pname = "libseccomp"; + pname = "libseccomp"; version = libseccomp.version; - src = libseccomp.pythonsrc; + src = libseccomp.pythonsrc; VERSION_RELEASE = version; # used by build system @@ -23,7 +26,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python bindings for libseccomp"; - license = with licenses; [ lgpl21 ]; + license = with licenses; [ lgpl21 ]; maintainers = with maintainers; [ thoughtpolice ]; }; } diff --git a/pkgs/development/python-modules/secp256k1/default.nix b/pkgs/development/python-modules/secp256k1/default.nix index 2e2455d4e349..dd311a764253 100644 --- a/pkgs/development/python-modules/secp256k1/default.nix +++ b/pkgs/development/python-modules/secp256k1/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkg-config -, pytestCheckHook -, cffi -, secp256k1 +{ + lib, + buildPythonPackage, + fetchPypi, + pkg-config, + pytestCheckHook, + cffi, + secp256k1, }: buildPythonPackage rec { @@ -25,7 +26,10 @@ buildPythonPackage rec { nativeBuildInputs = [ pkg-config ]; - propagatedBuildInputs = [ cffi secp256k1 ]; + propagatedBuildInputs = [ + cffi + secp256k1 + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/secretstorage/default.nix b/pkgs/development/python-modules/secretstorage/default.nix index 59584ee9170f..8e59e1efe957 100644 --- a/pkgs/development/python-modules/secretstorage/default.nix +++ b/pkgs/development/python-modules/secretstorage/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, jeepney -, pythonOlder +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + jeepney, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # Needs a D-Bus session doCheck = false; - pythonImportsCheck = [ - "secretstorage" - ]; + pythonImportsCheck = [ "secretstorage" ]; meta = with lib; { description = "Python bindings to FreeDesktop.org Secret Service API"; diff --git a/pkgs/development/python-modules/sectools/default.nix b/pkgs/development/python-modules/sectools/default.nix index f65c80aabdc1..9607ad4ab5ba 100644 --- a/pkgs/development/python-modules/sectools/default.nix +++ b/pkgs/development/python-modules/sectools/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ldap3 -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ldap3, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-k3k1/DFmv0resnsNht/C+2Xh6qbSQmk83eN/3vtDU00="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - ldap3 - ]; + propagatedBuildInputs = [ ldap3 ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "sectools" - ]; + pythonImportsCheck = [ "sectools" ]; meta = with lib; { description = "library containing functions to write security tools"; diff --git a/pkgs/development/python-modules/secure/default.nix b/pkgs/development/python-modules/secure/default.nix index c1fbd3e83e2a..6bbe9e2b5aa5 100644 --- a/pkgs/development/python-modules/secure/default.nix +++ b/pkgs/development/python-modules/secure/default.nix @@ -1,6 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27 -, maya -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + maya, + requests, }: buildPythonPackage rec { @@ -16,7 +20,10 @@ buildPythonPackage rec { sha256 = "1ajz1nx0nnhsc80xbgbc42ib2h08qnccvsp5i583rd9b0f9pklwk"; }; - propagatedBuildInputs = [ maya requests ]; + propagatedBuildInputs = [ + maya + requests + ]; # no tests in release doCheck = false; diff --git a/pkgs/development/python-modules/securetar/default.nix b/pkgs/development/python-modules/securetar/default.nix index b4c8c90989ec..5532859810d5 100644 --- a/pkgs/development/python-modules/securetar/default.nix +++ b/pkgs/development/python-modules/securetar/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-D50ceRlK+v5Uo3qBBpVtKwI8zKU/qh1Njn3qeKM4LiY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "securetar" - ]; + pythonImportsCheck = [ "securetar" ]; meta = with lib; { description = "Module to handle tarfile backups"; diff --git a/pkgs/development/python-modules/securityreporter/default.nix b/pkgs/development/python-modules/securityreporter/default.nix index df2f60a22cff..e8ec6c6510cf 100644 --- a/pkgs/development/python-modules/securityreporter/default.nix +++ b/pkgs/development/python-modules/securityreporter/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, docker -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, requests -, responses +{ + lib, + buildPythonPackage, + docker, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + requests, + responses, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-mBZVsoDnDRYHdcFzi4kuwmAJDRdpysUbNRcDzIhYRGY="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; nativeCheckInputs = [ docker @@ -37,9 +34,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "reporter" - ]; + pythonImportsCheck = [ "reporter" ]; disabledTestPaths = [ # Test require a running Docker instance diff --git a/pkgs/development/python-modules/seedir/default.nix b/pkgs/development/python-modules/seedir/default.nix index 6c5e5bc899f2..f6bf8c953e54 100644 --- a/pkgs/development/python-modules/seedir/default.nix +++ b/pkgs/development/python-modules/seedir/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, natsort -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + natsort, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-ioez5lBNyiBK3poL2Px3KtCQeM+Gh2d4iD3SoAIHFAk="; }; - propagatedBuildInputs = [ - natsort - ]; + propagatedBuildInputs = [ natsort ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "seedir" - ]; + pythonImportsCheck = [ "seedir" ]; - pytestFlagsArray = [ - "tests/tests.py" - ]; + pytestFlagsArray = [ "tests/tests.py" ]; meta = with lib; { description = "Module for for creating, editing, and reading folder tree diagrams"; diff --git a/pkgs/development/python-modules/seekpath/default.nix b/pkgs/development/python-modules/seekpath/default.nix index 39b173d0875f..16b1c0a838b9 100644 --- a/pkgs/development/python-modules/seekpath/default.nix +++ b/pkgs/development/python-modules/seekpath/default.nix @@ -1,4 +1,15 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, numpy, future, spglib, glibcLocales, pytest, scipy }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + numpy, + future, + spglib, + glibcLocales, + pytest, + scipy, +}: buildPythonPackage rec { pname = "seekpath"; @@ -16,7 +27,12 @@ buildPythonPackage rec { LC_ALL = "en_US.utf-8"; # scipy isn't listed in install_requires, but used in package - propagatedBuildInputs = [ numpy spglib future scipy ]; + propagatedBuildInputs = [ + numpy + spglib + future + scipy + ]; nativeBuildInputs = [ glibcLocales ]; @@ -34,4 +50,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ psyanticy ]; }; } - diff --git a/pkgs/development/python-modules/segments/default.nix b/pkgs/development/python-modules/segments/default.nix index e55eb4c49bad..091bf550bdf3 100644 --- a/pkgs/development/python-modules/segments/default.nix +++ b/pkgs/development/python-modules/segments/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, setuptools -, regex -, csvw -, clldutils -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + setuptools, + regex, + csvw, + clldutils, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail "--cov" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ regex diff --git a/pkgs/development/python-modules/segno/default.nix b/pkgs/development/python-modules/segno/default.nix index 21a10677c5e1..d87b902458fe 100644 --- a/pkgs/development/python-modules/segno/default.nix +++ b/pkgs/development/python-modules/segno/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, importlib-metadata + # dependencies + importlib-metadata, -# tests -, pytestCheckHook -, pypng -, pyzbar + # tests + pytestCheckHook, + pypng, + pyzbar, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { hash = "sha256-5CDrQhbgUydz1ORp4ktZwhcgbJxQq1snKIAA0v4mZ00="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; nativeCheckInputs = [ pytestCheckHook @@ -46,9 +43,7 @@ buildPythonPackage rec { "test_plugin" ]; - pythonImportsCheck = [ - "segno" - ]; + pythonImportsCheck = [ "segno" ]; meta = with lib; { changelog = "https://github.com/heuer/segno/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/segyio/default.nix b/pkgs/development/python-modules/segyio/default.nix index fb1f4d28e616..aba2d06a5e2a 100644 --- a/pkgs/development/python-modules/segyio/default.nix +++ b/pkgs/development/python-modules/segyio/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, ninja -, python -, scikit-build -, pytest -, numpy +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + ninja, + python, + scikit-build, + pytest, + numpy, }: stdenv.mkDerivation rec { @@ -30,12 +31,20 @@ stdenv.mkDerivation rec { hash = "sha256-+N2JvHBxpdbysn4noY/9LZ4npoQ9143iFEzaxoafnms="; }; - nativeBuildInputs = [ cmake ninja python scikit-build ]; + nativeBuildInputs = [ + cmake + ninja + python + scikit-build + ]; doCheck = true; # I'm not modifying the checkPhase nor adding a pytestCheckHook because the pytest is called # within the cmake test phase - nativeCheckInputs = [ pytest numpy ]; + nativeCheckInputs = [ + pytest + numpy + ]; meta = with lib; { description = "Fast Python library for SEGY files"; diff --git a/pkgs/development/python-modules/selectors2/default.nix b/pkgs/development/python-modules/selectors2/default.nix index ef9df617b6df..6bd80826b7a0 100644 --- a/pkgs/development/python-modules/selectors2/default.nix +++ b/pkgs/development/python-modules/selectors2/default.nix @@ -1,5 +1,12 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi -, nose, psutil, mock }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + nose, + psutil, + mock, +}: buildPythonPackage rec { version = "2.0.2"; @@ -11,11 +18,13 @@ buildPythonPackage rec { sha256 = "1f1bbaac203a23fbc851dc1b5a6e92c50698cc8cefa5873eb5b89eef53d1d82b"; }; - patches = [ - ./mapping-import.patch - ]; + patches = [ ./mapping-import.patch ]; - nativeCheckInputs = [ nose psutil mock ]; + nativeCheckInputs = [ + nose + psutil + mock + ]; checkPhase = '' # https://github.com/NixOS/nixpkgs/pull/46186#issuecomment-419450064 diff --git a/pkgs/development/python-modules/selenium-wire/default.nix b/pkgs/development/python-modules/selenium-wire/default.nix index bbc98666394b..defbf1fe8fdc 100644 --- a/pkgs/development/python-modules/selenium-wire/default.nix +++ b/pkgs/development/python-modules/selenium-wire/default.nix @@ -1,24 +1,25 @@ -{ lib -, blinker -, brotli -, buildPythonPackage -, certifi -, fetchFromGitHub -, h2 -, hyperframe -, kaitaistruct -, pyasn1 -, httpbin -, pyopenssl -, pyparsing -, pysocks -, gunicorn -, pytestCheckHook -, pythonOlder -, selenium -, setuptools -, wsproto -, zstandard +{ + lib, + blinker, + brotli, + buildPythonPackage, + certifi, + fetchFromGitHub, + h2, + hyperframe, + kaitaistruct, + pyasn1, + httpbin, + pyopenssl, + pyparsing, + pysocks, + gunicorn, + pytestCheckHook, + pythonOlder, + selenium, + setuptools, + wsproto, + zstandard, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { hash = "sha256-KgaDxHS0dAK6CT53L1qqx1aORMmkeaiXAUtGC82hiIQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ blinker @@ -61,9 +60,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "seleniumwire" - ]; + pythonImportsCheck = [ "seleniumwire" ]; disabledTestPaths = [ # Don't run End2End tests diff --git a/pkgs/development/python-modules/selenium/default.nix b/pkgs/development/python-modules/selenium/default.nix index 9f8336201eb9..4865e3f6636d 100644 --- a/pkgs/development/python-modules/selenium/default.nix +++ b/pkgs/development/python-modules/selenium/default.nix @@ -1,18 +1,19 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, selenium-manager -, certifi -, pytestCheckHook -, pythonOlder -, trio -, trio-websocket -, typing-extensions -, urllib3 -, pytest-trio -, nixosTests -, stdenv -, python +{ + lib, + fetchFromGitHub, + buildPythonPackage, + selenium-manager, + certifi, + pytestCheckHook, + pythonOlder, + trio, + trio-websocket, + typing-extensions, + urllib3, + pytest-trio, + nixosTests, + stdenv, + python, }: buildPythonPackage rec { @@ -34,22 +35,25 @@ buildPythonPackage rec { cd py ''; - postInstall = '' - DST_PREFIX=$out/${python.sitePackages}/selenium/webdriver/ - DST_REMOTE=$DST_PREFIX/remote/ - DST_FF=$DST_PREFIX/firefox - cp ../rb/lib/selenium/webdriver/atoms/getAttribute.js $DST_REMOTE - cp ../rb/lib/selenium/webdriver/atoms/isDisplayed.js $DST_REMOTE - cp ../rb/lib/selenium/webdriver/atoms/findElements.js $DST_REMOTE - cp ../javascript/cdp-support/mutation-listener.js $DST_REMOTE - cp ../third_party/js/selenium/webdriver.json $DST_FF/webdriver_prefs.json - '' + lib.optionalString stdenv.isDarwin '' - mkdir -p $DST_PREFIX/common/macos - ln -s ${lib.getExe selenium-manager} $DST_PREFIX/common/macos/ - '' + lib.optionalString stdenv.isLinux '' - mkdir -p $DST_PREFIX/common/linux/ - ln -s ${lib.getExe selenium-manager} $DST_PREFIX/common/linux/ - ''; + postInstall = + '' + DST_PREFIX=$out/${python.sitePackages}/selenium/webdriver/ + DST_REMOTE=$DST_PREFIX/remote/ + DST_FF=$DST_PREFIX/firefox + cp ../rb/lib/selenium/webdriver/atoms/getAttribute.js $DST_REMOTE + cp ../rb/lib/selenium/webdriver/atoms/isDisplayed.js $DST_REMOTE + cp ../rb/lib/selenium/webdriver/atoms/findElements.js $DST_REMOTE + cp ../javascript/cdp-support/mutation-listener.js $DST_REMOTE + cp ../third_party/js/selenium/webdriver.json $DST_FF/webdriver_prefs.json + '' + + lib.optionalString stdenv.isDarwin '' + mkdir -p $DST_PREFIX/common/macos + ln -s ${lib.getExe selenium-manager} $DST_PREFIX/common/macos/ + '' + + lib.optionalString stdenv.isLinux '' + mkdir -p $DST_PREFIX/common/linux/ + ln -s ${lib.getExe selenium-manager} $DST_PREFIX/common/linux/ + ''; propagatedBuildInputs = [ certifi diff --git a/pkgs/development/python-modules/semantic-version/default.nix b/pkgs/development/python-modules/semantic-version/default.nix index d80afabb2169..e869cbd5b71c 100644 --- a/pkgs/development/python-modules/semantic-version/default.nix +++ b/pkgs/development/python-modules/semantic-version/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,18 +19,17 @@ buildPythonPackage rec { hash = "sha256-vau20zaZjLs3jUuds6S1ah4yNXAdwF6iaQ2amX7VBBw="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "semantic_version" - ]; + pythonImportsCheck = [ "semantic_version" ]; meta = with lib; { description = "A library implementing the 'SemVer' scheme"; homepage = "https://github.com/rbarrois/python-semanticversion/"; license = licenses.bsd2; - maintainers = with maintainers; [ layus makefu ]; + maintainers = with maintainers; [ + layus + makefu + ]; }; } diff --git a/pkgs/development/python-modules/semaphore-bot/default.nix b/pkgs/development/python-modules/semaphore-bot/default.nix index d8dd7afecafc..e16714bcab37 100644 --- a/pkgs/development/python-modules/semaphore-bot/default.nix +++ b/pkgs/development/python-modules/semaphore-bot/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, attrs -, anyio +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + attrs, + anyio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/send2trash/default.nix b/pkgs/development/python-modules/send2trash/default.nix index bd08e6c2dcde..c9e17cb0a2aa 100644 --- a/pkgs/development/python-modules/send2trash/default.nix +++ b/pkgs/development/python-modules/send2trash/default.nix @@ -1,8 +1,10 @@ -{ lib, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-p0Pd9g+nLoT+oruthwjBn2E9rznvcx35VmzOAce2iTY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = !stdenv.isDarwin; @@ -27,9 +27,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Send file to trash natively under macOS, Windows and Linux"; diff --git a/pkgs/development/python-modules/sendgrid/default.nix b/pkgs/development/python-modules/sendgrid/default.nix index 82f336a7fd43..e8ce7251b5a2 100644 --- a/pkgs/development/python-modules/sendgrid/default.nix +++ b/pkgs/development/python-modules/sendgrid/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, pytestCheckHook -, python-http-client -, pythonOlder -, pyyaml -, starkbank-ecdsa -, six -, werkzeug +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + pytestCheckHook, + python-http-client, + pythonOlder, + pyyaml, + starkbank-ecdsa, + six, + werkzeug, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { "live_test.py" ]; - pythonImportsCheck = [ - "sendgrid" - ]; + pythonImportsCheck = [ "sendgrid" ]; meta = with lib; { description = "Python client for SendGrid"; diff --git a/pkgs/development/python-modules/sense-energy/default.nix b/pkgs/development/python-modules/sense-energy/default.nix index cc91f276c0e7..d311ce0c5f59 100644 --- a/pkgs/development/python-modules/sense-energy/default.nix +++ b/pkgs/development/python-modules/sense-energy/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, aiohttp -, ciso8601 -, async-timeout -, kasa-crypt -, orjson -, pythonOlder -, requests -, websocket-client -, websockets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + aiohttp, + ciso8601, + async-timeout, + kasa-crypt, + orjson, + pythonOlder, + requests, + websocket-client, + websockets, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace-fail "{{VERSION_PLACEHOLDER}}" "${version}" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - pythonImportsCheck = [ - "sense_energy" - ]; + pythonImportsCheck = [ "sense_energy" ]; meta = with lib; { description = "API for the Sense Energy Monitor"; diff --git a/pkgs/development/python-modules/sensirion-ble/default.nix b/pkgs/development/python-modules/sensirion-ble/default.nix index 86f81f67814b..8dea1faea5e9 100644 --- a/pkgs/development/python-modules/sensirion-ble/default.nix +++ b/pkgs/development/python-modules/sensirion-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, bluetooth-data-tools -, bluetooth-sensor-state-data -, home-assistant-bluetooth -, sensor-state-data -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + bluetooth-data-tools, + bluetooth-sensor-state-data, + home-assistant-bluetooth, + sensor-state-data, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace " --cov=sensirion_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -39,9 +38,7 @@ buildPythonPackage rec { sensor-state-data ]; - pythonImportsCheck = [ - "sensirion_ble" - ]; + pythonImportsCheck = [ "sensirion_ble" ]; meta = with lib; { description = "Parser for Sensirion BLE devices"; diff --git a/pkgs/development/python-modules/sensor-state-data/default.nix b/pkgs/development/python-modules/sensor-state-data/default.nix index 7802340cedef..2390b1b138be 100644 --- a/pkgs/development/python-modules/sensor-state-data/default.nix +++ b/pkgs/development/python-modules/sensor-state-data/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-wYYSS4lABCbIhmUU3z3Wh0+4zwpEzXl8Kk9gi6LBrbQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=sensor_state_data --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "sensor_state_data" - ]; + pythonImportsCheck = [ "sensor_state_data" ]; meta = with lib; { description = "Models for storing and converting Sensor Data state"; diff --git a/pkgs/development/python-modules/sensorpro-ble/default.nix b/pkgs/development/python-modules/sensorpro-ble/default.nix index 4c8412e7f936..4a730bf48d92 100644 --- a/pkgs/development/python-modules/sensorpro-ble/default.nix +++ b/pkgs/development/python-modules/sensorpro-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace " --cov=sensorpro_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -38,13 +37,9 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sensorpro_ble" - ]; + pythonImportsCheck = [ "sensorpro_ble" ]; meta = with lib; { description = "Library for Sensorpro BLE devices"; diff --git a/pkgs/development/python-modules/sensorpush-ble/default.nix b/pkgs/development/python-modules/sensorpush-ble/default.nix index e26378b1e246..fb458d9d0626 100644 --- a/pkgs/development/python-modules/sensorpush-ble/default.nix +++ b/pkgs/development/python-modules/sensorpush-ble/default.nix @@ -1,13 +1,14 @@ -{ lib -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { --replace " --cov=sensorpush_ble --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-data-tools @@ -40,13 +39,9 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; - - pythonImportsCheck = [ - "sensorpush_ble" - ]; + pythonImportsCheck = [ "sensorpush_ble" ]; meta = with lib; { description = "Library for SensorPush BLE devices"; diff --git a/pkgs/development/python-modules/sentence-splitter/default.nix b/pkgs/development/python-modules/sentence-splitter/default.nix index 38ebc7fd6e2e..ea6503bd001e 100644 --- a/pkgs/development/python-modules/sentence-splitter/default.nix +++ b/pkgs/development/python-modules/sentence-splitter/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -, pytestCheckHook -, regex + pytestCheckHook, + regex, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { hash = "sha256-FxRi8fhKB9++lCTFpCAug0fxjkSVTKChLY84vkshR34="; }; - propagatedBuildInputs = [ - regex - ]; + propagatedBuildInputs = [ regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sentence_splitter" - ]; + pythonImportsCheck = [ "sentence_splitter" ]; meta = with lib; { description = "Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder"; diff --git a/pkgs/development/python-modules/sentence-transformers/default.nix b/pkgs/development/python-modules/sentence-transformers/default.nix index aa68ab9133e8..7b870da88879 100644 --- a/pkgs/development/python-modules/sentence-transformers/default.nix +++ b/pkgs/development/python-modules/sentence-transformers/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, huggingface-hub -, nltk -, numpy -, pytestCheckHook -, pythonOlder -, scikit-learn -, scipy -, sentencepiece -, setuptools -, tokenizers -, torch -, torchvision -, tqdm -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + huggingface-hub, + nltk, + numpy, + pytestCheckHook, + pythonOlder, + scikit-learn, + scipy, + sentencepiece, + setuptools, + tokenizers, + torch, + torchvision, + tqdm, + transformers, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-xER+WHprW83KWJ0bom+lTn0HNU7PgGROnp/QLG1uUcw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ huggingface-hub @@ -49,13 +48,9 @@ buildPythonPackage rec { transformers ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sentence_transformers" - ]; + pythonImportsCheck = [ "sentence_transformers" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/sentencepiece/default.nix b/pkgs/development/python-modules/sentencepiece/default.nix index 0307cd4be7fc..211d753d1c94 100644 --- a/pkgs/development/python-modules/sentencepiece/default.nix +++ b/pkgs/development/python-modules/sentencepiece/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage +{ + buildPythonPackage, -, sentencepiece -, pkg-config + sentencepiece, + pkg-config, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sentinel/default.nix b/pkgs/development/python-modules/sentinel/default.nix index adec747c772a..e89a52fa0fbb 100644 --- a/pkgs/development/python-modules/sentinel/default.nix +++ b/pkgs/development/python-modules/sentinel/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi}: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "sentinel"; diff --git a/pkgs/development/python-modules/sentinels/default.nix b/pkgs/development/python-modules/sentinels/default.nix index 331c957a9f4f..8a7a2328f9b4 100644 --- a/pkgs/development/python-modules/sentinels/default.nix +++ b/pkgs/development/python-modules/sentinels/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { sha256 = "1cglkxph47pki4db4kjx5g4ikxp2milqdlcjgqwmx4p1gx6p1q3v"; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sentinels" ]; diff --git a/pkgs/development/python-modules/sepaxml/default.nix b/pkgs/development/python-modules/sepaxml/default.nix index 56c40e892f0c..6977f292e359 100644 --- a/pkgs/development/python-modules/sepaxml/default.nix +++ b/pkgs/development/python-modules/sepaxml/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, lxml -, pytestCheckHook -, text-unidecode -, xmlschema +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + lxml, + pytestCheckHook, + text-unidecode, + xmlschema, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "sepaxml" - ]; + pythonImportsCheck = [ "sepaxml" ]; meta = with lib; { description = "SEPA Direct Debit XML generation in python"; diff --git a/pkgs/development/python-modules/seqdiag/default.nix b/pkgs/development/python-modules/seqdiag/default.nix index 8b8a89bd49db..91cd37883e85 100644 --- a/pkgs/development/python-modules/seqdiag/default.nix +++ b/pkgs/development/python-modules/seqdiag/default.nix @@ -1,11 +1,12 @@ -{ lib -, blockdiag -, buildPythonPackage -, fetchFromGitHub -, pynose -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + blockdiag, + buildPythonPackage, + fetchFromGitHub, + pynose, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,26 +23,18 @@ buildPythonPackage rec { hash = "sha256-Dh9JMx50Nexi0q39rYr9MpkKmQRAfT7lzsNOXoTuphg="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - blockdiag - ]; + dependencies = [ blockdiag ]; nativeCheckInputs = [ pynose pytestCheckHook ]; - pytestFlagsArray = [ - "src/seqdiag/tests/" - ]; + pytestFlagsArray = [ "src/seqdiag/tests/" ]; - pythonImportsCheck = [ - "seqdiag" - ]; + pythonImportsCheck = [ "seqdiag" ]; meta = with lib; { description = "Generate sequence-diagram image from spec-text file (similar to Graphviz)"; diff --git a/pkgs/development/python-modules/seqeval/default.nix b/pkgs/development/python-modules/seqeval/default.nix index f93021f38ef4..ee0bd4bcdfba 100644 --- a/pkgs/development/python-modules/seqeval/default.nix +++ b/pkgs/development/python-modules/seqeval/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, scikit-learn -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scikit-learn, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { scikit-learn ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # tests call perl script and get stuck in there diff --git a/pkgs/development/python-modules/serialio/default.nix b/pkgs/development/python-modules/serialio/default.nix index 2ee338c66631..d06091fccd2e 100644 --- a/pkgs/development/python-modules/serialio/default.nix +++ b/pkgs/development/python-modules/serialio/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pyserial -, sockio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pyserial, + sockio, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "serialio" - ]; + pythonImportsCheck = [ "serialio" ]; meta = with lib; { description = "Library for concurrency agnostic serial communication"; diff --git a/pkgs/development/python-modules/serializable/default.nix b/pkgs/development/python-modules/serializable/default.nix index 5c881558d69e..abc9e1378b10 100644 --- a/pkgs/development/python-modules/serializable/default.nix +++ b/pkgs/development/python-modules/serializable/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, simplejson -, six -, typechecks +{ + buildPythonPackage, + fetchFromGitHub, + lib, + simplejson, + six, + typechecks, }: buildPythonPackage rec { @@ -20,7 +21,11 @@ buildPythonPackage rec { hash = "sha256-AXlgIc1B7bkR+joXn6ZSxk/t848CWlgVZp8WIsSZFKQ="; }; - propagatedBuildInputs = [ simplejson six typechecks ]; + propagatedBuildInputs = [ + simplejson + six + typechecks + ]; pythonImportsCheck = [ "serializable" ]; diff --git a/pkgs/development/python-modules/serpent/default.nix b/pkgs/development/python-modules/serpent/default.nix index 8be976ca3642..f14259c3432a 100644 --- a/pkgs/development/python-modules/serpent/default.nix +++ b/pkgs/development/python-modules/serpent/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, isPy27 -, enum34 -, attrs -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + python, + isPy27, + enum34, + attrs, + pytz, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { propagatedBuildInputs = lib.optionals isPy27 [ enum34 ]; - nativeCheckInputs = [ attrs pytz ]; + nativeCheckInputs = [ + attrs + pytz + ]; checkPhase = '' ${python.interpreter} setup.py test ''; @@ -30,5 +34,5 @@ buildPythonPackage rec { homepage = "https://github.com/irmen/Serpent"; license = licenses.mit; maintainers = with maintainers; [ prusnak ]; - }; + }; } diff --git a/pkgs/development/python-modules/serpy/default.nix b/pkgs/development/python-modules/serpy/default.nix index 9f086e4c86e5..324ad056cc58 100644 --- a/pkgs/development/python-modules/serpy/default.nix +++ b/pkgs/development/python-modules/serpy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { sha256 = "3772b2a9923fbf674000ff51abebf6ea8f0fca0a2cfcbfa0d63ff118193d1ec5"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # ImportError: No module named 'tests doCheck = false; - pythonImportsCheck = [ - "serpy" - ]; + pythonImportsCheck = [ "serpy" ]; meta = with lib; { description = "Ridiculously fast object serialization"; diff --git a/pkgs/development/python-modules/servefile/default.nix b/pkgs/development/python-modules/servefile/default.nix index 327a278eff93..d0d916708349 100644 --- a/pkgs/development/python-modules/servefile/default.nix +++ b/pkgs/development/python-modules/servefile/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, buildPythonPackage -, fetchFromGitHub -, lib -, pyopenssl -, pytestCheckHook -, requests +{ + stdenv, + buildPythonPackage, + fetchFromGitHub, + lib, + pyopenssl, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ pyopenssl ]; - nativeCheckInputs = [ pytestCheckHook requests ]; + nativeCheckInputs = [ + pytestCheckHook + requests + ]; # Test attempts to connect to a port on localhost which fails in nix build # environment. disabledTests = [ diff --git a/pkgs/development/python-modules/serverfiles/default.nix b/pkgs/development/python-modules/serverfiles/default.nix index 9c8fa8cb1497..67fcf88e6b7a 100644 --- a/pkgs/development/python-modules/serverfiles/default.nix +++ b/pkgs/development/python-modules/serverfiles/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/serverlessrepo/default.nix b/pkgs/development/python-modules/serverlessrepo/default.nix index 68ebeca52069..4d1c79fda5ab 100644 --- a/pkgs/development/python-modules/serverlessrepo/default.nix +++ b/pkgs/development/python-modules/serverlessrepo/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, boto3 -, six -, pyyaml -, mock -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + boto3, + six, + pyyaml, + mock, + pythonOlder, }: buildPythonPackage rec { @@ -38,13 +39,9 @@ buildPythonPackage rec { --replace "boto3~=1.9, >=1.9.56" "boto3" ''; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "serverlessrepo" - ]; + pythonImportsCheck = [ "serverlessrepo" ]; meta = with lib; { homepage = "https://github.com/awslabs/aws-serverlessrepo-python"; diff --git a/pkgs/development/python-modules/service-identity/default.nix b/pkgs/development/python-modules/service-identity/default.nix index 9f708245cd44..2a6e22a9a4cf 100644 --- a/pkgs/development/python-modules/service-identity/default.nix +++ b/pkgs/development/python-modules/service-identity/default.nix @@ -1,16 +1,17 @@ -{ lib -, attrs -, buildPythonPackage -, cryptography -, fetchFromGitHub -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, idna -, pyasn1 -, pyasn1-modules -, pytestCheckHook -, pythonOlder +{ + lib, + attrs, + buildPythonPackage, + cryptography, + fetchFromGitHub, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + idna, + pyasn1, + pyasn1-modules, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -41,13 +42,9 @@ buildPythonPackage rec { pyasn1-modules ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "service_identity" - ]; + pythonImportsCheck = [ "service_identity" ]; meta = with lib; { description = "Service identity verification for pyOpenSSL"; diff --git a/pkgs/development/python-modules/setproctitle/default.nix b/pkgs/development/python-modules/setproctitle/default.nix index dfbee6e92469..e07667cdd05c 100644 --- a/pkgs/development/python-modules/setproctitle/default.nix +++ b/pkgs/development/python-modules/setproctitle/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,24 +19,17 @@ buildPythonPackage rec { hash = "sha256-yRPhUefqAVZ4N/8DeiPKh0AZKIAZi3+7kLFtGBYHyq4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # tries to compile programs with dependencies that aren't available - disabledTestPaths = [ - "tests/setproctitle_test.py" - ]; + disabledTestPaths = [ "tests/setproctitle_test.py" ]; meta = with lib; { description = "Allows a process to change its title (as displayed by system tools such as ps and top)"; - homepage = "https://github.com/dvarrazzo/py-setproctitle"; + homepage = "https://github.com/dvarrazzo/py-setproctitle"; license = licenses.bsdOriginal; maintainers = with maintainers; [ exi ]; }; - } diff --git a/pkgs/development/python-modules/setupmeta/default.nix b/pkgs/development/python-modules/setupmeta/default.nix index 46e1b9a18a3e..458d65e9c034 100644 --- a/pkgs/development/python-modules/setupmeta/default.nix +++ b/pkgs/development/python-modules/setupmeta/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, git -, mock -, pep440 -, pip -, pytestCheckHook -, pythonOlder -, setuptools-scm -, six -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + git, + mock, + pep440, + pip, + pytestCheckHook, + pythonOlder, + setuptools-scm, + six, + wheel, }: buildPythonPackage rec { @@ -59,9 +60,7 @@ buildPythonPackage rec { "test_brand_new_project" ]; - pythonImportsCheck = [ - "setupmeta" - ]; + pythonImportsCheck = [ "setupmeta" ]; meta = with lib; { description = "Python module to simplify setup.py files"; diff --git a/pkgs/development/python-modules/setuptools-changelog-shortener/default.nix b/pkgs/development/python-modules/setuptools-changelog-shortener/default.nix index fef62dfbfbb9..59fe9fd4b52c 100644 --- a/pkgs/development/python-modules/setuptools-changelog-shortener/default.nix +++ b/pkgs/development/python-modules/setuptools-changelog-shortener/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, tomli -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + tomli, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/setuptools-declarative-requirements/default.nix b/pkgs/development/python-modules/setuptools-declarative-requirements/default.nix index 4e090aac53b6..694be226df0d 100644 --- a/pkgs/development/python-modules/setuptools-declarative-requirements/default.nix +++ b/pkgs/development/python-modules/setuptools-declarative-requirements/default.nix @@ -1,5 +1,12 @@ -{ buildPythonPackage, fetchPypi, lib, pypiserver, pytestCheckHook -, setuptools-scm, virtualenv }: +{ + buildPythonPackage, + fetchPypi, + lib, + pypiserver, + pytestCheckHook, + setuptools-scm, + virtualenv, +}: buildPythonPackage rec { pname = "setuptools-declarative-requirements"; @@ -13,7 +20,11 @@ buildPythonPackage rec { buildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ pypiserver pytestCheckHook virtualenv ]; + nativeCheckInputs = [ + pypiserver + pytestCheckHook + virtualenv + ]; # Tests use network doCheck = false; diff --git a/pkgs/development/python-modules/setuptools-dso/default.nix b/pkgs/development/python-modules/setuptools-dso/default.nix index 306d6b794e60..707a404a9025 100644 --- a/pkgs/development/python-modules/setuptools-dso/default.nix +++ b/pkgs/development/python-modules/setuptools-dso/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose2 -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + nose2, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { build-system = [ setuptools ]; - nativeCheckInputs = [ nose2 pytestCheckHook ]; + nativeCheckInputs = [ + nose2 + pytestCheckHook + ]; meta = with lib; { description = "setuptools extension for building non-Python Dynamic Shared Objects"; diff --git a/pkgs/development/python-modules/setuptools-generate/default.nix b/pkgs/development/python-modules/setuptools-generate/default.nix index 9f2b71697e9b..261fefab1ea1 100644 --- a/pkgs/development/python-modules/setuptools-generate/default.nix +++ b/pkgs/development/python-modules/setuptools-generate/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools-scm -, click -, help2man -, markdown-it-py -, shtab -, tomli -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools-scm, + click, + help2man, + markdown-it-py, + shtab, + tomli, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,22 +26,16 @@ buildPythonPackage rec { hash = "sha256-xDjxkWy/n0jStI9eLcM6WduyU9vGjtBOmJ86dpXjceQ="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ click help2man markdown-it-py shtab - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "setuptools_generate" ]; diff --git a/pkgs/development/python-modules/setuptools-git-versioning/default.nix b/pkgs/development/python-modules/setuptools-git-versioning/default.nix index 311de1fe5ff8..edc6a72c015f 100644 --- a/pkgs/development/python-modules/setuptools-git-versioning/default.nix +++ b/pkgs/development/python-modules/setuptools-git-versioning/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, build -, coverage -, git -, packaging -, pytestCheckHook -, pytest-rerunfailures -, pythonOlder -, setuptools -, toml -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + build, + coverage, + git, + packaging, + pytestCheckHook, + pytest-rerunfailures, + pythonOlder, + setuptools, + toml, + wheel, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ packaging setuptools - ] ++ lib.optionals (pythonOlder "3.11") [ - toml - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ toml ]; - pythonImportsCheck = [ - "setuptools_git_versioning" - ]; + pythonImportsCheck = [ "setuptools_git_versioning" ]; nativeCheckInputs = [ build @@ -56,7 +53,10 @@ buildPythonPackage rec { ''; # limit tests because the full suite takes several minutes to run - pytestFlagsArray = [ "-m" "important" ]; + pytestFlagsArray = [ + "-m" + "important" + ]; disabledTests = [ # runs an isolated build that uses internet to download dependencies diff --git a/pkgs/development/python-modules/setuptools-git/default.nix b/pkgs/development/python-modules/setuptools-git/default.nix index 8e0b4af312b5..ae5b4224ad0f 100644 --- a/pkgs/development/python-modules/setuptools-git/default.nix +++ b/pkgs/development/python-modules/setuptools-git/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, }: buildPythonPackage rec { @@ -22,5 +23,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/setuptools-git"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/setuptools-lint/default.nix b/pkgs/development/python-modules/setuptools-lint/default.nix index 561b75e80483..3c89bdecda35 100644 --- a/pkgs/development/python-modules/setuptools-lint/default.nix +++ b/pkgs/development/python-modules/setuptools-lint/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pylint }: +{ + lib, + buildPythonPackage, + fetchPypi, + pylint, +}: buildPythonPackage rec { pname = "setuptools-lint"; @@ -19,4 +24,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ nickhu ]; }; } - diff --git a/pkgs/development/python-modules/setuptools-odoo/default.nix b/pkgs/development/python-modules/setuptools-odoo/default.nix index cc2e767d2520..6e2a3556013f 100644 --- a/pkgs/development/python-modules/setuptools-odoo/default.nix +++ b/pkgs/development/python-modules/setuptools-odoo/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, git -, pytestCheckHook -, pythonOlder -, setuptools-scm -, writeScript +{ + lib, + buildPythonPackage, + fetchFromGitHub, + git, + pytestCheckHook, + pythonOlder, + setuptools-scm, + writeScript, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-38YlkDH/PuJ1yvQ43OYmdnRd1SGJULv6fC/+fitLDJ8="; }; - propagatedBuildInputs = [ - setuptools-scm - ]; + propagatedBuildInputs = [ setuptools-scm ]; # HACK https://github.com/NixOS/nixpkgs/pull/229460 patchPhase = '' @@ -37,9 +36,7 @@ buildPythonPackage rec { runHook postPatch ''; - pythonImportsCheck = [ - "setuptools_odoo" - ]; + pythonImportsCheck = [ "setuptools_odoo" ]; setupHook = writeScript "setupHook.sh" '' setuptoolsOdooHook() { diff --git a/pkgs/development/python-modules/setuptools-rust/default.nix b/pkgs/development/python-modules/setuptools-rust/default.nix index a4aae0742824..734eef48a0ef 100644 --- a/pkgs/development/python-modules/setuptools-rust/default.nix +++ b/pkgs/development/python-modules/setuptools-rust/default.nix @@ -1,13 +1,14 @@ -{ callPackage -, lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, semantic-version -, setuptools -, setuptools-scm -, tomli -, typing-extensions +{ + callPackage, + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + semantic-version, + setuptools, + setuptools-scm, + tomli, + typing-extensions, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { semantic-version setuptools typing-extensions - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; - pythonImportsCheck = [ - "setuptools_rust" - ]; + pythonImportsCheck = [ "setuptools_rust" ]; doCheck = false; diff --git a/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix b/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix index 3a82ef799255..b8f2c593a656 100644 --- a/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix +++ b/pkgs/development/python-modules/setuptools-rust/pyo3-test/default.nix @@ -1,8 +1,9 @@ -{ callPackage -, cargo -, rustPlatform -, rustc -, setuptools-rust +{ + callPackage, + cargo, + rustPlatform, + rustc, + setuptools-rust, }: callPackage ../../../tools/rust/maturin/pyo3-test/generic.nix { @@ -13,11 +14,13 @@ callPackage ../../../tools/rust/maturin/pyo3-test/generic.nix { # format = "setuptools"; - nativeBuildInputs = [ setuptools-rust ] ++ [ - rustPlatform.cargoSetupHook - cargo - rustc - ]; + nativeBuildInputs = + [ setuptools-rust ] + ++ [ + rustPlatform.cargoSetupHook + cargo + rustc + ]; preConfigure = '' # sourceRoot puts Cargo.lock in the wrong place due to the diff --git a/pkgs/development/python-modules/setuptools-scm-git-archive/default.nix b/pkgs/development/python-modules/setuptools-scm-git-archive/default.nix index f5f7fcd0561d..a53df0fb0a58 100644 --- a/pkgs/development/python-modules/setuptools-scm-git-archive/default.nix +++ b/pkgs/development/python-modules/setuptools-scm-git-archive/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "setuptools_scm_git_archive" - ]; + pythonImportsCheck = [ "setuptools_scm_git_archive" ]; meta = with lib; { description = "setuptools_scm plugin for git archives"; diff --git a/pkgs/development/python-modules/setuptools-scm/default.nix b/pkgs/development/python-modules/setuptools-scm/default.nix index 01a1f0ff0d4b..afd117ae3bcf 100644 --- a/pkgs/development/python-modules/setuptools-scm/default.nix +++ b/pkgs/development/python-modules/setuptools-scm/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + callPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, packaging -, typing-extensions -, tomli + # dependencies + packaging, + typing-extensions, + tomli, -# optional-dependencies -, rich + # optional-dependencies + rich, }: buildPythonPackage rec { @@ -26,29 +27,19 @@ buildPythonPackage rec { hash = "sha256-tfQ/9oAGaVlRk/0JiRVk7p0dfcsZbKtLJQbVOi4clcc="; }; - nativeBuildInputs = [ - setuptools - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + nativeBuildInputs = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; propagatedBuildInputs = [ packaging setuptools typing-extensions - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; passthru.optional-dependencies = { - rich = [ - rich - ]; + rich = [ rich ]; }; - pythonImportsCheck = [ - "setuptools_scm" - ]; + pythonImportsCheck = [ "setuptools_scm" ]; # check in passthru.tests.pytest to escape infinite recursion on pytest doCheck = false; diff --git a/pkgs/development/python-modules/setuptools-scm/tests.nix b/pkgs/development/python-modules/setuptools-scm/tests.nix index b679a0f5ca4c..ad203b22c88a 100644 --- a/pkgs/development/python-modules/setuptools-scm/tests.nix +++ b/pkgs/development/python-modules/setuptools-scm/tests.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, setuptools-scm -, pytestCheckHook -, git -, mercurial -, pip -, virtualenv +{ + buildPythonPackage, + setuptools-scm, + pytestCheckHook, + git, + mercurial, + pip, + virtualenv, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/setuptools-trial/default.nix b/pkgs/development/python-modules/setuptools-trial/default.nix index 14f666d311a2..3d1bd90167dc 100644 --- a/pkgs/development/python-modules/setuptools-trial/default.nix +++ b/pkgs/development/python-modules/setuptools-trial/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, twisted +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + twisted, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-FCIPj3YcSLoeJSbwhxlQd89U+tcJizgs4iBCLw/1mxI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - twisted - ]; + propagatedBuildInputs = [ twisted ]; # Couldn't get tests working doCheck = false; - pythonImportsCheck = [ - "setuptools_trial" - ]; + pythonImportsCheck = [ "setuptools_trial" ]; meta = with lib; { description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit"; diff --git a/pkgs/development/python-modules/setuptools/default.nix b/pkgs/development/python-modules/setuptools/default.nix index c7cfd09dc49d..5e82d06858c9 100644 --- a/pkgs/development/python-modules/setuptools/default.nix +++ b/pkgs/development/python-modules/setuptools/default.nix @@ -1,9 +1,10 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, python -, wheel +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + python, + wheel, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { ./setuptools-distutils-C++.patch ]; - nativeBuildInputs = [ - wheel - ]; + nativeBuildInputs = [ wheel ]; preBuild = lib.optionalString (!stdenv.hostPlatform.isWindows) '' export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0 @@ -37,7 +36,9 @@ buildPythonPackage rec { meta = with lib; { description = "Utilities to facilitate the installation of Python packages"; homepage = "https://github.com/pypa/setuptools"; - changelog = "https://setuptools.pypa.io/en/stable/history.html#v${replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://setuptools.pypa.io/en/stable/history.html#v${ + replaceStrings [ "." ] [ "-" ] version + }"; license = with licenses; [ mit ]; platforms = python.meta.platforms; maintainers = teams.python.members; diff --git a/pkgs/development/python-modules/sev-snp-measure/default.nix b/pkgs/development/python-modules/sev-snp-measure/default.nix index 5293bc1179c0..c6795d1318a1 100644 --- a/pkgs/development/python-modules/sev-snp-measure/default.nix +++ b/pkgs/development/python-modules/sev-snp-measure/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, cryptography -, fetchFromGitHub -, lib -, pythonRelaxDepsHook -, setuptools +{ + buildPythonPackage, + cryptography, + fetchFromGitHub, + lib, + pythonRelaxDepsHook, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/seventeentrack/default.nix b/pkgs/development/python-modules/seventeentrack/default.nix index 351392aec46a..d0331594e3fd 100644 --- a/pkgs/development/python-modules/seventeentrack/default.nix +++ b/pkgs/development/python-modules/seventeentrack/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, attrs -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pytz +{ + lib, + aiohttp, + aresponses, + attrs, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -63,9 +62,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "seventeentrack" - ]; + pythonImportsCheck = [ "seventeentrack" ]; meta = with lib; { description = "Python library to track package info from 17track.com"; diff --git a/pkgs/development/python-modules/sexpdata/default.nix b/pkgs/development/python-modules/sexpdata/default.nix index 0349c7cd9479..a410c430f60c 100644 --- a/pkgs/development/python-modules/sexpdata/default.nix +++ b/pkgs/development/python-modules/sexpdata/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,15 +18,11 @@ buildPythonPackage rec { hash = "sha256-krZ7A2H2dm+PnkS5UZzz+8+vp1Xbhbv4k8Phz03awQk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = false; - pythonImportsCheck = [ - "sexpdata" - ]; + pythonImportsCheck = [ "sexpdata" ]; meta = with lib; { description = "S-expression parser for Python"; diff --git a/pkgs/development/python-modules/sfepy/default.nix b/pkgs/development/python-modules/sfepy/default.nix index 1e7153b8927e..b97840fbae54 100644 --- a/pkgs/development/python-modules/sfepy/default.nix +++ b/pkgs/development/python-modules/sfepy/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cmake -, cython_0 -, ninja -, oldest-supported-numpy -, setuptools -, scikit-build -, numpy -, scipy -, matplotlib -, pyparsing -, tables -, python -, sympy -, meshio -, mpi4py -, psutil -, openssh -, pyvista -, pytest -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cmake, + cython_0, + ninja, + oldest-supported-numpy, + setuptools, + scikit-build, + numpy, + scipy, + matplotlib, + pyparsing, + tables, + python, + sympy, + meshio, + mpi4py, + psutil, + openssh, + pyvista, + pytest, + stdenv, }: buildPythonPackage rec { @@ -72,9 +73,7 @@ buildPythonPackage rec { rm sfepy/tests/test_quadratures.py ''; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' export OMPI_MCA_plm_rsh_agent=${openssh}/bin/ssh diff --git a/pkgs/development/python-modules/sfrbox-api/default.nix b/pkgs/development/python-modules/sfrbox-api/default.nix index c1939e70a7e4..b4ee4fdebb4d 100644 --- a/pkgs/development/python-modules/sfrbox-api/default.nix +++ b/pkgs/development/python-modules/sfrbox-api/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, click -, defusedxml -, fetchFromGitHub -, httpx -, poetry-core -, pydantic -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, respx +{ + lib, + buildPythonPackage, + click, + defusedxml, + fetchFromGitHub, + httpx, + poetry-core, + pydantic, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + respx, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'pydantic = ">=1.10.2"' 'pydantic = "*"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ defusedxml @@ -42,9 +41,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - cli = [ - click - ]; + cli = [ click ]; }; nativeCheckInputs = [ @@ -53,9 +50,7 @@ buildPythonPackage rec { respx ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "sfrbox_api" - ]; + pythonImportsCheck = [ "sfrbox_api" ]; meta = with lib; { description = "Module for the SFR Box API"; diff --git a/pkgs/development/python-modules/sgmllib3k/default.nix b/pkgs/development/python-modules/sgmllib3k/default.nix index e828e750fc8f..1670a533e664 100644 --- a/pkgs/development/python-modules/sgmllib3k/default.nix +++ b/pkgs/development/python-modules/sgmllib3k/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, pytestCheckHook -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { @@ -18,19 +19,13 @@ buildPythonPackage rec { hash = "sha256-eGj7HIv6dkwaxWPTzzacOB0TJdNhJJM6cm8p/NqoEuk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.10") [ - "test_declaration_junk_chars" - ]; + disabledTests = lib.optionals (pythonAtLeast "3.10") [ "test_declaration_junk_chars" ]; doCheck = false; - pythonImportsCheck = [ - "sgmllib" - ]; + pythonImportsCheck = [ "sgmllib" ]; meta = with lib; { homepage = "https://pypi.org/project/sgmllib3k/"; diff --git a/pkgs/development/python-modules/sgp4/default.nix b/pkgs/development/python-modules/sgp4/default.nix index daa6a08f67f1..ce2826708c46 100644 --- a/pkgs/development/python-modules/sgp4/default.nix +++ b/pkgs/development/python-modules/sgp4/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, numpy }: +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, +}: buildPythonPackage rec { pname = "sgp4"; diff --git a/pkgs/development/python-modules/sh/default.nix b/pkgs/development/python-modules/sh/default.nix index 46332d0d528a..51a4a9d842f6 100644 --- a/pkgs/development/python-modules/sh/default.nix +++ b/pkgs/development/python-modules/sh/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook - }: +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, +}: buildPythonPackage rec { pname = "sh"; @@ -18,40 +19,36 @@ buildPythonPackage rec { hash = "sha256-c4Ms4ydcW7LgmAI1WuYD74nzILuY/Xg+JePJe0q5AQQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; # A test needs the HOME directory to be different from $TMPDIR. preCheck = '' export HOME=$(mktemp -d) ''; - disabledTests = [ - # Disable tests that fail on Hydra - "test_no_fd_leak" - "test_piped_exception1" - "test_piped_exception2" - "test_unicode_path" - # fails to import itself after modifying the environment - "test_environment" - # timing sensitive through usage of sleep(1) and signal handling - # https://github.com/amoffat/sh/issues/684 - "test_general_signal" - ] ++ lib.optionals stdenv.isDarwin [ - # Disable tests that fail on Darwin sandbox - "test_background_exception" - "test_cwd" - "test_ok_code" - ]; + disabledTests = + [ + # Disable tests that fail on Hydra + "test_no_fd_leak" + "test_piped_exception1" + "test_piped_exception2" + "test_unicode_path" + # fails to import itself after modifying the environment + "test_environment" + # timing sensitive through usage of sleep(1) and signal handling + # https://github.com/amoffat/sh/issues/684 + "test_general_signal" + ] + ++ lib.optionals stdenv.isDarwin [ + # Disable tests that fail on Darwin sandbox + "test_background_exception" + "test_cwd" + "test_ok_code" + ]; meta = with lib; { description = "Python subprocess interface"; diff --git a/pkgs/development/python-modules/shamir-mnemonic/default.nix b/pkgs/development/python-modules/shamir-mnemonic/default.nix index 8d8a5f535b77..11d580eaf889 100644 --- a/pkgs/development/python-modules/shamir-mnemonic/default.nix +++ b/pkgs/development/python-modules/shamir-mnemonic/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, isPy3k -, fetchFromGitHub -, attrs -, click -, colorama -, pytestCheckHook +{ + lib, + buildPythonPackage, + isPy3k, + fetchFromGitHub, + attrs, + click, + colorama, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/shap/default.nix b/pkgs/development/python-modules/shap/default.nix index 2e0b5c0f814c..7c21be0e3689 100644 --- a/pkgs/development/python-modules/shap/default.nix +++ b/pkgs/development/python-modules/shap/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, writeText -, catboost -, cloudpickle -, ipython -, lightgbm -, lime -, matplotlib -, nose -, numba -, numpy -, oldest-supported-numpy -, opencv4 -, pandas -, pyspark -, pytest-mpl -, scikit-learn -, scipy -, sentencepiece -, setuptools -, setuptools-scm -, slicer -, tqdm -, transformers -, xgboost +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + writeText, + catboost, + cloudpickle, + ipython, + lightgbm, + lime, + matplotlib, + nose, + numba, + numpy, + oldest-supported-numpy, + opencv4, + pandas, + pyspark, + pytest-mpl, + scikit-learn, + scipy, + sentencepiece, + setuptools, + setuptools-scm, + slicer, + tqdm, + transformers, + xgboost, }: buildPythonPackage rec { @@ -61,43 +62,48 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - plots = [ matplotlib ipython ]; + plots = [ + matplotlib + ipython + ]; others = [ lime ]; }; - preCheck = let - # This pytest hook mocks and catches attempts at accessing the network - # tests that try to access the network will raise, get caught, be marked as skipped and tagged as xfailed. - conftestSkipNetworkErrors = writeText "conftest.py" '' - from _pytest.runner import pytest_runtest_makereport as orig_pytest_runtest_makereport - import urllib, requests, transformers + preCheck = + let + # This pytest hook mocks and catches attempts at accessing the network + # tests that try to access the network will raise, get caught, be marked as skipped and tagged as xfailed. + conftestSkipNetworkErrors = writeText "conftest.py" '' + from _pytest.runner import pytest_runtest_makereport as orig_pytest_runtest_makereport + import urllib, requests, transformers - class NetworkAccessDeniedError(RuntimeError): pass - def deny_network_access(*a, **kw): - raise NetworkAccessDeniedError + class NetworkAccessDeniedError(RuntimeError): pass + def deny_network_access(*a, **kw): + raise NetworkAccessDeniedError - requests.head = deny_network_access - requests.get = deny_network_access - urllib.request.urlopen = deny_network_access - urllib.request.Request = deny_network_access - transformers.AutoTokenizer.from_pretrained = deny_network_access + requests.head = deny_network_access + requests.get = deny_network_access + urllib.request.urlopen = deny_network_access + urllib.request.Request = deny_network_access + transformers.AutoTokenizer.from_pretrained = deny_network_access - def pytest_runtest_makereport(item, call): - tr = orig_pytest_runtest_makereport(item, call) - if call.excinfo is not None and call.excinfo.type is NetworkAccessDeniedError: - tr.outcome = 'skipped' - tr.wasxfail = "reason: Requires network access." - return tr + def pytest_runtest_makereport(item, call): + tr = orig_pytest_runtest_makereport(item, call) + if call.excinfo is not None and call.excinfo.type is NetworkAccessDeniedError: + tr.outcome = 'skipped' + tr.wasxfail = "reason: Requires network access." + return tr + ''; + in + '' + export HOME=$TMPDIR + # when importing the local copy the extension is not found + rm -r shap + + # Add pytest hook skipping tests that access network. + # These tests are marked as "Expected fail" (xfail) + cat ${conftestSkipNetworkErrors} >> tests/conftest.py ''; - in '' - export HOME=$TMPDIR - # when importing the local copy the extension is not found - rm -r shap - - # Add pytest hook skipping tests that access network. - # These tests are marked as "Expected fail" (xfail) - cat ${conftestSkipNetworkErrors} >> tests/conftest.py - ''; nativeCheckInputs = [ ipython @@ -134,15 +140,16 @@ buildPythonPackage rec { "test_simple_bar_with_cohorts_dict" ]; - pythonImportsCheck = [ - "shap" - ]; + pythonImportsCheck = [ "shap" ]; meta = with lib; { description = "A unified approach to explain the output of any machine learning model"; homepage = "https://github.com/slundberg/shap"; changelog = "https://github.com/slundberg/shap/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ evax natsukium ]; + maintainers = with maintainers; [ + evax + natsukium + ]; }; } diff --git a/pkgs/development/python-modules/shapely/1.8.nix b/pkgs/development/python-modules/shapely/1.8.nix index 4382ba93ec5e..95ce815bd2ed 100644 --- a/pkgs/development/python-modules/shapely/1.8.nix +++ b/pkgs/development/python-modules/shapely/1.8.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + substituteAll, -, cython_0 -, geos_3_11 -, numpy -, oldest-supported-numpy -, setuptools -, wheel + cython_0, + geos_3_11, + numpy, + oldest-supported-numpy, + setuptools, + wheel, }: buildPythonPackage rec { @@ -35,7 +36,9 @@ buildPythonPackage rec { (substituteAll { src = ./library-paths.patch; libgeos_c = GEOS_LIBRARY_PATH; - libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6"; + libc = lib.optionalString ( + !stdenv.isDarwin + ) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6"; }) ]; @@ -51,17 +54,11 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - geos_3_11 - ]; + buildInputs = [ geos_3_11 ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -r shapely # prevent import of local shapely diff --git a/pkgs/development/python-modules/shapely/default.nix b/pkgs/development/python-modules/shapely/default.nix index 28f2acdffb2d..9819cf04b54d 100644 --- a/pkgs/development/python-modules/shapely/default.nix +++ b/pkgs/development/python-modules/shapely/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, -, cython_0 -, geos -, numpy -, oldest-supported-numpy -, setuptools -, wheel + cython_0, + geos, + numpy, + oldest-supported-numpy, + setuptools, + wheel, }: buildPythonPackage rec { @@ -33,17 +34,11 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - geos - ]; + buildInputs = [ geos ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Fix a ModuleNotFoundError. Investigated at: # https://github.com/NixOS/nixpkgs/issues/255262 diff --git a/pkgs/development/python-modules/shaperglot/default.nix b/pkgs/development/python-modules/shaperglot/default.nix index 9201436d3b60..20c898c07698 100644 --- a/pkgs/development/python-modules/shaperglot/default.nix +++ b/pkgs/development/python-modules/shaperglot/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gflanguages -, num2words -, protobuf -, pytestCheckHook -, pyyaml -, setuptools -, setuptools-scm -, strictyaml -, termcolor -, ufo2ft -, vharfbuzz -, youseedee +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gflanguages, + num2words, + protobuf, + pytestCheckHook, + pyyaml, + setuptools, + setuptools-scm, + strictyaml, + termcolor, + ufo2ft, + vharfbuzz, + youseedee, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { ]; doCheck = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Tool to test OpenType fonts for language support"; diff --git a/pkgs/development/python-modules/sharedmem/default.nix b/pkgs/development/python-modules/sharedmem/default.nix index 0e4a36f6ce27..0615feb911df 100644 --- a/pkgs/development/python-modules/sharedmem/default.nix +++ b/pkgs/development/python-modules/sharedmem/default.nix @@ -1,4 +1,9 @@ -{ buildPythonPackage, fetchPypi, lib, numpy }: +{ + buildPythonPackage, + fetchPypi, + lib, + numpy, +}: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sharkiq/default.nix b/pkgs/development/python-modules/sharkiq/default.nix index 0b99c15564fd..afff1db73d9a 100644 --- a/pkgs/development/python-modules/sharkiq/default.nix +++ b/pkgs/development/python-modules/sharkiq/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sharp-aquos-rc/default.nix b/pkgs/development/python-modules/sharp-aquos-rc/default.nix index 5dc7580467e8..11af74710b24 100644 --- a/pkgs/development/python-modules/sharp-aquos-rc/default.nix +++ b/pkgs/development/python-modules/sharp-aquos-rc/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pyyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/shazamio/default.nix b/pkgs/development/python-modules/shazamio/default.nix index e96776e60b8a..eaf3e2290108 100644 --- a/pkgs/development/python-modules/shazamio/default.nix +++ b/pkgs/development/python-modules/shazamio/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, wheel -, aiofiles -, aiohttp -, dataclass-factory -, numpy -, pydantic -, pydub -, ffmpeg -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + wheel, + aiofiles, + aiohttp, + dataclass-factory, + numpy, + pydantic, + pydub, + ffmpeg, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/shellescape/default.nix b/pkgs/development/python-modules/shellescape/default.nix index 6ea61402c049..fe0a29458b6f 100644 --- a/pkgs/development/python-modules/shellescape/default.nix +++ b/pkgs/development/python-modules/shellescape/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,7 +23,10 @@ buildPythonPackage rec { meta = with lib; { description = "Shell escape a string to safely use it as a token in a shell command (backport of Python shlex.quote)"; homepage = "https://github.com/chrissimpkins/shellescape"; - license = with licenses; [ mit psfl ]; + license = with licenses; [ + mit + psfl + ]; maintainers = with maintainers; [ veprbl ]; }; } diff --git a/pkgs/development/python-modules/shellingham/default.nix b/pkgs/development/python-modules/shellingham/default.nix index 71b5d5e438bf..75b61530b909 100644 --- a/pkgs/development/python-modules/shellingham/default.nix +++ b/pkgs/development/python-modules/shellingham/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-xeBo3Ok+XPrHN4nQd7M8/11leSV/8z1f7Sj33+HFVtQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-mock pytestCheckHook ]; - pythonImportsCheck = [ - "shellingham" - ]; + pythonImportsCheck = [ "shellingham" ]; meta = with lib; { description = "Tool to detect the surrounding shell"; diff --git a/pkgs/development/python-modules/shiboken2/default.nix b/pkgs/development/python-modules/shiboken2/default.nix index 45eecc6faebf..5d313334ae3a 100644 --- a/pkgs/development/python-modules/shiboken2/default.nix +++ b/pkgs/development/python-modules/shiboken2/default.nix @@ -1,11 +1,12 @@ -{ python -, lib -, stdenv -, pyside2 -, cmake -, qt5 -, libxcrypt -, llvmPackages_15 +{ + python, + lib, + stdenv, + pyside2, + cmake, + qt5, + libxcrypt, + llvmPackages_15, }: stdenv.mkDerivation { @@ -13,9 +14,7 @@ stdenv.mkDerivation { inherit (pyside2) version src; - patches = [ - ./nix_compile_cflags.patch - ]; + patches = [ ./nix_compile_cflags.patch ]; postPatch = '' cd sources/shiboken2 @@ -25,21 +24,21 @@ stdenv.mkDerivation { nativeBuildInputs = [ cmake ]; - buildInputs = [ - llvmPackages_15.libclang - python - python.pkgs.setuptools - qt5.qtbase - qt5.qtxmlpatterns - ] ++ (lib.optionals (python.pythonOlder "3.9") [ - # see similar issue: 202262 - # libxcrypt is required for crypt.h for building older python modules - libxcrypt - ]); + buildInputs = + [ + llvmPackages_15.libclang + python + python.pkgs.setuptools + qt5.qtbase + qt5.qtxmlpatterns + ] + ++ (lib.optionals (python.pythonOlder "3.9") [ + # see similar issue: 202262 + # libxcrypt is required for crypt.h for building older python modules + libxcrypt + ]); - cmakeFlags = [ - "-DBUILD_TESTS=OFF" - ]; + cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; dontWrapQtApps = true; @@ -53,7 +52,10 @@ stdenv.mkDerivation { meta = with lib; { description = "Generator for the PySide2 Qt bindings"; mainProgram = "shiboken2"; - license = with licenses; [ gpl2 lgpl21 ]; + license = with licenses; [ + gpl2 + lgpl21 + ]; homepage = "https://wiki.qt.io/Qt_for_Python"; maintainers = with maintainers; [ gebner ]; broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/shiboken6/default.nix b/pkgs/development/python-modules/shiboken6/default.nix index 57b7e64273d6..98ebbecd521d 100644 --- a/pkgs/development/python-modules/shiboken6/default.nix +++ b/pkgs/development/python-modules/shiboken6/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchurl -, llvmPackages -, python -, cmake -, autoPatchelfHook -, stdenv +{ + lib, + fetchurl, + llvmPackages, + python, + cmake, + autoPatchelfHook, + stdenv, }: let @@ -22,16 +23,12 @@ stdenv'.mkDerivation rec { sourceRoot = "pyside-setup-everywhere-src-${version}/sources/${pname}"; - patches = [ - ./fix-include-qt-headers.patch - ]; + patches = [ ./fix-include-qt-headers.patch ]; nativeBuildInputs = [ cmake (python.pythonOnBuildForHost.withPackages (ps: [ ps.setuptools ])) - ] ++ lib.optionals stdenv.isLinux [ - autoPatchelfHook - ]; + ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; buildInputs = [ llvmPackages.llvm @@ -42,9 +39,7 @@ stdenv'.mkDerivation rec { python.pkgs.setuptools ]; - cmakeFlags = [ - "-DBUILD_TESTS=OFF" - ]; + cmakeFlags = [ "-DBUILD_TESTS=OFF" ]; # We intentionally use single quotes around `${BASH}` since it expands from a CMake # variable available in this file. @@ -56,13 +51,16 @@ stdenv'.mkDerivation rec { # we need to remove the build tree reference from the RPATH and then add the correct # directory to the RPATH. On Linux, the second part is handled by autoPatchelfHook. # https://bugreports.qt.io/browse/PYSIDE-2233 - preFixup = '' - echo "fixing RPATH of Shiboken.abi3.so" - '' + lib.optionalString stdenv.isDarwin '' - install_name_tool -change {@rpath,$out/lib}/libshiboken6.abi3.6.6.dylib $out/${python.sitePackages}/shiboken6/Shiboken.abi3.so - '' + lib.optionalString stdenv.isLinux '' - patchelf $out/${python.sitePackages}/shiboken6/Shiboken.abi3.so --shrink-rpath --allowed-rpath-prefixes ${builtins.storeDir} - ''; + preFixup = + '' + echo "fixing RPATH of Shiboken.abi3.so" + '' + + lib.optionalString stdenv.isDarwin '' + install_name_tool -change {@rpath,$out/lib}/libshiboken6.abi3.6.6.dylib $out/${python.sitePackages}/shiboken6/Shiboken.abi3.so + '' + + lib.optionalString stdenv.isLinux '' + patchelf $out/${python.sitePackages}/shiboken6/Shiboken.abi3.so --shrink-rpath --allowed-rpath-prefixes ${builtins.storeDir} + ''; postInstall = '' cd ../../.. @@ -74,9 +72,16 @@ stdenv'.mkDerivation rec { meta = with lib; { description = "Generator for the pyside6 Qt bindings"; - license = with licenses; [ lgpl3Only gpl2Only gpl3Only ]; + license = with licenses; [ + lgpl3Only + gpl2Only + gpl3Only + ]; homepage = "https://wiki.qt.io/Qt_for_Python"; - maintainers = with maintainers; [ gebner Enzime ]; + maintainers = with maintainers; [ + gebner + Enzime + ]; platforms = platforms.all; }; } diff --git a/pkgs/development/python-modules/shimmy/default.nix b/pkgs/development/python-modules/shimmy/default.nix index c155e396eaca..6604fc134f62 100644 --- a/pkgs/development/python-modules/shimmy/default.nix +++ b/pkgs/development/python-modules/shimmy/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, wheel -, gymnasium -, numpy -, ale-py -, bsuite -, dm-control -, gym -, imageio -, pettingzoo -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + wheel, + gymnasium, + numpy, + ale-py, + bsuite, + dm-control, + gym, + imageio, + pettingzoo, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/shippai/default.nix b/pkgs/development/python-modules/shippai/default.nix index b0591385b961..e005b12dded3 100644 --- a/pkgs/development/python-modules/shippai/default.nix +++ b/pkgs/development/python-modules/shippai/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "shippai"; diff --git a/pkgs/development/python-modules/shiv/default.nix b/pkgs/development/python-modules/shiv/default.nix index d799069324d9..010fd7aad999 100644 --- a/pkgs/development/python-modules/shiv/default.nix +++ b/pkgs/development/python-modules/shiv/default.nix @@ -1,12 +1,13 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, click -, pip -, setuptools -, wheel -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + click, + pip, + setuptools, + wheel, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,7 +20,12 @@ buildPythonPackage rec { hash = "sha256-4iJ2gTWXe+vftcDRp9/qKVV8VmtY0wDVuMJTXvIj13Y="; }; - propagatedBuildInputs = [ click pip setuptools wheel ]; + propagatedBuildInputs = [ + click + pip + setuptools + wheel + ]; pythonImportsCheck = [ "shiv" ]; diff --git a/pkgs/development/python-modules/shlib/default.nix b/pkgs/development/python-modules/shlib/default.nix index 81ffccead0e4..8bc4ba90d3e1 100644 --- a/pkgs/development/python-modules/shlib/default.nix +++ b/pkgs/development/python-modules/shlib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, braceexpand -, inform +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + braceexpand, + inform, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { patchShebangs . ''; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; dependencies = [ braceexpand inform ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "shlib" ]; diff --git a/pkgs/development/python-modules/shodan/default.nix b/pkgs/development/python-modules/shodan/default.nix index 43ea7bdba8a7..e83336b07b91 100644 --- a/pkgs/development/python-modules/shodan/default.nix +++ b/pkgs/development/python-modules/shodan/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, click-plugins -, colorama -, fetchPypi -, pythonOlder -, requests -, setuptools -, tldextract -, xlsxwriter +{ + lib, + buildPythonPackage, + click-plugins, + colorama, + fetchPypi, + pythonOlder, + requests, + setuptools, + tldextract, + xlsxwriter, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # The tests require a shodan api key, so skip them. doCheck = false; - pythonImportsCheck = [ - "shodan" - ]; + pythonImportsCheck = [ "shodan" ]; meta = with lib; { description = "Python library and command-line utility for Shodan"; @@ -44,6 +43,9 @@ buildPythonPackage rec { homepage = "https://github.com/achillean/shodan-python"; changelog = "https://github.com/achillean/shodan-python/blob/${version}/CHANGELOG.md"; license = licenses.mit; - maintainers = with maintainers; [ fab lihop ]; + maintainers = with maintainers; [ + fab + lihop + ]; }; } diff --git a/pkgs/development/python-modules/shortuuid/default.nix b/pkgs/development/python-modules/shortuuid/default.nix index 17b69da44700..1ccefc016c93 100644 --- a/pkgs/development/python-modules/shortuuid/default.nix +++ b/pkgs/development/python-modules/shortuuid/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-O7nPB/YGJgWEsd9GOZwLh92Edz57JZErfjkeMHl8XnI="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "shortuuid" - ]; + pythonImportsCheck = [ "shortuuid" ]; meta = with lib; { description = "Library to generate concise, unambiguous and URL-safe UUIDs"; diff --git a/pkgs/development/python-modules/should-dsl/default.nix b/pkgs/development/python-modules/should-dsl/default.nix index 444e04b7f36f..5ff8faa1b862 100644 --- a/pkgs/development/python-modules/should-dsl/default.nix +++ b/pkgs/development/python-modules/should-dsl/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "should-dsl"; diff --git a/pkgs/development/python-modules/show-in-file-manager/default.nix b/pkgs/development/python-modules/show-in-file-manager/default.nix index e48268c7ef66..0d52bdb52bd4 100644 --- a/pkgs/development/python-modules/show-in-file-manager/default.nix +++ b/pkgs/development/python-modules/show-in-file-manager/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, argparse-manpage -, setuptools -, packaging -, pyxdg +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + argparse-manpage, + setuptools, + packaging, + pyxdg, }: buildPythonPackage rec { @@ -23,10 +24,7 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - packaging - ] - ++ lib.optional (stdenv.isLinux) pyxdg; + propagatedBuildInputs = [ packaging ] ++ lib.optional (stdenv.isLinux) pyxdg; meta = with lib; { homepage = "https://github.com/damonlynch/showinfilemanager"; diff --git a/pkgs/development/python-modules/showit/default.nix b/pkgs/development/python-modules/showit/default.nix index 4b424f76a2e3..b98b48df2cd9 100644 --- a/pkgs/development/python-modules/showit/default.nix +++ b/pkgs/development/python-modules/showit/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, matplotlib -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + matplotlib, + pytest, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { matplotlib ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' pytest test diff --git a/pkgs/development/python-modules/shtab/default.nix b/pkgs/development/python-modules/shtab/default.nix index 7ec98fce432b..2b1b13840848 100644 --- a/pkgs/development/python-modules/shtab/default.nix +++ b/pkgs/development/python-modules/shtab/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, bashInteractive +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + bashInteractive, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "shtab" - ]; + pythonImportsCheck = [ "shtab" ]; meta = with lib; { description = "Module for shell tab completion of Python CLI applications"; diff --git a/pkgs/development/python-modules/shutilwhich/default.nix b/pkgs/development/python-modules/shutilwhich/default.nix index c3c48f47e6cd..bc022fbe0f85 100644 --- a/pkgs/development/python-modules/shutilwhich/default.nix +++ b/pkgs/development/python-modules/shutilwhich/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/signalslot/default.nix b/pkgs/development/python-modules/signalslot/default.nix index 98e3a15eec57..18c3db8a45ba 100644 --- a/pkgs/development/python-modules/signalslot/default.nix +++ b/pkgs/development/python-modules/signalslot/default.nix @@ -1,14 +1,15 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, pythonRelaxDepsHook -, contexter -, eventlet -, mock -, pytest-xdist -, pytestCheckHook -, six +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pythonRelaxDepsHook, + contexter, + eventlet, + mock, + pytest-xdist, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { --replace "--cov-report html" "" ''; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ contexter diff --git a/pkgs/development/python-modules/signedjson/default.nix b/pkgs/development/python-modules/signedjson/default.nix index e57a86c37f21..ef386cfd378e 100644 --- a/pkgs/development/python-modules/signedjson/default.nix +++ b/pkgs/development/python-modules/signedjson/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, canonicaljson -, fetchPypi -, importlib-metadata -, pynacl -, pytestCheckHook -, pythonOlder -, setuptools-scm -, typing-extensions -, unpaddedbase64 +{ + lib, + buildPythonPackage, + canonicaljson, + fetchPypi, + importlib-metadata, + pynacl, + pytestCheckHook, + pythonOlder, + setuptools-scm, + typing-extensions, + unpaddedbase64, }: buildPythonPackage rec { @@ -23,26 +24,22 @@ buildPythonPackage rec { hash = "sha256-zZHFavU/Fp7wMsYunEoyktwViGaTMxjQWS40Yts9ZJI="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - canonicaljson - unpaddedbase64 - pynacl - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - typing-extensions - ]; + propagatedBuildInputs = + [ + canonicaljson + unpaddedbase64 + pynacl + ] + ++ lib.optionals (pythonOlder "3.8") [ + importlib-metadata + typing-extensions + ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "signedjson" - ]; + pythonImportsCheck = [ "signedjson" ]; meta = with lib; { description = "Sign JSON with Ed25519 signatures"; diff --git a/pkgs/development/python-modules/signify/default.nix b/pkgs/development/python-modules/signify/default.nix index 1c7f503d33c1..ec2bed3ce36f 100644 --- a/pkgs/development/python-modules/signify/default.nix +++ b/pkgs/development/python-modules/signify/default.nix @@ -1,16 +1,17 @@ -{ lib -, asn1crypto -, buildPythonPackage -, certvalidator -, fetchFromGitHub -, mscerts -, oscrypto -, pyasn1 -, pyasn1-modules -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + asn1crypto, + buildPythonPackage, + certvalidator, + fetchFromGitHub, + mscerts, + oscrypto, + pyasn1, + pyasn1-modules, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-29SyzqtZ1cI+1xrSPLFr63vwB5st/9i5b3FYtJn6eok="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ asn1crypto @@ -41,13 +40,9 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "signify" - ]; + pythonImportsCheck = [ "signify" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/ralphje/signify/blob/${src.rev}/docs/changelog.rst"; diff --git a/pkgs/development/python-modules/signxml/default.nix b/pkgs/development/python-modules/signxml/default.nix index c6c6ccea9b15..cf5b9504012e 100644 --- a/pkgs/development/python-modules/signxml/default.nix +++ b/pkgs/development/python-modules/signxml/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, certifi -, cryptography -, fetchFromGitHub -, lxml -, pyopenssl -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + certifi, + cryptography, + fetchFromGitHub, + lxml, + pyopenssl, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-TlOIHYvx1o46nr/3qq45pgeOqmuyWaaTGvOS0Jwz1zs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ certifi @@ -35,17 +34,11 @@ buildPythonPackage rec { pyopenssl ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "signxml" - ]; + pythonImportsCheck = [ "signxml" ]; - pytestFlagsArray = [ - "test/test.py" - ]; + pytestFlagsArray = [ "test/test.py" ]; meta = with lib; { description = "Python XML Signature and XAdES library"; diff --git a/pkgs/development/python-modules/sigrok/default.nix b/pkgs/development/python-modules/sigrok/default.nix index b8b925ba6b16..40253c5ad19c 100644 --- a/pkgs/development/python-modules/sigrok/default.nix +++ b/pkgs/development/python-modules/sigrok/default.nix @@ -1,62 +1,67 @@ -{ lib -, stdenv -, libsigrok -, toPythonModule -, python -, autoreconfHook -, pythonImportsCheckHook -, pythonCatchConflictsHook -, swig -, setuptools -, numpy -, pygobject3 +{ + lib, + stdenv, + libsigrok, + toPythonModule, + python, + autoreconfHook, + pythonImportsCheckHook, + pythonCatchConflictsHook, + swig, + setuptools, + numpy, + pygobject3, }: # build libsigrok plus its Python bindings. Unfortunately it does not appear # to be possible to build them separately, at least not easily. -toPythonModule ((libsigrok.override { - inherit python; -}).overrideAttrs (orig: { - pname = "${python.libPrefix}-sigrok"; +toPythonModule ( + (libsigrok.override { inherit python; }).overrideAttrs (orig: { + pname = "${python.libPrefix}-sigrok"; - patches = orig.patches or [] ++ [ - # Makes libsigrok install the bindings into site-packages properly (like - # we expect) instead of making a version-specific *.egg subdirectory. - ./python-install.patch - ]; - - nativeBuildInputs = orig.nativeBuildInputs or [] ++ [ - autoreconfHook - setuptools - swig - numpy - ] ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ - pythonImportsCheckHook - pythonCatchConflictsHook - ]; - - buildInputs = orig.buildInputs or [] ++ [ - pygobject3 # makes headers available the configure script checks for - ]; - - propagatedBuildInputs = orig.propagatedBuildInputs or [] ++ [ - pygobject3 - numpy - ]; - - postInstall = '' - ${orig.postInstall or ""} - - # for pythonImportsCheck - export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH" - ''; - - pythonImportsCheck = [ "sigrok" "sigrok.core" ]; - - meta = orig.meta // { - description = "Python bindings for libsigrok"; - maintainers = orig.meta.maintainers ++ [ - lib.maintainers.sternenseemann + patches = orig.patches or [ ] ++ [ + # Makes libsigrok install the bindings into site-packages properly (like + # we expect) instead of making a version-specific *.egg subdirectory. + ./python-install.patch ]; - }; -})) + + nativeBuildInputs = + orig.nativeBuildInputs or [ ] + ++ [ + autoreconfHook + setuptools + swig + numpy + ] + ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ + pythonImportsCheckHook + pythonCatchConflictsHook + ]; + + buildInputs = orig.buildInputs or [ ] ++ [ + pygobject3 # makes headers available the configure script checks for + ]; + + propagatedBuildInputs = orig.propagatedBuildInputs or [ ] ++ [ + pygobject3 + numpy + ]; + + postInstall = '' + ${orig.postInstall or ""} + + # for pythonImportsCheck + export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH" + ''; + + pythonImportsCheck = [ + "sigrok" + "sigrok.core" + ]; + + meta = orig.meta // { + description = "Python bindings for libsigrok"; + maintainers = orig.meta.maintainers ++ [ lib.maintainers.sternenseemann ]; + }; + }) +) diff --git a/pkgs/development/python-modules/sigstore-protobuf-specs/default.nix b/pkgs/development/python-modules/sigstore-protobuf-specs/default.nix index 56da9cd5f403..a45134a1cbd1 100644 --- a/pkgs/development/python-modules/sigstore-protobuf-specs/default.nix +++ b/pkgs/development/python-modules/sigstore-protobuf-specs/default.nix @@ -1,9 +1,10 @@ -{ lib -, pythonOlder -, flit-core -, fetchPypi -, buildPythonPackage -, betterproto +{ + lib, + pythonOlder, + flit-core, + fetchPypi, + buildPythonPackage, + betterproto, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-xAthl1uVeukG6ymlvHBA7AFbaLa0YAXMWAXmKUk+jew="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - betterproto - ]; + propagatedBuildInputs = [ betterproto ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "sigstore_protobuf_specs" - ]; + pythonImportsCheck = [ "sigstore_protobuf_specs" ]; meta = with lib; { description = "Library for serializing and deserializing Sigstore messages"; diff --git a/pkgs/development/python-modules/sigtools/default.nix b/pkgs/development/python-modules/sigtools/default.nix index 7e9e7971e137..d1122d16cfbf 100644 --- a/pkgs/development/python-modules/sigtools/default.nix +++ b/pkgs/development/python-modules/sigtools/default.nix @@ -1,12 +1,13 @@ -{ lib -, attrs -, buildPythonPackage -, fetchPypi -, mock -, repeated-test -, setuptools-scm -, sphinx -, unittestCheckHook +{ + lib, + attrs, + buildPythonPackage, + fetchPypi, + mock, + repeated-test, + setuptools-scm, + sphinx, + unittestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; nativeCheckInputs = [ mock @@ -34,9 +31,7 @@ buildPythonPackage rec { unittestCheckHook ]; - pythonImportsCheck = [ - "sigtools" - ]; + pythonImportsCheck = [ "sigtools" ]; meta = with lib; { description = "Utilities for working with inspect.Signature objects"; diff --git a/pkgs/development/python-modules/simanneal/default.nix b/pkgs/development/python-modules/simanneal/default.nix index 9bd957780ade..0c2392b54bc1 100644 --- a/pkgs/development/python-modules/simanneal/default.nix +++ b/pkgs/development/python-modules/simanneal/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildPythonPackage, pytest }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pytest, +}: buildPythonPackage rec { pname = "simanneal"; diff --git a/pkgs/development/python-modules/simber/default.nix b/pkgs/development/python-modules/simber/default.nix index c5e3a8ef2210..651f97e2048a 100644 --- a/pkgs/development/python-modules/simber/default.nix +++ b/pkgs/development/python-modules/simber/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, colorama -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + colorama, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-kHoFZD7nhVxJu9MqePLkL7KTG2saPecY9238c/oeEco="; }; - propagatedBuildInputs = [ - colorama - ]; + propagatedBuildInputs = [ colorama ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "simber" - ]; + pythonImportsCheck = [ "simber" ]; meta = with lib; { description = "Simple, minimal and powerful logger for Python"; diff --git a/pkgs/development/python-modules/simpful/default.nix b/pkgs/development/python-modules/simpful/default.nix index 37f2ae860c0e..74c88e6a5644 100644 --- a/pkgs/development/python-modules/simpful/default.nix +++ b/pkgs/development/python-modules/simpful/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, pytestCheckHook -, pythonOlder -, requests -, scipy -, seaborn -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + pytestCheckHook, + pythonOlder, + requests, + scipy, + seaborn, + setuptools, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-NtTw7sF1WfVebUk1wHrM8FHAe3/FXDcMApPkDbw0WXo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy @@ -47,9 +46,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "simpful" - ]; + pythonImportsCheck = [ "simpful" ]; meta = with lib; { description = "Library for fuzzy logic"; diff --git a/pkgs/development/python-modules/simple-di/default.nix b/pkgs/development/python-modules/simple-di/default.nix index 79437c4a0b34..b8d32effc098 100644 --- a/pkgs/development/python-modules/simple-di/default.nix +++ b/pkgs/development/python-modules/simple-di/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { typing-extensions ]; - pythonImportsCheck = [ - "simple_di" - ]; + pythonImportsCheck = [ "simple_di" ]; # pypi distribution contains no tests doCheck = false; diff --git a/pkgs/development/python-modules/simple-rest-client/default.nix b/pkgs/development/python-modules/simple-rest-client/default.nix index 325454c30ea7..023b604c8a57 100644 --- a/pkgs/development/python-modules/simple-rest-client/default.nix +++ b/pkgs/development/python-modules/simple-rest-client/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pytest-asyncio -, pytest-httpserver -, pytestCheckHook -, python-slugify -, python-status -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pytest-asyncio, + pytest-httpserver, + pytestCheckHook, + python-slugify, + python-status, + pythonOlder, }: buildPythonPackage rec { @@ -45,13 +46,9 @@ buildPythonPackage rec { --replace "asyncmock" "" ''; - disabledTestPaths = [ - "tests/test_decorators.py" - ]; + disabledTestPaths = [ "tests/test_decorators.py" ]; - pythonImportsCheck = [ - "simple_rest_client" - ]; + pythonImportsCheck = [ "simple_rest_client" ]; meta = with lib; { description = "Simple REST client for Python"; diff --git a/pkgs/development/python-modules/simple-rlp/default.nix b/pkgs/development/python-modules/simple-rlp/default.nix index f91f21a67d0c..dd5aa752cdbd 100644 --- a/pkgs/development/python-modules/simple-rlp/default.nix +++ b/pkgs/development/python-modules/simple-rlp/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/simple-salesforce/default.nix b/pkgs/development/python-modules/simple-salesforce/default.nix index e42d569b45e8..2a0d1646aea8 100644 --- a/pkgs/development/python-modules/simple-salesforce/default.nix +++ b/pkgs/development/python-modules/simple-salesforce/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchFromGitHub -, more-itertools -, pendulum -, pyjwt -, pytestCheckHook -, pythonOlder -, pytz -, requests -, responses -, setuptools -, typing-extensions -, zeep +{ + lib, + buildPythonPackage, + cryptography, + fetchFromGitHub, + more-itertools, + pendulum, + pyjwt, + pytestCheckHook, + pythonOlder, + pytz, + requests, + responses, + setuptools, + typing-extensions, + zeep, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-nrfIyXftS2X2HuuLFRZpWLz/IbRasqUzv+r/HvhxfAw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography @@ -49,9 +48,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "simple_salesforce" - ]; + pythonImportsCheck = [ "simple_salesforce" ]; meta = with lib; { description = "A very simple Salesforce.com REST API client for Python"; @@ -60,5 +57,4 @@ buildPythonPackage rec { license = licenses.asl20; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/simple-term-menu/default.nix b/pkgs/development/python-modules/simple-term-menu/default.nix index f6b808cf31c8..a7f86b176d2d 100644 --- a/pkgs/development/python-modules/simple-term-menu/default.nix +++ b/pkgs/development/python-modules/simple-term-menu/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/simple-websocket-server/default.nix b/pkgs/development/python-modules/simple-websocket-server/default.nix index 485a9a5c7cd4..82426c474847 100644 --- a/pkgs/development/python-modules/simple-websocket-server/default.nix +++ b/pkgs/development/python-modules/simple-websocket-server/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage { pname = "simple-websocket-server"; diff --git a/pkgs/development/python-modules/simple-websocket/default.nix b/pkgs/development/python-modules/simple-websocket/default.nix index 5af426fb5ba2..a7937b59f6c1 100644 --- a/pkgs/development/python-modules/simple-websocket/default.nix +++ b/pkgs/development/python-modules/simple-websocket/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools -, wheel -, wsproto +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, + wheel, + wsproto, }: buildPythonPackage rec { @@ -24,17 +25,11 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - wsproto - ]; + propagatedBuildInputs = [ wsproto ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "simple_websocket" - ]; + pythonImportsCheck = [ "simple_websocket" ]; meta = with lib; { description = "Simple WebSocket server and client for Python"; diff --git a/pkgs/development/python-modules/simpleaudio/default.nix b/pkgs/development/python-modules/simpleaudio/default.nix index ed90911dfc9b..36c9e5acc695 100644 --- a/pkgs/development/python-modules/simpleaudio/default.nix +++ b/pkgs/development/python-modules/simpleaudio/default.nix @@ -1,4 +1,10 @@ -{ alsa-lib, buildPythonPackage, fetchFromGitHub, isPy27, lib }: +{ + alsa-lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + lib, +}: buildPythonPackage rec { pname = "simpleaudio"; @@ -17,8 +23,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/hamiltron/py-simple-audio"; - description = - "A simple audio playback Python extension - cross-platform, asynchronous, dependency-free"; + description = "A simple audio playback Python extension - cross-platform, asynchronous, dependency-free"; license = licenses.mit; maintainers = with maintainers; [ lucus16 ]; }; diff --git a/pkgs/development/python-modules/simplebayes/default.nix b/pkgs/development/python-modules/simplebayes/default.nix index 1db9ff589e98..ea3fdd268e4c 100644 --- a/pkgs/development/python-modules/simplebayes/default.nix +++ b/pkgs/development/python-modules/simplebayes/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, mock -, isPy3k +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + mock, + isPy3k, }: buildPythonPackage { @@ -20,7 +21,10 @@ buildPythonPackage { sha256 = "0mp7rvfdmpfxnka4czw3lv5kkh6gdxh6dm4r6hcln1zzfg9lxp4h"; }; - nativeCheckInputs = [ nose mock ]; + nativeCheckInputs = [ + nose + mock + ]; postPatch = lib.optionalString isPy3k '' sed -i -e 's/open *(\([^)]*\))/open(\1, encoding="utf-8")/' setup.py @@ -33,5 +37,4 @@ buildPythonPackage { homepage = "https://github.com/hickeroar/simplebayes"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/simpleeval/default.nix b/pkgs/development/python-modules/simpleeval/default.nix index 57693fb3791c..21cd49585fe7 100644 --- a/pkgs/development/python-modules/simpleeval/default.nix +++ b/pkgs/development/python-modules/simpleeval/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,21 +18,13 @@ buildPythonPackage rec { hash = "sha256-I1GILYPE6OyotgRe0Ek/iHHv6q9/b/MlcTxMAtfZD80="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test_simpleeval.py" - ]; + pytestFlagsArray = [ "test_simpleeval.py" ]; - pythonImportsCheck = [ - "simpleeval" - ]; + pythonImportsCheck = [ "simpleeval" ]; meta = with lib; { description = "Simple, safe single expression evaluator library"; diff --git a/pkgs/development/python-modules/simplefix/default.nix b/pkgs/development/python-modules/simplefix/default.nix index 329c1ba313e0..85ab1f40cc90 100644 --- a/pkgs/development/python-modules/simplefix/default.nix +++ b/pkgs/development/python-modules/simplefix/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + unittestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-D85JW3JRQ1xErw6krMbAg94WYjPi76Xqjv/MGNMY5ZU="; }; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "simplefix" - ]; + pythonImportsCheck = [ "simplefix" ]; unittestFlagsArray = [ "-s" diff --git a/pkgs/development/python-modules/simplegeneric/default.nix b/pkgs/development/python-modules/simplegeneric/default.nix index 4bc1683404d6..274b0a6ebb02 100644 --- a/pkgs/development/python-modules/simplegeneric/default.nix +++ b/pkgs/development/python-modules/simplegeneric/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/simplehound/default.nix b/pkgs/development/python-modules/simplehound/default.nix index af97b7cc9619..bf2efed90c09 100644 --- a/pkgs/development/python-modules/simplehound/default.nix +++ b/pkgs/development/python-modules/simplehound/default.nix @@ -1,10 +1,11 @@ -{ lib -, requests -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests-mock +{ + lib, + requests, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests-mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/simpleitk/default.nix b/pkgs/development/python-modules/simpleitk/default.nix index e07e6e994d43..82a402f5280e 100644 --- a/pkgs/development/python-modules/simpleitk/default.nix +++ b/pkgs/development/python-modules/simpleitk/default.nix @@ -1,18 +1,24 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cmake -, swig4 -, elastix -, itk -, numpy -, simpleitk -, scikit-build +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cmake, + swig4, + elastix, + itk, + numpy, + simpleitk, + scikit-build, }: buildPythonPackage rec { - inherit (simpleitk) pname version src meta; + inherit (simpleitk) + pname + version + src + meta + ; format = "pyproject"; disabled = pythonOlder "3.8"; diff --git a/pkgs/development/python-modules/simplejson/default.nix b/pkgs/development/python-modules/simplejson/default.nix index b136d9e94dac..bbebbfd35867 100644 --- a/pkgs/development/python-modules/simplejson/default.nix +++ b/pkgs/development/python-modules/simplejson/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,15 +21,11 @@ buildPythonPackage rec { hash = "sha256-+HHtU6sxxwISciLxiwa5m1zj7h/SLDmRxOZNqW5FQSY="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "simplejson" - ]; + pythonImportsCheck = [ "simplejson" ]; meta = with lib; { description = "Extensible JSON encoder/decoder for Python"; @@ -40,7 +37,10 @@ buildPythonPackage rec { ''; homepage = "https://github.com/simplejson/simplejson"; changelog = "https://github.com/simplejson/simplejson/blob/v${version}/CHANGES.txt"; - license = with licenses; [ mit afl21 ]; + license = with licenses; [ + mit + afl21 + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/simplekml/default.nix b/pkgs/development/python-modules/simplekml/default.nix index 550cd81a4f4e..99637db57a43 100644 --- a/pkgs/development/python-modules/simplekml/default.nix +++ b/pkgs/development/python-modules/simplekml/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,7 +20,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python package to generate KML"; - homepage = "https://simplekml.readthedocs.io/"; + homepage = "https://simplekml.readthedocs.io/"; license = licenses.lgpl3Plus; maintainers = with maintainers; [ rvolosatovs ]; }; diff --git a/pkgs/development/python-modules/simplemma/default.nix b/pkgs/development/python-modules/simplemma/default.nix index 60cb7438e9fb..d96e4b19121e 100644 --- a/pkgs/development/python-modules/simplemma/default.nix +++ b/pkgs/development/python-modules/simplemma/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-2IvAJ+tRnlYISymYXznCGAoUTKkM/PoYwpZpuMSXRYQ="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "simplemma" - ]; + pythonImportsCheck = [ "simplemma" ]; meta = with lib; { description = "Simple multilingual lemmatizer for Python, especially useful for speed and efficiency"; diff --git a/pkgs/development/python-modules/simplenote/default.nix b/pkgs/development/python-modules/simplenote/default.nix index 1a00b7ef5b6a..7ba87116c401 100644 --- a/pkgs/development/python-modules/simplenote/default.nix +++ b/pkgs/development/python-modules/simplenote/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { @@ -15,13 +16,12 @@ buildPythonPackage rec { sha256 = "1grvvgzdybhxjydalnsgh2aaz3f48idv5lqs48gr0cn7n18xwhd5"; }; - propagatedBuildInputs = [ ]; + propagatedBuildInputs = [ ]; - meta = with lib; { + meta = with lib; { description = "A python library for the simplenote.com web service"; homepage = "http://readthedocs.org/docs/simplenotepy/en/latest/api.html"; license = licenses.mit; maintainers = with maintainers; [ ]; - }; - + }; } diff --git a/pkgs/development/python-modules/simplepush/default.nix b/pkgs/development/python-modules/simplepush/default.nix index e7461a850b30..8df3016adc1f 100644 --- a/pkgs/development/python-modules/simplepush/default.nix +++ b/pkgs/development/python-modules/simplepush/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pythonOlder -, requests -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-DvDPihhx1rzJN6iQP5rHluplJ1AaN0b/glcd+tZCues="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "simplepush" - ]; + pythonImportsCheck = [ "simplepush" ]; meta = with lib; { description = "Module to send push notifications via Simplepush"; diff --git a/pkgs/development/python-modules/simplesat/default.nix b/pkgs/development/python-modules/simplesat/default.nix index 7000b010af96..f0981334e217 100644 --- a/pkgs/development/python-modules/simplesat/default.nix +++ b/pkgs/development/python-modules/simplesat/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchFromGitHub -, writeText -, lib -, attrs -, six -, okonomiyaki +{ + buildPythonPackage, + fetchFromGitHub, + writeText, + lib, + attrs, + six, + okonomiyaki, }: let @@ -19,12 +20,16 @@ let msi_version = '${version}.000' version_info = (${lib.versions.major version}, ${lib.versions.minor version}, ${lib.versions.patch version}, 'final', 0) ''; - -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "simplesat"; inherit version; - propagatedBuildInputs = [ attrs six okonomiyaki ]; + propagatedBuildInputs = [ + attrs + six + okonomiyaki + ]; src = fetchFromGitHub { owner = "enthought"; diff --git a/pkgs/development/python-modules/simplesqlite/default.nix b/pkgs/development/python-modules/simplesqlite/default.nix index c61684181365..37afa7724873 100644 --- a/pkgs/development/python-modules/simplesqlite/default.nix +++ b/pkgs/development/python-modules/simplesqlite/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, dataproperty -, mbstrdecoder -, pathvalidate -, sqliteschema -, setuptools -, tabledata -, typepy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + dataproperty, + mbstrdecoder, + pathvalidate, + sqliteschema, + setuptools, + tabledata, + typepy, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/simplisafe-python/default.nix b/pkgs/development/python-modules/simplisafe-python/default.nix index f417a5f6368d..bd912e113ebd 100644 --- a/pkgs/development/python-modules/simplisafe-python/default.nix +++ b/pkgs/development/python-modules/simplisafe-python/default.nix @@ -1,21 +1,22 @@ -{ lib -, aiohttp -, aresponses -, backoff -, beautifulsoup4 -, buildPythonPackage -, certifi -, docutils -, fetchFromGitHub -, poetry-core -, pytest-aiohttp -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, pytz -, types-pytz -, voluptuous -, websockets +{ + lib, + aiohttp, + aresponses, + backoff, + beautifulsoup4, + buildPythonPackage, + certifi, + docutils, + fetchFromGitHub, + poetry-core, + pytest-aiohttp, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + pytz, + types-pytz, + voluptuous, + websockets, }: buildPythonPackage rec { @@ -32,10 +33,7 @@ buildPythonPackage rec { hash = "sha256-ewbR2FI0t2F8HF0ZL5omsclB9OPAjHygGLPtSkVlvgM="; }; - - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -69,9 +67,7 @@ buildPythonPackage rec { "examples/" ]; - pythonImportsCheck = [ - "simplipy" - ]; + pythonImportsCheck = [ "simplipy" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/simpy/default.nix b/pkgs/development/python-modules/simpy/default.nix index 91b1b6c7002e..7672536d5432 100644 --- a/pkgs/development/python-modules/simpy/default.nix +++ b/pkgs/development/python-modules/simpy/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchPypi -, isPy27 -, lib -, setuptools -, setuptools-scm -, py -, pytestCheckHook +{ + buildPythonPackage, + fetchPypi, + isPy27, + lib, + setuptools, + setuptools-scm, + py, + pytestCheckHook, }: buildPythonPackage rec { @@ -35,6 +36,9 @@ buildPythonPackage rec { homepage = "https://simpy.readthedocs.io/en/${version}/"; description = "Process-based discrete-event simulation framework based on standard Python"; license = [ licenses.mit ]; - maintainers = with maintainers; [ dmrauh shlevy ]; + maintainers = with maintainers; [ + dmrauh + shlevy + ]; }; } diff --git a/pkgs/development/python-modules/single-source/default.nix b/pkgs/development/python-modules/single-source/default.nix index 3bf2ff810d50..cc4e4fa3f3a7 100644 --- a/pkgs/development/python-modules/single-source/default.nix +++ b/pkgs/development/python-modules/single-source/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, poetry-core -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + poetry-core, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-bhfMRIeJUd5JhN2tPww7fdbmHQ7ypcsZrYSa55v0+W8="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - importlib-metadata - ]; + propagatedBuildInputs = [ importlib-metadata ]; nativeCheckInputs = [ pytest-mock pytestCheckHook ]; - pythonImportsCheck = [ - "single_source" - ]; + pythonImportsCheck = [ "single_source" ]; meta = with lib; { description = "Access to the project version in Python code for PEP 621-style projects"; diff --git a/pkgs/development/python-modules/single-version/default.nix b/pkgs/development/python-modules/single-version/default.nix index 558126bbbd71..72f1c003f99e 100644 --- a/pkgs/development/python-modules/single-version/default.nix +++ b/pkgs/development/python-modules/single-version/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/siobrultech-protocols/default.nix b/pkgs/development/python-modules/siobrultech-protocols/default.nix index 49d873f95167..fbbe312b654a 100644 --- a/pkgs/development/python-modules/siobrultech-protocols/default.nix +++ b/pkgs/development/python-modules/siobrultech-protocols/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pyyaml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pyyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/siosocks/default.nix b/pkgs/development/python-modules/siosocks/default.nix index 7af2a1118c31..7bbcce74073f 100644 --- a/pkgs/development/python-modules/siosocks/default.nix +++ b/pkgs/development/python-modules/siosocks/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest-asyncio -, pytest-trio -, pytestCheckHook -, pythonOlder -, trio +{ + lib, + buildPythonPackage, + fetchPypi, + pytest-asyncio, + pytest-trio, + pytestCheckHook, + pythonOlder, + trio, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-uja79vWhPYOhhTUBIh+XpS4GnrYJy0/XpDXXQjnyHWM="; }; - propagatedBuildInputs = [ - trio - ]; + propagatedBuildInputs = [ trio ]; nativeCheckInputs = [ pytest-asyncio @@ -44,9 +43,7 @@ buildPythonPackage rec { "tests/test_socketserver.py" ]; - pythonImportsCheck = [ - "siosocks" - ]; + pythonImportsCheck = [ "siosocks" ]; meta = with lib; { description = "Python socks 4/5 client/server library/framework"; diff --git a/pkgs/development/python-modules/sip/4.x.nix b/pkgs/development/python-modules/sip/4.x.nix index 9c89a01797e7..01de3d2c0b4e 100644 --- a/pkgs/development/python-modules/sip/4.x.nix +++ b/pkgs/development/python-modules/sip/4.x.nix @@ -1,4 +1,13 @@ -{ lib, fetchurl, fetchpatch, buildPythonPackage, python, isPyPy, pythonAtLeast, sip-module ? "sip" }: +{ + lib, + fetchurl, + fetchpatch, + buildPythonPackage, + python, + isPyPy, + pythonAtLeast, + sip-module ? "sip", +}: buildPythonPackage rec { pname = sip-module; @@ -30,16 +39,22 @@ buildPythonPackage rec { enableParallelBuilding = true; - pythonImportsCheck = [ sip-module "sipconfig" ]; + pythonImportsCheck = [ + sip-module + "sipconfig" + ]; doCheck = true; meta = with lib; { description = "Creates C++ bindings for Python modules"; mainProgram = "sip"; - homepage = "https://riverbankcomputing.com/"; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ lovek323 sander ]; - platforms = platforms.all; + homepage = "https://riverbankcomputing.com/"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ + lovek323 + sander + ]; + platforms = platforms.all; }; } diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix index 30dd904f1396..38e604de874f 100644 --- a/pkgs/development/python-modules/sip/default.nix +++ b/pkgs/development/python-modules/sip/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, packaging -, ply -, toml -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + packaging, + ply, + toml, + tomli, -# tests -, poppler-qt5 -, qgis -, qgis-ltr + # tests + poppler-qt5, + qgis, + qgis-ltr, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { hash = "sha256-iIVHsBi7JMNq3tUZ6T0+UT1MaqC6VbfMGv+9Rc8Qdiw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ packaging setuptools - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; # There aren't tests doCheck = false; @@ -47,8 +44,8 @@ buildPythonPackage rec { meta = with lib; { description = "Creates C++ bindings for Python modules"; - homepage = "https://riverbankcomputing.com/"; - license = licenses.gpl3Only; + homepage = "https://riverbankcomputing.com/"; + license = licenses.gpl3Only; maintainers = with maintainers; [ nrdxp ]; }; } diff --git a/pkgs/development/python-modules/sipyco/default.nix b/pkgs/development/python-modules/sipyco/default.nix index 454876d16e8b..438072e9b072 100644 --- a/pkgs/development/python-modules/sipyco/default.nix +++ b/pkgs/development/python-modules/sipyco/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + numpy, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-sEYWtp11piUIa8YyuTOdFIIJ2GfcrUb+HEzPVKr4hW8="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sipyco" - ]; + pythonImportsCheck = [ "sipyco" ]; meta = with lib; { description = "Simple Python Communications - used by the ARTIQ experimental control package"; diff --git a/pkgs/development/python-modules/sisyphus-control/default.nix b/pkgs/development/python-modules/sisyphus-control/default.nix index 8e9a5b0168c8..1ca675582ca7 100644 --- a/pkgs/development/python-modules/sisyphus-control/default.nix +++ b/pkgs/development/python-modules/sisyphus-control/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, netifaces -, python-engineio -, python-socketio -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + netifaces, + python-engineio, + python-socketio, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { "python-socketio" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ aiohttp @@ -42,9 +41,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "sisyphus_control" - ]; + pythonImportsCheck = [ "sisyphus_control" ]; meta = with lib; { description = "Control your Sisyphus Kinetic Art Table"; diff --git a/pkgs/development/python-modules/siuba/default.nix b/pkgs/development/python-modules/siuba/default.nix index dbaab8c6df6b..4dbeb677987a 100644 --- a/pkgs/development/python-modules/siuba/default.nix +++ b/pkgs/development/python-modules/siuba/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, hypothesis -, numpy -, pandas -, psycopg2 -, pymysql -, python-dateutil -, pytz -, pyyaml -, six -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + hypothesis, + numpy, + pandas, + psycopg2, + pymysql, + python-dateutil, + pytz, + pyyaml, + six, + sqlalchemy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/six/default.nix b/pkgs/development/python-modules/six/default.nix index afaedae9529e..89e77586339b 100644 --- a/pkgs/development/python-modules/six/default.nix +++ b/pkgs/development/python-modules/six/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,14 +17,16 @@ buildPythonPackage rec { sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = if isPyPy then [ - # uses ctypes to find native library - "--deselect=test_six.py::test_move_items" - ] else null; + pytestFlagsArray = + if isPyPy then + [ + # uses ctypes to find native library + "--deselect=test_six.py::test_move_items" + ] + else + null; pythonImportsCheck = [ "six" ]; diff --git a/pkgs/development/python-modules/sjcl/default.nix b/pkgs/development/python-modules/sjcl/default.nix index a44ceb91589f..c291b56aa40e 100644 --- a/pkgs/development/python-modules/sjcl/default.nix +++ b/pkgs/development/python-modules/sjcl/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pycryptodome -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pycryptodome, + unittestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "sjcl" - ]; + pythonImportsCheck = [ "sjcl" ]; meta = with lib; { description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format. This is a wrapper around pycrypto."; diff --git a/pkgs/development/python-modules/skein/default.nix b/pkgs/development/python-modules/skein/default.nix index 738a6b21d8e1..f66e153130bc 100644 --- a/pkgs/development/python-modules/skein/default.nix +++ b/pkgs/development/python-modules/skein/default.nix @@ -1,18 +1,19 @@ -{ buildPythonPackage -, callPackage -, fetchPypi -, isPy27 -, pythonOlder -, lib -, cryptography -, grpcio -, pyyaml -, grpcio-tools -, hadoop -, pytestCheckHook -, python -, setuptools -, versioneer +{ + buildPythonPackage, + callPackage, + fetchPypi, + isPy27, + pythonOlder, + lib, + cryptography, + grpcio, + pyyaml, + grpcio-tools, + hadoop, + pytestCheckHook, + python, + setuptools, + versioneer, }: buildPythonPackage rec { @@ -28,8 +29,11 @@ buildPythonPackage rec { jarHash = "sha256-x2KH6tnoG7sogtjrJvUaxy0PCEA8q/zneuI969oBOKo="; skeinJar = callPackage ./skeinjar.nix { inherit pname version jarHash; }; - propagatedBuildInputs = [ cryptography grpcio pyyaml ] - ++ lib.optionals (!pythonOlder "3.12") [ setuptools ]; + propagatedBuildInputs = [ + cryptography + grpcio + pyyaml + ] ++ lib.optionals (!pythonOlder "3.12") [ setuptools ]; buildInputs = [ grpcio-tools ]; preBuild = '' @@ -38,19 +42,19 @@ buildPythonPackage rec { ln -s ${skeinJar} skein/java/skein.jar ''; - postPatch = '' - substituteInPlace skein/core.py --replace "'yarn'" "'${hadoop}/bin/yarn'" \ - --replace "else 'java'" "else '${hadoop.jdk}/bin/java'" - # Remove vendorized versioneer - rm versioneer.py - '' + lib.optionalString (!pythonOlder "3.12") '' - substituteInPlace skein/utils.py \ - --replace-fail "distutils" "setuptools._distutils" - ''; + postPatch = + '' + substituteInPlace skein/core.py --replace "'yarn'" "'${hadoop}/bin/yarn'" \ + --replace "else 'java'" "else '${hadoop.jdk}/bin/java'" + # Remove vendorized versioneer + rm versioneer.py + '' + + lib.optionalString (!pythonOlder "3.12") '' + substituteInPlace skein/utils.py \ + --replace-fail "distutils" "setuptools._distutils" + ''; - build-system = [ - versioneer - ]; + build-system = [ versioneer ]; pythonImportsCheck = [ "skein" ]; @@ -69,7 +73,10 @@ buildPythonPackage rec { description = "A tool and library for easily deploying applications on Apache YARN"; mainProgram = "skein"; license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ alexbiehl illustris ]; + maintainers = with lib.maintainers; [ + alexbiehl + illustris + ]; # https://github.com/NixOS/nixpkgs/issues/48663#issuecomment-1083031627 # replace with https://github.com/NixOS/nixpkgs/pull/140325 once it is merged broken = lib.traceIf isPy27 "${pname} not supported on ${python.executable}" isPy27; diff --git a/pkgs/development/python-modules/skein/skeinjar.nix b/pkgs/development/python-modules/skein/skeinjar.nix index 1cec80fa9333..74df5ea12b8c 100644 --- a/pkgs/development/python-modules/skein/skeinjar.nix +++ b/pkgs/development/python-modules/skein/skeinjar.nix @@ -1,4 +1,11 @@ -{ fetchPypi, unzip, stdenv, pname, version, jarHash }: +{ + fetchPypi, + unzip, + stdenv, + pname, + version, + jarHash, +}: stdenv.mkDerivation rec { inherit pname version; diff --git a/pkgs/development/python-modules/skia-pathops/default.nix b/pkgs/development/python-modules/skia-pathops/default.nix index 2c35cba96937..15806e8b1bce 100644 --- a/pkgs/development/python-modules/skia-pathops/default.nix +++ b/pkgs/development/python-modules/skia-pathops/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, cython -, isPyPy -, ninja -, setuptools-scm -, setuptools -, fetchPypi -, gn -, pytestCheckHook -, xcodebuild -, ApplicationServices -, OpenGL +{ + lib, + stdenv, + buildPythonPackage, + cython, + isPyPy, + ninja, + setuptools-scm, + setuptools, + fetchPypi, + gn, + pytestCheckHook, + xcodebuild, + ApplicationServices, + OpenGL, }: buildPythonPackage rec { @@ -26,31 +27,42 @@ buildPythonPackage rec { hash = "sha256-oFYkneL2H6VRFrnuVVE8aja4eK7gDJFFDkBNFgZIXLs="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "build_cmd = [sys.executable, build_skia_py, build_dir]" \ - 'build_cmd = [sys.executable, build_skia_py, "--no-fetch-gn", "--no-virtualenv", "--gn-path", "${gn}/bin/gn", build_dir]' - '' + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' - substituteInPlace src/cpp/skia-builder/skia/gn/skia/BUILD.gn \ - --replace "-march=armv7-a" "-march=armv8-a" \ - --replace "-mfpu=neon" "" \ - --replace "-mthumb" "" - substituteInPlace src/cpp/skia-builder/skia/src/core/SkOpts.cpp \ - --replace "defined(SK_CPU_ARM64)" "0" - '' + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) /* old compiler? */ '' - patch -p1 <(SIZE_MAX / sizeof(T), (size_t)INT_MAX)); - EOF - ''; + postPatch = + '' + substituteInPlace setup.py \ + --replace "build_cmd = [sys.executable, build_skia_py, build_dir]" \ + 'build_cmd = [sys.executable, build_skia_py, "--no-fetch-gn", "--no-virtualenv", "--gn-path", "${gn}/bin/gn", build_dir]' + '' + + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' + substituteInPlace src/cpp/skia-builder/skia/gn/skia/BUILD.gn \ + --replace "-march=armv7-a" "-march=armv8-a" \ + --replace "-mfpu=neon" "" \ + --replace "-mthumb" "" + substituteInPlace src/cpp/skia-builder/skia/src/core/SkOpts.cpp \ + --replace "defined(SK_CPU_ARM64)" "0" + '' + + + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) # old compiler? + '' + patch -p1 <(SIZE_MAX / sizeof(T), (size_t)INT_MAX)); + EOF + ''; - nativeBuildInputs = [ cython ninja setuptools-scm ] - ++ lib.optionals stdenv.isDarwin [ xcodebuild ]; + nativeBuildInputs = [ + cython + ninja + setuptools-scm + ] ++ lib.optionals stdenv.isDarwin [ xcodebuild ]; - buildInputs = lib.optionals stdenv.isDarwin [ ApplicationServices OpenGL ]; + buildInputs = lib.optionals stdenv.isDarwin [ + ApplicationServices + OpenGL + ]; propagatedBuildInputs = [ setuptools ]; diff --git a/pkgs/development/python-modules/skidl/default.nix b/pkgs/development/python-modules/skidl/default.nix index 2203dee0ca3f..06871bd07905 100644 --- a/pkgs/development/python-modules/skidl/default.nix +++ b/pkgs/development/python-modules/skidl/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, kinparse -, pyspice -, graphviz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + kinparse, + pyspice, + graphviz, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/skl2onnx/default.nix b/pkgs/development/python-modules/skl2onnx/default.nix index ca3e567b036c..e696834b13e1 100644 --- a/pkgs/development/python-modules/skl2onnx/default.nix +++ b/pkgs/development/python-modules/skl2onnx/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, scipy -, protobuf -, onnx -, scikit-learn -, onnxconverter-common -, onnxruntime -, pandas -, unittestCheckHook -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + scipy, + protobuf, + onnx, + scikit-learn, + onnxconverter-common, + onnxruntime, + pandas, + unittestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { onnxconverter-common ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "scikit-learn" ]; @@ -44,7 +43,10 @@ buildPythonPackage rec { unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; # Core dump doCheck = false; diff --git a/pkgs/development/python-modules/sklearn-deap/default.nix b/pkgs/development/python-modules/sklearn-deap/default.nix index 7e8f8e159eca..00d5dd7a784e 100644 --- a/pkgs/development/python-modules/sklearn-deap/default.nix +++ b/pkgs/development/python-modules/sklearn-deap/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, deap -, numpy -, scikit-learn -, scipy -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + deap, + numpy, + scikit-learn, + scipy, + unittestCheckHook, }: buildPythonPackage rec { @@ -34,12 +35,15 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ numpy scipy deap scikit-learn ]; - - nativeCheckInputs = [ - unittestCheckHook + propagatedBuildInputs = [ + numpy + scipy + deap + scikit-learn ]; + nativeCheckInputs = [ unittestCheckHook ]; + pythonImportsCheck = [ "evolutionary_search" ]; meta = with lib; { @@ -49,4 +53,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ psyanticy ]; }; } - diff --git a/pkgs/development/python-modules/skodaconnect/default.nix b/pkgs/development/python-modules/skodaconnect/default.nix index 3cd175e518f1..0ffb5bbf4222 100644 --- a/pkgs/development/python-modules/skodaconnect/default.nix +++ b/pkgs/development/python-modules/skodaconnect/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, beautifulsoup4 -, buildPythonPackage -, cryptography -, fetchFromGitHub -, flit-core -, lxml -, pyjwt -, pythonOlder +{ + lib, + aiohttp, + beautifulsoup4, + buildPythonPackage, + cryptography, + fetchFromGitHub, + flit-core, + lxml, + pyjwt, + pythonOlder, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-Cy2sXj8+t8lIqrKmI9Aa7tNEIvRArynU/02ajJ+tYHg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ aiohttp @@ -39,9 +38,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "skodaconnect" - ]; + pythonImportsCheck = [ "skodaconnect" ]; meta = with lib; { description = "Python module to communicate with Skoda Connect"; diff --git a/pkgs/development/python-modules/skorch/default.nix b/pkgs/development/python-modules/skorch/default.nix index ab128f978571..9351d806b154 100644 --- a/pkgs/development/python-modules/skorch/default.nix +++ b/pkgs/development/python-modules/skorch/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, fetchpatch -, pythonOlder -, numpy -, scikit-learn -, scipy -, tabulate -, torch -, tqdm -, flaky -, pandas -, pytestCheckHook -, safetensors -, pythonAtLeast +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + fetchpatch, + pythonOlder, + numpy, + scikit-learn, + scipy, + tabulate, + torch, + tqdm, + flaky, + pandas, + pytestCheckHook, + safetensors, + pythonAtLeast, }: buildPythonPackage rec { @@ -28,11 +29,13 @@ buildPythonPackage rec { }; # Remove at next skorch release: - patches = [ (fetchpatch { - name = "unbreak-tests-with-sklearn-1.4"; - url = "https://github.com/skorch-dev/skorch/commit/1f7a779d0aa78589e17262c206f5775f2fcd75f8.diff"; - hash = "sha256-X3SgjgDeq3PlBI13cC56LIL1dV1e+Z3tsBj9sz5pizo="; - }) ]; + patches = [ + (fetchpatch { + name = "unbreak-tests-with-sklearn-1.4"; + url = "https://github.com/skorch-dev/skorch/commit/1f7a779d0aa78589e17262c206f5775f2fcd75f8.diff"; + hash = "sha256-X3SgjgDeq3PlBI13cC56LIL1dV1e+Z3tsBj9sz5pizo="; + }) + ]; disabled = pythonOlder "3.8"; @@ -60,28 +63,33 @@ buildPythonPackage rec { --replace "--cov-config .coveragerc" "" ''; - disabledTests = [ - # on CPU, these expect artifacts from previous GPU run - "test_load_cuda_params_to_cpu" - # failing tests - "test_pickle_load" - ] ++ lib.optionals stdenv.isDarwin [ - # there is a problem with the compiler selection - "test_fit_and_predict_with_compile" - ] ++ lib.optionals (pythonAtLeast "3.11") [ - # Python 3.11+ not yet supported for torch.compile - # https://github.com/pytorch/pytorch/blob/v2.0.1/torch/_dynamo/eval_frame.py#L376-L377 - "test_fit_and_predict_with_compile" - ]; + disabledTests = + [ + # on CPU, these expect artifacts from previous GPU run + "test_load_cuda_params_to_cpu" + # failing tests + "test_pickle_load" + ] + ++ lib.optionals stdenv.isDarwin [ + # there is a problem with the compiler selection + "test_fit_and_predict_with_compile" + ] + ++ lib.optionals (pythonAtLeast "3.11") [ + # Python 3.11+ not yet supported for torch.compile + # https://github.com/pytorch/pytorch/blob/v2.0.1/torch/_dynamo/eval_frame.py#L376-L377 + "test_fit_and_predict_with_compile" + ]; - disabledTestPaths = [ - # tries to import `transformers` and download HuggingFace data - "skorch/tests/test_hf.py" - ] ++ lib.optionals (stdenv.hostPlatform.system != "x86_64-linux") [ - # torch.distributed is disabled by default in darwin - # aarch64-linux also failed these tests - "skorch/tests/test_history.py" - ]; + disabledTestPaths = + [ + # tries to import `transformers` and download HuggingFace data + "skorch/tests/test_hf.py" + ] + ++ lib.optionals (stdenv.hostPlatform.system != "x86_64-linux") [ + # torch.distributed is disabled by default in darwin + # aarch64-linux also failed these tests + "skorch/tests/test_history.py" + ]; pythonImportsCheck = [ "skorch" ]; diff --git a/pkgs/development/python-modules/skrl/default.nix b/pkgs/development/python-modules/skrl/default.nix index 143a86dff84e..eb99c9240a56 100644 --- a/pkgs/development/python-modules/skrl/default.nix +++ b/pkgs/development/python-modules/skrl/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, gym -, gymnasium -, torch -, tensorboard -, tqdm -, wandb -, packaging -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + gym, + gymnasium, + torch, + tensorboard, + tqdm, + wandb, + packaging, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/skyfield/default.nix b/pkgs/development/python-modules/skyfield/default.nix index b3dc5a236ea4..c55422a969b5 100644 --- a/pkgs/development/python-modules/skyfield/default.nix +++ b/pkgs/development/python-modules/skyfield/default.nix @@ -1,5 +1,16 @@ -{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, certifi, numpy, sgp4, jplephem -, pandas, ipython, matplotlib, assay +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + certifi, + numpy, + sgp4, + jplephem, + pandas, + ipython, + matplotlib, + assay, }: buildPythonPackage rec { @@ -21,9 +32,19 @@ buildPythonPackage rec { --replace "if IS_32_BIT" "if True" ''; - propagatedBuildInputs = [ certifi numpy sgp4 jplephem ]; + propagatedBuildInputs = [ + certifi + numpy + sgp4 + jplephem + ]; - nativeCheckInputs = [ pandas ipython matplotlib assay ]; + nativeCheckInputs = [ + pandas + ipython + matplotlib + assay + ]; # assay is broken on Python >= 3.11 # https://github.com/brandon-rhodes/assay/issues/15 diff --git a/pkgs/development/python-modules/skytemple-dtef/default.nix b/pkgs/development/python-modules/skytemple-dtef/default.nix index 92b03f7d3549..5a7622e8c029 100644 --- a/pkgs/development/python-modules/skytemple-dtef/default.nix +++ b/pkgs/development/python-modules/skytemple-dtef/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pillow -, pytestCheckHook -, pythonOlder -, skytemple-files +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pillow, + pytestCheckHook, + pythonOlder, + skytemple-files, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { skytemple-files ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "skytemple_dtef" - ]; + pythonImportsCheck = [ "skytemple_dtef" ]; meta = with lib; { description = "A format for standardized rule-based tilesets with 256 adjacency combinations"; diff --git a/pkgs/development/python-modules/skytemple-eventserver/default.nix b/pkgs/development/python-modules/skytemple-eventserver/default.nix index 94c38cbcf468..275948b3970d 100644 --- a/pkgs/development/python-modules/skytemple-eventserver/default.nix +++ b/pkgs/development/python-modules/skytemple-eventserver/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "skytemple-eventserver"; diff --git a/pkgs/development/python-modules/skytemple-files/default.nix b/pkgs/development/python-modules/skytemple-files/default.nix index 1f91f3a4bea2..ab4d8d085b26 100644 --- a/pkgs/development/python-modules/skytemple-files/default.nix +++ b/pkgs/development/python-modules/skytemple-files/default.nix @@ -1,31 +1,32 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, appdirs -, dungeon-eos -, explorerscript -, ndspy -, pillow -, setuptools -, skytemple-rust -, tilequant -, pyyaml -, pmdsky-debug-py -, range-typed-integers -, importlib-resources -, typing-extensions -, pythonOlder -, # optional dependancies for SpriteCollab - aiohttp -, lru-dict -, graphql-core -, gql -, armips +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + appdirs, + dungeon-eos, + explorerscript, + ndspy, + pillow, + setuptools, + skytemple-rust, + tilequant, + pyyaml, + pmdsky-debug-py, + range-typed-integers, + importlib-resources, + typing-extensions, + pythonOlder, + # optional dependancies for SpriteCollab + aiohttp, + lru-dict, + graphql-core, + gql, + armips, # tests -, pytestCheckHook -, parameterized -, xmldiff + pytestCheckHook, + parameterized, + xmldiff, }: buildPythonPackage rec { @@ -49,22 +50,24 @@ buildPythonPackage rec { buildInputs = [ armips ]; - propagatedBuildInputs = [ - appdirs - dungeon-eos - explorerscript - ndspy - pillow - setuptools - skytemple-rust - tilequant - pyyaml - pmdsky-debug-py - range-typed-integers - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - typing-extensions - ]; + propagatedBuildInputs = + [ + appdirs + dungeon-eos + explorerscript + ndspy + pillow + setuptools + skytemple-rust + tilequant + pyyaml + pmdsky-debug-py + range-typed-integers + ] + ++ lib.optionals (pythonOlder "3.9") [ + importlib-resources + typing-extensions + ]; passthru.optional-dependencies = { spritecollab = [ @@ -75,7 +78,11 @@ buildPythonPackage rec { ] ++ gql.optional-dependencies.aiohttp; }; - checkInputs = [ pytestCheckHook parameterized xmldiff ] ++ passthru.optional-dependencies.spritecollab; + checkInputs = [ + pytestCheckHook + parameterized + xmldiff + ] ++ passthru.optional-dependencies.spritecollab; pytestFlagsArray = [ "test/" ]; disabledTestPaths = [ "test/skytemple_files_test/common/spritecollab/sc_online_test.py" diff --git a/pkgs/development/python-modules/skytemple-icons/default.nix b/pkgs/development/python-modules/skytemple-icons/default.nix index b78bc27e3c25..b13416271f58 100644 --- a/pkgs/development/python-modules/skytemple-icons/default.nix +++ b/pkgs/development/python-modules/skytemple-icons/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, +}: buildPythonPackage rec { pname = "skytemple-icons"; diff --git a/pkgs/development/python-modules/skytemple-rust/default.nix b/pkgs/development/python-modules/skytemple-rust/default.nix index 5a604db033e6..ed60b724f840 100644 --- a/pkgs/development/python-modules/skytemple-rust/default.nix +++ b/pkgs/development/python-modules/skytemple-rust/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, cargo -, fetchPypi -, libiconv -, Foundation -, rustPlatform -, rustc -, setuptools-rust -, range-typed-integers +{ + lib, + stdenv, + buildPythonPackage, + cargo, + fetchPypi, + libiconv, + Foundation, + rustPlatform, + rustc, + setuptools-rust, + range-typed-integers, }: buildPythonPackage rec { @@ -27,8 +28,16 @@ buildPythonPackage rec { hash = "sha256-0a57RmZPztcIeRs7GNYe18JO+LlWoeNWG3nD9cG0XIU="; }; - buildInputs = lib.optionals stdenv.isDarwin [ libiconv Foundation ]; - nativeBuildInputs = [ setuptools-rust rustPlatform.cargoSetupHook cargo rustc ]; + buildInputs = lib.optionals stdenv.isDarwin [ + libiconv + Foundation + ]; + nativeBuildInputs = [ + setuptools-rust + rustPlatform.cargoSetupHook + cargo + rustc + ]; propagatedBuildInputs = [ range-typed-integers ]; GETTEXT_SYSTEM = true; diff --git a/pkgs/development/python-modules/skytemple-ssb-debugger/default.nix b/pkgs/development/python-modules/skytemple-ssb-debugger/default.nix index 7b50a7ae6c19..0ea529c5ab28 100644 --- a/pkgs/development/python-modules/skytemple-ssb-debugger/default.nix +++ b/pkgs/development/python-modules/skytemple-ssb-debugger/default.nix @@ -1,23 +1,24 @@ -{ buildPythonPackage -, explorerscript -, fetchFromGitHub -, gobject-introspection -, gtk3 -, gtksourceview4 -, importlib-metadata -, lib -, ndspy -, nest-asyncio -, pmdsky-debug-py -, pycairo -, pygobject3 -, pygtkspellcheck -, pythonOlder -, range-typed-integers -, skytemple-files -, skytemple-icons -, skytemple-ssb-emulator -, wrapGAppsHook3 +{ + buildPythonPackage, + explorerscript, + fetchFromGitHub, + gobject-introspection, + gtk3, + gtksourceview4, + importlib-metadata, + lib, + ndspy, + nest-asyncio, + pmdsky-debug-py, + pycairo, + pygobject3, + pygtkspellcheck, + pythonOlder, + range-typed-integers, + skytemple-files, + skytemple-icons, + skytemple-ssb-emulator, + wrapGAppsHook3, }: buildPythonPackage rec { @@ -32,8 +33,14 @@ buildPythonPackage rec { hash = "sha256-whnwFwPYPGF+UtjrzRKgXJNPsUGvmE+HHKJcPf0qcuA="; }; - buildInputs = [ gtk3 gtksourceview4 ]; - nativeBuildInputs = [ gobject-introspection wrapGAppsHook3 ]; + buildInputs = [ + gtk3 + gtksourceview4 + ]; + nativeBuildInputs = [ + gobject-introspection + wrapGAppsHook3 + ]; propagatedBuildInputs = [ explorerscript ndspy @@ -46,9 +53,7 @@ buildPythonPackage rec { skytemple-files skytemple-icons skytemple-ssb-emulator - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; doCheck = false; # requires Pokémon Mystery Dungeon ROM pythonImportsCheck = [ "skytemple_ssb_debugger" ]; diff --git a/pkgs/development/python-modules/skytemple-ssb-emulator/default.nix b/pkgs/development/python-modules/skytemple-ssb-emulator/default.nix index 39c034e3d87a..ad3fdd758bac 100644 --- a/pkgs/development/python-modules/skytemple-ssb-emulator/default.nix +++ b/pkgs/development/python-modules/skytemple-ssb-emulator/default.nix @@ -1,22 +1,23 @@ -{ alsa-lib -, buildPythonPackage -, cargo -, fetchPypi -, glib -, lib -, libpcap -, meson -, ninja -, openal -, pkg-config -, range-typed-integers -, rustc -, rustPlatform -, SDL2 -, setuptools -, setuptools-rust -, soundtouch -, zlib +{ + alsa-lib, + buildPythonPackage, + cargo, + fetchPypi, + glib, + lib, + libpcap, + meson, + ninja, + openal, + pkg-config, + range-typed-integers, + rustc, + rustPlatform, + SDL2, + setuptools, + setuptools-rust, + soundtouch, + zlib, }: buildPythonPackage rec { pname = "skytemple-ssb-emulator"; @@ -56,18 +57,12 @@ buildPythonPackage rec { setuptools-rust ]; - propagatedBuildInputs = [ - range-typed-integers - ]; + propagatedBuildInputs = [ range-typed-integers ]; - hardeningDisable = [ - "format" - ]; + hardeningDisable = [ "format" ]; doCheck = false; # there are no tests - pythonImportsCheck = [ - "skytemple_ssb_emulator" - ]; + pythonImportsCheck = [ "skytemple_ssb_emulator" ]; meta = with lib; { description = "SkyTemple Script Engine Debugger Emulator Backend"; diff --git a/pkgs/development/python-modules/slackclient/default.nix b/pkgs/development/python-modules/slackclient/default.nix index 5c9c6ed8a52e..b1e798207933 100644 --- a/pkgs/development/python-modules/slackclient/default.nix +++ b/pkgs/development/python-modules/slackclient/default.nix @@ -1,28 +1,29 @@ -{ lib -, stdenv -, aiohttp -, boto3 -, buildPythonPackage -, fetchFromGitHub -, flask -, flask-sockets -, pythonOlder -, mock -, moto -, psutil -, pytest-mock -, pytestCheckHook -, requests -, responses -, sqlalchemy -, websockets -, websocket-client +{ + lib, + stdenv, + aiohttp, + boto3, + buildPythonPackage, + fetchFromGitHub, + flask, + flask-sockets, + pythonOlder, + mock, + moto, + psutil, + pytest-mock, + pytestCheckHook, + requests, + responses, + sqlalchemy, + websockets, + websocket-client, }: buildPythonPackage rec { pname = "slackclient"; version = "3.27.2"; - format = "setuptools"; + format = "setuptools"; disabled = pythonOlder "3.6"; @@ -62,29 +63,32 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - disabledTests = [ - "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" - "test_interactions" - "test_send_message_while_disconnection" - ] ++ lib.optionals stdenv.isDarwin [ - # these fail with `ConnectionResetError: [Errno 54] Connection reset by peer` - "test_issue_690_oauth_access" - "test_issue_690_oauth_v2_access" - "test_send" - "test_send_attachments" - "test_send_blocks" - "test_send_dict" - ]; + disabledTests = + [ + "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" + "test_interactions" + "test_send_message_while_disconnection" + ] + ++ lib.optionals stdenv.isDarwin [ + # these fail with `ConnectionResetError: [Errno 54] Connection reset by peer` + "test_issue_690_oauth_access" + "test_issue_690_oauth_v2_access" + "test_send" + "test_send_attachments" + "test_send_blocks" + "test_send_dict" + ]; - pythonImportsCheck = [ - "slack" - ]; + pythonImportsCheck = [ "slack" ]; meta = with lib; { description = "A client for Slack, which supports the Slack Web API and Real Time Messaging (RTM) API"; homepage = "https://github.com/slackapi/python-slackclient"; changelog = "https://github.com/slackapi/python-slack-sdk/releases/tag/v${version}"; license = licenses.mit; - maintainers = with maintainers; [ flokli psyanticy ]; + maintainers = with maintainers; [ + flokli + psyanticy + ]; }; } diff --git a/pkgs/development/python-modules/sleekxmpp/default.nix b/pkgs/development/python-modules/sleekxmpp/default.nix index 4f4554b5a4ae..dea81113d390 100644 --- a/pkgs/development/python-modules/sleekxmpp/default.nix +++ b/pkgs/development/python-modules/sleekxmpp/default.nix @@ -1,4 +1,12 @@ -{ stdenv, lib, fetchPypi, buildPythonPackage, pythonAtLeast, dnspython, pyasn1 }: +{ + stdenv, + lib, + fetchPypi, + buildPythonPackage, + pythonAtLeast, + dnspython, + pyasn1, +}: buildPythonPackage rec { pname = "sleekxmpp"; @@ -7,12 +15,13 @@ buildPythonPackage rec { disabled = pythonAtLeast "3.10"; # Deprecated in favor of Slixmpp - propagatedBuildInputs = [ dnspython pyasn1 ]; - - patches = [ - ./dnspython-ip6.patch + propagatedBuildInputs = [ + dnspython + pyasn1 ]; + patches = [ ./dnspython-ip6.patch ]; + src = fetchPypi { inherit pname version; sha256 = "d213c1de71d92505f95ced0460ee0f84fdc4ddcacb7d7dd343739ed4028e5569"; @@ -24,5 +33,4 @@ buildPythonPackage rec { license = licenses.mit; homepage = "http://sleekxmpp.com/"; }; - } diff --git a/pkgs/development/python-modules/sleepyq/default.nix b/pkgs/development/python-modules/sleepyq/default.nix index e93a77fd2e79..2804be073b9e 100644 --- a/pkgs/development/python-modules/sleepyq/default.nix +++ b/pkgs/development/python-modules/sleepyq/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, inflection -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + inflection, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/slicedimage/default.nix b/pkgs/development/python-modules/slicedimage/default.nix index 5287d25fb349..8c7b0e242ce4 100644 --- a/pkgs/development/python-modules/slicedimage/default.nix +++ b/pkgs/development/python-modules/slicedimage/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, boto3 -, diskcache -, packaging -, numpy -, requests -, scikit-image -, six -, pytestCheckHook -, tifffile +{ + lib, + buildPythonPackage, + fetchFromGitHub, + boto3, + diskcache, + packaging, + numpy, + requests, + scikit-image, + six, + pytestCheckHook, + tifffile, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { tifffile ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Ignore tests which require setup, check again if disabledTestFiles can be used pytestFlagsArray = [ "--ignore tests/io_" ]; diff --git a/pkgs/development/python-modules/slicer/default.nix b/pkgs/development/python-modules/slicer/default.nix index 41b3e434bc71..8f7a27e31c53 100644 --- a/pkgs/development/python-modules/slicer/default.nix +++ b/pkgs/development/python-modules/slicer/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, dos2unix -, fetchpatch -, fetchPypi -, pytestCheckHook -, pythonOlder -, pandas -, torch -, scipy +{ + lib, + buildPythonPackage, + dos2unix, + fetchpatch, + fetchPypi, + pytestCheckHook, + pythonOlder, + pandas, + torch, + scipy, }: buildPythonPackage rec { @@ -25,11 +26,14 @@ buildPythonPackage rec { dos2unix slicer/* ''; - nativeBuildInputs = [ - dos2unix - ]; + nativeBuildInputs = [ dos2unix ]; - nativeCheckInputs = [ pytestCheckHook pandas torch scipy ]; + nativeCheckInputs = [ + pytestCheckHook + pandas + torch + scipy + ]; meta = with lib; { description = "Wraps tensor-like objects and provides a uniform slicing interface via __getitem__"; diff --git a/pkgs/development/python-modules/slicerator/default.nix b/pkgs/development/python-modules/slicerator/default.nix index a8a4a7d3b8d2..bb292b2432a0 100644 --- a/pkgs/development/python-modules/slicerator/default.nix +++ b/pkgs/development/python-modules/slicerator/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/slimit/default.nix b/pkgs/development/python-modules/slimit/default.nix index 40b4f0ca67b0..771fd05d8ceb 100644 --- a/pkgs/development/python-modules/slimit/default.nix +++ b/pkgs/development/python-modules/slimit/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ply -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ply, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-J+8RGENM/+eaTNvoC54XXPP+aWmazlssjnZAY88J/F0="; }; - propagatedBuildInputs = [ - ply - ]; + propagatedBuildInputs = [ ply ]; - pythonImportsCheck = [ - "slimit" - ]; + pythonImportsCheck = [ "slimit" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "SlimIt - a JavaScript minifier/parser in Python"; diff --git a/pkgs/development/python-modules/slither-analyzer/default.nix b/pkgs/development/python-modules/slither-analyzer/default.nix index 2dc276bac48b..527cf726d39d 100644 --- a/pkgs/development/python-modules/slither-analyzer/default.nix +++ b/pkgs/development/python-modules/slither-analyzer/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, crytic-compile -, fetchFromGitHub -, makeWrapper -, packaging -, prettytable -, pythonOlder -, setuptools-scm -, solc -, web3 -, withSolc ? false -, testers -, slither-analyzer +{ + lib, + stdenv, + buildPythonPackage, + crytic-compile, + fetchFromGitHub, + makeWrapper, + packaging, + prettytable, + pythonOlder, + setuptools-scm, + solc, + web3, + withSolc ? false, + testers, + slither-analyzer, }: buildPythonPackage rec { @@ -94,6 +95,10 @@ buildPythonPackage rec { changelog = "https://github.com/crytic/slither/releases/tag/${version}"; license = licenses.agpl3Plus; mainProgram = "slither"; - maintainers = with maintainers; [ arturcygan fab hellwolf ]; + maintainers = with maintainers; [ + arturcygan + fab + hellwolf + ]; }; } diff --git a/pkgs/development/python-modules/slixmpp/default.nix b/pkgs/development/python-modules/slixmpp/default.nix index 82fba525c037..e487f91d05a7 100644 --- a/pkgs/development/python-modules/slixmpp/default.nix +++ b/pkgs/development/python-modules/slixmpp/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, aiodns -, aiohttp -, fetchPypi -, gnupg -, pyasn1 -, pyasn1-modules -, pytestCheckHook -, substituteAll -, pythonOlder +{ + lib, + buildPythonPackage, + aiodns, + aiohttp, + fetchPypi, + gnupg, + pyasn1, + pyasn1-modules, + pytestCheckHook, + substituteAll, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { pyasn1-modules ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; patches = [ (substituteAll { @@ -47,9 +46,7 @@ buildPythonPackage rec { "tests/test_xep_0454.py" ]; - pythonImportsCheck = [ - "slixmpp" - ]; + pythonImportsCheck = [ "slixmpp" ]; meta = with lib; { description = "Python library for XMPP"; diff --git a/pkgs/development/python-modules/slob/default.nix b/pkgs/development/python-modules/slob/default.nix index 38b0c9d92bfd..3e72030896d5 100644 --- a/pkgs/development/python-modules/slob/default.nix +++ b/pkgs/development/python-modules/slob/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy3k -, pyicu -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy3k, + pyicu, + python, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/slovnet/default.nix b/pkgs/development/python-modules/slovnet/default.nix index 7f813564cafd..182b0475766a 100644 --- a/pkgs/development/python-modules/slovnet/default.nix +++ b/pkgs/development/python-modules/slovnet/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, razdel -, navec -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + razdel, + navec, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,7 +18,11 @@ buildPythonPackage rec { hash = "sha256-AtIle9ybnMHSQr007iyGHGSPcIPveJj+FGirzDge95k="; }; - propagatedBuildInputs = [ numpy navec razdel ]; + propagatedBuildInputs = [ + numpy + navec + razdel + ]; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests/" ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/slowapi/default.nix b/pkgs/development/python-modules/slowapi/default.nix index c64a89d896df..2e42fc17271f 100644 --- a/pkgs/development/python-modules/slowapi/default.nix +++ b/pkgs/development/python-modules/slowapi/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fastapi -, fetchFromGitHub -, limits -, mock -, hiro -, httpx -, poetry-core -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, redis -, starlette +{ + lib, + buildPythonPackage, + fastapi, + fetchFromGitHub, + limits, + mock, + hiro, + httpx, + poetry-core, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + redis, + starlette, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-R/Mr+Qv22AN7HCDGmAUVh4efU8z4gMIyhC0AuKmxgdE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ limits @@ -50,13 +49,9 @@ buildPythonPackage rec { # AssertionError: Regex pattern 'parameter `request` must be an instance of starlette.requests.Request' does not match 'This portal is not running'. "test_endpoint_request_param_invalid" "test_endpoint_response_param_invalid" - ] ++ lib.optionals (pythonAtLeast "3.10") [ - "test_multiple_decorators" - ]; + ] ++ lib.optionals (pythonAtLeast "3.10") [ "test_multiple_decorators" ]; - pythonImportsCheck = [ - "slowapi" - ]; + pythonImportsCheck = [ "slowapi" ]; meta = with lib; { description = "Python library for API rate limiting"; diff --git a/pkgs/development/python-modules/slpp/default.nix b/pkgs/development/python-modules/slpp/default.nix index 74dbfcc834cd..c21a183269a0 100644 --- a/pkgs/development/python-modules/slpp/default.nix +++ b/pkgs/development/python-modules/slpp/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, setuptools -, six + setuptools, + six, }: buildPythonPackage rec { @@ -17,20 +18,14 @@ buildPythonPackage rec { hash = "sha256-If3ZMoNICQxxpdMnc+juaKq4rX7MMi9eDMAQEUy1Scg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # No tests doCheck = false; - pythonImportsCheck = [ - "slpp" - ]; + pythonImportsCheck = [ "slpp" ]; meta = with lib; { description = "Simple lua-python parser"; diff --git a/pkgs/development/python-modules/slugid/default.nix b/pkgs/development/python-modules/slugid/default.nix index 3d3e54187267..cc695e5f2dbd 100644 --- a/pkgs/development/python-modules/slugid/default.nix +++ b/pkgs/development/python-modules/slugid/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub +{ + buildPythonPackage, + lib, + fetchFromGitHub, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { doCheck = false; # has no tests - pythonImportsCheck = [ - "slugid" - ]; + pythonImportsCheck = [ "slugid" ]; meta = with lib; { description = "URL-safe base64 UUID encoder for generating 22 character slugs"; diff --git a/pkgs/development/python-modules/sly/default.nix b/pkgs/development/python-modules/sly/default.nix index a1ba8f67f87b..fd9aff0819de 100644 --- a/pkgs/development/python-modules/sly/default.nix +++ b/pkgs/development/python-modules/sly/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,22 +19,16 @@ buildPythonPackage rec { hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postPatch = '' # imperative dev dependency installation rm Makefile ''; - pythonImportsCheck = [ - "sly" - ]; + pythonImportsCheck = [ "sly" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "An improved PLY implementation of lex and yacc for Python 3"; diff --git a/pkgs/development/python-modules/smart-meter-texas/default.nix b/pkgs/development/python-modules/smart-meter-texas/default.nix index de9f007af7ba..f373faeb278b 100644 --- a/pkgs/development/python-modules/smart-meter-texas/default.nix +++ b/pkgs/development/python-modules/smart-meter-texas/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiohttp -, asn1 -, python-dateutil -, setuptools -, tenacity +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiohttp, + asn1, + python-dateutil, + setuptools, + tenacity, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { --replace-fail "pytest-runner" "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiohttp diff --git a/pkgs/development/python-modules/smart-open/default.nix b/pkgs/development/python-modules/smart-open/default.nix index 470de7e118e0..aa98f44b02ff 100644 --- a/pkgs/development/python-modules/smart-open/default.nix +++ b/pkgs/development/python-modules/smart-open/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, azure-common -, azure-core -, azure-storage-blob -, boto3 -, google-cloud-storage -, requests -, moto -, paramiko -, pytestCheckHook -, responses -, setuptools -, wrapt -, zstandard +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + azure-common, + azure-core, + azure-storage-blob, + boto3, + google-cloud-storage, + requests, + moto, + paramiko, + pytestCheckHook, + responses, + setuptools, + wrapt, + zstandard, }: buildPythonPackage rec { @@ -42,43 +43,25 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - wrapt - ]; + dependencies = [ wrapt ]; optional-dependencies = { - s3 = [ - boto3 - ]; - gcs = [ - google-cloud-storage - ]; + s3 = [ boto3 ]; + gcs = [ google-cloud-storage ]; azure = [ azure-storage-blob azure-common azure-core ]; - http = [ - requests - ]; - webhdfs = [ - requests - ]; - ssh = [ - paramiko - ]; - zst = [ - zstandard - ]; + http = [ requests ]; + webhdfs = [ requests ]; + ssh = [ paramiko ]; + zst = [ zstandard ]; }; - pythonImportsCheck = [ - "smart_open" - ]; + pythonImportsCheck = [ "smart_open" ]; nativeCheckInputs = [ moto @@ -86,9 +69,7 @@ buildPythonPackage rec { responses ] ++ lib.flatten (builtins.attrValues optional-dependencies); - pytestFlagsArray = [ - "smart_open" - ]; + pytestFlagsArray = [ "smart_open" ]; disabledTests = [ # https://github.com/RaRe-Technologies/smart_open/issues/784 @@ -99,7 +80,7 @@ buildPythonPackage rec { ]; meta = with lib; { - changelog = "https://github.com/piskvorky/smart_open/releases/tag/v${version}"; + changelog = "https://github.com/piskvorky/smart_open/releases/tag/v${version}"; description = "Library for efficient streaming of very large file"; homepage = "https://github.com/RaRe-Technologies/smart_open"; license = licenses.mit; diff --git a/pkgs/development/python-modules/smarthab/default.nix b/pkgs/development/python-modules/smarthab/default.nix index f317e9a008ed..4060a3a92a91 100644 --- a/pkgs/development/python-modules/smarthab/default.nix +++ b/pkgs/development/python-modules/smarthab/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, aiohttp +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "bf929455a2f7cc1e275b331de73d983587138a8d9179574988ba05fa152d3ccf"; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # no tests on PyPI, no tags on GitLab doCheck = false; diff --git a/pkgs/development/python-modules/smartypants/default.nix b/pkgs/development/python-modules/smartypants/default.nix index 3d0fd5ba6e2c..e51744b9f507 100644 --- a/pkgs/development/python-modules/smartypants/default.nix +++ b/pkgs/development/python-modules/smartypants/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, isPyPy -, setuptools -, docutils -, pygments -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + isPyPy, + setuptools, + docutils, + pygments, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ docutils diff --git a/pkgs/development/python-modules/smbprotocol/default.nix b/pkgs/development/python-modules/smbprotocol/default.nix index f72eef539134..e531acb40b99 100644 --- a/pkgs/development/python-modules/smbprotocol/default.nix +++ b/pkgs/development/python-modules/smbprotocol/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pyspnego -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + stdenv, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pyspnego, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { "test_recv_" ]; - pythonImportsCheck = [ - "smbprotocol" - ]; + pythonImportsCheck = [ "smbprotocol" ]; meta = with lib; { description = "Python SMBv2 and v3 Client"; diff --git a/pkgs/development/python-modules/smbus-cffi/default.nix b/pkgs/development/python-modules/smbus-cffi/default.nix index b32cde3a87a4..7d76327862c9 100644 --- a/pkgs/development/python-modules/smbus-cffi/default.nix +++ b/pkgs/development/python-modules/smbus-cffi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cffi -, py -, pytestCheckHook -, pyserial -, fetchpatch +{ + lib, + buildPythonPackage, + fetchPypi, + cffi, + py, + pytestCheckHook, + pyserial, + fetchpatch, }: buildPythonPackage rec { @@ -39,7 +40,11 @@ buildPythonPackage rec { # requires hardware access pytestFlagsArray = [ "--ignore=test/test_smbus_integration.py" ]; - nativeCheckInputs = [ py pytestCheckHook pyserial ]; + nativeCheckInputs = [ + py + pytestCheckHook + pyserial + ]; meta = with lib; { description = "Python module for SMBus access through Linux I2C /dev interface"; diff --git a/pkgs/development/python-modules/smbus2/default.nix b/pkgs/development/python-modules/smbus2/default.nix index 893dd1921b51..f88d43362d58 100644 --- a/pkgs/development/python-modules/smbus2/default.nix +++ b/pkgs/development/python-modules/smbus2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-tjJurJzDn0ATiYY3Xo66lwUs98/7ZLG3d4+h1prVHAI="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "smbus2" - ]; + pythonImportsCheck = [ "smbus2" ]; meta = with lib; { description = "Drop-in replacement for smbus-cffi/smbus-python"; diff --git a/pkgs/development/python-modules/smdebug-rulesconfig/default.nix b/pkgs/development/python-modules/smdebug-rulesconfig/default.nix index 1c64184c093b..6f91ebe4c79a 100644 --- a/pkgs/development/python-modules/smdebug-rulesconfig/default.nix +++ b/pkgs/development/python-modules/smdebug-rulesconfig/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "smdebug-rulesconfig"; diff --git a/pkgs/development/python-modules/smhi-pkg/default.nix b/pkgs/development/python-modules/smhi-pkg/default.nix index a6b5334cedfc..2c812f5405ba 100644 --- a/pkgs/development/python-modules/smhi-pkg/default.nix +++ b/pkgs/development/python-modules/smhi-pkg/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-jcIXzAZO9SxC/0apdjAVv1GmBTbdlasfXr1/Tj9adNc="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/smmap/default.nix b/pkgs/development/python-modules/smmap/default.nix index dd58978ced49..eaaa36a22c95 100644 --- a/pkgs/development/python-modules/smmap/default.nix +++ b/pkgs/development/python-modules/smmap/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools -, nosexcover -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, + nosexcover, + pythonOlder, }: buildPythonPackage rec { @@ -16,15 +17,11 @@ buildPythonPackage rec { hash = "sha256-jXkCjqbMEx2l6rCZpdlamY1DxneZVv/+O0VQQJEQdto="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = pythonOlder "3.12"; - nativeCheckInputs = [ - nosexcover - ]; + nativeCheckInputs = [ nosexcover ]; meta = { description = "A pure python implementation of a sliding window memory map manager"; diff --git a/pkgs/development/python-modules/smpp-pdu/default.nix b/pkgs/development/python-modules/smpp-pdu/default.nix index e320b7e242c6..99fddc36fe76 100644 --- a/pkgs/development/python-modules/smpp-pdu/default.nix +++ b/pkgs/development/python-modules/smpp-pdu/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pydantic -, requests -, pytestCheckHook -, pytest-asyncio -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pydantic, + requests, + pytestCheckHook, + pytest-asyncio, + setuptools, }: buildPythonPackage { @@ -22,13 +23,9 @@ buildPythonPackage { hash = "sha256-/icVexc2S8sbJqn4ioeIhYxyDFIENuCfsFhl0uAHa9g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "smpp.pdu" ]; @@ -36,6 +33,9 @@ buildPythonPackage { description = "Library for parsing Protocol Data Units (PDUs) in SMPP protocol"; homepage = "https://github.com/hologram-io/smpp.pdu"; license = licenses.asl20; - maintainers = with maintainers; [ flokli janik ]; + maintainers = with maintainers; [ + flokli + janik + ]; }; } diff --git a/pkgs/development/python-modules/smpplib/default.nix b/pkgs/development/python-modules/smpplib/default.nix index a991532fa917..16c96ce311d4 100644 --- a/pkgs/development/python-modules/smpplib/default.nix +++ b/pkgs/development/python-modules/smpplib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, six -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + python, + six, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "sha256-UhWpWwU40m8YlgDgmCsx2oKB90U81uKGLFsh4+EAIzE="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ mock @@ -30,9 +29,7 @@ buildPythonPackage rec { rm -rf $out/${python.sitePackages}/tests ''; - pythonImportsCheck = [ - "smpplib" - ]; + pythonImportsCheck = [ "smpplib" ]; meta = with lib; { description = "SMPP library for Python"; diff --git a/pkgs/development/python-modules/smtpdfix/default.nix b/pkgs/development/python-modules/smtpdfix/default.nix index 3d541263c05a..67be67fb5ac7 100644 --- a/pkgs/development/python-modules/smtpdfix/default.nix +++ b/pkgs/development/python-modules/smtpdfix/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, setuptools -, pytest -, portpicker -, cryptography -, aiosmtpd -, pytestCheckHook -, pytest-asyncio +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + setuptools, + pytest, + portpicker, + cryptography, + aiosmtpd, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-5NGs6Q83EqGRJ+2IdOaXqGFIwfSNKy2wwHIJaOjj7JU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiosmtpd diff --git a/pkgs/development/python-modules/snakebite/default.nix b/pkgs/development/python-modules/snakebite/default.nix index a5a1addf81b0..5570972d24a4 100644 --- a/pkgs/development/python-modules/snakebite/default.nix +++ b/pkgs/development/python-modules/snakebite/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, protobuf +{ + lib, + buildPythonPackage, + fetchPypi, + protobuf, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "085238b4944cb9c658ee62d5794de936ac3d0c337c504b2cc86424a205ae978a"; }; - propagatedBuildInputs = [ - protobuf - ]; + propagatedBuildInputs = [ protobuf ]; postPatch = '' substituteInPlace setup.py \ @@ -26,9 +25,7 @@ buildPythonPackage rec { # Tests require hadoop hdfs doCheck = false; - pythonImportsCheck = [ - "snakebite" - ]; + pythonImportsCheck = [ "snakebite" ]; meta = with lib; { description = "Pure Python HDFS client"; diff --git a/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix b/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix index 8785039c6a18..67ae31e9ff34 100644 --- a/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix +++ b/pkgs/development/python-modules/snakemake-executor-plugin-cluster-generic/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, snakemake-interface-executor-plugins -, snakemake-interface-common +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + snakemake-interface-executor-plugins, + snakemake-interface-common, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-RHMefoJOZb6TjRsFCORLFdHtI5ZpTsV6CHrjHKMat9o="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ snakemake-interface-executor-plugins diff --git a/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix index e40a0842b908..cb41b71dc4a0 100644 --- a/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-executor-plugins/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, argparse-dataclass -, throttler -, snakemake-interface-common +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + argparse-dataclass, + throttler, + snakemake-interface-common, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-jANSGNdWmc6ERClLR/pExoboyz8gUL2FW3W7kDQDOQo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ argparse-dataclass diff --git a/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix index 85c4c756b534..31f2798de821 100644 --- a/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-report-plugins/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, snakemake-interface-common +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + snakemake-interface-common, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-30x4avA3FrqZ4GoTl6Js5h3VG5LW7BNHOcNWxznXoT0="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - snakemake-interface-common - ]; + propagatedBuildInputs = [ snakemake-interface-common ]; pythonImportsCheck = [ "snakemake_interface_report_plugins" ]; diff --git a/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix index 6df9688d1064..493f142724e3 100644 --- a/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, reretry -, snakemake-interface-common -, throttler -, wrapt -, snakemake +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + reretry, + snakemake-interface-common, + throttler, + wrapt, + snakemake, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-syUjK32RPV9FMV7RSpXy+PJ2AVigGH+ywm6iTjUAuec="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ reretry diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix index a029348d4ffa..865f9df8fbd2 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-s3/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, boto3 -, botocore -, poetry-core -, snakemake -, snakemake-interface-storage-plugins -, snakemake-interface-common -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + boto3, + botocore, + poetry-core, + snakemake, + snakemake-interface-storage-plugins, + snakemake-interface-common, + urllib3, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { --replace ">=2.0,<2.2" "*" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ boto3 @@ -39,9 +38,7 @@ buildPythonPackage rec { urllib3 ]; - nativeCheckInputs = [ - snakemake - ]; + nativeCheckInputs = [ snakemake ]; pythonImportsCheck = [ "snakemake_storage_plugin_s3" ]; diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix index 82d8c2928c3c..c5d22431f433 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, snakemake -, snakemake-interface-storage-plugins -, snakemake-interface-common -, xrootd +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + snakemake, + snakemake-interface-storage-plugins, + snakemake-interface-common, + xrootd, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace 'xrootd = "^5.6.4"' "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ snakemake-interface-storage-plugins @@ -36,9 +35,7 @@ buildPythonPackage rec { xrootd ]; - nativeCheckInputs = [ - snakemake - ]; + nativeCheckInputs = [ snakemake ]; pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ]; diff --git a/pkgs/development/python-modules/snakeviz/default.nix b/pkgs/development/python-modules/snakeviz/default.nix index 6e3cc6244799..c2fd38466ff6 100644 --- a/pkgs/development/python-modules/snakeviz/default.nix +++ b/pkgs/development/python-modules/snakeviz/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ipython -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, tornado +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ipython, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + tornado, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-tW1zUfCgOGQ8TjrKo2lBzGb0MSe25dP0/P9Q6x3736E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - tornado - ]; + propagatedBuildInputs = [ tornado ]; __darwinAllowLocalNetworking = true; @@ -39,9 +36,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "snakeviz" - ]; + pythonImportsCheck = [ "snakeviz" ]; preCheck = '' export PATH="$PATH:$out/bin"; diff --git a/pkgs/development/python-modules/snap-helpers/default.nix b/pkgs/development/python-modules/snap-helpers/default.nix index c21df9231ee5..7470baa097c9 100644 --- a/pkgs/development/python-modules/snap-helpers/default.nix +++ b/pkgs/development/python-modules/snap-helpers/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nix-update-script -, pyyaml -, setuptools -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nix-update-script, + pyyaml, + setuptools, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { hash = "sha256-7JBvrD4WNOcFSVx3xauk4JgiVGKWuUEdUMRlH7mudE4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; - pythonImportsCheck = [ - "snaphelpers" - ]; + pythonImportsCheck = [ "snaphelpers" ]; nativeCheckInputs = [ pytest-mock @@ -49,4 +44,3 @@ buildPythonPackage rec { platforms = lib.platforms.linux; }; } - diff --git a/pkgs/development/python-modules/snapcast/default.nix b/pkgs/development/python-modules/snapcast/default.nix index 89a2b814bedb..bd46684d4208 100644 --- a/pkgs/development/python-modules/snapcast/default.nix +++ b/pkgs/development/python-modules/snapcast/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, construct -, packaging -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + construct, + packaging, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-gn+X0DZnox4mkJwDVgwNXae63iGbiqPIO15UV5pDwuY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ construct packaging ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "snapcast" - ]; + pythonImportsCheck = [ "snapcast" ]; disabledTests = [ # AssertionError and TypeError diff --git a/pkgs/development/python-modules/snapshottest/default.nix b/pkgs/development/python-modules/snapshottest/default.nix index b19873318fd7..dd2e2f192b81 100644 --- a/pkgs/development/python-modules/snapshottest/default.nix +++ b/pkgs/development/python-modules/snapshottest/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fastdiff -, six -, termcolor -, pytestCheckHook -, pytest-cov -, django +{ + lib, + buildPythonPackage, + fetchPypi, + fastdiff, + six, + termcolor, + pytestCheckHook, + pytest-cov, + django, }: buildPythonPackage rec { @@ -19,9 +20,17 @@ buildPythonPackage rec { sha256 = "0g35ggqw4jd9zmazw55kj6gfjdghv49qx4jw5q231qyqj8fzijmv"; }; - propagatedBuildInputs = [ fastdiff six termcolor ]; + propagatedBuildInputs = [ + fastdiff + six + termcolor + ]; - nativeCheckInputs = [ django pytestCheckHook pytest-cov ]; + nativeCheckInputs = [ + django + pytestCheckHook + pytest-cov + ]; pythonImportsCheck = [ "snapshottest" ]; diff --git a/pkgs/development/python-modules/snaptime/default.nix b/pkgs/development/python-modules/snaptime/default.nix index 8f148eba4e68..c48cfd27f9b1 100644 --- a/pkgs/development/python-modules/snaptime/default.nix +++ b/pkgs/development/python-modules/snaptime/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, python-dateutil -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + python-dateutil, + pytz, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-4/HriQQ9WNMHIauYy2UCPxpMJ0DjsZdwQpixY8ktUIs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ python-dateutil diff --git a/pkgs/development/python-modules/sniffio/default.nix b/pkgs/development/python-modules/sniffio/default.nix index 9496f0cb081e..5bfe0e6c191b 100644 --- a/pkgs/development/python-modules/sniffio/default.nix +++ b/pkgs/development/python-modules/sniffio/default.nix @@ -1,12 +1,13 @@ -{ buildPythonPackage -, lib -, fetchPypi -, setuptools -, setuptools-scm -, glibcLocales -, isPy3k -, pytestCheckHook -, curio +{ + buildPythonPackage, + lib, + fetchPypi, + setuptools, + setuptools-scm, + glibcLocales, + isPy3k, + pytestCheckHook, + curio, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - glibcLocales - ]; + buildInputs = [ glibcLocales ]; nativeCheckInputs = [ curio diff --git a/pkgs/development/python-modules/snorkel/default.nix b/pkgs/development/python-modules/snorkel/default.nix index 04e605d14554..4a13f3e12195 100644 --- a/pkgs/development/python-modules/snorkel/default.nix +++ b/pkgs/development/python-modules/snorkel/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, tensorboard -, scipy -, tqdm -, scikit-learn -, munkres -, networkx -, torch -, pandas -# test dependencies -, pytestCheckHook -, spacy -, pyspark -, dill -, dask -, spacy-models +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + tensorboard, + scipy, + tqdm, + scikit-learn, + munkres, + networkx, + torch, + pandas, + # test dependencies + pytestCheckHook, + spacy, + pyspark, + dill, + dask, + spacy-models, }: let pname = "snorkel"; diff --git a/pkgs/development/python-modules/snowballstemmer/default.nix b/pkgs/development/python-modules/snowballstemmer/default.nix index a1723bd15792..37a2a51390d8 100644 --- a/pkgs/development/python-modules/snowballstemmer/default.nix +++ b/pkgs/development/python-modules/snowballstemmer/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, pystemmer, fetchPypi }: +{ + lib, + buildPythonPackage, + pystemmer, + fetchPypi, +}: buildPythonPackage rec { pname = "snowballstemmer"; diff --git a/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix b/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix index 66824e6ccd0f..26942b6d9118 100644 --- a/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, snowflake-connector-python -, sqlalchemy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + snowflake-connector-python, + sqlalchemy, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Pypi does not include tests doCheck = false; - pythonImportsCheck = [ - "snowflake.sqlalchemy" - ]; + pythonImportsCheck = [ "snowflake.sqlalchemy" ]; meta = with lib; { changelog = "https://github.com/snowflakedb/snowflake-sqlalchemy/blob/v${version}/DESCRIPTION.md"; diff --git a/pkgs/development/python-modules/snscrape/default.nix b/pkgs/development/python-modules/snscrape/default.nix index e834fc3226ff..e449ed2f479a 100644 --- a/pkgs/development/python-modules/snscrape/default.nix +++ b/pkgs/development/python-modules/snscrape/default.nix @@ -1,13 +1,14 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, filelock -, lxml -, pythonOlder -, pytz -, requests -, setuptools-scm +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + filelock, + lxml, + pythonOlder, + pytz, + requests, + setuptools-scm, }: buildPythonPackage rec { @@ -24,20 +25,14 @@ buildPythonPackage rec { hash = "sha256-9xAUMr1SWFePEvIz6DFEexk9Txex3u8wPNfMAdxEUCA="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ beautifulsoup4 filelock lxml requests - ] - ++ requests.optional-dependencies.socks - ++ lib.optionals (pythonOlder "3.9") [ - pytz - ]; + ] ++ requests.optional-dependencies.socks ++ lib.optionals (pythonOlder "3.9") [ pytz ]; # There are no tests; make sure the executable works. checkPhase = '' @@ -45,9 +40,7 @@ buildPythonPackage rec { snscrape --help ''; - pythonImportsCheck = [ - "snscrape" - ]; + pythonImportsCheck = [ "snscrape" ]; meta = with lib; { description = "A social networking service scraper"; diff --git a/pkgs/development/python-modules/snuggs/default.nix b/pkgs/development/python-modules/snuggs/default.nix index 8824645973ed..914166113170 100644 --- a/pkgs/development/python-modules/snuggs/default.nix +++ b/pkgs/development/python-modules/snuggs/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, click -, numpy -, pyparsing -, pytestCheckHook -, hypothesis +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + click, + numpy, + pyparsing, + pytestCheckHook, + hypothesis, }: buildPythonPackage rec { @@ -31,9 +32,16 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ click numpy pyparsing ]; + propagatedBuildInputs = [ + click + numpy + pyparsing + ]; - nativeCheckInputs = [ pytestCheckHook hypothesis ]; + nativeCheckInputs = [ + pytestCheckHook + hypothesis + ]; meta = with lib; { description = "S-expressions for Numpy"; diff --git a/pkgs/development/python-modules/social-auth-app-django/default.nix b/pkgs/development/python-modules/social-auth-app-django/default.nix index 1806752e6020..1441caa2cd5a 100644 --- a/pkgs/development/python-modules/social-auth-app-django/default.nix +++ b/pkgs/development/python-modules/social-auth-app-django/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, social-auth-core -, django -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + social-auth-core, + django, + python, + pythonOlder, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { hash = "sha256-BvPQo0pXffGYu0tpy5yHT9lJVwOTewBiX5GLeezBrhE="; }; - propagatedBuildInputs = [ - social-auth-core - ]; + propagatedBuildInputs = [ social-auth-core ]; - pythonImportsCheck = [ - "social_django" - ]; + pythonImportsCheck = [ "social_django" ]; - nativeCheckInputs = [ - django - ]; + nativeCheckInputs = [ django ]; checkPhase = '' ${python.interpreter} -m django test --settings="tests.settings" diff --git a/pkgs/development/python-modules/social-auth-core/default.nix b/pkgs/development/python-modules/social-auth-core/default.nix index 2417de9daf19..7f9091b46f43 100644 --- a/pkgs/development/python-modules/social-auth-core/default.nix +++ b/pkgs/development/python-modules/social-auth-core/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, cryptography -, defusedxml -, fetchFromGitHub -, httpretty -, lxml -, oauthlib -, pyjwt -, pytestCheckHook -, python-jose -, python3-openid -, python3-saml -, pythonOlder -, requests -, requests-oauthlib -, setuptools +{ + lib, + buildPythonPackage, + cryptography, + defusedxml, + fetchFromGitHub, + httpretty, + lxml, + oauthlib, + pyjwt, + pytestCheckHook, + python-jose, + python3-openid, + python3-saml, + pythonOlder, + requests, + requests-oauthlib, + setuptools, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-tFaRvNoO5K7ytqMhL//Ntasc7jb4PYXB1yyjFvFqQH8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography @@ -46,16 +45,12 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - openidconnect = [ - python-jose - ]; + openidconnect = [ python-jose ]; saml = [ lxml python3-saml ]; - azuread = [ - cryptography - ]; + azuread = [ cryptography ]; }; nativeCheckInputs = [ @@ -73,9 +68,7 @@ buildPythonPackage rec { --replace "{posargs:-v --cov=social_core}" "{posargs:-v}" ''; - pythonImportsCheck = [ - "social_core" - ]; + pythonImportsCheck = [ "social_core" ]; meta = with lib; { description = "Module for social authentication/registration mechanisms"; diff --git a/pkgs/development/python-modules/socialscan/default.nix b/pkgs/development/python-modules/socialscan/default.nix index 430cc1f5a725..c0b4541e7373 100644 --- a/pkgs/development/python-modules/socialscan/default.nix +++ b/pkgs/development/python-modules/socialscan/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, colorama -, pythonOlder -, tqdm +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + colorama, + pythonOlder, + tqdm, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "socialscan" - ]; + pythonImportsCheck = [ "socialscan" ]; meta = with lib; { description = "Python library and CLI for accurately querying username and email usage on online platforms"; diff --git a/pkgs/development/python-modules/socid-extractor/default.nix b/pkgs/development/python-modules/socid-extractor/default.nix index 6346d808127b..1fd9b67c5a5c 100644 --- a/pkgs/development/python-modules/socid-extractor/default.nix +++ b/pkgs/development/python-modules/socid-extractor/default.nix @@ -1,10 +1,11 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, python-dateutil -, pythonOlder -, requests +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + python-dateutil, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Test require network access doCheck = false; - pythonImportsCheck = [ - "socid_extractor" - ]; + pythonImportsCheck = [ "socid_extractor" ]; meta = with lib; { description = "Python module to extract details from personal pages"; diff --git a/pkgs/development/python-modules/socketio-client/default.nix b/pkgs/development/python-modules/socketio-client/default.nix index 3c45ee1d5462..0ac94dcb80a2 100644 --- a/pkgs/development/python-modules/socketio-client/default.nix +++ b/pkgs/development/python-modules/socketio-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, requests -, six -, websocket-client -, fetchFromGitHub +{ + lib, + buildPythonPackage, + requests, + six, + websocket-client, + fetchFromGitHub, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # Perform networking tests. doCheck = false; - pythonImportsCheck = [ - "socketIO_client" - ]; + pythonImportsCheck = [ "socketIO_client" ]; meta = with lib; { description = "A socket.io client library for protocol 1.x"; diff --git a/pkgs/development/python-modules/sockio/default.nix b/pkgs/development/python-modules/sockio/default.nix index 8ce561b781f9..eedd12e0dc32 100644 --- a/pkgs/development/python-modules/sockio/default.nix +++ b/pkgs/development/python-modules/sockio/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "sockio" - ]; + pythonImportsCheck = [ "sockio" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/sockjs-tornado/default.nix b/pkgs/development/python-modules/sockjs-tornado/default.nix index 37d75b76edd9..dd653621d6c5 100644 --- a/pkgs/development/python-modules/sockjs-tornado/default.nix +++ b/pkgs/development/python-modules/sockjs-tornado/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, tornado }: +{ + lib, + buildPythonPackage, + fetchPypi, + tornado, +}: buildPythonPackage rec { pname = "sockjs-tornado"; diff --git a/pkgs/development/python-modules/sockjs/default.nix b/pkgs/development/python-modules/sockjs/default.nix index 228ac2fd6bbf..0cb52beb9724 100644 --- a/pkgs/development/python-modules/sockjs/default.nix +++ b/pkgs/development/python-modules/sockjs/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, aiohttp }: +{ + lib, + buildPythonPackage, + fetchPypi, + aiohttp, +}: buildPythonPackage rec { pname = "sockjs"; diff --git a/pkgs/development/python-modules/socksio/default.nix b/pkgs/development/python-modules/socksio/default.nix index fb767db631d8..02de4ab9cd6e 100644 --- a/pkgs/development/python-modules/socksio/default.nix +++ b/pkgs/development/python-modules/socksio/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, pythonAtLeast -, flit-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + pythonAtLeast, + flit-core, + pytestCheckHook, }: let @@ -29,18 +30,14 @@ buildPythonPackage { }) ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # remove coverage configuration preCheck = '' rm pytest.ini ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5"; diff --git a/pkgs/development/python-modules/socksipy-branch/default.nix b/pkgs/development/python-modules/socksipy-branch/default.nix index e9266bb27fe6..e09d1aeb025a 100644 --- a/pkgs/development/python-modules/socksipy-branch/default.nix +++ b/pkgs/development/python-modules/socksipy-branch/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { description = "This Python module allows you to create TCP connections through a SOCKS proxy without any special effort"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/softlayer/default.nix b/pkgs/development/python-modules/softlayer/default.nix index 232097f29f25..a3adf24ecb7d 100644 --- a/pkgs/development/python-modules/softlayer/default.nix +++ b/pkgs/development/python-modules/softlayer/default.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, buildPythonPackage -, click -, fetchFromGitHub -, mock -, prettytable -, prompt-toolkit -, ptable -, pygments -, pytestCheckHook -, pythonOlder -, requests -, rich -, sphinx -, testtools -, tkinter -, urllib3 -, zeep +{ + lib, + stdenv, + buildPythonPackage, + click, + fetchFromGitHub, + mock, + prettytable, + prompt-toolkit, + ptable, + pygments, + pytestCheckHook, + pythonOlder, + requests, + rich, + sphinx, + testtools, + tkinter, + urllib3, + zeep, }: buildPythonPackage rec { @@ -71,9 +72,7 @@ buildPythonPackage rec { "tests/transports/soap_tests.py.unstable" ]; - pythonImportsCheck = [ - "SoftLayer" - ]; + pythonImportsCheck = [ "SoftLayer" ]; meta = with lib; { description = "Python libraries that assist in calling the SoftLayer API"; diff --git a/pkgs/development/python-modules/solaredge/default.nix b/pkgs/development/python-modules/solaredge/default.nix index 6dc0fa09be31..1d942f8ca6ac 100644 --- a/pkgs/development/python-modules/solaredge/default.nix +++ b/pkgs/development/python-modules/solaredge/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python-dateutil -, pythonOlder -, pytz -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + python-dateutil, + pythonOlder, + pytz, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/solax/default.nix b/pkgs/development/python-modules/solax/default.nix index f63ea26d5adf..12671a9f5fcf 100644 --- a/pkgs/development/python-modules/solax/default.nix +++ b/pkgs/development/python-modules/solax/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi -, pytest-asyncio -, pytest-httpserver -, pytestCheckHook -, pythonOlder -, setuptools-scm -, voluptuous +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, + pytest-asyncio, + pytest-httpserver, + pytestCheckHook, + pythonOlder, + setuptools-scm, + voluptuous, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-vc1NAbcQQxjpXnjZvTsnebzMc/LoMwBveDHBxBbhnEo="; }; - build-system = [ - setuptools-scm - ]; + build-system = [ setuptools-scm ]; dependencies = [ aiohttp @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "solax" - ]; + pythonImportsCheck = [ "solax" ]; disabledTests = [ # Tests require network access diff --git a/pkgs/development/python-modules/solc-select/default.nix b/pkgs/development/python-modules/solc-select/default.nix index f0724bd241ad..3a9e0f7bb4a9 100644 --- a/pkgs/development/python-modules/solc-select/default.nix +++ b/pkgs/development/python-modules/solc-select/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, packaging -, pycryptodome +{ + lib, + buildPythonPackage, + fetchPypi, + packaging, + pycryptodome, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/solo-python/default.nix b/pkgs/development/python-modules/solo-python/default.nix index fef12eb963a3..679351c90657 100644 --- a/pkgs/development/python-modules/solo-python/default.nix +++ b/pkgs/development/python-modules/solo-python/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, flit -, click -, cryptography -, ecdsa -, fido2 -, intelhex -, pyserial -, pyusb -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + flit, + click, + cryptography, + ecdsa, + fido2, + intelhex, + pyserial, + pyusb, + requests, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-XVPYr7JwxeZfZ68+vQ7a7MNiAfJ2bvMbM3R1ryVJ+OU="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; propagatedBuildInputs = [ click @@ -58,7 +57,10 @@ buildPythonPackage rec { description = "Python tool and library for SoloKeys Solo 1"; homepage = "https://github.com/solokeys/solo1-cli"; maintainers = with maintainers; [ wucke13 ]; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; # not compatible with fido2 >= 1.0.0 # https://github.com/solokeys/solo1-cli/issues/157 broken = versionAtLeast fido2.version "1.0.0"; diff --git a/pkgs/development/python-modules/somajo/default.nix b/pkgs/development/python-modules/somajo/default.nix index 2401bb9264a8..c8de14dd7fdd 100644 --- a/pkgs/development/python-modules/somajo/default.nix +++ b/pkgs/development/python-modules/somajo/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, fetchFromGitHub -, buildPythonPackage -, pythonOlder -, setuptools -, regex +{ + lib, + stdenv, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + setuptools, + regex, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-5rlgDnPYTtuVMincG5CgVwNh/IGmZk6ItvzdB/wHmgg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - regex - ]; + propagatedBuildInputs = [ regex ]; # loops forever doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "somajo" - ]; + pythonImportsCheck = [ "somajo" ]; meta = with lib; { description = "Tokenizer and sentence splitter for German and English web texts"; diff --git a/pkgs/development/python-modules/somfy-mylink-synergy/default.nix b/pkgs/development/python-modules/somfy-mylink-synergy/default.nix index fce4af208680..1bb28e17cd1f 100644 --- a/pkgs/development/python-modules/somfy-mylink-synergy/default.nix +++ b/pkgs/development/python-modules/somfy-mylink-synergy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sonarr/default.nix b/pkgs/development/python-modules/sonarr/default.nix index 0d2fe50b3976..479ae69e96b9 100644 --- a/pkgs/development/python-modules/sonarr/default.nix +++ b/pkgs/development/python-modules/sonarr/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, aiohttp -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sonos-websocket/default.nix b/pkgs/development/python-modules/sonos-websocket/default.nix index ce182adb8fac..1239043c26a2 100644 --- a/pkgs/development/python-modules/sonos-websocket/default.nix +++ b/pkgs/development/python-modules/sonos-websocket/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-1sgYLwIW7VWnHJGsfIQ95AGZ5j/DPMKQr5n7F+/MsuY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "sonos_websocket" - ]; + pythonImportsCheck = [ "sonos_websocket" ]; meta = with lib; { description = "Library to communicate with Sonos devices over websockets"; diff --git a/pkgs/development/python-modules/sopel/default.nix b/pkgs/development/python-modules/sopel/default.nix index 93b942811c38..01b118baf22f 100644 --- a/pkgs/development/python-modules/sopel/default.nix +++ b/pkgs/development/python-modules/sopel/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchPypi -, geoip2 -, ipython -, isPyPy -, praw -, pyenchant -, pygeoip -, pytestCheckHook -, pythonOlder -, pytz -, sqlalchemy -, xmltodict +{ + lib, + buildPythonPackage, + dnspython, + fetchPypi, + geoip2, + ipython, + isPyPy, + praw, + pyenchant, + pygeoip, + pytestCheckHook, + pythonOlder, + pytz, + sqlalchemy, + xmltodict, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace requirements.txt \ @@ -67,9 +66,7 @@ buildPythonPackage rec { popd ''; - pythonImportsCheck = [ - "sopel" - ]; + pythonImportsCheck = [ "sopel" ]; meta = with lib; { description = "Simple and extensible IRC bot"; diff --git a/pkgs/development/python-modules/sorl-thumbnail/default.nix b/pkgs/development/python-modules/sorl-thumbnail/default.nix index 2337d6b940c2..de3fd466ec6e 100644 --- a/pkgs/development/python-modules/sorl-thumbnail/default.nix +++ b/pkgs/development/python-modules/sorl-thumbnail/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, setuptools-scm -, django +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + setuptools-scm, + django, }: buildPythonPackage rec { @@ -24,18 +25,14 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - django - ]; + buildInputs = [ django ]; env.DJANGO_SETTINGS_MODULE = "sorl.thumbnail.conf.defaults"; # Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl. doCheck = false; - pythonImportsCheck = [ - "sorl.thumbnail" - ]; + pythonImportsCheck = [ "sorl.thumbnail" ]; meta = with lib; { homepage = "https://sorl-thumbnail.readthedocs.org/en/latest/"; diff --git a/pkgs/development/python-modules/sortedcollections/default.nix b/pkgs/development/python-modules/sortedcollections/default.nix index 97cf9d8afa15..3ee4eff75023 100644 --- a/pkgs/development/python-modules/sortedcollections/default.nix +++ b/pkgs/development/python-modules/sortedcollections/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-cov -, pytestCheckHook -, sortedcontainers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-cov, + pytestCheckHook, + sortedcontainers, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sortedcontainers/default.nix b/pkgs/development/python-modules/sortedcontainers/default.nix index 5cf34d566dce..a764cf6d5dde 100644 --- a/pkgs/development/python-modules/sortedcontainers/default.nix +++ b/pkgs/development/python-modules/sortedcontainers/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: let @@ -19,14 +20,14 @@ let doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sortedcontainers" ]; passthru.tests = { - pytest = sortedcontainers.overridePythonAttrs (_: { doCheck = true; }); + pytest = sortedcontainers.overridePythonAttrs (_: { + doCheck = true; + }); }; meta = with lib; { diff --git a/pkgs/development/python-modules/soundcloud-v2/default.nix b/pkgs/development/python-modules/soundcloud-v2/default.nix index d1df08cf9039..7713c7d6d547 100644 --- a/pkgs/development/python-modules/soundcloud-v2/default.nix +++ b/pkgs/development/python-modules/soundcloud-v2/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, dacite -, python-dateutil -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + dacite, + python-dateutil, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { sha256 = "sha256-DiaCnIEXKSxyE4+MCq0KwdKWUGfWO3LAVwsMNEkOmqc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ dacite diff --git a/pkgs/development/python-modules/sounddevice/default.nix b/pkgs/development/python-modules/sounddevice/default.nix index 34e413c21ab4..7e312c1225d0 100644 --- a/pkgs/development/python-modules/sounddevice/default.nix +++ b/pkgs/development/python-modules/sounddevice/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, isPy27 -, cffi -, numpy -, portaudio -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + isPy27, + cffi, + numpy, + portaudio, + substituteAll, }: buildPythonPackage rec { @@ -20,7 +21,11 @@ buildPythonPackage rec { hash = "sha256-Mja3jxXwQVvfAGpiDO8HPQwFIoUdZvSpYe1tjrFIL+k="; }; - propagatedBuildInputs = [ cffi numpy portaudio ]; + propagatedBuildInputs = [ + cffi + numpy + portaudio + ]; # No tests included nor upstream available. doCheck = false; diff --git a/pkgs/development/python-modules/soundfile/default.nix b/pkgs/development/python-modules/soundfile/default.nix index 3a0193028c0d..83caeb5774b8 100644 --- a/pkgs/development/python-modules/soundfile/default.nix +++ b/pkgs/development/python-modules/soundfile/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, numpy -, libsndfile -, cffi -, isPyPy -, stdenv +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + numpy, + libsndfile, + cffi, + isPyPy, + stdenv, }: buildPythonPackage rec { @@ -21,16 +22,18 @@ buildPythonPackage rec { hash = "sha256-6OEBeyzx3adnrvGdL9nuXr4H4FDUMPd6Cnxmugi4za4="; }; - patches = [ - ./0001-Fix-build-on-linux-arm64.patch - ]; + patches = [ ./0001-Fix-build-on-linux-arm64.patch ]; postPatch = '' substituteInPlace soundfile.py --replace "_find_library('sndfile')" "'${libsndfile.out}/lib/libsndfile${stdenv.hostPlatform.extensions.sharedLibrary}'" ''; nativeCheckInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ numpy libsndfile cffi ]; + propagatedBuildInputs = [ + numpy + libsndfile + cffi + ]; propagatedNativeBuildInputs = [ cffi ]; meta = { diff --git a/pkgs/development/python-modules/soupsieve/default.nix b/pkgs/development/python-modules/soupsieve/default.nix index 1ae1cb7b8d2b..87d203fbd571 100644 --- a/pkgs/development/python-modules/soupsieve/default.nix +++ b/pkgs/development/python-modules/soupsieve/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + isPy3k, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-VmPVp7O/ru4LxDcuf8SPnP9JQLPuxUpkUcxSmfEJdpA="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; # Circular dependency on beautifulsoup4 doCheck = false; diff --git a/pkgs/development/python-modules/sourmash/default.nix b/pkgs/development/python-modules/sourmash/default.nix index 2a9dc470f145..0798bd32324e 100644 --- a/pkgs/development/python-modules/sourmash/default.nix +++ b/pkgs/development/python-modules/sourmash/default.nix @@ -1,21 +1,22 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, rustPlatform -, bitstring -, cachetools -, cffi -, deprecation -, iconv -, matplotlib -, numpy -, scipy -, screed -, hypothesis -, pytest-xdist -, pyyaml -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + rustPlatform, + bitstring, + cachetools, + cffi, + deprecation, + iconv, + matplotlib, + numpy, + scipy, + screed, + hypothesis, + pytest-xdist, + pyyaml, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/soxr/default.nix b/pkgs/development/python-modules/soxr/default.nix index 7cd1cc0af6bc..841ba83259f7 100644 --- a/pkgs/development/python-modules/soxr/default.nix +++ b/pkgs/development/python-modules/soxr/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cython -, numpy -, oldest-supported-numpy -, setuptools -, setuptools-scm -, gnutar + # build-system + cython, + numpy, + oldest-supported-numpy, + setuptools, + setuptools-scm, + gnutar, -# native -, libsoxr + # native + libsoxr, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -44,17 +45,11 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - libsoxr - ]; + buildInputs = [ libsoxr ]; - pythonImportsCheck = [ - "soxr" - ]; + pythonImportsCheck = [ "soxr" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "High quality, one-dimensional sample-rate conversion library"; diff --git a/pkgs/development/python-modules/spacy-alignments/default.nix b/pkgs/development/python-modules/spacy-alignments/default.nix index 103c10049284..fd548f5eb311 100644 --- a/pkgs/development/python-modules/spacy-alignments/default.nix +++ b/pkgs/development/python-modules/spacy-alignments/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, cargo -, fetchPypi -, buildPythonPackage -, isPy3k -, rustPlatform -, rustc -, setuptools-rust -, libiconv +{ + lib, + stdenv, + cargo, + fetchPypi, + buildPythonPackage, + isPy3k, + rustPlatform, + rustc, + setuptools-rust, + libiconv, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/spacy-loggers/default.nix b/pkgs/development/python-modules/spacy-loggers/default.nix index 72361aa04bf8..85201465bb4a 100644 --- a/pkgs/development/python-modules/spacy-loggers/default.nix +++ b/pkgs/development/python-modules/spacy-loggers/default.nix @@ -1,9 +1,10 @@ -{ lib -, callPackage -, fetchPypi -, buildPythonPackage -, wandb -, wasabi +{ + lib, + callPackage, + fetchPypi, + buildPythonPackage, + wandb, + wasabi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/spacy-pkuseg/default.nix b/pkgs/development/python-modules/spacy-pkuseg/default.nix index 02f47d791154..04b8ca7e71dc 100644 --- a/pkgs/development/python-modules/spacy-pkuseg/default.nix +++ b/pkgs/development/python-modules/spacy-pkuseg/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, cython -, numpy -, srsly +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + cython, + numpy, + srsly, }: buildPythonPackage rec { @@ -26,7 +27,10 @@ buildPythonPackage rec { nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ numpy srsly ]; + propagatedBuildInputs = [ + numpy + srsly + ]; pythonImportsCheck = [ "spacy_pkuseg" ]; diff --git a/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix b/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix index f2b4bfb3a068..51d0388f72ca 100644 --- a/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix +++ b/pkgs/development/python-modules/spacy-transformers/annotation-test/default.nix @@ -1,4 +1,8 @@ -{ stdenv, pytest, spacy-models }: +{ + stdenv, + pytest, + spacy-models, +}: stdenv.mkDerivation { name = "spacy-transformers-annotation-test"; @@ -9,7 +13,10 @@ stdenv.mkDerivation { dontBuild = true; doCheck = true; - nativeCheckInputs = [ pytest spacy-models.en_core_web_trf ]; + nativeCheckInputs = [ + pytest + spacy-models.en_core_web_trf + ]; checkPhase = '' pytest annotate.py diff --git a/pkgs/development/python-modules/spacy-transformers/default.nix b/pkgs/development/python-modules/spacy-transformers/default.nix index bdff12f84e62..5d5e08197fa1 100644 --- a/pkgs/development/python-modules/spacy-transformers/default.nix +++ b/pkgs/development/python-modules/spacy-transformers/default.nix @@ -1,18 +1,19 @@ -{ lib -, callPackage -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, cython -, pythonRelaxDepsHook -, spacy -, numpy -, transformers -, torch -, srsly -, spacy-alignments -, pytestCheckHook +{ + lib, + callPackage, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + cython, + pythonRelaxDepsHook, + spacy, + numpy, + transformers, + torch, + srsly, + spacy-alignments, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { cython ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; dependencies = [ spacy @@ -47,20 +46,14 @@ buildPythonPackage rec { spacy-alignments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonRelaxDeps = [ - "transformers" - ]; + pythonRelaxDeps = [ "transformers" ]; # Test fails due to missing arguments for trfs2arrays(). doCheck = false; - pythonImportsCheck = [ - "spacy_transformers" - ]; + pythonImportsCheck = [ "spacy_transformers" ]; passthru.tests.annotation = callPackage ./annotation-test { }; diff --git a/pkgs/development/python-modules/spacy/annotation-test/default.nix b/pkgs/development/python-modules/spacy/annotation-test/default.nix index 91ab0f33acaa..02aad304a1e6 100644 --- a/pkgs/development/python-modules/spacy/annotation-test/default.nix +++ b/pkgs/development/python-modules/spacy/annotation-test/default.nix @@ -1,4 +1,8 @@ -{ stdenv, pytest, spacy-models }: +{ + stdenv, + pytest, + spacy-models, +}: stdenv.mkDerivation { name = "spacy-annotation-test"; @@ -9,7 +13,10 @@ stdenv.mkDerivation { dontBuild = true; doCheck = true; - nativeCheckInputs = [ pytest spacy-models.en_core_web_sm ]; + nativeCheckInputs = [ + pytest + spacy-models.en_core_web_sm + ]; checkPhase = '' pytest annotate.py diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index 32b78f40cdc1..d84599ffc812 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -1,42 +1,43 @@ -{ lib -, stdenv -, blis -, buildPythonPackage -, callPackage -, catalogue -, cymem -, cython_0 -, fetchPypi -, hypothesis -, jinja2 -, jsonschema -, langcodes -, mock -, murmurhash -, numpy -, packaging -, pathy -, preshed -, pydantic -, pytestCheckHook -, python -, pythonOlder -, pythonRelaxDepsHook -, requests -, setuptools -, spacy-legacy -, spacy-loggers -, srsly -, thinc -, tqdm -, typer -, typing-extensions -, wasabi -, weasel -, writeScript -, nix -, git -, nix-update +{ + lib, + stdenv, + blis, + buildPythonPackage, + callPackage, + catalogue, + cymem, + cython_0, + fetchPypi, + hypothesis, + jinja2, + jsonschema, + langcodes, + mock, + murmurhash, + numpy, + packaging, + pathy, + preshed, + pydantic, + pytestCheckHook, + python, + pythonOlder, + pythonRelaxDepsHook, + requests, + setuptools, + spacy-legacy, + spacy-loggers, + srsly, + thinc, + tqdm, + typer, + typing-extensions, + wasabi, + weasel, + writeScript, + nix, + git, + nix-update, }: buildPythonPackage rec { @@ -84,9 +85,7 @@ buildPythonPackage rec { typer wasabi weasel - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook @@ -101,9 +100,7 @@ buildPythonPackage rec { cd $out ''; - pytestFlagsArray = [ - "-m 'slow'" - ]; + pytestFlagsArray = [ "-m 'slow'" ]; disabledTests = [ # touches network @@ -112,15 +109,19 @@ buildPythonPackage rec { "test_project_assets" ]; - pythonImportsCheck = [ - "spacy" - ]; + pythonImportsCheck = [ "spacy" ]; passthru = { updateScript = writeScript "update-spacy" '' #!${stdenv.shell} set -eou pipefail - PATH=${lib.makeBinPath [ nix git nix-update ]} + PATH=${ + lib.makeBinPath [ + nix + git + nix-update + ] + } nix-update python3Packages.spacy diff --git a/pkgs/development/python-modules/spacy/legacy.nix b/pkgs/development/python-modules/spacy/legacy.nix index f94855e66a3f..3bd9c33b7e82 100644 --- a/pkgs/development/python-modules/spacy/legacy.nix +++ b/pkgs/development/python-modules/spacy/legacy.nix @@ -1,6 +1,7 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { # nativeCheckInputs = [ pytestCheckHook spacy ]; doCheck = false; - pythonImportsCheck = [ - "spacy_legacy" - ]; + pythonImportsCheck = [ "spacy_legacy" ]; meta = with lib; { description = "Legacy registered functions for spaCy backwards compatibility"; diff --git a/pkgs/development/python-modules/spacy/lookups-data.nix b/pkgs/development/python-modules/spacy/lookups-data.nix index 70469761eddb..3e1e024350d8 100644 --- a/pkgs/development/python-modules/spacy/lookups-data.nix +++ b/pkgs/development/python-modules/spacy/lookups-data.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, spacy -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + spacy, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/spacy/models.nix b/pkgs/development/python-modules/spacy/models.nix index 3c8a3cc0ff2f..bb795682a187 100644 --- a/pkgs/development/python-modules/spacy/models.nix +++ b/pkgs/development/python-modules/spacy/models.nix @@ -1,22 +1,29 @@ -{ lib -, buildPythonPackage -, fetchurl -, protobuf -, pymorphy3 -, pymorphy3-dicts-uk -, sentencepiece -, setuptools -, spacy -, spacy-pkuseg -, spacy-transformers -, writeScript -, stdenv -, jq -, nix -, moreutils +{ + lib, + buildPythonPackage, + fetchurl, + protobuf, + pymorphy3, + pymorphy3-dicts-uk, + sentencepiece, + setuptools, + spacy, + spacy-pkuseg, + spacy-transformers, + writeScript, + stdenv, + jq, + nix, + moreutils, }: let - buildModelPackage = { pname, version, sha256, license }: + buildModelPackage = + { + pname, + version, + sha256, + license, + }: let lang = builtins.substring 0 2 pname; @@ -31,10 +38,14 @@ let inherit sha256; }; - propagatedBuildInputs = [ spacy ] + propagatedBuildInputs = + [ spacy ] ++ lib.optionals (lib.hasSuffix "_trf" pname) [ spacy-transformers ] ++ lib.optionals (lang == "ru") [ pymorphy3 ] - ++ lib.optionals (lang == "uk") [ pymorphy3 pymorphy3-dicts-uk ] + ++ lib.optionals (lang == "uk") [ + pymorphy3 + pymorphy3-dicts-uk + ] ++ lib.optionals (lang == "zh") [ spacy-pkuseg ] ++ lib.optionals (pname == "fr_dep_news_trf") [ sentencepiece ]; @@ -43,18 +54,20 @@ let --replace "protobuf<3.21.0" "protobuf" ''; - nativeBuildInputs = [ - setuptools - ] ++ lib.optionals requires-protobuf [ - protobuf - ]; + nativeBuildInputs = [ setuptools ] ++ lib.optionals requires-protobuf [ protobuf ]; pythonImportsCheck = [ pname ]; passthru.updateScript = writeScript "update-spacy-models" '' #!${stdenv.shell} set -eou pipefail - PATH=${lib.makeBinPath [ jq nix moreutils ]} + PATH=${ + lib.makeBinPath [ + jq + nix + moreutils + ] + } IFS=. read -r major minor patch <<<"${spacy.version}" spacyVersion="$(echo "$major.$minor.0")" @@ -82,7 +95,7 @@ let }; }; - makeModelSet = models: with lib; listToAttrs (map (m: nameValuePair m.pname (buildModelPackage m)) models); - + makeModelSet = + models: with lib; listToAttrs (map (m: nameValuePair m.pname (buildModelPackage m)) models); in makeModelSet (lib.importJSON ./models.json) diff --git a/pkgs/development/python-modules/spake2/default.nix b/pkgs/development/python-modules/spake2/default.nix index 2ccd62fcdf15..956c15ab0b0e 100644 --- a/pkgs/development/python-modules/spake2/default.nix +++ b/pkgs/development/python-modules/spake2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch2 -, setuptools -, hkdf -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch2, + setuptools, + hkdf, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,19 +27,13 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - hkdf - ]; + propagatedBuildInputs = [ hkdf ]; pythonImportsCheck = [ "spake2" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/warner/python-spake2/blob/v${version}/NEWS"; diff --git a/pkgs/development/python-modules/spark-parser/default.nix b/pkgs/development/python-modules/spark-parser/default.nix index 690d9a295de4..005a55b7f302 100644 --- a/pkgs/development/python-modules/spark-parser/default.nix +++ b/pkgs/development/python-modules/spark-parser/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, click +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + click, }: buildPythonPackage rec { @@ -24,7 +25,6 @@ buildPythonPackage rec { mainProgram = "spark-parser-coverage"; homepage = "https://github.com/rocky/python-spark"; license = licenses.mit; - maintainers = with maintainers; [raskin]; + maintainers = with maintainers; [ raskin ]; }; - } diff --git a/pkgs/development/python-modules/sparklines/default.nix b/pkgs/development/python-modules/sparklines/default.nix index d5d4e3312793..15181f436e67 100644 --- a/pkgs/development/python-modules/sparklines/default.nix +++ b/pkgs/development/python-modules/sparklines/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, future -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + future, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sparqlwrapper/default.nix b/pkgs/development/python-modules/sparqlwrapper/default.nix index 1abea197499d..20c32f52379f 100644 --- a/pkgs/development/python-modules/sparqlwrapper/default.nix +++ b/pkgs/development/python-modules/sparqlwrapper/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, keepalive +{ + lib, + buildPythonPackage, + fetchPypi, + keepalive, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sparse/default.nix b/pkgs/development/python-modules/sparse/default.nix index acb9bfa1d8fa..b81bb12acf3f 100644 --- a/pkgs/development/python-modules/sparse/default.nix +++ b/pkgs/development/python-modules/sparse/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, dask -, fetchPypi -, numba -, numpy -, pytest7CheckHook -, pythonOlder -, setuptools -, setuptools-scm -, scipy +{ + lib, + buildPythonPackage, + dask, + fetchPypi, + numba, + numpy, + pytest7CheckHook, + pythonOlder, + setuptools, + setuptools-scm, + scipy, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { pytest7CheckHook ]; - pythonImportsCheck = [ - "sparse" - ]; + pythonImportsCheck = [ "sparse" ]; pytestFlagsArray = [ "-W" diff --git a/pkgs/development/python-modules/spatial-image/default.nix b/pkgs/development/python-modules/spatial-image/default.nix index e578ac7e5420..e226796808b9 100644 --- a/pkgs/development/python-modules/spatial-image/default.nix +++ b/pkgs/development/python-modules/spatial-image/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, flit-core -, pytestCheckHook -, numpy -, xarray -, xarray-dataclasses +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + flit-core, + pytestCheckHook, + numpy, + xarray, + xarray-dataclasses, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-nCsxPhIgGmZZntYbhQ3KnzptcKdN288eNixbQDgECSQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/spdx-lookup/default.nix b/pkgs/development/python-modules/spdx-lookup/default.nix index 6bcb2c942796..5da39999ace3 100644 --- a/pkgs/development/python-modules/spdx-lookup/default.nix +++ b/pkgs/development/python-modules/spdx-lookup/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, nix-update-script -, spdx +{ + lib, + fetchFromGitHub, + buildPythonPackage, + nix-update-script, + spdx, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-jtzhqRAj1BWdU8AuR7Gr343mL5alLXhi+SyCkCI5AAU="; }; - propagatedBuildInputs = [ - spdx - ]; + propagatedBuildInputs = [ spdx ]; - pythonImportsCheck = [ - "spdx_lookup" - ]; + pythonImportsCheck = [ "spdx_lookup" ]; passthru.updateScript = nix-update-script { }; @@ -34,4 +31,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ jnsgruk ]; }; } - diff --git a/pkgs/development/python-modules/spdx-tools/default.nix b/pkgs/development/python-modules/spdx-tools/default.nix index 415534bff531..336d8cb5549c 100644 --- a/pkgs/development/python-modules/spdx-tools/default.nix +++ b/pkgs/development/python-modules/spdx-tools/default.nix @@ -1,19 +1,20 @@ -{ lib -, beartype -, buildPythonPackage -, click -, fetchFromGitHub -, license-expression -, ply -, pytestCheckHook -, pythonOlder -, pyyaml -, rdflib -, semantic-version -, setuptools -, setuptools-scm -, uritools -, xmltodict +{ + lib, + beartype, + buildPythonPackage, + click, + fetchFromGitHub, + license-expression, + ply, + pytestCheckHook, + pythonOlder, + pyyaml, + rdflib, + semantic-version, + setuptools, + setuptools-scm, + uritools, + xmltodict, }: buildPythonPackage rec { @@ -47,13 +48,9 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "spdx_tools.spdx" - ]; + pythonImportsCheck = [ "spdx_tools.spdx" ]; disabledTestPaths = [ # Test depends on the currently not packaged pyshacl module diff --git a/pkgs/development/python-modules/spdx/default.nix b/pkgs/development/python-modules/spdx/default.nix index f09fcfceec8d..0f8b434c2b74 100644 --- a/pkgs/development/python-modules/spdx/default.nix +++ b/pkgs/development/python-modules/spdx/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, nix-update-script +{ + lib, + fetchFromGitHub, + buildPythonPackage, + nix-update-script, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-lfTgAX4Wl01xrvLA12ZUqjah7ZiLafMAU+yNNdVkRk0="; }; - pythonImportsCheck = [ - "spdx" - ]; + pythonImportsCheck = [ "spdx" ]; passthru.updateScript = nix-update-script { }; @@ -29,4 +28,3 @@ buildPythonPackage rec { maintainers = with lib.maintainers; [ jnsgruk ]; }; } - diff --git a/pkgs/development/python-modules/speaklater/default.nix b/pkgs/development/python-modules/speaklater/default.nix index 1ae66d9f4ffe..1529e200f731 100644 --- a/pkgs/development/python-modules/speaklater/default.nix +++ b/pkgs/development/python-modules/speaklater/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = with maintainers; [ matejc ]; }; - } diff --git a/pkgs/development/python-modules/speaklater3/default.nix b/pkgs/development/python-modules/speaklater3/default.nix index 5898dfe5cd1a..780ef60bb996 100644 --- a/pkgs/development/python-modules/speaklater3/default.nix +++ b/pkgs/development/python-modules/speaklater3/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix index 007528e22865..c55e100a8002 100644 --- a/pkgs/development/python-modules/spectral-cube/default.nix +++ b/pkgs/development/python-modules/spectral-cube/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, aplpy -, astropy -, buildPythonPackage -, casa-formats-io -, dask -, fetchPypi -, joblib -, pytest-astropy -, pytestCheckHook -, pythonOlder -, radio-beam -, setuptools-scm +{ + lib, + stdenv, + aplpy, + astropy, + buildPythonPackage, + casa-formats-io, + dask, + fetchPypi, + joblib, + pytest-astropy, + pytestCheckHook, + pythonOlder, + radio-beam, + setuptools-scm, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-gJzrr3+/FsQN/HHDERxf/NECArwOaTqFwmI/Q2Z9HTM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ astropy @@ -51,13 +50,9 @@ buildPythonPackage rec { # On x86_darwin, this test fails with "Fatal Python error: Aborted" # when sandbox = true. - disabledTestPaths = lib.optionals stdenv.isDarwin [ - "spectral_cube/tests/test_visualization.py" - ]; + disabledTestPaths = lib.optionals stdenv.isDarwin [ "spectral_cube/tests/test_visualization.py" ]; - pythonImportsCheck = [ - "spectral_cube" - ]; + pythonImportsCheck = [ "spectral_cube" ]; meta = with lib; { description = "Library for reading and analyzing astrophysical spectral data cubes"; diff --git a/pkgs/development/python-modules/speechbrain/default.nix b/pkgs/development/python-modules/speechbrain/default.nix index 2a91b2b0b100..e3b7c76dc38f 100644 --- a/pkgs/development/python-modules/speechbrain/default.nix +++ b/pkgs/development/python-modules/speechbrain/default.nix @@ -1,17 +1,18 @@ -{ buildPythonPackage -, fetchFromGitHub -, huggingface-hub -, hyperpyyaml -, joblib -, lib -, numpy -, packaging -, pythonOlder -, sentencepiece -, scipy -, torch -, torchaudio -, tqdm +{ + buildPythonPackage, + fetchFromGitHub, + huggingface-hub, + hyperpyyaml, + joblib, + lib, + numpy, + packaging, + pythonOlder, + sentencepiece, + scipy, + torch, + torchaudio, + tqdm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/speedtest-cli/default.nix b/pkgs/development/python-modules/speedtest-cli/default.nix index d91edda3a546..3a995087f7d0 100644 --- a/pkgs/development/python-modules/speedtest-cli/default.nix +++ b/pkgs/development/python-modules/speedtest-cli/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: # cannot be built as pythonApplication because the library functions are @@ -22,6 +23,9 @@ buildPythonPackage rec { description = "Command line interface for testing internet bandwidth using speedtest.net"; homepage = "https://github.com/sivel/speedtest-cli"; license = licenses.asl20; - maintainers = with maintainers; [ makefu domenkozar ]; + maintainers = with maintainers; [ + makefu + domenkozar + ]; }; } diff --git a/pkgs/development/python-modules/speg/default.nix b/pkgs/development/python-modules/speg/default.nix index 93ae40d32603..d9351287e48a 100644 --- a/pkgs/development/python-modules/speg/default.nix +++ b/pkgs/development/python-modules/speg/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, speg +{ + lib, + buildPythonPackage, + fetchPypi, + speg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix index 5255fedd044b..300402b93107 100644 --- a/pkgs/development/python-modules/spglib/default.nix +++ b/pkgs/development/python-modules/spglib/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, scikit-build-core -, cmake -, pathspec -, ninja -, pyproject-metadata -, setuptools-scm + # build-system + scikit-build-core, + cmake, + pathspec, + ninja, + pyproject-metadata, + setuptools-scm, -# dependencies -, numpy + # dependencies + numpy, -# tests -, pytestCheckHook -, pyyaml + # tests + pytestCheckHook, + pyyaml, }: buildPythonPackage rec { @@ -39,18 +40,14 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ pytestCheckHook pyyaml ]; - pythonImportsCheck = [ - "spglib" - ]; + pythonImportsCheck = [ "spglib" ]; meta = with lib; { description = "Python bindings for C library for finding and handling crystal symmetries"; diff --git a/pkgs/development/python-modules/sphfile/default.nix b/pkgs/development/python-modules/sphfile/default.nix index 99e366a5c29a..806f39efa63b 100644 --- a/pkgs/development/python-modules/sphfile/default.nix +++ b/pkgs/development/python-modules/sphfile/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchurl, buildPythonPackage, numpy }: +{ + lib, + fetchurl, + buildPythonPackage, + numpy, +}: buildPythonPackage rec { pname = "sphfile"; @@ -16,9 +21,9 @@ buildPythonPackage rec { meta = with lib; { description = "Numpy-based NIST SPH audio-file reader"; - homepage = "https://github.com/mcfletch/sphfile"; - license = licenses.mit; + homepage = "https://github.com/mcfletch/sphfile"; + license = licenses.mit; maintainers = with maintainers; [ abbradar ]; - platforms = platforms.unix; + platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/sphinx-argparse/default.nix b/pkgs/development/python-modules/sphinx-argparse/default.nix index 7ab3ae03c343..32f30925fefc 100644 --- a/pkgs/development/python-modules/sphinx-argparse/default.nix +++ b/pkgs/development/python-modules/sphinx-argparse/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + sphinx, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { --replace "if action_group.title == 'optional arguments':" "if action_group.title == 'optional arguments' or action_group.title == 'options':" ''; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sphinxarg" ]; diff --git a/pkgs/development/python-modules/sphinx-autoapi/default.nix b/pkgs/development/python-modules/sphinx-autoapi/default.nix index f10e8be83da6..637c214345c4 100644 --- a/pkgs/development/python-modules/sphinx-autoapi/default.nix +++ b/pkgs/development/python-modules/sphinx-autoapi/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, astroid -, anyascii -, jinja2 -, pyyaml -, sphinx + # dependencies + astroid, + anyascii, + jinja2, + pyyaml, + sphinx, -# tests -, beautifulsoup4 -, mock -, pytestCheckHook + # tests + beautifulsoup4, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-CevWdKMrREZyIrD7ipF7l8iVI/INvwW1LLij8OFXFN4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ anyascii @@ -57,9 +56,7 @@ buildPythonPackage rec { "test_custom_jinja_filters" ]; - pythonImportsCheck = [ - "autoapi" - ]; + pythonImportsCheck = [ "autoapi" ]; meta = with lib; { homepage = "https://github.com/readthedocs/sphinx-autoapi"; diff --git a/pkgs/development/python-modules/sphinx-autobuild/default.nix b/pkgs/development/python-modules/sphinx-autobuild/default.nix index 50189474d4c1..b802384ae133 100644 --- a/pkgs/development/python-modules/sphinx-autobuild/default.nix +++ b/pkgs/development/python-modules/sphinx-autobuild/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, colorama -, sphinx -, starlette -, uvicorn -, watchfiles -, websockets + # dependencies + colorama, + sphinx, + starlette, + uvicorn, + watchfiles, + websockets, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-5HgRqt2ZTGcQ6X2sZN0gRfahmwlqpDbae5gOnGa02L0="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; dependencies = [ colorama @@ -42,9 +41,7 @@ buildPythonPackage rec { websockets ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sphinx_autobuild" ]; @@ -53,6 +50,6 @@ buildPythonPackage rec { mainProgram = "sphinx-autobuild"; homepage = "https://github.com/sphinx-doc/sphinx-autobuild"; license = with licenses; [ mit ]; - maintainers = with maintainers; [holgerpeters]; + maintainers = with maintainers; [ holgerpeters ]; }; } diff --git a/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix b/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix index 45ef02367fbe..733750844dc9 100644 --- a/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix +++ b/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pythonOlder -, sphinx -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pythonOlder, + sphinx, + pytestCheckHook, }: let @@ -30,20 +31,14 @@ buildPythonPackage { hatchling ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # requires spobjinv, nbtyping doCheck = false; - pythonImportsCheck = [ - "sphinx_autodoc_typehints" - ]; + pythonImportsCheck = [ "sphinx_autodoc_typehints" ]; meta = with lib; { changelog = "https://github.com/tox-dev/sphinx-autodoc-typehints/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/sphinx-automodapi/default.nix b/pkgs/development/python-modules/sphinx-automodapi/default.nix index e8e888204113..371be354dc70 100644 --- a/pkgs/development/python-modules/sphinx-automodapi/default.nix +++ b/pkgs/development/python-modules/sphinx-automodapi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchurl -, pythonOlder -, setuptools-scm -, git -, sphinx -, pytestCheckHook -, cython -, gcc -, graphviz +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchurl, + pythonOlder, + setuptools-scm, + git, + sphinx, + pytestCheckHook, + cython, + gcc, + graphviz, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinx-basic-ng/default.nix b/pkgs/development/python-modules/sphinx-basic-ng/default.nix index 990be1979b4e..1c29a543b5a0 100644 --- a/pkgs/development/python-modules/sphinx-basic-ng/default.nix +++ b/pkgs/development/python-modules/sphinx-basic-ng/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, sphinx +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + sphinx, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-MHBGIKOKhGklrx3O075LRud8NhY2hzlTWh+jalrFpko="; }; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/sphinx-better-theme/default.nix b/pkgs/development/python-modules/sphinx-better-theme/default.nix index 8000c8bbb820..130f96e3b78c 100644 --- a/pkgs/development/python-modules/sphinx-better-theme/default.nix +++ b/pkgs/development/python-modules/sphinx-better-theme/default.nix @@ -1,10 +1,18 @@ -{ lib, buildPythonPackage, fetchFromGitHub, sphinxHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sphinxHook, +}: buildPythonPackage rec { pname = "sphinx-better-theme"; version = "0.1.5"; format = "setuptools"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "irskep"; diff --git a/pkgs/development/python-modules/sphinx-book-theme/default.nix b/pkgs/development/python-modules/sphinx-book-theme/default.nix index ce8ce4e226b0..5aa26c22a8a4 100644 --- a/pkgs/development/python-modules/sphinx-book-theme/default.nix +++ b/pkgs/development/python-modules/sphinx-book-theme/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, sphinx -, pydata-sphinx-theme -, jupyter-book +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + sphinx, + pydata-sphinx-theme, + jupyter-book, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { sphinx ]; - pythonImportsCheck = [ - "sphinx_book_theme" - ]; + pythonImportsCheck = [ "sphinx_book_theme" ]; passthru.tests = { inherit jupyter-book; diff --git a/pkgs/development/python-modules/sphinx-codeautolink/default.nix b/pkgs/development/python-modules/sphinx-codeautolink/default.nix index 6b024d4fd83b..c6d03a6e92e5 100644 --- a/pkgs/development/python-modules/sphinx-codeautolink/default.nix +++ b/pkgs/development/python-modules/sphinx-codeautolink/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -# documentation build dependencies -, sphinxHook -, sphinx-rtd-theme -, matplotlib -, ipython -# runtime dependencies -, sphinx -, beautifulsoup4 -# check dependencies -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + # documentation build dependencies + sphinxHook, + sphinx-rtd-theme, + matplotlib, + ipython, + # runtime dependencies + sphinx, + beautifulsoup4, + # check dependencies + pytest, }: buildPythonPackage rec { @@ -19,7 +20,10 @@ buildPythonPackage rec { version = "0.15.1"; format = "pyproject"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "felix-hilden"; @@ -38,7 +42,10 @@ buildPythonPackage rec { sphinxRoot = "docs/src"; - propagatedBuildInputs = [ sphinx beautifulsoup4 ]; + propagatedBuildInputs = [ + sphinx + beautifulsoup4 + ]; nativeCheckInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/sphinx-comments/default.nix b/pkgs/development/python-modules/sphinx-comments/default.nix index 03a6461174cc..867a457c0cf1 100644 --- a/pkgs/development/python-modules/sphinx-comments/default.nix +++ b/pkgs/development/python-modules/sphinx-comments/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + sphinx, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinx-copybutton/default.nix b/pkgs/development/python-modules/sphinx-copybutton/default.nix index 5a765e7c120c..bc1a56ddd9d6 100644 --- a/pkgs/development/python-modules/sphinx-copybutton/default.nix +++ b/pkgs/development/python-modules/sphinx-copybutton/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, sphinx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sphinx, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { fetchSubmodules = true; }; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; doCheck = false; # no tests diff --git a/pkgs/development/python-modules/sphinx-design/default.nix b/pkgs/development/python-modules/sphinx-design/default.nix index 49883dc65760..1c7db81d2b2c 100644 --- a/pkgs/development/python-modules/sphinx-design/default.nix +++ b/pkgs/development/python-modules/sphinx-design/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, sphinx +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + sphinx, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinx-external-toc/default.nix b/pkgs/development/python-modules/sphinx-external-toc/default.nix index fa676391daed..3e2887aecb6b 100644 --- a/pkgs/development/python-modules/sphinx-external-toc/default.nix +++ b/pkgs/development/python-modules/sphinx-external-toc/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, flit-core -, click -, pyyaml -, sphinx +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + flit-core, + click, + pyyaml, + sphinx, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinx-fortran/default.nix b/pkgs/development/python-modules/sphinx-fortran/default.nix index b4e2b7dd6e4f..e01342e8e6eb 100644 --- a/pkgs/development/python-modules/sphinx-fortran/default.nix +++ b/pkgs/development/python-modules/sphinx-fortran/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, future -, numpy -, sphinx -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + future, + numpy, + sphinx, + six, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # Tests are failing because reference files are not updated doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Fortran domain and autodoc extensions to Sphinx"; diff --git a/pkgs/development/python-modules/sphinx-hoverxref/default.nix b/pkgs/development/python-modules/sphinx-hoverxref/default.nix index d6237387bf88..055d32ed8b8e 100644 --- a/pkgs/development/python-modules/sphinx-hoverxref/default.nix +++ b/pkgs/development/python-modules/sphinx-hoverxref/default.nix @@ -1,28 +1,32 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pythonImportsCheckHook -# documentation build dependencies -, sphinxHook -, sphinx-notfound-page -, sphinx-prompt -, sphinx-rtd-theme -, sphinx-tabs -, sphinx-version-warning -, sphinx-autoapi -, sphinxcontrib-bibtex -, sphinxemoji -# runtime dependencies -, sphinx -, sphinxcontrib-jquery +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pythonImportsCheckHook, + # documentation build dependencies + sphinxHook, + sphinx-notfound-page, + sphinx-prompt, + sphinx-rtd-theme, + sphinx-tabs, + sphinx-version-warning, + sphinx-autoapi, + sphinxcontrib-bibtex, + sphinxemoji, + # runtime dependencies + sphinx, + sphinxcontrib-jquery, }: buildPythonPackage rec { pname = "sphinx-hoverxref"; version = "1.3.0"; format = "pyproject"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "readthedocs"; @@ -46,7 +50,10 @@ buildPythonPackage rec { sphinxemoji ]; - propagatedBuildInputs = [ sphinx sphinxcontrib-jquery ]; + propagatedBuildInputs = [ + sphinx + sphinxcontrib-jquery + ]; pythonImportsCheck = [ "hoverxref" ]; diff --git a/pkgs/development/python-modules/sphinx-inline-tabs/default.nix b/pkgs/development/python-modules/sphinx-inline-tabs/default.nix index 0f44efae9796..5a36420dc430 100644 --- a/pkgs/development/python-modules/sphinx-inline-tabs/default.nix +++ b/pkgs/development/python-modules/sphinx-inline-tabs/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, sphinx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + sphinx, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-1oZheHDNOQU0vWL3YClQrJe94WyUJ72bCAF1UKtjJ0w="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; # no tests, see https://github.com/pradyunsg/sphinx-inline-tabs/issues/6 doCheck = false; diff --git a/pkgs/development/python-modules/sphinx-intl/default.nix b/pkgs/development/python-modules/sphinx-intl/default.nix index 0e719aaa6e73..3d17e1256a49 100644 --- a/pkgs/development/python-modules/sphinx-intl/default.nix +++ b/pkgs/development/python-modules/sphinx-intl/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, transifex-cli -, babel -, click -, setuptools -, sphinx -, pytestCheckHook -, mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + transifex-cli, + babel, + click, + setuptools, + sphinx, + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -15,7 +16,7 @@ buildPythonPackage rec { version = "2.2.0"; format = "pyproject"; - src = fetchFromGitHub { + src = fetchFromGitHub { owner = "sphinx-doc"; repo = pname; rev = version; diff --git a/pkgs/development/python-modules/sphinx-issues/default.nix b/pkgs/development/python-modules/sphinx-issues/default.nix index 9cf4b680c7cd..791cb37bdf5a 100644 --- a/pkgs/development/python-modules/sphinx-issues/default.nix +++ b/pkgs/development/python-modules/sphinx-issues/default.nix @@ -1,10 +1,19 @@ -{ lib, buildPythonPackage, sphinx, fetchFromGitHub, pandoc }: +{ + lib, + buildPythonPackage, + sphinx, + fetchFromGitHub, + pandoc, +}: buildPythonPackage rec { pname = "sphinx-issues"; version = "3.0.1"; format = "setuptools"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "sloria"; diff --git a/pkgs/development/python-modules/sphinx-jinja/default.nix b/pkgs/development/python-modules/sphinx-jinja/default.nix index c557325cd376..f1b4aa32402e 100644 --- a/pkgs/development/python-modules/sphinx-jinja/default.nix +++ b/pkgs/development/python-modules/sphinx-jinja/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + sphinx, +}: buildPythonPackage rec { pname = "sphinx-jinja"; diff --git a/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix b/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix index 9918f80f6dab..cca7c7fa4845 100644 --- a/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix +++ b/pkgs/development/python-modules/sphinx-jupyterbook-latex/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, flit-core -, packaging -, sphinx -, click -, myst-parser -, pytest-regressions -, pytestCheckHook -, sphinx-external-toc -, sphinxcontrib-bibtex -, texsoup -, defusedxml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + flit-core, + packaging, + sphinx, + click, + myst-parser, + pytest-regressions, + pytestCheckHook, + sphinx-external-toc, + sphinxcontrib-bibtex, + texsoup, + defusedxml, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-ZTR+s6a/++xXrLMtfFRmSmAeMWa/1de12ukxfsx85g4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ packaging diff --git a/pkgs/development/python-modules/sphinx-markdown-parser/default.nix b/pkgs/development/python-modules/sphinx-markdown-parser/default.nix index b67667ca804d..85c8b23e6820 100644 --- a/pkgs/development/python-modules/sphinx-markdown-parser/default.nix +++ b/pkgs/development/python-modules/sphinx-markdown-parser/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, commonmark -, fetchFromGitHub -, markdown -, pydash -, pytestCheckHook -, pythonOlder -, pyyaml -, recommonmark -, setuptools -, sphinx -, unify -, yapf +{ + lib, + stdenv, + buildPythonPackage, + commonmark, + fetchFromGitHub, + markdown, + pydash, + pytestCheckHook, + pythonOlder, + pyyaml, + recommonmark, + setuptools, + sphinx, + unify, + yapf, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { sha256 = "0i0hhapmdmh83yx61lxi2h4bsmhnzddamz95844g2ghm132kw5mv"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ commonmark @@ -45,17 +44,11 @@ buildPythonPackage rec { yapf ]; - buildInputs = [ - sphinx - ]; + buildInputs = [ sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sphinx_markdown_parser" - ]; + pythonImportsCheck = [ "sphinx_markdown_parser" ]; disabledTests = [ # AssertionError diff --git a/pkgs/development/python-modules/sphinx-markdown-tables/default.nix b/pkgs/development/python-modules/sphinx-markdown-tables/default.nix index a560314a2986..6c9d36c69f0c 100644 --- a/pkgs/development/python-modules/sphinx-markdown-tables/default.nix +++ b/pkgs/development/python-modules/sphinx-markdown-tables/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, markdown +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + markdown, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinx-material/default.nix b/pkgs/development/python-modules/sphinx-material/default.nix index 9cbcb31d3347..766a7c25fee6 100644 --- a/pkgs/development/python-modules/sphinx-material/default.nix +++ b/pkgs/development/python-modules/sphinx-material/default.nix @@ -1,13 +1,14 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, css-html-js-minify -, fetchPypi -, lxml -, python-slugify -, pythonOlder -, sphinx -, unidecode +{ + lib, + beautifulsoup4, + buildPythonPackage, + css-html-js-minify, + fetchPypi, + lxml, + python-slugify, + pythonOlder, + sphinx, + unidecode, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { doCheck = false; # no tests - pythonImportsCheck = [ - "sphinx_material" - ]; + pythonImportsCheck = [ "sphinx_material" ]; meta = with lib; { description = "A material-based, responsive theme inspired by mkdocs-material"; diff --git a/pkgs/development/python-modules/sphinx-mdinclude/default.nix b/pkgs/development/python-modules/sphinx-mdinclude/default.nix index 64928f437908..905a4f88ac87 100644 --- a/pkgs/development/python-modules/sphinx-mdinclude/default.nix +++ b/pkgs/development/python-modules/sphinx-mdinclude/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, docutils -, mistune -, pygments + # dependencies + docutils, + mistune, + pygments, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-KZjj0YswIsmYPRtyGR/jfiX/zNVBZcvjrLIszu3ZGvQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ docutils @@ -35,9 +34,7 @@ buildPythonPackage rec { pygments ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { broken = true; # https://github.com/omnilib/sphinx-mdinclude/issues/22 diff --git a/pkgs/development/python-modules/sphinx-multitoc-numbering/default.nix b/pkgs/development/python-modules/sphinx-multitoc-numbering/default.nix index 22030c9787da..f24112e2379e 100644 --- a/pkgs/development/python-modules/sphinx-multitoc-numbering/default.nix +++ b/pkgs/development/python-modules/sphinx-multitoc-numbering/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-yWB2caxREjb6XWGnSRwQMecA6NSYydJBjmxh0SUSCa4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; - pythonImportsCheck = [ - "sphinx_multitoc_numbering" - ]; + pythonImportsCheck = [ "sphinx_multitoc_numbering" ]; meta = with lib; { description = "Supporting continuous HTML section numbering"; diff --git a/pkgs/development/python-modules/sphinx-notfound-page/default.nix b/pkgs/development/python-modules/sphinx-notfound-page/default.nix index 0621c2867d03..e4cebe21a5e2 100644 --- a/pkgs/development/python-modules/sphinx-notfound-page/default.nix +++ b/pkgs/development/python-modules/sphinx-notfound-page/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pythonImportsCheckHook -, pythonOlder -# documentation build dependencies -, sphinxHook -, sphinx-prompt -, sphinx-rtd-theme -, sphinx-tabs -, sphinx-autoapi -, sphinxemoji -# runtime dependencies -, sphinx -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pythonImportsCheckHook, + pythonOlder, + # documentation build dependencies + sphinxHook, + sphinx-prompt, + sphinx-rtd-theme, + sphinx-tabs, + sphinx-autoapi, + sphinxemoji, + # runtime dependencies + sphinx, + setuptools, }: buildPythonPackage rec { @@ -46,17 +47,11 @@ buildPythonPackage rec { sphinxemoji ]; - buildInputs = [ - sphinx - ]; + buildInputs = [ sphinx ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "notfound" - ]; + pythonImportsCheck = [ "notfound" ]; meta = with lib; { description = "A sphinx extension to create a custom 404 page with absolute URLs hardcoded"; diff --git a/pkgs/development/python-modules/sphinx-prompt/default.nix b/pkgs/development/python-modules/sphinx-prompt/default.nix index 4d96a831d626..c37fba66c8d9 100644 --- a/pkgs/development/python-modules/sphinx-prompt/default.nix +++ b/pkgs/development/python-modules/sphinx-prompt/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, -# build-system -, poetry-core -, poetry-dynamic-versioning + # build-system + poetry-core, + poetry-dynamic-versioning, -# dependencies -, docutils -, pygments -, sphinx + # dependencies + docutils, + pygments, + sphinx, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # versions >=1.8.0 cannot be build from source passthru.skipBulkUpdate = true; diff --git a/pkgs/development/python-modules/sphinx-pytest/default.nix b/pkgs/development/python-modules/sphinx-pytest/default.nix index e89183641e40..9cc950fcad95 100644 --- a/pkgs/development/python-modules/sphinx-pytest/default.nix +++ b/pkgs/development/python-modules/sphinx-pytest/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytest -, sphinx -, defusedxml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytest, + sphinx, + defusedxml, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-oSBBt+hSMs4mvGqibQHoYHXr2j/bpsGOnIMfwfTfWKQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - pythonImportsCheck = [ - "sphinx_pytest" - ]; + pythonImportsCheck = [ "sphinx_pytest" ]; nativeCheckInputs = [ defusedxml diff --git a/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix b/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix index dbe40c0fcafd..ba95c5aea22d 100644 --- a/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix +++ b/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pynose -, setuptools -, sphinx -, sphinx-rtd-theme +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pynose, + setuptools, + sphinx, + sphinx-rtd-theme, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-N5KG2Wqn9wfGNY3VH4FnBce1aZUbnvVmwD10Loe0Qn4="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - sphinx-rtd-theme - ]; + dependencies = [ sphinx-rtd-theme ]; nativeCheckInputs = [ pynose @@ -40,9 +37,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "sphinx_rtd_dark_mode" - ]; + pythonImportsCheck = [ "sphinx_rtd_dark_mode" ]; meta = with lib; { description = "Adds a toggleable dark mode to the Read the Docs theme for Sphinx."; diff --git a/pkgs/development/python-modules/sphinx-rtd-theme/default.nix b/pkgs/development/python-modules/sphinx-rtd-theme/default.nix index 61e443333b3e..d2ed00bed59c 100644 --- a/pkgs/development/python-modules/sphinx-rtd-theme/default.nix +++ b/pkgs/development/python-modules/sphinx-rtd-theme/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, docutils -, sphinx -, readthedocs-sphinx-ext -, sphinxcontrib-jquery -, pytestCheckHook -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + docutils, + sphinx, + readthedocs-sphinx-ext, + sphinxcontrib-jquery, + pytestCheckHook, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { sphinxcontrib-jquery ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; nativeCheckInputs = [ pytestCheckHook @@ -50,9 +49,7 @@ buildPythonPackage rec { "sphinxcontrib-jquery" ]; - pythonImportsCheck = [ - "sphinx_rtd_theme" - ]; + pythonImportsCheck = [ "sphinx_rtd_theme" ]; meta = with lib; { description = "Sphinx theme for readthedocs.org"; diff --git a/pkgs/development/python-modules/sphinx-serve/default.nix b/pkgs/development/python-modules/sphinx-serve/default.nix index 729118dd5096..1b0ab4166f27 100644 --- a/pkgs/development/python-modules/sphinx-serve/default.nix +++ b/pkgs/development/python-modules/sphinx-serve/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinx-sitemap/default.nix b/pkgs/development/python-modules/sphinx-sitemap/default.nix index b14d669a10c9..918282c97679 100644 --- a/pkgs/development/python-modules/sphinx-sitemap/default.nix +++ b/pkgs/development/python-modules/sphinx-sitemap/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, sphinx -, sphinx-pytest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + sphinx, + sphinx-pytest, + pytestCheckHook, }: let pname = "sphinx-sitemap"; @@ -21,13 +22,9 @@ buildPythonPackage { hash = "sha256-R8nAaEPd2vQs9Z0Fa5yvTP0KP3O+DnIJLPeISZ10Xtk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/sphinx-tabs/default.nix b/pkgs/development/python-modules/sphinx-tabs/default.nix index e11db20b64d7..4aa456e667cf 100644 --- a/pkgs/development/python-modules/sphinx-tabs/default.nix +++ b/pkgs/development/python-modules/sphinx-tabs/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# documentation build dependencies -, sphinxHook -# runtime dependencies -, sphinx -, pygments -, docutils -# test dependencies -, pytest -, beautifulsoup4 + # documentation build dependencies + sphinxHook, + # runtime dependencies + sphinx, + pygments, + docutils, + # test dependencies + pytest, + beautifulsoup4, }: buildPythonPackage rec { @@ -21,7 +22,10 @@ buildPythonPackage rec { version = "3.4.5"; format = "pyproject"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "executablebooks"; @@ -41,7 +45,8 @@ buildPythonPackage rec { docutils ]; - nativeCheckInputs = [ pytest + nativeCheckInputs = [ + pytest beautifulsoup4 ]; diff --git a/pkgs/development/python-modules/sphinx-testing/default.nix b/pkgs/development/python-modules/sphinx-testing/default.nix index 0aaad111f73d..ec2f2055e333 100644 --- a/pkgs/development/python-modules/sphinx-testing/default.nix +++ b/pkgs/development/python-modules/sphinx-testing/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, sphinx -, six -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + sphinx, + six, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,10 +18,19 @@ buildPythonPackage rec { sha256 = "ef661775b5722d7b00f67fc229104317d35637a4fb4434bf2c005afdf1da4d09"; }; - nativeCheckInputs = [ unittestCheckHook mock ]; - propagatedBuildInputs = [ sphinx six ]; + nativeCheckInputs = [ + unittestCheckHook + mock + ]; + propagatedBuildInputs = [ + sphinx + six + ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; # Test failures https://github.com/sphinx-doc/sphinx-testing/issues/5 doCheck = false; diff --git a/pkgs/development/python-modules/sphinx-thebe/default.nix b/pkgs/development/python-modules/sphinx-thebe/default.nix index a9d3f78c069a..cc6ac01aad99 100644 --- a/pkgs/development/python-modules/sphinx-thebe/default.nix +++ b/pkgs/development/python-modules/sphinx-thebe/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pythonOlder -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pythonOlder, + sphinx, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hatchling ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; - pythonImportsCheck = [ - "sphinx_thebe" - ]; + pythonImportsCheck = [ "sphinx_thebe" ]; meta = with lib; { description = "Integrate interactive code blocks into your documentation with Thebe and Binder"; diff --git a/pkgs/development/python-modules/sphinx-togglebutton/default.nix b/pkgs/development/python-modules/sphinx-togglebutton/default.nix index 7416e7d15eba..f8b2c288ec93 100644 --- a/pkgs/development/python-modules/sphinx-togglebutton/default.nix +++ b/pkgs/development/python-modules/sphinx-togglebutton/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, docutils -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + docutils, + sphinx, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { sphinx ]; - pythonImportsCheck = [ - "sphinx_togglebutton" - ]; + pythonImportsCheck = [ "sphinx_togglebutton" ]; meta = with lib; { description = "Toggle page content and collapse admonitions in Sphinx"; diff --git a/pkgs/development/python-modules/sphinx-version-warning/default.nix b/pkgs/development/python-modules/sphinx-version-warning/default.nix index 7561fcd0dba5..c98f4806d128 100644 --- a/pkgs/development/python-modules/sphinx-version-warning/default.nix +++ b/pkgs/development/python-modules/sphinx-version-warning/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonImportsCheckHook -, pythonOlder -, setuptools -, sphinx -, sphinx-autoapi -, sphinx-prompt -, sphinx-rtd-theme -, sphinx-tabs -, sphinxemoji -, sphinxHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonImportsCheckHook, + pythonOlder, + setuptools, + sphinx, + sphinx-autoapi, + sphinx-prompt, + sphinx-rtd-theme, + sphinx-tabs, + sphinxemoji, + sphinxHook, }: # Latest tagged release release "1.1.2" (Nov 2018) does not contain @@ -56,13 +57,9 @@ buildPythonPackage { setuptools ]; - buildInputs = [ - sphinx - ]; + buildInputs = [ sphinx ]; - pythonImportsCheck = [ - "versionwarning" - ]; + pythonImportsCheck = [ "versionwarning" ]; meta = with lib; { description = "A sphinx extension to show a warning banner at the top of your documentation"; diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index 6608cbfff56c..e781abafac19 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -1,38 +1,39 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, isPyPy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + isPyPy, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, babel -, alabaster -, docutils -, imagesize -, importlib-metadata -, jinja2 -, packaging -, pygments -, requests -, snowballstemmer -, sphinxcontrib-applehelp -, sphinxcontrib-devhelp -, sphinxcontrib-htmlhelp -, sphinxcontrib-jsmath -, sphinxcontrib-qthelp -, sphinxcontrib-serializinghtml -, sphinxcontrib-websupport -, tomli + # dependencies + babel, + alabaster, + docutils, + imagesize, + importlib-metadata, + jinja2, + packaging, + pygments, + requests, + snowballstemmer, + sphinxcontrib-applehelp, + sphinxcontrib-devhelp, + sphinxcontrib-htmlhelp, + sphinxcontrib-jsmath, + sphinxcontrib-qthelp, + sphinxcontrib-serializinghtml, + sphinxcontrib-websupport, + tomli, -# check phase -, defusedxml -, filelock -, html5lib -, pytestCheckHook -, pytest-xdist + # check phase + defusedxml, + filelock, + html5lib, + pytestCheckHook, + pytest-xdist, }: buildPythonPackage rec { @@ -55,33 +56,30 @@ buildPythonPackage rec { hash = "sha256-XGGRWEvd1SbQsK8W5yxDzBd5hlvXcDzr8t5Qa6skH/M="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; - dependencies = [ - alabaster - babel - docutils - imagesize - jinja2 - packaging - pygments - requests - snowballstemmer - sphinxcontrib-applehelp - sphinxcontrib-devhelp - sphinxcontrib-htmlhelp - sphinxcontrib-jsmath - sphinxcontrib-qthelp - sphinxcontrib-serializinghtml - # extra[docs] - sphinxcontrib-websupport - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + dependencies = + [ + alabaster + babel + docutils + imagesize + jinja2 + packaging + pygments + requests + snowballstemmer + sphinxcontrib-applehelp + sphinxcontrib-devhelp + sphinxcontrib-htmlhelp + sphinxcontrib-jsmath + sphinxcontrib-qthelp + sphinxcontrib-serializinghtml + # extra[docs] + sphinxcontrib-websupport + ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; __darwinAllowLocalNetworking = true; @@ -97,38 +95,40 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - # requires network access - "test_latex_images" - # racy - "test_defaults" - "test_check_link_response_only" - "test_anchors_ignored_for_url" - "test_autodoc_default_options" - "test_too_many_requests_retry_after_int_delay" - # racy with pytest-xdist - "test_domain_cpp_build_semicolon" - "test_class_alias" - "test_class_alias_having_doccomment" - "test_class_alias_for_imported_object_having_doccomment" - "test_decorators" - # requires cython_0, but fails miserably on 3.11 - "test_cython" - # Could not fetch remote image: http://localhost:7777/sphinx.png - "test_copy_images" - ] ++ lib.optionals isPyPy [ - # PyPy has not __builtins__ which get asserted - # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous - "test_autosummary_generate_content_for_module" - "test_autosummary_generate_content_for_module_skipped" - # internals are asserted which are sightly different in PyPy - "test_autodoc_inherited_members_None" - "test_automethod_for_builtin" - "test_builtin_function" - "test_isattributedescriptor" - "test_methoddescriptor" - "test_partialfunction" - ]; + disabledTests = + [ + # requires network access + "test_latex_images" + # racy + "test_defaults" + "test_check_link_response_only" + "test_anchors_ignored_for_url" + "test_autodoc_default_options" + "test_too_many_requests_retry_after_int_delay" + # racy with pytest-xdist + "test_domain_cpp_build_semicolon" + "test_class_alias" + "test_class_alias_having_doccomment" + "test_class_alias_for_imported_object_having_doccomment" + "test_decorators" + # requires cython_0, but fails miserably on 3.11 + "test_cython" + # Could not fetch remote image: http://localhost:7777/sphinx.png + "test_copy_images" + ] + ++ lib.optionals isPyPy [ + # PyPy has not __builtins__ which get asserted + # https://doc.pypy.org/en/latest/cpython_differences.html#miscellaneous + "test_autosummary_generate_content_for_module" + "test_autosummary_generate_content_for_module_skipped" + # internals are asserted which are sightly different in PyPy + "test_autodoc_inherited_members_None" + "test_automethod_for_builtin" + "test_builtin_function" + "test_isattributedescriptor" + "test_methoddescriptor" + "test_partialfunction" + ]; meta = { description = "Python documentation generator"; diff --git a/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix index bfe5739b2a7b..35eee667daf4 100644 --- a/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-actdiag/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, actdiag -, blockdiag -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + actdiag, + blockdiag, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sphinx ]; - pythonImportsCheck = [ - "sphinxcontrib.actdiag" - ]; + pythonImportsCheck = [ "sphinxcontrib.actdiag" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-apidoc/default.nix b/pkgs/development/python-modules/sphinxcontrib-apidoc/default.nix index 9abab99c0598..359b5387f639 100644 --- a/pkgs/development/python-modules/sphinxcontrib-apidoc/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-apidoc/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix b/pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix index b5b52c92912e..9a9e1a2e0078 100644 --- a/pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-applehelp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-xApPlvN3bEOT2TNBIFOWL6wrhPTJmnmCukLglXanBhk="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Check is disabled due to circular dependency of sphinx dontCheckRuntimeDeps = true; diff --git a/pkgs/development/python-modules/sphinxcontrib-asyncio/default.nix b/pkgs/development/python-modules/sphinxcontrib-asyncio/default.nix index 104472381896..36ee3d3c5559 100644 --- a/pkgs/development/python-modules/sphinxcontrib-asyncio/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-asyncio/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, }: buildPythonPackage rec { @@ -14,15 +15,11 @@ buildPythonPackage rec { hash = "sha256-mf0m4P5+34ckSnGpnDFv0Mm1CFbCUZrMqSfr50EAci4="; }; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; doCheck = false; # no tests - pythonImportsCheck = [ - "sphinxcontrib.asyncio" - ]; + pythonImportsCheck = [ "sphinxcontrib.asyncio" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix b/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix index ca968f3f232c..ce7df8dcba70 100644 --- a/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-bayesnet/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, sphinxcontrib-tikz +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + sphinxcontrib-tikz, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-+M+K8WzQqxQUGgAgGPK+isf3gKK7HOrdI6nNW/V8Wv0="; }; - propagatedBuildInputs = [ sphinx sphinxcontrib-tikz ]; + propagatedBuildInputs = [ + sphinx + sphinxcontrib-tikz + ]; # No tests doCheck = false; diff --git a/pkgs/development/python-modules/sphinxcontrib-bibtex/default.nix b/pkgs/development/python-modules/sphinxcontrib-bibtex/default.nix index 2d5a7b997464..e15f826c7876 100644 --- a/pkgs/development/python-modules/sphinxcontrib-bibtex/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-bibtex/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, oset -, pybtex -, pybtex-docutils -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + oset, + pybtex, + pybtex-docutils, + sphinx, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "sphinxcontrib.bibtex" - ]; + pythonImportsCheck = [ "sphinxcontrib.bibtex" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix index 9f0790c0d643..8fcb0c2c8f58 100644 --- a/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-blockdiag/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, unittestCheckHook -, mock -, sphinx-testing -, sphinx -, blockdiag +{ + lib, + buildPythonPackage, + fetchPypi, + unittestCheckHook, + mock, + sphinx-testing, + sphinx, + blockdiag, }: buildPythonPackage rec { @@ -18,15 +19,24 @@ buildPythonPackage rec { sha256 = "aa49bf924516f5de8a479994c7be81e077df5599c9da2a082003d5b388e1d450"; }; - buildInputs = [ mock sphinx-testing ]; - propagatedBuildInputs = [ sphinx blockdiag ]; + buildInputs = [ + mock + sphinx-testing + ]; + propagatedBuildInputs = [ + sphinx + blockdiag + ]; # Seems to look for files in the wrong dir doCheck = false; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; pythonNamespaces = [ "sphinxcontrib" ]; @@ -36,5 +46,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ ]; license = licenses.bsd2; }; - } diff --git a/pkgs/development/python-modules/sphinxcontrib-confluencebuilder/default.nix b/pkgs/development/python-modules/sphinxcontrib-confluencebuilder/default.nix index 4d7373310410..ee5021688f8e 100644 --- a/pkgs/development/python-modules/sphinxcontrib-confluencebuilder/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-confluencebuilder/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, docutils -, sphinx -, requests -, jinja2 +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + docutils, + sphinx, + requests, + jinja2, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-FwjjlMTIhAD/v4Ig+uqrJJybdPqpPG+7OMuJwSqWo84="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ docutils @@ -33,9 +32,7 @@ buildPythonPackage rec { # Tests are disabled due to a circular dependency on Sphinx doCheck = false; - pythonImportsCheck = [ - "sphinxcontrib.confluencebuilder" - ]; + pythonImportsCheck = [ "sphinxcontrib.confluencebuilder" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix b/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix index 5e37386e5510..64cb1b549b4b 100644 --- a/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-devhelp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-mJP9P5BQa8S5e9uXfOuPvYI5ifQxayjDhB7BKFRDctM="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Check is disabled due to circular dependency of sphinx dontCheckRuntimeDeps = true; diff --git a/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix b/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix index 732ed446aa28..329db4319a51 100644 --- a/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-excel-table/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, openpyxl +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + openpyxl, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256:1q79byn3k3ribvwqafbpixwabjhymk46ns8ym0hxcn8vhf5nljzd"; }; - propagatedBuildInputs = [ sphinx openpyxl ]; + propagatedBuildInputs = [ + sphinx + openpyxl + ]; pythonImportsCheck = [ "sphinxcontrib.excel_table" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix b/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix index f29e46b014e0..1d2850bb20b2 100644 --- a/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-fulltoc/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, sphinx, pbr }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + sphinx, + pbr, +}: buildPythonPackage rec { pname = "sphinxcontrib-fulltoc"; diff --git a/pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nix b/pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nix index c49e3c49da31..69b237b0452b 100644 --- a/pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-htmlhelp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-Dch2N9XeU91e7DpqAXU7HM+ZSUvXVqr+zXS0+p5ykBU="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Check is disabled due to circular dependency of sphinx dontCheckRuntimeDeps = true; diff --git a/pkgs/development/python-modules/sphinxcontrib-httpdomain/default.nix b/pkgs/development/python-modules/sphinxcontrib-httpdomain/default.nix index 8be6779391a3..a483e50deea3 100644 --- a/pkgs/development/python-modules/sphinxcontrib-httpdomain/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-httpdomain/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, }: buildPythonPackage rec { @@ -27,5 +28,4 @@ buildPythonPackage rec { homepage = "https://bitbucket.org/birkenfeld/sphinx-contrib"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix b/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix index 0ca9fad7b731..66047794ecea 100644 --- a/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-jquery/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, flit-core -, defusedxml -, pytestCheckHook -, sphinx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + flit-core, + defusedxml, + pytestCheckHook, + sphinx, }: buildPythonPackage rec { @@ -34,13 +35,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - pythonImportsCheck = [ - "sphinxcontrib.jquery" - ]; + pythonImportsCheck = [ "sphinxcontrib.jquery" ]; nativeCheckInputs = [ defusedxml diff --git a/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix b/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix index f0728a67adb2..bf30b5f8f393 100644 --- a/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-jsmath/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinxcontrib-katex/default.nix b/pkgs/development/python-modules/sphinxcontrib-katex/default.nix index 9420c9882cbd..15d1c9f1eaae 100644 --- a/pkgs/development/python-modules/sphinxcontrib-katex/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-katex/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + sphinx, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-1ZTILfVLBI1Z1I5GsQn2IhezEaublSCMq5bZAvmj/ik="; }; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; # There are no unit tests doCheck = false; - pythonImportsCheck = [ - "sphinxcontrib.katex" - ]; + pythonImportsCheck = [ "sphinxcontrib.katex" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix b/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix index 2dfc743a60f9..b9dfabb9fd81 100644 --- a/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-log-cabinet/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, sphinx }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sphinx, +}: buildPythonPackage rec { pname = "sphinxcontrib-log-cabinet"; diff --git a/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix b/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix index 7350b837a7f8..a95cd57dec85 100644 --- a/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-mscgen/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, sphinx -, mscgen +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + sphinx, + mscgen, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # There are no unit tests doCheck = false; - pythonImportsCheck = [ - "sphinxcontrib.mscgen" - ]; + pythonImportsCheck = [ "sphinxcontrib.mscgen" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix b/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix index ee9661d954e4..2f7b6c1ee34d 100644 --- a/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-newsfeed/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, sphinx +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + sphinx, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { sha256 = "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; pythonNamespaces = [ "sphinxcontrib" ]; @@ -30,5 +27,4 @@ buildPythonPackage rec { homepage = "https://github.com/prometheusresearch/sphinxcontrib-newsfeed"; license = licenses.bsd2; }; - } diff --git a/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix index de4ebf723bf1..56ca8292903c 100644 --- a/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-nwdiag/default.nix @@ -1,10 +1,11 @@ -{ lib -, blockdiag -, buildPythonPackage -, fetchPypi -, nwdiag -, pythonOlder -, sphinx +{ + lib, + blockdiag, + buildPythonPackage, + fetchPypi, + nwdiag, + pythonOlder, + sphinx, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sphinx ]; - pythonImportsCheck = [ - "sphinxcontrib.nwdiag" - ]; + pythonImportsCheck = [ "sphinxcontrib.nwdiag" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-openapi/default.nix b/pkgs/development/python-modules/sphinxcontrib-openapi/default.nix index 6cfc2dc3d4c6..eebc7ed12ba0 100644 --- a/pkgs/development/python-modules/sphinxcontrib-openapi/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-openapi/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, deepmerge -, fetchPypi -, fetchpatch -, isPy27 -, setuptools-scm -, jsonschema -, picobox -, pyyaml -, sphinx-mdinclude -, sphinxcontrib-httpdomain +{ + lib, + buildPythonPackage, + deepmerge, + fetchPypi, + fetchpatch, + isPy27, + setuptools-scm, + jsonschema, + picobox, + pyyaml, + sphinx-mdinclude, + sphinxcontrib-httpdomain, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinxcontrib-plantuml/default.nix b/pkgs/development/python-modules/sphinxcontrib-plantuml/default.nix index 6e0b7802d03a..6f9a3ecf2d49 100644 --- a/pkgs/development/python-modules/sphinxcontrib-plantuml/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-plantuml/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, plantuml -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + plantuml, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinxcontrib-programoutput/default.nix b/pkgs/development/python-modules/sphinxcontrib-programoutput/default.nix index 63dcfb16242b..bf41b078d55e 100644 --- a/pkgs/development/python-modules/sphinxcontrib-programoutput/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-programoutput/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, sphinxcontrib-serializinghtml +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + sphinxcontrib-serializinghtml, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-MA7puMrug1XSXMdLTRx+/RLmCNKtFl4xQdMeb7wVK38="; }; - buildInputs = [ - sphinx - ]; + buildInputs = [ sphinx ]; # fails to import sphinxcontrib.serializinghtml doCheck = false; diff --git a/pkgs/development/python-modules/sphinxcontrib-qthelp/default.nix b/pkgs/development/python-modules/sphinxcontrib-qthelp/default.nix index 607060e2931d..125dfa1a0e66 100644 --- a/pkgs/development/python-modules/sphinxcontrib-qthelp/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-qthelp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-BT3tw4gjqApyCagIYLFrci6eAgnjL+qYyQ5OZiRYjtY="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Check is disabled due to circular dependency of sphinx dontCheckRuntimeDeps = true; diff --git a/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix b/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix index 085cb5730548..fbca10bced53 100644 --- a/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-seqdiag/default.nix @@ -1,10 +1,11 @@ -{ lib -, blockdiag -, buildPythonPackage -, fetchPypi -, pythonOlder -, seqdiag -, sphinx +{ + lib, + blockdiag, + buildPythonPackage, + fetchPypi, + pythonOlder, + seqdiag, + sphinx, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sphinx ]; - pythonImportsCheck = [ - "sphinxcontrib.seqdiag" - ]; + pythonImportsCheck = [ "sphinxcontrib.seqdiag" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nix b/pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nix index c2f09769d1ac..5403d7fb01b5 100644 --- a/pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-serializinghtml/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit-core, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-k/P13EWLkbGS/hDDl+Mk8mLPFj158ygsFY6ENqLEUR8="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Check is disabled due to circular dependency of sphinx dontCheckRuntimeDeps = true; diff --git a/pkgs/development/python-modules/sphinxcontrib-spelling/default.nix b/pkgs/development/python-modules/sphinxcontrib-spelling/default.nix index b7a71f891c32..a9125ef5d468 100644 --- a/pkgs/development/python-modules/sphinxcontrib-spelling/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-spelling/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, importlib-metadata -, sphinx -, pyenchant -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + importlib-metadata, + sphinx, + pyenchant, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -31,16 +32,12 @@ buildPythonPackage rec { propagatedBuildInputs = [ sphinx pyenchant - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # No tests included doCheck = false; - pythonImportsCheck = [ - "sphinxcontrib.spelling" - ]; + pythonImportsCheck = [ "sphinxcontrib.spelling" ]; pythonNamespaces = [ "sphinxcontrib" ]; diff --git a/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix b/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix index a52ebdd83d6f..972a77858f57 100644 --- a/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-tikz/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, sphinx -, pdf2svg -, texliveSmall +{ + lib, + buildPythonPackage, + fetchPypi, + sphinx, + pdf2svg, + texliveSmall, }: buildPythonPackage rec { @@ -18,7 +19,14 @@ buildPythonPackage rec { postPatch = '' substituteInPlace sphinxcontrib/tikz.py \ - --replace "config.latex_engine" "'${texliveSmall.withPackages (ps: with ps; [ standalone pgfplots ])}/bin/pdflatex'" \ + --replace "config.latex_engine" "'${ + texliveSmall.withPackages ( + ps: with ps; [ + standalone + pgfplots + ] + ) + }/bin/pdflatex'" \ --replace "system(['pdf2svg'" "system(['${pdf2svg}/bin/pdf2svg'" ''; @@ -37,5 +45,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ ]; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/sphinxcontrib-wavedrom/default.nix b/pkgs/development/python-modules/sphinxcontrib-wavedrom/default.nix index 6f35e2b59e32..746bdf78a179 100644 --- a/pkgs/development/python-modules/sphinxcontrib-wavedrom/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-wavedrom/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools-scm -, sphinx -, wavedrom -, xcffib -, cairosvg +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools-scm, + sphinx, + wavedrom, + xcffib, + cairosvg, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sphinxcontrib-websupport/default.nix b/pkgs/development/python-modules/sphinxcontrib-websupport/default.nix index 7371d8abdea8..a30a5a980905 100644 --- a/pkgs/development/python-modules/sphinxcontrib-websupport/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-websupport/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, jinja2 -, sphinxcontrib-serializinghtml +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + jinja2, + sphinxcontrib-serializinghtml, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-4yKALr/V/nk2jv2GSuuHsGNWauYZEdzLJxTiikXtdWE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ jinja2 diff --git a/pkgs/development/python-modules/sphinxcontrib-youtube/default.nix b/pkgs/development/python-modules/sphinxcontrib-youtube/default.nix index ab48066dc6af..2321bc467f5e 100644 --- a/pkgs/development/python-modules/sphinxcontrib-youtube/default.nix +++ b/pkgs/development/python-modules/sphinxcontrib-youtube/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, sphinx -, requests -, flit-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sphinx, + requests, + flit-core, }: buildPythonPackage rec { @@ -20,7 +21,10 @@ buildPythonPackage rec { hash = "sha256-XuOfZ77tg9akmgTuMQN20OhgkFbn/6YzT46vpTsXxC8="; }; - propagatedBuildInputs = [ sphinx requests ]; + propagatedBuildInputs = [ + sphinx + requests + ]; # tests require internet access doCheck = false; diff --git a/pkgs/development/python-modules/sphinxemoji/default.nix b/pkgs/development/python-modules/sphinxemoji/default.nix index 639e6d2ab12b..b563388ab1a9 100644 --- a/pkgs/development/python-modules/sphinxemoji/default.nix +++ b/pkgs/development/python-modules/sphinxemoji/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, sphinx -, sphinxHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + sphinx, + sphinxHook, }: buildPythonPackage rec { @@ -11,7 +12,10 @@ buildPythonPackage rec { version = "0.2.0"; format = "pyproject"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; src = fetchFromGitHub { owner = "sphinx-contrib"; @@ -29,12 +33,10 @@ buildPythonPackage rec { sphinx # sphinxemoji.py imports pkg_resources directly setuptools - ]; - - pythonImportsCheck = [ - "sphinxemoji" ]; + pythonImportsCheck = [ "sphinxemoji" ]; + meta = with lib; { description = "Extension to use emoji codes in your Sphinx documentation"; homepage = "https://github.com/sphinx-contrib/emojicodes"; diff --git a/pkgs/development/python-modules/sphinxext-opengraph/default.nix b/pkgs/development/python-modules/sphinxext-opengraph/default.nix index 570cf5b95b59..2740b83afbb4 100644 --- a/pkgs/development/python-modules/sphinxext-opengraph/default.nix +++ b/pkgs/development/python-modules/sphinxext-opengraph/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, sphinx -, matplotlib -, pytestCheckHook -, pythonOlder -, beautifulsoup4 -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sphinx, + matplotlib, + pytestCheckHook, + pythonOlder, + beautifulsoup4, + setuptools-scm, }: buildPythonPackage rec { @@ -23,19 +24,13 @@ buildPythonPackage rec { hash = "sha256-B+bJ1tKqTTlbNeJLxk56o2a21n3Yg6OHwJiFfCx46aw="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; passthru.optional-dependencies = { - social_cards_generation = [ - matplotlib - ]; + social_cards_generation = [ matplotlib ]; }; - propagatedBuildInputs = [ - sphinx - ]; + propagatedBuildInputs = [ sphinx ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/spiderpy/default.nix b/pkgs/development/python-modules/spiderpy/default.nix index 1747e8609924..88823aff54ba 100644 --- a/pkgs/development/python-modules/spiderpy/default.nix +++ b/pkgs/development/python-modules/spiderpy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, isPy27 -, fetchFromGitHub -, poetry-core -, requests +{ + lib, + buildPythonPackage, + isPy27, + fetchFromGitHub, + poetry-core, + requests, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-Yujy8HSMbK2DQ/913r2c74hKPYDfcHFKq04ysqxG+go="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # tests don't mock remote resources doCheck = false; diff --git a/pkgs/development/python-modules/spidev/default.nix b/pkgs/development/python-modules/spidev/default.nix index b4e5344cca85..1e62e9b3f988 100644 --- a/pkgs/development/python-modules/spidev/default.nix +++ b/pkgs/development/python-modules/spidev/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "spidev"; @@ -22,5 +26,4 @@ buildPythonPackage rec { maintainers = with maintainers; [ hexa ]; platforms = platforms.linux; }; - } diff --git a/pkgs/development/python-modules/spinners/default.nix b/pkgs/development/python-modules/spinners/default.nix index 6328a43df8f7..15fa7bd0a560 100644 --- a/pkgs/development/python-modules/spinners/default.nix +++ b/pkgs/development/python-modules/spinners/default.nix @@ -1,7 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, isPy27 -, lib }: +{ + buildPythonPackage, + fetchPypi, + isPy27, + lib, +}: buildPythonPackage rec { pname = "spinners"; diff --git a/pkgs/development/python-modules/splinter/default.nix b/pkgs/development/python-modules/splinter/default.nix index 95ad23ec85c2..c85096167742 100644 --- a/pkgs/development/python-modules/splinter/default.nix +++ b/pkgs/development/python-modules/splinter/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, urllib3 -, selenium -, cssselect -, django -, flask -, lxml -, pytestCheckHook -, zope-testbrowser +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + urllib3, + selenium, + cssselect, + django, + flask, + lxml, + pytestCheckHook, + zope-testbrowser, }: buildPythonPackage rec { @@ -28,18 +29,26 @@ buildPythonPackage rec { hash = "sha256-PGGql8yI1YosoUBAyDoI/8k7s4sVYnXEV7eow3GHH88="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - urllib3 - ]; + propagatedBuildInputs = [ urllib3 ]; passthru.optional-dependencies = { - "zope.testbrowser" = [ zope-testbrowser lxml cssselect ]; - django = [ django lxml cssselect ]; - flask = [ flask lxml cssselect ]; + "zope.testbrowser" = [ + zope-testbrowser + lxml + cssselect + ]; + django = [ + django + lxml + cssselect + ]; + flask = [ + flask + lxml + cssselect + ]; selenium = [ selenium ]; }; diff --git a/pkgs/development/python-modules/spotipy/default.nix b/pkgs/development/python-modules/spotipy/default.nix index 8ed6525fd072..91ef0ec20905 100644 --- a/pkgs/development/python-modules/spotipy/default.nix +++ b/pkgs/development/python-modules/spotipy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, redis -, requests -, six -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + redis, + requests, + six, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/spsdk/default.nix b/pkgs/development/python-modules/spsdk/default.nix index 35b10ef7c97c..fdc74f982c29 100644 --- a/pkgs/development/python-modules/spsdk/default.nix +++ b/pkgs/development/python-modules/spsdk/default.nix @@ -1,40 +1,41 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, asn1crypto -, astunparse -, bincopy -, bitstring -, click -, click-command-tree -, click-option-group -, colorama -, crcmod -, cryptography -, deepmerge -, fastjsonschema -, hexdump -, libusbsio -, oscrypto -, platformdirs -, prettytable -, pylink-square -, pyocd -, pyocd-pemicro -, pypemicro -, pyserial -, requests -, ruamel-yaml -, setuptools -, sly -, spsdk -, testers -, typing-extensions -, ipykernel -, pytest-notebook -, pytestCheckHook -, voluptuous +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + asn1crypto, + astunparse, + bincopy, + bitstring, + click, + click-command-tree, + click-option-group, + colorama, + crcmod, + cryptography, + deepmerge, + fastjsonschema, + hexdump, + libusbsio, + oscrypto, + platformdirs, + prettytable, + pylink-square, + pyocd, + pyocd-pemicro, + pypemicro, + pyserial, + requests, + ruamel-yaml, + setuptools, + sly, + spsdk, + testers, + typing-extensions, + ipykernel, + pytest-notebook, + pytestCheckHook, + voluptuous, }: buildPythonPackage rec { @@ -111,7 +112,10 @@ buildPythonPackage rec { description = "NXP Secure Provisioning SDK"; homepage = "https://github.com/nxp-mcuxpresso/spsdk"; license = licenses.bsd3; - maintainers = with maintainers; [ frogamic sbruder ]; + maintainers = with maintainers; [ + frogamic + sbruder + ]; mainProgram = "spsdk"; }; } diff --git a/pkgs/development/python-modules/spur/default.nix b/pkgs/development/python-modules/spur/default.nix index 4b4fe911817e..6762556268fd 100644 --- a/pkgs/development/python-modules/spur/default.nix +++ b/pkgs/development/python-modules/spur/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, paramiko -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + paramiko, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-LTkZ1p2P9fsD+gZEQZaCS68Q6nGc4qFGMNtH75gQmXQ="; }; - propagatedBuildInputs = [ - paramiko - ]; + propagatedBuildInputs = [ paramiko ]; # Tests require a running SSH server doCheck = false; - pythonImportsCheck = [ - "spur" - ]; + pythonImportsCheck = [ "spur" ]; meta = with lib; { description = "Python module to run commands and manipulate files locally or over SSH"; diff --git a/pkgs/development/python-modules/spyder-kernels/default.nix b/pkgs/development/python-modules/spyder-kernels/default.nix index 30f76ffd6258..fdabd3466b92 100644 --- a/pkgs/development/python-modules/spyder-kernels/default.nix +++ b/pkgs/development/python-modules/spyder-kernels/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, cloudpickle -, fetchPypi -, ipykernel -, ipython -, jupyter-client -, packaging -, pythonOlder -, pyxdg -, pyzmq -, wurlitzer +{ + lib, + buildPythonPackage, + cloudpickle, + fetchPypi, + ipykernel, + ipython, + jupyter-client, + packaging, + pythonOlder, + pyxdg, + pyzmq, + wurlitzer, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { # No tests doCheck = false; - pythonImportsCheck = [ - "spyder_kernels" - ]; + pythonImportsCheck = [ "spyder_kernels" ]; meta = with lib; { description = "Jupyter kernels for Spyder's console"; diff --git a/pkgs/development/python-modules/spyder/default.nix b/pkgs/development/python-modules/spyder/default.nix index edefde907e2c..70a882fa68ab 100644 --- a/pkgs/development/python-modules/spyder/default.nix +++ b/pkgs/development/python-modules/spyder/default.nix @@ -1,44 +1,45 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, atomicwrites -, chardet -, cloudpickle -, cookiecutter -, diff-match-patch -, intervaltree -, jedi -, jellyfish -, keyring -, matplotlib -, nbconvert -, numpy -, numpydoc -, pickleshare -, psutil -, pygments -, pylint-venv -, pyls-spyder -, pyopengl -, pyqtwebengine -, python-lsp-black -, python-lsp-server -, pyxdg -, pyzmq -, qdarkstyle -, qstylizer -, qtawesome -, qtconsole -, qtpy -, rope -, rtree -, scipy -, setuptools -, spyder-kernels -, textdistance -, three-merge -, watchdog +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + atomicwrites, + chardet, + cloudpickle, + cookiecutter, + diff-match-patch, + intervaltree, + jedi, + jellyfish, + keyring, + matplotlib, + nbconvert, + numpy, + numpydoc, + pickleshare, + psutil, + pygments, + pylint-venv, + pyls-spyder, + pyopengl, + pyqtwebengine, + python-lsp-black, + python-lsp-server, + pyxdg, + pyzmq, + qdarkstyle, + qstylizer, + qtawesome, + qtconsole, + qtpy, + rope, + rtree, + scipy, + setuptools, + spyder-kernels, + textdistance, + three-merge, + watchdog, }: buildPythonPackage rec { @@ -53,9 +54,7 @@ buildPythonPackage rec { hash = "sha256-UiIyoFREfd3gV0uhSgZ8TVFQiP3yprrBZDOm3+8Dge0="; }; - patches = [ - ./dont-clear-pythonpath.patch - ]; + patches = [ ./dont-clear-pythonpath.patch ]; build-system = [ pyqtwebengine.wrapQtAppsHook diff --git a/pkgs/development/python-modules/spylls/default.nix b/pkgs/development/python-modules/spylls/default.nix index 99f2a8031ead..ecc1b8034ade 100644 --- a/pkgs/development/python-modules/spylls/default.nix +++ b/pkgs/development/python-modules/spylls/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, pythonOlder + pythonOlder, -, poetry-core + poetry-core, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { --replace-fail "poetry>=" "poetry-core>=" ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; # no unit tests in source distribution... doCheck = false; diff --git a/pkgs/development/python-modules/spyse-python/default.nix b/pkgs/development/python-modules/spyse-python/default.nix index 56ffdfe8c080..0a37e99b02a2 100644 --- a/pkgs/development/python-modules/spyse-python/default.nix +++ b/pkgs/development/python-modules/spyse-python/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, dataclasses-json -, fetchFromGitHub -, fetchpatch -, limiter -, pythonOlder -, requests -, responses -, setuptools +{ + lib, + buildPythonPackage, + dataclasses-json, + fetchFromGitHub, + fetchpatch, + limiter, + pythonOlder, + requests, + responses, + setuptools, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { --replace "requests~=2.26.0" "requests>=2.26.0" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -56,9 +55,7 @@ buildPythonPackage rec { # Tests requires an API token doCheck = false; - pythonImportsCheck = [ - "spyse" - ]; + pythonImportsCheck = [ "spyse" ]; meta = with lib; { description = "Python module for spyse.com API"; diff --git a/pkgs/development/python-modules/spython/default.nix b/pkgs/development/python-modules/spython/default.nix index 4339a3ccfec2..60786d3cd48a 100644 --- a/pkgs/development/python-modules/spython/default.nix +++ b/pkgs/development/python-modules/spython/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { --replace '"pytest-runner"' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "spython" - ]; + pythonImportsCheck = [ "spython" ]; disabledTests = [ # Assertion errors diff --git a/pkgs/development/python-modules/sqids/default.nix b/pkgs/development/python-modules/sqids/default.nix index a9d5fe372953..a407afb415e0 100644 --- a/pkgs/development/python-modules/sqids/default.nix +++ b/pkgs/development/python-modules/sqids/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-/8P7/vY0kb7ouUCpgGU4g0Xb77BtSeQVt6nkdcogD50="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "sqids" ]; diff --git a/pkgs/development/python-modules/sqlalchemy-citext/default.nix b/pkgs/development/python-modules/sqlalchemy-citext/default.nix index b040ee597ef8..42ec3ba43aee 100644 --- a/pkgs/development/python-modules/sqlalchemy-citext/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-citext/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, psycopg2 -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchPypi, + psycopg2, + sqlalchemy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sqlalchemy-continuum/default.nix b/pkgs/development/python-modules/sqlalchemy-continuum/default.nix index 7801b029e1f2..b045fa3c6b24 100644 --- a/pkgs/development/python-modules/sqlalchemy-continuum/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-continuum/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flask -, flask-login -, flask-sqlalchemy -, psycopg2 -, pymysql -, pytestCheckHook -, pythonOlder -, sqlalchemy -, sqlalchemy-i18n -, sqlalchemy-utils +{ + lib, + buildPythonPackage, + fetchPypi, + flask, + flask-login, + flask-sqlalchemy, + psycopg2, + pymysql, + pytestCheckHook, + pythonOlder, + sqlalchemy, + sqlalchemy-i18n, + sqlalchemy-utils, }: buildPythonPackage rec { @@ -32,18 +33,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - flask = [ - flask - ]; - flask-login = [ - flask-login - ]; - flask-sqlalchemy = [ - flask-sqlalchemy - ]; - i18n = [ - sqlalchemy-i18n - ]; + flask = [ flask ]; + flask-login = [ flask-login ]; + flask-sqlalchemy = [ flask-sqlalchemy ]; + i18n = [ sqlalchemy-i18n ]; }; nativeCheckInputs = [ @@ -55,9 +48,7 @@ buildPythonPackage rec { # Indicate tests that we don't have a database server at hand env.DB = "sqlite"; - pythonImportsCheck = [ - "sqlalchemy_continuum" - ]; + pythonImportsCheck = [ "sqlalchemy_continuum" ]; meta = with lib; { description = "Versioning and auditing extension for SQLAlchemy"; diff --git a/pkgs/development/python-modules/sqlalchemy-i18n/default.nix b/pkgs/development/python-modules/sqlalchemy-i18n/default.nix index a33a9783319f..b3540712d926 100644 --- a/pkgs/development/python-modules/sqlalchemy-i18n/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-i18n/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, sqlalchemy -, sqlalchemy-utils -, six +{ + lib, + fetchPypi, + buildPythonPackage, + sqlalchemy, + sqlalchemy-utils, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix b/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix index 54422df03e5a..edcb8dff3bb9 100644 --- a/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-jsonfield/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, sqlalchemy -, setuptools-scm -, setuptools -, sphinx -, pytestCheckHook -, pytest-sugar -, pymysql -, psycopg2 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + sqlalchemy, + setuptools-scm, + setuptools, + sphinx, + pytestCheckHook, + pytest-sugar, + pymysql, + psycopg2, + pythonOlder, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-4zLXB3UQh6pgQ80KrxkLeC5yiv1R8t2+JmSukmGXr7I="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ sqlalchemy @@ -42,9 +41,7 @@ buildPythonPackage rec { psycopg2 ]; - pythonImportsCheck = [ - "sqlalchemy_jsonfield" - ]; + pythonImportsCheck = [ "sqlalchemy_jsonfield" ]; meta = with lib; { description = "SQLALchemy JSONField implementation for storing dicts at SQL independently from JSON type support"; diff --git a/pkgs/development/python-modules/sqlalchemy-migrate/default.nix b/pkgs/development/python-modules/sqlalchemy-migrate/default.nix index cf3a6b64cfcc..93703010e592 100644 --- a/pkgs/development/python-modules/sqlalchemy-migrate/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-migrate/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, fetchpatch -, python -, scripttest -, pytz -, pbr -, tempita -, decorator -, sqlalchemy -, six -, sqlparse -, testrepository +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + fetchpatch, + python, + scripttest, + pytz, + pbr, + tempita, + decorator, + sqlalchemy, + six, + sqlparse, + testrepository, }: buildPythonPackage rec { @@ -44,8 +45,19 @@ buildPythonPackage rec { --replace "pylint" "" ''; - nativeCheckInputs = [ scripttest pytz testrepository ]; - propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ]; + nativeCheckInputs = [ + scripttest + pytz + testrepository + ]; + propagatedBuildInputs = [ + pbr + tempita + decorator + sqlalchemy + six + sqlparse + ]; doCheck = !stdenv.isDarwin; diff --git a/pkgs/development/python-modules/sqlalchemy-mixins/default.nix b/pkgs/development/python-modules/sqlalchemy-mixins/default.nix index 1a075b227913..492b0521201d 100644 --- a/pkgs/development/python-modules/sqlalchemy-mixins/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-mixins/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, nose -, pytestCheckHook -, pythonOlder -, six -, sqlalchemy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, + pytestCheckHook, + pythonOlder, + six, + sqlalchemy, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "sqlalchemy_mixins" - ]; + pythonImportsCheck = [ "sqlalchemy_mixins" ]; meta = with lib; { description = "Python mixins for SQLAlchemy ORM"; diff --git a/pkgs/development/python-modules/sqlalchemy-utils/default.nix b/pkgs/development/python-modules/sqlalchemy-utils/default.nix index 8b0a1a374754..36f8b3ad9c92 100644 --- a/pkgs/development/python-modules/sqlalchemy-utils/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-utils/default.nix @@ -1,38 +1,39 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pythonOlder, -# runtime -, importlib-metadata -, sqlalchemy + # runtime + importlib-metadata, + sqlalchemy, -# optionals -, babel -, arrow -, pendulum -#, intervals -, phonenumbers -, passlib -, colour -, python-dateutil -, furl -, cryptography + # optionals + babel, + arrow, + pendulum, + #, intervals + phonenumbers, + passlib, + colour, + python-dateutil, + furl, + cryptography, -# tests -, pytestCheckHook -, pygments -, jinja2 -, docutils -, flexmock -, psycopg2 -, psycopg2cffi -, pg8000 -, pytz -, backports-zoneinfo -, pymysql -, pyodbc + # tests + pytestCheckHook, + pygments, + jinja2, + docutils, + flexmock, + psycopg2, + psycopg2cffi, + pg8000, + pytz, + backports-zoneinfo, + pymysql, + pyodbc, }: @@ -47,15 +48,9 @@ buildPythonPackage rec { hash = "sha256-vFmcjDszGeU85sXDxHESC9Ml0AcftvOKEOkk49B7mZA="; }; - patches = [ - ./skip-database-tests.patch - ]; + patches = [ ./skip-database-tests.patch ]; - propagatedBuildInputs = [ - sqlalchemy - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = [ sqlalchemy ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; passthru.optional-dependencies = { babel = [ babel ]; @@ -70,27 +65,26 @@ buildPythonPackage rec { encrypted = [ cryptography ]; }; - nativeCheckInputs = [ - pytestCheckHook - pygments - jinja2 - docutils - flexmock - psycopg2 - pg8000 - pytz - python-dateutil - pymysql - pyodbc - ] - ++ lib.flatten (builtins.attrValues passthru.optional-dependencies) - ++ lib.optionals (pythonOlder "3.12") [ - # requires distutils, which were removed in 3.12 - psycopg2cffi - ] - ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + nativeCheckInputs = + [ + pytestCheckHook + pygments + jinja2 + docutils + flexmock + psycopg2 + pg8000 + pytz + python-dateutil + pymysql + pyodbc + ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies) + ++ lib.optionals (pythonOlder "3.12") [ + # requires distutils, which were removed in 3.12 + psycopg2cffi + ] + ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; pytestFlagsArray = [ "--deselect tests/functions/test_database.py::TestDatabasePostgresCreateDatabaseCloseConnection::test_create_database_twice" diff --git a/pkgs/development/python-modules/sqlalchemy-views/default.nix b/pkgs/development/python-modules/sqlalchemy-views/default.nix index beafdbc2b538..596ff985290f 100644 --- a/pkgs/development/python-modules/sqlalchemy-views/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-views/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, sqlalchemy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + sqlalchemy, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,21 +23,13 @@ buildPythonPackage rec { substituteInPlace tox.ini --replace '--cov=sqlalchemy_views --cov-report=term' "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sqlalchemy - ]; + propagatedBuildInputs = [ sqlalchemy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sqlalchemy_views" - ]; + pythonImportsCheck = [ "sqlalchemy_views" ]; meta = with lib; { description = "Adds CreateView and DropView constructs to SQLAlchemy"; diff --git a/pkgs/development/python-modules/sqlalchemy/1_4.nix b/pkgs/development/python-modules/sqlalchemy/1_4.nix index a630b110314d..17d3b2d6db38 100644 --- a/pkgs/development/python-modules/sqlalchemy/1_4.nix +++ b/pkgs/development/python-modules/sqlalchemy/1_4.nix @@ -1,36 +1,37 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, greenlet + # dependencies + greenlet, -# optionals -, aiomysql -, aiosqlite -, asyncmy -, asyncpg -, cx-oracle -, mariadb -, mypy -, mysql-connector -, mysqlclient -, pg8000 -, psycopg2 -, psycopg2cffi -# TODO: pymssql -, pymysql -, pyodbc -# TODO: sqlcipher3 -, typing-extensions + # optionals + aiomysql, + aiosqlite, + asyncmy, + asyncpg, + cx-oracle, + mariadb, + mypy, + mysql-connector, + mysqlclient, + pg8000, + psycopg2, + psycopg2cffi, + # TODO: pymssql + pymysql, + pyodbc, + # TODO: sqlcipher3 + typing-extensions, -# tests -, mock -, pytest-xdist -, pytestCheckHook + # tests + mock, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -49,66 +50,30 @@ buildPythonPackage rec { sed -i '/tag_build = dev/d' setup.cfg ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - greenlet - ]; + propagatedBuildInputs = [ greenlet ]; passthru.optional-dependencies = lib.fix (self: { - asyncio = [ - greenlet - ]; - mypy = [ - mypy - ]; - mssql = [ - pyodbc - ]; + asyncio = [ greenlet ]; + mypy = [ mypy ]; + mssql = [ pyodbc ]; mssql_pymysql = [ # TODO: pymssql ]; - mssql_pyodbc = [ - pyodbc - ]; - mysql = [ - mysqlclient - ]; - mysql_connector = [ - mysql-connector - ]; - mariadb_connector = [ - mariadb - ]; - oracle = [ - cx-oracle - ]; - postgresql = [ - psycopg2 - ]; - postgresql_pg8000 = [ - pg8000 - ]; - postgresql_asyncpg = [ - asyncpg - ] ++ self.asyncio; - postgresql_psycopg2binary = [ - psycopg2 - ]; - postgresql_psycopg2cffi = [ - psycopg2cffi - ]; - pymysql = [ - pymysql - ]; - aiomysql = [ - aiomysql - ] ++ self.asyncio; - asyncmy = [ - asyncmy - ] ++ self.asyncio; + mssql_pyodbc = [ pyodbc ]; + mysql = [ mysqlclient ]; + mysql_connector = [ mysql-connector ]; + mariadb_connector = [ mariadb ]; + oracle = [ cx-oracle ]; + postgresql = [ psycopg2 ]; + postgresql_pg8000 = [ pg8000 ]; + postgresql_asyncpg = [ asyncpg ] ++ self.asyncio; + postgresql_psycopg2binary = [ psycopg2 ]; + postgresql_psycopg2cffi = [ psycopg2cffi ]; + pymysql = [ pymysql ]; + aiomysql = [ aiomysql ] ++ self.asyncio; + asyncmy = [ asyncmy ] ++ self.asyncio; aiosqlite = [ aiosqlite typing-extensions @@ -131,12 +96,12 @@ buildPythonPackage rec { "test/aaa_profiling" ]; - pythonImportsCheck = [ - "sqlalchemy" - ]; + pythonImportsCheck = [ "sqlalchemy" ]; meta = with lib; { - changelog = "https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_${builtins.replaceStrings [ "." ] [ "_" ] version}"; + changelog = "https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_${ + builtins.replaceStrings [ "." ] [ "_" ] version + }"; description = "The Database Toolkit for Python"; homepage = "https://github.com/sqlalchemy/sqlalchemy"; license = licenses.mit; diff --git a/pkgs/development/python-modules/sqlalchemy/default.nix b/pkgs/development/python-modules/sqlalchemy/default.nix index aa557ca55553..4a8c781e2e92 100644 --- a/pkgs/development/python-modules/sqlalchemy/default.nix +++ b/pkgs/development/python-modules/sqlalchemy/default.nix @@ -1,41 +1,42 @@ -{ lib -, isPyPy -, pythonOlder -, fetchFromGitHub -, buildPythonPackage +{ + lib, + isPyPy, + pythonOlder, + fetchFromGitHub, + buildPythonPackage, -# build -, cython -, setuptools + # build + cython, + setuptools, -# propagates -, greenlet -, typing-extensions + # propagates + greenlet, + typing-extensions, -# optionals -, aiomysql -, aiosqlite -, asyncmy -, asyncpg -, cx-oracle -, mariadb -, mypy -, mysql-connector -, mysqlclient -, oracledb -, pg8000 -, psycopg -, psycopg2 -, psycopg2cffi -# TODO: pymssql -, pymysql -, pyodbc -# TODO: sqlcipher3 + # optionals + aiomysql, + aiosqlite, + asyncmy, + asyncpg, + cx-oracle, + mariadb, + mypy, + mysql-connector, + mysqlclient, + oracledb, + pg8000, + psycopg, + psycopg2, + psycopg2cffi, + # TODO: pymssql + pymysql, + pyodbc, + # TODO: sqlcipher3 -# tests -, mock -, pytest-xdist -, pytestCheckHook + # tests + mock, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -56,11 +57,7 @@ buildPythonPackage rec { sed -i '/tag_build = dev/d' setup.cfg ''; - nativeBuildInputs =[ - setuptools - ] ++ lib.optionals (!isPyPy) [ - cython - ]; + nativeBuildInputs = [ setuptools ] ++ lib.optionals (!isPyPy) [ cython ]; propagatedBuildInputs = [ greenlet @@ -68,66 +65,28 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = lib.fix (self: { - asyncio = [ - greenlet - ]; - mypy = [ - mypy - ]; - mssql = [ - pyodbc - ]; + asyncio = [ greenlet ]; + mypy = [ mypy ]; + mssql = [ pyodbc ]; mssql_pymysql = [ # TODO: pymssql ]; - mssql_pyodbc = [ - pyodbc - ]; - mysql = [ - mysqlclient - ]; - mysql_connector = [ - mysql-connector - ]; - mariadb_connector = [ - mariadb - ]; - oracle = [ - cx-oracle - ]; - oracle_oracledb = [ - oracledb - ]; - postgresql = [ - psycopg2 - ]; - postgresql_pg8000 = [ - pg8000 - ]; - postgresql_asyncpg = [ - asyncpg - ] ++ self.asyncio; - postgresql_psycopg2binary = [ - psycopg2 - ]; - postgresql_psycopg2cffi = [ - psycopg2cffi - ]; - postgresql_psycopg = [ - psycopg - ]; - postgresql_psycopgbinary = [ - psycopg - ]; - pymysql = [ - pymysql - ]; - aiomysql = [ - aiomysql - ] ++ self.asyncio; - asyncmy = [ - asyncmy - ] ++ self.asyncio; + mssql_pyodbc = [ pyodbc ]; + mysql = [ mysqlclient ]; + mysql_connector = [ mysql-connector ]; + mariadb_connector = [ mariadb ]; + oracle = [ cx-oracle ]; + oracle_oracledb = [ oracledb ]; + postgresql = [ psycopg2 ]; + postgresql_pg8000 = [ pg8000 ]; + postgresql_asyncpg = [ asyncpg ] ++ self.asyncio; + postgresql_psycopg2binary = [ psycopg2 ]; + postgresql_psycopg2cffi = [ psycopg2cffi ]; + postgresql_psycopg = [ psycopg ]; + postgresql_psycopgbinary = [ psycopg ]; + pymysql = [ pymysql ]; + aiomysql = [ aiomysql ] ++ self.asyncio; + asyncmy = [ asyncmy ] ++ self.asyncio; aiosqlite = [ aiosqlite typing-extensions @@ -152,7 +111,9 @@ buildPythonPackage rec { ]; meta = with lib; { - changelog = "https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_${builtins.replaceStrings [ "." ] [ "_" ] version}"; + changelog = "https://github.com/sqlalchemy/sqlalchemy/releases/tag/rel_${ + builtins.replaceStrings [ "." ] [ "_" ] version + }"; description = "The Python SQL toolkit and Object Relational Mapper"; homepage = "http://www.sqlalchemy.org/"; license = licenses.mit; diff --git a/pkgs/development/python-modules/sqlbag/default.nix b/pkgs/development/python-modules/sqlbag/default.nix index 8ff8305b4d4f..3915bf562e0f 100644 --- a/pkgs/development/python-modules/sqlbag/default.nix +++ b/pkgs/development/python-modules/sqlbag/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, psycopg2 -, pymysql -, sqlalchemy -, six -, flask -, pendulum -, packaging -, setuptools -, poetry-core -, pytestCheckHook -, pytest-xdist -, pytest-sugar -, postgresql -, postgresqlTestHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + psycopg2, + pymysql, + sqlalchemy, + six, + flask, + pendulum, + packaging, + setuptools, + poetry-core, + pytestCheckHook, + pytest-xdist, + pytest-sugar, + postgresql, + postgresqlTestHook, }: buildPythonPackage rec { pname = "sqlbag"; @@ -29,22 +30,19 @@ buildPythonPackage rec { hash = "sha256-lipgnkqrzjzqwbhtVcWDQypBNzq6Dct/qoM8y/FNiNs="; }; - nativeBuildInputs = [ - poetry-core + nativeBuildInputs = [ poetry-core ]; + + propagatedBuildInputs = [ + sqlalchemy + six + packaging + + psycopg2 + pymysql + + setuptools # needed for 'pkg_resources' ]; - propagatedBuildInputs = - [ - sqlalchemy - six - packaging - - psycopg2 - pymysql - - setuptools # needed for 'pkg_resources' - ]; - nativeCheckInputs = [ pytestCheckHook pytest-xdist @@ -78,9 +76,7 @@ buildPythonPackage rec { "tests" ]; - pythonImportsCheck = [ - "sqlbag" - ]; + pythonImportsCheck = [ "sqlbag" ]; meta = with lib; { description = "Handy python code for doing database things"; diff --git a/pkgs/development/python-modules/sqlglot/default.nix b/pkgs/development/python-modules/sqlglot/default.nix index c25a2c10bc59..c64ca9588c77 100644 --- a/pkgs/development/python-modules/sqlglot/default.nix +++ b/pkgs/development/python-modules/sqlglot/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, duckdb -, fetchFromGitHub -, pytestCheckHook -, python-dateutil -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + duckdb, + fetchFromGitHub, + pytestCheckHook, + python-dateutil, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { "tests/dataframe/integration" ]; - pythonImportsCheck = [ - "sqlglot" - ]; + pythonImportsCheck = [ "sqlglot" ]; meta = with lib; { description = "A no dependency Python SQL parser, transpiler, and optimizer"; diff --git a/pkgs/development/python-modules/sqlite-fts4/default.nix b/pkgs/development/python-modules/sqlite-fts4/default.nix index 27a6913020a0..1d7af05a78e3 100644 --- a/pkgs/development/python-modules/sqlite-fts4/default.nix +++ b/pkgs/development/python-modules/sqlite-fts4/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-Ibiows3DSnzjIUv7U9tYNVnDaecBBxjXzDqxbIlNhhU="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sqlite_fts4" - ]; + pythonImportsCheck = [ "sqlite_fts4" ]; meta = with lib; { description = "Custom Python functions for working with SQLite FTS4"; diff --git a/pkgs/development/python-modules/sqlite-migrate/default.nix b/pkgs/development/python-modules/sqlite-migrate/default.nix index b19d3e590f52..28f7726f0638 100644 --- a/pkgs/development/python-modules/sqlite-migrate/default.nix +++ b/pkgs/development/python-modules/sqlite-migrate/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools -, sqlite-utils +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, + sqlite-utils, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-wztAqe3TW0SQ4JX1XPWeA4KNJci5c3fNih97cmlPwRE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sqlite-utils - ]; + propagatedBuildInputs = [ sqlite-utils ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sqlite_migrate" - ]; + pythonImportsCheck = [ "sqlite_migrate" ]; meta = with lib; { description = "A simple database migration system for SQLite, based on sqlite-utils"; diff --git a/pkgs/development/python-modules/sqlite-utils/default.nix b/pkgs/development/python-modules/sqlite-utils/default.nix index cd93626f08eb..4719a7d71417 100644 --- a/pkgs/development/python-modules/sqlite-utils/default.nix +++ b/pkgs/development/python-modules/sqlite-utils/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, pythonOlder -, click -, click-default-group -, python-dateutil -, sqlite-fts4 -, tabulate -, pluggy -, pytestCheckHook -, hypothesis -, testers -, sqlite-utils +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + pythonOlder, + click, + click-default-group, + python-dateutil, + sqlite-fts4, + tabulate, + pluggy, + pytestCheckHook, + hypothesis, + testers, + sqlite-utils, }: buildPythonPackage rec { @@ -46,13 +47,9 @@ buildPythonPackage rec { hypothesis ]; - pythonImportsCheck = [ - "sqlite_utils" - ]; + pythonImportsCheck = [ "sqlite_utils" ]; - passthru.tests.version = testers.testVersion { - package = sqlite-utils; - }; + passthru.tests.version = testers.testVersion { package = sqlite-utils; }; meta = with lib; { description = "Python CLI utility and library for manipulating SQLite databases"; @@ -60,6 +57,9 @@ buildPythonPackage rec { homepage = "https://github.com/simonw/sqlite-utils"; changelog = "https://github.com/simonw/sqlite-utils/releases/tag/${version}"; license = licenses.asl20; - maintainers = with maintainers; [ meatcar techknowlogick ]; + maintainers = with maintainers; [ + meatcar + techknowlogick + ]; }; } diff --git a/pkgs/development/python-modules/sqlitedict/default.nix b/pkgs/development/python-modules/sqlitedict/default.nix index eb11a9805c2f..8dbe9d93b452 100644 --- a/pkgs/development/python-modules/sqlitedict/default.nix +++ b/pkgs/development/python-modules/sqlitedict/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, py -, pytest-benchmark -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + py, + pytest-benchmark, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ py @@ -36,13 +35,9 @@ buildPythonPackage rec { mkdir tests/db ''; - pythonImportsCheck = [ - "sqlitedict" - ]; + pythonImportsCheck = [ "sqlitedict" ]; - pytestFlagsArray = [ - "--benchmark-disable" - ]; + pytestFlagsArray = [ "--benchmark-disable" ]; meta = with lib; { description = "Persistent, thread-safe dict"; diff --git a/pkgs/development/python-modules/sqliteschema/default.nix b/pkgs/development/python-modules/sqliteschema/default.nix index cb73b6e5a606..f4c5c89e08e7 100644 --- a/pkgs/development/python-modules/sqliteschema/default.nix +++ b/pkgs/development/python-modules/sqliteschema/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mbstrdecoder -, setuptools -, simplesqlite -, sqliteschema -, tabledata -, typepy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mbstrdecoder, + setuptools, + simplesqlite, + sqliteschema, + tabledata, + typepy, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sqlobject/default.nix b/pkgs/development/python-modules/sqlobject/default.nix index e4ac317418ab..211bbafd0666 100644 --- a/pkgs/development/python-modules/sqlobject/default.nix +++ b/pkgs/development/python-modules/sqlobject/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, formencode -, pastedeploy -, paste -, pydispatcher -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + formencode, + pastedeploy, + paste, + pydispatcher, + pythonOlder, }: buildPythonPackage rec { @@ -29,18 +30,14 @@ buildPythonPackage rec { pydispatcher ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/sqlobject/sqlobject/issues/179 "test_fail" ]; - pythonImportsCheck = [ - "sqlobject" - ]; + pythonImportsCheck = [ "sqlobject" ]; meta = with lib; { description = "Object Relational Manager for providing an object interface to your database"; diff --git a/pkgs/development/python-modules/sqlparse/default.nix b/pkgs/development/python-modules/sqlparse/default.nix index 2e63191e033c..69c91cf65c0c 100644 --- a/pkgs/development/python-modules/sqlparse/default.nix +++ b/pkgs/development/python-modules/sqlparse/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, installShellFiles -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + installShellFiles, + pytestCheckHook, + pythonOlder, -# for passthru.tests -, django -, django_4 -, django-silk -, pgadmin4 + # for passthru.tests + django, + django_4, + django-silk, + pgadmin4, }: buildPythonPackage rec { @@ -36,7 +37,12 @@ buildPythonPackage rec { ''; passthru.tests = { - inherit django django_4 django-silk pgadmin4; + inherit + django + django_4 + django-silk + pgadmin4 + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/sqltrie/default.nix b/pkgs/development/python-modules/sqltrie/default.nix index 6c8ee069a8cf..c87c7442761f 100644 --- a/pkgs/development/python-modules/sqltrie/default.nix +++ b/pkgs/development/python-modules/sqltrie/default.nix @@ -1,12 +1,13 @@ -{ lib -, attrs -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pygtrie -, orjson -, python -, setuptools-scm +{ + lib, + attrs, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pygtrie, + orjson, + python, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-QR5IlMHrDNsauKW3VQG0ibMUwetATuwX4fszGPzKuxg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -36,9 +35,7 @@ buildPythonPackage rec { # nox is not available at the moment doCheck = false; - pythonImportsCheck = [ - "sqltrie" - ]; + pythonImportsCheck = [ "sqltrie" ]; meta = with lib; { description = "DVC's data management subsystem"; diff --git a/pkgs/development/python-modules/squarify/default.nix b/pkgs/development/python-modules/squarify/default.nix index 5bdc4c43f3fb..b37df470acaa 100644 --- a/pkgs/development/python-modules/squarify/default.nix +++ b/pkgs/development/python-modules/squarify/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pytestCheckHook -, matplotlib +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, + matplotlib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sre-yield/default.nix b/pkgs/development/python-modules/sre-yield/default.nix index 68d8c43ebb13..04cc12184090 100644 --- a/pkgs/development/python-modules/sre-yield/default.nix +++ b/pkgs/development/python-modules/sre-yield/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { @@ -16,14 +17,10 @@ buildPythonPackage rec { hash = "sha256-6U8aKjy6//4dzRXB1U5AGhUX4FKqZMfTFk+I3HYde4o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = true; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { description = "Python library to efficiently generate all values that can match a given regular expression"; @@ -33,4 +30,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/srp/default.nix b/pkgs/development/python-modules/srp/default.nix index 952713123134..6c907d58a2a5 100644 --- a/pkgs/development/python-modules/srp/default.nix +++ b/pkgs/development/python-modules/srp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pythonOlder, }: buildPythonPackage rec { @@ -17,22 +18,18 @@ buildPythonPackage rec { hash = "sha256-LbRTvc4mue6tNnp7V4MHTvgOhIK/MMAUCnuJg2oFRwc="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # Tests ends up with libssl.so cannot load shared doCheck = false; - pythonImportsCheck = [ - "srp" - ]; + pythonImportsCheck = [ "srp" ]; meta = with lib; { description = "Implementation of the Secure Remote Password protocol (SRP)"; longDescription = '' - This package provides an implementation of the Secure Remote Password protocol (SRP). - SRP is a cryptographically strong authentication protocol for password-based, mutual authentication over an insecure network connection. + This package provides an implementation of the Secure Remote Password protocol (SRP). + SRP is a cryptographically strong authentication protocol for password-based, mutual authentication over an insecure network connection. ''; homepage = "https://github.com/cocagne/pysrp"; license = licenses.mit; diff --git a/pkgs/development/python-modules/srpenergy/default.nix b/pkgs/development/python-modules/srpenergy/default.nix index 8d82ad614d0d..7eb66f05d544 100644 --- a/pkgs/development/python-modules/srpenergy/default.nix +++ b/pkgs/development/python-modules/srpenergy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, python-dateutil -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + python-dateutil, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,18 +28,14 @@ buildPythonPackage rec { --replace-fail "setuptools==" "setuptools>=" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ python-dateutil requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "srpenergy.client" ]; diff --git a/pkgs/development/python-modules/srptools/default.nix b/pkgs/development/python-modules/srptools/default.nix index 801980b9214d..5e443c6665b5 100644 --- a/pkgs/development/python-modules/srptools/default.nix +++ b/pkgs/development/python-modules/srptools/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + six, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-f6QzclahVC6PW7S+0Z4dmuqY/l/5uvdmkzQqHdasfJY="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "srptools" - ]; + pythonImportsCheck = [ "srptools" ]; meta = with lib; { description = "Module to implement Secure Remote Password (SRP) authentication"; diff --git a/pkgs/development/python-modules/srsly/default.nix b/pkgs/development/python-modules/srsly/default.nix index be1871c0dd14..5d40ccd3a06e 100644 --- a/pkgs/development/python-modules/srsly/default.nix +++ b/pkgs/development/python-modules/srsly/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, cython_0 -, catalogue -, mock -, numpy -, psutil -, pytest -, ruamel-yaml -, setuptools -, tornado +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + cython_0, + catalogue, + mock, + numpy, + psutil, + pytest, + ruamel-yaml, + setuptools, + tornado, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - catalogue - ]; + propagatedBuildInputs = [ catalogue ]; nativeCheckInputs = [ mock @@ -43,9 +42,7 @@ buildPythonPackage rec { tornado ]; - pythonImportsCheck = [ - "srsly" - ]; + pythonImportsCheck = [ "srsly" ]; meta = with lib; { changelog = "https://github.com/explosion/srsly/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/srt/default.nix b/pkgs/development/python-modules/srt/default.nix index 9bd76b15d2bd..ba2eff598fd4 100644 --- a/pkgs/development/python-modules/srt/default.nix +++ b/pkgs/development/python-modules/srt/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/srvlookup/default.nix b/pkgs/development/python-modules/srvlookup/default.nix index a81c1d25da23..c13860e68db9 100644 --- a/pkgs/development/python-modules/srvlookup/default.nix +++ b/pkgs/development/python-modules/srvlookup/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + dnspython, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-iXbi25HsoNX0hnhwZoFik5ddlJ7i+xml3HGaezj3jgY="; }; - propagatedBuildInputs = [ - dnspython - ]; + propagatedBuildInputs = [ dnspython ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "srvlookup" - ]; + pythonImportsCheck = [ "srvlookup" ]; meta = with lib; { description = "Wrapper for dnspython to return SRV records for a given host, protocol, and domain name"; diff --git a/pkgs/development/python-modules/ssdeep/default.nix b/pkgs/development/python-modules/ssdeep/default.nix index 44a7f37190dc..83c720de8e83 100644 --- a/pkgs/development/python-modules/ssdeep/default.nix +++ b/pkgs/development/python-modules/ssdeep/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, cffi -, fetchFromGitHub -, pytestCheckHook -, six -, ssdeep -, pythonOlder +{ + lib, + buildPythonPackage, + cffi, + fetchFromGitHub, + pytestCheckHook, + six, + ssdeep, + pythonOlder, }: buildPythonPackage rec { @@ -22,27 +23,21 @@ buildPythonPackage rec { hash = "sha256-I5ci5BS+B3OE0xdLSahu3HCh99jjhnRHJFz830SvFpg="; }; - buildInputs = [ - ssdeep - ]; + buildInputs = [ ssdeep ]; propagatedBuildInputs = [ cffi six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner"' "" ''; - pythonImportsCheck = [ - "ssdeep" - ]; + pythonImportsCheck = [ "ssdeep" ]; meta = with lib; { description = "Python wrapper for the ssdeep library"; diff --git a/pkgs/development/python-modules/ssdp/default.nix b/pkgs/development/python-modules/ssdp/default.nix index 87e4181c9b63..b354b35a01c1 100644 --- a/pkgs/development/python-modules/ssdp/default.nix +++ b/pkgs/development/python-modules/ssdp/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, flit-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + flit-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { flit-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ssdp" - ]; + pythonImportsCheck = [ "ssdp" ]; meta = with lib; { description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)"; diff --git a/pkgs/development/python-modules/ssdpy/default.nix b/pkgs/development/python-modules/ssdpy/default.nix index ba9d32d710b1..33c153f4d01b 100644 --- a/pkgs/development/python-modules/ssdpy/default.nix +++ b/pkgs/development/python-modules/ssdpy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pytest-mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sseclient-py/default.nix b/pkgs/development/python-modules/sseclient-py/default.nix index 5e9fcf4c61e9..b8ea4f4053f3 100644 --- a/pkgs/development/python-modules/sseclient-py/default.nix +++ b/pkgs/development/python-modules/sseclient-py/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-rNiJqR7/e+Rhi6kVBY8gZJZczqSUsyszotXkb4OKfWk="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sseclient" - ]; + pythonImportsCheck = [ "sseclient" ]; - pytestFlagsArray = [ - "tests/unittests.py" - ]; + pytestFlagsArray = [ "tests/unittests.py" ]; meta = with lib; { description = "Pure-Python Server Side Events (SSE) client"; diff --git a/pkgs/development/python-modules/sseclient/default.nix b/pkgs/development/python-modules/sseclient/default.nix index bc1be1222bbe..70927d104e5d 100644 --- a/pkgs/development/python-modules/sseclient/default.nix +++ b/pkgs/development/python-modules/sseclient/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, requests -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + requests, + six, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "event_stream" - ]; + disabledTests = [ "event_stream" ]; meta = with lib; { description = "Client library for reading Server Sent Event streams"; diff --git a/pkgs/development/python-modules/sshfs/default.nix b/pkgs/development/python-modules/sshfs/default.nix index a014d59b38c8..300cba868c0c 100644 --- a/pkgs/development/python-modules/sshfs/default.nix +++ b/pkgs/development/python-modules/sshfs/default.nix @@ -1,15 +1,16 @@ -{ stdenv -, lib -, asyncssh -, bcrypt -, buildPythonPackage -, fetchFromGitHub -, fsspec -, mock-ssh-server -, pytest-asyncio -, pytestCheckHook -, setuptools -, setuptools-scm +{ + stdenv, + lib, + asyncssh, + bcrypt, + buildPythonPackage, + fetchFromGitHub, + fsspec, + mock-ssh-server, + pytest-asyncio, + pytestCheckHook, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { "test_checksum" ]; - pythonImportsCheck = [ - "sshfs" - ]; + pythonImportsCheck = [ "sshfs" ]; meta = with lib; { description = "SSH/SFTP implementation for fsspec"; diff --git a/pkgs/development/python-modules/sshpubkeys/default.nix b/pkgs/development/python-modules/sshpubkeys/default.nix index a63b456292f3..0f2fc24474a1 100644 --- a/pkgs/development/python-modules/sshpubkeys/default.nix +++ b/pkgs/development/python-modules/sshpubkeys/default.nix @@ -1,6 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, cryptography -, ecdsa +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cryptography, + ecdsa, }: buildPythonPackage rec { @@ -15,7 +18,10 @@ buildPythonPackage rec { sha256 = "1qsixmqg97kyvg1naw76blq4314vaw4hl5f9wi0v111mcmdia1r4"; }; - propagatedBuildInputs = [ cryptography ecdsa ]; + propagatedBuildInputs = [ + cryptography + ecdsa + ]; meta = with lib; { description = "OpenSSH Public Key Parser for Python"; diff --git a/pkgs/development/python-modules/sshtunnel/default.nix b/pkgs/development/python-modules/sshtunnel/default.nix index dff398addf8a..e683eac23e35 100644 --- a/pkgs/development/python-modules/sshtunnel/default.nix +++ b/pkgs/development/python-modules/sshtunnel/default.nix @@ -1,7 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, paramiko -, pytestCheckHook -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + paramiko, + pytestCheckHook, + mock, }: buildPythonPackage rec { @@ -16,7 +19,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ paramiko ]; - nativeCheckInputs = [ pytestCheckHook mock ]; + nativeCheckInputs = [ + pytestCheckHook + mock + ]; # disable impure tests disabledTests = [ diff --git a/pkgs/development/python-modules/sslib/default.nix b/pkgs/development/python-modules/sslib/default.nix index 4f0492b84b37..e9d11ee01e8e 100644 --- a/pkgs/development/python-modules/sslib/default.nix +++ b/pkgs/development/python-modules/sslib/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchPypi, buildPythonPackage, isPy3k }: +{ + lib, + fetchPypi, + buildPythonPackage, + isPy3k, +}: buildPythonPackage rec { pname = "sslib"; diff --git a/pkgs/development/python-modules/stack-data/default.nix b/pkgs/development/python-modules/stack-data/default.nix index a3fe6964f755..5e27b9805af6 100644 --- a/pkgs/development/python-modules/stack-data/default.nix +++ b/pkgs/development/python-modules/stack-data/default.nix @@ -1,17 +1,18 @@ -{ asttokens -, buildPythonPackage -, cython -, executing -, fetchFromGitHub -, lib -, littleutils -, pure-eval -, pygments -, pytestCheckHook -, setuptools-scm -, typeguard -, setuptools -, wheel +{ + asttokens, + buildPythonPackage, + cython, + executing, + fetchFromGitHub, + lib, + littleutils, + pure-eval, + pygments, + pytestCheckHook, + setuptools-scm, + typeguard, + setuptools, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stanio/default.nix b/pkgs/development/python-modules/stanio/default.nix index ef4928e6e4f8..27d754a7d894 100644 --- a/pkgs/development/python-modules/stanio/default.nix +++ b/pkgs/development/python-modules/stanio/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, numpy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + numpy, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-3uQpMU2WXzkBga+o/3/4FERG7rWMwlR8zBCLpz5nROI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; pythonImportsCheck = [ "stanio" ]; diff --git a/pkgs/development/python-modules/stanza/default.nix b/pkgs/development/python-modules/stanza/default.nix index 0f7d7fddacb1..dbc64f227bda 100644 --- a/pkgs/development/python-modules/stanza/default.nix +++ b/pkgs/development/python-modules/stanza/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, emoji -, fetchFromGitHub -, networkx -, numpy -, peft -, protobuf -, pythonOlder -, requests -, six -, toml -, torch -, tqdm -, transformers +{ + lib, + buildPythonPackage, + emoji, + fetchFromGitHub, + networkx, + numpy, + peft, + protobuf, + pythonOlder, + requests, + six, + toml, + torch, + tqdm, + transformers, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "stanza" - ]; + pythonImportsCheck = [ "stanza" ]; meta = with lib; { description = "Official Stanford NLP Python Library for Many Human Languages"; diff --git a/pkgs/development/python-modules/starkbank-ecdsa/default.nix b/pkgs/development/python-modules/starkbank-ecdsa/default.nix index ec741b7e1ee4..f0158e4a0d42 100644 --- a/pkgs/development/python-modules/starkbank-ecdsa/default.nix +++ b/pkgs/development/python-modules/starkbank-ecdsa/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-HarlCDE2qOLbyhMLOE++bTC+7srJqwmohM6vrJkJ/gc="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' cd tests @@ -32,9 +31,7 @@ buildPythonPackage rec { "*.py" ]; - pythonImportsCheck = [ - "ellipticcurve" - ]; + pythonImportsCheck = [ "ellipticcurve" ]; meta = with lib; { description = "Python ECDSA library"; diff --git a/pkgs/development/python-modules/starlette-context/default.nix b/pkgs/development/python-modules/starlette-context/default.nix index 2657e9740a60..1fbe852147d7 100644 --- a/pkgs/development/python-modules/starlette-context/default.nix +++ b/pkgs/development/python-modules/starlette-context/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, starlette +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + starlette, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-ZKwE2M86clYKdptd0o/j8VYUOj/Y/72uUnpxFbJ65vw="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - starlette - ]; + dependencies = [ starlette ]; nativeCheckInputs = [ httpx @@ -37,9 +34,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "starlette_context" - ]; + pythonImportsCheck = [ "starlette_context" ]; meta = with lib; { description = "Middleware for Starlette that allows you to store and access the context data of a request"; diff --git a/pkgs/development/python-modules/starlette-wtf/default.nix b/pkgs/development/python-modules/starlette-wtf/default.nix index bacbbb0a1c59..8f735518d717 100644 --- a/pkgs/development/python-modules/starlette-wtf/default.nix +++ b/pkgs/development/python-modules/starlette-wtf/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, itsdangerous -, python-multipart -, starlette -, wtforms -, httpx -, jinja2 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + itsdangerous, + python-multipart, + starlette, + wtforms, + httpx, + jinja2, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-88zU2NAsdty2OhHauwQ5+6LazuRDYPoqN9IIipI1t2Q="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ itsdangerous python-multipart diff --git a/pkgs/development/python-modules/starlette/default.nix b/pkgs/development/python-modules/starlette/default.nix index 5bdc0c505a09..0fa7ded655d2 100644 --- a/pkgs/development/python-modules/starlette/default.nix +++ b/pkgs/development/python-modules/starlette/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, hatchling + # build-system + hatchling, -# dependencies -, anyio -, typing-extensions + # dependencies + anyio, + typing-extensions, -# optional dependencies -, itsdangerous -, jinja2 -, python-multipart -, pyyaml -, httpx + # optional dependencies + itsdangerous, + jinja2, + python-multipart, + pyyaml, + httpx, -# tests -, pytestCheckHook -, pythonOlder -, trio + # tests + pytestCheckHook, + pythonOlder, + trio, -# reverse dependencies -, fastapi + # reverse dependencies + fastapi, }: buildPythonPackage rec { @@ -39,15 +40,9 @@ buildPythonPackage rec { hash = "sha256-GiCN1sfhLu9i19d2OcLZrlY8E64DFrFh+ITRSvLaxdE="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - anyio - ] ++ lib.optionals (pythonOlder "3.10") [ - typing-extensions - ]; + propagatedBuildInputs = [ anyio ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ]; passthru.optional-dependencies.full = [ itsdangerous @@ -64,13 +59,13 @@ buildPythonPackage rec { ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pytestFlagsArray = [ - "-W" "ignore::DeprecationWarning" - "-W" "ignore::trio.TrioDeprecationWarning" + "-W" + "ignore::DeprecationWarning" + "-W" + "ignore::trio.TrioDeprecationWarning" ]; - pythonImportsCheck = [ - "starlette" - ]; + pythonImportsCheck = [ "starlette" ]; passthru.tests = { inherit fastapi; diff --git a/pkgs/development/python-modules/starline/default.nix b/pkgs/development/python-modules/starline/default.nix index 0496aad83261..4fbccc73f76a 100644 --- a/pkgs/development/python-modules/starline/default.nix +++ b/pkgs/development/python-modules/starline/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch -, setuptools -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch, + setuptools, + requests, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # no tests implemented doCheck = false; diff --git a/pkgs/development/python-modules/stashy/default.nix b/pkgs/development/python-modules/stashy/default.nix index 24a157360636..7ff9f137f1f6 100644 --- a/pkgs/development/python-modules/stashy/default.nix +++ b/pkgs/development/python-modules/stashy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, decorator -, fetchPypi -, requests - }: +{ + lib, + buildPythonPackage, + decorator, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "stashy"; @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "1x89zazwxnsx6rdfw8nfr372hj4sk8nrcs5hsjxpcxcva0calrcr"; }; - propagatedBuildInputs = [ decorator requests ]; + propagatedBuildInputs = [ + decorator + requests + ]; # Tests require internet connection doCheck = false; diff --git a/pkgs/development/python-modules/static3/default.nix b/pkgs/development/python-modules/static3/default.nix index cf0c6c8e30f4..0658238861e1 100644 --- a/pkgs/development/python-modules/static3/default.nix +++ b/pkgs/development/python-modules/static3/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# optionals -, genshi + # optionals + genshi, -# tests -, pytestCheckHook -, webtest + # tests + pytestCheckHook, + webtest, }: buildPythonPackage rec { @@ -31,16 +32,12 @@ buildPythonPackage rec { KidMagic = [ # TODO: kid ]; - Genshimagic = [ - genshi - ]; + Genshimagic = [ genshi ]; }; - pythonImportsCheck = [ - "static" - ]; + pythonImportsCheck = [ "static" ]; - nativeCheckInputs = [ + nativeCheckInputs = [ pytestCheckHook webtest ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); diff --git a/pkgs/development/python-modules/staticjinja/default.nix b/pkgs/development/python-modules/staticjinja/default.nix index a0e6659d0d25..128d5ad7e0e9 100644 --- a/pkgs/development/python-modules/staticjinja/default.nix +++ b/pkgs/development/python-modules/staticjinja/default.nix @@ -1,19 +1,20 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, poetry-core -, docopt-ng -, easywatch -, jinja2 -, pytestCheckHook -, pytest-check -, pythonOlder -, markdown -, testers -, tomlkit -, typing-extensions -, staticjinja -, callPackage +{ + lib, + fetchFromGitHub, + buildPythonPackage, + poetry-core, + docopt-ng, + easywatch, + jinja2, + pytestCheckHook, + pytest-check, + pythonOlder, + markdown, + testers, + tomlkit, + typing-extensions, + staticjinja, + callPackage, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { hash = "sha256-LfJTQhZtnTOm39EWF1m2MP5rxz/5reE0G1Uk9L7yx0w="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ jinja2 @@ -56,7 +55,7 @@ buildPythonPackage rec { passthru.tests = { version = testers.testVersion { package = staticjinja; }; - minimal-template = callPackage ./test-minimal-template {}; + minimal-template = callPackage ./test-minimal-template { }; }; meta = with lib; { diff --git a/pkgs/development/python-modules/staticmap/default.nix b/pkgs/development/python-modules/staticmap/default.nix index bb3eac8655bd..5a1194f577bd 100644 --- a/pkgs/development/python-modules/staticmap/default.nix +++ b/pkgs/development/python-modules/staticmap/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + requests, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-x6lrkCumEpLoGMILCBBhnWuBps21C8wauS1QrE2yCn8="; }; - propagatedBuildInputs = [ requests pillow ]; + propagatedBuildInputs = [ + requests + pillow + ]; pythonImportsCheck = [ "staticmap" ]; diff --git a/pkgs/development/python-modules/statistics/default.nix b/pkgs/development/python-modules/statistics/default.nix index 2e3c62671a1c..bdbf1895198f 100644 --- a/pkgs/development/python-modules/statistics/default.nix +++ b/pkgs/development/python-modules/statistics/default.nix @@ -1,7 +1,8 @@ -{ lib -, fetchPypi -, buildPythonPackage -, docutils +{ + lib, + fetchPypi, + buildPythonPackage, + docutils, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/statmake/default.nix b/pkgs/development/python-modules/statmake/default.nix index 0970b8f882dc..ee3d79302a2c 100644 --- a/pkgs/development/python-modules/statmake/default.nix +++ b/pkgs/development/python-modules/statmake/default.nix @@ -1,17 +1,18 @@ -{ lib -, attrs -, buildPythonPackage -, cattrs -, exceptiongroup -, fetchFromGitHub -, fonttools -, fs -, importlib-metadata -, poetry-core -, pytestCheckHook -, pythonOlder -, ufo2ft -, ufolib2 +{ + lib, + attrs, + buildPythonPackage, + cattrs, + exceptiongroup, + fetchFromGitHub, + fonttools, + fs, + importlib-metadata, + poetry-core, + pytestCheckHook, + pythonOlder, + ufo2ft, + ufolib2, }: buildPythonPackage rec { @@ -28,21 +29,18 @@ buildPythonPackage rec { hash = "sha256-3BZ71JVvj7GCojM8ycu160viPj8BLJ1SiW86Df2fzsw="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - attrs - cattrs - fonttools - # required by fonttools[ufo] - fs - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + propagatedBuildInputs = + [ + attrs + cattrs + fonttools + # required by fonttools[ufo] + fs + ] + ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ] + ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ pytestCheckHook @@ -50,9 +48,7 @@ buildPythonPackage rec { ufolib2 ]; - pythonImportsCheck = [ - "statmake" - ]; + pythonImportsCheck = [ "statmake" ]; disabledTests = [ # Test requires an update as later cattrs is present in Nixpkgs diff --git a/pkgs/development/python-modules/statsd/default.nix b/pkgs/development/python-modules/statsd/default.nix index 7ff02acd0bdc..146044070985 100644 --- a/pkgs/development/python-modules/statsd/default.nix +++ b/pkgs/development/python-modules/statsd/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pynose -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pynose, + mock, }: buildPythonPackage rec { @@ -16,11 +17,12 @@ buildPythonPackage rec { hash = "sha256-mXY9qBv+qNr2s9ItEarMsBqND1LqUh2qs351ikyn0Sg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ pynose mock ]; + nativeCheckInputs = [ + pynose + mock + ]; checkPhase = '' nosetests -sv @@ -32,5 +34,4 @@ buildPythonPackage rec { license = licenses.mit; homepage = "https://github.com/jsocol/pystatsd"; }; - } diff --git a/pkgs/development/python-modules/statsmodels/default.nix b/pkgs/development/python-modules/statsmodels/default.nix index 24dc020859d8..d7447e6c33b7 100644 --- a/pkgs/development/python-modules/statsmodels/default.nix +++ b/pkgs/development/python-modules/statsmodels/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi -, numpy -, packaging -, pandas -, patsy -, pythonOlder -, scipy -, setuptools -, setuptools-scm -, stdenv +{ + lib, + buildPythonPackage, + cython, + fetchPypi, + numpy, + packaging, + pandas, + patsy, + pythonOlder, + scipy, + setuptools, + setuptools-scm, + stdenv, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { # Huge test suites with several test failures doCheck = false; - pythonImportsCheck = [ - "statsmodels" - ]; + pythonImportsCheck = [ "statsmodels" ]; meta = with lib; { description = "Statistical computations and models for use with SciPy"; diff --git a/pkgs/development/python-modules/std2/default.nix b/pkgs/development/python-modules/std2/default.nix index 8e117b10e775..aa46ad29dd9f 100644 --- a/pkgs/development/python-modules/std2/default.nix +++ b/pkgs/development/python-modules/std2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/stdiomask/default.nix b/pkgs/development/python-modules/stdiomask/default.nix index 90d73baceecf..5a78a3a727e1 100644 --- a/pkgs/development/python-modules/stdiomask/default.nix +++ b/pkgs/development/python-modules/stdiomask/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stdlib-list/default.nix b/pkgs/development/python-modules/stdlib-list/default.nix index 89dbf4afb3e1..f045376a1c9f 100644 --- a/pkgs/development/python-modules/stdlib-list/default.nix +++ b/pkgs/development/python-modules/stdlib-list/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, flit-core + # build-system + flit-core, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-ZRnFDWRVE+0odle/6FbVJ/J3MxVAaR3er3eyVFmWShQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - pythonImportsCheck = [ - "stdlib_list" - ]; + pythonImportsCheck = [ "stdlib_list" ]; # tests see mismatches to our standard library doCheck = false; diff --git a/pkgs/development/python-modules/steamodd/default.nix b/pkgs/development/python-modules/steamodd/default.nix index edc489b297e8..dd1be22acb1a 100644 --- a/pkgs/development/python-modules/steamodd/default.nix +++ b/pkgs/development/python-modules/steamodd/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/steamship/default.nix b/pkgs/development/python-modules/steamship/default.nix index dc39e50aebcd..0a01663b83eb 100644 --- a/pkgs/development/python-modules/steamship/default.nix +++ b/pkgs/development/python-modules/steamship/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pythonRelaxDepsHook -, requests -, pydantic -, aiohttp -, inflection -, fluent-logger -, toml -, click -, semver -, tiktoken +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pythonRelaxDepsHook, + requests, + pydantic, + aiohttp, + inflection, + fluent-logger, + toml, + click, + semver, + tiktoken, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-U9SA2Dvepl9BjrvhH+8bVBNjby8IWu5UE+/oor7YWzI="; }; - pythonRelaxDeps = [ - "requests" - ]; + pythonRelaxDeps = [ "requests" ]; nativeBuildInputs = [ setuptools-scm @@ -48,9 +47,7 @@ buildPythonPackage rec { # almost all tests require "steamship api key" doCheck = false; - pythonImportsCheck = [ - "steamship" - ]; + pythonImportsCheck = [ "steamship" ]; meta = with lib; { description = "The fastest way to add language AI to your product"; diff --git a/pkgs/development/python-modules/stem/default.nix b/pkgs/development/python-modules/stem/default.nix index bebab6f59d6d..fd7cf8c9d6bf 100644 --- a/pkgs/development/python-modules/stem/default.nix +++ b/pkgs/development/python-modules/stem/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, setuptools -, cryptography -, mock -, python +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + setuptools, + cryptography, + mock, + python, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ cryptography diff --git a/pkgs/development/python-modules/stemming/default.nix b/pkgs/development/python-modules/stemming/default.nix index b0e9ce0c4453..005f34c59f03 100644 --- a/pkgs/development/python-modules/stemming/default.nix +++ b/pkgs/development/python-modules/stemming/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, }: let pname = "stemming"; diff --git a/pkgs/development/python-modules/stestr/default.nix b/pkgs/development/python-modules/stestr/default.nix index 723188d6c5ee..499084b67e49 100644 --- a/pkgs/development/python-modules/stestr/default.nix +++ b/pkgs/development/python-modules/stestr/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cliff -, fixtures -, future -, pbr -, setuptools -, subunit -, testtools -, tomlkit -, voluptuous -, callPackage +{ + lib, + buildPythonPackage, + fetchPypi, + cliff, + fixtures, + future, + pbr, + setuptools, + subunit, + testtools, + tomlkit, + voluptuous, + callPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stestr/tests.nix b/pkgs/development/python-modules/stestr/tests.nix index f4964fa8f66e..21d1fd2c7a1e 100644 --- a/pkgs/development/python-modules/stestr/tests.nix +++ b/pkgs/development/python-modules/stestr/tests.nix @@ -1,6 +1,4 @@ -{ buildPythonPackage -, stestr -}: +{ buildPythonPackage, stestr }: buildPythonPackage { pname = "stestr-tests"; @@ -19,9 +17,7 @@ buildPythonPackage { pythonOutputDistPhase() { touch $dist; } ''; - nativeCheckInputs = [ - stestr - ]; + nativeCheckInputs = [ stestr ]; checkPhase = '' export PATH=$out/bin:$PATH diff --git a/pkgs/development/python-modules/stevedore/default.nix b/pkgs/development/python-modules/stevedore/default.nix index 3e7d9dfab324..b1642c4df199 100644 --- a/pkgs/development/python-modules/stevedore/default.nix +++ b/pkgs/development/python-modules/stevedore/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, importlib-metadata -, pbr -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + importlib-metadata, + pbr, + setuptools, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { pbr setuptools six - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; doCheck = false; pythonImportsCheck = [ "stevedore" ]; diff --git a/pkgs/development/python-modules/stim/default.nix b/pkgs/development/python-modules/stim/default.nix index ca76e41880af..bbb7904ec5da 100644 --- a/pkgs/development/python-modules/stim/default.nix +++ b/pkgs/development/python-modules/stim/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, cirq-core -, fetchFromGitHub -, matplotlib -, networkx -, numpy -, pandas -, pybind11 -, pytest-xdist -, pytestCheckHook -, pythonOlder -, scipy -, setuptools -, wheel +{ + lib, + buildPythonPackage, + cirq-core, + fetchFromGitHub, + matplotlib, + networkx, + numpy, + pandas, + pybind11, + pytest-xdist, + pytestCheckHook, + pythonOlder, + scipy, + setuptools, + wheel, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ cirq-core @@ -55,9 +54,7 @@ buildPythonPackage rec { scipy ]; - pythonImportsCheck = [ - "stim" - ]; + pythonImportsCheck = [ "stim" ]; enableParallelBuilding = true; diff --git a/pkgs/development/python-modules/stm32loader/default.nix b/pkgs/development/python-modules/stm32loader/default.nix index fec3eb6b56e6..9434e25ecc31 100644 --- a/pkgs/development/python-modules/stm32loader/default.nix +++ b/pkgs/development/python-modules/stm32loader/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, flit-core + # build-system + flit-core, -# dependenices -, progress -, pyserial + # dependenices + progress, + pyserial, -# optional-dependencies -, intelhex + # optional-dependencies + intelhex, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-QTLSEjdJtDH4GCamnKHN5pEjW41rRtAMXxyZZMM5K3w="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ progress @@ -36,18 +35,14 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - hex = [ - intelhex - ]; + hex = [ intelhex ]; }; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; meta = with lib; { description = "Flash firmware to STM32 microcontrollers in Python"; diff --git a/pkgs/development/python-modules/stookalert/default.nix b/pkgs/development/python-modules/stookalert/default.nix index 82552ca44bb3..0948c8773157 100644 --- a/pkgs/development/python-modules/stookalert/default.nix +++ b/pkgs/development/python-modules/stookalert/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "38c479e2fb7668f9b37aff0f9ffdd7bfd1ee9393528f2d3d36b5911b40da70a1"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # upstream has no tests doCheck = false; diff --git a/pkgs/development/python-modules/stopit/default.nix b/pkgs/development/python-modules/stopit/default.nix index 06ed79491ed7..4569b1ba88e2 100644 --- a/pkgs/development/python-modules/stopit/default.nix +++ b/pkgs/development/python-modules/stopit/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: diff --git a/pkgs/development/python-modules/stransi/default.nix b/pkgs/development/python-modules/stransi/default.nix index 5b2802ea1afe..02c7d82275cb 100644 --- a/pkgs/development/python-modules/stransi/default.nix +++ b/pkgs/development/python-modules/stransi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, hypothesis -, pytestCheckHook -, ochre +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + hypothesis, + pytestCheckHook, + ochre, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-PDMel6emra5bzX+FwHvUVpFu2YkRKy31UwkCL4sGJ14="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ hypothesis pytestCheckHook ]; - propagatedBuildInputs = [ - ochre - ]; + propagatedBuildInputs = [ ochre ]; pythonImportsCheck = [ "stransi" ]; diff --git a/pkgs/development/python-modules/strategies/default.nix b/pkgs/development/python-modules/strategies/default.nix index f9f31e34d158..3af0ab14e23a 100644 --- a/pkgs/development/python-modules/strategies/default.nix +++ b/pkgs/development/python-modules/strategies/default.nix @@ -1,6 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi -, multipledispatch, toolz -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + multipledispatch, + toolz, + pytest, }: buildPythonPackage rec { @@ -13,13 +17,16 @@ buildPythonPackage rec { sha256 = "02i4ydrs9k61p8iv2vl2akks8p9gc88rw8031wlwb1zqsyjmb328"; }; - propagatedBuildInputs = [ multipledispatch toolz ]; + propagatedBuildInputs = [ + multipledispatch + toolz + ]; nativeCheckInputs = [ pytest ]; meta = { description = "A Python library for control flow programming"; - homepage = "https://github.com/logpy/strategies"; - license = lib.licenses.mit; + homepage = "https://github.com/logpy/strategies"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ suhr ]; }; } diff --git a/pkgs/development/python-modules/stravalib/default.nix b/pkgs/development/python-modules/stravalib/default.nix index 8f9898657b65..935f40d00004 100644 --- a/pkgs/development/python-modules/stravalib/default.nix +++ b/pkgs/development/python-modules/stravalib/default.nix @@ -1,15 +1,16 @@ -{ lib -, arrow -, buildPythonPackage -, fetchFromGitHub -, pint -, pydantic -, pythonOlder -, pytz -, requests -, responses -, setuptools -, setuptools-scm +{ + lib, + arrow, + buildPythonPackage, + fetchFromGitHub, + pint, + pydantic, + pythonOlder, + pytz, + requests, + responses, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { # Tests require network access, testing strava API doCheck = false; - pythonImportsCheck = [ - "stravalib" - ]; + pythonImportsCheck = [ "stravalib" ]; meta = with lib; { description = "Python library for interacting with Strava v3 REST API"; diff --git a/pkgs/development/python-modules/strawberry-graphql/default.nix b/pkgs/development/python-modules/strawberry-graphql/default.nix index 40ae06c91c8f..92658dce5086 100644 --- a/pkgs/development/python-modules/strawberry-graphql/default.nix +++ b/pkgs/development/python-modules/strawberry-graphql/default.nix @@ -1,43 +1,44 @@ -{ lib -, aiohttp -, asgiref -, buildPythonPackage -, chalice -, channels -, click -, daphne -, django -, email-validator -, fastapi -, fetchFromGitHub -, fetchpatch -, flask -, freezegun -, graphql-core -, libcst -, opentelemetry-api -, opentelemetry-sdk -, poetry-core -, pydantic -, pygments -, pyinstrument -, pytest-aiohttp -, pytest-asyncio -, pytest-django -, pytest-emoji -, pytest-flask -, pytest-mock -, pytest-snapshot -, pytestCheckHook -, python-dateutil -, python-multipart -, pythonOlder -, rich -, sanic -, sanic-testing -, starlette -, typing-extensions -, uvicorn +{ + lib, + aiohttp, + asgiref, + buildPythonPackage, + chalice, + channels, + click, + daphne, + django, + email-validator, + fastapi, + fetchFromGitHub, + fetchpatch, + flask, + freezegun, + graphql-core, + libcst, + opentelemetry-api, + opentelemetry-sdk, + poetry-core, + pydantic, + pygments, + pyinstrument, + pytest-aiohttp, + pytest-asyncio, + pytest-django, + pytest-emoji, + pytest-flask, + pytest-mock, + pytest-snapshot, + pytestCheckHook, + python-dateutil, + python-multipart, + pythonOlder, + rich, + sanic, + sanic-testing, + starlette, + typing-extensions, + uvicorn, }: buildPythonPackage rec { @@ -74,9 +75,7 @@ buildPythonPackage rec { --replace "--emoji --mypy-ini-file=mypy.ini" "" \ ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ graphql-core @@ -123,19 +122,13 @@ buildPythonPackage rec { opentelemetry-api opentelemetry-sdk ]; - pydantic = [ - pydantic - ]; - sanic = [ - sanic - ]; + pydantic = [ pydantic ]; + sanic = [ sanic ]; fastapi = [ fastapi python-multipart ]; - chalice = [ - chalice - ]; + chalice = [ chalice ]; cli = [ click pygments @@ -145,9 +138,7 @@ buildPythonPackage rec { # starlite = [ # starlite # ]; - pyinstrument = [ - pyinstrument - ]; + pyinstrument = [ pyinstrument ]; }; nativeCheckInputs = [ @@ -162,9 +153,7 @@ buildPythonPackage rec { sanic-testing ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "strawberry" - ]; + pythonImportsCheck = [ "strawberry" ]; disabledTestPaths = [ "tests/benchmarks/" diff --git a/pkgs/development/python-modules/strct/default.nix b/pkgs/development/python-modules/strct/default.nix index 5148958b9789..f0a7a6bdf2dc 100644 --- a/pkgs/development/python-modules/strct/default.nix +++ b/pkgs/development/python-modules/strct/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, setuptools -, pytestCheckHook -, sortedcontainers +{ + lib, + fetchFromGitHub, + buildPythonPackage, + setuptools, + pytestCheckHook, + sortedcontainers, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # don't append .dev0 to version env.RELEASING_PROCESS = "1"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/streamdeck/default.nix b/pkgs/development/python-modules/streamdeck/default.nix index 6202fcdf1f79..01587d491653 100644 --- a/pkgs/development/python-modules/streamdeck/default.nix +++ b/pkgs/development/python-modules/streamdeck/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, substituteAll -, pkgs +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + substituteAll, + pkgs, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/streaming-form-data/default.nix b/pkgs/development/python-modules/streaming-form-data/default.nix index 18df3a778da2..0d13b9db97cc 100644 --- a/pkgs/development/python-modules/streaming-form-data/default.nix +++ b/pkgs/development/python-modules/streaming-form-data/default.nix @@ -1,5 +1,12 @@ -{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, -cython, pytestCheckHook, requests-toolbelt }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonOlder, + cython, + pytestCheckHook, + requests-toolbelt, +}: buildPythonPackage rec { pname = "streaming-form-data"; @@ -17,13 +24,14 @@ buildPythonPackage rec { # streaming-form-data has a small bit of code that uses smart_open, which has a massive closure. # The only consumer of streaming-form-data is Moonraker, which doesn't use that code. # So, just drop the dependency to not have to deal with it. - patches = [ - ./drop-smart-open.patch - ]; + patches = [ ./drop-smart-open.patch ]; nativeBuildInputs = [ cython ]; - nativeCheckInputs = [ pytestCheckHook requests-toolbelt ]; + nativeCheckInputs = [ + pytestCheckHook + requests-toolbelt + ]; pytestFlagsArray = [ "tests" ]; diff --git a/pkgs/development/python-modules/streamlabswater/default.nix b/pkgs/development/python-modules/streamlabswater/default.nix index 68f6011edcf4..6ca91eaa33ca 100644 --- a/pkgs/development/python-modules/streamlabswater/default.nix +++ b/pkgs/development/python-modules/streamlabswater/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-kXG0Wg3PVryMBQ9RMMtEzudMiwVQq7Ikw2OK7JcBojA="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/streamlit/default.nix b/pkgs/development/python-modules/streamlit/default.nix index 4b36ad61faa0..5c477b62579c 100644 --- a/pkgs/development/python-modules/streamlit/default.nix +++ b/pkgs/development/python-modules/streamlit/default.nix @@ -1,34 +1,35 @@ -{ lib -, stdenv -, altair -, blinker -, buildPythonPackage -, cachetools -, click -, fetchPypi -, gitpython -, importlib-metadata -, numpy -, packaging -, pandas -, pillow -, protobuf -, pyarrow -, pydeck -, pympler -, python-dateutil -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, requests -, rich -, tenacity -, toml -, tornado -, typing-extensions -, tzlocal -, validators -, watchdog +{ + lib, + stdenv, + altair, + blinker, + buildPythonPackage, + cachetools, + click, + fetchPypi, + gitpython, + importlib-metadata, + numpy, + packaging, + pandas, + pillow, + protobuf, + pyarrow, + pydeck, + pympler, + python-dateutil, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + requests, + rich, + tenacity, + toml, + tornado, + typing-extensions, + tzlocal, + validators, + watchdog, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "packaging" - ]; + pythonRelaxDeps = [ "packaging" ]; propagatedBuildInputs = [ altair @@ -76,16 +75,12 @@ buildPythonPackage rec { typing-extensions tzlocal validators - ] ++ lib.optionals (!stdenv.isDarwin) [ - watchdog - ]; + ] ++ lib.optionals (!stdenv.isDarwin) [ watchdog ]; # pypi package does not include the tests, but cannot be built with fetchFromGitHub doCheck = false; - pythonImportsCheck = [ - "streamlit" - ]; + pythonImportsCheck = [ "streamlit" ]; postInstall = '' rm $out/bin/streamlit.cmd # remove windows helper @@ -96,7 +91,10 @@ buildPythonPackage rec { changelog = "https://github.com/streamlit/streamlit/releases/tag/${version}"; description = "The fastest way to build custom ML tools"; mainProgram = "streamlit"; - maintainers = with maintainers; [ natsukium yrashk ]; + maintainers = with maintainers; [ + natsukium + yrashk + ]; license = licenses.asl20; }; } diff --git a/pkgs/development/python-modules/streamz/default.nix b/pkgs/development/python-modules/streamz/default.nix index 87a54da43115..c993e187813d 100644 --- a/pkgs/development/python-modules/streamz/default.nix +++ b/pkgs/development/python-modules/streamz/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, confluent-kafka -, dask -, dask-expr -, distributed -, flaky -, graphviz -, networkx -, pytest-asyncio -, pytestCheckHook -, requests -, six -, toolz -, tornado -, zict +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + confluent-kafka, + dask, + dask-expr, + distributed, + flaky, + graphviz, + networkx, + pytest-asyncio, + pytestCheckHook, + requests, + six, + toolz, + tornado, + zict, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-VXfWkEwuxInBQVQJV3IQXgGVRkiBmYfUZCBMbjyWNPM="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ networkx @@ -56,9 +55,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "streamz" - ]; + pythonImportsCheck = [ "streamz" ]; disabledTests = [ # Error with distutils version: fixture 'cleanup' not found diff --git a/pkgs/development/python-modules/strenum/default.nix b/pkgs/development/python-modules/strenum/default.nix index b3ae130af270..68e6a93e76c2 100644 --- a/pkgs/development/python-modules/strenum/default.nix +++ b/pkgs/development/python-modules/strenum/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -37,17 +38,11 @@ buildPythonPackage rec { --replace " --cov=strenum --cov-report term-missing --black --pylint" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "strenum" - ]; + pythonImportsCheck = [ "strenum" ]; meta = with lib; { description = "Module for enum that inherits from str"; diff --git a/pkgs/development/python-modules/strict-rfc3339/default.nix b/pkgs/development/python-modules/strict-rfc3339/default.nix index 783aa49904d7..5f4cfe3b7c4b 100644 --- a/pkgs/development/python-modules/strict-rfc3339/default.nix +++ b/pkgs/development/python-modules/strict-rfc3339/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "strict-rfc3339"; diff --git a/pkgs/development/python-modules/strictyaml/default.nix b/pkgs/development/python-modules/strictyaml/default.nix index d9d57faf48f4..96c004b5abd5 100644 --- a/pkgs/development/python-modules/strictyaml/default.nix +++ b/pkgs/development/python-modules/strictyaml/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, ruamel-yaml -, python-dateutil +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + ruamel-yaml, + python-dateutil, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { # https://hitchdev.com/approach/contributing-to-hitch-libraries/ doCheck = false; - pythonImportsCheck = [ - "strictyaml" - ]; + pythonImportsCheck = [ "strictyaml" ]; meta = with lib; { description = "Strict, typed YAML parser"; diff --git a/pkgs/development/python-modules/stringbrewer/default.nix b/pkgs/development/python-modules/stringbrewer/default.nix index d93552816cd2..8b79efd7be55 100644 --- a/pkgs/development/python-modules/stringbrewer/default.nix +++ b/pkgs/development/python-modules/stringbrewer/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, rstr -, sre-yield -, pythonImportsCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + rstr, + sre-yield, + pythonImportsCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { rstr sre-yield ]; - nativeBuildInputs = [ - pythonImportsCheckHook - ]; + nativeBuildInputs = [ pythonImportsCheckHook ]; # Package has no tests doCheck = false; @@ -35,4 +34,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/stringcase/default.nix b/pkgs/development/python-modules/stringcase/default.nix index 3875afcc72ba..6fa57744e1f9 100644 --- a/pkgs/development/python-modules/stringcase/default.nix +++ b/pkgs/development/python-modules/stringcase/default.nix @@ -1,4 +1,7 @@ -{ buildPythonPackage, fetchPypi, lib +{ + buildPythonPackage, + fetchPypi, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stringly/default.nix b/pkgs/development/python-modules/stringly/default.nix index b0b8f0515b59..7d830ff2f839 100644 --- a/pkgs/development/python-modules/stringly/default.nix +++ b/pkgs/development/python-modules/stringly/default.nix @@ -1,4 +1,10 @@ -{ lib , python, buildPythonPackage , fetchPypi, typing-extensions }: +{ + lib, + python, + buildPythonPackage, + fetchPypi, + typing-extensions, +}: buildPythonPackage rec { pname = "stringly"; @@ -12,9 +18,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "stringly" ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; checkPhase = '' ${python.interpreter} -m unittest diff --git a/pkgs/development/python-modules/stringparser/default.nix b/pkgs/development/python-modules/stringparser/default.nix index 900f10208806..63f163d5f899 100644 --- a/pkgs/development/python-modules/stringparser/default.nix +++ b/pkgs/development/python-modules/stringparser/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + typing-extensions, }: buildPythonPackage rec { @@ -27,17 +28,11 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "stringparser" - ]; + pythonImportsCheck = [ "stringparser" ]; meta = with lib; { description = "Easy to use pattern matching and information extraction"; diff --git a/pkgs/development/python-modules/stripe/default.nix b/pkgs/development/python-modules/stripe/default.nix index 9017a5b7a6ff..dd709fd48f33 100644 --- a/pkgs/development/python-modules/stripe/default.nix +++ b/pkgs/development/python-modules/stripe/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests -, setuptools -, typing-extensions +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, + setuptools, + typing-extensions, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-kwXYSc6nFdxZxeOdAYkUdbguEO252V7h2BiUV+XeeS8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -31,9 +30,7 @@ buildPythonPackage rec { # Tests require network connectivity and there's no easy way to disable them doCheck = false; - pythonImportsCheck = [ - "stripe" - ]; + pythonImportsCheck = [ "stripe" ]; meta = with lib; { description = "Stripe Python bindings"; diff --git a/pkgs/development/python-modules/striprtf/default.nix b/pkgs/development/python-modules/striprtf/default.nix index d7024ef130de..2aef6241833a 100644 --- a/pkgs/development/python-modules/striprtf/default.nix +++ b/pkgs/development/python-modules/striprtf/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-/bK7p6xEAHLRxB6rUNjXSuiPYKi2V1xuLHgF3EYgk6o="; }; - pythonImportsCheck = [ - "striprtf" - ]; + pythonImportsCheck = [ "striprtf" ]; meta = with lib; { changelog = "https://github.com/joshy/striprtf/blob/v${version}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/structlog/default.nix b/pkgs/development/python-modules/structlog/default.nix index a6c826a00a5e..2cbf24c15db0 100644 --- a/pkgs/development/python-modules/structlog/default.nix +++ b/pkgs/development/python-modules/structlog/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, freezegun -, hatch-fancy-pypi-readme -, hatch-vcs -, hatchling -, pretend -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, simplejson -, twisted +{ + lib, + buildPythonPackage, + fetchFromGitHub, + freezegun, + hatch-fancy-pypi-readme, + hatch-vcs, + hatchling, + pretend, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + simplejson, + twisted, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { twisted ]; - pythonImportsCheck = [ - "structlog" - ]; + pythonImportsCheck = [ "structlog" ]; meta = with lib; { description = "Painless structural logging"; diff --git a/pkgs/development/python-modules/stubserver/default.nix b/pkgs/development/python-modules/stubserver/default.nix index 87b9cd988cce..af0ba80ce060 100644 --- a/pkgs/development/python-modules/stubserver/default.nix +++ b/pkgs/development/python-modules/stubserver/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # Tests are not shipped and the source not tagged doCheck = false; - pythonImportsCheck = [ - "stubserver" - ]; + pythonImportsCheck = [ "stubserver" ]; meta = with lib; { description = "Web and FTP server for use in unit and7or acceptance tests"; diff --git a/pkgs/development/python-modules/stumpy/default.nix b/pkgs/development/python-modules/stumpy/default.nix index 491af1105dae..6587e6193e11 100644 --- a/pkgs/development/python-modules/stumpy/default.nix +++ b/pkgs/development/python-modules/stumpy/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, scipy -, numba -, pandas -, dask -, distributed -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + scipy, + numba, + pandas, + dask, + distributed, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "stumpy" - ]; + pythonImportsCheck = [ "stumpy" ]; pytestFlagsArray = [ # whole testsuite is very CPU intensive, only run core tests diff --git a/pkgs/development/python-modules/stupidartnet/default.nix b/pkgs/development/python-modules/stupidartnet/default.nix index 6ed5783f13d2..8c97d3cb5e6e 100644 --- a/pkgs/development/python-modules/stupidartnet/default.nix +++ b/pkgs/development/python-modules/stupidartnet/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-6vEzInt1ofVVjTZAOH0Zw3BdwpX//1ZWwJqWPP5fIC8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "stupidArtnet" - ]; + pythonImportsCheck = [ "stupidArtnet" ]; meta = with lib; { description = "Library implementation of the Art-Net protocol"; diff --git a/pkgs/development/python-modules/stups-cli-support/default.nix b/pkgs/development/python-modules/stups-cli-support/default.nix index 33673f7a47af..58e8243ed022 100644 --- a/pkgs/development/python-modules/stups-cli-support/default.nix +++ b/pkgs/development/python-modules/stups-cli-support/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, clickclick -, dnspython -, requests -, pytest -, pytest-cov -, isPy3k +{ + lib, + fetchFromGitHub, + buildPythonPackage, + clickclick, + dnspython, + requests, + pytest, + pytest-cov, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stups-fullstop/default.nix b/pkgs/development/python-modules/stups-fullstop/default.nix index 2b668871f57f..4b6ea65bf921 100644 --- a/pkgs/development/python-modules/stups-fullstop/default.nix +++ b/pkgs/development/python-modules/stups-fullstop/default.nix @@ -1,12 +1,13 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, requests -, stups-cli-support -, stups-zign -, pytest -, pytest-cov -, isPy3k +{ + lib, + fetchFromGitHub, + buildPythonPackage, + requests, + stups-cli-support, + stups-zign, + pytest, + pytest-cov, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stups-pierone/default.nix b/pkgs/development/python-modules/stups-pierone/default.nix index b99ac4cf520b..af90fcb19348 100644 --- a/pkgs/development/python-modules/stups-pierone/default.nix +++ b/pkgs/development/python-modules/stups-pierone/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, requests -, stups-cli-support -, stups-zign -, pytest -, pytest-cov -, hypothesis -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + requests, + stups-cli-support, + stups-zign, + pytest, + pytest-cov, + hypothesis, + pythonOlder, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { hypothesis ]; - pythonImportsCheck = [ - "pierone" - ]; + pythonImportsCheck = [ "pierone" ]; meta = with lib; { description = "Convenient command line client for STUPS' Pier One Docker registry"; diff --git a/pkgs/development/python-modules/stups-tokens/default.nix b/pkgs/development/python-modules/stups-tokens/default.nix index dd9539463265..7668e55aa895 100644 --- a/pkgs/development/python-modules/stups-tokens/default.nix +++ b/pkgs/development/python-modules/stups-tokens/default.nix @@ -1,11 +1,12 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, requests -, mock -, pytest -, pytest-cov -, isPy3k +{ + lib, + fetchFromGitHub, + buildPythonPackage, + requests, + mock, + pytest, + pytest-cov, + isPy3k, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { sha256 = "09z3l3xzdlwpivbi141gk1k0zd9m75mjwbdy81zc386rr9k8s0im"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ mock diff --git a/pkgs/development/python-modules/stups-zign/default.nix b/pkgs/development/python-modules/stups-zign/default.nix index 3fd99c062167..08875ffb58d2 100644 --- a/pkgs/development/python-modules/stups-zign/default.nix +++ b/pkgs/development/python-modules/stups-zign/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, stups-tokens -, stups-cli-support -, pytest -, pytest-cov -, isPy3k +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + stups-tokens, + stups-cli-support, + pytest, + pytest-cov, + isPy3k, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/stytra/default.nix b/pkgs/development/python-modules/stytra/default.nix index 821aaa41437c..a05f5ee001a6 100644 --- a/pkgs/development/python-modules/stytra/default.nix +++ b/pkgs/development/python-modules/stytra/default.nix @@ -1,33 +1,34 @@ -{ lib -, anytree -, arrayqueues -, av -, buildPythonPackage -, colorspacious -, fetchPypi -, flammkuchen -, git -, gitpython -, imageio -, imageio-ffmpeg -, lightparam -, matplotlib -, nose -, numba -, numpy -, opencv4 -, pandas -, pims -, pyqt5 -, pyqtgraph -, pyserial -, pytestCheckHook -, pythonOlder -, qdarkstyle -, qimage2ndarray -, scikit-image -, scipy -, tables +{ + lib, + anytree, + arrayqueues, + av, + buildPythonPackage, + colorspacious, + fetchPypi, + flammkuchen, + git, + gitpython, + imageio, + imageio-ffmpeg, + lightparam, + matplotlib, + nose, + numba, + numpy, + opencv4, + pandas, + pims, + pyqt5, + pyqtgraph, + pyserial, + pytestCheckHook, + pythonOlder, + qdarkstyle, + qimage2ndarray, + scikit-image, + scipy, + tables, }: buildPythonPackage rec { @@ -88,6 +89,6 @@ buildPythonPackage rec { homepage = "https://github.com/portugueslab/stytra"; license = licenses.gpl3Plus; maintainers = with maintainers; [ tbenst ]; - broken = true; # incompatible with pyqtgraph>0.13.0: https://github.com/portugueslab/stytra/issues/87 + broken = true; # incompatible with pyqtgraph>0.13.0: https://github.com/portugueslab/stytra/issues/87 }; } diff --git a/pkgs/development/python-modules/subarulink/default.nix b/pkgs/development/python-modules/subarulink/default.nix index 1cff8ae459ff..f669da48ddd5 100644 --- a/pkgs/development/python-modules/subarulink/default.nix +++ b/pkgs/development/python-modules/subarulink/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, cryptography -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, stdiomask +{ + lib, + aiohttp, + buildPythonPackage, + cryptography, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + stdiomask, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "subarulink" - ]; + pythonImportsCheck = [ "subarulink" ]; meta = with lib; { description = "Python module for interacting with STARLINK-enabled vehicle"; diff --git a/pkgs/development/python-modules/subliminal/default.nix b/pkgs/development/python-modules/subliminal/default.nix index b72d8e0311cc..d34a49f46ff1 100644 --- a/pkgs/development/python-modules/subliminal/default.nix +++ b/pkgs/development/python-modules/subliminal/default.nix @@ -1,24 +1,25 @@ -{ lib -, appdirs -, babelfish -, beautifulsoup4 -, buildPythonPackage -, chardet -, click -, dogpile-cache -, enzyme -, fetchFromGitHub -, guessit -, pysrt -, pytestCheckHook -, pythonOlder -, pytz -, rarfile -, requests -, six -, stevedore -, sympy -, vcrpy +{ + lib, + appdirs, + babelfish, + beautifulsoup4, + buildPythonPackage, + chardet, + click, + dogpile-cache, + enzyme, + fetchFromGitHub, + guessit, + pysrt, + pytestCheckHook, + pythonOlder, + pytz, + rarfile, + requests, + six, + stevedore, + sympy, + vcrpy, }: buildPythonPackage rec { @@ -63,9 +64,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "subliminal" - ]; + pythonImportsCheck = [ "subliminal" ]; disabledTests = [ # Tests rewuire network access diff --git a/pkgs/development/python-modules/subprocess-tee/default.nix b/pkgs/development/python-modules/subprocess-tee/default.nix index 462a0cd60b0b..6d3c91c42f22 100644 --- a/pkgs/development/python-modules/subprocess-tee/default.nix +++ b/pkgs/development/python-modules/subprocess-tee/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytestCheckHook -, enrich +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytestCheckHook, + enrich, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-s8EkmT+LiNHrHC/eC8IGl4fqxyC6iHccuhfoyTMkgl0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ pytestCheckHook @@ -32,9 +31,7 @@ buildPythonPackage rec { "test_rich_console_ex" ]; - pythonImportsCheck = [ - "subprocess_tee" - ]; + pythonImportsCheck = [ "subprocess_tee" ]; meta = with lib; { homepage = "https://github.com/pycontribs/subprocess-tee"; diff --git a/pkgs/development/python-modules/subunit/default.nix b/pkgs/development/python-modules/subunit/default.nix index 299d7a2ecd29..b101ec505aeb 100644 --- a/pkgs/development/python-modules/subunit/default.nix +++ b/pkgs/development/python-modules/subunit/default.nix @@ -1,19 +1,20 @@ -{ buildPythonPackage -# pkgs dependencies -, check -, cppunit -, pkg-config -, subunit -, pythonOlder +{ + buildPythonPackage, + # pkgs dependencies + check, + cppunit, + pkg-config, + subunit, + pythonOlder, -# python dependencies -, extras -, fixtures -, hypothesis -, pytestCheckHook -, setuptools -, testscenarios -, testtools + # python dependencies + extras, + fixtures, + hypothesis, + pytestCheckHook, + setuptools, + testscenarios, + testtools, }: buildPythonPackage { @@ -32,7 +33,10 @@ buildPythonPackage { setuptools ]; - buildInputs = [ check cppunit ]; + buildInputs = [ + check + cppunit + ]; propagatedBuildInputs = [ extras @@ -46,9 +50,7 @@ buildPythonPackage { pytestCheckHook ]; - pytestFlagsArray = [ - "python/subunit" - ]; + pytestFlagsArray = [ "python/subunit" ]; disabledTestPaths = [ # these tests require testtools and don't work with pytest diff --git a/pkgs/development/python-modules/subunit2sql/default.nix b/pkgs/development/python-modules/subunit2sql/default.nix index 7955ed3d8d89..402ee1a7bc3e 100644 --- a/pkgs/development/python-modules/subunit2sql/default.nix +++ b/pkgs/development/python-modules/subunit2sql/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, oslo-concurrency -, oslo-db -, pbr -, python-dateutil -, stestr -, testresources -, testscenarios +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + oslo-concurrency, + oslo-db, + pbr, + python-dateutil, + stestr, + testresources, + testscenarios, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/subzerod/default.nix b/pkgs/development/python-modules/subzerod/default.nix index 3739e595e00c..49d59c66833d 100644 --- a/pkgs/development/python-modules/subzerod/default.nix +++ b/pkgs/development/python-modules/subzerod/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-/7g8Upj9Hb4m83JXLI3X2lqa9faCt42LVxh+V9WpI68="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "subzerod" - ]; + pythonImportsCheck = [ "subzerod" ]; meta = with lib; { description = "Python module to help with the enumeration of subdomains"; diff --git a/pkgs/development/python-modules/succulent/default.nix b/pkgs/development/python-modules/succulent/default.nix index f3d90ec52abf..f46ae33d4c87 100644 --- a/pkgs/development/python-modules/succulent/default.nix +++ b/pkgs/development/python-modules/succulent/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flask -, lxml -, pandas -, pyyaml -, poetry-core -, pytestCheckHook -, pythonRelaxDepsHook -, pythonOlder -, toml-adapt -, xmltodict +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flask, + lxml, + pandas, + pyyaml, + poetry-core, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, + toml-adapt, + xmltodict, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-+S4ekvaQvbBxjUQkG+Bd9lYdZwHB3oq7Ay9kWquCcyE="; }; - pythonRelaxDeps = [ - "flask" - ]; + pythonRelaxDeps = [ "flask" ]; nativeBuildInputs = [ poetry-core @@ -44,13 +43,9 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "succulent" - ]; + pythonImportsCheck = [ "succulent" ]; meta = with lib; { description = "Collect POST requests"; diff --git a/pkgs/development/python-modules/sudachidict/default.nix b/pkgs/development/python-modules/sudachidict/default.nix index 65f5d4630d06..1035f42bff84 100644 --- a/pkgs/development/python-modules/sudachidict/default.nix +++ b/pkgs/development/python-modules/sudachidict/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchFromGitHub -, sudachidict -, setuptools -, sudachipy +{ + buildPythonPackage, + fetchFromGitHub, + sudachidict, + setuptools, + sudachipy, }: buildPythonPackage rec { @@ -30,13 +31,9 @@ buildPythonPackage rec { --replace "%%DICT_TYPE%%" ${sudachidict.dict-type} ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - sudachipy - ]; + propagatedBuildInputs = [ sudachipy ]; # we need to prepare some files before the build # https://github.com/WorksApplications/SudachiDict/blob/develop/package_python.sh diff --git a/pkgs/development/python-modules/sudachipy/default.nix b/pkgs/development/python-modules/sudachipy/default.nix index 3e3bd5b4adf6..d722b368756e 100644 --- a/pkgs/development/python-modules/sudachipy/default.nix +++ b/pkgs/development/python-modules/sudachipy/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, cargo -, libiconv -, rustPlatform -, rustc -, sudachi-rs -, setuptools-rust -, pytestCheckHook -, sudachidict-core -, tokenizers -, sudachipy +{ + lib, + stdenv, + buildPythonPackage, + cargo, + libiconv, + rustPlatform, + rustc, + sudachi-rs, + setuptools-rust, + pytestCheckHook, + sudachidict-core, + tokenizers, + sudachipy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { setuptools-rust ]; - buildInputs = lib.optionals stdenv.isDarwin [ - libiconv - ]; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; preBuild = '' cd python @@ -47,21 +46,17 @@ buildPythonPackage rec { tokenizers ]; - pythonImportsCheck = [ - "sudachipy" - ]; + pythonImportsCheck = [ "sudachipy" ]; passthru = { inherit (sudachi-rs) updateScript; tests = { - pytest = sudachipy.overridePythonAttrs ( - _: { - doCheck = true; - # avoid catchConflicts of sudachipy - # we don't need to install this package since it is just a test - dontInstall = true; - } - ); + pytest = sudachipy.overridePythonAttrs (_: { + doCheck = true; + # avoid catchConflicts of sudachipy + # we don't need to install this package since it is just a test + dontInstall = true; + }); }; }; diff --git a/pkgs/development/python-modules/sumo/default.nix b/pkgs/development/python-modules/sumo/default.nix index 1f60553de0bc..719bb0a88277 100644 --- a/pkgs/development/python-modules/sumo/default.nix +++ b/pkgs/development/python-modules/sumo/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, cython -, h5py -, matplotlib -, numpy -, phonopy -, pymatgen -, scipy -, seekpath -, spglib -, castepxbin -, pytestCheckHook -, colormath +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + cython, + h5py, + matplotlib, + numpy, + phonopy, + pymatgen, + scipy, + seekpath, + spglib, + castepxbin, + pytestCheckHook, + colormath, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-nQ5US7maFcOJCqFYeokGiBFp3jhiOPSfCBeclLdHdkk="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; propagatedBuildInputs = [ castepxbin @@ -47,13 +46,9 @@ buildPythonPackage rec { spglib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "sumo" - ]; + pythonImportsCheck = [ "sumo" ]; meta = with lib; { description = "Toolkit for plotting and analysis of ab initio solid-state calculation data"; diff --git a/pkgs/development/python-modules/sumtypes/default.nix b/pkgs/development/python-modules/sumtypes/default.nix index 1b6f1c38e604..91ae86b01206 100644 --- a/pkgs/development/python-modules/sumtypes/default.nix +++ b/pkgs/development/python-modules/sumtypes/default.nix @@ -1,9 +1,10 @@ -{ lib -, attrs -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + attrs, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-qwQyFKVnGEqHUqFmUSnHVvedsp2peM6rJZcS90paLOo="; }; - propagatedBuildInputs = [ - attrs - ]; + propagatedBuildInputs = [ attrs ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Algebraic data types for Python"; diff --git a/pkgs/development/python-modules/sunpy/default.nix b/pkgs/development/python-modules/sunpy/default.nix index 88a803fa46fb..622100c10fdc 100644 --- a/pkgs/development/python-modules/sunpy/default.nix +++ b/pkgs/development/python-modules/sunpy/default.nix @@ -1,32 +1,33 @@ -{ lib -, stdenv -, asdf -, astropy -, astropy-extension-helpers -, astropy-helpers -, beautifulsoup4 -, buildPythonPackage -, drms -, fetchPypi -, glymur -, h5netcdf -, hypothesis -, lxml -, matplotlib -, numpy -, pandas -, parfive -, pytest-astropy -, pytestCheckHook -, pytest-mock -, python-dateutil -, pythonOlder -, scikit-image -, scipy -, setuptools-scm -, sqlalchemy -, tqdm -, zeep +{ + lib, + stdenv, + asdf, + astropy, + astropy-extension-helpers, + astropy-helpers, + beautifulsoup4, + buildPythonPackage, + drms, + fetchPypi, + glymur, + h5netcdf, + hypothesis, + lxml, + matplotlib, + numpy, + pandas, + parfive, + pytest-astropy, + pytestCheckHook, + pytest-mock, + python-dateutil, + pythonOlder, + scikit-image, + scipy, + setuptools-scm, + sqlalchemy, + tqdm, + zeep, }: buildPythonPackage rec { @@ -58,9 +59,7 @@ buildPythonPackage rec { asdf # asdf-astropy ]; - database = [ - sqlalchemy - ]; + database = [ sqlalchemy ]; image = [ scikit-image scipy @@ -85,12 +84,14 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - hypothesis - pytest-astropy - pytest-mock - pytestCheckHook - ] ++ passthru.optional-dependencies.asdf + nativeCheckInputs = + [ + hypothesis + pytest-astropy + pytest-mock + pytestCheckHook + ] + ++ passthru.optional-dependencies.asdf ++ passthru.optional-dependencies.database ++ passthru.optional-dependencies.image ++ passthru.optional-dependencies.net diff --git a/pkgs/development/python-modules/sunwatcher/default.nix b/pkgs/development/python-modules/sunwatcher/default.nix index ee3a2e200b17..0fcac2bfb205 100644 --- a/pkgs/development/python-modules/sunwatcher/default.nix +++ b/pkgs/development/python-modules/sunwatcher/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { sha256 = "0swmvmmbfb914k473yv3fc4zizy2abq2qhd7h6lixli11l5wfjxv"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/sunweg/default.nix b/pkgs/development/python-modules/sunweg/default.nix index c662a01868ed..f0c7b9e00487 100644 --- a/pkgs/development/python-modules/sunweg/default.nix +++ b/pkgs/development/python-modules/sunweg/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -21,20 +22,14 @@ buildPythonPackage rec { hash = "sha256-fgNtxCBIuNulCfuDaEsM7kL1WpwNE9O+JQ1DMZrz5jA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "sunweg" - ]; + pythonImportsCheck = [ "sunweg" ]; meta = with lib; { description = "Module to access the WEG solar energy platform"; diff --git a/pkgs/development/python-modules/supervise-api/default.nix b/pkgs/development/python-modules/supervise-api/default.nix index 3bd223127a7d..6cc5c46a8483 100644 --- a/pkgs/development/python-modules/supervise-api/default.nix +++ b/pkgs/development/python-modules/supervise-api/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, substituteAll -, supervise -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + substituteAll, + supervise, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,17 +24,11 @@ buildPythonPackage rec { --replace 'which("supervise")' '"${supervise}/bin/supervise"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "supervise_api" - ]; + pythonImportsCheck = [ "supervise_api" ]; meta = { description = "An API for running processes safely and securely"; diff --git a/pkgs/development/python-modules/supervisor/default.nix b/pkgs/development/python-modules/supervisor/default.nix index b99b5cfd05b3..38a6fcd7f660 100644 --- a/pkgs/development/python-modules/supervisor/default.nix +++ b/pkgs/development/python-modules/supervisor/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, mock -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + mock, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-NHYbrhojxYGSKBpRFfsH+/IsmwEzwIFmvv/HD+0+vBI="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; # wants to write to /tmp/foo which is likely already owned by another # nixbld user on hydra @@ -33,9 +32,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "supervisor" - ]; + pythonImportsCheck = [ "supervisor" ]; meta = with lib; { description = "A system for controlling process state under UNIX"; diff --git a/pkgs/development/python-modules/sure/default.nix b/pkgs/development/python-modules/sure/default.nix index 9d16cd48af4c..493f761c8511 100644 --- a/pkgs/development/python-modules/sure/default.nix +++ b/pkgs/development/python-modules/sure/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, mock -, six -, isPyPy -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + mock, + six, + isPyPy, + pythonOlder, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { doCheck = pythonOlder "3.12"; # nose requires imp module - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; - pythonImportsCheck = [ - "sure" - ]; + pythonImportsCheck = [ "sure" ]; meta = with lib; { description = "Utility belt for automated testing"; diff --git a/pkgs/development/python-modules/surepy/default.nix b/pkgs/development/python-modules/surepy/default.nix index d590681fd7fc..14ffe80ccae8 100644 --- a/pkgs/development/python-modules/surepy/default.nix +++ b/pkgs/development/python-modules/surepy/default.nix @@ -1,19 +1,20 @@ -{ lib -, aiodns -, aiohttp -, async-timeout -, attrs -, brotlipy -, buildPythonPackage -, faust-cchardet -, click -, colorama -, fetchFromGitHub -, halo -, poetry-core -, pythonOlder -, requests -, rich +{ + lib, + aiodns, + aiohttp, + async-timeout, + attrs, + brotlipy, + buildPythonPackage, + faust-cchardet, + click, + colorama, + fetchFromGitHub, + halo, + poetry-core, + pythonOlder, + requests, + rich, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace 'rich = "^10.1.0"' 'rich = ">=10.1.0"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiodns @@ -58,9 +57,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "surepy" - ]; + pythonImportsCheck = [ "surepy" ]; meta = with lib; { description = "Python library to interact with the Sure Petcare API"; diff --git a/pkgs/development/python-modules/surt/default.nix b/pkgs/development/python-modules/surt/default.nix index d11e8e2fe53f..74e5723eb906 100644 --- a/pkgs/development/python-modules/surt/default.nix +++ b/pkgs/development/python-modules/surt/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, six -, tldextract +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + six, + tldextract, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { tldextract ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "surt" - ]; + pythonImportsCheck = [ "surt" ]; disabledTests = [ # Tests want to download Public Suffix List diff --git a/pkgs/development/python-modules/survey/default.nix b/pkgs/development/python-modules/survey/default.nix index 2b6c5ac53dbc..e7b302949b0b 100644 --- a/pkgs/development/python-modules/survey/default.nix +++ b/pkgs/development/python-modules/survey/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/sv-ttk/default.nix b/pkgs/development/python-modules/sv-ttk/default.nix index 834178a5c236..72a99226a5d3 100644 --- a/pkgs/development/python-modules/sv-ttk/default.nix +++ b/pkgs/development/python-modules/sv-ttk/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, tkinter +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + tkinter, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { # No tests available doCheck = false; - propagatedBuildInputs = [ - tkinter - ]; + propagatedBuildInputs = [ tkinter ]; - pythonImportsCheck = [ - "sv_ttk" - ]; + pythonImportsCheck = [ "sv_ttk" ]; meta = with lib; { description = "A gorgeous theme for Tkinter/ttk, based on the Sun Valley visual style"; diff --git a/pkgs/development/python-modules/svg-path/default.nix b/pkgs/development/python-modules/svg-path/default.nix index 2ec9f5b78025..a3eb4b8f09fd 100644 --- a/pkgs/development/python-modules/svg-path/default.nix +++ b/pkgs/development/python-modules/svg-path/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { "test_image" ]; - pythonImportsCheck = [ - "svg.path" - ]; + pythonImportsCheck = [ "svg.path" ]; meta = with lib; { description = "SVG path objects and parser"; diff --git a/pkgs/development/python-modules/svg-py/default.nix b/pkgs/development/python-modules/svg-py/default.nix index 236e5fd3105d..b59d23c539a0 100644 --- a/pkgs/development/python-modules/svg-py/default.nix +++ b/pkgs/development/python-modules/svg-py/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-rnxznJM3ihuEJrD3ba6uMdGMozIrLw/QyGzA3JPygH4="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook pyyaml ]; - pythonImportsCheck = [ - "svg" - ]; + pythonImportsCheck = [ "svg" ]; disabledTestPaths = [ # Tests need additional files diff --git a/pkgs/development/python-modules/svg2tikz/default.nix b/pkgs/development/python-modules/svg2tikz/default.nix index 7e24071c9c7c..de3e1c96770a 100644 --- a/pkgs/development/python-modules/svg2tikz/default.nix +++ b/pkgs/development/python-modules/svg2tikz/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, inkex -, lxml -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + inkex, + lxml, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,18 +24,14 @@ buildPythonPackage rec { hash = "sha256-hvGvJFxhu7llj+tFfZvz12dZ8QYjY7zcLzB5S44l+IM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ inkex lxml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "svg2tikz" ]; @@ -43,6 +40,9 @@ buildPythonPackage rec { homepage = "https://github.com/xyz2tex/svg2tikz"; description = "Set of tools for converting SVG graphics to TikZ/PGF code"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ dotlambda gal_bolle ]; + maintainers = with maintainers; [ + dotlambda + gal_bolle + ]; }; } diff --git a/pkgs/development/python-modules/svgelements/default.nix b/pkgs/development/python-modules/svgelements/default.nix index 22a7e2c5b1ad..239b7db7f67a 100644 --- a/pkgs/development/python-modules/svgelements/default.nix +++ b/pkgs/development/python-modules/svgelements/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, anyio -, numpy -, pillow -, pytest-forked -, pytest-xdist -, pytestCheckHook -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + anyio, + numpy, + pillow, + pytest-forked, + pytest-xdist, + pytestCheckHook, + scipy, }: buildPythonPackage rec { @@ -31,7 +32,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "svgelements" ]; - nativeCheckInputs = [ + nativeCheckInputs = [ anyio numpy pillow diff --git a/pkgs/development/python-modules/svglib/default.nix b/pkgs/development/python-modules/svglib/default.nix index 61ac8a625656..1fd3ba62686b 100644 --- a/pkgs/development/python-modules/svglib/default.nix +++ b/pkgs/development/python-modules/svglib/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, cssselect2 -, lxml -, pillow -, pytestCheckHook -, reportlab -, tinycss2 +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + cssselect2, + lxml, + pillow, + pytestCheckHook, + reportlab, + tinycss2, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { tinycss2 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Ignore tests that require network access (TestWikipediaFlags and TestW3CSVG), and tests that @@ -42,9 +41,7 @@ buildPythonPackage rec { "TestOtherFiles" ]; - pythonImportsCheck = [ - "svglib.svglib" - ]; + pythonImportsCheck = [ "svglib.svglib" ]; meta = with lib; { description = "A pure-Python library for reading and converting SVG"; diff --git a/pkgs/development/python-modules/svgutils/default.nix b/pkgs/development/python-modules/svgutils/default.nix index ea2c7c547e43..3d56da85a02f 100644 --- a/pkgs/development/python-modules/svgutils/default.nix +++ b/pkgs/development/python-modules/svgutils/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, lxml -, matplotlib -, pytestCheckHook -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + lxml, + matplotlib, + pytestCheckHook, + nose, }: buildPythonPackage rec { @@ -27,7 +28,10 @@ buildPythonPackage rec { matplotlib ]; - nativeCheckInputs = [ pytestCheckHook nose ]; + nativeCheckInputs = [ + pytestCheckHook + nose + ]; pythonImportsCheck = [ "svgutils" ]; diff --git a/pkgs/development/python-modules/svgwrite/default.nix b/pkgs/development/python-modules/svgwrite/default.nix index 7ac6fd9f13cf..c3aa97ce3f91 100644 --- a/pkgs/development/python-modules/svgwrite/default.nix +++ b/pkgs/development/python-modules/svgwrite/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -32,5 +33,4 @@ buildPythonPackage rec { homepage = "https://github.com/mozman/svgwrite"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/swagger-spec-validator/default.nix b/pkgs/development/python-modules/swagger-spec-validator/default.nix index 7b9ed410106b..c6f41fd03b1c 100644 --- a/pkgs/development/python-modules/swagger-spec-validator/default.nix +++ b/pkgs/development/python-modules/swagger-spec-validator/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pyyaml, jsonschema, six, pytestCheckHook, mock }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyyaml, + jsonschema, + six, + pytestCheckHook, + mock, +}: buildPythonPackage rec { pname = "swagger-spec-validator"; diff --git a/pkgs/development/python-modules/swagger-ui-bundle/default.nix b/pkgs/development/python-modules/swagger-ui-bundle/default.nix index 13ebaed72c6d..d58bf4d9a4f0 100644 --- a/pkgs/development/python-modules/swagger-ui-bundle/default.nix +++ b/pkgs/development/python-modules/swagger-ui-bundle/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, poetry-core + # build-system + poetry-core, -# dependencies -, importlib-resources -, jinja2 + # dependencies + importlib-resources, + jinja2, - }: +}: buildPythonPackage rec { pname = "swagger-ui-bundle"; @@ -23,15 +24,9 @@ buildPythonPackage rec { hash = "sha256-IGc8NDHIcz1dFhXs952azzDP91ICrK8hp9nH9IlxRSk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - jinja2 - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ]; + propagatedBuildInputs = [ jinja2 ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; # package contains no tests doCheck = false; diff --git a/pkgs/development/python-modules/swift/default.nix b/pkgs/development/python-modules/swift/default.nix index ec4f1b7a3963..ddcecdb3e6b3 100644 --- a/pkgs/development/python-modules/swift/default.nix +++ b/pkgs/development/python-modules/swift/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchPypi -, boto3 -, cryptography -, eventlet -, greenlet -, iana-etc -, installShellFiles -, libredirect -, lxml -, mock -, netifaces -, pastedeploy -, pbr -, pyeclib -, requests -, setuptools -, six -, stestr -, swiftclient -, xattr +{ + lib, + buildPythonPackage, + fetchPypi, + boto3, + cryptography, + eventlet, + greenlet, + iana-etc, + installShellFiles, + libredirect, + lxml, + mock, + netifaces, + pastedeploy, + pbr, + pyeclib, + requests, + setuptools, + six, + stestr, + swiftclient, + xattr, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/swisshydrodata/default.nix b/pkgs/development/python-modules/swisshydrodata/default.nix index 1ab94a63df38..24048a199746 100644 --- a/pkgs/development/python-modules/swisshydrodata/default.nix +++ b/pkgs/development/python-modules/swisshydrodata/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, requests -, requests-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + requests, + requests-mock, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/switchbot-api/default.nix b/pkgs/development/python-modules/switchbot-api/default.nix index 4f6f5ff17784..97773311cc7d 100644 --- a/pkgs/development/python-modules/switchbot-api/default.nix +++ b/pkgs/development/python-modules/switchbot-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-dJLjWwBzrT3GnsRpTIXu3SkVDUlnAbRwBlfSQaHWPzc="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - aiohttp - ]; + dependencies = [ aiohttp ]; # Module has no tests - doCheck= false; + doCheck = false; - pythonImportsCheck = [ - "switchbot_api" - ]; + pythonImportsCheck = [ "switchbot_api" ]; meta = with lib; { description = "An asynchronous library to use Switchbot API"; diff --git a/pkgs/development/python-modules/swspotify/default.nix b/pkgs/development/python-modules/swspotify/default.nix index e2627660006b..fd5c524f18a6 100644 --- a/pkgs/development/python-modules/swspotify/default.nix +++ b/pkgs/development/python-modules/swspotify/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, dbus-python -, fetchFromGitHub -, flask -, flask-cors -, poetry-core -, pythonOlder -, requests +{ + lib, + stdenv, + buildPythonPackage, + dbus-python, + fetchFromGitHub, + flask, + flask-cors, + poetry-core, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-xGLvc154xnje45Akf7H1qqQRUc03gGVt8AhGlkcP3kY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ dbus-python @@ -38,9 +37,7 @@ buildPythonPackage rec { # Tests want to use Dbus doCheck = false; - pythonImportsCheck = [ - "SwSpotify" - ]; + pythonImportsCheck = [ "SwSpotify" ]; meta = with lib; { description = "Library to get the currently playing song and artist from Spotify"; diff --git a/pkgs/development/python-modules/sybil/default.nix b/pkgs/development/python-modules/sybil/default.nix index 045c5f97501c..0d2e4b3d3377 100644 --- a/pkgs/development/python-modules/sybil/default.nix +++ b/pkgs/development/python-modules/sybil/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "sybil"; version = "6.0.3"; - pyproject = true; + pyproject = true; disabled = pythonOlder "3.7"; @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-SqAP+hj+pivsuGxx9/TvmfVrfrLSWQRYIjKh0ui0AVc="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; # Circular dependency with testfixtures doCheck = false; - pythonImportsCheck = [ - "sybil" - ]; + pythonImportsCheck = [ "sybil" ]; meta = with lib; { description = "Automated testing for the examples in your documentation"; diff --git a/pkgs/development/python-modules/sympy/default.nix b/pkgs/development/python-modules/sympy/default.nix index 1954f8bc591f..94720dec3bfb 100644 --- a/pkgs/development/python-modules/sympy/default.nix +++ b/pkgs/development/python-modules/sympy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, glibcLocales -, mpmath +{ + lib, + buildPythonPackage, + fetchPypi, + glibcLocales, + mpmath, -# Reverse dependency -, sage + # Reverse dependency + sage, }: buildPythonPackage rec { @@ -30,13 +31,15 @@ buildPythonPackage rec { export LANG="en_US.UTF-8" ''; - passthru.tests = { inherit sage; }; + passthru.tests = { + inherit sage; + }; meta = with lib; { description = "A Python library for symbolic mathematics"; mainProgram = "isympy"; - homepage = "https://www.sympy.org/"; - license = licenses.bsd3; + homepage = "https://www.sympy.org/"; + license = licenses.bsd3; maintainers = with maintainers; [ lovek323 ] ++ teams.sage.members; }; } diff --git a/pkgs/development/python-modules/symspellpy/default.nix b/pkgs/development/python-modules/symspellpy/default.nix index ad3b732209ef..ea823e6f204b 100644 --- a/pkgs/development/python-modules/symspellpy/default.nix +++ b/pkgs/development/python-modules/symspellpy/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, -, pythonOlder + pythonOlder, -, pytestCheckHook + pytestCheckHook, -, setuptools + setuptools, # for testing -, numpy -, importlib-resources + numpy, + importlib-resources, # requirements -, editdistpy + editdistpy, }: buildPythonPackage rec { @@ -46,13 +47,9 @@ buildPythonPackage rec { hash = "sha256-D8xdMCy4fSff3nuS2sD2QHWk0869AlFDE+lFRvayYDQ="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - editdistpy - ]; + dependencies = [ editdistpy ]; nativeCheckInputs = [ pytestCheckHook @@ -65,12 +62,11 @@ buildPythonPackage rec { "symspellpy.symspellpy" ]; - meta = with lib; - { - description = "Python port of SymSpell v6.7.1, which provides much higher speed and lower memory consumption"; - homepage = "https://github.com/mammothb/symspellpy"; - changelog = "https://github.com/mammothb/symspellpy/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ vizid ]; - }; + meta = with lib; { + description = "Python port of SymSpell v6.7.1, which provides much higher speed and lower memory consumption"; + homepage = "https://github.com/mammothb/symspellpy"; + changelog = "https://github.com/mammothb/symspellpy/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ vizid ]; + }; } diff --git a/pkgs/development/python-modules/syncedlyrics/default.nix b/pkgs/development/python-modules/syncedlyrics/default.nix index a53740b37253..5505bb03f75c 100644 --- a/pkgs/development/python-modules/syncedlyrics/default.nix +++ b/pkgs/development/python-modules/syncedlyrics/default.nix @@ -1,12 +1,13 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, pythonRelaxDepsHook -, rapidfuzz -, requests +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + pythonRelaxDepsHook, + rapidfuzz, + requests, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "rapidfuzz" - ]; + pythonRelaxDeps = [ "rapidfuzz" ]; dependencies = [ requests @@ -41,9 +40,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "syncedlyrics" - ]; + pythonImportsCheck = [ "syncedlyrics" ]; meta = with lib; { description = "Module to get LRC format (synchronized) lyrics"; diff --git a/pkgs/development/python-modules/syncer/default.nix b/pkgs/development/python-modules/syncer/default.nix index cb86cd2e7cee..aed4172d9a3f 100644 --- a/pkgs/development/python-modules/syncer/default.nix +++ b/pkgs/development/python-modules/syncer/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/synergy/default.nix b/pkgs/development/python-modules/synergy/default.nix index 570390d67f15..8befef11f791 100644 --- a/pkgs/development/python-modules/synergy/default.nix +++ b/pkgs/development/python-modules/synergy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, numpy -, scipy -, matplotlib -, plotly -, pandas +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + numpy, + scipy, + matplotlib, + plotly, + pandas, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/synologydsm-api/default.nix b/pkgs/development/python-modules/synologydsm-api/default.nix index 8be0564de4d7..c94e65db8117 100644 --- a/pkgs/development/python-modules/synologydsm-api/default.nix +++ b/pkgs/development/python-modules/synologydsm-api/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, poetry-core -, pythonRelaxDepsHook -, requests -, urllib3 -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + poetry-core, + pythonRelaxDepsHook, + requests, + urllib3, + pytestCheckHook, }: buildPythonPackage rec { @@ -39,18 +40,14 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; propagatedBuildInputs = [ requests urllib3 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "synology_dsm" ]; diff --git a/pkgs/development/python-modules/syrupy/default.nix b/pkgs/development/python-modules/syrupy/default.nix index c5b860e84050..ac6cdafda031 100644 --- a/pkgs/development/python-modules/syrupy/default.nix +++ b/pkgs/development/python-modules/syrupy/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, poetry-core -, pytest -, colored -, invoke +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + poetry-core, + pytest, + colored, + invoke, }: buildPythonPackage rec { @@ -22,17 +23,11 @@ buildPythonPackage rec { hash = "sha256-NBJJqQsZqqKHOdqGa/j/2KQvlenLCEJBqlfdjtFK00U="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - buildInputs = [ - pytest - ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ - colored - ]; + propagatedBuildInputs = [ colored ]; nativeCheckInputs = [ invoke diff --git a/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix b/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix index 50ebc91d9e81..61c9a489b738 100644 --- a/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix +++ b/pkgs/development/python-modules/syslog-rfc5424-formatter/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # Tests are not picked up, review later again doCheck = false; - pythonImportsCheck = [ - "syslog_rfc5424_formatter" - ]; + pythonImportsCheck = [ "syslog_rfc5424_formatter" ]; meta = with lib; { description = "Python logging formatter for emitting RFC5424 Syslog messages"; diff --git a/pkgs/development/python-modules/systembridge/default.nix b/pkgs/development/python-modules/systembridge/default.nix index f60a1c3298c4..3af2cb7c4964 100644 --- a/pkgs/development/python-modules/systembridge/default.nix +++ b/pkgs/development/python-modules/systembridge/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, websockets +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + websockets, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/systembridgeconnector/default.nix b/pkgs/development/python-modules/systembridgeconnector/default.nix index 04132ffe081a..d75f815cb0ad 100644 --- a/pkgs/development/python-modules/systembridgeconnector/default.nix +++ b/pkgs/development/python-modules/systembridgeconnector/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch2 -, setuptools -, aiohttp -, incremental -, systembridgemodels -, pytest-aiohttp -, pytest-socket -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch2, + setuptools, + aiohttp, + incremental, + systembridgemodels, + pytest-aiohttp, + pytest-socket, + pytestCheckHook, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { --replace-fail ", dev=0" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/systembridgemodels/default.nix b/pkgs/development/python-modules/systembridgemodels/default.nix index 82d581ff3e1e..a1a2233cd4c4 100644 --- a/pkgs/development/python-modules/systembridgemodels/default.nix +++ b/pkgs/development/python-modules/systembridgemodels/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, incremental -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + incremental, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,19 +27,13 @@ buildPythonPackage rec { --replace-fail ", dev=1" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - incremental - ]; + propagatedBuildInputs = [ incremental ]; pythonImportsCheck = [ "systembridgemodels" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { changelog = "https://github.com/timmo001/system-bridge-models/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/systemd/default.nix b/pkgs/development/python-modules/systemd/default.nix index de195da11240..ebf70c9946cb 100644 --- a/pkgs/development/python-modules/systemd/default.nix +++ b/pkgs/development/python-modules/systemd/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, libredirect -, systemd -, pkg-config -, pytest -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + libredirect, + systemd, + pkg-config, + pytest, + python, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-8p4m4iM/z4o6PHRQIpuSXb64tPTWGlujEYCDVLiIt2o="; }; - nativeBuildInputs = [ - pkg-config - ]; + nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - systemd - ]; + buildInputs = [ systemd ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' echo "12345678901234567890123456789012" > machine-id diff --git a/pkgs/development/python-modules/sysv-ipc/default.nix b/pkgs/development/python-modules/sysv-ipc/default.nix index e6e1db135a05..d7e2f628756f 100644 --- a/pkgs/development/python-modules/sysv-ipc/default.nix +++ b/pkgs/development/python-modules/sysv-ipc/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -20,5 +21,4 @@ buildPythonPackage rec { homepage = "http://semanchuk.com/philip/sysv_ipc/"; maintainers = with maintainers; [ ris ]; }; - } diff --git a/pkgs/development/python-modules/tableaudocumentapi/default.nix b/pkgs/development/python-modules/tableaudocumentapi/default.nix index 437c1b218394..f1a6882345a8 100644 --- a/pkgs/development/python-modules/tableaudocumentapi/default.nix +++ b/pkgs/development/python-modules/tableaudocumentapi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, lxml -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + lxml, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-g6V1UBf+P21FcZkR3PHoUmdmrQwEvjdd1VKhvNmvOys="; }; - propagatedBuildInputs = [ - lxml - ]; + propagatedBuildInputs = [ lxml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tableaudocumentapi" - ]; + pythonImportsCheck = [ "tableaudocumentapi" ]; # ModuleNotFoundError: No module named 'test.assets' doCheck = false; diff --git a/pkgs/development/python-modules/tableauserverclient/default.nix b/pkgs/development/python-modules/tableauserverclient/default.nix index 3ddf8c9a2d15..bc4141a03e01 100644 --- a/pkgs/development/python-modules/tableauserverclient/default.nix +++ b/pkgs/development/python-modules/tableauserverclient/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, defusedxml -, fetchPypi -, packaging -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, requests-mock -, setuptools -, versioneer +{ + lib, + buildPythonPackage, + defusedxml, + fetchPypi, + packaging, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + requests-mock, + setuptools, + versioneer, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { rm versioneer.py ''; - pythonRelaxDeps = [ - "urllib3" - ]; + pythonRelaxDeps = [ "urllib3" ]; nativeBuildInputs = [ setuptools @@ -53,9 +52,7 @@ buildPythonPackage rec { # Tests attempt to create some file artifacts and fails doCheck = false; - pythonImportsCheck = [ - "tableauserverclient" - ]; + pythonImportsCheck = [ "tableauserverclient" ]; meta = with lib; { description = "Module for working with the Tableau Server REST API"; diff --git a/pkgs/development/python-modules/tabledata/default.nix b/pkgs/development/python-modules/tabledata/default.nix index 290774b17b41..db3ae3521516 100644 --- a/pkgs/development/python-modules/tabledata/default.nix +++ b/pkgs/development/python-modules/tabledata/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, dataproperty -, typepy -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + lib, + dataproperty, + typepy, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { hash = "sha256-84KrXnks76mvIjcEeQPpwd8rPO5SMbH/jfqERaFTrWo="; }; - propagatedBuildInputs = [ dataproperty typepy ]; + propagatedBuildInputs = [ + dataproperty + typepy + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/tables/default.nix b/pkgs/development/python-modules/tables/default.nix index fd034b209133..e7f22b68f39f 100644 --- a/pkgs/development/python-modules/tables/default.nix +++ b/pkgs/development/python-modules/tables/default.nix @@ -1,22 +1,23 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, blosc2 -, bzip2 -, c-blosc -, cython -, hdf5 -, lzo -, numpy -, numexpr -, packaging -, setuptools -, sphinx +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + blosc2, + bzip2, + c-blosc, + cython, + hdf5, + lzo, + numpy, + numexpr, + packaging, + setuptools, + sphinx, # Test inputs -, python -, pytest -, py-cpuinfo + python, + pytest, + py-cpuinfo, }: buildPythonPackage rec { @@ -79,9 +80,7 @@ buildPythonPackage rec { "--blosc2=${lib.getDev blosc2.c-blosc2}" ]; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; preCheck = '' cd .. diff --git a/pkgs/development/python-modules/tablib/default.nix b/pkgs/development/python-modules/tablib/default.nix index 66388b285686..38c58f5cb313 100644 --- a/pkgs/development/python-modules/tablib/default.nix +++ b/pkgs/development/python-modules/tablib/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchPypi -, markuppy -, odfpy -, openpyxl -, pandas -, pytestCheckHook -, pythonOlder -, pyyaml -, setuptools-scm -, tabulate -, unicodecsv -, xlrd -, xlwt +{ + lib, + buildPythonPackage, + fetchPypi, + markuppy, + odfpy, + openpyxl, + pandas, + pytestCheckHook, + pythonOlder, + pyyaml, + setuptools-scm, + tabulate, + unicodecsv, + xlrd, + xlwt, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { --replace " --cov=tablib --cov=tests --cov-report xml --cov-report term --cov-report html" "" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; passthru.optional-dependencies = { all = [ @@ -47,28 +46,16 @@ buildPythonPackage rec { xlrd xlwt ]; - cli = [ - tabulate - ]; - html = [ - markuppy - ]; - ods = [ - odfpy - ]; - pandas = [ - pandas - ]; + cli = [ tabulate ]; + html = [ markuppy ]; + ods = [ odfpy ]; + pandas = [ pandas ]; xls = [ xlrd xlwt ]; - xlsx = [ - openpyxl - ]; - yaml = [ - pyyaml - ]; + xlsx = [ openpyxl ]; + yaml = [ pyyaml ]; }; nativeCheckInputs = [ @@ -82,9 +69,7 @@ buildPythonPackage rec { "tests/test_tablib.py" ]; - pythonImportsCheck = [ - "tablib" - ]; + pythonImportsCheck = [ "tablib" ]; meta = with lib; { description = "Format-agnostic tabular dataset library"; diff --git a/pkgs/development/python-modules/tabulate/default.nix b/pkgs/development/python-modules/tabulate/default.nix index 9b1108481c75..c781a453397a 100644 --- a/pkgs/development/python-modules/tabulate/default.nix +++ b/pkgs/development/python-modules/tabulate/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools-scm -, setuptools -, wcwidth -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + setuptools, + wcwidth, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tabview/default.nix b/pkgs/development/python-modules/tabview/default.nix index 8d83fe4ef9ad..4db25a42b8cd 100644 --- a/pkgs/development/python-modules/tabview/default.nix +++ b/pkgs/development/python-modules/tabview/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tadasets/default.nix b/pkgs/development/python-modules/tadasets/default.nix index 4f3b179e63dc..2cf02af4efb2 100644 --- a/pkgs/development/python-modules/tadasets/default.nix +++ b/pkgs/development/python-modules/tadasets/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, matplotlib -, pytest -, scipy +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + matplotlib, + pytest, + scipy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tag-expressions/default.nix b/pkgs/development/python-modules/tag-expressions/default.nix index e87c489dae4a..ed06454a5f6a 100644 --- a/pkgs/development/python-modules/tag-expressions/default.nix +++ b/pkgs/development/python-modules/tag-expressions/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-/6Ym72jlgVdpel4V2W2aCKNtISDT9y5qz7+gTllUuPg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tagexpressions" - ]; + pythonImportsCheck = [ "tagexpressions" ]; meta = with lib; { description = "Package to parse logical tag expressions"; diff --git a/pkgs/development/python-modules/tago/default.nix b/pkgs/development/python-modules/tago/default.nix index d20d99f9ebc1..974a7b44884f 100644 --- a/pkgs/development/python-modules/tago/default.nix +++ b/pkgs/development/python-modules/tago/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, promise -, python-socketio -, pythonOlder -, pythonRelaxDepsHook -, requests -, websockets +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + promise, + python-socketio, + pythonOlder, + pythonRelaxDepsHook, + requests, + websockets, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { pythonRelaxDeps = true; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ aiohttp @@ -41,9 +40,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "tago" - ]; + pythonImportsCheck = [ "tago" ]; meta = with lib; { description = "Python module for interacting with Tago.io"; diff --git a/pkgs/development/python-modules/tagoio-sdk/default.nix b/pkgs/development/python-modules/tagoio-sdk/default.nix index 626872794e03..b32338821d66 100644 --- a/pkgs/development/python-modules/tagoio-sdk/default.nix +++ b/pkgs/development/python-modules/tagoio-sdk/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, python-dateutil -, python-socketio -, pythonOlder -, pythonRelaxDepsHook -, requests -, requests-mock +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + python-dateutil, + python-socketio, + pythonOlder, + pythonRelaxDepsHook, + requests, + requests-mock, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-37/fg2vbwYPhYPvSJ2YxWAPrfspqTE3thIL/VR1+AkI="; }; - pythonRelaxDeps = [ - "requests" - ]; + pythonRelaxDeps = [ "requests" ]; nativeBuildInputs = [ poetry-core @@ -47,9 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "tagoio_sdk" - ]; + pythonImportsCheck = [ "tagoio_sdk" ]; meta = with lib; { description = "Module for interacting with Tago.io"; diff --git a/pkgs/development/python-modules/tahoma-api/default.nix b/pkgs/development/python-modules/tahoma-api/default.nix index edd346941668..13744f25f24d 100644 --- a/pkgs/development/python-modules/tahoma-api/default.nix +++ b/pkgs/development/python-modules/tahoma-api/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tailer/default.nix b/pkgs/development/python-modules/tailer/default.nix index ffc7e3da17c8..dbdc4e527962 100644 --- a/pkgs/development/python-modules/tailer/default.nix +++ b/pkgs/development/python-modules/tailer/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tailscale/default.nix b/pkgs/development/python-modules/tailscale/default.nix index c146c7fd9bd8..cc91b6ea395f 100644 --- a/pkgs/development/python-modules/tailscale/default.nix +++ b/pkgs/development/python-modules/tailscale/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -50,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "tailscale" - ]; + pythonImportsCheck = [ "tailscale" ]; meta = with lib; { description = "Python client for the Tailscale API"; diff --git a/pkgs/development/python-modules/takethetime/default.nix b/pkgs/development/python-modules/takethetime/default.nix index c79df0b179f1..6c397f7535c8 100644 --- a/pkgs/development/python-modules/takethetime/default.nix +++ b/pkgs/development/python-modules/takethetime/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tank-utility/default.nix b/pkgs/development/python-modules/tank-utility/default.nix index d9783789df7c..9d195004e984 100644 --- a/pkgs/development/python-modules/tank-utility/default.nix +++ b/pkgs/development/python-modules/tank-utility/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder -, requests -, responses -, setuptools -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, + requests, + responses, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-h9y3X+FSzSFt+bd/chz+x0nocHaKZ8DvreMxAYMs8/E="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -39,9 +38,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "tank_utility" - ]; + pythonImportsCheck = [ "tank_utility" ]; meta = with lib; { description = "Library for the Tank Utility API"; diff --git a/pkgs/development/python-modules/tappy/default.nix b/pkgs/development/python-modules/tappy/default.nix index d2a311f7e95a..5c464707f2cc 100644 --- a/pkgs/development/python-modules/tappy/default.nix +++ b/pkgs/development/python-modules/tappy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tasklib/default.nix b/pkgs/development/python-modules/tasklib/default.nix index b7fdbcd5a9fb..0645f80780b7 100644 --- a/pkgs/development/python-modules/tasklib/default.nix +++ b/pkgs/development/python-modules/tasklib/default.nix @@ -1,17 +1,18 @@ -{ lib -, pythonPackages -, fetchPypi -, taskwarrior -, writeShellScriptBin +{ + lib, + pythonPackages, + fetchPypi, + taskwarrior, + writeShellScriptBin, }: with pythonPackages; let -wsl_stub = writeShellScriptBin "wsl" "true"; - -in buildPythonPackage rec { + wsl_stub = writeShellScriptBin "wsl" "true"; +in +buildPythonPackage rec { pname = "tasklib"; version = "2.5.1"; format = "setuptools"; diff --git a/pkgs/development/python-modules/taskw/default.nix b/pkgs/development/python-modules/taskw/default.nix index 36ac9293e1d4..e04f9c0284b5 100644 --- a/pkgs/development/python-modules/taskw/default.nix +++ b/pkgs/development/python-modules/taskw/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, -# native dependencies -, pkgs + # native dependencies + pkgs, -# dependencies -, kitchen -, python-dateutil -, pytz + # dependencies + kitchen, + python-dateutil, + pytz, -# tests -, pytest7CheckHook + # tests + pytest7CheckHook, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { --replace '@@taskwarrior@@' '${pkgs.taskwarrior}' ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; buildInputs = [ pkgs.taskwarrior ]; @@ -52,7 +51,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest7CheckHook ]; meta = with lib; { - homepage = "https://github.com/ralphbean/taskw"; + homepage = "https://github.com/ralphbean/taskw"; description = "Python bindings for your taskwarrior database"; license = licenses.gpl3Plus; maintainers = with maintainers; [ pierron ]; diff --git a/pkgs/development/python-modules/tatsu/default.nix b/pkgs/development/python-modules/tatsu/default.nix index 69b17a826fb5..026a6976b6a2 100644 --- a/pkgs/development/python-modules/tatsu/default.nix +++ b/pkgs/development/python-modules/tatsu/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, regex -, setuptools +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + regex, + setuptools, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-55sTUqNwfWg5h9msByq2RuVx/z23ST7p7pA/ZsIeYr8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ colorama regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tatsu" - ]; + pythonImportsCheck = [ "tatsu" ]; meta = with lib; { description = "Generates Python parsers from grammars in a variation of EBNF"; diff --git a/pkgs/development/python-modules/taxi/default.nix b/pkgs/development/python-modules/taxi/default.nix index 98d998f92a40..92a389512cad 100644 --- a/pkgs/development/python-modules/taxi/default.nix +++ b/pkgs/development/python-modules/taxi/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, appdirs -, requests -, click -, setuptools -, pytestCheckHook -, freezegun +{ + lib, + buildPythonPackage, + fetchFromGitHub, + appdirs, + requests, + click, + setuptools, + pytestCheckHook, + freezegun, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tbats/default.nix b/pkgs/development/python-modules/tbats/default.nix index 8976fef859d3..1f0545b49caf 100644 --- a/pkgs/development/python-modules/tbats/default.nix +++ b/pkgs/development/python-modules/tbats/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, numpy -, pmdarima -, scikit-learn -, scipy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + numpy, + pmdarima, + scikit-learn, + scipy, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-f6QqDq/ffbnFBZRAT6KQRlqvZZSE+Pff2/o+htVabZI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/tblib/default.nix b/pkgs/development/python-modules/tblib/default.nix index 283bfcd83e40..6c9e38cc1f0d 100644 --- a/pkgs/development/python-modules/tblib/default.nix +++ b/pkgs/development/python-modules/tblib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, setuptools + # build-system + setuptools, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-k2InkKCingTwNGRY+s4eFE3E0y9JNxTGw9/4Kkrbd+Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; meta = with lib; { description = "Traceback fiddling library. Allows you to pickle tracebacks."; diff --git a/pkgs/development/python-modules/tcolorpy/default.nix b/pkgs/development/python-modules/tcolorpy/default.nix index 87c9f5b8147d..86a19e2fa4de 100644 --- a/pkgs/development/python-modules/tcolorpy/default.nix +++ b/pkgs/development/python-modules/tcolorpy/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pytestCheckHook +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tcxparser/default.nix b/pkgs/development/python-modules/tcxparser/default.nix index c011b9e32fac..4de4e9a39a97 100644 --- a/pkgs/development/python-modules/tcxparser/default.nix +++ b/pkgs/development/python-modules/tcxparser/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, pytestCheckHook -, python-dateutil -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + pytestCheckHook, + python-dateutil, + pythonOlder, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { python-dateutil ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tcxparser" - ]; + pythonImportsCheck = [ "tcxparser" ]; meta = with lib; { description = "Simple parser for Garmin TCX files"; @@ -41,4 +38,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ firefly-cpp ]; }; } - diff --git a/pkgs/development/python-modules/tcxreader/default.nix b/pkgs/development/python-modules/tcxreader/default.nix index c9a965ae8145..4bb0e58857b5 100644 --- a/pkgs/development/python-modules/tcxreader/default.nix +++ b/pkgs/development/python-modules/tcxreader/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-qTAqRzrHFj0nEujlkBohLaprIvvkSYhcDoRfqWIJMjo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tcxreader" - ]; + pythonImportsCheck = [ "tcxreader" ]; meta = with lib; { description = "A reader for Garmin’s TCX file format"; @@ -40,4 +35,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ firefly-cpp ]; }; } - diff --git a/pkgs/development/python-modules/tdir/default.nix b/pkgs/development/python-modules/tdir/default.nix index 644adda75ff0..4f0fe0ee6059 100644 --- a/pkgs/development/python-modules/tdir/default.nix +++ b/pkgs/development/python-modules/tdir/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, dek -, xmod -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + dek, + xmod, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,22 +20,16 @@ buildPythonPackage rec { hash = "sha256-YYQ33Blhqk/CbocqkB9Nh6qbzMjQT07fmzx+fDTvdw8="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ dek xmod ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tdir" - ]; + pythonImportsCheck = [ "tdir" ]; meta = with lib; { description = "Create, fill a temporary directory"; diff --git a/pkgs/development/python-modules/teamcity-messages/default.nix b/pkgs/development/python-modules/teamcity-messages/default.nix index bc4f25003b60..b68f7acbca92 100644 --- a/pkgs/development/python-modules/teamcity-messages/default.nix +++ b/pkgs/development/python-modules/teamcity-messages/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-9az7kD7nKqMF2b3/eFgF+pOKKIYLvTy2sf4TSJfHRnA="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit-tests/" - ]; + pytestFlagsArray = [ "tests/unit-tests/" ]; - pythonImportsCheck = [ - "teamcity" - ]; + pythonImportsCheck = [ "teamcity" ]; meta = with lib; { description = "Python unit test reporting to TeamCity"; diff --git a/pkgs/development/python-modules/telegram-text/default.nix b/pkgs/development/python-modules/telegram-text/default.nix index ca37dde8fb86..be123911f871 100644 --- a/pkgs/development/python-modules/telegram-text/default.nix +++ b/pkgs/development/python-modules/telegram-text/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-eUy4kyCmM/5Ag/0s9hYW2IIg+OTX2L7EsoOYivhd0pU="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python markup module for Telegram messenger"; diff --git a/pkgs/development/python-modules/telegram/default.nix b/pkgs/development/python-modules/telegram/default.nix index d07baaa4169f..c706a7b7dad7 100644 --- a/pkgs/development/python-modules/telegram/default.nix +++ b/pkgs/development/python-modules/telegram/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { description = "Telegram APIs"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/telegraph/default.nix b/pkgs/development/python-modules/telegraph/default.nix index b6bca3a357a3..387c7034bb82 100644 --- a/pkgs/development/python-modules/telegraph/default.nix +++ b/pkgs/development/python-modules/telegraph/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, httpx -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + httpx, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,33 +22,21 @@ buildPythonPackage rec { hash = "sha256-xARX8lSOftNVYY4InR5vU4OiguCJJJZv/W76G9eLgNY="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; passthru.optional-dependencies = { - aio = [ - httpx - ]; + aio = [ httpx ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; - disabledTests = [ - "test_get_page" - ]; + disabledTests = [ "test_get_page" ]; doCheck = true; - pythonImportsCheck = [ - "telegraph" - ]; + pythonImportsCheck = [ "telegraph" ]; meta = with lib; { description = "Telegraph API wrapper"; @@ -57,4 +46,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ gp2112 ]; }; } - diff --git a/pkgs/development/python-modules/telepath/default.nix b/pkgs/development/python-modules/telepath/default.nix index 73cab072dbd2..da8d120554be 100644 --- a/pkgs/development/python-modules/telepath/default.nix +++ b/pkgs/development/python-modules/telepath/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, django -, fetchFromGitHub -, lib -, python +{ + buildPythonPackage, + django, + fetchFromGitHub, + lib, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/telethon-session-sqlalchemy/default.nix b/pkgs/development/python-modules/telethon-session-sqlalchemy/default.nix index 8cea09fea3a0..9d24e4c25290 100644 --- a/pkgs/development/python-modules/telethon-session-sqlalchemy/default.nix +++ b/pkgs/development/python-modules/telethon-session-sqlalchemy/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k, sqlalchemy }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + sqlalchemy, +}: buildPythonPackage rec { pname = "telethon-session-sqlalchemy"; @@ -12,9 +18,7 @@ buildPythonPackage rec { sha256 = "f847c57302a102eb88e29ed95b8f4efa69582db2966fd806c21376b9a66ad4a8"; }; - propagatedBuildInputs = [ - sqlalchemy - ]; + propagatedBuildInputs = [ sqlalchemy ]; # No tests available doCheck = false; diff --git a/pkgs/development/python-modules/telethon/default.nix b/pkgs/development/python-modules/telethon/default.nix index f40809dabf9e..b349c470f8fe 100644 --- a/pkgs/development/python-modules/telethon/default.nix +++ b/pkgs/development/python-modules/telethon/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, openssl -, rsa -, pyaes -, pythonOlder -, setuptools -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + openssl, + rsa, + pyaes, + pythonOlder, + setuptools, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { "ctypes.util.find_library('ssl')" "'${lib.getLib openssl}/lib/libssl.so'" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ rsa @@ -42,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests/telethon" - ]; + pytestFlagsArray = [ "tests/telethon" ]; meta = with lib; { homepage = "https://github.com/LonamiWebs/Telethon"; diff --git a/pkgs/development/python-modules/teletype/default.nix b/pkgs/development/python-modules/teletype/default.nix index 83cfb471e0d2..570bd2cb831b 100644 --- a/pkgs/development/python-modules/teletype/default.nix +++ b/pkgs/development/python-modules/teletype/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-uBppM4w9GlMgYqKFGw1Rcjvq+mnU04K3E74jCgK9YYo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # no tests doCheck = false; - pythonImportsCheck = [ - "teletype" - ]; + pythonImportsCheck = [ "teletype" ]; meta = with lib; { description = "A high-level cross platform tty library"; diff --git a/pkgs/development/python-modules/telfhash/default.nix b/pkgs/development/python-modules/telfhash/default.nix index f2f403765006..0aafd816d039 100644 --- a/pkgs/development/python-modules/telfhash/default.nix +++ b/pkgs/development/python-modules/telfhash/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, capstone -, packaging -, pyelftools -, tlsh -, nose +{ + lib, + buildPythonPackage, + fetchFromGitHub, + capstone, + packaging, + pyelftools, + tlsh, + nose, }: buildPythonPackage rec { pname = "telfhash"; @@ -33,17 +34,13 @@ buildPythonPackage rec { packaging ]; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; checkPhase = '' nosetests ''; - pythonImportsCheck = [ - "telfhash" - ]; + pythonImportsCheck = [ "telfhash" ]; meta = with lib; { description = "Symbol hash for ELF files"; diff --git a/pkgs/development/python-modules/tellduslive/default.nix b/pkgs/development/python-modules/tellduslive/default.nix index b367c5d4417e..44fd11d24342 100644 --- a/pkgs/development/python-modules/tellduslive/default.nix +++ b/pkgs/development/python-modules/tellduslive/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, docopt -, fetchFromGitHub -, requests -, requests-oauthlib -, pythonOlder +{ + lib, + buildPythonPackage, + docopt, + fetchFromGitHub, + requests, + requests-oauthlib, + pythonOlder, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "tellduslive" - ]; + pythonImportsCheck = [ "tellduslive" ]; meta = with lib; { description = "Python module to communicate with Telldus Live"; diff --git a/pkgs/development/python-modules/temescal/default.nix b/pkgs/development/python-modules/temescal/default.nix index 2c19ab2844ad..c7a824b92c2e 100644 --- a/pkgs/development/python-modules/temescal/default.nix +++ b/pkgs/development/python-modules/temescal/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pycryptodome +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pycryptodome, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-MfTftheNj8zI3iXIIJU+jy9xikvX9eO58LA0NCMJBnY="; }; - propagatedBuildInputs = [ - pycryptodome - ]; + propagatedBuildInputs = [ pycryptodome ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "temescal" - ]; + pythonImportsCheck = [ "temescal" ]; meta = with lib; { description = "Module for interacting with LG speaker systems"; diff --git a/pkgs/development/python-modules/temperusb/default.nix b/pkgs/development/python-modules/temperusb/default.nix index 79363508ecbf..2dc1a2af1ffd 100644 --- a/pkgs/development/python-modules/temperusb/default.nix +++ b/pkgs/development/python-modules/temperusb/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pyusb +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pyusb, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-PwKHT1zzVn+nmxO/R+aK+029WaaHBo7FyVV4eQtHhbM="; }; - propagatedBuildInputs = [ - pyusb - ]; + propagatedBuildInputs = [ pyusb ]; # Module has no tests which are shipped and source is not tagged doCheck = false; - pythonImportsCheck = [ - "temperusb" - ]; + pythonImportsCheck = [ "temperusb" ]; meta = with lib; { description = "Library to read TEMPer USB HID devices"; diff --git a/pkgs/development/python-modules/tempest/default.nix b/pkgs/development/python-modules/tempest/default.nix index ad8ad53dafad..66ebd1bfefab 100644 --- a/pkgs/development/python-modules/tempest/default.nix +++ b/pkgs/development/python-modules/tempest/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, defusedxml -, fetchPypi -, pbr -, cliff -, jsonschema -, testtools -, paramiko -, netaddr -, oslo-concurrency -, oslo-config -, oslo-log -, stestr -, oslo-serialization -, oslo-utils -, fixtures -, pythonOlder -, pyyaml -, subunit -, stevedore -, prettytable -, urllib3 -, debtcollector -, hacking -, oslotest -, bash -, python -, setuptools +{ + lib, + buildPythonPackage, + defusedxml, + fetchPypi, + pbr, + cliff, + jsonschema, + testtools, + paramiko, + netaddr, + oslo-concurrency, + oslo-config, + oslo-log, + stestr, + oslo-serialization, + oslo-utils, + fixtures, + pythonOlder, + pyyaml, + subunit, + stevedore, + prettytable, + urllib3, + debtcollector, + hacking, + oslotest, + bash, + python, + setuptools, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { hash = "sha256-2WmSN4NrH5/y5iAuYaaVuZkuh1ym14jFj7OXw8Jfxtc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pbr diff --git a/pkgs/development/python-modules/tempita/default.nix b/pkgs/development/python-modules/tempita/default.nix index d7e2c9135772..7f3148c4ed26 100644 --- a/pkgs/development/python-modules/tempita/default.nix +++ b/pkgs/development/python-modules/tempita/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, nose }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, +}: buildPythonPackage { version = "0.5.3-2016-09-28"; diff --git a/pkgs/development/python-modules/templateflow/default.nix b/pkgs/development/python-modules/templateflow/default.nix index b46387740b51..83d9ccfb885c 100644 --- a/pkgs/development/python-modules/templateflow/default.nix +++ b/pkgs/development/python-modules/templateflow/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools-scm -, nipreps-versions -, pybids -, requests -, tqdm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools-scm, + nipreps-versions, + pybids, + requests, + tqdm, }: buildPythonPackage rec { @@ -31,7 +32,7 @@ buildPythonPackage rec { tqdm ]; - doCheck = false; # most tests try to download data + doCheck = false; # most tests try to download data #pythonImportsCheck = [ "templateflow" ]; # touches $HOME/.cache, hence needs https://github.com/NixOS/nixpkgs/pull/120300 meta = with lib; { diff --git a/pkgs/development/python-modules/tempora/default.nix b/pkgs/development/python-modules/tempora/default.nix index b33d72b99b79..50f4b0eca641 100644 --- a/pkgs/development/python-modules/tempora/default.nix +++ b/pkgs/development/python-modules/tempora/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, freezegun -, jaraco-functools -, pytest-freezegun -, pytestCheckHook -, pythonOlder -, pytz -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + freezegun, + jaraco-functools, + pytest-freezegun, + pytestCheckHook, + pythonOlder, + pytz, + setuptools-scm, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-ortR4hIZdtkxNHs+QzkXw2S4P91fZO8nM2yGW/H7D3U="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ jaraco-functools diff --git a/pkgs/development/python-modules/tenacity/default.nix b/pkgs/development/python-modules/tenacity/default.nix index 5fe70090feea..134785e4e1fd 100644 --- a/pkgs/development/python-modules/tenacity/default.nix +++ b/pkgs/development/python-modules/tenacity/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools-scm -, tornado -, typeguard +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools-scm, + tornado, + typeguard, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { typeguard ]; - pythonImportsCheck = [ - "tenacity" - ]; + pythonImportsCheck = [ "tenacity" ]; meta = with lib; { homepage = "https://github.com/jd/tenacity"; diff --git a/pkgs/development/python-modules/tendo/default.nix b/pkgs/development/python-modules/tendo/default.nix index fe02bc0aed29..3c8dae032c69 100644 --- a/pkgs/development/python-modules/tendo/default.nix +++ b/pkgs/development/python-modules/tendo/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -31,13 +32,9 @@ buildPythonPackage rec { setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tendo" - ]; + pythonImportsCheck = [ "tendo" ]; meta = with lib; { description = "Adds basic functionality that is not provided by Python"; diff --git a/pkgs/development/python-modules/tensorboard-data-server/default.nix b/pkgs/development/python-modules/tensorboard-data-server/default.nix index 6277049f92a0..ef0662c4c2da 100644 --- a/pkgs/development/python-modules/tensorboard-data-server/default.nix +++ b/pkgs/development/python-modules/tensorboard-data-server/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, +}: buildPythonPackage rec { pname = "tensorboard-data-server"; diff --git a/pkgs/development/python-modules/tensorboard-plugin-profile/default.nix b/pkgs/development/python-modules/tensorboard-plugin-profile/default.nix index 158437a93d1f..5429cd58176b 100644 --- a/pkgs/development/python-modules/tensorboard-plugin-profile/default.nix +++ b/pkgs/development/python-modules/tensorboard-plugin-profile/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools -, gviz-api -, protobuf -, werkzeug +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, + gviz-api, + protobuf, + werkzeug, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-t9AZg0BGjDcOxtoRBHZO0joIgLHpoKqEUY4pxmw8sjg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ gviz-api diff --git a/pkgs/development/python-modules/tensorboard-plugin-wit/default.nix b/pkgs/development/python-modules/tensorboard-plugin-wit/default.nix index ec4a63f65d43..202361ef032a 100644 --- a/pkgs/development/python-modules/tensorboard-plugin-wit/default.nix +++ b/pkgs/development/python-modules/tensorboard-plugin-wit/default.nix @@ -1,4 +1,7 @@ -{ lib, fetchPypi, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tensorboard/default.nix b/pkgs/development/python-modules/tensorboard/default.nix index 9fdc3bb71192..62b054d76f9a 100644 --- a/pkgs/development/python-modules/tensorboard/default.nix +++ b/pkgs/development/python-modules/tensorboard/default.nix @@ -1,20 +1,21 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, pythonRelaxDepsHook -, numpy -, wheel -, werkzeug -, protobuf -, grpcio -, markdown -, absl-py -, google-auth-oauthlib -, setuptools -, tensorboard-data-server -, tensorboard-plugin-wit -, tensorboard-plugin-profile +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + pythonRelaxDepsHook, + numpy, + wheel, + werkzeug, + protobuf, + grpcio, + markdown, + absl-py, + google-auth-oauthlib, + setuptools, + tensorboard-data-server, + tensorboard-plugin-wit, + tensorboard-plugin-profile, }: # tensorflow/tensorboard is built from a downloaded wheel, because @@ -34,9 +35,7 @@ buildPythonPackage rec { hash = "sha256-nytOfa2GZnYVwOXNBy8eqEA/wDKimfAHLW90hVd1zEU="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRelaxDeps = [ "google-auth-oauthlib" diff --git a/pkgs/development/python-modules/tensorboardx/default.nix b/pkgs/development/python-modules/tensorboardx/default.nix index 820b00744195..e0c4231be405 100644 --- a/pkgs/development/python-modules/tensorboardx/default.nix +++ b/pkgs/development/python-modules/tensorboardx/default.nix @@ -1,19 +1,20 @@ -{ boto3 -, buildPythonPackage -, crc32c -, fetchFromGitHub -, lib -, matplotlib -, moto -, numpy -, protobuf -, pytestCheckHook -, torch -, setuptools-scm -, soundfile -, stdenv -, tensorboard -, torchvision +{ + boto3, + buildPythonPackage, + crc32c, + fetchFromGitHub, + lib, + matplotlib, + moto, + numpy, + protobuf, + pytestCheckHook, + torch, + setuptools-scm, + soundfile, + stdenv, + tensorboard, + torchvision, }: buildPythonPackage rec { @@ -54,16 +55,18 @@ buildPythonPackage rec { torchvision ]; - disabledTests = [ - # ImportError: Visdom visualization requires installation of Visdom - "test_TorchVis" - # Requires network access (FileNotFoundError: [Errno 2] No such file or directory: 'wget') - "test_onnx_graph" - ] ++ lib.optionals stdenv.isDarwin [ - # Fails with a mysterious error in pytorch: - # RuntimeError: required keyword attribute 'name' has the wrong type - "test_pytorch_graph" - ]; + disabledTests = + [ + # ImportError: Visdom visualization requires installation of Visdom + "test_TorchVis" + # Requires network access (FileNotFoundError: [Errno 2] No such file or directory: 'wget') + "test_onnx_graph" + ] + ++ lib.optionals stdenv.isDarwin [ + # Fails with a mysterious error in pytorch: + # RuntimeError: required keyword attribute 'name' has the wrong type + "test_pytorch_graph" + ]; disabledTestPaths = [ # we are not interested in linting errors @@ -79,7 +82,10 @@ buildPythonPackage rec { downloadPage = "https://github.com/lanpa/tensorboardX"; changelog = "https://github.com/lanpa/tensorboardX/blob/${src.rev}/HISTORY.rst"; license = licenses.mit; - maintainers = with maintainers; [ lebastr akamaus ]; + maintainers = with maintainers; [ + lebastr + akamaus + ]; platforms = platforms.all; }; } diff --git a/pkgs/development/python-modules/tensordict/default.nix b/pkgs/development/python-modules/tensordict/default.nix index 6dceda423658..a3b39969be6a 100644 --- a/pkgs/development/python-modules/tensordict/default.nix +++ b/pkgs/development/python-modules/tensordict/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, torch -, wheel -, which -, cloudpickle -, numpy -, h5py -, pytestCheckHook -, stdenv -, pythonAtLeast +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + torch, + wheel, + which, + cloudpickle, + numpy, + h5py, + pytestCheckHook, + stdenv, + pythonAtLeast, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { torch ]; - pythonImportsCheck = [ - "tensordict" - ]; + pythonImportsCheck = [ "tensordict" ]; # We have to delete the source because otherwise it is used instead of the installed package. preCheck = '' @@ -63,9 +62,7 @@ buildPythonPackage rec { ]; # ModuleNotFoundError: No module named 'torch._C._distributed_c10d'; 'torch._C' is not a package - disabledTestPaths = lib.optionals stdenv.isDarwin [ - "test/test_distributed.py" - ]; + disabledTestPaths = lib.optionals stdenv.isDarwin [ "test/test_distributed.py" ]; meta = with lib; { description = "A pytorch dedicated tensor container"; diff --git a/pkgs/development/python-modules/tensorflow-datasets/default.nix b/pkgs/development/python-modules/tensorflow-datasets/default.nix index 8440eb58f4fc..15a8115c2036 100644 --- a/pkgs/development/python-modules/tensorflow-datasets/default.nix +++ b/pkgs/development/python-modules/tensorflow-datasets/default.nix @@ -1,49 +1,50 @@ -{ apache-beam -, array-record -, attrs -, beautifulsoup4 -, buildPythonPackage -, click -, datasets -, dill -, dm-tree -, fetchFromGitHub -, ffmpeg -, future -, imagemagick -, importlib-resources -, jax -, jaxlib -, jinja2 -, langdetect -, lib -, lxml -, matplotlib -, mwparserfromhell -, mwxml -, networkx -, nltk -, numpy -, opencv4 -, pandas -, pillow -, promise -, protobuf -, psutil -, pycocotools -, pydub -, pytest-xdist -, pytestCheckHook -, requests -, scikit-image -, scipy -, six -, tensorflow -, tensorflow-metadata -, termcolor -, tifffile -, tqdm -, zarr +{ + apache-beam, + array-record, + attrs, + beautifulsoup4, + buildPythonPackage, + click, + datasets, + dill, + dm-tree, + fetchFromGitHub, + ffmpeg, + future, + imagemagick, + importlib-resources, + jax, + jaxlib, + jinja2, + langdetect, + lib, + lxml, + matplotlib, + mwparserfromhell, + mwxml, + networkx, + nltk, + numpy, + opencv4, + pandas, + pillow, + promise, + protobuf, + psutil, + pycocotools, + pydub, + pytest-xdist, + pytestCheckHook, + requests, + scikit-image, + scipy, + six, + tensorflow, + tensorflow-metadata, + termcolor, + tifffile, + tqdm, + zarr, }: buildPythonPackage rec { @@ -81,9 +82,7 @@ buildPythonPackage rec { tqdm ]; - pythonImportsCheck = [ - "tensorflow_datasets" - ]; + pythonImportsCheck = [ "tensorflow_datasets" ]; nativeCheckInputs = [ apache-beam diff --git a/pkgs/development/python-modules/tensorflow-estimator/bin.nix b/pkgs/development/python-modules/tensorflow-estimator/bin.nix index c7d8e4d630be..908a29370f95 100644 --- a/pkgs/development/python-modules/tensorflow-estimator/bin.nix +++ b/pkgs/development/python-modules/tensorflow-estimator/bin.nix @@ -1,7 +1,10 @@ -{ lib, fetchPypi, buildPythonPackage -, numpy -, absl-py -, mock +{ + lib, + fetchPypi, + buildPythonPackage, + numpy, + absl-py, + mock, }: buildPythonPackage rec { @@ -15,7 +18,11 @@ buildPythonPackage rec { hash = "sha256-6jtkrP/z2aJE8GF4yb3ty90/Eltn0IiNuoIpSY0GRos="; }; - propagatedBuildInputs = [ mock numpy absl-py ]; + propagatedBuildInputs = [ + mock + numpy + absl-py + ]; meta = with lib; { description = "TensorFlow Estimator is a high-level API that encapsulates model training, evaluation, prediction, and exporting."; @@ -24,4 +31,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ jyp ]; }; } - diff --git a/pkgs/development/python-modules/tensorflow-metadata/default.nix b/pkgs/development/python-modules/tensorflow-metadata/default.nix index 0f11461eb9d6..14a1d00dc450 100644 --- a/pkgs/development/python-modules/tensorflow-metadata/default.nix +++ b/pkgs/development/python-modules/tensorflow-metadata/default.nix @@ -1,9 +1,10 @@ -{ absl-py -, buildPythonPackage -, fetchFromGitHub -, googleapis-common-protos -, protobuf -, lib +{ + absl-py, + buildPythonPackage, + fetchFromGitHub, + googleapis-common-protos, + protobuf, + lib, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-ZfX25CaV+tZVdas+n7O6Gqv1GxOP1iwippIXxfhcOfg="; }; - patches = [ - ./build.patch - ]; + patches = [ ./build.patch ]; postPatch = '' substituteInPlace setup.py \ @@ -44,9 +43,7 @@ buildPythonPackage rec { # has no tests doCheck = false; - pythonImportsCheck = [ - "tensorflow_metadata" - ]; + pythonImportsCheck = [ "tensorflow_metadata" ]; meta = with lib; { description = "Standard representations for metadata that are useful when training machine learning models with TensorFlow"; diff --git a/pkgs/development/python-modules/tensorflow-probability/default.nix b/pkgs/development/python-modules/tensorflow-probability/default.nix index 769a4969fc2d..587f6b683a7d 100644 --- a/pkgs/development/python-modules/tensorflow-probability/default.nix +++ b/pkgs/development/python-modules/tensorflow-probability/default.nix @@ -1,29 +1,30 @@ -{ lib -, stdenv -, fetchFromGitHub -, bazel_6 -, buildBazelPackage -, buildPythonPackage -, cctools -, python -, setuptools -, wheel -, absl-py -, tensorflow -, six -, numpy -, dm-tree -, keras -, decorator -, cloudpickle -, gast -, hypothesis -, scipy -, pandas -, mpmath -, matplotlib -, mock -, pytest +{ + lib, + stdenv, + fetchFromGitHub, + bazel_6, + buildBazelPackage, + buildPythonPackage, + cctools, + python, + setuptools, + wheel, + absl-py, + tensorflow, + six, + numpy, + dm-tree, + keras, + decorator, + cloudpickle, + gast, + hypothesis, + scipy, + pandas, + mpmath, + matplotlib, + mock, + pytest, }: let diff --git a/pkgs/development/python-modules/tensorflow/bin.nix b/pkgs/development/python-modules/tensorflow/bin.nix index 7bb535258dd3..0f54cade00cd 100644 --- a/pkgs/development/python-modules/tensorflow/bin.nix +++ b/pkgs/development/python-modules/tensorflow/bin.nix @@ -1,38 +1,42 @@ -{ stdenv -, lib -, fetchurl -, buildPythonPackage -, isPy3k, pythonOlder, pythonAtLeast, astor -, gast -, google-pasta -, wrapt -, numpy -, six -, termcolor -, packaging -, protobuf -, absl-py -, grpcio -, mock -, scipy -, wheel -, jax -, opt-einsum -, tensorflow-estimator-bin -, tensorboard -, config -, cudaSupport ? config.cudaSupport -, cudaPackages -, zlib -, python -, keras-applications -, keras-preprocessing -, addOpenGLRunpath -, astunparse -, flatbuffers -, h5py -, llvmPackages -, typing-extensions +{ + stdenv, + lib, + fetchurl, + buildPythonPackage, + isPy3k, + pythonOlder, + pythonAtLeast, + astor, + gast, + google-pasta, + wrapt, + numpy, + six, + termcolor, + packaging, + protobuf, + absl-py, + grpcio, + mock, + scipy, + wheel, + jax, + opt-einsum, + tensorflow-estimator-bin, + tensorboard, + config, + cudaSupport ? config.cudaSupport, + cudaPackages, + zlib, + python, + keras-applications, + keras-preprocessing, + addOpenGLRunpath, + astunparse, + flatbuffers, + h5py, + llvmPackages, + typing-extensions, }: # We keep this binary build for two reasons: @@ -40,26 +44,27 @@ # - the source build is currently brittle and not easy to maintain # unsupported combination -assert ! (stdenv.isDarwin && cudaSupport); +assert !(stdenv.isDarwin && cudaSupport); let packages = import ./binary-hashes.nix; inherit (cudaPackages) cudatoolkit cudnn; -in buildPythonPackage { +in +buildPythonPackage { pname = "tensorflow" + lib.optionalString cudaSupport "-gpu"; inherit (packages) version; format = "wheel"; - src = let - pyVerNoDot = lib.strings.stringAsChars (x: lib.optionalString (x != ".") x) python.pythonVersion; - platform = stdenv.system; - cuda = lib.optionalString cudaSupport "_gpu"; - key = "${platform}_${pyVerNoDot}${cuda}"; - in fetchurl (packages.${key} or (throw "tensoflow-bin: unsupported system: ${stdenv.system}")); + src = + let + pyVerNoDot = lib.strings.stringAsChars (x: lib.optionalString (x != ".") x) python.pythonVersion; + platform = stdenv.system; + cuda = lib.optionalString cudaSupport "_gpu"; + key = "${platform}_${pyVerNoDot}${cuda}"; + in + fetchurl (packages.${key} or (throw "tensoflow-bin: unsupported system: ${stdenv.system}")); - buildInputs = [ - llvmPackages.openmp - ]; + buildInputs = [ llvmPackages.openmp ]; dependencies = [ astunparse @@ -208,7 +213,10 @@ in buildPythonPackage { homepage = "http://tensorflow.org"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.asl20; - maintainers = with maintainers; [ jyp abbradar ]; + maintainers = with maintainers; [ + jyp + abbradar + ]; platforms = platforms.all; # Cannot import tensortfow on python 3.12 as it still dependends on distutils: # ModuleNotFoundError: No module named 'distutils' diff --git a/pkgs/development/python-modules/tensorflow/binary-hashes.nix b/pkgs/development/python-modules/tensorflow/binary-hashes.nix index 93d951cf6a1a..0f71cbc008b1 100644 --- a/pkgs/development/python-modules/tensorflow/binary-hashes.nix +++ b/pkgs/development/python-modules/tensorflow/binary-hashes.nix @@ -1,83 +1,83 @@ { -version = "2.16.1"; -x86_64-linux_39 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "0j4311fav3b4wdhw9wb3zvc3grvgxddl28i4kwnbsvvjb191pcs5"; -}; -x86_64-linux_310 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "0b8q3r2ql7rknlshiv3bh3hj9zll0dn6w0wdxnqgg18cljys5nhh"; -}; -x86_64-linux_311 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "12vv2jxybdfa8nq7r2y53vl7lvmaacb1xmy2368hkwqm2ld4mplg"; -}; -x86_64-linux_312 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "0vvv3cr10r6kgkalk3hydqz18y4lp990pm4vwq8mbwdi101m59mf"; -}; -x86_64-linux_39_gpu = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "17v85433ns360rcccx7pnkhjzd003cr8p6rj51wqb3gl7gkldf83"; -}; -x86_64-linux_310_gpu = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "0w3jd7siamvhgd7si59zpv3rdpq3s2ii3hhcdaimji66axv095hy"; -}; -x86_64-linux_311_gpu = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "014liy5wnbi2d2lnr8lqhd7221a4a1v6gzih7nv5qfnf1h86234k"; -}; -x86_64-linux_312_gpu = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; - sha256 = "0qd09bxfnad969y2h3mlzib51y6xcsqipq1w278k1fl8ayxky4ja"; -}; -aarch64-linux_39 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; - sha256 = "1n3qf0snjwrc0lcahls4bi2qhpd4yrd531b80vlq89j0gjkjl5cj"; -}; -aarch64-linux_310 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; - sha256 = "1aygypgm5fbpskf6xvzni2yd9l49hf3ls855z2aq0as73m3m81df"; -}; -aarch64-linux_311 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; - sha256 = "1c0bqiq2hbzcqhaym3s3s0dsp06m07mqgvm35z14nz395pxgjzb1"; -}; -aarch64-linux_312 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; - sha256 = "1ai2hrmn1il0hididdvhd005pjcn6hjivpgcw7dbhmdv6vacs4n6"; -}; -x86_64-darwin_39 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-macosx_10_15_x86_64.whl"; - sha256 = "0dkcd1v0ivjp6v5pngg0x461wci94nxvwprc6jwgi7rqgyx3zkz9"; -}; -x86_64-darwin_310 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-macosx_10_15_x86_64.whl"; - sha256 = "0rnlxrb4q2cgqaifalhpji15g1f3m9flqfvfj2p2sv3lvmbg2ydb"; -}; -x86_64-darwin_311 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-macosx_10_15_x86_64.whl"; - sha256 = "1xc9lis61adk2y22a82i3rvc0j7qznf4fqwg2pd1665zlhybi9gq"; -}; -x86_64-darwin_312 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-macosx_10_15_x86_64.whl"; - sha256 = "10g8y02ncp5l7f133vank6h01palc445h6s9jndmmy7vm33c7jh9"; -}; -aarch64-darwin_39 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-macosx_12_0_arm64.whl"; - sha256 = "0541ldysc1a06xcb632340gn1c33w245lzqwq2f2p6hm2ifqp1a2"; -}; -aarch64-darwin_310 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-macosx_12_0_arm64.whl"; - sha256 = "1crrd4izayqwji5gxjw1g9qppkvfsc8p1mr7z6hiipxidys6ldwf"; -}; -aarch64-darwin_311 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-macosx_12_0_arm64.whl"; - sha256 = "0kg4g4p563nhw0l2jzydhw4ycyj3dkgqzzm0m3z8k7vzsb8na86c"; -}; -aarch64-darwin_312 = { - url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-macosx_12_0_arm64.whl"; - sha256 = "1hnzfpfncw8fa84y0jivpfyb5cbbd4cvpln72wkcxpvhj23nvw5v"; -}; + version = "2.16.1"; + x86_64-linux_39 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "0j4311fav3b4wdhw9wb3zvc3grvgxddl28i4kwnbsvvjb191pcs5"; + }; + x86_64-linux_310 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "0b8q3r2ql7rknlshiv3bh3hj9zll0dn6w0wdxnqgg18cljys5nhh"; + }; + x86_64-linux_311 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "12vv2jxybdfa8nq7r2y53vl7lvmaacb1xmy2368hkwqm2ld4mplg"; + }; + x86_64-linux_312 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow_cpu-2.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "0vvv3cr10r6kgkalk3hydqz18y4lp990pm4vwq8mbwdi101m59mf"; + }; + x86_64-linux_39_gpu = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "17v85433ns360rcccx7pnkhjzd003cr8p6rj51wqb3gl7gkldf83"; + }; + x86_64-linux_310_gpu = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "0w3jd7siamvhgd7si59zpv3rdpq3s2ii3hhcdaimji66axv095hy"; + }; + x86_64-linux_311_gpu = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "014liy5wnbi2d2lnr8lqhd7221a4a1v6gzih7nv5qfnf1h86234k"; + }; + x86_64-linux_312_gpu = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; + sha256 = "0qd09bxfnad969y2h3mlzib51y6xcsqipq1w278k1fl8ayxky4ja"; + }; + aarch64-linux_39 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; + sha256 = "1n3qf0snjwrc0lcahls4bi2qhpd4yrd531b80vlq89j0gjkjl5cj"; + }; + aarch64-linux_310 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; + sha256 = "1aygypgm5fbpskf6xvzni2yd9l49hf3ls855z2aq0as73m3m81df"; + }; + aarch64-linux_311 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; + sha256 = "1c0bqiq2hbzcqhaym3s3s0dsp06m07mqgvm35z14nz395pxgjzb1"; + }; + aarch64-linux_312 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"; + sha256 = "1ai2hrmn1il0hididdvhd005pjcn6hjivpgcw7dbhmdv6vacs4n6"; + }; + x86_64-darwin_39 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-macosx_10_15_x86_64.whl"; + sha256 = "0dkcd1v0ivjp6v5pngg0x461wci94nxvwprc6jwgi7rqgyx3zkz9"; + }; + x86_64-darwin_310 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-macosx_10_15_x86_64.whl"; + sha256 = "0rnlxrb4q2cgqaifalhpji15g1f3m9flqfvfj2p2sv3lvmbg2ydb"; + }; + x86_64-darwin_311 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-macosx_10_15_x86_64.whl"; + sha256 = "1xc9lis61adk2y22a82i3rvc0j7qznf4fqwg2pd1665zlhybi9gq"; + }; + x86_64-darwin_312 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-macosx_10_15_x86_64.whl"; + sha256 = "10g8y02ncp5l7f133vank6h01palc445h6s9jndmmy7vm33c7jh9"; + }; + aarch64-darwin_39 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp39-cp39-macosx_12_0_arm64.whl"; + sha256 = "0541ldysc1a06xcb632340gn1c33w245lzqwq2f2p6hm2ifqp1a2"; + }; + aarch64-darwin_310 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp310-cp310-macosx_12_0_arm64.whl"; + sha256 = "1crrd4izayqwji5gxjw1g9qppkvfsc8p1mr7z6hiipxidys6ldwf"; + }; + aarch64-darwin_311 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp311-cp311-macosx_12_0_arm64.whl"; + sha256 = "0kg4g4p563nhw0l2jzydhw4ycyj3dkgqzzm0m3z8k7vzsb8na86c"; + }; + aarch64-darwin_312 = { + url = "https://storage.googleapis.com/tensorflow/versions/2.16.1/tensorflow-2.16.1-cp312-cp312-macosx_12_0_arm64.whl"; + sha256 = "1hnzfpfncw8fa84y0jivpfyb5cbbd4cvpln72wkcxpvhj23nvw5v"; + }; } diff --git a/pkgs/development/python-modules/tensorflow/default.nix b/pkgs/development/python-modules/tensorflow/default.nix index 2c44b89aefea..d311edc188ad 100644 --- a/pkgs/development/python-modules/tensorflow/default.nix +++ b/pkgs/development/python-modules/tensorflow/default.nix @@ -1,35 +1,90 @@ -{ stdenv, bazel_5, buildBazelPackage, lib, fetchFromGitHub, symlinkJoin -, addOpenGLRunpath, fetchpatch, fetchzip, linkFarm -# Python deps -, buildPythonPackage, pythonAtLeast, pythonOlder, python -# Python libraries -, numpy, tensorboard, abseil-cpp, absl-py -, packaging, setuptools, wheel, keras-preprocessing, google-pasta -, opt-einsum, astunparse, h5py -, termcolor, grpcio, six, wrapt, protobuf-python, tensorflow-estimator-bin -, dill, flatbuffers-python, portpicker, tblib, typing-extensions -# Common deps -, git, pybind11, which, binutils, glibcLocales, cython, perl -# Common libraries -, jemalloc, mpi, gast, grpc, sqlite, boringssl, jsoncpp, nsync -, curl, snappy, flatbuffers-core, icu, double-conversion, libpng, libjpeg_turbo, giflib, protobuf-core -# Upstream by default includes cuda support since tensorflow 1.15. We could do -# that in nix as well. It would make some things easier and less confusing, but -# it would also make the default tensorflow package unfree. See -# https://groups.google.com/a/tensorflow.org/forum/#!topic/developers/iRCt5m4qUz0 -, config -, cudaSupport ? config.cudaSupport -, cudaPackages -, cudaCapabilities ? cudaPackages.cudaFlags.cudaCapabilities -, mklSupport ? false, mkl -, tensorboardSupport ? true -# XLA without CUDA is broken -, xlaSupport ? cudaSupport -, sse42Support ? stdenv.hostPlatform.sse4_2Support -, avx2Support ? stdenv.hostPlatform.avx2Support -, fmaSupport ? stdenv.hostPlatform.fmaSupport -# Darwin deps -, Foundation, Security, cctools, llvmPackages +{ + stdenv, + bazel_5, + buildBazelPackage, + lib, + fetchFromGitHub, + symlinkJoin, + addOpenGLRunpath, + fetchpatch, + fetchzip, + linkFarm, + # Python deps + buildPythonPackage, + pythonAtLeast, + pythonOlder, + python, + # Python libraries + numpy, + tensorboard, + abseil-cpp, + absl-py, + packaging, + setuptools, + wheel, + keras-preprocessing, + google-pasta, + opt-einsum, + astunparse, + h5py, + termcolor, + grpcio, + six, + wrapt, + protobuf-python, + tensorflow-estimator-bin, + dill, + flatbuffers-python, + portpicker, + tblib, + typing-extensions, + # Common deps + git, + pybind11, + which, + binutils, + glibcLocales, + cython, + perl, + # Common libraries + jemalloc, + mpi, + gast, + grpc, + sqlite, + boringssl, + jsoncpp, + nsync, + curl, + snappy, + flatbuffers-core, + icu, + double-conversion, + libpng, + libjpeg_turbo, + giflib, + protobuf-core, + # Upstream by default includes cuda support since tensorflow 1.15. We could do + # that in nix as well. It would make some things easier and less confusing, but + # it would also make the default tensorflow package unfree. See + # https://groups.google.com/a/tensorflow.org/forum/#!topic/developers/iRCt5m4qUz0 + config, + cudaSupport ? config.cudaSupport, + cudaPackages, + cudaCapabilities ? cudaPackages.cudaFlags.cudaCapabilities, + mklSupport ? false, + mkl, + tensorboardSupport ? true, + # XLA without CUDA is broken + xlaSupport ? cudaSupport, + sse42Support ? stdenv.hostPlatform.sse4_2Support, + avx2Support ? stdenv.hostPlatform.avx2Support, + fmaSupport ? stdenv.hostPlatform.fmaSupport, + # Darwin deps + Foundation, + Security, + cctools, + llvmPackages, }: let @@ -50,9 +105,12 @@ let # __ZN4llvm11SmallPtrSetIPKNS_10AllocaInstELj8EED1Ev in any of the # translation units, so the build fails at link time stdenv = - if cudaSupport then cudaPackages.backendStdenv - else if originalStdenv.isDarwin then llvmPackages.stdenv - else originalStdenv; + if cudaSupport then + cudaPackages.backendStdenv + else if originalStdenv.isDarwin then + llvmPackages.stdenv + else + originalStdenv; inherit (cudaPackages) cudatoolkit nccl; # use compatible cuDNN (https://www.tensorflow.org/install/source#gpu) # cudaPackages.cudnn led to this: @@ -64,7 +122,10 @@ let hash = "sha256-SCRX/5/zML7LmKEPJkcM5Tebez9vv/gmE4xhT/jyqWs="; }; protobuf-extra = linkFarm "protobuf-extra" [ - { name = "include"; path = protobuf-core.src; } + { + name = "include"; + path = protobuf-core.src; + } ]; withTensorboard = (pythonOlder "3.6") || tensorboardSupport; @@ -72,14 +133,16 @@ let # FIXME: migrate to redist cudaPackages cudatoolkit_joined = symlinkJoin { name = "${cudatoolkit.name}-merged"; - paths = [ - cudatoolkit.lib - cudatoolkit.out - ] ++ lib.optionals (lib.versionOlder cudatoolkit.version "11") [ - # for some reason some of the required libs are in the targets/x86_64-linux - # directory; not sure why but this works around it - "${cudatoolkit}/targets/${stdenv.system}" - ]; + paths = + [ + cudatoolkit.lib + cudatoolkit.out + ] + ++ lib.optionals (lib.versionOlder cudatoolkit.version "11") [ + # for some reason some of the required libs are in the targets/x86_64-linux + # directory; not sure why but this works around it + "${cudatoolkit}/targets/${stdenv.system}" + ]; }; # Tensorflow expects bintools at hard-coded paths, e.g. /usr/bin/ar @@ -96,9 +159,7 @@ let # Needed for _some_ system libraries, grep INCLUDEDIR. includes_joined = symlinkJoin { name = "tensorflow-deps-merged"; - paths = [ - jsoncpp - ]; + paths = [ jsoncpp ]; }; tfFeature = x: if x then "1" else "0"; @@ -108,31 +169,31 @@ let variant = lib.optionalString cudaSupport "-gpu"; pname = "tensorflow${variant}"; - pythonEnv = python.withPackages (_: - [ # python deps needed during wheel build time (not runtime, see the buildPythonPackage part for that) - # This list can likely be shortened, but each trial takes multiple hours so won't bother for now. - absl-py - astunparse - dill - flatbuffers-python - gast - google-pasta - grpcio - h5py - keras-preprocessing - numpy - opt-einsum - packaging - protobuf-python - setuptools - six - tblib - tensorboard - tensorflow-estimator-bin - termcolor - typing-extensions - wheel - wrapt + pythonEnv = python.withPackages (_: [ + # python deps needed during wheel build time (not runtime, see the buildPythonPackage part for that) + # This list can likely be shortened, but each trial takes multiple hours so won't bother for now. + absl-py + astunparse + dill + flatbuffers-python + gast + google-pasta + grpcio + h5py + keras-preprocessing + numpy + opt-einsum + packaging + protobuf-python + setuptools + six + tblib + tensorboard + tensorflow-estimator-bin + termcolor + typing-extensions + wheel + wrapt ]); rules_cc_darwin_patched = stdenv.mkDerivation { @@ -195,15 +256,19 @@ let runHook postInstall ''; }; - bazel-build = if stdenv.isDarwin then _bazel-build.overrideAttrs (prev: { - bazelFlags = prev.bazelFlags ++ [ - "--override_repository=rules_cc=${rules_cc_darwin_patched}" - "--override_repository=llvm-raw=${llvm-raw_darwin_patched}" - ]; - preBuild = '' - export AR="${cctools}/bin/libtool" - ''; - }) else _bazel-build; + bazel-build = + if stdenv.isDarwin then + _bazel-build.overrideAttrs (prev: { + bazelFlags = prev.bazelFlags ++ [ + "--override_repository=rules_cc=${rules_cc_darwin_patched}" + "--override_repository=llvm-raw=${llvm-raw_darwin_patched}" + ]; + preBuild = '' + export AR="${cctools}/bin/libtool" + ''; + }) + else + _bazel-build; _bazel-build = buildBazelPackage.override { inherit stdenv; } { name = "${pname}-${version}"; @@ -220,42 +285,50 @@ let # https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/tensorflow nativeBuildInputs = [ - which pythonEnv cython perl protobuf-core protobuf-extra + which + pythonEnv + cython + perl + protobuf-core + protobuf-extra ] ++ lib.optional cudaSupport addOpenGLRunpath; - buildInputs = [ - jemalloc - mpi - glibcLocales - git + buildInputs = + [ + jemalloc + mpi + glibcLocales + git - # libs taken from system through the TF_SYS_LIBS mechanism - abseil-cpp - boringssl - curl - double-conversion - flatbuffers-core - giflib - grpc - # Necessary to fix the "`GLIBCXX_3.4.30' not found" error - (icu.override { inherit stdenv; }) - jsoncpp - libjpeg_turbo - libpng - (pybind11.overridePythonAttrs (_: { inherit stdenv; })) - snappy - sqlite - ] ++ lib.optionals cudaSupport [ - cudatoolkit - cudnn - ] ++ lib.optionals mklSupport [ - mkl - ] ++ lib.optionals stdenv.isDarwin [ - Foundation - Security - ] ++ lib.optionals (!stdenv.isDarwin) [ - nsync - ]; + # libs taken from system through the TF_SYS_LIBS mechanism + abseil-cpp + boringssl + curl + double-conversion + flatbuffers-core + giflib + grpc + # Necessary to fix the "`GLIBCXX_3.4.30' not found" error + (icu.override { inherit stdenv; }) + jsoncpp + libjpeg_turbo + libpng + (pybind11.overridePythonAttrs (_: { + inherit stdenv; + })) + snappy + sqlite + ] + ++ lib.optionals cudaSupport [ + cudatoolkit + cudnn + ] + ++ lib.optionals mklSupport [ mkl ] + ++ lib.optionals stdenv.isDarwin [ + Foundation + Security + ] + ++ lib.optionals (!stdenv.isDarwin) [ nsync ]; # arbitrarily set to the current latest bazel version, overly careful TF_IGNORE_MAX_BAZEL_VERSION = true; @@ -265,47 +338,50 @@ let # Take as many libraries from the system as possible. Keep in sync with # list of valid syslibs in # https://github.com/tensorflow/tensorflow/blob/master/third_party/systemlibs/syslibs_configure.bzl - TF_SYSTEM_LIBS = lib.concatStringsSep "," ([ - "absl_py" - "astor_archive" - "astunparse_archive" - "boringssl" - "com_google_absl" - # Not packaged in nixpkgs - # "com_github_googleapis_googleapis" - # "com_github_googlecloudplatform_google_cloud_cpp" - "com_github_grpc_grpc" - "com_google_protobuf" - # Fails with the error: external/org_tensorflow/tensorflow/core/profiler/utils/tf_op_utils.cc:46:49: error: no matching function for call to 're2::RE2::FullMatch(absl::lts_2020_02_25::string_view&, re2::RE2&)' - # "com_googlesource_code_re2" - "curl" - "cython" - "dill_archive" - "double_conversion" - "flatbuffers" - "functools32_archive" - "gast_archive" - "gif" - "hwloc" - "icu" - "jsoncpp_git" - "libjpeg_turbo" - "nasm" - "opt_einsum_archive" - "org_sqlite" - "pasta" - "png" - "pybind11" - "six_archive" - "snappy" - "tblib_archive" - "termcolor_archive" - "typing_extensions_archive" - "wrapt" - "zlib" - ] ++ lib.optionals (!stdenv.isDarwin) [ - "nsync" # fails to build on darwin - ]); + TF_SYSTEM_LIBS = lib.concatStringsSep "," ( + [ + "absl_py" + "astor_archive" + "astunparse_archive" + "boringssl" + "com_google_absl" + # Not packaged in nixpkgs + # "com_github_googleapis_googleapis" + # "com_github_googlecloudplatform_google_cloud_cpp" + "com_github_grpc_grpc" + "com_google_protobuf" + # Fails with the error: external/org_tensorflow/tensorflow/core/profiler/utils/tf_op_utils.cc:46:49: error: no matching function for call to 're2::RE2::FullMatch(absl::lts_2020_02_25::string_view&, re2::RE2&)' + # "com_googlesource_code_re2" + "curl" + "cython" + "dill_archive" + "double_conversion" + "flatbuffers" + "functools32_archive" + "gast_archive" + "gif" + "hwloc" + "icu" + "jsoncpp_git" + "libjpeg_turbo" + "nasm" + "opt_einsum_archive" + "org_sqlite" + "pasta" + "png" + "pybind11" + "six_archive" + "snappy" + "tblib_archive" + "termcolor_archive" + "typing_extensions_archive" + "wrapt" + "zlib" + ] + ++ lib.optionals (!stdenv.isDarwin) [ + "nsync" # fails to build on darwin + ] + ); INCLUDEDIR = "${includes_joined}/include"; @@ -348,47 +424,51 @@ let ./protobuf_python.patch ./pybind11_protobuf_python_runtime_dep.patch ./pybind11_protobuf_newer_version.patch - ] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-darwin") [ - ./absl_to_std.patch - ]; + ] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-darwin") [ ./absl_to_std.patch ]; - postPatch = '' - # bazel 3.3 should work just as well as bazel 3.1 - rm -f .bazelversion - patchShebangs . - '' + lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") '' - cat ${./com_google_absl_fix_macos.patch} >> third_party/absl/com_google_absl_fix_mac_and_nvcc_build.patch - '' + lib.optionalString (!withTensorboard) '' - # Tensorboard pulls in a bunch of dependencies, some of which may - # include security vulnerabilities. So we make it optional. - # https://github.com/tensorflow/tensorflow/issues/20280#issuecomment-400230560 - sed -i '/tensorboard ~=/d' tensorflow/tools/pip_package/setup.py - ''; + postPatch = + '' + # bazel 3.3 should work just as well as bazel 3.1 + rm -f .bazelversion + patchShebangs . + '' + + lib.optionalString (stdenv.hostPlatform.system == "x86_64-darwin") '' + cat ${./com_google_absl_fix_macos.patch} >> third_party/absl/com_google_absl_fix_mac_and_nvcc_build.patch + '' + + lib.optionalString (!withTensorboard) '' + # Tensorboard pulls in a bunch of dependencies, some of which may + # include security vulnerabilities. So we make it optional. + # https://github.com/tensorflow/tensorflow/issues/20280#issuecomment-400230560 + sed -i '/tensorboard ~=/d' tensorflow/tools/pip_package/setup.py + ''; # https://github.com/tensorflow/tensorflow/pull/39470 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-stringop-truncation" ]; - preConfigure = let - opt_flags = [] - ++ lib.optionals sse42Support ["-msse4.2"] - ++ lib.optionals avx2Support ["-mavx2"] - ++ lib.optionals fmaSupport ["-mfma"]; - in '' - patchShebangs configure + preConfigure = + let + opt_flags = + [ ] + ++ lib.optionals sse42Support [ "-msse4.2" ] + ++ lib.optionals avx2Support [ "-mavx2" ] + ++ lib.optionals fmaSupport [ "-mfma" ]; + in + '' + patchShebangs configure - # dummy ldconfig - mkdir dummy-ldconfig - echo "#!${stdenv.shell}" > dummy-ldconfig/ldconfig - chmod +x dummy-ldconfig/ldconfig - export PATH="$PWD/dummy-ldconfig:$PATH" + # dummy ldconfig + mkdir dummy-ldconfig + echo "#!${stdenv.shell}" > dummy-ldconfig/ldconfig + chmod +x dummy-ldconfig/ldconfig + export PATH="$PWD/dummy-ldconfig:$PATH" - export PYTHON_LIB_PATH="$NIX_BUILD_TOP/site-packages" - export CC_OPT_FLAGS="${lib.concatStringsSep " " opt_flags}" - mkdir -p "$PYTHON_LIB_PATH" + export PYTHON_LIB_PATH="$NIX_BUILD_TOP/site-packages" + export CC_OPT_FLAGS="${lib.concatStringsSep " " opt_flags}" + mkdir -p "$PYTHON_LIB_PATH" - # To avoid mixing Python 2 and Python 3 - unset PYTHONPATH - ''; + # To avoid mixing Python 2 and Python 3 + unset PYTHONPATH + ''; configurePhase = '' runHook preConfigure @@ -398,39 +478,53 @@ let hardeningDisable = [ "format" ]; - bazelBuildFlags = [ - "--config=opt" # optimize using the flags set in the configure phase - ] - ++ lib.optionals stdenv.cc.isClang [ - "--cxxopt=-x" "--cxxopt=c++" - "--host_cxxopt=-x" "--host_cxxopt=c++" + bazelBuildFlags = + [ + "--config=opt" # optimize using the flags set in the configure phase + ] + ++ lib.optionals stdenv.cc.isClang [ + "--cxxopt=-x" + "--cxxopt=c++" + "--host_cxxopt=-x" + "--host_cxxopt=c++" - # workaround for https://github.com/bazelbuild/bazel/issues/15359 - "--spawn_strategy=sandboxed" - ] - ++ lib.optionals (mklSupport) [ "--config=mkl" ]; + # workaround for https://github.com/bazelbuild/bazel/issues/15359 + "--spawn_strategy=sandboxed" + ] + ++ lib.optionals (mklSupport) [ "--config=mkl" ]; - bazelTargets = [ "//tensorflow/tools/pip_package:build_pip_package //tensorflow/tools/lib_package:libtensorflow" ]; + bazelTargets = [ + "//tensorflow/tools/pip_package:build_pip_package //tensorflow/tools/lib_package:libtensorflow" + ]; removeRulesCC = false; # Without this Bazel complaints about sandbox violations. dontAddBazelOpts = true; fetchAttrs = { - sha256 = { - x86_64-linux = if cudaSupport - then "sha256-5VFMNHeLrUxW5RTr6EhT3pay9nWJ5JkZTGirDds5QkU=" - else "sha256-KzgWV69Btr84FdwQ5JI2nQEsqiPg1/+TWdbw5bmxXOE="; - aarch64-linux = if cudaSupport - then "sha256-ty5+51BwHWE1xR4/0WcWTp608NzSAS/iiyN+9zx7/wI=" - else "sha256-9btXrNHqd720oXTPDhSmFidv5iaZRLjCVX8opmrMjXk="; - x86_64-darwin = "sha256-gqb03kB0z2pZQ6m1fyRp1/Nbt8AVVHWpOJSeZNCLc4w="; - aarch64-darwin = "sha256-WdgAaFZU+ePwWkVBhLzjlNT7ELfGHOTaMdafcAMD5yo="; - }.${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); + sha256 = + { + x86_64-linux = + if cudaSupport then + "sha256-5VFMNHeLrUxW5RTr6EhT3pay9nWJ5JkZTGirDds5QkU=" + else + "sha256-KzgWV69Btr84FdwQ5JI2nQEsqiPg1/+TWdbw5bmxXOE="; + aarch64-linux = + if cudaSupport then + "sha256-ty5+51BwHWE1xR4/0WcWTp608NzSAS/iiyN+9zx7/wI=" + else + "sha256-9btXrNHqd720oXTPDhSmFidv5iaZRLjCVX8opmrMjXk="; + x86_64-darwin = "sha256-gqb03kB0z2pZQ6m1fyRp1/Nbt8AVVHWpOJSeZNCLc4w="; + aarch64-darwin = "sha256-WdgAaFZU+ePwWkVBhLzjlNT7ELfGHOTaMdafcAMD5yo="; + } + .${stdenv.hostPlatform.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); }; buildAttrs = { - outputs = [ "out" "python" ]; + outputs = [ + "out" + "python" + ]; # need to rebuild schemas since we use a different flatbuffers version preBuild = '' @@ -474,31 +568,32 @@ let done ''; - requiredSystemFeatures = [ - "big-parallel" - ]; + requiredSystemFeatures = [ "big-parallel" ]; }; - meta = with lib; { - badPlatforms = lib.optionals cudaSupport lib.platforms.darwin; - changelog = "https://github.com/tensorflow/tensorflow/releases/tag/v${version}"; - description = "Computation using data flow graphs for scalable machine learning"; - homepage = "http://tensorflow.org"; - license = licenses.asl20; - maintainers = with maintainers; [ abbradar ]; - platforms = with platforms; linux ++ darwin; - broken = - stdenv.isDarwin - || !(xlaSupport -> cudaSupport) - || !(cudaSupport -> builtins.hasAttr cudnnAttribute cudaPackages) - || !(cudaSupport -> cudaPackages ? cudatoolkit); - } // lib.optionalAttrs stdenv.isDarwin { - timeout = 86400; # 24 hours - maxSilent = 14400; # 4h, double the default of 7200s - }; + meta = + with lib; + { + badPlatforms = lib.optionals cudaSupport lib.platforms.darwin; + changelog = "https://github.com/tensorflow/tensorflow/releases/tag/v${version}"; + description = "Computation using data flow graphs for scalable machine learning"; + homepage = "http://tensorflow.org"; + license = licenses.asl20; + maintainers = with maintainers; [ abbradar ]; + platforms = with platforms; linux ++ darwin; + broken = + stdenv.isDarwin + || !(xlaSupport -> cudaSupport) + || !(cudaSupport -> builtins.hasAttr cudnnAttribute cudaPackages) + || !(cudaSupport -> cudaPackages ? cudatoolkit); + } + // lib.optionalAttrs stdenv.isDarwin { + timeout = 86400; # 24 hours + maxSilent = 14400; # 4h, double the default of 7200s + }; }; - -in buildPythonPackage { +in +buildPythonPackage { inherit version pname; disabled = pythonAtLeast "3.12"; @@ -550,9 +645,7 @@ in buildPythonPackage { termcolor typing-extensions wrapt - ] ++ lib.optionals withTensorboard [ - tensorboard - ]; + ] ++ lib.optionals withTensorboard [ tensorboard ]; nativeBuildInputs = lib.optionals cudaSupport [ addOpenGLRunpath ]; diff --git a/pkgs/development/python-modules/tensorly/default.nix b/pkgs/development/python-modules/tensorly/default.nix index a6e5c5a42e6e..9e3ff72609cf 100644 --- a/pkgs/development/python-modules/tensorly/default.nix +++ b/pkgs/development/python-modules/tensorly/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonOlder -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonOlder, + scipy, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "tensorly" @@ -48,9 +47,7 @@ buildPythonPackage rec { "tensorly.contrib" ]; - pytestFlagsArray = [ - "tensorly" - ]; + pytestFlagsArray = [ "tensorly" ]; disabledTests = [ # this can fail on hydra and other peoples machines, check with others before re-enabling diff --git a/pkgs/development/python-modules/tensorrt/default.nix b/pkgs/development/python-modules/tensorrt/default.nix index 2f3606d8562e..b69986fdc7e7 100644 --- a/pkgs/development/python-modules/tensorrt/default.nix +++ b/pkgs/development/python-modules/tensorrt/default.nix @@ -1,10 +1,11 @@ -{ lib -, python -, autoAddDriverRunpath -, buildPythonPackage -, autoPatchelfHook -, unzip -, cudaPackages +{ + lib, + python, + autoAddDriverRunpath, + buildPythonPackage, + autoPatchelfHook, + unzip, + cudaPackages, }: let @@ -39,9 +40,7 @@ buildPythonPackage rec { cudaPackages.tensorrt ]; - pythonImportsCheck = [ - "tensorrt" - ]; + pythonImportsCheck = [ "tensorrt" ]; meta = with lib; { description = "Python bindings for TensorRT, a high-performance deep learning interface"; @@ -49,8 +48,6 @@ buildPythonPackage rec { license = licenses.unfree; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ aidalgol ]; - broken = - !(cudaPackages ? tensorrt) - || !(cudaPackages ? cudnn); + broken = !(cudaPackages ? tensorrt) || !(cudaPackages ? cudnn); }; } diff --git a/pkgs/development/python-modules/tensorstore/default.nix b/pkgs/development/python-modules/tensorstore/default.nix index 7ad175d70077..31c126f62835 100644 --- a/pkgs/development/python-modules/tensorstore/default.nix +++ b/pkgs/development/python-modules/tensorstore/default.nix @@ -1,11 +1,12 @@ -{ autoPatchelfHook -, buildPythonPackage -, fetchPypi -, lib -, ml-dtypes -, numpy -, python -, stdenv +{ + autoPatchelfHook, + buildPythonPackage, + fetchPypi, + lib, + ml-dtypes, + numpy, + python, + stdenv, }: let @@ -36,7 +37,9 @@ buildPythonPackage rec { abi = "cp${pythonVersionNoDot}"; dist = "cp${pythonVersionNoDot}"; platform = systemToPlatform.${stdenv.system} or (throw "unsupported system"); - hash = hashes."${pythonVersionNoDot}-${stdenv.system}" or (throw "unsupported system/python version combination"); + hash = + hashes."${pythonVersionNoDot}-${stdenv.system}" + or (throw "unsupported system/python version combination"); }; nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ]; diff --git a/pkgs/development/python-modules/termcolor/default.nix b/pkgs/development/python-modules/termcolor/default.nix index 474af852d39f..1755f671b3ee 100644 --- a/pkgs/development/python-modules/termcolor/default.nix +++ b/pkgs/development/python-modules/termcolor/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hatchling ]; - pythonImportsCheck = [ - "termcolor" - ]; + pythonImportsCheck = [ "termcolor" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "ANSI color formatting for output in terminal"; diff --git a/pkgs/development/python-modules/termgraph/default.nix b/pkgs/development/python-modules/termgraph/default.nix index 2e9f0a8c22bf..4498caec9183 100644 --- a/pkgs/development/python-modules/termgraph/default.nix +++ b/pkgs/development/python-modules/termgraph/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, colorama -, fetchFromGitHub -, lib -, pytestCheckHook +{ + buildPythonPackage, + colorama, + fetchFromGitHub, + lib, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/terminado/default.nix b/pkgs/development/python-modules/terminado/default.nix index 52c0eaa61f81..fdf4b5dab44e 100644 --- a/pkgs/development/python-modules/terminado/default.nix +++ b/pkgs/development/python-modules/terminado/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, ptyprocess -, tornado -, pytest-timeout -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + ptyprocess, + tornado, + pytest-timeout, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,18 +19,14 @@ buildPythonPackage rec { hash = "sha256-3gnyxLhd5HZfdxRoj/9X0+dbrR+Qm1if3ogEYMdT/S4="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ ptyprocess tornado ]; - pythonImportsCheck = [ - "terminado" - ]; + pythonImportsCheck = [ "terminado" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/terminaltables/default.nix b/pkgs/development/python-modules/terminaltables/default.nix index 83895d7ad0bc..f88cc61838da 100644 --- a/pkgs/development/python-modules/terminaltables/default.nix +++ b/pkgs/development/python-modules/terminaltables/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { homepage = "https://github.com/Robpol86/terminaltables"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/termplotlib/default.nix b/pkgs/development/python-modules/termplotlib/default.nix index 5ed244959eb1..c4112b3e1629 100644 --- a/pkgs/development/python-modules/termplotlib/default.nix +++ b/pkgs/development/python-modules/termplotlib/default.nix @@ -1,12 +1,13 @@ -{ lib -, substituteAll -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, exdown -, numpy -, gnuplot -, setuptools +{ + lib, + substituteAll, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + exdown, + numpy, + gnuplot, + setuptools, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { sha256 = "1qfrv2w7vb2bbjvd5lqfq57c23iqkry0pwmif1ha3asmz330rja1"; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; format = "pyproject"; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/termstyle/default.nix b/pkgs/development/python-modules/termstyle/default.nix index 862cea174168..a3d752b7e7a7 100644 --- a/pkgs/development/python-modules/termstyle/default.nix +++ b/pkgs/development/python-modules/termstyle/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "termstyle"; diff --git a/pkgs/development/python-modules/tern/default.nix b/pkgs/development/python-modules/tern/default.nix index 45553889b1bd..ab0b909f9e02 100644 --- a/pkgs/development/python-modules/tern/default.nix +++ b/pkgs/development/python-modules/tern/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, debian-inspector -, docker -, dockerfile-parse -, fetchPypi -, gitpython -, idna -, license-expression -, packageurl-python -, pbr -, prettytable -, pythonOlder -, pyyaml -, regex -, requests -, stevedore +{ + lib, + buildPythonPackage, + debian-inspector, + docker, + dockerfile-parse, + fetchPypi, + gitpython, + idna, + license-expression, + packageurl-python, + pbr, + prettytable, + pythonOlder, + pyyaml, + regex, + requests, + stevedore, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { cp requirements.{in,txt} ''; - nativeBuildInputs = [ - pbr - ]; + nativeBuildInputs = [ pbr ]; propagatedBuildInputs = [ pyyaml @@ -55,9 +54,7 @@ buildPythonPackage rec { # No tests doCheck = false; - pythonImportsCheck = [ - "tern" - ]; + pythonImportsCheck = [ "tern" ]; meta = with lib; { description = "A software composition analysis tool and Python library that generates a Software Bill of Materials for container images and Dockerfiles"; diff --git a/pkgs/development/python-modules/tesla-powerwall/default.nix b/pkgs/development/python-modules/tesla-powerwall/default.nix index 95222f4de389..8677ae389af6 100644 --- a/pkgs/development/python-modules/tesla-powerwall/default.nix +++ b/pkgs/development/python-modules/tesla-powerwall/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, aiohttp -, urllib3 -, orjson -, aresponses -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + aiohttp, + urllib3, + orjson, + aresponses, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-cAsJKFM0i0e7w2T4HP4a5ybJGuDvBAGCGmPEKFzNFAY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -39,13 +38,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "tests/unit" - ]; + pytestFlagsArray = [ "tests/unit" ]; - pythonImportsCheck = [ - "tesla_powerwall" - ]; + pythonImportsCheck = [ "tesla_powerwall" ]; meta = with lib; { description = "API for Tesla Powerwall"; diff --git a/pkgs/development/python-modules/tesla-wall-connector/default.nix b/pkgs/development/python-modules/tesla-wall-connector/default.nix index 9bce448f7d2a..e3da4c482f9e 100644 --- a/pkgs/development/python-modules/tesla-wall-connector/default.nix +++ b/pkgs/development/python-modules/tesla-wall-connector/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, aresponses -, backoff -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + aresponses, + backoff, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-GblKXWV9h37E3bxNsx17hEe0uDm8ahzJUx8wiE+Vc38="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -40,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "tesla_wall_connector" - ]; + pythonImportsCheck = [ "tesla_wall_connector" ]; meta = with lib; { description = "Library for communicating with a Tesla Wall Connector"; diff --git a/pkgs/development/python-modules/tess/default.nix b/pkgs/development/python-modules/tess/default.nix index b11cf5535d1d..a1d8af16fd5f 100644 --- a/pkgs/development/python-modules/tess/default.nix +++ b/pkgs/development/python-modules/tess/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cython -, numpy -, scipy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cython, + numpy, + scipy, }: buildPythonPackage { @@ -20,7 +21,10 @@ buildPythonPackage { buildInputs = [ cython ]; - propagatedBuildInputs = [ numpy scipy ]; + propagatedBuildInputs = [ + numpy + scipy + ]; meta = with lib; { description = "A module for calculating and analyzing Voronoi tessellations"; diff --git a/pkgs/development/python-modules/tesserocr/default.nix b/pkgs/development/python-modules/tesserocr/default.nix index 95b5ced2a7d3..2c98d482cf92 100644 --- a/pkgs/development/python-modules/tesserocr/default.nix +++ b/pkgs/development/python-modules/tesserocr/default.nix @@ -1,18 +1,19 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, -# build dependencies -, cython -, leptonica -, pkg-config -, tesseract4 + # build dependencies + cython, + leptonica, + pkg-config, + tesseract4, -# propagates -, pillow + # propagates + pillow, -# tests -, unittestCheckHook + # tests + unittestCheckHook, }: buildPythonPackage rec { @@ -40,17 +41,11 @@ buildPythonPackage rec { tesseract4 ]; - propagatedBuildInputs = [ - pillow - ]; + propagatedBuildInputs = [ pillow ]; - pythonImportsCheck = [ - "tesserocr" - ]; + pythonImportsCheck = [ "tesserocr" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; meta = with lib; { changelog = "https://github.com/sirfz/tesserocr/releases/tag/v${version}"; diff --git a/pkgs/development/python-modules/test-tube/default.nix b/pkgs/development/python-modules/test-tube/default.nix index 0c4e75169c9f..d133362c3fb2 100644 --- a/pkgs/development/python-modules/test-tube/default.nix +++ b/pkgs/development/python-modules/test-tube/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, isPy27 -, pytestCheckHook -, future -, imageio -, numpy -, pandas -, torch -, tensorboard +{ + lib, + buildPythonPackage, + fetchFromGitHub, + isPy27, + pytestCheckHook, + future, + imageio, + numpy, + pandas, + torch, + tensorboard, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { sha256 = "0w60xarmcw06gc4002sy7bjfykdz34gbgniswxkl0lw8a1v0xn2m"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ future diff --git a/pkgs/development/python-modules/testbook/default.nix b/pkgs/development/python-modules/testbook/default.nix index 331a7b61160c..eb124f644207 100644 --- a/pkgs/development/python-modules/testbook/default.nix +++ b/pkgs/development/python-modules/testbook/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, nbformat -, nbclient -, ipykernel -, pandas -, pytestCheckHook -, setuptools -, traitlets +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + nbformat, + nbclient, + ipykernel, + pandas, + pytestCheckHook, + setuptools, + traitlets, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { nbformat ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ ipykernel @@ -41,9 +40,7 @@ buildPythonPackage rec { traitlets ]; - pythonImportsCheck = [ - "testbook" - ]; + pythonImportsCheck = [ "testbook" ]; meta = with lib; { description = "A unit testing framework extension for testing code in Jupyter Notebooks"; diff --git a/pkgs/development/python-modules/testcontainers/default.nix b/pkgs/development/python-modules/testcontainers/default.nix index 975537d1fc88..e4757b756b04 100644 --- a/pkgs/development/python-modules/testcontainers/default.nix +++ b/pkgs/development/python-modules/testcontainers/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, deprecation -, docker -, wrapt -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + deprecation, + docker, + wrapt, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { echo "${version}" > VERSION ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; buildInputs = [ deprecation @@ -37,16 +36,12 @@ buildPythonPackage rec { wrapt ]; - dependencies = [ - typing-extensions - ]; + dependencies = [ typing-extensions ]; # Tests require various container and database services running doCheck = false; - pythonImportsCheck = [ - "testcontainers" - ]; + pythonImportsCheck = [ "testcontainers" ]; meta = with lib; { description = '' diff --git a/pkgs/development/python-modules/testfixtures/default.nix b/pkgs/development/python-modules/testfixtures/default.nix index b8c0a5dc1371..57e1f49ceedb 100644 --- a/pkgs/development/python-modules/testfixtures/default.nix +++ b/pkgs/development/python-modules/testfixtures/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pytestCheckHook -, pythonOlder -, setuptools -, sybil -, twisted +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytestCheckHook, + pythonOlder, + setuptools, + sybil, + twisted, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-gISJkDBIWcOito3+S8r3e25kJaOSUEe8JaUnVSd7+m0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ mock @@ -43,13 +42,9 @@ buildPythonPackage rec { "testfixtures/tests/test_django" ]; - pytestFlagsArray = [ - "testfixtures/tests" - ]; + pytestFlagsArray = [ "testfixtures/tests" ]; - pythonImportsCheck = [ - "testfixtures" - ]; + pythonImportsCheck = [ "testfixtures" ]; meta = with lib; { description = "Collection of helpers and mock objects for unit tests and doc tests"; diff --git a/pkgs/development/python-modules/testing-common-database/default.nix b/pkgs/development/python-modules/testing-common-database/default.nix index ff323b85e720..021b3e7ef7e2 100644 --- a/pkgs/development/python-modules/testing-common-database/default.nix +++ b/pkgs/development/python-modules/testing-common-database/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "testing.common.database"; @@ -9,7 +13,7 @@ buildPythonPackage rec { sha256 = "0wvdv0frl7xib05sixjv9m6jywaa2wdhdhsqqdfk45akk2r80pcn"; }; - postPatch = '' + postPatch = '' substituteInPlace src/testing/common/database.py \ --replace "collections.Callable" "collections.abc.Callable" ''; diff --git a/pkgs/development/python-modules/testing-postgresql/default.nix b/pkgs/development/python-modules/testing-postgresql/default.nix index ad64fa53bebb..1b1527cc4872 100644 --- a/pkgs/development/python-modules/testing-postgresql/default.nix +++ b/pkgs/development/python-modules/testing-postgresql/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pg8000 -, postgresql -, psycopg2 -, pytestCheckHook -, pythonOlder -, sqlalchemy -, testing-common-database +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pg8000, + postgresql, + psycopg2, + pytestCheckHook, + pythonOlder, + sqlalchemy, + testing-common-database, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { --replace "pg8000 >= 1.10" "pg8000" ''; - pythonImportsCheck = [ - "testing.postgresql" - ]; + pythonImportsCheck = [ "testing.postgresql" ]; # Fix tests for Darwin build. See: # https://github.com/NixOS/nixpkgs/pull/74716#issuecomment-598546916 diff --git a/pkgs/development/python-modules/testpath/default.nix b/pkgs/development/python-modules/testpath/default.nix index eb66bea56f57..7403d9c2af24 100644 --- a/pkgs/development/python-modules/testpath/default.nix +++ b/pkgs/development/python-modules/testpath/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, flit-core -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + flit-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-LxuX5kQsAmgevgG9hPUxAop8rqGvOCUAD1I0XDAoXg8="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # exe are only required when testpath is used on windows # https://github.com/jupyter/testpath/blob/de8ca59539eb23b9781e55848b7d2646c8c61df9/testpath/commands.py#L128 @@ -40,5 +37,4 @@ buildPythonPackage rec { license = licenses.mit; homepage = "https://github.com/jupyter/testpath"; }; - } diff --git a/pkgs/development/python-modules/testrail-api/default.nix b/pkgs/development/python-modules/testrail-api/default.nix index 0e9daa6cdde9..f14156ff2146 100644 --- a/pkgs/development/python-modules/testrail-api/default.nix +++ b/pkgs/development/python-modules/testrail-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, responses -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + responses, + setuptools-scm, }: buildPythonPackage rec { @@ -27,22 +28,16 @@ buildPythonPackage rec { --replace "setuptools_scm==7.1.0" "setuptools_scm" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; - pythonImportsCheck = [ - "testrail_api" - ]; + pythonImportsCheck = [ "testrail_api" ]; meta = with lib; { description = "A Python wrapper of the TestRail API"; diff --git a/pkgs/development/python-modules/testrepository/default.nix b/pkgs/development/python-modules/testrepository/default.nix index 751292ab5be7..fb0f06d8bb10 100644 --- a/pkgs/development/python-modules/testrepository/default.nix +++ b/pkgs/development/python-modules/testrepository/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, testtools -, testresources -, pbr -, subunit -, fixtures -, python +{ + lib, + buildPythonPackage, + fetchPypi, + testtools, + testresources, + pbr, + subunit, + fixtures, + python, }: buildPythonPackage rec { @@ -21,7 +22,11 @@ buildPythonPackage rec { nativeCheckInputs = [ testresources ]; buildInputs = [ pbr ]; - propagatedBuildInputs = [ fixtures subunit testtools ]; + propagatedBuildInputs = [ + fixtures + subunit + testtools + ]; checkPhase = '' ${python.interpreter} ./testr @@ -33,5 +38,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/testrepository"; license = licenses.bsd2; }; - } diff --git a/pkgs/development/python-modules/testresources/default.nix b/pkgs/development/python-modules/testresources/default.nix index 724a6c364358..7d4710c74388 100644 --- a/pkgs/development/python-modules/testresources/default.nix +++ b/pkgs/development/python-modules/testresources/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pbr -, fixtures -, testtools -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pbr, + fixtures, + testtools, + unittestCheckHook, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { --replace "failIf" "assertFalse" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pbr - ]; + propagatedBuildInputs = [ pbr ]; nativeCheckInputs = [ fixtures diff --git a/pkgs/development/python-modules/testscenarios/default.nix b/pkgs/development/python-modules/testscenarios/default.nix index 8218947d6868..665224348436 100644 --- a/pkgs/development/python-modules/testscenarios/default.nix +++ b/pkgs/development/python-modules/testscenarios/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, pbr -, setuptools + # build-system + pbr, + setuptools, -# dependencies -, testtools + # dependencies + testtools, -# tests -, python + # tests + python, }: buildPythonPackage rec { @@ -52,5 +53,4 @@ buildPythonPackage rec { homepage = "https://github.com/testing-cabal/testscenarios"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/testtools/default.nix b/pkgs/development/python-modules/testtools/default.nix index ffc007af7acf..96f9dc61712e 100644 --- a/pkgs/development/python-modules/testtools/default.nix +++ b/pkgs/development/python-modules/testtools/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + pythonRelaxDepsHook, -# build-system -, hatchling -, hatch-vcs + # build-system + hatchling, + hatch-vcs, -# dependencies -, setuptools + # dependencies + setuptools, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRemoveDeps = [ - "fixtures" - ]; + pythonRemoveDeps = [ "fixtures" ]; - propagatedBuildInputs = lib.optionals (pythonAtLeast "3.12") [ - setuptools - ]; + propagatedBuildInputs = lib.optionals (pythonAtLeast "3.12") [ setuptools ]; # testscenarios has a circular dependency on testtools doCheck = false; diff --git a/pkgs/development/python-modules/texsoup/default.nix b/pkgs/development/python-modules/texsoup/default.nix index da59b2fc28bc..697d160adc8e 100644 --- a/pkgs/development/python-modules/texsoup/default.nix +++ b/pkgs/development/python-modules/texsoup/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,15 +18,11 @@ buildPythonPackage rec { hash = "sha256-XKYJycYivtrszU46B3Bd4JLrvckBpQu9gKDMdr6MyZU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; pythonImportsCheck = [ "TexSoup" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' substituteInPlace pytest.ini \ diff --git a/pkgs/development/python-modules/text-unidecode/default.nix b/pkgs/development/python-modules/text-unidecode/default.nix index b971b94c99ab..afd32047d537 100644 --- a/pkgs/development/python-modules/text-unidecode/default.nix +++ b/pkgs/development/python-modules/text-unidecode/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, +}: buildPythonPackage rec { pname = "text-unidecode"; diff --git a/pkgs/development/python-modules/textacy/default.nix b/pkgs/development/python-modules/textacy/default.nix index 18bdddfa0818..8a95ecf22fea 100644 --- a/pkgs/development/python-modules/textacy/default.nix +++ b/pkgs/development/python-modules/textacy/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, cachetools -, cytoolz -, fetchPypi -, floret -, jellyfish -, joblib -, matplotlib -, networkx -, numpy -, pyemd -, pyphen -, pytestCheckHook -, pythonOlder -, requests -, scikit-learn -, scipy -, spacy -, tqdm +{ + lib, + buildPythonPackage, + cachetools, + cytoolz, + fetchPypi, + floret, + jellyfish, + joblib, + matplotlib, + networkx, + numpy, + pyemd, + pyphen, + pytestCheckHook, + pythonOlder, + requests, + scikit-learn, + scipy, + spacy, + tqdm, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { tqdm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ # Almost all tests have to deal with downloading a dataset, only test pure tests diff --git a/pkgs/development/python-modules/textdistance/default.nix b/pkgs/development/python-modules/textdistance/default.nix index 9f386dc2bc82..0f51381f540f 100644 --- a/pkgs/development/python-modules/textdistance/default.nix +++ b/pkgs/development/python-modules/textdistance/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # There aren't tests doCheck = false; - pythonImportsCheck = [ - "textdistance" - ]; + pythonImportsCheck = [ "textdistance" ]; meta = with lib; { description = "Python library for comparing distance between two or more sequences"; diff --git a/pkgs/development/python-modules/textfsm/default.nix b/pkgs/development/python-modules/textfsm/default.nix index 84eba320791c..38d07c9f1095 100644 --- a/pkgs/development/python-modules/textfsm/default.nix +++ b/pkgs/development/python-modules/textfsm/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, future -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + future, + pytestCheckHook, }: buildPythonPackage rec { @@ -11,7 +12,6 @@ buildPythonPackage rec { version = "1.1.3"; format = "setuptools"; - src = fetchFromGitHub { owner = "google"; repo = pname; @@ -30,9 +30,7 @@ buildPythonPackage rec { future ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python module for parsing semi-structured text into python tables"; diff --git a/pkgs/development/python-modules/textile/default.nix b/pkgs/development/python-modules/textile/default.nix index 01686e4fc2ac..725e6adae549 100644 --- a/pkgs/development/python-modules/textile/default.nix +++ b/pkgs/development/python-modules/textile/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, html5lib -, pytestCheckHook -, pythonOlder -, regex +{ + lib, + buildPythonPackage, + fetchFromGitHub, + html5lib, + pytestCheckHook, + pythonOlder, + regex, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pytest.ini \ --replace " --cov=textile --cov-report=html --cov-append --cov-report=term-missing" "" ''; - pythonImportsCheck = [ - "textile" - ]; + pythonImportsCheck = [ "textile" ]; meta = with lib; { description = "MOdule for generating web text"; diff --git a/pkgs/development/python-modules/textnets/default.nix b/pkgs/development/python-modules/textnets/default.nix index 399bc5288022..9defe9da25ab 100644 --- a/pkgs/development/python-modules/textnets/default.nix +++ b/pkgs/development/python-modules/textnets/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, cairocffi -, cython -, fetchPypi -, igraph -, leidenalg -, pandas -, poetry-core -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, scipy -, setuptools -, spacy -, spacy-lookups-data -, en_core_web_sm -, toolz -, tqdm -, wasabi +{ + lib, + buildPythonPackage, + cairocffi, + cython, + fetchPypi, + igraph, + leidenalg, + pandas, + poetry-core, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + scipy, + setuptools, + spacy, + spacy-lookups-data, + en_core_web_sm, + toolz, + tqdm, + wasabi, }: buildPythonPackage rec { @@ -39,7 +40,10 @@ buildPythonPackage rec { setuptools ]; - pythonRelaxDeps = [ "igraph" "leidenalg" ]; + pythonRelaxDeps = [ + "igraph" + "leidenalg" + ]; propagatedBuildInputs = [ cairocffi @@ -59,9 +63,7 @@ buildPythonPackage rec { en_core_web_sm ]; - pythonImportsCheck = [ - "textnets" - ]; + pythonImportsCheck = [ "textnets" ]; # Enables the package to find the cythonized .so files during testing. See #255262 preCheck = '' diff --git a/pkgs/development/python-modules/textparser/default.nix b/pkgs/development/python-modules/textparser/default.nix index 86c436ac21f9..550c7f2c9af4 100644 --- a/pkgs/development/python-modules/textparser/default.nix +++ b/pkgs/development/python-modules/textparser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-VvcI51qp0AKtt22CO6bvFm1+zsHj5MpMHKED+BdWgzU="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "textparser" - ]; + pythonImportsCheck = [ "textparser" ]; meta = with lib; { homepage = "https://github.com/eerimoq/textparser"; diff --git a/pkgs/development/python-modules/texttable/default.nix b/pkgs/development/python-modules/texttable/default.nix index d1134a28601a..10d123e08da3 100644 --- a/pkgs/development/python-modules/texttable/default.nix +++ b/pkgs/development/python-modules/texttable/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-LSBo+1URWAfTrHekymj6SIA+hOuw7iNA+FgQejZSJjg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "texttable" - ]; + pythonImportsCheck = [ "texttable" ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; meta = with lib; { description = "Module to generate a formatted text table, using ASCII characters"; diff --git a/pkgs/development/python-modules/textual-dev/default.nix b/pkgs/development/python-modules/textual-dev/default.nix index d8ca583d97b6..41fcf67a5404 100644 --- a/pkgs/development/python-modules/textual-dev/default.nix +++ b/pkgs/development/python-modules/textual-dev/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, buildPythonPackage -, click -, fetchFromGitHub -, msgpack -, poetry-core -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, textual -, time-machine -, typing-extensions +{ + lib, + aiohttp, + buildPythonPackage, + click, + fetchFromGitHub, + msgpack, + poetry-core, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + textual, + time-machine, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-QnMKVt1WxnwGnZFNb7Gbus7xewGvyG5xJ0hIKKK5hug="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { time-machine ]; - pythonImportsCheck = [ - "textual_dev" - ]; + pythonImportsCheck = [ "textual_dev" ]; meta = with lib; { description = "Development tools for Textual"; diff --git a/pkgs/development/python-modules/textual-universal-directorytree/default.nix b/pkgs/development/python-modules/textual-universal-directorytree/default.nix index 0e9e3e6d002c..cc574741ecb2 100644 --- a/pkgs/development/python-modules/textual-universal-directorytree/default.nix +++ b/pkgs/development/python-modules/textual-universal-directorytree/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, textual -, universal-pathlib -, adlfs -, aiohttp -, gcsfs -, paramiko -, requests -, s3fs -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + textual, + universal-pathlib, + adlfs, + aiohttp, + gcsfs, + paramiko, + requests, + s3fs, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-ncQ3IRaZaCv1rMUWT9dkUKo6OAEC5pziMCM7adIBGWo="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ textual @@ -47,9 +46,7 @@ buildPythonPackage rec { ]; }; - pythonImportsCheck = [ - "textual_universal_directorytree" - ]; + pythonImportsCheck = [ "textual_universal_directorytree" ]; meta = with lib; { description = "Textual plugin for a DirectoryTree compatible with remote filesystems"; diff --git a/pkgs/development/python-modules/textual/default.nix b/pkgs/development/python-modules/textual/default.nix index c9303d198b62..859f3508e3a4 100644 --- a/pkgs/development/python-modules/textual/default.nix +++ b/pkgs/development/python-modules/textual/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, markdown-it-py -, poetry-core -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, rich -, syrupy -, time-machine -, tree-sitter -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + markdown-it-py, + poetry-core, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + rich, + syrupy, + time-machine, + tree-sitter, + typing-extensions, }: buildPythonPackage rec { @@ -28,16 +29,13 @@ buildPythonPackage rec { hash = "sha256-73qEogHe69B66r4EJOj2RAP95O5z7v/UYARTIEPxrcA="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ markdown-it-py rich typing-extensions - ] ++ markdown-it-py.optional-dependencies.plugins - ++ markdown-it-py.optional-dependencies.linkify; + ] ++ markdown-it-py.optional-dependencies.plugins ++ markdown-it-py.optional-dependencies.linkify; optional-dependencies = { syntax = [ @@ -69,9 +67,7 @@ buildPythonPackage rec { "test_language_binary_missing" ]; - pythonImportsCheck = [ - "textual" - ]; + pythonImportsCheck = [ "textual" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/textwrap3/default.nix b/pkgs/development/python-modules/textwrap3/default.nix index 17832c11b8cf..1cf7dcb376ea 100644 --- a/pkgs/development/python-modules/textwrap3/default.nix +++ b/pkgs/development/python-modules/textwrap3/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "5008eeebdb236f6303dcd68f18b856d355f6197511d952ba74bc75e40e0c3414"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Textwrap from Python 3.6 backport plus a few tweaks"; diff --git a/pkgs/development/python-modules/textx/default.nix b/pkgs/development/python-modules/textx/default.nix index 46847572714c..ec8779e4ccce 100644 --- a/pkgs/development/python-modules/textx/default.nix +++ b/pkgs/development/python-modules/textx/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, python -, fetchFromGitHub -, mkdocs -, twine -, arpeggio -, click -, future -, setuptools -, callPackage -, gprof2dot -, html5lib -, jinja2 -, psutil -, pytestCheckHook +{ + lib, + buildPythonPackage, + python, + fetchFromGitHub, + mkdocs, + twine, + arpeggio, + click, + future, + setuptools, + callPackage, + gprof2dot, + html5lib, + jinja2, + psutil, + pytestCheckHook, }: let @@ -59,9 +60,7 @@ let cp -r tests $testout/tests ''; - pythonImportsCheck = [ - "textx" - ]; + pythonImportsCheck = [ "textx" ]; # Circular dependencies, do tests in passthru.tests instead. doCheck = false; @@ -73,8 +72,9 @@ let textx-example-project textx-flow-codegen textx-flow-dsl - textx-types-dsl; - }; + textx-types-dsl + ; + }; }; meta = with lib; { @@ -131,9 +131,7 @@ let format = "setuptools"; pathToSourceRoot = "tests/functional/registration/projects/flow_dsl"; sourceRoot = "${src.name}/" + pathToSourceRoot; - propagatedBuildInputs = [ - textx - ]; + propagatedBuildInputs = [ textx ]; meta = with lib; { inherit (textx.meta) license maintainers; description = "Sample textX language for testing"; @@ -148,9 +146,7 @@ let format = "setuptools"; pathToSourceRoot = "tests/functional/registration/projects/types_dsl"; sourceRoot = "${src.name}/" + pathToSourceRoot; - propagatedBuildInputs = [ - textx - ]; + propagatedBuildInputs = [ textx ]; meta = with lib; { inherit (textx.meta) license maintainers; description = "Sample textX language for testing"; @@ -165,9 +161,7 @@ let format = "setuptools"; pathToSourceRoot = "tests/functional/subcommands/example_project"; sourceRoot = "${src.name}/" + pathToSourceRoot; - propagatedBuildInputs = [ - textx - ]; + propagatedBuildInputs = [ textx ]; meta = with lib; { inherit (textx.meta) license maintainers; description = "Sample textX sub-command for testing"; @@ -175,4 +169,4 @@ let }; }; in - textx +textx diff --git a/pkgs/development/python-modules/textx/tests.nix b/pkgs/development/python-modules/textx/tests.nix index 488c276e910f..b991c8ed25c9 100644 --- a/pkgs/development/python-modules/textx/tests.nix +++ b/pkgs/development/python-modules/textx/tests.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, click -, gprof2dot -, html5lib -, jinja2 -, memory-profiler -, psutil -, pytestCheckHook -, setuptools -, textx -, textx-data-dsl -, textx-example-project -, textx-flow-codegen -, textx-flow-dsl -, textx-types-dsl +{ + lib, + buildPythonPackage, + click, + gprof2dot, + html5lib, + jinja2, + memory-profiler, + psutil, + pytestCheckHook, + setuptools, + textx, + textx-data-dsl, + textx-example-project, + textx-flow-codegen, + textx-flow-dsl, + textx-types-dsl, }: buildPythonPackage { @@ -41,9 +42,7 @@ buildPythonPackage { textx-types-dsl ]; - pytestFlagsArray = [ - "tests/functional" - ]; + pytestFlagsArray = [ "tests/functional" ]; meta = with lib; { inherit (textx.meta) license maintainers; diff --git a/pkgs/development/python-modules/tf2onnx/default.nix b/pkgs/development/python-modules/tf2onnx/default.nix index deb739ce162f..cd7489b538b4 100644 --- a/pkgs/development/python-modules/tf2onnx/default.nix +++ b/pkgs/development/python-modules/tf2onnx/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook -, pytest-runner -# runtime dependencies -, numpy -, onnx -, requests -, six -, flatbuffers -, protobuf -, tensorflow -# check dependencies -, pytestCheckHook -, graphviz -, parameterized -, pytest-cov -, pyyaml -, timeout-decorator -, onnxruntime -, keras +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, + pytest-runner, + # runtime dependencies + numpy, + onnx, + requests, + six, + flatbuffers, + protobuf, + tensorflow, + # check dependencies + pytestCheckHook, + graphviz, + parameterized, + pytest-cov, + pyyaml, + timeout-decorator, + onnxruntime, + keras, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { pytest-runner ]; - pythonRelaxDeps = [ - "flatbuffers" - ]; + pythonRelaxDeps = [ "flatbuffers" ]; propagatedBuildInputs = [ numpy @@ -73,9 +72,7 @@ buildPythonPackage rec { "tests/test_einsum_optimizers.py" ]; - disabledTests = [ - "test_profile_conversion_time" - ]; + disabledTests = [ "test_profile_conversion_time" ]; meta = with lib; { description = "Convert TensorFlow, Keras, Tensorflow.js and Tflite models to ONNX"; diff --git a/pkgs/development/python-modules/tflearn/default.nix b/pkgs/development/python-modules/tflearn/default.nix index d2eee46f14ce..3bd15b7fba5e 100644 --- a/pkgs/development/python-modules/tflearn/default.nix +++ b/pkgs/development/python-modules/tflearn/default.nix @@ -1,5 +1,13 @@ -{ lib, fetchPypi, buildPythonPackage, pytest, scipy, h5py -, pillow, tensorflow }: +{ + lib, + fetchPypi, + buildPythonPackage, + pytest, + scipy, + h5py, + pillow, + tensorflow, +}: buildPythonPackage rec { pname = "tflearn"; @@ -13,13 +21,18 @@ buildPythonPackage rec { buildInputs = [ pytest ]; - propagatedBuildInputs = [ scipy h5py pillow tensorflow ]; + propagatedBuildInputs = [ + scipy + h5py + pillow + tensorflow + ]; doCheck = false; meta = with lib; { description = "Deep learning library featuring a higher-level API for TensorFlow"; - homepage = "https://github.com/tflearn/tflearn"; - license = licenses.mit; + homepage = "https://github.com/tflearn/tflearn"; + license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/tftpy/default.nix b/pkgs/development/python-modules/tftpy/default.nix index 92589c8cfc22..2fe4c4b7b266 100644 --- a/pkgs/development/python-modules/tftpy/default.nix +++ b/pkgs/development/python-modules/tftpy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tgcrypto/default.nix b/pkgs/development/python-modules/tgcrypto/default.nix index 6d5ebba2ee1e..2eb68c4f59d4 100644 --- a/pkgs/development/python-modules/tgcrypto/default.nix +++ b/pkgs/development/python-modules/tgcrypto/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-u+mXzkmM79NBi4oHnb32RbN9WPnba/cm1q2Ko0uNEZg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "tgcrypto" ]; diff --git a/pkgs/development/python-modules/theano-pymc/default.nix b/pkgs/development/python-modules/theano-pymc/default.nix index fa8218237cc1..31c08585e006 100644 --- a/pkgs/development/python-modules/theano-pymc/default.nix +++ b/pkgs/development/python-modules/theano-pymc/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, pandas -, numpy -, scipy -, filelock -, pytest -, nose -, parameterized +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + pandas, + numpy, + scipy, + filelock, + pytest, + nose, + parameterized, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/theano/default.nix b/pkgs/development/python-modules/theano/default.nix index ef8b80953390..8d10dc61a9a1 100644 --- a/pkgs/development/python-modules/theano/default.nix +++ b/pkgs/development/python-modules/theano/default.nix @@ -1,19 +1,22 @@ -{ lib, stdenv -, runCommandCC -, fetchPypi -, buildPythonPackage -, isPyPy -, pythonOlder -, isPy3k -, nose -, numpy -, scipy -, setuptools -, six -, libgpuarray -, config -, cudaSupport ? config.cudaSupport, cudaPackages ? { } -, cudnnSupport ? cudaSupport +{ + lib, + stdenv, + runCommandCC, + fetchPypi, + buildPythonPackage, + isPyPy, + pythonOlder, + isPy3k, + nose, + numpy, + scipy, + setuptools, + six, + libgpuarray, + config, + cudaSupport ? config.cudaSupport, + cudaPackages ? { }, + cudnnSupport ? cudaSupport, }: let @@ -23,7 +26,8 @@ in assert cudnnSupport -> cudaSupport; let - wrapped = command: buildTop: buildInputs: + wrapped = + command: buildTop: buildInputs: runCommandCC "${command}-wrapped" { inherit buildInputs; } '' type -P '${command}' || { echo '${command}: not found'; exit 1; } cat > "$out" <=3.0.2,<3.1.0" "preshed" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - cython_0 - ] ++ lib.optionals stdenv.isDarwin [ - Accelerate - CoreFoundation - CoreGraphics - CoreVideo - ]; + buildInputs = + [ cython_0 ] + ++ lib.optionals stdenv.isDarwin [ + Accelerate + CoreFoundation + CoreGraphics + CoreVideo + ]; propagatedBuildInputs = [ blis @@ -71,9 +70,7 @@ buildPythonPackage rec { srsly tqdm wasabi - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ hypothesis @@ -90,9 +87,7 @@ buildPythonPackage rec { rm -r thinc ''; - pythonImportsCheck = [ - "thinc" - ]; + pythonImportsCheck = [ "thinc" ]; meta = with lib; { description = "Library for NLP machine learning"; diff --git a/pkgs/development/python-modules/thorlabspm100/default.nix b/pkgs/development/python-modules/thorlabspm100/default.nix index 333105d0ad6f..c88dab853f57 100644 --- a/pkgs/development/python-modules/thorlabspm100/default.nix +++ b/pkgs/development/python-modules/thorlabspm100/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, + setuptools-scm, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-X4qEow6u4aE0sbFwZfK3YEso2RS0c9j4iaWJPHaPQV4="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "ThorlabsPM100" - ]; + pythonImportsCheck = [ "ThorlabsPM100" ]; meta = with lib; { description = "Interface to the PM100A/D power meter from Thorlabs"; diff --git a/pkgs/development/python-modules/threadloop/default.nix b/pkgs/development/python-modules/threadloop/default.nix index fdf0e3a08114..c6fce7e1b499 100644 --- a/pkgs/development/python-modules/threadloop/default.nix +++ b/pkgs/development/python-modules/threadloop/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, lib -, tornado +{ + buildPythonPackage, + fetchPypi, + lib, + tornado, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "8b180aac31013de13c2ad5c834819771992d350267bddb854613ae77ef571944"; }; - propagatedBuildInputs = [ - tornado - ]; + propagatedBuildInputs = [ tornado ]; doCheck = false; # ImportError: cannot import name 'ThreadLoop' from 'threadloop' diff --git a/pkgs/development/python-modules/threadpool/default.nix b/pkgs/development/python-modules/threadpool/default.nix index 4b08fd7acef8..d3e0499b0354 100644 --- a/pkgs/development/python-modules/threadpool/default.nix +++ b/pkgs/development/python-modules/threadpool/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { description = "Easy to use object-oriented thread pool framework"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/threadpoolctl/default.nix b/pkgs/development/python-modules/threadpoolctl/default.nix index a8d3cd41e6a8..14ae9cca78ce 100644 --- a/pkgs/development/python-modules/threadpoolctl/default.nix +++ b/pkgs/development/python-modules/threadpoolctl/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, flit-core -, pytestCheckHook -, numpy -, scipy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + flit-core, + pytestCheckHook, + numpy, + scipy, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-nWaBhiFw76azx6dV4I18XodiUnHiLb0gNNhXks6iHIg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook @@ -47,9 +46,7 @@ buildPythonPackage rec { "test_threadpool_limits_manual_restore" ]; - pythonImportsCheck = [ - "threadpoolctl" - ]; + pythonImportsCheck = [ "threadpoolctl" ]; meta = with lib; { homepage = "https://github.com/joblib/threadpoolctl"; @@ -57,5 +54,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ bcdarwin ]; }; - } diff --git a/pkgs/development/python-modules/threat9-test-bed/default.nix b/pkgs/development/python-modules/threat9-test-bed/default.nix index cb4f47e6496e..8f4cc23d3e8e 100644 --- a/pkgs/development/python-modules/threat9-test-bed/default.nix +++ b/pkgs/development/python-modules/threat9-test-bed/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, click -, faker -, fetchFromGitHub -, flask -, gunicorn -, pyopenssl -, pytestCheckHook -, pythonOlder -, setuptools-scm -, requests +{ + lib, + buildPythonPackage, + click, + faker, + fetchFromGitHub, + flask, + gunicorn, + pyopenssl, + pytestCheckHook, + pythonOlder, + setuptools-scm, + requests, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-0YSjMf2gDdrvkDaT77iwfCkiDDXKHnZyI8d7JmBSuCg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ click @@ -39,13 +38,9 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "threat9_test_bed" - ]; + pythonImportsCheck = [ "threat9_test_bed" ]; disabledTests = [ # Assertion issue with the response codes diff --git a/pkgs/development/python-modules/three-merge/default.nix b/pkgs/development/python-modules/three-merge/default.nix index 18d9eea211e5..c30c0a018d21 100644 --- a/pkgs/development/python-modules/three-merge/default.nix +++ b/pkgs/development/python-modules/three-merge/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, diff-match-patch }: +{ + lib, + buildPythonPackage, + fetchPypi, + diff-match-patch, +}: buildPythonPackage rec { pname = "three-merge"; diff --git a/pkgs/development/python-modules/thrift/default.nix b/pkgs/development/python-modules/thrift/default.nix index 40f959122690..37ea57125052 100644 --- a/pkgs/development/python-modules/thrift/default.nix +++ b/pkgs/development/python-modules/thrift/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/throttler/default.nix b/pkgs/development/python-modules/throttler/default.nix index dea390403592..e42a9d48fae0 100644 --- a/pkgs/development/python-modules/throttler/default.nix +++ b/pkgs/development/python-modules/throttler/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, aiohttp -, codecov -, flake8 -, pytest -, pytest-asyncio -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + aiohttp, + codecov, + flake8, + pytest, + pytest-asyncio, + pytest-cov, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/thttp/default.nix b/pkgs/development/python-modules/thttp/default.nix index 0e42f2a0c23a..fe755ea20efa 100644 --- a/pkgs/development/python-modules/thttp/default.nix +++ b/pkgs/development/python-modules/thttp/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-e15QMRMpTcWo8TfH3tk23ybSlXFb8F4B/eqAp9oyK8g="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "thttp" - ]; + pythonImportsCheck = [ "thttp" ]; meta = with lib; { description = "A lightweight wrapper around urllib"; diff --git a/pkgs/development/python-modules/tidyexc/default.nix b/pkgs/development/python-modules/tidyexc/default.nix index 5e14812fe7bc..71e62e6d8a94 100644 --- a/pkgs/development/python-modules/tidyexc/default.nix +++ b/pkgs/development/python-modules/tidyexc/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, flit +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + flit, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { sha256 = "1gl1jmihafawg7hvnn4xb20vd2x5qpvca0m1wr2gk0m2jj42yiq6"; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; - pythonImportsCheck = [ - "tidyexc" - ]; + pythonImportsCheck = [ "tidyexc" ]; meta = with lib; { description = "Raise rich, helpful exceptions"; diff --git a/pkgs/development/python-modules/tifffile/default.nix b/pkgs/development/python-modules/tifffile/default.nix index 21931254d202..d2ffa700b8da 100644 --- a/pkgs/development/python-modules/tifffile/default.nix +++ b/pkgs/development/python-modules/tifffile/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, dask -, fetchPypi -, fsspec -, lxml -, numpy -, pytestCheckHook -, pythonOlder -, zarr +{ + lib, + buildPythonPackage, + dask, + fetchPypi, + fsspec, + lxml, + numpy, + pytestCheckHook, + pythonOlder, + zarr, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-X/zXe513w6raEnhjGvXIrHiEOEUv2i6xubYNVVPpXII="; }; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ dask @@ -51,9 +50,7 @@ buildPythonPackage rec { "test_issue_invalid_predictor" ]; - pythonImportsCheck = [ - "tifffile" - ]; + pythonImportsCheck = [ "tifffile" ]; # flaky, often killed due to OOM or timeout env.SKIP_LARGE = "1"; diff --git a/pkgs/development/python-modules/tika-client/default.nix b/pkgs/development/python-modules/tika-client/default.nix index e148fce24163..c99ce3fe20f6 100644 --- a/pkgs/development/python-modules/tika-client/default.nix +++ b/pkgs/development/python-modules/tika-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, hatchling -, httpx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + hatchling, + httpx, }: buildPythonPackage rec { pname = "tika-client"; @@ -23,9 +24,7 @@ buildPythonPackage rec { hatchling httpx ]; - pythonImportsCheck = [ - "tika_client" - ]; + pythonImportsCheck = [ "tika_client" ]; # Almost all of the tests (all except one in 0.1.0) fail since there # is no tika http API endpoint reachable. Since tika is not yet # packaged for nixpkgs, it seems like an unreasonable amount of effort diff --git a/pkgs/development/python-modules/tika/default.nix b/pkgs/development/python-modules/tika/default.nix index f9a645890084..7152da2c881f 100644 --- a/pkgs/development/python-modules/tika/default.nix +++ b/pkgs/development/python-modules/tika/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyyaml -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pyyaml, + requests, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { hash = "sha256-VmcOuBKUTrJe1z8bOwdapB56E1t0skCCLyi4GeWzc9o="; }; - propagatedBuildInputs = [ pyyaml requests ]; + propagatedBuildInputs = [ + pyyaml + requests + ]; # Requires network doCheck = false; diff --git a/pkgs/development/python-modules/tiktoken/default.nix b/pkgs/development/python-modules/tiktoken/default.nix index 3cf68063f119..1a386a2bacf6 100644 --- a/pkgs/development/python-modules/tiktoken/default.nix +++ b/pkgs/development/python-modules/tiktoken/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, pythonOlder -, rustPlatform -, cargo -, rustc -, setuptools -, setuptools-rust -, wheel -, libiconv -, requests -, regex -, blobfile +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + pythonOlder, + rustPlatform, + cargo, + rustc, + setuptools, + setuptools-rust, + wheel, + libiconv, + requests, + regex, + blobfile, }: let pname = "tiktoken"; @@ -26,7 +27,12 @@ let ''; in buildPythonPackage { - inherit pname version src postPatch; + inherit + pname + version + src + postPatch + ; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -61,9 +67,7 @@ buildPythonPackage { # almost all tests require network access doCheck = false; - pythonImportsCheck = [ - "tiktoken" - ]; + pythonImportsCheck = [ "tiktoken" ]; meta = with lib; { description = "tiktoken is a fast BPE tokeniser for use with OpenAI's models."; diff --git a/pkgs/development/python-modules/tikzplotlib/default.nix b/pkgs/development/python-modules/tikzplotlib/default.nix index 564d8e58b8ee..e09c735f4c1f 100644 --- a/pkgs/development/python-modules/tikzplotlib/default.nix +++ b/pkgs/development/python-modules/tikzplotlib/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, pillow -, webcolors -, flit-core -, pytestCheckHook -, pandas +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + pillow, + webcolors, + flit-core, + pytestCheckHook, + pandas, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tiledb/default.nix b/pkgs/development/python-modules/tiledb/default.nix index 3231ae803633..a9cfbc082c90 100644 --- a/pkgs/development/python-modules/tiledb/default.nix +++ b/pkgs/development/python-modules/tiledb/default.nix @@ -1,16 +1,17 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitHub -, cython -, pybind11 -, tiledb -, numpy -, wheel -, isPy3k -, setuptools-scm -, psutil -, pandas +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + cython, + pybind11, + tiledb, + numpy, + wheel, + isPy3k, + setuptools-scm, + psutil, + pandas, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - tiledb - ]; + buildInputs = [ tiledb ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/tilequant/default.nix b/pkgs/development/python-modules/tilequant/default.nix index 906f644d89b1..66d735d966bd 100644 --- a/pkgs/development/python-modules/tilequant/default.nix +++ b/pkgs/development/python-modules/tilequant/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, ordered-set -, pillow -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, setuptools-dso -, sortedcollections +{ + lib, + buildPythonPackage, + click, + fetchPypi, + ordered-set, + pillow, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + setuptools-dso, + sortedcollections, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-uW1g3nlT6Y+1beifo/MOlGxsGL7on/jcAROxSddySHk="; }; - pythonRelaxDeps = [ - "pillow" - ]; + pythonRelaxDeps = [ "pillow" ]; build-system = [ pythonRelaxDepsHook @@ -42,9 +41,7 @@ buildPythonPackage rec { doCheck = false; # there are no tests - pythonImportsCheck = [ - "tilequant" - ]; + pythonImportsCheck = [ "tilequant" ]; meta = with lib; { description = "Tool for quantizing image colors using tile-based palette restrictions"; diff --git a/pkgs/development/python-modules/tiler/default.nix b/pkgs/development/python-modules/tiler/default.nix index 9de7bc0ec92f..40766f6436c6 100644 --- a/pkgs/development/python-modules/tiler/default.nix +++ b/pkgs/development/python-modules/tiler/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, numpy -, tqdm -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + numpy, + tqdm, + pytestCheckHook, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { tqdm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "tiler" ]; diff --git a/pkgs/development/python-modules/tilestache/default.nix b/pkgs/development/python-modules/tilestache/default.nix index a33a219b1f02..3fac56f31be5 100644 --- a/pkgs/development/python-modules/tilestache/default.nix +++ b/pkgs/development/python-modules/tilestache/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, modestmaps -, pillow -, pycairo -, python-mapnik -, simplejson -, werkzeug -, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + modestmaps, + pillow, + pycairo, + python-mapnik, + simplejson, + werkzeug, + isPy27, }: buildPythonPackage rec { @@ -22,12 +23,18 @@ buildPythonPackage rec { sha256 = "1qjrabl6qr7i6yj6v647ck92abcyklb0vmb6h6kj7x8v2cj5xbvk"; }; - propagatedBuildInputs = [ modestmaps pillow pycairo python-mapnik simplejson werkzeug ]; + propagatedBuildInputs = [ + modestmaps + pillow + pycairo + python-mapnik + simplejson + werkzeug + ]; meta = with lib; { description = "A tile server for rendered geographic data"; homepage = "http://tilestache.org"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/tilt-ble/default.nix b/pkgs/development/python-modules/tilt-ble/default.nix index 1be167f9a88a..11c8961308b7 100644 --- a/pkgs/development/python-modules/tilt-ble/default.nix +++ b/pkgs/development/python-modules/tilt-ble/default.nix @@ -1,12 +1,13 @@ -{ lib -, bluetooth-sensor-state-data -, buildPythonPackage -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pytestCheckHook -, pythonOlder -, sensor-state-data +{ + lib, + bluetooth-sensor-state-data, + buildPythonPackage, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pytestCheckHook, + pythonOlder, + sensor-state-data, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-ok9XWx47hcke535480NORfS1pSagaOJvMR48lYTa/Tg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ bluetooth-sensor-state-data @@ -33,18 +32,14 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=tilt_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "tilt_ble" - ]; + pythonImportsCheck = [ "tilt_ble" ]; meta = with lib; { description = "Library for Tilt BLE devices"; diff --git a/pkgs/development/python-modules/time-machine/default.nix b/pkgs/development/python-modules/time-machine/default.nix index 6ce2e7194c8c..8d2490f428e0 100644 --- a/pkgs/development/python-modules/time-machine/default.nix +++ b/pkgs/development/python-modules/time-machine/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonAtLeast -, pythonOlder -, setuptools -, backports-zoneinfo -, python-dateutil -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonAtLeast, + pythonOlder, + setuptools, + backports-zoneinfo, + python-dateutil, + pytestCheckHook, }: buildPythonPackage rec { @@ -23,19 +24,13 @@ buildPythonPackage rec { hash = "sha256-SjenPLLr4JoWK5HAokwgW+bw3mfAZiuDb1N7Za5wtrw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ python-dateutil - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals (pythonAtLeast "3.9") [ # https://github.com/adamchainz/time-machine/issues/405 @@ -47,9 +42,7 @@ buildPythonPackage rec { "test_move_to_datetime_with_tzinfo_zoneinfo" ]; - pythonImportsCheck = [ - "time_machine" - ]; + pythonImportsCheck = [ "time_machine" ]; meta = with lib; { changelog = "https://github.com/adamchainz/time-machine/blob/${src.rev}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/timeago/default.nix b/pkgs/development/python-modules/timeago/default.nix index 8f450d2c03a8..a1bd21cf16ae 100644 --- a/pkgs/development/python-modules/timeago/default.nix +++ b/pkgs/development/python-modules/timeago/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "sha256-PqORJKAVrjezU/yP2ky3gb1XsM8obDI3GQzi+mok/OM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "test/testcase.py" ]; diff --git a/pkgs/development/python-modules/timelib/default.nix b/pkgs/development/python-modules/timelib/default.nix index 2667867505a6..15e7251dd6a0 100644 --- a/pkgs/development/python-modules/timelib/default.nix +++ b/pkgs/development/python-modules/timelib/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, cython -, fetchPypi +{ + lib, + buildPythonPackage, + cython, + fetchPypi, }: buildPythonPackage rec { @@ -14,14 +15,11 @@ buildPythonPackage rec { hash = "sha256-0bInBlVxhuYFjaiLoPhYN0AbKuneFX9ZNT3JeNglGHo="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; meta = with lib; { description = "Parse english textual date descriptions"; homepage = "https://github.com/pediapress/timelib/"; license = licenses.zlib; }; - } diff --git a/pkgs/development/python-modules/timeout-decorator/default.nix b/pkgs/development/python-modules/timeout-decorator/default.nix index 2907117d3483..ea7750dfc97e 100644 --- a/pkgs/development/python-modules/timeout-decorator/default.nix +++ b/pkgs/development/python-modules/timeout-decorator/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "timeout-decorator"; version = "0.5.0"; diff --git a/pkgs/development/python-modules/timeslot/default.nix b/pkgs/development/python-modules/timeslot/default.nix index 1a71651ca054..d1ac79f37995 100644 --- a/pkgs/development/python-modules/timeslot/default.nix +++ b/pkgs/development/python-modules/timeslot/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { disabled = pythonOlder "3.6"; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ # The pyproject.toml specifies the flag `--cov=timeslot`, diff --git a/pkgs/development/python-modules/timetagger/default.nix b/pkgs/development/python-modules/timetagger/default.nix index 3edaa1452904..a775c3d01f25 100644 --- a/pkgs/development/python-modules/timetagger/default.nix +++ b/pkgs/development/python-modules/timetagger/default.nix @@ -1,20 +1,21 @@ -{ lib -, stdenv -, asgineer -, bcrypt -, buildPythonPackage -, fetchFromGitHub -, iptools -, itemdb -, jinja2 -, markdown -, nodejs -, pscript -, pyjwt -, pytestCheckHook -, pythonOlder -, requests -, uvicorn +{ + lib, + stdenv, + asgineer, + bcrypt, + buildPythonPackage, + fetchFromGitHub, + iptools, + itemdb, + jinja2, + markdown, + nodejs, + pscript, + pyjwt, + pytestCheckHook, + pythonOlder, + requests, + uvicorn, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/timezonefinder/default.nix b/pkgs/development/python-modules/timezonefinder/default.nix index 79675ebc629a..07f8fce863e9 100644 --- a/pkgs/development/python-modules/timezonefinder/default.nix +++ b/pkgs/development/python-modules/timezonefinder/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cffi -, h3 -, numba -, numpy -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cffi, + h3, + numba, + numpy, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -42,9 +43,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "timezonefinder" - ]; + pythonImportsCheck = [ "timezonefinder" ]; preCheck = '' # Some tests need the CLI on the PATH diff --git a/pkgs/development/python-modules/timing-asgi/default.nix b/pkgs/development/python-modules/timing-asgi/default.nix index d1dc1ccc81b4..30798baa5ba1 100644 --- a/pkgs/development/python-modules/timing-asgi/default.nix +++ b/pkgs/development/python-modules/timing-asgi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, asynctest -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + asynctest, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { --replace-fail "poetry>=" "poetry-core>=" ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; pythonImportsCheck = [ "timing_asgi" ]; diff --git a/pkgs/development/python-modules/timm/default.nix b/pkgs/development/python-modules/timm/default.nix index 087b25003acc..be58f447dba4 100644 --- a/pkgs/development/python-modules/timm/default.nix +++ b/pkgs/development/python-modules/timm/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pdm-backend -, huggingface-hub -, pyyaml -, safetensors -, torch -, torchvision -, expecttest -, pytestCheckHook -, pytest-timeout +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pdm-backend, + huggingface-hub, + pyyaml, + safetensors, + torch, + torchvision, + expecttest, + pytestCheckHook, + pytest-timeout, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-h2J1v2zXUMGRKBBqq+RnxrXKOzlD5RRrVoODWSuj9Ms="; }; - build-system = [ - pdm-backend - ]; + build-system = [ pdm-backend ]; dependencies = [ huggingface-hub @@ -45,9 +44,7 @@ buildPythonPackage rec { pytest-timeout ]; - pytestFlagsArray = [ - "tests" - ]; + pytestFlagsArray = [ "tests" ]; disabledTestPaths = [ # Takes too long and also tries to download models diff --git a/pkgs/development/python-modules/tiny-proxy/default.nix b/pkgs/development/python-modules/tiny-proxy/default.nix index 9a319d90a164..48c2bb04f664 100644 --- a/pkgs/development/python-modules/tiny-proxy/default.nix +++ b/pkgs/development/python-modules/tiny-proxy/default.nix @@ -1,9 +1,10 @@ -{ lib -, anyio -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + anyio, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-59T09qcOstl/yfzQmNlTNxGerQethZntwDAHwz/5FFM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - anyio - ]; + propagatedBuildInputs = [ anyio ]; # The tests depend on httpx-socks, whose tests depend on tiny-proxy. doCheck = false; - pythonImportsCheck = [ - "tiny_proxy" - ]; + pythonImportsCheck = [ "tiny_proxy" ]; meta = with lib; { description = "SOCKS5/SOCKS4/HTTP proxy server"; diff --git a/pkgs/development/python-modules/tinycss/default.nix b/pkgs/development/python-modules/tinycss/default.nix index aa537c6a6135..8d9d2bf4920c 100644 --- a/pkgs/development/python-modules/tinycss/default.nix +++ b/pkgs/development/python-modules/tinycss/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cssutils -, cython -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + cssutils, + cython, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,17 +24,11 @@ buildPythonPackage rec { sed -i "/--cov/d" setup.cfg ''; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ - cssutils - ]; + propagatedBuildInputs = [ cssutils ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preBuild = '' # Force Cython to re-generate this file. If it is present, Cython will @@ -46,9 +41,7 @@ buildPythonPackage rec { # Disable Cython tests TINYCSS_SKIP_SPEEDUPS_TESTS = true; - pythonImportsCheck = [ - "tinycss" - ]; + pythonImportsCheck = [ "tinycss" ]; meta = with lib; { description = "Complete yet simple CSS parser for Python"; diff --git a/pkgs/development/python-modules/tinycss2/default.nix b/pkgs/development/python-modules/tinycss2/default.nix index 5e6f441d3d3b..804d4efe5973 100644 --- a/pkgs/development/python-modules/tinycss2/default.nix +++ b/pkgs/development/python-modules/tinycss2/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, webencodings -, pytestCheckHook -, flit-core +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + webencodings, + pytestCheckHook, + flit-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tinydb/default.nix b/pkgs/development/python-modules/tinydb/default.nix index 2786018b99ad..5ad3e1fb4cda 100644 --- a/pkgs/development/python-modules/tinydb/default.nix +++ b/pkgs/development/python-modules/tinydb/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pycodestyle -, pyyaml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pycodestyle, + pyyaml, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-sdWcpkjC8LtOI1k0Wyk4vLXBcwYe1vuQON9J7P8JPxA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' substituteInPlace pytest.ini \ diff --git a/pkgs/development/python-modules/tinygrad/default.nix b/pkgs/development/python-modules/tinygrad/default.nix index 25b1f049bf69..82a57f7d7f08 100644 --- a/pkgs/development/python-modules/tinygrad/default.nix +++ b/pkgs/development/python-modules/tinygrad/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, gpuctypes -, numpy -, tqdm -, hypothesis -, librosa -, onnx -, pillow -, pytest-xdist -, pytestCheckHook -, safetensors -, sentencepiece -, tiktoken -, torch -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + gpuctypes, + numpy, + tqdm, + hypothesis, + librosa, + onnx, + pillow, + pytest-xdist, + pytestCheckHook, + safetensors, + sentencepiece, + tiktoken, + torch, + transformers, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tinyobjloader-py/default.nix b/pkgs/development/python-modules/tinyobjloader-py/default.nix index 21dc0a5f4ddf..1d0b621c482d 100644 --- a/pkgs/development/python-modules/tinyobjloader-py/default.nix +++ b/pkgs/development/python-modules/tinyobjloader-py/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, pybind11, tinyobjloader }: +{ + lib, + buildPythonPackage, + pybind11, + tinyobjloader, +}: buildPythonPackage rec { pname = "tinyobjloader-py"; @@ -16,7 +21,10 @@ buildPythonPackage rec { doCheck = false; pythonImportsCheck = [ "tinyobjloader" ]; - meta = with lib; tinyobjloader.meta // { - description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader"; - }; + meta = + with lib; + tinyobjloader.meta + // { + description = "Python wrapper for the C++ wavefront .obj loader tinyobjloader"; + }; } diff --git a/pkgs/development/python-modules/tinyrecord/default.nix b/pkgs/development/python-modules/tinyrecord/default.nix index 025ffdeefd49..137d386a652f 100644 --- a/pkgs/development/python-modules/tinyrecord/default.nix +++ b/pkgs/development/python-modules/tinyrecord/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, tinydb +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + tinydb, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { tinydb ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "tinyrecord" - ]; + pythonImportsCheck = [ "tinyrecord" ]; meta = with lib; { description = "Transaction support for TinyDB"; diff --git a/pkgs/development/python-modules/tinysegmenter/default.nix b/pkgs/development/python-modules/tinysegmenter/default.nix index 2b56544061b7..788332d379e8 100644 --- a/pkgs/development/python-modules/tinysegmenter/default.nix +++ b/pkgs/development/python-modules/tinysegmenter/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, unittestCheckHook + unittestCheckHook, -, setuptools + setuptools, }: buildPythonPackage rec { @@ -17,15 +18,14 @@ buildPythonPackage rec { hash = "sha256-ZEWL26VLp0gsAseF+WDPPWz2FZSk2rPWTDJUOQlPwbc="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; pythonImportsCheck = [ "tinysegmenter" ]; diff --git a/pkgs/development/python-modules/tinytuya/default.nix b/pkgs/development/python-modules/tinytuya/default.nix index 36c15f79825a..c2d4889077ac 100644 --- a/pkgs/development/python-modules/tinytuya/default.nix +++ b/pkgs/development/python-modules/tinytuya/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, cryptography -, requests -, colorama + # dependencies + cryptography, + requests, + colorama, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-44x5P+Ej/d6B5n53iDuLDBzkeZZvArpcgzXLJBcIJe0="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ cryptography @@ -36,9 +35,7 @@ buildPythonPackage rec { # Tests require real network resources doCheck = false; - pythonImportsCheck = [ - "tinytuya" - ]; + pythonImportsCheck = [ "tinytuya" ]; meta = with lib; { description = "Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API)"; diff --git a/pkgs/development/python-modules/tissue/default.nix b/pkgs/development/python-modules/tissue/default.nix index 3c5b1a452b5d..f716c1b715f8 100644 --- a/pkgs/development/python-modules/tissue/default.nix +++ b/pkgs/development/python-modules/tissue/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, pep8 +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + pep8, }: buildPythonPackage rec { @@ -24,5 +25,4 @@ buildPythonPackage rec { license = licenses.lgpl2; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/titlecase/default.nix b/pkgs/development/python-modules/titlecase/default.nix index 73d6f7b8876d..813fe48eb074 100644 --- a/pkgs/development/python-modules/titlecase/default.nix +++ b/pkgs/development/python-modules/titlecase/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, regex -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + regex, + setuptools-scm, }: buildPythonPackage rec { @@ -21,25 +22,15 @@ buildPythonPackage rec { hash = "sha256-aJbbfNnQvmmYPXVOO+xx7ADetsxE+jnVQOVDzV5jUp8="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - regex - ]; + propagatedBuildInputs = [ regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "titlecase/tests.py" - ]; + pytestFlagsArray = [ "titlecase/tests.py" ]; - pythonImportsCheck = [ - "titlecase" - ]; + pythonImportsCheck = [ "titlecase" ]; meta = with lib; { description = "Python library to capitalize strings as specified by the New York Times"; diff --git a/pkgs/development/python-modules/tkinter/default.nix b/pkgs/development/python-modules/tkinter/default.nix index ccfc72907014..17b1188695f9 100644 --- a/pkgs/development/python-modules/tkinter/default.nix +++ b/pkgs/development/python-modules/tkinter/default.nix @@ -1,9 +1,10 @@ -{ lib -, stdenv -, buildPythonPackage -, python -, py -, isPyPy +{ + lib, + stdenv, + buildPythonPackage, + python, + py, + isPyPy, }: buildPythonPackage { @@ -14,16 +15,18 @@ buildPythonPackage { disabled = isPyPy; - installPhase = '' - # Move the tkinter module - mkdir -p $out/${py.sitePackages} - mv lib/${py.libPrefix}/lib-dynload/_tkinter* $out/${py.sitePackages}/ - '' + lib.optionalString (!stdenv.isDarwin) '' - # Update the rpath to point to python without x11Support - old_rpath=$(patchelf --print-rpath $out/${py.sitePackages}/_tkinter*) - new_rpath=$(sed "s#${py}#${python}#g" <<< "$old_rpath" ) - patchelf --set-rpath $new_rpath $out/${py.sitePackages}/_tkinter* - ''; + installPhase = + '' + # Move the tkinter module + mkdir -p $out/${py.sitePackages} + mv lib/${py.libPrefix}/lib-dynload/_tkinter* $out/${py.sitePackages}/ + '' + + lib.optionalString (!stdenv.isDarwin) '' + # Update the rpath to point to python without x11Support + old_rpath=$(patchelf --print-rpath $out/${py.sitePackages}/_tkinter*) + new_rpath=$(sed "s#${py}#${python}#g" <<< "$old_rpath" ) + patchelf --set-rpath $new_rpath $out/${py.sitePackages}/_tkinter* + ''; meta = py.meta // { # Based on first sentence from https://docs.python.org/3/library/tkinter.html @@ -50,5 +53,4 @@ buildPythonPackage { documentation for details that are unchanged. ''; }; - } diff --git a/pkgs/development/python-modules/tld/default.nix b/pkgs/development/python-modules/tld/default.nix index 8ec2c85d63a1..e6507b54c994 100644 --- a/pkgs/development/python-modules/tld/default.nix +++ b/pkgs/development/python-modules/tld/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, factory-boy -, faker -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + factory-boy, + faker, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { sed -i "/--cov/d" pytest.ini ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ factory-boy @@ -39,9 +38,7 @@ buildPythonPackage rec { echo > src/tld/tests/test_commands.py ''; - pythonImportsCheck = [ - "tld" - ]; + pythonImportsCheck = [ "tld" ]; meta = with lib; { description = "Extracts the top level domain (TLD) from the URL given"; @@ -50,7 +47,11 @@ buildPythonPackage rec { changelog = "https://github.com/barseghyanartur/tld/blob/${version}/CHANGELOG.rst"; # https://github.com/barseghyanartur/tld/blob/master/README.rst#license # MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later - license = with licenses; [ lgpl21Plus mpl11 gpl2Only ]; + license = with licenses; [ + lgpl21Plus + mpl11 + gpl2Only + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/tldextract/default.nix b/pkgs/development/python-modules/tldextract/default.nix index 2aab849ae5f0..a4044fc8a0ce 100644 --- a/pkgs/development/python-modules/tldextract/default.nix +++ b/pkgs/development/python-modules/tldextract/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, filelock -, idna -, pytest-mock -, pytestCheckHook -, pythonOlder -, requests -, requests-file -, responses -, setuptools -, setuptools-scm -, syrupy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + filelock, + idna, + pytest-mock, + pytestCheckHook, + pythonOlder, + requests, + requests-file, + responses, + setuptools, + setuptools-scm, + syrupy, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "tldextract" - ]; + pythonImportsCheck = [ "tldextract" ]; meta = with lib; { description = "Python module to accurately separate the TLD from the domain of an URL"; diff --git a/pkgs/development/python-modules/tlds/default.nix b/pkgs/development/python-modules/tlds/default.nix index 3967781bb0f8..5efe067d2ed3 100644 --- a/pkgs/development/python-modules/tlds/default.nix +++ b/pkgs/development/python-modules/tlds/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-rmKqY7Z4bBR4r+w4gH04g0Xm9N7QeMVcuFR3pB/pOQY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "tlds" - ]; + pythonImportsCheck = [ "tlds" ]; # no tests doCheck = false; diff --git a/pkgs/development/python-modules/tls-client/default.nix b/pkgs/development/python-modules/tls-client/default.nix index 77e7a2f3e55c..aea819eaca8e 100644 --- a/pkgs/development/python-modules/tls-client/default.nix +++ b/pkgs/development/python-modules/tls-client/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, typing-extensions -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + typing-extensions, + pythonOlder, }: buildPythonPackage rec { @@ -20,20 +21,14 @@ buildPythonPackage rec { hash = "sha256-0eH9fA/oQzrgXcQilUdg4AaTqezj1Q9hP9olhZEDeBc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "tls_client" - ]; + pythonImportsCheck = [ "tls_client" ]; meta = with lib; { description = "Advanced HTTP Library"; diff --git a/pkgs/development/python-modules/tls-parser/default.nix b/pkgs/development/python-modules/tls-parser/default.nix index c9b317c3c22b..9c5cc5724f19 100644 --- a/pkgs/development/python-modules/tls-parser/default.nix +++ b/pkgs/development/python-modules/tls-parser/default.nix @@ -1,8 +1,9 @@ -{ lib -, pythonOlder -, fetchFromGitHub -, buildPythonPackage -, pytestCheckHook +{ + lib, + pythonOlder, + fetchFromGitHub, + buildPythonPackage, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-2XHhUDiJ1EctnYdxYFbNSVLF8dmHP9cZXjziOE9+Dew="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tls_parser" - ]; + pythonImportsCheck = [ "tls_parser" ]; meta = with lib; { description = "Small library to parse TLS records"; diff --git a/pkgs/development/python-modules/tlsh/default.nix b/pkgs/development/python-modules/tlsh/default.nix index a64fd4fd79c2..8bc321100aeb 100644 --- a/pkgs/development/python-modules/tlsh/default.nix +++ b/pkgs/development/python-modules/tlsh/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cmake +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cmake, }: buildPythonPackage rec { @@ -31,5 +32,4 @@ buildPythonPackage rec { license = licenses.asl20; platforms = platforms.unix; }; - } diff --git a/pkgs/development/python-modules/tlslite-ng/default.nix b/pkgs/development/python-modules/tlslite-ng/default.nix index 467a50a4027e..bfad6ff0a087 100644 --- a/pkgs/development/python-modules/tlslite-ng/default.nix +++ b/pkgs/development/python-modules/tlslite-ng/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, ecdsa +{ + lib, + buildPythonPackage, + fetchPypi, + ecdsa, }: buildPythonPackage rec { @@ -22,5 +23,4 @@ buildPythonPackage rec { license = licenses.lgpl2; maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/tlslite/default.nix b/pkgs/development/python-modules/tlslite/default.nix index 52b662be2b2e..b974ad27f8d3 100644 --- a/pkgs/development/python-modules/tlslite/default.nix +++ b/pkgs/development/python-modules/tlslite/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -17,5 +18,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/tlslite"; license = licenses.bsd3; }; - } diff --git a/pkgs/development/python-modules/tlv8/default.nix b/pkgs/development/python-modules/tlv8/default.nix index 05ece63e42e0..4e3045ddff50 100644 --- a/pkgs/development/python-modules/tlv8/default.nix +++ b/pkgs/development/python-modules/tlv8/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { sha256 = "sha256-G35xMFYasKD3LnGi9q8wBmmFvqgtg0HPdC+y82nxRWA="; }; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tlv8" - ]; + pythonImportsCheck = [ "tlv8" ]; meta = with lib; { description = "Type-Length-Value8 (TLV8) for Python"; diff --git a/pkgs/development/python-modules/tmb/default.nix b/pkgs/development/python-modules/tmb/default.nix index 1c5869ac5377..9c97153d9d22 100644 --- a/pkgs/development/python-modules/tmb/default.nix +++ b/pkgs/development/python-modules/tmb/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { VERSION = version; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - pythonImportsCheck = [ - "tmb" - ]; + pythonImportsCheck = [ "tmb" ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/todoist-api-python/default.nix b/pkgs/development/python-modules/todoist-api-python/default.nix index 823fee06a4ac..1c4ff4eafcd8 100644 --- a/pkgs/development/python-modules/todoist-api-python/default.nix +++ b/pkgs/development/python-modules/todoist-api-python/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, requests -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + requests, + responses, }: buildPythonPackage rec { @@ -33,13 +34,9 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytest-asyncio @@ -47,9 +44,7 @@ buildPythonPackage rec { responses ]; - pythonImportsCheck = [ - "todoist_api_python" - ]; + pythonImportsCheck = [ "todoist_api_python" ]; meta = with lib; { description = "Library for the Todoist REST API"; diff --git a/pkgs/development/python-modules/todoist/default.nix b/pkgs/development/python-modules/todoist/default.nix index d3d93e79946b..d5f8bdf31c2b 100644 --- a/pkgs/development/python-modules/todoist/default.nix +++ b/pkgs/development/python-modules/todoist/default.nix @@ -1,8 +1,9 @@ -{ lib -, fetchPypi -, buildPythonPackage -, requests -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-Rkg6eSLiQe8DZaVu2DEnlKLe8RLkRwKmpw+TaYj+lp0="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - pythonImportsCheck = [ - "todoist" - ]; + pythonImportsCheck = [ "todoist" ]; meta = with lib; { description = "The official Todoist Python API library"; diff --git a/pkgs/development/python-modules/token-bucket/default.nix b/pkgs/development/python-modules/token-bucket/default.nix index 0805ee9dea39..a2a9b7a04e7c 100644 --- a/pkgs/development/python-modules/token-bucket/default.nix +++ b/pkgs/development/python-modules/token-bucket/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -36,13 +37,9 @@ buildPythonPackage rec { --replace "'pytest-runner'" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; doCheck = !stdenv.isDarwin; diff --git a/pkgs/development/python-modules/tokenize-rt/default.nix b/pkgs/development/python-modules/tokenize-rt/default.nix index 662f96479834..3f25d158b872 100644 --- a/pkgs/development/python-modules/tokenize-rt/default.nix +++ b/pkgs/development/python-modules/tokenize-rt/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, lib -, fetchFromGitHub -, isPy27 -, setuptools -, pytestCheckHook +{ + buildPythonPackage, + lib, + fetchFromGitHub, + isPy27, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-G4Dn6iZLVOovzfEt9eMzp93mTX+bo0tHI5cCbaJLxBQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A wrapper around the stdlib `tokenize` which roundtrips"; diff --git a/pkgs/development/python-modules/tokenizers/default.nix b/pkgs/development/python-modules/tokenizers/default.nix index 92d55ef4a235..18ccce25f08d 100644 --- a/pkgs/development/python-modules/tokenizers/default.nix +++ b/pkgs/development/python-modules/tokenizers/default.nix @@ -1,24 +1,25 @@ -{ lib -, stdenv -, linkFarm -, buildPythonPackage -, cargo -, datasets -, huggingface-hub -, fetchFromGitHub -, fetchurl -, libiconv -, numpy -, openssl -, pkg-config -, pytestCheckHook -, python -, pythonOlder -, requests -, rustPlatform -, rustc -, Security -, setuptools-rust +{ + lib, + stdenv, + linkFarm, + buildPythonPackage, + cargo, + datasets, + huggingface-hub, + fetchFromGitHub, + fetchurl, + libiconv, + numpy, + openssl, + pkg-config, + pytestCheckHook, + python, + pythonOlder, + requests, + rustPlatform, + rustc, + Security, + setuptools-rust, }: let @@ -77,9 +78,7 @@ buildPythonPackage rec { hash = "sha256-sKEAt46cdme821tzz9WSKnQb3hPmFJ4zvHgBNRxjEuk="; }; - cargoDeps = rustPlatform.importCargoLock { - lockFile = ./Cargo.lock; - }; + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; sourceRoot = "${src.name}/bindings/python"; maturinBuildFlags = [ "--interpreter ${python.executable}" ]; @@ -93,12 +92,12 @@ buildPythonPackage rec { rustc ]; - buildInputs = [ - openssl - ] ++ lib.optionals stdenv.isDarwin [ - libiconv - Security - ]; + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.isDarwin [ + libiconv + Security + ]; # Cargo.lock is outdated # TODO: remove at next release @@ -127,9 +126,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d); ''; - pythonImportsCheck = [ - "tokenizers" - ]; + pythonImportsCheck = [ "tokenizers" ]; disabledTests = [ # Downloads data using the datasets module diff --git a/pkgs/development/python-modules/tokenlib/default.nix b/pkgs/development/python-modules/tokenlib/default.nix index f41723561381..1b0641574eec 100644 --- a/pkgs/development/python-modules/tokenlib/default.nix +++ b/pkgs/development/python-modules/tokenlib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, webob +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + webob, }: buildPythonPackage rec { @@ -17,12 +18,14 @@ buildPythonPackage rec { sha256 = "0bq6dqyfwh29pg8ngmrm4mx4q27an9lsj0p9l79p9snn4g2rxzc8"; }; - propagatedBuildInputs = [ requests webob ]; + propagatedBuildInputs = [ + requests + webob + ]; meta = with lib; { homepage = "https://github.com/mozilla-services/tokenlib"; description = "Generic support library for signed-token-based auth schemes"; license = licenses.mpl20; }; - } diff --git a/pkgs/development/python-modules/tokentrim/default.nix b/pkgs/development/python-modules/tokentrim/default.nix index 9588fadd6cb5..0482ba5e110e 100644 --- a/pkgs/development/python-modules/tokentrim/default.nix +++ b/pkgs/development/python-modules/tokentrim/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, tiktoken +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + tiktoken, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-zr2SLT3MBuMD98g9fdS0mLuijcssRQ/S3+tCq2Cw1/4="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - tiktoken - ]; + propagatedBuildInputs = [ tiktoken ]; pythonImportsCheck = [ "tokentrim" ]; diff --git a/pkgs/development/python-modules/toml-adapt/default.nix b/pkgs/development/python-modules/toml-adapt/default.nix index 6af7f0940ed2..eac465d67ddc 100644 --- a/pkgs/development/python-modules/toml-adapt/default.nix +++ b/pkgs/development/python-modules/toml-adapt/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, toml +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + toml, }: buildPythonPackage rec { @@ -22,22 +23,16 @@ buildPythonPackage rec { hash = "sha256-KD5dTr/wxFbDg3AbfE0jUbgNjvxqDmbHwjY5Dmp6JFI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ click toml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "toml_adapt" - ]; + pythonImportsCheck = [ "toml_adapt" ]; meta = with lib; { description = "A simple Command-line interface for manipulating toml files"; diff --git a/pkgs/development/python-modules/toml/default.nix b/pkgs/development/python-modules/toml/default.nix index aa12d2936c42..9932db2b5cab 100644 --- a/pkgs/development/python-modules/toml/default.nix +++ b/pkgs/development/python-modules/toml/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "toml"; diff --git a/pkgs/development/python-modules/tomli-w/default.nix b/pkgs/development/python-modules/tomli-w/default.nix index 920063fd10eb..40b3162dd3a6 100644 --- a/pkgs/development/python-modules/tomli-w/default.nix +++ b/pkgs/development/python-modules/tomli-w/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, flit-core +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + flit-core, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tomli/default.nix b/pkgs/development/python-modules/tomli/default.nix index b2de1c0dfdeb..407d4c76b560 100644 --- a/pkgs/development/python-modules/tomli/default.nix +++ b/pkgs/development/python-modules/tomli/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, flit-core -, unittestCheckHook +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + flit-core, + unittestCheckHook, # important downstream dependencies -, flit -, black -, mypy -, setuptools-scm + flit, + black, + mypy, + setuptools-scm, }: buildPythonPackage rec { @@ -32,7 +33,12 @@ buildPythonPackage rec { passthru.tests = { # test downstream dependencies - inherit flit black mypy setuptools-scm; + inherit + flit + black + mypy + setuptools-scm + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/tomlkit/default.nix b/pkgs/development/python-modules/tomlkit/default.nix index 94f63be259a6..e398075acca8 100644 --- a/pkgs/development/python-modules/tomlkit/default.nix +++ b/pkgs/development/python-modules/tomlkit/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build-system -, poetry-core + # build-system + poetry-core, -# tests -, pytestCheckHook -, pyyaml + # tests + pytestCheckHook, + pyyaml, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-fKHPwSIygGUXqFFQR7pmoZNp5x7fJDnQ9YJPkQMrbMM="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pyyaml diff --git a/pkgs/development/python-modules/toolz/default.nix b/pkgs/development/python-modules/toolz/default.nix index d11a02a02b7b..4d4e0a71c74d 100644 --- a/pkgs/development/python-modules/toolz/default.nix +++ b/pkgs/development/python-modules/toolz/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/toonapi/default.nix b/pkgs/development/python-modules/toonapi/default.nix index ac51cae1c805..97cfb696c7b5 100644 --- a/pkgs/development/python-modules/toonapi/default.nix +++ b/pkgs/development/python-modules/toonapi/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, backoff -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, yarl +{ + lib, + aiohttp, + backoff, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + yarl, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "toonapi" - ]; + pythonImportsCheck = [ "toonapi" ]; meta = with lib; { description = "Python client for the Quby ToonAPI"; diff --git a/pkgs/development/python-modules/toposort/default.nix b/pkgs/development/python-modules/toposort/default.nix index 5270da85f4a9..6b223545e1a9 100644 --- a/pkgs/development/python-modules/toposort/default.nix +++ b/pkgs/development/python-modules/toposort/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-v7tHnFPQppbqdAJgH05pPJewNng3yImLxkca38o3pr0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "toposort" - ]; + pythonImportsCheck = [ "toposort" ]; meta = with lib; { description = "A topological sort algorithm"; diff --git a/pkgs/development/python-modules/torch-audiomentations/default.nix b/pkgs/development/python-modules/torch-audiomentations/default.nix index 5a849752586b..2a9985ce91b4 100644 --- a/pkgs/development/python-modules/torch-audiomentations/default.nix +++ b/pkgs/development/python-modules/torch-audiomentations/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, julius -, librosa -, torch -, torchaudio -, torch-pitch-shift +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + julius, + librosa, + torch, + torchaudio, + torch-pitch-shift, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/torch-pitch-shift/default.nix b/pkgs/development/python-modules/torch-pitch-shift/default.nix index 2d9aa146abb9..f6d35338dad8 100644 --- a/pkgs/development/python-modules/torch-pitch-shift/default.nix +++ b/pkgs/development/python-modules/torch-pitch-shift/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, wheel -, packaging -, primepy -, torch -, torchaudio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + packaging, + primepy, + torch, + torchaudio, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/torch-tb-profiler/default.nix b/pkgs/development/python-modules/torch-tb-profiler/default.nix index 108acfb0d355..005c9f375455 100644 --- a/pkgs/development/python-modules/torch-tb-profiler/default.nix +++ b/pkgs/development/python-modules/torch-tb-profiler/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, pandas -, pytestCheckHook -, torch -, tensorboard -, torchvision +{ + buildPythonPackage, + fetchFromGitHub, + lib, + pandas, + pytestCheckHook, + torch, + tensorboard, + torchvision, }: let @@ -25,9 +26,16 @@ buildPythonPackage rec { # See https://discourse.nixos.org/t/extracting-sub-directory-from-fetchgit-or-fetchurl-or-any-derivation/8830. src = "${repo}/tb_plugin"; - propagatedBuildInputs = [ pandas tensorboard ]; + propagatedBuildInputs = [ + pandas + tensorboard + ]; - nativeCheckInputs = [ pytestCheckHook torch torchvision ]; + nativeCheckInputs = [ + pytestCheckHook + torch + torchvision + ]; disabledTests = [ # Tests that attempt to access the filesystem in naughty ways. diff --git a/pkgs/development/python-modules/torch/bin.nix b/pkgs/development/python-modules/torch/bin.nix index f952351083dc..7f90712f50db 100644 --- a/pkgs/development/python-modules/torch/bin.nix +++ b/pkgs/development/python-modules/torch/bin.nix @@ -1,24 +1,26 @@ -{ lib, stdenv -, buildPythonPackage -, autoAddDriverRunpath -, fetchurl -, python -, pythonAtLeast -, pythonOlder -, addOpenGLRunpath -, cudaPackages -, future -, numpy -, autoPatchelfHook -, pyyaml -, requests -, setuptools -, typing-extensions -, sympy -, jinja2 -, networkx -, filelock -, openai-triton +{ + lib, + stdenv, + buildPythonPackage, + autoAddDriverRunpath, + fetchurl, + python, + pythonAtLeast, + pythonOlder, + addOpenGLRunpath, + cudaPackages, + future, + numpy, + autoPatchelfHook, + pyyaml, + requests, + setuptools, + typing-extensions, + sympy, + jinja2, + networkx, + filelock, + openai-triton, }: let @@ -26,7 +28,8 @@ let srcs = import ./binary-hashes.nix version; unsupported = throw "Unsupported system"; version = "2.3.0"; -in buildPythonPackage { +in +buildPythonPackage { inherit version; pname = "torch"; @@ -44,22 +47,25 @@ in buildPythonPackage { autoAddDriverRunpath ]; - buildInputs = lib.optionals stdenv.isLinux (with cudaPackages; [ - # $out/${sitePackages}/nvfuser/_C*.so wants libnvToolsExt.so.1 but torch/lib only ships - # libnvToolsExt-$hash.so.1 - cuda_nvtx + buildInputs = lib.optionals stdenv.isLinux ( + with cudaPackages; + [ + # $out/${sitePackages}/nvfuser/_C*.so wants libnvToolsExt.so.1 but torch/lib only ships + # libnvToolsExt-$hash.so.1 + cuda_nvtx - cuda_cudart - cuda_cupti - cuda_nvrtc - cudnn - libcublas - libcufft - libcurand - libcusolver - libcusparse - nccl - ]); + cuda_cudart + cuda_cupti + cuda_nvrtc + cudnn + libcublas + libcufft + libcurand + libcusolver + libcusparse + nccl + ] + ); autoPatchelfIgnoreMissingDeps = lib.optionals stdenv.isLinux [ # This is the hardware-dependent userspace driver that comes from @@ -80,9 +86,7 @@ in buildPythonPackage { jinja2 networkx filelock - ] ++ lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ - openai-triton - ]; + ] ++ lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ openai-triton ]; postInstall = '' # ONNX conversion @@ -107,10 +111,18 @@ in buildPythonPackage { # https://www.intel.com/content/www/us/en/developer/articles/license/onemkl-license-faq.html # torch's license is BSD3. # torch-bin used to vendor CUDA. It still links against CUDA and MKL. - license = with licenses; [ bsd3 issl unfreeRedistributable ]; + license = with licenses; [ + bsd3 + issl + unfreeRedistributable + ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - platforms = [ "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; - hydraPlatforms = []; # output size 3.2G on 1.11.0 + platforms = [ + "aarch64-darwin" + "aarch64-linux" + "x86_64-linux" + ]; + hydraPlatforms = [ ]; # output size 3.2G on 1.11.0 maintainers = with maintainers; [ junjihashimoto ]; }; } diff --git a/pkgs/development/python-modules/torch/binary-hashes.nix b/pkgs/development/python-modules/torch/binary-hashes.nix index eb4f9883e574..8a355c9f0d79 100644 --- a/pkgs/development/python-modules/torch/binary-hashes.nix +++ b/pkgs/development/python-modules/torch/binary-hashes.nix @@ -5,7 +5,8 @@ # To add a new version, run "prefetch.sh 'new-version'" to paste the generated file as follows. -version : builtins.getAttr version { +version: +builtins.getAttr version { "2.3.0" = { x86_64-linux-38 = { name = "torch-2.3.0-cp38-cp38-linux_x86_64.whl"; diff --git a/pkgs/development/python-modules/torch/default.nix b/pkgs/development/python-modules/torch/default.nix index 452b2f8598ec..f6f66aa9d0b4 100644 --- a/pkgs/development/python-modules/torch/default.nix +++ b/pkgs/development/python-modules/torch/default.nix @@ -1,25 +1,42 @@ -{ stdenv, lib, fetchFromGitHub, buildPythonPackage, python, - config, cudaSupport ? config.cudaSupport, cudaPackages, +{ + stdenv, + lib, + fetchFromGitHub, + buildPythonPackage, + python, + config, + cudaSupport ? config.cudaSupport, + cudaPackages, autoAddDriverRunpath, effectiveMagma ? - if cudaSupport then magma-cuda-static - else if rocmSupport then magma-hip - else magma, + if cudaSupport then + magma-cuda-static + else if rocmSupport then + magma-hip + else + magma, magma, magma-hip, magma-cuda-static, # Use the system NCCL as long as we're targeting CUDA on a supported platform. useSystemNccl ? (cudaSupport && !cudaPackages.nccl.meta.unsupported || rocmSupport), - MPISupport ? false, mpi, + MPISupport ? false, + mpi, buildDocs ? false, # Native build inputs - cmake, symlinkJoin, which, pybind11, removeReferencesTo, + cmake, + symlinkJoin, + which, + pybind11, + removeReferencesTo, pythonRelaxDepsHook, # Build inputs numactl, - Accelerate, CoreServices, libobjc, + Accelerate, + CoreServices, + libobjc, # Propagated build inputs astunparse, @@ -28,12 +45,18 @@ jinja2, networkx, sympy, - numpy, pyyaml, cffi, click, typing-extensions, + numpy, + pyyaml, + cffi, + click, + typing-extensions, # ROCm build and `torch.compile` requires `openai-triton` - tritonSupport ? (!stdenv.isDarwin), openai-triton, + tritonSupport ? (!stdenv.isDarwin), + openai-triton, # Unit tests - hypothesis, psutil, + hypothesis, + psutil, # Disable MKLDNN on aarch64-darwin, it negatively impacts performance, # this is also what official pytorch build does @@ -47,18 +70,27 @@ ninja, # dependencies for torch.utils.tensorboard - pillow, six, future, tensorboard, protobuf, + pillow, + six, + future, + tensorboard, + protobuf, pythonOlder, # ROCm dependencies rocmSupport ? config.rocmSupport, rocmPackages_5, - gpuTargets ? [ ] + gpuTargets ? [ ], }: let - inherit (lib) attrsets lists strings trivial; + inherit (lib) + attrsets + lists + strings + trivial + ; inherit (cudaPackages) cudaFlags cudnn nccl; rocmPackages = rocmPackages_5; @@ -68,7 +100,24 @@ let # https://github.com/pytorch/pytorch/blob/v2.0.1/torch/utils/cpp_extension.py#L1744 supportedTorchCudaCapabilities = let - real = ["3.5" "3.7" "5.0" "5.2" "5.3" "6.0" "6.1" "6.2" "7.0" "7.2" "7.5" "8.0" "8.6" "8.7" "8.9" "9.0"]; + real = [ + "3.5" + "3.7" + "5.0" + "5.2" + "5.3" + "6.0" + "6.1" + "6.2" + "7.0" + "7.2" + "7.5" + "8.0" + "8.6" + "8.7" + "8.9" + "9.0" + ]; ptx = lists.map (x: "${x}+PTX") real; in real ++ ptx; @@ -82,18 +131,17 @@ let unsupportedCudaCapabilities = lists.subtractLists supportedCudaCapabilities cudaFlags.cudaCapabilities; # Use trivial.warnIf to print a warning if any unsupported GPU targets are specified. - gpuArchWarner = supported: unsupported: - trivial.throwIf (supported == [ ]) - ( - "No supported GPU targets specified. Requested GPU targets: " - + strings.concatStringsSep ", " unsupported - ) - supported; + gpuArchWarner = + supported: unsupported: + trivial.throwIf (supported == [ ]) ( + "No supported GPU targets specified. Requested GPU targets: " + + strings.concatStringsSep ", " unsupported + ) supported; # Create the gpuTargetString. gpuTargetString = strings.concatStringsSep ";" ( if gpuTargets != [ ] then - # If gpuTargets is specified, it always takes priority. + # If gpuTargets is specified, it always takes priority. gpuTargets else if cudaSupport then gpuArchWarner supportedCudaCapabilities unsupportedCudaCapabilities @@ -107,11 +155,31 @@ let name = "rocm-merged"; paths = with rocmPackages; [ - rocm-core clr rccl miopen miopengemm rocrand rocblas - rocsparse hipsparse rocthrust rocprim hipcub roctracer - rocfft rocsolver hipfft hipsolver hipblas - rocminfo rocm-thunk rocm-comgr rocm-device-libs - rocm-runtime clr.icd hipify + rocm-core + clr + rccl + miopen + miopengemm + rocrand + rocblas + rocsparse + hipsparse + rocthrust + rocprim + hipcub + roctracer + rocfft + rocsolver + hipfft + hipsolver + hipblas + rocminfo + rocm-thunk + rocm-comgr + rocm-device-libs + rocm-runtime + clr.icd + hipify ]; # Fix `setuptools` not being found @@ -123,11 +191,19 @@ let brokenConditions = attrsets.filterAttrs (_: cond: cond) { "CUDA and ROCm are mutually exclusive" = cudaSupport && rocmSupport; "CUDA is not targeting Linux" = cudaSupport && !stdenv.isLinux; - "Unsupported CUDA version" = cudaSupport && !(builtins.elem cudaPackages.cudaMajorVersion [ "11" "12" ]); - "MPI cudatoolkit does not match cudaPackages.cudatoolkit" = MPISupport && cudaSupport && (mpi.cudatoolkit != cudaPackages.cudatoolkit); - "Magma cudaPackages does not match cudaPackages" = cudaSupport && (effectiveMagma.cudaPackages != cudaPackages); + "Unsupported CUDA version" = + cudaSupport + && !(builtins.elem cudaPackages.cudaMajorVersion [ + "11" + "12" + ]); + "MPI cudatoolkit does not match cudaPackages.cudatoolkit" = + MPISupport && cudaSupport && (mpi.cudatoolkit != cudaPackages.cudatoolkit); + "Magma cudaPackages does not match cudaPackages" = + cudaSupport && (effectiveMagma.cudaPackages != cudaPackages); }; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "torch"; # Don't forget to update torch-bin to the same version. version = "2.3.0"; @@ -151,83 +227,89 @@ in buildPythonPackage rec { hash = "sha256-UmH4Mv5QL7Mz4Y4pvxn8F1FGBR/UzYZjE2Ys8Oc0FWQ="; }; - patches = lib.optionals cudaSupport [ - ./fix-cmake-cuda-toolkit.patch - ] - ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - # pthreadpool added support for Grand Central Dispatch in April - # 2020. However, this relies on functionality (DISPATCH_APPLY_AUTO) - # that is available starting with macOS 10.13. However, our current - # base is 10.12. Until we upgrade, we can fall back on the older - # pthread support. - ./pthreadpool-disable-gcd.diff - ] ++ lib.optionals stdenv.isLinux [ - # Propagate CUPTI to Kineto by overriding the search path with environment variables. - # https://github.com/pytorch/pytorch/pull/108847 - ./pytorch-pr-108847.patch - ]; + patches = + lib.optionals cudaSupport [ ./fix-cmake-cuda-toolkit.patch ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ + # pthreadpool added support for Grand Central Dispatch in April + # 2020. However, this relies on functionality (DISPATCH_APPLY_AUTO) + # that is available starting with macOS 10.13. However, our current + # base is 10.12. Until we upgrade, we can fall back on the older + # pthread support. + ./pthreadpool-disable-gcd.diff + ] + ++ lib.optionals stdenv.isLinux [ + # Propagate CUPTI to Kineto by overriding the search path with environment variables. + # https://github.com/pytorch/pytorch/pull/108847 + ./pytorch-pr-108847.patch + ]; - postPatch = lib.optionalString rocmSupport '' - # https://github.com/facebookincubator/gloo/pull/297 - substituteInPlace third_party/gloo/cmake/Hipify.cmake \ - --replace "\''${HIPIFY_COMMAND}" "python \''${HIPIFY_COMMAND}" + postPatch = + lib.optionalString rocmSupport '' + # https://github.com/facebookincubator/gloo/pull/297 + substituteInPlace third_party/gloo/cmake/Hipify.cmake \ + --replace "\''${HIPIFY_COMMAND}" "python \''${HIPIFY_COMMAND}" - # Replace hard-coded rocm paths - substituteInPlace caffe2/CMakeLists.txt \ - --replace "/opt/rocm" "${rocmtoolkit_joined}" \ - --replace "hcc/include" "hip/include" \ - --replace "rocblas/include" "include/rocblas" \ - --replace "hipsparse/include" "include/hipsparse" + # Replace hard-coded rocm paths + substituteInPlace caffe2/CMakeLists.txt \ + --replace "/opt/rocm" "${rocmtoolkit_joined}" \ + --replace "hcc/include" "hip/include" \ + --replace "rocblas/include" "include/rocblas" \ + --replace "hipsparse/include" "include/hipsparse" - # Doesn't pick up the environment variable? - substituteInPlace third_party/kineto/libkineto/CMakeLists.txt \ - --replace "\''$ENV{ROCM_SOURCE_DIR}" "${rocmtoolkit_joined}" \ - --replace "/opt/rocm" "${rocmtoolkit_joined}" + # Doesn't pick up the environment variable? + substituteInPlace third_party/kineto/libkineto/CMakeLists.txt \ + --replace "\''$ENV{ROCM_SOURCE_DIR}" "${rocmtoolkit_joined}" \ + --replace "/opt/rocm" "${rocmtoolkit_joined}" - # Strangely, this is never set in cmake - substituteInPlace cmake/public/LoadHIP.cmake \ - --replace "set(ROCM_PATH \$ENV{ROCM_PATH})" \ - "set(ROCM_PATH \$ENV{ROCM_PATH})''\nset(ROCM_VERSION ${lib.concatStrings (lib.intersperse "0" (lib.splitVersion rocmPackages.clr.version))})" - '' - # Detection of NCCL version doesn't work particularly well when using the static binary. - + lib.optionalString cudaSupport '' - substituteInPlace cmake/Modules/FindNCCL.cmake \ - --replace \ - 'message(FATAL_ERROR "Found NCCL header version and library version' \ - 'message(WARNING "Found NCCL header version and library version' - '' - # Remove PyTorch's FindCUDAToolkit.cmake and to use CMake's default. - # We do not remove the entirety of cmake/Modules_CUDA_fix because we need FindCUDNN.cmake. - + lib.optionalString cudaSupport '' - rm cmake/Modules/FindCUDAToolkit.cmake - rm -rf cmake/Modules_CUDA_fix/{upstream,FindCUDA.cmake} - '' - # error: no member named 'aligned_alloc' in the global namespace; did you mean simply 'aligned_alloc' - # This lib overrided aligned_alloc hence the error message. Tltr: his function is linkable but not in header. - + lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0") '' - substituteInPlace third_party/pocketfft/pocketfft_hdronly.h --replace-fail '#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER)) - inline void *aligned_alloc(size_t align, size_t size)' '#if 0 - inline void *aligned_alloc(size_t align, size_t size)' - ''; + # Strangely, this is never set in cmake + substituteInPlace cmake/public/LoadHIP.cmake \ + --replace "set(ROCM_PATH \$ENV{ROCM_PATH})" \ + "set(ROCM_PATH \$ENV{ROCM_PATH})''\nset(ROCM_VERSION ${lib.concatStrings (lib.intersperse "0" (lib.splitVersion rocmPackages.clr.version))})" + '' + # Detection of NCCL version doesn't work particularly well when using the static binary. + + lib.optionalString cudaSupport '' + substituteInPlace cmake/Modules/FindNCCL.cmake \ + --replace \ + 'message(FATAL_ERROR "Found NCCL header version and library version' \ + 'message(WARNING "Found NCCL header version and library version' + '' + # Remove PyTorch's FindCUDAToolkit.cmake and to use CMake's default. + # We do not remove the entirety of cmake/Modules_CUDA_fix because we need FindCUDNN.cmake. + + lib.optionalString cudaSupport '' + rm cmake/Modules/FindCUDAToolkit.cmake + rm -rf cmake/Modules_CUDA_fix/{upstream,FindCUDA.cmake} + '' + # error: no member named 'aligned_alloc' in the global namespace; did you mean simply 'aligned_alloc' + # This lib overrided aligned_alloc hence the error message. Tltr: his function is linkable but not in header. + + + lib.optionalString (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11.0") + '' + substituteInPlace third_party/pocketfft/pocketfft_hdronly.h --replace-fail '#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER)) + inline void *aligned_alloc(size_t align, size_t size)' '#if 0 + inline void *aligned_alloc(size_t align, size_t size)' + ''; # NOTE(@connorbaker): Though we do not disable Gloo or MPI when building with CUDA support, caution should be taken # when using the different backends. Gloo's GPU support isn't great, and MPI and CUDA can't be used at the same time # without extreme care to ensure they don't lock each other out of shared resources. # For more, see https://github.com/open-mpi/ompi/issues/7733#issuecomment-629806195. - preConfigure = lib.optionalString cudaSupport '' - export TORCH_CUDA_ARCH_LIST="${gpuTargetString}" - export CUPTI_INCLUDE_DIR=${cudaPackages.cuda_cupti.dev}/include - export CUPTI_LIBRARY_DIR=${cudaPackages.cuda_cupti.lib}/lib - '' + lib.optionalString (cudaSupport && cudaPackages ? cudnn) '' - export CUDNN_INCLUDE_DIR=${cudnn.dev}/include - export CUDNN_LIB_DIR=${cudnn.lib}/lib - '' + lib.optionalString rocmSupport '' - export ROCM_PATH=${rocmtoolkit_joined} - export ROCM_SOURCE_DIR=${rocmtoolkit_joined} - export PYTORCH_ROCM_ARCH="${gpuTargetString}" - export CMAKE_CXX_FLAGS="-I${rocmtoolkit_joined}/include -I${rocmtoolkit_joined}/include/rocblas" - python tools/amd_build/build_amd.py - ''; + preConfigure = + lib.optionalString cudaSupport '' + export TORCH_CUDA_ARCH_LIST="${gpuTargetString}" + export CUPTI_INCLUDE_DIR=${cudaPackages.cuda_cupti.dev}/include + export CUPTI_LIBRARY_DIR=${cudaPackages.cuda_cupti.lib}/lib + '' + + lib.optionalString (cudaSupport && cudaPackages ? cudnn) '' + export CUDNN_INCLUDE_DIR=${cudnn.dev}/include + export CUDNN_LIB_DIR=${cudnn.lib}/lib + '' + + lib.optionalString rocmSupport '' + export ROCM_PATH=${rocmtoolkit_joined} + export ROCM_SOURCE_DIR=${rocmtoolkit_joined} + export PYTORCH_ROCM_ARCH="${gpuTargetString}" + export CMAKE_CXX_FLAGS="-I${rocmtoolkit_joined}/include -I${rocmtoolkit_joined}/include/rocblas" + python tools/amd_build/build_amd.py + ''; # Use pytorch's custom configurations dontUseCmakeConfigure = true; @@ -294,97 +376,124 @@ in buildPythonPackage rec { # # Also of interest: pytorch ignores CXXFLAGS uses CFLAGS for both C and C++: # https://github.com/pytorch/pytorch/blob/v1.11.0/setup.py#L17 - env.NIX_CFLAGS_COMPILE = toString ((lib.optionals (blas.implementation == "mkl") [ "-Wno-error=array-bounds" ] - # Suppress gcc regression: avx512 math function raises uninitialized variable warning - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 - # See also: Fails to compile with GCC 12.1.0 https://github.com/pytorch/pytorch/issues/77939 - ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12.0.0") [ - "-Wno-error=maybe-uninitialized" - "-Wno-error=uninitialized" - ] - # Since pytorch 2.0: - # gcc-12.2.0/include/c++/12.2.0/bits/new_allocator.h:158:33: error: ‘void operator delete(void*, std::size_t)’ - # ... called on pointer ‘’ with nonzero offset [1, 9223372036854775800] [-Werror=free-nonheap-object] - ++ lib.optionals (stdenv.cc.isGNU && lib.versions.major stdenv.cc.version == "12" ) [ - "-Wno-error=free-nonheap-object" - ] - # .../source/torch/csrc/autograd/generated/python_functions_0.cpp:85:3: - # error: cast from ... to ... converts to incompatible function type [-Werror,-Wcast-function-type-strict] - ++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16") [ - "-Wno-error=cast-function-type-strict" - # Suppresses the most spammy warnings. - # This is mainly to fix https://github.com/NixOS/nixpkgs/issues/266895. - ] ++ lib.optionals rocmSupport [ - "-Wno-#warnings" - "-Wno-cpp" - "-Wno-unknown-warning-option" - "-Wno-ignored-attributes" - "-Wno-deprecated-declarations" - "-Wno-defaulted-function-deleted" - "-Wno-pass-failed" - ] ++ [ - "-Wno-unused-command-line-argument" - "-Wno-uninitialized" - "-Wno-array-bounds" - "-Wno-free-nonheap-object" - "-Wno-unused-result" - ] ++ lib.optionals stdenv.cc.isGNU [ - "-Wno-maybe-uninitialized" - "-Wno-stringop-overflow" - ])); + env.NIX_CFLAGS_COMPILE = toString ( + ( + lib.optionals (blas.implementation == "mkl") [ "-Wno-error=array-bounds" ] + # Suppress gcc regression: avx512 math function raises uninitialized variable warning + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105593 + # See also: Fails to compile with GCC 12.1.0 https://github.com/pytorch/pytorch/issues/77939 + ++ lib.optionals (stdenv.cc.isGNU && lib.versionAtLeast stdenv.cc.version "12.0.0") [ + "-Wno-error=maybe-uninitialized" + "-Wno-error=uninitialized" + ] + # Since pytorch 2.0: + # gcc-12.2.0/include/c++/12.2.0/bits/new_allocator.h:158:33: error: ‘void operator delete(void*, std::size_t)’ + # ... called on pointer ‘’ with nonzero offset [1, 9223372036854775800] [-Werror=free-nonheap-object] + ++ lib.optionals (stdenv.cc.isGNU && lib.versions.major stdenv.cc.version == "12") [ + "-Wno-error=free-nonheap-object" + ] + # .../source/torch/csrc/autograd/generated/python_functions_0.cpp:85:3: + # error: cast from ... to ... converts to incompatible function type [-Werror,-Wcast-function-type-strict] + ++ lib.optionals (stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16") [ + "-Wno-error=cast-function-type-strict" + # Suppresses the most spammy warnings. + # This is mainly to fix https://github.com/NixOS/nixpkgs/issues/266895. + ] + ++ lib.optionals rocmSupport [ + "-Wno-#warnings" + "-Wno-cpp" + "-Wno-unknown-warning-option" + "-Wno-ignored-attributes" + "-Wno-deprecated-declarations" + "-Wno-defaulted-function-deleted" + "-Wno-pass-failed" + ] + ++ [ + "-Wno-unused-command-line-argument" + "-Wno-uninitialized" + "-Wno-array-bounds" + "-Wno-free-nonheap-object" + "-Wno-unused-result" + ] + ++ lib.optionals stdenv.cc.isGNU [ + "-Wno-maybe-uninitialized" + "-Wno-stringop-overflow" + ] + ) + ); - nativeBuildInputs = [ - cmake - which - ninja - pybind11 - pythonRelaxDepsHook - removeReferencesTo - ] ++ lib.optionals cudaSupport (with cudaPackages; [ - autoAddDriverRunpath - cuda_nvcc - ]) - ++ lib.optionals rocmSupport [ rocmtoolkit_joined ]; + nativeBuildInputs = + [ + cmake + which + ninja + pybind11 + pythonRelaxDepsHook + removeReferencesTo + ] + ++ lib.optionals cudaSupport ( + with cudaPackages; + [ + autoAddDriverRunpath + cuda_nvcc + ] + ) + ++ lib.optionals rocmSupport [ rocmtoolkit_joined ]; - buildInputs = [ blas blas.provider ] - ++ lib.optionals cudaSupport (with cudaPackages; [ - cuda_cccl.dev # - cuda_cudart.dev # cuda_runtime.h and libraries - cuda_cudart.lib - cuda_cudart.static - cuda_cupti.dev # For kineto - cuda_cupti.lib # For kineto - cuda_nvcc.dev # crt/host_config.h; even though we include this in nativeBuildinputs, it's needed here too - cuda_nvml_dev.dev # - cuda_nvrtc.dev - cuda_nvrtc.lib - cuda_nvtx.dev - cuda_nvtx.lib # -llibNVToolsExt - libcublas.dev - libcublas.lib - libcufft.dev - libcufft.lib - libcurand.dev - libcurand.lib - libcusolver.dev - libcusolver.lib - libcusparse.dev - libcusparse.lib - ] ++ lists.optionals (cudaPackages ? cudnn) [ - cudnn.dev - cudnn.lib - ] ++ lists.optionals useSystemNccl [ - # Some platforms do not support NCCL (i.e., Jetson) - nccl.dev # Provides nccl.h AND a static copy of NCCL! - ] ++ lists.optionals (strings.versionOlder cudaVersion "11.8") [ - cuda_nvprof.dev # - ] ++ lists.optionals (strings.versionAtLeast cudaVersion "11.8") [ - cuda_profiler_api.dev # - ]) + buildInputs = + [ + blas + blas.provider + ] + ++ lib.optionals cudaSupport ( + with cudaPackages; + [ + cuda_cccl.dev # + cuda_cudart.dev # cuda_runtime.h and libraries + cuda_cudart.lib + cuda_cudart.static + cuda_cupti.dev # For kineto + cuda_cupti.lib # For kineto + cuda_nvcc.dev # crt/host_config.h; even though we include this in nativeBuildinputs, it's needed here too + cuda_nvml_dev.dev # + cuda_nvrtc.dev + cuda_nvrtc.lib + cuda_nvtx.dev + cuda_nvtx.lib # -llibNVToolsExt + libcublas.dev + libcublas.lib + libcufft.dev + libcufft.lib + libcurand.dev + libcurand.lib + libcusolver.dev + libcusolver.lib + libcusparse.dev + libcusparse.lib + ] + ++ lists.optionals (cudaPackages ? cudnn) [ + cudnn.dev + cudnn.lib + ] + ++ lists.optionals useSystemNccl [ + # Some platforms do not support NCCL (i.e., Jetson) + nccl.dev # Provides nccl.h AND a static copy of NCCL! + ] + ++ lists.optionals (strings.versionOlder cudaVersion "11.8") [ + cuda_nvprof.dev # + ] + ++ lists.optionals (strings.versionAtLeast cudaVersion "11.8") [ + cuda_profiler_api.dev # + ] + ) ++ lib.optionals rocmSupport [ rocmPackages.llvm.openmp ] ++ lib.optionals (cudaSupport || rocmSupport) [ effectiveMagma ] ++ lib.optionals stdenv.isLinux [ numactl ] - ++ lib.optionals stdenv.isDarwin [ Accelerate CoreServices libobjc ] + ++ lib.optionals stdenv.isDarwin [ + Accelerate + CoreServices + libobjc + ] ++ lib.optionals tritonSupport [ openai-triton ] ++ lib.optionals MPISupport [ mpi ] ++ lib.optionals rocmSupport [ rocmtoolkit_joined ]; @@ -405,97 +514,113 @@ in buildPythonPackage rec { jinja2 # the following are required for tensorboard support - pillow six future tensorboard protobuf + pillow + six + future + tensorboard + protobuf # torch/csrc requires `pybind11` at runtime pybind11 ] ++ lib.optionals tritonSupport [ openai-triton ]; - propagatedCxxBuildInputs = [ - ] - ++ lib.optionals MPISupport [ mpi ] - ++ lib.optionals rocmSupport [ rocmtoolkit_joined ]; + propagatedCxxBuildInputs = + [ ] ++ lib.optionals MPISupport [ mpi ] ++ lib.optionals rocmSupport [ rocmtoolkit_joined ]; # Tests take a long time and may be flaky, so just sanity-check imports doCheck = false; - pythonImportsCheck = [ - "torch" + pythonImportsCheck = [ "torch" ]; + + nativeCheckInputs = [ + hypothesis + ninja + psutil ]; - nativeCheckInputs = [ hypothesis ninja psutil ]; + checkPhase = + with lib.versions; + with lib.strings; + concatStringsSep " " [ + "runHook preCheck" + "${python.interpreter} test/run_test.py" + "--exclude" + (concatStringsSep " " [ + "utils" # utils requires git, which is not allowed in the check phase - checkPhase = with lib.versions; with lib.strings; concatStringsSep " " [ - "runHook preCheck" - "${python.interpreter} test/run_test.py" - "--exclude" - (concatStringsSep " " [ - "utils" # utils requires git, which is not allowed in the check phase + # "dataloader" # psutils correctly finds and triggers multiprocessing, but is too sandboxed to run -- resulting in numerous errors + # ^^^^^^^^^^^^ NOTE: while test_dataloader does return errors, these are acceptable errors and do not interfere with the build - # "dataloader" # psutils correctly finds and triggers multiprocessing, but is too sandboxed to run -- resulting in numerous errors - # ^^^^^^^^^^^^ NOTE: while test_dataloader does return errors, these are acceptable errors and do not interfere with the build - - # tensorboard has acceptable failures for pytorch 1.3.x due to dependencies on tensorboard-plugins - (optionalString (majorMinor version == "1.3" ) "tensorboard") - ]) - "runHook postCheck" - ]; + # tensorboard has acceptable failures for pytorch 1.3.x due to dependencies on tensorboard-plugins + (optionalString (majorMinor version == "1.3") "tensorboard") + ]) + "runHook postCheck" + ]; pythonRemoveDeps = [ # In our dist-info the name is just "triton" "pytorch-triton-rocm" ]; - postInstall = '' - find "$out/${python.sitePackages}/torch/include" "$out/${python.sitePackages}/torch/lib" -type f -exec remove-references-to -t ${stdenv.cc} '{}' + + postInstall = + '' + find "$out/${python.sitePackages}/torch/include" "$out/${python.sitePackages}/torch/lib" -type f -exec remove-references-to -t ${stdenv.cc} '{}' + - mkdir $dev - cp -r $out/${python.sitePackages}/torch/include $dev/include - cp -r $out/${python.sitePackages}/torch/share $dev/share + mkdir $dev + cp -r $out/${python.sitePackages}/torch/include $dev/include + cp -r $out/${python.sitePackages}/torch/share $dev/share - # Fix up library paths for split outputs - substituteInPlace \ - $dev/share/cmake/Torch/TorchConfig.cmake \ - --replace \''${TORCH_INSTALL_PREFIX}/lib "$lib/lib" + # Fix up library paths for split outputs + substituteInPlace \ + $dev/share/cmake/Torch/TorchConfig.cmake \ + --replace \''${TORCH_INSTALL_PREFIX}/lib "$lib/lib" - substituteInPlace \ - $dev/share/cmake/Caffe2/Caffe2Targets-release.cmake \ - --replace \''${_IMPORT_PREFIX}/lib "$lib/lib" + substituteInPlace \ + $dev/share/cmake/Caffe2/Caffe2Targets-release.cmake \ + --replace \''${_IMPORT_PREFIX}/lib "$lib/lib" - mkdir $lib - mv $out/${python.sitePackages}/torch/lib $lib/lib - ln -s $lib/lib $out/${python.sitePackages}/torch/lib - '' + lib.optionalString rocmSupport '' - substituteInPlace $dev/share/cmake/Tensorpipe/TensorpipeTargets-release.cmake \ - --replace "\''${_IMPORT_PREFIX}/lib64" "$lib/lib" + mkdir $lib + mv $out/${python.sitePackages}/torch/lib $lib/lib + ln -s $lib/lib $out/${python.sitePackages}/torch/lib + '' + + lib.optionalString rocmSupport '' + substituteInPlace $dev/share/cmake/Tensorpipe/TensorpipeTargets-release.cmake \ + --replace "\''${_IMPORT_PREFIX}/lib64" "$lib/lib" - substituteInPlace $dev/share/cmake/ATen/ATenConfig.cmake \ - --replace "/build/source/torch/include" "$dev/include" - ''; + substituteInPlace $dev/share/cmake/ATen/ATenConfig.cmake \ + --replace "/build/source/torch/include" "$dev/include" + ''; - postFixup = '' - mkdir -p "$cxxdev/nix-support" - printWords "''${propagatedCxxBuildInputs[@]}" >> "$cxxdev/nix-support/propagated-build-inputs" - '' + lib.optionalString stdenv.isDarwin '' - for f in $(ls $lib/lib/*.dylib); do - install_name_tool -id $lib/lib/$(basename $f) $f || true - done + postFixup = + '' + mkdir -p "$cxxdev/nix-support" + printWords "''${propagatedCxxBuildInputs[@]}" >> "$cxxdev/nix-support/propagated-build-inputs" + '' + + lib.optionalString stdenv.isDarwin '' + for f in $(ls $lib/lib/*.dylib); do + install_name_tool -id $lib/lib/$(basename $f) $f || true + done - install_name_tool -change @rpath/libshm.dylib $lib/lib/libshm.dylib $lib/lib/libtorch_python.dylib - install_name_tool -change @rpath/libtorch.dylib $lib/lib/libtorch.dylib $lib/lib/libtorch_python.dylib - install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libtorch_python.dylib + install_name_tool -change @rpath/libshm.dylib $lib/lib/libshm.dylib $lib/lib/libtorch_python.dylib + install_name_tool -change @rpath/libtorch.dylib $lib/lib/libtorch.dylib $lib/lib/libtorch_python.dylib + install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libtorch_python.dylib - install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libtorch.dylib + install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libtorch.dylib - install_name_tool -change @rpath/libtorch.dylib $lib/lib/libtorch.dylib $lib/lib/libshm.dylib - install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libshm.dylib - ''; + install_name_tool -change @rpath/libtorch.dylib $lib/lib/libtorch.dylib $lib/lib/libshm.dylib + install_name_tool -change @rpath/libc10.dylib $lib/lib/libc10.dylib $lib/lib/libshm.dylib + ''; # Builds in 2+h with 2 cores, and ~15m with a big-parallel builder. requiredSystemFeatures = [ "big-parallel" ]; passthru = { - inherit cudaSupport cudaPackages rocmSupport rocmPackages; + inherit + cudaSupport + cudaPackages + rocmSupport + rocmPackages + ; # At least for 1.10.2 `torch.fft` is unavailable unless BLAS provider is MKL. This attribute allows for easy detection of its availability. blasProvider = blas.provider; # To help debug when a package is broken due to CUDA support @@ -509,7 +634,11 @@ in buildPythonPackage rec { description = "PyTorch: Tensors and Dynamic neural networks in Python with strong GPU acceleration"; homepage = "https://pytorch.org/"; license = licenses.bsd3; - maintainers = with maintainers; [ teh thoughtpolice tscholak ]; # tscholak esp. for darwin-related builds + maintainers = with maintainers; [ + teh + thoughtpolice + tscholak + ]; # tscholak esp. for darwin-related builds platforms = with platforms; linux ++ lib.optionals (!cudaSupport && !rocmSupport) darwin; broken = builtins.any trivial.id (builtins.attrValues brokenConditions); }; diff --git a/pkgs/development/python-modules/torchaudio/bin.nix b/pkgs/development/python-modules/torchaudio/bin.nix index 29b923b92858..d90ce73c4eac 100644 --- a/pkgs/development/python-modules/torchaudio/bin.nix +++ b/pkgs/development/python-modules/torchaudio/bin.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, addOpenGLRunpath -, autoPatchelfHook -, buildPythonPackage -, cudaPackages -, fetchurl -, ffmpeg_4 -, ffmpeg_5 -, ffmpeg_6 -, sox -, pythonAtLeast -, pythonOlder -, python -, torch-bin +{ + lib, + stdenv, + addOpenGLRunpath, + autoPatchelfHook, + buildPythonPackage, + cudaPackages, + fetchurl, + ffmpeg_4, + ffmpeg_5, + ffmpeg_6, + sox, + pythonAtLeast, + pythonOlder, + python, + torch-bin, }: buildPythonPackage rec { @@ -21,38 +22,42 @@ buildPythonPackage rec { format = "wheel"; src = - let pyVerNoDot = lib.replaceStrings [ "." ] [ "" ] python.pythonVersion; - unsupported = throw "Unsupported system"; - srcs = (import ./binary-hashes.nix version)."${stdenv.system}-${pyVerNoDot}" or unsupported; + let + pyVerNoDot = lib.replaceStrings [ "." ] [ "" ] python.pythonVersion; + unsupported = throw "Unsupported system"; + srcs = (import ./binary-hashes.nix version)."${stdenv.system}-${pyVerNoDot}" or unsupported; in fetchurl srcs; disabled = (pythonOlder "3.8") || (pythonAtLeast "3.13"); - buildInputs = [ - # We need to patch the lib/_torchaudio_ffmpeg[4-6] - ffmpeg_4.dev - ffmpeg_5.dev - ffmpeg_6.dev - sox - ] ++ lib.optionals stdenv.isLinux (with cudaPackages; [ - # $out/${sitePackages}/torchaudio/lib/libtorchaudio*.so wants libcudart.so.11.0 but torch/lib only ships - # libcudart.$hash.so.11.0 - cuda_cudart + buildInputs = + [ + # We need to patch the lib/_torchaudio_ffmpeg[4-6] + ffmpeg_4.dev + ffmpeg_5.dev + ffmpeg_6.dev + sox + ] + ++ lib.optionals stdenv.isLinux ( + with cudaPackages; + [ + # $out/${sitePackages}/torchaudio/lib/libtorchaudio*.so wants libcudart.so.11.0 but torch/lib only ships + # libcudart.$hash.so.11.0 + cuda_cudart - # $out/${sitePackages}/torchaudio/lib/libtorchaudio*.so wants libnvToolsExt.so.2 but torch/lib only ships - # libnvToolsExt-$hash.so.1 - cuda_nvtx - ]); + # $out/${sitePackages}/torchaudio/lib/libtorchaudio*.so wants libnvToolsExt.so.2 but torch/lib only ships + # libnvToolsExt-$hash.so.1 + cuda_nvtx + ] + ); nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook addOpenGLRunpath ]; - dependencies = [ - torch-bin - ]; + dependencies = [ torch-bin ]; preInstall = lib.optionals stdenv.isLinux '' addAutoPatchelfSearchPath "${torch-bin}/${python.sitePackages}/torch" @@ -72,7 +77,11 @@ buildPythonPackage rec { # https://www.intel.com/content/www/us/en/developer/articles/license/onemkl-license-faq.html license = licenses.bsd3; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - platforms = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" ]; + platforms = [ + "aarch64-linux" + "x86_64-linux" + "aarch64-darwin" + ]; maintainers = with maintainers; [ junjihashimoto ]; }; } diff --git a/pkgs/development/python-modules/torchaudio/binary-hashes.nix b/pkgs/development/python-modules/torchaudio/binary-hashes.nix index 379ea48073e4..9b2e40a38242 100644 --- a/pkgs/development/python-modules/torchaudio/binary-hashes.nix +++ b/pkgs/development/python-modules/torchaudio/binary-hashes.nix @@ -5,7 +5,8 @@ # To add a new version, run "prefetch.sh 'new-version'" to paste the generated file as follows. -version : builtins.getAttr version { +version: +builtins.getAttr version { "2.3.0" = { x86_64-linux-38 = { name = "torchaudio-2.3.0-cp38-cp38-linux_x86_64.whl"; diff --git a/pkgs/development/python-modules/torchaudio/default.nix b/pkgs/development/python-modules/torchaudio/default.nix index 2ad66d1691a4..849335f0778f 100644 --- a/pkgs/development/python-modules/torchaudio/default.nix +++ b/pkgs/development/python-modules/torchaudio/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cmake -, symlinkJoin -, ffmpeg-full -, pkg-config -, ninja -, pybind11 -, sox -, torch +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cmake, + symlinkJoin, + ffmpeg-full, + pkg-config, + ninja, + pybind11, + sox, + torch, -, cudaSupport ? torch.cudaSupport -, cudaPackages -, rocmSupport ? torch.rocmSupport -, rocmPackages + cudaSupport ? torch.cudaSupport, + cudaPackages, + rocmSupport ? torch.rocmSupport, + rocmPackages, -, gpuTargets ? [] + gpuTargets ? [ ], }: let @@ -26,11 +27,31 @@ let name = "rocm-merged"; paths = with rocmPackages; [ - rocm-core clr rccl miopen miopengemm rocrand rocblas - rocsparse hipsparse rocthrust rocprim hipcub roctracer - rocfft rocsolver hipfft hipsolver hipblas - rocminfo rocm-thunk rocm-comgr rocm-device-libs - rocm-runtime clr.icd hipify + rocm-core + clr + rccl + miopen + miopengemm + rocrand + rocblas + rocsparse + hipsparse + rocthrust + rocprim + hipcub + roctracer + rocfft + rocsolver + hipfft + hipsolver + hipblas + rocminfo + rocm-thunk + rocm-comgr + rocm-device-libs + rocm-runtime + clr.icd + hipify ]; # Fix `setuptools` not being found @@ -41,7 +62,7 @@ let # Only used for ROCm gpuTargetString = lib.strings.concatStringsSep ";" ( if gpuTargets != [ ] then - # If gpuTargets is specified, it always takes priority. + # If gpuTargets is specified, it always takes priority. gpuTargets else if rocmSupport then rocmPackages.clr.gpuTargets @@ -61,20 +82,19 @@ buildPythonPackage rec { hash = "sha256-8EPoZ/dfxrQjdtE0rZ+2pOaXxlyhRuweYnVuA9i0Fgc="; }; - patches = [ - ./0001-setup.py-propagate-cmakeFlags.patch - ]; + patches = [ ./0001-setup.py-propagate-cmakeFlags.patch ]; - postPatch = '' - substituteInPlace setup.py \ - --replace 'print(" --- Initializing submodules")' "return" \ - --replace "_fetch_archives(_parse_sources())" "pass" - '' - + lib.optionalString rocmSupport '' - # There is no .info/version-dev, only .info/version - substituteInPlace cmake/LoadHIP.cmake \ - --replace "/.info/version-dev" "/.info/version" - ''; + postPatch = + '' + substituteInPlace setup.py \ + --replace 'print(" --- Initializing submodules")' "return" \ + --replace "_fetch_archives(_parse_sources())" "pass" + '' + + lib.optionalString rocmSupport '' + # There is no .info/version-dev, only .info/version + substituteInPlace cmake/LoadHIP.cmake \ + --replace "/.info/version-dev" "/.info/version" + ''; env = { TORCH_CUDA_ARCH_LIST = "${lib.concatStringsSep ";" torch.cudaCapabilities}"; @@ -90,17 +110,21 @@ buildPythonPackage rec { ]; }; - nativeBuildInputs = [ - cmake - pkg-config - ninja - ] ++ lib.optionals cudaSupport [ - cudaPackages.cuda_nvcc - ] ++ lib.optionals rocmSupport (with rocmPackages; [ - clr - rocblas - hipblas - ]); + nativeBuildInputs = + [ + cmake + pkg-config + ninja + ] + ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc ] + ++ lib.optionals rocmSupport ( + with rocmPackages; + [ + clr + rocblas + hipblas + ] + ); buildInputs = [ ffmpeg-full @@ -109,14 +133,12 @@ buildPythonPackage rec { torch.cxxdev ]; - propagatedBuildInputs = [ - torch - ]; + propagatedBuildInputs = [ torch ]; - BUILD_SOX=0; - BUILD_KALDI=0; - BUILD_RNNT=0; - BUILD_CTC_DECODER=0; + BUILD_SOX = 0; + BUILD_KALDI = 0; + BUILD_RNNT = 0; + BUILD_CTC_DECODER = 0; preConfigure = lib.optionalString rocmSupport '' export ROCM_PATH=${rocmtoolkit_joined} @@ -132,7 +154,11 @@ buildPythonPackage rec { homepage = "https://pytorch.org/"; changelog = "https://github.com/pytorch/audio/releases/tag/v${version}"; license = licenses.bsd2; - platforms = [ "aarch64-darwin" "aarch64-linux" "x86_64-linux" ]; + platforms = [ + "aarch64-darwin" + "aarch64-linux" + "x86_64-linux" + ]; maintainers = with maintainers; [ junjihashimoto ]; }; } diff --git a/pkgs/development/python-modules/torchdiffeq/default.nix b/pkgs/development/python-modules/torchdiffeq/default.nix index 8195d750c6f7..ba3eda8cafbb 100644 --- a/pkgs/development/python-modules/torchdiffeq/default.nix +++ b/pkgs/development/python-modules/torchdiffeq/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# dependencies -, torch -, scipy + # dependencies + torch, + scipy, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { # no tests in sdist, no tags on git doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Differentiable ODE solvers with full GPU support and O(1)-memory backpropagation"; diff --git a/pkgs/development/python-modules/torchinfo/default.nix b/pkgs/development/python-modules/torchinfo/default.nix index 59b7e99c9dfc..a10dad4b10c0 100644 --- a/pkgs/development/python-modules/torchinfo/default.nix +++ b/pkgs/development/python-modules/torchinfo/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pythonOlder -, torch -, torchvision -, pytestCheckHook -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pythonOlder, + torch, + torchvision, + pytestCheckHook, + transformers, }: buildPythonPackage rec { @@ -24,12 +25,11 @@ buildPythonPackage rec { }; patches = [ - (fetchpatch { # Add support for Python 3.11 and pytorch 2.1 + (fetchpatch { + # Add support for Python 3.11 and pytorch 2.1 url = "https://github.com/TylerYep/torchinfo/commit/c74784c71c84e62bcf56664653b7f28d72a2ee0d.patch"; hash = "sha256-xSSqs0tuFpdMXUsoVv4sZLCeVnkK6pDDhX/Eobvn5mw="; - includes = [ - "torchinfo/model_statistics.py" - ]; + includes = [ "torchinfo/model_statistics.py" ]; }) ]; @@ -62,9 +62,7 @@ buildPythonPackage rec { "tests/torchinfo_xl_test.py" ]; - pythonImportsCheck = [ - "torchinfo" - ]; + pythonImportsCheck = [ "torchinfo" ]; meta = with lib; { description = "API to visualize pytorch models"; diff --git a/pkgs/development/python-modules/torchio/default.nix b/pkgs/development/python-modules/torchio/default.nix index 3549664e15b9..6b02f66a0c30 100644 --- a/pkgs/development/python-modules/torchio/default.nix +++ b/pkgs/development/python-modules/torchio/default.nix @@ -1,20 +1,21 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, deprecated -, humanize -, matplotlib -, nibabel -, numpy -, parameterized -, scipy -, simpleitk -, torch -, tqdm -, typer +{ + stdenv, + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + deprecated, + humanize, + matplotlib, + nibabel, + numpy, + parameterized, + scipy, + simpleitk, + torch, + tqdm, + typer, }: buildPythonPackage rec { @@ -43,14 +44,20 @@ buildPythonPackage rec { typer ] ++ typer.passthru.optional-dependencies.all; - nativeCheckInputs = [ pytestCheckHook matplotlib parameterized ]; - disabledTests = [ - # tries to download models: - "test_load_all" - ] ++ lib.optionals stdenv.isAarch64 [ - # RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly - "test_queue_multiprocessing" + nativeCheckInputs = [ + pytestCheckHook + matplotlib + parameterized ]; + disabledTests = + [ + # tries to download models: + "test_load_all" + ] + ++ lib.optionals stdenv.isAarch64 [ + # RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly + "test_queue_multiprocessing" + ]; pythonImportsCheck = [ "torchio" "torchio.data" diff --git a/pkgs/development/python-modules/torchlibrosa/default.nix b/pkgs/development/python-modules/torchlibrosa/default.nix index ca8f890c0e62..9ea19d6157a5 100644 --- a/pkgs/development/python-modules/torchlibrosa/default.nix +++ b/pkgs/development/python-modules/torchlibrosa/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, librosa -, numpy -, torch +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + librosa, + numpy, + torch, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/torchmetrics/default.nix b/pkgs/development/python-modules/torchmetrics/default.nix index c9485359cb87..b0e0e46a303c 100644 --- a/pkgs/development/python-modules/torchmetrics/default.nix +++ b/pkgs/development/python-modules/torchmetrics/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, numpy -, lightning-utilities -, cloudpickle -, scikit-learn -, scikit-image -, packaging -, pretty-errors -, psutil -, py-deprecate -, torch -, pytestCheckHook -, torchmetrics -, pytorch-lightning -, pytest-doctestplus -, pytest-xdist +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + numpy, + lightning-utilities, + cloudpickle, + scikit-learn, + scikit-image, + packaging, + pretty-errors, + psutil, + py-deprecate, + torch, + pytestCheckHook, + torchmetrics, + pytorch-lightning, + pytest-doctestplus, + pytest-xdist, }: let @@ -45,9 +46,7 @@ buildPythonPackage { ]; # Let the user bring their own instance - buildInputs = [ - torch - ]; + buildInputs = [ torch ]; nativeCheckInputs = [ pytorch-lightning @@ -85,17 +84,13 @@ buildPythonPackage { "src/torchmetrics" ]; - pythonImportsCheck = [ - "torchmetrics" - ]; + pythonImportsCheck = [ "torchmetrics" ]; meta = with lib; { description = "Machine learning metrics for distributed, scalable PyTorch applications (used in pytorch-lightning)"; homepage = "https://lightning.ai/docs/torchmetrics/"; changelog = "https://github.com/Lightning-AI/torchmetrics/releases/tag/v${version}"; license = licenses.asl20; - maintainers = with maintainers; [ - SomeoneSerge - ]; + maintainers = with maintainers; [ SomeoneSerge ]; }; } diff --git a/pkgs/development/python-modules/torchrl/default.nix b/pkgs/development/python-modules/torchrl/default.nix index 76592f6adf7a..6951192f52c4 100644 --- a/pkgs/development/python-modules/torchrl/default.nix +++ b/pkgs/development/python-modules/torchrl/default.nix @@ -1,42 +1,43 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, ninja -, setuptools -, wheel -, which -, cloudpickle -, numpy -, torch -, ale-py -, gym -, pygame -, torchsnapshot -, gymnasium -, mujoco -, h5py -, huggingface-hub -, minari -, pandas -, pillow -, requests -, scikit-learn -, torchvision -, tqdm -, moviepy -, git -, hydra-core -, tensorboard -, wandb -, packaging -, tensordict -, imageio -, pytest-rerunfailures -, pytestCheckHook -, pyyaml -, scipy -, stdenv +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + ninja, + setuptools, + wheel, + which, + cloudpickle, + numpy, + torch, + ale-py, + gym, + pygame, + torchsnapshot, + gymnasium, + mujoco, + h5py, + huggingface-hub, + minari, + pandas, + pillow, + requests, + scikit-learn, + torchvision, + tqdm, + moviepy, + git, + hydra-core, + tensorboard, + wandb, + packaging, + tensordict, + imageio, + pytest-rerunfailures, + pytestCheckHook, + pyyaml, + scipy, + stdenv, }: buildPythonPackage rec { @@ -74,9 +75,7 @@ buildPythonPackage rec { gym pygame ]; - checkpointing = [ - torchsnapshot - ]; + checkpointing = [ torchsnapshot ]; gym-continuous = [ gymnasium mujoco @@ -92,9 +91,7 @@ buildPythonPackage rec { torchvision tqdm ]; - rendering = [ - moviepy - ]; + rendering = [ moviepy ]; utils = [ git hydra-core @@ -109,9 +106,7 @@ buildPythonPackage rec { export D4RL_DATASET_DIR=$(mktemp -d) ''; - pythonImportsCheck = [ - "torchrl" - ]; + pythonImportsCheck = [ "torchrl" ]; # We have to delete the source because otherwise it is used instead of the installed package. preCheck = '' @@ -120,18 +115,19 @@ buildPythonPackage rec { export XDG_RUNTIME_DIR=$(mktemp -d) ''; - nativeCheckInputs = [ - gymnasium - imageio - pytest-rerunfailures - pytestCheckHook - pyyaml - scipy - torchvision - ] - ++ passthru.optional-dependencies.atari - ++ passthru.optional-dependencies.gym-continuous - ++ passthru.optional-dependencies.rendering; + nativeCheckInputs = + [ + gymnasium + imageio + pytest-rerunfailures + pytestCheckHook + pyyaml + scipy + torchvision + ] + ++ passthru.optional-dependencies.atari + ++ passthru.optional-dependencies.gym-continuous + ++ passthru.optional-dependencies.rendering; disabledTests = [ # mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called diff --git a/pkgs/development/python-modules/torchsde/default.nix b/pkgs/development/python-modules/torchsde/default.nix index 66e23a594f91..32ad7a3931f1 100644 --- a/pkgs/development/python-modules/torchsde/default.nix +++ b/pkgs/development/python-modules/torchsde/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, boltons -, numpy -, scipy -, torch -, trampoline + # dependencies + boltons, + numpy, + scipy, + torch, + trampoline, -# tests -, pytest7CheckHook + # tests + pytest7CheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace "scipy==1.5.*" "scipy" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ boltons @@ -48,9 +47,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "torchsde" ]; - nativeCheckInputs = [ - pytest7CheckHook - ]; + nativeCheckInputs = [ pytest7CheckHook ]; disabledTests = [ # RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation. diff --git a/pkgs/development/python-modules/torchvision/bin.nix b/pkgs/development/python-modules/torchvision/bin.nix index eda64ff4a038..3e81dbed2719 100644 --- a/pkgs/development/python-modules/torchvision/bin.nix +++ b/pkgs/development/python-modules/torchvision/bin.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, addOpenGLRunpath -, autoPatchelfHook -, buildPythonPackage -, cudaPackages -, fetchurl -, pythonAtLeast -, pythonOlder -, pillow -, python -, torch-bin +{ + lib, + stdenv, + addOpenGLRunpath, + autoPatchelfHook, + buildPythonPackage, + cudaPackages, + fetchurl, + pythonAtLeast, + pythonOlder, + pillow, + python, + torch-bin, }: let @@ -17,7 +18,8 @@ let srcs = import ./binary-hashes.nix version; unsupported = throw "Unsupported system"; version = "0.18.0"; -in buildPythonPackage { +in +buildPythonPackage { inherit version; pname = "torchvision"; @@ -29,11 +31,13 @@ in buildPythonPackage { disabled = (pythonOlder "3.8") || (pythonAtLeast "3.13"); # Note that we don't rely on config.cudaSupport here, because the Linux wheels all come built with CUDA support. - buildInputs = with cudaPackages; lib.optionals stdenv.isLinux [ - # $out/${sitePackages}/torchvision/_C.so wants libcudart.so.11.0 but torchvision.libs only ships - # libcudart.$hash.so.11.0 - cuda_cudart - ]; + buildInputs = + with cudaPackages; + lib.optionals stdenv.isLinux [ + # $out/${sitePackages}/torchvision/_C.so wants libcudart.so.11.0 but torchvision.libs only ships + # libcudart.$hash.so.11.0 + cuda_cudart + ]; nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook @@ -63,7 +67,11 @@ in buildPythonPackage { # https://www.intel.com/content/www/us/en/developer/articles/license/onemkl-license-faq.html license = licenses.bsd3; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - platforms = [ "aarch64-darwin" "x86_64-linux" "aarch64-linux" ]; + platforms = [ + "aarch64-darwin" + "x86_64-linux" + "aarch64-linux" + ]; maintainers = with maintainers; [ junjihashimoto ]; }; } diff --git a/pkgs/development/python-modules/torchvision/binary-hashes.nix b/pkgs/development/python-modules/torchvision/binary-hashes.nix index d1dfd0c46ed5..a5f047ff3c34 100644 --- a/pkgs/development/python-modules/torchvision/binary-hashes.nix +++ b/pkgs/development/python-modules/torchvision/binary-hashes.nix @@ -5,7 +5,8 @@ # To add a new version, run "prefetch.sh 'new-version'" to paste the generated file as follows. -version : builtins.getAttr version { +version: +builtins.getAttr version { "0.18.0" = { x86_64-linux-38 = { name = "torchvision-0.18.0-cp38-cp38-linux_x86_64.whl"; diff --git a/pkgs/development/python-modules/torchvision/default.nix b/pkgs/development/python-modules/torchvision/default.nix index 6ae31186731a..91a269170e3b 100644 --- a/pkgs/development/python-modules/torchvision/default.nix +++ b/pkgs/development/python-modules/torchvision/default.nix @@ -1,15 +1,16 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib -, libjpeg_turbo -, libpng -, ninja -, numpy -, pillow -, pytest -, scipy -, torch -, which +{ + buildPythonPackage, + fetchFromGitHub, + lib, + libjpeg_turbo, + libpng, + ninja, + numpy, + pillow, + pytest, + scipy, + torch, + which, }: let @@ -33,26 +34,34 @@ buildPythonPackage { libpng ninja which - ] ++ lib.optionals cudaSupport [ - cudaPackages.cuda_nvcc + ] ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc ]; + + buildInputs = [ + libjpeg_turbo + libpng + torch.cxxdev ]; - buildInputs = [ libjpeg_turbo libpng torch.cxxdev ]; + propagatedBuildInputs = [ + numpy + pillow + torch + scipy + ]; - propagatedBuildInputs = [ numpy pillow torch scipy ]; - - preConfigure = '' - export TORCHVISION_INCLUDE="${libjpeg_turbo.dev}/include/" - export TORCHVISION_LIBRARY="${libjpeg_turbo}/lib/" - '' - # NOTE: We essentially override the compilers provided by stdenv because we don't have a hook - # for cudaPackages to swap in compilers supported by NVCC. - + lib.optionalString cudaSupport '' - export CC=${backendStdenv.cc}/bin/cc - export CXX=${backendStdenv.cc}/bin/c++ - export TORCH_CUDA_ARCH_LIST="${lib.concatStringsSep ";" cudaCapabilities}" - export FORCE_CUDA=1 - ''; + preConfigure = + '' + export TORCHVISION_INCLUDE="${libjpeg_turbo.dev}/include/" + export TORCHVISION_LIBRARY="${libjpeg_turbo}/lib/" + '' + # NOTE: We essentially override the compilers provided by stdenv because we don't have a hook + # for cudaPackages to swap in compilers supported by NVCC. + + lib.optionalString cudaSupport '' + export CC=${backendStdenv.cc}/bin/cc + export CXX=${backendStdenv.cc}/bin/c++ + export TORCH_CUDA_ARCH_LIST="${lib.concatStringsSep ";" cudaCapabilities}" + export FORCE_CUDA=1 + ''; # tries to download many datasets for tests doCheck = false; diff --git a/pkgs/development/python-modules/tornado/4.nix b/pkgs/development/python-modules/tornado/4.nix index 7476a22792ee..c534ae800ed9 100644 --- a/pkgs/development/python-modules/tornado/4.nix +++ b/pkgs/development/python-modules/tornado/4.nix @@ -1,10 +1,11 @@ -{ lib -, unittestCheckHook -, buildPythonPackage -, fetchPypi -, fetchpatch -, isPy27 -, pythonAtLeast +{ + lib, + unittestCheckHook, + buildPythonPackage, + fetchPypi, + fetchpatch, + isPy27, + pythonAtLeast, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tornado/5.nix b/pkgs/development/python-modules/tornado/5.nix index 8ba3a8c073ba..13d5515d8787 100644 --- a/pkgs/development/python-modules/tornado/5.nix +++ b/pkgs/development/python-modules/tornado/5.nix @@ -1,10 +1,11 @@ -{ lib -, unittestCheckHook -, buildPythonPackage -, fetchPypi -, fetchpatch -, isPy27 -, pythonAtLeast +{ + lib, + unittestCheckHook, + buildPythonPackage, + fetchPypi, + fetchpatch, + isPy27, + pythonAtLeast, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tornado/default.nix b/pkgs/development/python-modules/tornado/default.nix index 75187d12d29f..a986c5327ec7 100644 --- a/pkgs/development/python-modules/tornado/default.nix +++ b/pkgs/development/python-modules/tornado/default.nix @@ -1,20 +1,21 @@ -{ lib -, python -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + python, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, -# for passthru.tests -, distributed -, jupyter-server -, jupyterlab -, matplotlib -, mitmproxy -, pytest-tornado -, pytest-tornasync -, pyzmq -, sockjs-tornado -, urllib3 + # for passthru.tests + distributed, + jupyter-server, + jupyterlab, + matplotlib, + mitmproxy, + pytest-tornado, + pytest-tornasync, + pyzmq, + sockjs-tornado, + urllib3, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-l9Ce/c2wDSmsySr9yXu5Fl/+63QkQay46aDSUTJmetA="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # additional tests that have extra dependencies, run slowly, or produce more output than a simple pass/fail @@ -62,7 +61,8 @@ buildPythonPackage rec { pytest-tornasync pyzmq sockjs-tornado - urllib3; + urllib3 + ; }; meta = with lib; { diff --git a/pkgs/development/python-modules/torpy/default.nix b/pkgs/development/python-modules/torpy/default.nix index cfaaef421926..d6f257dfa9ad 100644 --- a/pkgs/development/python-modules/torpy/default.nix +++ b/pkgs/development/python-modules/torpy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, cryptography -, pytestCheckHook -, requests +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + cryptography, + pytestCheckHook, + requests, }: buildPythonPackage rec { @@ -24,20 +25,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ cryptography requests - ]; - - nativeCheckInputs = [ - pytestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; + disabledTestPaths = [ # requires network "tests/integration" ]; - pythonImportsCheck = [ - "cryptography" - ]; + pythonImportsCheck = [ "cryptography" ]; meta = with lib; { description = "Pure python Tor client"; diff --git a/pkgs/development/python-modules/torrent-parser/default.nix b/pkgs/development/python-modules/torrent-parser/default.nix index bd46ea57e0fb..b3e868aa76b6 100644 --- a/pkgs/development/python-modules/torrent-parser/default.nix +++ b/pkgs/development/python-modules/torrent-parser/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -11,30 +12,24 @@ buildPythonPackage rec { pyproject = true; src = fetchFromGitHub { - owner = "7sDream"; - repo = "torrent_parser"; - rev = "v${version}"; + owner = "7sDream"; + repo = "torrent_parser"; + rev = "v${version}"; hash = "sha256-zM738r3o9dGZYoWLN7fM4E06m6YPcAODEkgDS6wU/Sc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "torrent_parser" - ]; + pythonImportsCheck = [ "torrent_parser" ]; meta = { description = "A .torrent file parser and creator for both Python 2 and 3"; mainProgram = "pytp"; - homepage = "https://github.com/7sDream/torrent_parser"; + homepage = "https://github.com/7sDream/torrent_parser"; changelog = "https://github.com/7sDream/torrent_parser/blob/${src.rev}/CHANGELOG.md"; - license = lib.licenses.mit; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/torrequest/default.nix b/pkgs/development/python-modules/torrequest/default.nix index 90a0ab747a88..18fc52c24aa6 100644 --- a/pkgs/development/python-modules/torrequest/default.nix +++ b/pkgs/development/python-modules/torrequest/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, requests, pysocks, stem }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + pysocks, + stem, +}: buildPythonPackage rec { pname = "torrequest"; @@ -11,15 +18,15 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - pysocks requests stem + pysocks + requests + stem ]; # This package does not contain any tests. doCheck = false; - pythonImportsCheck = [ - "torrequest" - ]; + pythonImportsCheck = [ "torrequest" ]; meta = with lib; { homepage = "https://github.com/erdiaker/torrequest"; diff --git a/pkgs/development/python-modules/towncrier/default.nix b/pkgs/development/python-modules/towncrier/default.nix index 507160291b56..6bd00159fd8e 100644 --- a/pkgs/development/python-modules/towncrier/default.nix +++ b/pkgs/development/python-modules/towncrier/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, click -, fetchPypi -, git # shells out to git -, hatchling -, importlib-resources -, incremental -, jinja2 -, mock -, pytestCheckHook -, pythonOlder -, tomli -, twisted +{ + lib, + buildPythonPackage, + click, + fetchPypi, + git, # shells out to git + hatchling, + importlib-resources, + incremental, + jinja2, + mock, + pytestCheckHook, + pythonOlder, + tomli, + twisted, }: buildPythonPackage rec { @@ -31,19 +32,16 @@ buildPythonPackage rec { --replace "hatchling ~= 1.17.1" "hatchling" ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - click - incremental - jinja2 - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-resources - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = + [ + click + incremental + jinja2 + ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ]; preCheck = '' export PATH=$out/bin:$PATH @@ -56,9 +54,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "towncrier" - ]; + pythonImportsCheck = [ "towncrier" ]; meta = with lib; { description = "Utility to produce useful, summarised news files"; diff --git a/pkgs/development/python-modules/tox/default.nix b/pkgs/development/python-modules/tox/default.nix index b534a4baed87..9ebfe0cf1d7d 100644 --- a/pkgs/development/python-modules/tox/default.nix +++ b/pkgs/development/python-modules/tox/default.nix @@ -1,25 +1,26 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, packaging -, pluggy -, py -, six -, virtualenv -, setuptools-scm -, toml -, tomli -, filelock -, hatchling -, hatch-vcs -, platformdirs -, pyproject-api -, colorama -, chardet -, cachetools -, testers -, tox +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + packaging, + pluggy, + py, + six, + virtualenv, + setuptools-scm, + toml, + tomli, + filelock, + hatchling, + hatch-vcs, + platformdirs, + pyproject-api, + colorama, + chardet, + cachetools, + testers, + tox, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { six toml virtualenv - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; doCheck = false; # infinite recursion via devpi-client diff --git a/pkgs/development/python-modules/tplink-omada-client/default.nix b/pkgs/development/python-modules/tplink-omada-client/default.nix index cea4b17679ce..eb53e74cebb6 100644 --- a/pkgs/development/python-modules/tplink-omada-client/default.nix +++ b/pkgs/development/python-modules/tplink-omada-client/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, awesomeversion -, buildPythonPackage -, fetchPypi -, hatchling -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + awesomeversion, + buildPythonPackage, + fetchPypi, + hatchling, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-P7kb8gzPjRwl6KpKbh/k7QqjGU6m+HVBbMCuoabG+5M="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; dependencies = [ aiohttp @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module have no tests doCheck = false; - pythonImportsCheck = [ - "tplink_omada_client" - ]; + pythonImportsCheck = [ "tplink_omada_client" ]; meta = with lib; { description = "Library for the TP-Link Omada SDN Controller API"; diff --git a/pkgs/development/python-modules/tpm2-pytss/default.nix b/pkgs/development/python-modules/tpm2-pytss/default.nix index 0346943304a2..48e02d477885 100644 --- a/pkgs/development/python-modules/tpm2-pytss/default.nix +++ b/pkgs/development/python-modules/tpm2-pytss/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, fetchurl -, substituteAll -, buildPythonPackage -, fetchPypi -, pythonOlder -, asn1crypto -, cffi -, cryptography -, pkgconfig # see nativeBuildInputs -, pkg-config # see nativeBuildInputs -, pycparser -, pytestCheckHook -, python -, pyyaml -, setuptools-scm -, tpm2-tss -, tpm2-tools -, swtpm +{ + lib, + stdenv, + fetchurl, + substituteAll, + buildPythonPackage, + fetchPypi, + pythonOlder, + asn1crypto, + cffi, + cryptography, + pkgconfig, # see nativeBuildInputs + pkg-config, # see nativeBuildInputs + pycparser, + pytestCheckHook, + python, + pyyaml, + setuptools-scm, + tpm2-tss, + tpm2-tools, + swtpm, }: let @@ -35,26 +36,28 @@ buildPythonPackage rec { hash = "sha256-uPFUc0IvN39ZxyF9zRR5FlzOYt+jOTTsl2oni68unv4="; }; - patches = [ - # Fix hardcoded `fapi-config.json` configuration path - ./fapi-config.patch - (fetchurl { - url = "https://github.com/tpm2-software/tpm2-pytss/pull/571/commits/b02fdc8e259fe977c1065389c042be69e2985bdf.patch"; - hash = "sha256-+jZFv+s9p52JxtUcNeJx7ayzKDVtPoQSSGgyZqPDuEc="; - }) - ] ++ lib.optionals isCross [ - # pytss will regenerate files from headers of tpm2-tss. - # Those headers are fed through a compiler via pycparser. pycparser expects `cpp` - # to be in the path. - # This is put in the path via stdenv when not cross-compiling, but this is absent - # when cross-compiling is turned on. - # This patch changes the call to pycparser.preprocess_file to provide the name - # of the cross-compiling cpp - (substituteAll { - src = ./cross.patch; - crossPrefix = stdenv.hostPlatform.config; - }) - ]; + patches = + [ + # Fix hardcoded `fapi-config.json` configuration path + ./fapi-config.patch + (fetchurl { + url = "https://github.com/tpm2-software/tpm2-pytss/pull/571/commits/b02fdc8e259fe977c1065389c042be69e2985bdf.patch"; + hash = "sha256-+jZFv+s9p52JxtUcNeJx7ayzKDVtPoQSSGgyZqPDuEc="; + }) + ] + ++ lib.optionals isCross [ + # pytss will regenerate files from headers of tpm2-tss. + # Those headers are fed through a compiler via pycparser. pycparser expects `cpp` + # to be in the path. + # This is put in the path via stdenv when not cross-compiling, but this is absent + # when cross-compiling is turned on. + # This patch changes the call to pycparser.preprocess_file to provide the name + # of the cross-compiling cpp + (substituteAll { + src = ./cross.patch; + crossPrefix = stdenv.hostPlatform.config; + }) + ]; postPatch = '' sed -i "s#@TPM2_TSS@#${tpm2-tss.out}#" src/tpm2_pytss/FAPI.py @@ -64,9 +67,7 @@ buildPythonPackage rec { # due to pycparsing handling it poorly. # See https://github.com/NixOS/nixpkgs/issues/252023 # for more details. - hardeningDisable = [ - "fortify" - ]; + hardeningDisable = [ "fortify" ]; nativeBuildInputs = [ cffi @@ -75,9 +76,7 @@ buildPythonPackage rec { setuptools-scm ]; - buildInputs = [ - tpm2-tss - ]; + buildInputs = [ tpm2-tss ]; propagatedBuildInputs = [ cffi @@ -94,9 +93,7 @@ buildPythonPackage rec { swtpm ]; - pythonImportsCheck = [ - "tpm2_pytss" - ]; + pythonImportsCheck = [ "tpm2_pytss" ]; meta = with lib; { homepage = "https://github.com/tpm2-software/tpm2-pytss"; diff --git a/pkgs/development/python-modules/tqdm/default.nix b/pkgs/development/python-modules/tqdm/default.nix index 85fd2091d69b..9d5e813fcc69 100644 --- a/pkgs/development/python-modules/tqdm/default.nix +++ b/pkgs/development/python-modules/tqdm/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel -, pytestCheckHook -, pytest-asyncio -, pytest-timeout -, numpy -, pandas -, rich -, tkinter +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, + pytestCheckHook, + pytest-asyncio, + pytest-timeout, + numpy, + pandas, + rich, + tkinter, }: buildPythonPackage rec { @@ -41,17 +42,17 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "-W" "ignore::FutureWarning" - "-W" "ignore::DeprecationWarning" + "-W" + "ignore::FutureWarning" + "-W" + "ignore::DeprecationWarning" ]; # Remove performance testing. # Too sensitive for on Hydra. - disabledTests = [ - "perf" - ]; + disabledTests = [ "perf" ]; - LC_ALL="en_US.UTF-8"; + LC_ALL = "en_US.UTF-8"; pythonImportsCheck = [ "tqdm" ]; diff --git a/pkgs/development/python-modules/traceback2/default.nix b/pkgs/development/python-modules/traceback2/default.nix index 9992cd1470b7..0398aea1dd74 100644 --- a/pkgs/development/python-modules/traceback2/default.nix +++ b/pkgs/development/python-modules/traceback2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, linecache2 +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + linecache2, }: buildPythonPackage rec { @@ -15,7 +16,10 @@ buildPythonPackage rec { sha256 = "0c1h3jas1jp1fdbn9z2mrgn3jj0hw1x3yhnkxp7jw34q15xcdb05"; }; - propagatedBuildInputs = [ pbr linecache2 ]; + propagatedBuildInputs = [ + pbr + linecache2 + ]; # circular dependencies for tests doCheck = false; @@ -25,5 +29,4 @@ buildPythonPackage rec { homepage = "https://pypi.python.org/pypi/traceback2/"; license = licenses.psfl; }; - } diff --git a/pkgs/development/python-modules/tracerite/default.nix b/pkgs/development/python-modules/tracerite/default.nix index 9b98e986bb36..024859c6be28 100644 --- a/pkgs/development/python-modules/tracerite/default.nix +++ b/pkgs/development/python-modules/tracerite/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, html5tagger -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + html5tagger, + python, + pythonOlder, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { hash = "sha256-rI1MNdYl/P64tUHyB3qV9gfLbGbCVOXnEFoqFTkaqgg="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - html5tagger - ]; + propagatedBuildInputs = [ html5tagger ]; postInstall = '' cp tracerite/style.css $out/${python.sitePackages}/tracerite @@ -36,9 +33,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "tracerite" - ]; + pythonImportsCheck = [ "tracerite" ]; meta = with lib; { description = "Tracebacks for Humans in Jupyter notebooks"; diff --git a/pkgs/development/python-modules/tracing/default.nix b/pkgs/development/python-modules/tracing/default.nix index a447ae2ad0ba..1740e6d7bad3 100644 --- a/pkgs/development/python-modules/tracing/default.nix +++ b/pkgs/development/python-modules/tracing/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchurl -, sphinx +{ + lib, + buildPythonPackage, + fetchurl, + sphinx, }: buildPythonPackage rec { @@ -23,7 +24,6 @@ buildPythonPackage rec { homepage = "https://liw.fi/tracing/"; description = "Python debug logging helper"; license = licenses.gpl3; - maintainers = []; + maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/trackpy/default.nix b/pkgs/development/python-modules/trackpy/default.nix index 1292e7d72a71..d62058381b7b 100644 --- a/pkgs/development/python-modules/trackpy/default.nix +++ b/pkgs/development/python-modules/trackpy/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, looseversion -, matplotlib -, numba -, numpy -, pandas -, pytestCheckHook -, pythonOlder -, pyyaml -, scipy +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + looseversion, + matplotlib, + numba, + numpy, + pandas, + pytestCheckHook, + pythonOlder, + pyyaml, + scipy, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { scipy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = lib.optionalString stdenv.isDarwin '' # specifically needed for darwin @@ -48,9 +47,7 @@ buildPythonPackage rec { echo "backend: ps" > $HOME/.matplotlib/matplotlibrc ''; - pythonImportsCheck = [ - "trackpy" - ]; + pythonImportsCheck = [ "trackpy" ]; meta = with lib; { description = "Particle-tracking toolkit"; diff --git a/pkgs/development/python-modules/trailrunner/default.nix b/pkgs/development/python-modules/trailrunner/default.nix index 04cf6b0c071f..1e7a13cdaefd 100644 --- a/pkgs/development/python-modules/trailrunner/default.nix +++ b/pkgs/development/python-modules/trailrunner/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pathspec -, pythonOlder -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pathspec, + pythonOlder, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-qtEBr22yyj6WcSfyYr/4r0IuuMJ6chFFqnmb+uMfQPA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - pathspec - ]; + propagatedBuildInputs = [ pathspec ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "trailrunner" - ]; + pythonImportsCheck = [ "trailrunner" ]; meta = with lib; { description = "Module to walk paths and run things"; diff --git a/pkgs/development/python-modules/trainer/default.nix b/pkgs/development/python-modules/trainer/default.nix index 848b970248f0..e2c16943fffc 100644 --- a/pkgs/development/python-modules/trainer/default.nix +++ b/pkgs/development/python-modules/trainer/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, coqpit -, fsspec -, torch -, tensorboard -, protobuf -, psutil + coqpit, + fsspec, + torch, + tensorboard, + protobuf, + psutil, -, pytestCheckHook -, soundfile -, torchvision + pytestCheckHook, + soundfile, + torchvision, }: let @@ -51,9 +52,7 @@ buildPythonPackage { torchvision ]; - pythonImportsCheck = [ - "trainer" - ]; + pythonImportsCheck = [ "trainer" ]; meta = with lib; { description = "A general purpose model trainer, as flexible as it gets"; diff --git a/pkgs/development/python-modules/traitlets/default.nix b/pkgs/development/python-modules/traitlets/default.nix index 51336a0f9195..cb657033ef24 100644 --- a/pkgs/development/python-modules/traitlets/default.nix +++ b/pkgs/development/python-modules/traitlets/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, hatchling + # build-system + hatchling, -# tests -, argcomplete -, pytest-mock -, pytestCheckHook + # tests + argcomplete, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-jN2DwEDat9He6CJnjl9dEAtRT3tysBYVsm/FcYkW/fk="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; nativeCheckInputs = [ argcomplete diff --git a/pkgs/development/python-modules/traits/default.nix b/pkgs/development/python-modules/traits/default.nix index 47b5eef29ced..e2335a8b1b7b 100644 --- a/pkgs/development/python-modules/traits/default.nix +++ b/pkgs/development/python-modules/traits/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, numpy -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # Circular dependency doCheck = false; - pythonImportsCheck = [ - "traits" - ]; + pythonImportsCheck = [ "traits" ]; meta = with lib; { description = "Explicitly typed attributes for Python"; diff --git a/pkgs/development/python-modules/traitsui/default.nix b/pkgs/development/python-modules/traitsui/default.nix index 0c7245225d10..d19d1d04e23e 100644 --- a/pkgs/development/python-modules/traitsui/default.nix +++ b/pkgs/development/python-modules/traitsui/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools -, traits -, pyface -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools, + traits, + pyface, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-kBudHLxFUT4Apzl2d7CYRBsod0tojzChWbrUgBv0A2Q="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ traits @@ -31,9 +30,7 @@ buildPythonPackage rec { # Needs X server doCheck = false; - pythonImportsCheck = [ - "traitsui" - ]; + pythonImportsCheck = [ "traitsui" ]; meta = with lib; { description = "Traits-capable windowing framework"; diff --git a/pkgs/development/python-modules/traittypes/default.nix b/pkgs/development/python-modules/traittypes/default.nix index 3f8ab6fa4dd1..dfc793888bac 100644 --- a/pkgs/development/python-modules/traittypes/default.nix +++ b/pkgs/development/python-modules/traittypes/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, isPy27 -, pytestCheckHook -, nose -, numpy -, pandas -, xarray -, traitlets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + isPy27, + pytestCheckHook, + nose, + numpy, + pandas, + xarray, + traitlets, }: buildPythonPackage rec { @@ -27,15 +28,21 @@ buildPythonPackage rec { patches = [ (fetchpatch { - name = "fix-intarray-test.patch"; - url = "https://github.com/minrk/traittypes/commit/a02441e5b259e5858453a853207260c9bd4efbb5.patch"; - sha256 = "120dsvr5nksizw75z1ah3h38mi399fxbvz5anakica557jahi0aw"; + name = "fix-intarray-test.patch"; + url = "https://github.com/minrk/traittypes/commit/a02441e5b259e5858453a853207260c9bd4efbb5.patch"; + sha256 = "120dsvr5nksizw75z1ah3h38mi399fxbvz5anakica557jahi0aw"; }) ]; propagatedBuildInputs = [ traitlets ]; - nativeCheckInputs = [ numpy pandas xarray nose pytestCheckHook ]; + nativeCheckInputs = [ + numpy + pandas + xarray + nose + pytestCheckHook + ]; disabledTestPaths = lib.optionals (lib.versionAtLeast numpy.version "1.17") [ # https://github.com/jupyter-widgets/traittypes/blob/master/setup.py#L86-L87 @@ -50,5 +57,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ bcdarwin ]; }; - } diff --git a/pkgs/development/python-modules/trampoline/default.nix b/pkgs/development/python-modules/trampoline/default.nix index 2be2ff6e819d..6cc163885ccc 100644 --- a/pkgs/development/python-modules/trampoline/default.nix +++ b/pkgs/development/python-modules/trampoline/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitLab -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitLab, + pytestCheckHook, }: buildPythonPackage { @@ -17,13 +18,9 @@ buildPythonPackage { hash = "sha256-A/tuR+QW9sKh76Qjwn1uQxlVJgWrSFzXeBRDdnSi2o4="; }; - pythonImportsCheck = [ - "trampoline" - ]; + pythonImportsCheck = [ "trampoline" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Simple and tiny yield-based trampoline implementation for python"; diff --git a/pkgs/development/python-modules/transaction/default.nix b/pkgs/development/python-modules/transaction/default.nix index 4587bc494988..fa4cef5acb9c 100644 --- a/pkgs/development/python-modules/transaction/default.nix +++ b/pkgs/development/python-modules/transaction/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchPypi -, buildPythonPackage -, zope-interface -, mock -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + zope-interface, + mock, + pythonOlder, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { mock ]; - pythonImportsCheck = [ - "transaction" - ]; + pythonImportsCheck = [ "transaction" ]; meta = with lib; { description = "Transaction management"; diff --git a/pkgs/development/python-modules/transformers/default.nix b/pkgs/development/python-modules/transformers/default.nix index 4883f7118287..5db1c4b3b12f 100644 --- a/pkgs/development/python-modules/transformers/default.nix +++ b/pkgs/development/python-modules/transformers/default.nix @@ -1,55 +1,56 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -# propagated build inputs -, filelock -, huggingface-hub -, numpy -, protobuf -, packaging -, pyyaml -, regex -, requests -, tokenizers -, safetensors -, tqdm -# optional dependencies -, diffusers -, scikit-learn -, tensorflow -, onnxconverter-common -, opencv4 -, tf2onnx -, torch -, accelerate -, faiss -, datasets -, jax -, jaxlib -, flax -, optax -, ftfy -, onnxruntime -, onnxruntime-tools -, cookiecutter -, sagemaker -, fairscale -, optuna -, ray -, pydantic -, uvicorn -, fastapi -, starlette -, librosa -, phonemizer -, torchaudio -, pillow -, timm -, torchvision -, av -, sentencepiece +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + # propagated build inputs + filelock, + huggingface-hub, + numpy, + protobuf, + packaging, + pyyaml, + regex, + requests, + tokenizers, + safetensors, + tqdm, + # optional dependencies + diffusers, + scikit-learn, + tensorflow, + onnxconverter-common, + opencv4, + tf2onnx, + torch, + accelerate, + faiss, + datasets, + jax, + jaxlib, + flax, + optax, + ftfy, + onnxruntime, + onnxruntime-tools, + cookiecutter, + sagemaker, + fairscale, + optuna, + ray, + pydantic, + uvicorn, + fastapi, + starlette, + librosa, + phonemizer, + torchaudio, + pillow, + timm, + torchvision, + av, + sentencepiece, }: buildPythonPackage rec { @@ -66,9 +67,7 @@ buildPythonPackage rec { hash = "sha256-FUYQeEksjDasFvQraycNFAx3cLHfDdPpgZssqN8OIJw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ filelock @@ -84,108 +83,108 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = - let - audio = [ - librosa - # pyctcdecode - phonemizer - # kenlm - ]; - vision = [ pillow ]; - in + let + audio = [ + librosa + # pyctcdecode + phonemizer + # kenlm + ]; + vision = [ pillow ]; + in { - agents = [ - diffusers - accelerate - datasets - torch - sentencepiece - opencv4 - pillow - ]; - ja = [ - # fugashi - # ipadic - # rhoknp - # sudachidict_core - # sudachipy - # unidic - # unidic_lite - ]; - sklearn = [ - scikit-learn - ]; - tf = [ - tensorflow - onnxconverter-common - tf2onnx - # tensorflow-text - # keras-nlp - ]; - torch = [ - torch - accelerate - ]; - retrieval = [ faiss datasets ]; - flax = [ jax jaxlib flax optax ]; - tokenizers = [ - tokenizers - ]; - ftfy = [ ftfy ]; - onnxruntime = [ - onnxruntime - onnxruntime-tools - ]; - onnx = [ - onnxconverter-common - tf2onnx - onnxruntime - onnxruntime-tools - ]; - modelcreation = [ - cookiecutter - ]; - sagemaker = [ - sagemaker - ]; - deepspeed = [ - # deepspeed - accelerate - ]; - fairscale = [ fairscale ]; - optuna = [ optuna ]; - ray = [ ray ] ++ ray.optional-dependencies.tune-deps; - # sigopt = [ sigopt ]; - # integrations = ray ++ optuna ++ sigopt; - serving = [ - pydantic - uvicorn - fastapi - starlette - ]; - audio = audio; - speech = [ torchaudio ] ++ audio; - torch-speech = [ torchaudio ] ++ audio; - tf-speech = audio; - flax-speech = audio; - timm = [ timm ]; - torch-vision = [ torchvision ] ++ vision; - # natten = [ natten ]; - # codecarbon = [ codecarbon ]; - video = [ - # decord - av - ]; - sentencepiece = [ sentencepiece protobuf ]; - }; - + agents = [ + diffusers + accelerate + datasets + torch + sentencepiece + opencv4 + pillow + ]; + ja = [ + # fugashi + # ipadic + # rhoknp + # sudachidict_core + # sudachipy + # unidic + # unidic_lite + ]; + sklearn = [ scikit-learn ]; + tf = [ + tensorflow + onnxconverter-common + tf2onnx + # tensorflow-text + # keras-nlp + ]; + torch = [ + torch + accelerate + ]; + retrieval = [ + faiss + datasets + ]; + flax = [ + jax + jaxlib + flax + optax + ]; + tokenizers = [ tokenizers ]; + ftfy = [ ftfy ]; + onnxruntime = [ + onnxruntime + onnxruntime-tools + ]; + onnx = [ + onnxconverter-common + tf2onnx + onnxruntime + onnxruntime-tools + ]; + modelcreation = [ cookiecutter ]; + sagemaker = [ sagemaker ]; + deepspeed = [ + # deepspeed + accelerate + ]; + fairscale = [ fairscale ]; + optuna = [ optuna ]; + ray = [ ray ] ++ ray.optional-dependencies.tune-deps; + # sigopt = [ sigopt ]; + # integrations = ray ++ optuna ++ sigopt; + serving = [ + pydantic + uvicorn + fastapi + starlette + ]; + audio = audio; + speech = [ torchaudio ] ++ audio; + torch-speech = [ torchaudio ] ++ audio; + tf-speech = audio; + flax-speech = audio; + timm = [ timm ]; + torch-vision = [ torchvision ] ++ vision; + # natten = [ natten ]; + # codecarbon = [ codecarbon ]; + video = [ + # decord + av + ]; + sentencepiece = [ + sentencepiece + protobuf + ]; + }; # Many tests require internet access. doCheck = false; - pythonImportsCheck = [ - "transformers" - ]; + pythonImportsCheck = [ "transformers" ]; meta = with lib; { homepage = "https://github.com/huggingface/transformers"; @@ -194,6 +193,9 @@ buildPythonPackage rec { changelog = "https://github.com/huggingface/transformers/releases/tag/v${version}"; license = licenses.asl20; platforms = platforms.unix; - maintainers = with maintainers; [ pashashocky happysalada ]; + maintainers = with maintainers; [ + pashashocky + happysalada + ]; }; } diff --git a/pkgs/development/python-modules/transforms3d/default.nix b/pkgs/development/python-modules/transforms3d/default.nix index 6bab6a5148b5..154badcbaa3a 100644 --- a/pkgs/development/python-modules/transforms3d/default.nix +++ b/pkgs/development/python-modules/transforms3d/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, numpy -, scipy -, sympy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + numpy, + scipy, + sympy, }: buildPythonPackage rec { @@ -22,9 +23,15 @@ buildPythonPackage rec { hash = "sha256-GgnjvwAfyxnDfBGvgMFIPPbR88BWFiNGrScVORygq94="; }; - propagatedBuildInputs = [ numpy sympy ]; + propagatedBuildInputs = [ + numpy + sympy + ]; - nativeCheckInputs = [ pytestCheckHook scipy ]; + nativeCheckInputs = [ + pytestCheckHook + scipy + ]; pythonImportsCheck = [ "transforms3d" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/transitions/default.nix b/pkgs/development/python-modules/transitions/default.nix index 7e73b9c73aba..2425625f0a28 100644 --- a/pkgs/development/python-modules/transitions/default.nix +++ b/pkgs/development/python-modules/transitions/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, fontconfig -, graphviz -, mock -, pycodestyle -, pygraphviz -, pytestCheckHook -, pythonAtLeast -, setuptools -, six +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + fontconfig, + graphviz, + mock, + pycodestyle, + pygraphviz, + pytestCheckHook, + pythonAtLeast, + setuptools, + six, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-NULDcQjpPirl8hUgjsVzLJSncpN4VKECzXNFuWf+5hs="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ six @@ -44,17 +43,17 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - disabledTests = [ - "test_diagram" - "test_ordered_with_graph" - ] ++ lib.optionals stdenv.isDarwin [ - # Upstream issue https://github.com/pygraphviz/pygraphviz/issues/441 - "test_binary_stream" - ]; + disabledTests = + [ + "test_diagram" + "test_ordered_with_graph" + ] + ++ lib.optionals stdenv.isDarwin [ + # Upstream issue https://github.com/pygraphviz/pygraphviz/issues/441 + "test_binary_stream" + ]; - pythonImportsCheck = [ - "transitions" - ]; + pythonImportsCheck = [ "transitions" ]; meta = with lib; { homepage = "https://github.com/pytransitions/transitions"; diff --git a/pkgs/development/python-modules/translatehtml/default.nix b/pkgs/development/python-modules/translatehtml/default.nix index e97e248edfdd..c1364ff8806f 100644 --- a/pkgs/development/python-modules/translatehtml/default.nix +++ b/pkgs/development/python-modules/translatehtml/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, argostranslate -, beautifulsoup4 +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + argostranslate, + beautifulsoup4, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/translatepy/default.nix b/pkgs/development/python-modules/translatepy/default.nix index 0fc86af44cc4..8207afb52a01 100644 --- a/pkgs/development/python-modules/translatepy/default.nix +++ b/pkgs/development/python-modules/translatepy/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, beautifulsoup4 -, pyuseragents -, safeio -, inquirer -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + beautifulsoup4, + pyuseragents, + safeio, + inquirer, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/translationstring/default.nix b/pkgs/development/python-modules/translationstring/default.nix index ab6c1808e428..1110c6c58e91 100644 --- a/pkgs/development/python-modules/translationstring/default.nix +++ b/pkgs/development/python-modules/translationstring/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -19,5 +20,4 @@ buildPythonPackage rec { license = licenses.bsd0; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/translitcodec/default.nix b/pkgs/development/python-modules/translitcodec/default.nix index 20da4d3431c4..2b77a2fceb51 100644 --- a/pkgs/development/python-modules/translitcodec/default.nix +++ b/pkgs/development/python-modules/translitcodec/default.nix @@ -1,9 +1,16 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, +}: let pname = "translitcodec"; version = "0.7.0"; -in buildPythonPackage { +in +buildPythonPackage { inherit pname version; format = "setuptools"; diff --git a/pkgs/development/python-modules/transmission-rpc/default.nix b/pkgs/development/python-modules/transmission-rpc/default.nix index 32427487934a..71a4b2778ba7 100644 --- a/pkgs/development/python-modules/transmission-rpc/default.nix +++ b/pkgs/development/python-modules/transmission-rpc/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, python-dotenv -, pytz -, requests -, typing-extensions -, yarl +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + python-dotenv, + pytz, + requests, + typing-extensions, + yarl, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-HthWeFInolNEs7RNA773DJjhGvl1rfDhvhO8WwRwuuY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests @@ -41,9 +40,7 @@ buildPythonPackage rec { yarl ]; - pythonImportsCheck = [ - "transmission_rpc" - ]; + pythonImportsCheck = [ "transmission_rpc" ]; disabledTests = [ # Tests require a running Transmission instance diff --git a/pkgs/development/python-modules/transmissionrpc/default.nix b/pkgs/development/python-modules/transmissionrpc/default.nix index 5c2cf2ee85de..0b6875390be0 100644 --- a/pkgs/development/python-modules/transmissionrpc/default.nix +++ b/pkgs/development/python-modules/transmissionrpc/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/trectools/default.nix b/pkgs/development/python-modules/trectools/default.nix index f6870bd48c1a..e6e585397f42 100644 --- a/pkgs/development/python-modules/trectools/default.nix +++ b/pkgs/development/python-modules/trectools/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, beautifulsoup4 -, pythonOlder -, pandas -, python -, numpy -, scikit-learn -, scipy -, lxml -, matplotlib -, sarge +{ + lib, + buildPythonPackage, + fetchFromGitHub, + beautifulsoup4, + pythonOlder, + pandas, + python, + numpy, + scikit-learn, + scipy, + lxml, + matplotlib, + sarge, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tree-sitter/default.nix b/pkgs/development/python-modules/tree-sitter/default.nix index 039b9ce21cea..91bbe16a52f4 100644 --- a/pkgs/development/python-modules/tree-sitter/default.nix +++ b/pkgs/development/python-modules/tree-sitter/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -31,17 +32,11 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "tree_sitter" - ]; + pythonImportsCheck = [ "tree_sitter" ]; preCheck = '' rm -r tree_sitter diff --git a/pkgs/development/python-modules/treelib/default.nix b/pkgs/development/python-modules/treelib/default.nix index cf32b37a2319..490bba2fa3b3 100644 --- a/pkgs/development/python-modules/treelib/default.nix +++ b/pkgs/development/python-modules/treelib/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-FIdJWpkOmUVZb+IkYocu1nn+oSPROrkcHeiw9wZupgM="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/treelog/default.nix b/pkgs/development/python-modules/treelog/default.nix index 5f825bee623c..87ef2eca9f14 100644 --- a/pkgs/development/python-modules/treelog/default.nix +++ b/pkgs/development/python-modules/treelog/default.nix @@ -1,4 +1,10 @@ -{ lib , python, buildPythonPackage , fetchPypi, typing-extensions }: +{ + lib, + python, + buildPythonPackage, + fetchPypi, + typing-extensions, +}: buildPythonPackage rec { pname = "treelog"; @@ -12,9 +18,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "treelog" ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; checkPhase = '' ${python.interpreter} -m unittest diff --git a/pkgs/development/python-modules/treeo/default.nix b/pkgs/development/python-modules/treeo/default.nix index 789eb346e8c6..785ba18c670b 100644 --- a/pkgs/development/python-modules/treeo/default.nix +++ b/pkgs/development/python-modules/treeo/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchFromGitHub -, fetchpatch -, jax -, jaxlib -, lib -, poetry-core +{ + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + jax, + jaxlib, + lib, + poetry-core, }: buildPythonPackage rec { @@ -34,19 +35,13 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # jax is not declared in the dependencies, but is necessary. - propagatedBuildInputs = [ - jax - ]; + propagatedBuildInputs = [ jax ]; nativeCheckInputs = [ jaxlib ]; - pythonImportsCheck = [ - "treeo" - ]; + pythonImportsCheck = [ "treeo" ]; meta = with lib; { description = "A small library for creating and manipulating custom JAX Pytree classes."; diff --git a/pkgs/development/python-modules/treex/default.nix b/pkgs/development/python-modules/treex/default.nix index cfbadc344eff..151e6f41ac7b 100644 --- a/pkgs/development/python-modules/treex/default.nix +++ b/pkgs/development/python-modules/treex/default.nix @@ -1,22 +1,23 @@ -{ buildPythonPackage -, cloudpickle -, dm-haiku -, einops -, fetchFromGitHub -, flax -, hypothesis -, jaxlib -, keras -, lib -, poetry-core -, pytestCheckHook -, pyyaml -, rich -, tensorflow -, treeo -, torchmetrics -, pythonRelaxDepsHook -, torch +{ + buildPythonPackage, + cloudpickle, + dm-haiku, + einops, + fetchFromGitHub, + flax, + hypothesis, + jaxlib, + keras, + lib, + poetry-core, + pytestCheckHook, + pyyaml, + rich, + tensorflow, + treeo, + torchmetrics, + pythonRelaxDepsHook, + torch, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/treq/default.nix b/pkgs/development/python-modules/treq/default.nix index b2f020a8e379..9c090790124a 100644 --- a/pkgs/development/python-modules/treq/default.nix +++ b/pkgs/development/python-modules/treq/default.nix @@ -1,19 +1,20 @@ -{ lib -, fetchPypi -, buildPythonPackage +{ + lib, + fetchPypi, + buildPythonPackage, -# build-system -, incremental -, setuptools + # build-system + incremental, + setuptools, -# dependenices -, attrs -, hyperlink -, requests -, twisted + # dependenices + attrs, + hyperlink, + requests, + twisted, -# tests -, httpbin + # tests + httpbin, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/trezor-agent/default.nix b/pkgs/development/python-modules/trezor-agent/default.nix index f0b72da158b7..5f4093965fd0 100644 --- a/pkgs/development/python-modules/trezor-agent/default.nix +++ b/pkgs/development/python-modules/trezor-agent/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, trezor -, libagent -, ecdsa -, ed25519 -, mnemonic -, keepkey -, semver -, setuptools -, wheel -, pinentry +{ + lib, + buildPythonPackage, + fetchPypi, + trezor, + libagent, + ecdsa, + ed25519, + mnemonic, + keepkey, + semver, + setuptools, + wheel, + pinentry, }: buildPythonPackage rec { @@ -24,7 +25,18 @@ buildPythonPackage rec { hash = "sha256-4IylpUvXZYAXFkyFGNbN9iPTsHff3M/RL2Eq9f7wWFU="; }; - propagatedBuildInputs = [ setuptools trezor libagent ecdsa ed25519 mnemonic keepkey semver wheel pinentry ]; + propagatedBuildInputs = [ + setuptools + trezor + libagent + ecdsa + ed25519 + mnemonic + keepkey + semver + wheel + pinentry + ]; # relax dependency constraint postPatch = '' @@ -39,7 +51,10 @@ buildPythonPackage rec { description = "Using Trezor as hardware SSH agent"; homepage = "https://github.com/romanz/trezor-agent"; license = licenses.gpl3; - maintainers = with maintainers; [ hkjn np mmahut ]; + maintainers = with maintainers; [ + hkjn + np + mmahut + ]; }; - } diff --git a/pkgs/development/python-modules/trezor/default.nix b/pkgs/development/python-modules/trezor/default.nix index 7a4403550964..0ade95bd96d3 100644 --- a/pkgs/development/python-modules/trezor/default.nix +++ b/pkgs/development/python-modules/trezor/default.nix @@ -1,25 +1,26 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, isPy3k -, installShellFiles -, attrs -, click -, construct -, construct-classes -, ecdsa -, hidapi -, libusb1 -, mnemonic -, pillow -, protobuf -, requests -, shamir-mnemonic -, simple-rlp -, typing-extensions -, trezor-udev-rules -, pytestCheckHook +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + installShellFiles, + attrs, + click, + construct, + construct-classes, + ecdsa, + hidapi, + libusb1, + mnemonic, + pillow, + protobuf, + requests, + shamir-mnemonic, + simple-rlp, + typing-extensions, + trezor-udev-rules, + pytestCheckHook, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { shamir-mnemonic simple-rlp typing-extensions - ] ++ lib.optionals stdenv.isLinux [ - trezor-udev-rules - ]; + ] ++ lib.optionals stdenv.isLinux [ trezor-udev-rules ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -83,6 +82,10 @@ buildPythonPackage rec { mainProgram = "trezorctl"; homepage = "https://github.com/trezor/trezor-firmware/tree/master/python"; license = licenses.gpl3; - maintainers = with maintainers; [ np prusnak mmahut ]; + maintainers = with maintainers; [ + np + prusnak + mmahut + ]; }; } diff --git a/pkgs/development/python-modules/trfl/default.nix b/pkgs/development/python-modules/trfl/default.nix index 8538b47598ed..a0041be98eab 100644 --- a/pkgs/development/python-modules/trfl/default.nix +++ b/pkgs/development/python-modules/trfl/default.nix @@ -1,14 +1,16 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, numpy -, absl-py -, dm-tree -, wrapt -, tensorflow -, tensorflow-probability -, pytestCheckHook -, nose }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + numpy, + absl-py, + dm-tree, + wrapt, + tensorflow, + tensorflow-probability, + pytestCheckHook, + nose, +}: buildPythonPackage rec { pname = "trfl"; @@ -39,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "trfl" - ]; + pythonImportsCheck = [ "trfl" ]; # Tests currently fail with assertion errors doCheck = false; diff --git a/pkgs/development/python-modules/trimesh/default.nix b/pkgs/development/python-modules/trimesh/default.nix index 41f345da86c8..8758b6c53841 100644 --- a/pkgs/development/python-modules/trimesh/default.nix +++ b/pkgs/development/python-modules/trimesh/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook -, pythonOlder -, numpy -, lxml +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, + pythonOlder, + numpy, + lxml, }: buildPythonPackage rec { @@ -24,7 +25,10 @@ buildPythonPackage rec { dependencies = [ numpy ]; - nativeCheckInputs = [ lxml pytestCheckHook ]; + nativeCheckInputs = [ + lxml + pytestCheckHook + ]; disabledTests = [ # requires loading models which aren't part of the Pypi tarball @@ -40,6 +44,9 @@ buildPythonPackage rec { homepage = "https://trimsh.org/"; changelog = "https://github.com/mikedh/trimesh/releases/tag/${version}"; license = licenses.mit; - maintainers = with maintainers; [ gebner pbsds ]; + maintainers = with maintainers; [ + gebner + pbsds + ]; }; } diff --git a/pkgs/development/python-modules/trino-python-client/default.nix b/pkgs/development/python-modules/trino-python-client/default.nix index 479832bf9564..a75171f6957f 100644 --- a/pkgs/development/python-modules/trino-python-client/default.nix +++ b/pkgs/development/python-modules/trino-python-client/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, # build -, setuptools + setuptools, # required -, pytz -, requests -, tzlocal + pytz, + requests, + tzlocal, # optional -, requests-kerberos -, sqlalchemy -, keyring + requests-kerberos, + sqlalchemy, + keyring, # tests -, pytestCheckHook -, httpretty + pytestCheckHook, + httpretty, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-Hl88Keavyp1QBw67AFbevy/btzNs7UlsKQ93K02YgLM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pytz @@ -39,15 +38,9 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = lib.fix (self: { - kerberos = [ - requests-kerberos - ]; - sqlalchemy = [ - sqlalchemy - ]; - external-authentication-token-cache = [ - keyring - ]; + kerberos = [ requests-kerberos ]; + sqlalchemy = [ sqlalchemy ]; + external-authentication-token-cache = [ keyring ]; all = self.kerberos ++ self.sqlalchemy; }); @@ -56,9 +49,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.all; - pythonImportsCheck = [ - "trino" - ]; + pythonImportsCheck = [ "trino" ]; disabledTestPaths = [ # these all require a running trino instance @@ -67,9 +58,7 @@ buildPythonPackage rec { "tests/integration/test_sqlalchemy_integration.py" ]; - pytestFlagsArray = [ - "-k 'not auth'" - ]; + pytestFlagsArray = [ "-k 'not auth'" ]; meta = with lib; { changelog = "https://github.com/trinodb/trino-python-client/blob/${version}/CHANGES.md"; diff --git a/pkgs/development/python-modules/trio-asyncio/default.nix b/pkgs/development/python-modules/trio-asyncio/default.nix index 258bb61b66e8..e66716474dd5 100644 --- a/pkgs/development/python-modules/trio-asyncio/default.nix +++ b/pkgs/development/python-modules/trio-asyncio/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, greenlet -, trio -, outcome -, sniffio -, exceptiongroup -, pytest-trio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + greenlet, + trio, + outcome, + sniffio, + exceptiongroup, + pytest-trio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -31,22 +32,19 @@ buildPythonPackage rec { --replace-fail '"pytest-runner"' "" ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ greenlet trio outcome sniffio - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; pytestFlagsArray = [ # RuntimeWarning: Can't run the Python asyncio tests because they're not installed - "-W" "ignore::RuntimeWarning" + "-W" + "ignore::RuntimeWarning" ]; nativeCheckInputs = [ @@ -54,15 +52,16 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "trio_asyncio" - ]; + pythonImportsCheck = [ "trio_asyncio" ]; meta = with lib; { changelog = "https://github.com/python-trio/trio-asyncio/blob/v${version}/docs/source/history.rst"; description = "Re-implementation of the asyncio mainloop on top of Trio"; homepage = "https://github.com/python-trio/trio-asyncio"; - license = with licenses; [ asl20 /* or */ mit ]; + license = with licenses; [ + asl20 # or + mit + ]; maintainers = with maintainers; [ dotlambda ]; }; } diff --git a/pkgs/development/python-modules/trio-websocket/default.nix b/pkgs/development/python-modules/trio-websocket/default.nix index 8ffa3de60fc3..87bc67368d56 100644 --- a/pkgs/development/python-modules/trio-websocket/default.nix +++ b/pkgs/development/python-modules/trio-websocket/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, exceptiongroup -, pytest-trio -, pytestCheckHook -, trio -, trustme -, wsproto +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + exceptiongroup, + pytest-trio, + pytestCheckHook, + trio, + trustme, + wsproto, }: buildPythonPackage rec { @@ -24,16 +25,12 @@ buildPythonPackage rec { hash = "sha256-ddLbYkb1m9zRjv3Lb7YwUzj26gYbK4nYN6jN+FAuiOs="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ trio wsproto - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; nativeCheckInputs = [ pytest-trio @@ -41,25 +38,27 @@ buildPythonPackage rec { trustme ]; - disabledTests = [ - # https://github.com/python-trio/trio-websocket/issues/187 - "test_handshake_exception_before_accept" - "test_reject_handshake" - "test_reject_handshake_invalid_info_status" - "test_client_open_timeout" - "test_client_close_timeout" - "test_client_connect_networking_error" - "test_finalization_dropped_exception" - ] ++ lib.optionals stdenv.isDarwin [ - # Failed: DID NOT RAISE - "test_finalization_dropped_exception" - # Timing related - "test_client_close_timeout" - "test_cm_exit_with_pending_messages" - "test_server_close_timeout" - "test_server_handler_exit" - "test_server_open_timeout" - ]; + disabledTests = + [ + # https://github.com/python-trio/trio-websocket/issues/187 + "test_handshake_exception_before_accept" + "test_reject_handshake" + "test_reject_handshake_invalid_info_status" + "test_client_open_timeout" + "test_client_close_timeout" + "test_client_connect_networking_error" + "test_finalization_dropped_exception" + ] + ++ lib.optionals stdenv.isDarwin [ + # Failed: DID NOT RAISE + "test_finalization_dropped_exception" + # Timing related + "test_client_close_timeout" + "test_cm_exit_with_pending_messages" + "test_server_close_timeout" + "test_server_handler_exit" + "test_server_open_timeout" + ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/trio/default.nix b/pkgs/development/python-modules/trio/default.nix index 84215b5122a6..5fc2e6cd2e30 100644 --- a/pkgs/development/python-modules/trio/default.nix +++ b/pkgs/development/python-modules/trio/default.nix @@ -1,38 +1,37 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + stdenv, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, attrs -, exceptiongroup -, idna -, outcome -, sniffio -, sortedcontainers + # dependencies + attrs, + exceptiongroup, + idna, + outcome, + sniffio, + sortedcontainers, -# tests -, astor -, coreutils -, jedi -, pyopenssl -, pytestCheckHook -, pytest-trio -, trustme -, yapf + # tests + astor, + coreutils, + jedi, + pyopenssl, + pytestCheckHook, + pytest-trio, + trustme, + yapf, }: let # escape infinite recursion with pytest-trio - pytest-trio' = (pytest-trio.override { - trio = null; - }).overrideAttrs { + pytest-trio' = (pytest-trio.override { trio = null; }).overrideAttrs { doCheck = false; - pythonImportsCheck = []; + pythonImportsCheck = [ ]; }; in buildPythonPackage rec { @@ -49,9 +48,7 @@ buildPythonPackage rec { hash = "sha256-JQ493U4WINOG6ob4IzfNQt5Lgs3DmEM2BDwbae7Bvsw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ attrs @@ -59,9 +56,7 @@ buildPythonPackage rec { outcome sniffio sortedcontainers - ] ++ lib.optionals (pythonOlder "3.11") [ - exceptiongroup - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ]; # tests are failing on Darwin doCheck = !stdenv.isDarwin; @@ -104,7 +99,10 @@ buildPythonPackage rec { changelog = "https://github.com/python-trio/trio/blob/v${version}/docs/source/history.rst"; description = "An async/await-native I/O library for humans and snake people"; homepage = "https://github.com/python-trio/trio"; - license = with lib.licenses; [ mit asl20 ]; + license = with lib.licenses; [ + mit + asl20 + ]; maintainers = with lib.maintainers; [ catern ]; }; } diff --git a/pkgs/development/python-modules/tritonclient/default.nix b/pkgs/development/python-modules/tritonclient/default.nix index f218d02a4e2b..47c87866aad1 100644 --- a/pkgs/development/python-modules/tritonclient/default.nix +++ b/pkgs/development/python-modules/tritonclient/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pythonOlder -, python-rapidjson -, numpy +{ + lib, + fetchPypi, + buildPythonPackage, + pythonOlder, + python-rapidjson, + numpy, # optional dependencies -, grpcio -, packaging -, aiohttp -, geventhttpclient + grpcio, + packaging, + aiohttp, + geventhttpclient, }: let @@ -37,9 +38,7 @@ buildPythonPackage { doCheck = false; - pythonImportsCheck = [ - "tritonclient" - ]; + pythonImportsCheck = [ "tritonclient" ]; passthru = { optional-dependencies = { @@ -62,4 +61,3 @@ buildPythonPackage { platforms = platforms.linux; }; } - diff --git a/pkgs/development/python-modules/troposphere/default.nix b/pkgs/development/python-modules/troposphere/default.nix index f4645afc461b..cd1126da2eac 100644 --- a/pkgs/development/python-modules/troposphere/default.nix +++ b/pkgs/development/python-modules/troposphere/default.nix @@ -1,11 +1,12 @@ -{ lib -, awacs -, buildPythonPackage -, cfn-flip -, fetchFromGitHub -, pythonOlder -, typing-extensions -, unittestCheckHook +{ + lib, + awacs, + buildPythonPackage, + cfn-flip, + fetchFromGitHub, + pythonOlder, + typing-extensions, + unittestCheckHook, }: buildPythonPackage rec { @@ -22,11 +23,7 @@ buildPythonPackage rec { hash = "sha256-9zzbBtIJ4v+eI0eJZ6vGUABN4i9GLJcMAzerRSnzpqQ="; }; - propagatedBuildInputs = [ - cfn-flip - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + propagatedBuildInputs = [ cfn-flip ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; nativeCheckInputs = [ awacs @@ -34,14 +31,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - policy = [ - awacs - ]; + policy = [ awacs ]; }; - pythonImportsCheck = [ - "troposphere" - ]; + pythonImportsCheck = [ "troposphere" ]; meta = with lib; { description = "Library to create AWS CloudFormation descriptions"; diff --git a/pkgs/development/python-modules/trove-classifiers/default.nix b/pkgs/development/python-modules/trove-classifiers/default.nix index 61ef9858d2dd..5f75a4331a4c 100644 --- a/pkgs/development/python-modules/trove-classifiers/default.nix +++ b/pkgs/development/python-modules/trove-classifiers/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, calver -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + calver, + pytestCheckHook, + pythonOlder, + setuptools, }: let @@ -32,9 +33,7 @@ let doCheck = false; # avoid infinite recursion with hatchling - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "trove_classifiers" ]; @@ -49,4 +48,4 @@ let }; }; in - self +self diff --git a/pkgs/development/python-modules/trueskill/default.nix b/pkgs/development/python-modules/trueskill/default.nix index ae17c8fa83c2..35f9d239451a 100644 --- a/pkgs/development/python-modules/trueskill/default.nix +++ b/pkgs/development/python-modules/trueskill/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, +}: buildPythonPackage rec { pname = "trueskill"; @@ -11,9 +15,7 @@ buildPythonPackage rec { sha256 = "1fv7g1szyjykja9mzax2w4js7jm2z7wwzgnr5dqrsdi84j6v8qlx"; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; # Can't build distribute, see https://github.com/NixOS/nixpkgs/pull/49340 doCheck = false; @@ -22,8 +24,6 @@ buildPythonPackage rec { description = "The video game rating system"; homepage = "https://trueskill.org"; license = licenses.bsd3; - maintainers = with maintainers; [ - eadwu - ]; + maintainers = with maintainers; [ eadwu ]; }; } diff --git a/pkgs/development/python-modules/trustme/default.nix b/pkgs/development/python-modules/trustme/default.nix index 4648dd75a26e..297a666dc5b3 100644 --- a/pkgs/development/python-modules/trustme/default.nix +++ b/pkgs/development/python-modules/trustme/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cryptography -, fetchPypi -, idna -, pyopenssl -, pytestCheckHook -, pythonOlder -, service-identity +{ + lib, + buildPythonPackage, + cryptography, + fetchPypi, + idna, + pyopenssl, + pytestCheckHook, + pythonOlder, + service-identity, }: buildPythonPackage rec { @@ -35,15 +36,16 @@ buildPythonPackage rec { # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "trustme" - ]; + pythonImportsCheck = [ "trustme" ]; meta = with lib; { description = "High quality TLS certs while you wait, for the discerning tester"; homepage = "https://github.com/python-trio/trustme"; changelog = "https://trustme.readthedocs.io/en/latest/#change-history"; - license = with licenses; [ mit asl20 ]; + license = with licenses; [ + mit + asl20 + ]; maintainers = with maintainers; [ catern ]; }; } diff --git a/pkgs/development/python-modules/truststore/default.nix b/pkgs/development/python-modules/truststore/default.nix index 961799efeb72..53635bcb1968 100644 --- a/pkgs/development/python-modules/truststore/default.nix +++ b/pkgs/development/python-modules/truststore/default.nix @@ -1,13 +1,14 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, flit-core -, httpx -, pyopenssl -, pythonOlder -, requests -, trustme +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + flit-core, + httpx, + pyopenssl, + pythonOlder, + requests, + trustme, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-K11nHzpckNR8pqmgLOo/yCJ2cNQnqPHgjMDPQkpeRkQ="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ aiohttp @@ -39,9 +38,7 @@ buildPythonPackage rec { # tests requires networking doCheck = false; - pythonImportsCheck = [ - "truststore" - ]; + pythonImportsCheck = [ "truststore" ]; meta = with lib; { homepage = "https://github.com/sethmlarson/truststore"; diff --git a/pkgs/development/python-modules/trytond/default.nix b/pkgs/development/python-modules/trytond/default.nix index 1a00120a80da..e554513c72d0 100644 --- a/pkgs/development/python-modules/trytond/default.nix +++ b/pkgs/development/python-modules/trytond/default.nix @@ -1,26 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, defusedxml -, lxml -, relatorio -, genshi -, python-dateutil -, polib -, python-sql -, werkzeug -, wrapt -, passlib -, pydot -, levenshtein -, html2text -, weasyprint -, gevent -, pillow -, withPostgresql ? true -, psycopg2 -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + defusedxml, + lxml, + relatorio, + genshi, + python-dateutil, + polib, + python-sql, + werkzeug, + wrapt, + passlib, + pydot, + levenshtein, + html2text, + weasyprint, + gevent, + pillow, + withPostgresql ? true, + psycopg2, + unittestCheckHook, }: buildPythonPackage rec { @@ -35,29 +36,31 @@ buildPythonPackage rec { hash = "sha256-gIWWzm7emSwgKoO5geNIXUqKNsDiq6fle5OHb+KvhLE="; }; - propagatedBuildInputs = [ - defusedxml - lxml - relatorio - genshi - python-dateutil - polib - python-sql - werkzeug - wrapt - passlib + propagatedBuildInputs = + [ + defusedxml + lxml + relatorio + genshi + python-dateutil + polib + python-sql + werkzeug + wrapt + passlib - # extra dependencies - pydot - levenshtein - html2text - weasyprint - gevent - pillow - ] ++ relatorio.optional-dependencies.fodt - ++ passlib.optional-dependencies.bcrypt - ++ passlib.optional-dependencies.argon2 - ++ lib.optional withPostgresql psycopg2; + # extra dependencies + pydot + levenshtein + html2text + weasyprint + gevent + pillow + ] + ++ relatorio.optional-dependencies.fodt + ++ passlib.optional-dependencies.bcrypt + ++ passlib.optional-dependencies.argon2 + ++ lib.optional withPostgresql psycopg2; nativeCheckInputs = [ unittestCheckHook ]; @@ -67,7 +70,10 @@ buildPythonPackage rec { export DB_NAME=":memory:"; ''; - unittestFlagsArray = [ "-s" "trytond.tests" ]; + unittestFlagsArray = [ + "-s" + "trytond.tests" + ]; meta = with lib; { description = "The server of the Tryton application platform"; @@ -82,6 +88,9 @@ buildPythonPackage rec { homepage = "http://www.tryton.org/"; changelog = "https://foss.heptapod.net/tryton/tryton/-/blob/trytond-${version}/trytond/CHANGELOG?ref_type=tags"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ udono johbo ]; + maintainers = with maintainers; [ + udono + johbo + ]; }; } diff --git a/pkgs/development/python-modules/tsfresh/default.nix b/pkgs/development/python-modules/tsfresh/default.nix index 42cd12eb9d00..045385e9fa1b 100644 --- a/pkgs/development/python-modules/tsfresh/default.nix +++ b/pkgs/development/python-modules/tsfresh/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, numpy -, pandas -, scipy -, statsmodels -, patsy -, scikit-learn -, tqdm -, dask -, distributed -, stumpy -, cloudpickle -, pytestCheckHook -, pytest-xdist -, mock -, matplotlib -, seaborn -, ipython -, notebook -, pandas-datareader +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + numpy, + pandas, + scipy, + statsmodels, + patsy, + scikit-learn, + tqdm, + dask, + distributed, + stumpy, + cloudpickle, + pytestCheckHook, + pytest-xdist, + mock, + matplotlib, + seaborn, + ipython, + notebook, + pandas-datareader, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tskit/default.nix b/pkgs/development/python-modules/tskit/default.nix index c76b3c497295..7a7f9e4be687 100644 --- a/pkgs/development/python-modules/tskit/default.nix +++ b/pkgs/development/python-modules/tskit/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, pythonOlder -, numpy -, jsonschema -, svgwrite +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + pythonOlder, + numpy, + jsonschema, + svgwrite, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-3f4hPxywY822mCF3IwooBezX38fM1zAm4Th4q//SzkY="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ numpy @@ -33,9 +32,7 @@ buildPythonPackage rec { # will ask upstream to include tests in pypi doCheck = false; - pythonImportsCheck = [ - "tskit" - ]; + pythonImportsCheck = [ "tskit" ]; meta = with lib; { description = "The tree sequence toolkit"; diff --git a/pkgs/development/python-modules/ttach/default.nix b/pkgs/development/python-modules/ttach/default.nix index 39d504cf1b46..dc0ef4e251aa 100644 --- a/pkgs/development/python-modules/ttach/default.nix +++ b/pkgs/development/python-modules/ttach/default.nix @@ -1,9 +1,10 @@ -{ fetchFromGitHub -, pythonOlder -, pytestCheckHook -, torch -, buildPythonPackage -, lib +{ + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + torch, + buildPythonPackage, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ttls/default.nix b/pkgs/development/python-modules/ttls/default.nix index c3f18f3d5d40..dc6662caa380 100644 --- a/pkgs/development/python-modules/ttls/default.nix +++ b/pkgs/development/python-modules/ttls/default.nix @@ -1,11 +1,12 @@ -{ lib -, aiohttp -, buildPythonPackage -, colour -, fetchFromGitHub -, poetry-core -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + colour, + fetchFromGitHub, + poetry-core, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-i9vJr7uTpkUZ9WiL0BGidIgCdG87k8JnmZuPqt6qLQE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -35,9 +34,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "ttls" - ]; + pythonImportsCheck = [ "ttls" ]; meta = with lib; { description = "Module to interact with Twinkly LEDs"; diff --git a/pkgs/development/python-modules/ttn-client/default.nix b/pkgs/development/python-modules/ttn-client/default.nix index 515f616dbe24..b2d3e35875a8 100644 --- a/pkgs/development/python-modules/ttn-client/default.nix +++ b/pkgs/development/python-modules/ttn-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-ZLSMxFyzfPtz51fsY2wgucHzcAnSrL7VPOuW7DXTNbQ="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ttn_client" - ]; + pythonImportsCheck = [ "ttn_client" ]; meta = with lib; { description = "Module to fetch/receive and parse uplink messages from The Thinks Network"; diff --git a/pkgs/development/python-modules/ttp-templates/default.nix b/pkgs/development/python-modules/ttp-templates/default.nix index 292d598e9d61..e22190ff82d9 100644 --- a/pkgs/development/python-modules/ttp-templates/default.nix +++ b/pkgs/development/python-modules/ttp-templates/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-Pntm/wUv/K0ci8U/+nBUVszuX8KT95gyp+i2N6NshKo="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; postPatch = '' # Drop circular dependency on ttp diff --git a/pkgs/development/python-modules/ttp/default.nix b/pkgs/development/python-modules/ttp/default.nix index 3df86d13cf3a..dc6cc76abb64 100644 --- a/pkgs/development/python-modules/ttp/default.nix +++ b/pkgs/development/python-modules/ttp/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, cerberus -, configparser -, deepdiff -, fetchFromGitHub -, geoip2 -, jinja2 -, netmiko -, openpyxl -, pytestCheckHook -, poetry-core -, pyyaml -, tabulate -, ttp-templates -, yangson +{ + lib, + buildPythonPackage, + cerberus, + configparser, + deepdiff, + fetchFromGitHub, + geoip2, + jinja2, + netmiko, + openpyxl, + pytestCheckHook, + poetry-core, + pyyaml, + tabulate, + ttp-templates, + yangson, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-IWqPFspERBVkjsTYTAkOTOrugq4fD65Q140G3SCEV0w="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ # https://github.com/dmulyalin/ttp/blob/master/docs/source/Installation.rst#additional-dependencies @@ -47,9 +46,7 @@ buildPythonPackage rec { yangson ]; - pythonImportsCheck = [ - "ttp" - ]; + pythonImportsCheck = [ "ttp" ]; nativeCheckInputs = [ pytestCheckHook @@ -97,9 +94,7 @@ buildPythonPackage rec { "test_ttp_templates_dir_env_variable" ]; - pytestFlagsArray = [ - "test/pytest" - ]; + pytestFlagsArray = [ "test/pytest" ]; meta = with lib; { changelog = "https://github.com/dmulyalin/ttp/releases/tag/${version}"; diff --git a/pkgs/development/python-modules/ttstokenizer/default.nix b/pkgs/development/python-modules/ttstokenizer/default.nix index 554e0341fb16..d8ab25b94219 100644 --- a/pkgs/development/python-modules/ttstokenizer/default.nix +++ b/pkgs/development/python-modules/ttstokenizer/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, anyascii -, inflect -, nltk -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + anyascii, + inflect, + nltk, + numpy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tubeup/default.nix b/pkgs/development/python-modules/tubeup/default.nix index 463b89017cb3..a9dd6c8f5a50 100644 --- a/pkgs/development/python-modules/tubeup/default.nix +++ b/pkgs/development/python-modules/tubeup/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, internetarchive -, fetchPypi -, yt-dlp -, docopt -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + internetarchive, + fetchPypi, + yt-dlp, + docopt, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { sha256 = "sha256-Pp4h0MBoYhczmxPq21cLiYpLUeFP+2JoACcFpBl3b0E="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ internetarchive @@ -30,13 +29,9 @@ buildPythonPackage rec { yt-dlp ]; - pythonRelaxDeps = [ - "docopt" - ]; + pythonRelaxDeps = [ "docopt" ]; - pythonImportsCheck = [ - "tubeup" - ]; + pythonImportsCheck = [ "tubeup" ]; # Tests failing upstream doCheck = false; diff --git a/pkgs/development/python-modules/tuf/default.nix b/pkgs/development/python-modules/tuf/default.nix index 2572c4ed8cd7..984bd6f54c4b 100644 --- a/pkgs/development/python-modules/tuf/default.nix +++ b/pkgs/development/python-modules/tuf/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, ed25519 -, fetchFromGitHub -, hatchling -, pytestCheckHook -, pythonOlder -, requests -, securesystemslib +{ + lib, + buildPythonPackage, + ed25519, + fetchFromGitHub, + hatchling, + pytestCheckHook, + pythonOlder, + requests, + securesystemslib, }: buildPythonPackage rec { @@ -28,24 +29,19 @@ buildPythonPackage rec { --replace-fail "hatchling==" "hatchling>=" ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ requests securesystemslib - ] ++ securesystemslib.optional-dependencies.pynacl - ++ securesystemslib.optional-dependencies.crypto; + ] ++ securesystemslib.optional-dependencies.pynacl ++ securesystemslib.optional-dependencies.crypto; nativeCheckInputs = [ ed25519 pytestCheckHook ]; - pythonImportsCheck = [ - "tuf" - ]; + pythonImportsCheck = [ "tuf" ]; preCheck = '' cd tests @@ -55,7 +51,10 @@ buildPythonPackage rec { description = "Python reference implementation of The Update Framework (TUF)"; homepage = "https://github.com/theupdateframework/python-tuf"; changelog = "https://github.com/theupdateframework/python-tuf/blob/v${version}/docs/CHANGELOG.md"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ fab ]; }; } diff --git a/pkgs/development/python-modules/tunigo/default.nix b/pkgs/development/python-modules/tunigo/default.nix index 600228b0d66f..034aed0251b3 100644 --- a/pkgs/development/python-modules/tunigo/default.nix +++ b/pkgs/development/python-modules/tunigo/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests, mock, responses, pytest }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + mock, + responses, + pytest, +}: buildPythonPackage rec { pname = "tunigo"; @@ -14,7 +22,11 @@ buildPythonPackage rec { sha256 = "07q9girrjjffzkn8xj4l3ynf9m4psi809zf6f81f54jdb330p2fs"; }; - nativeCheckInputs = [ mock responses pytest ]; + nativeCheckInputs = [ + mock + responses + pytest + ]; checkPhase = '' py.test diff --git a/pkgs/development/python-modules/turnt/default.nix b/pkgs/development/python-modules/turnt/default.nix index 27aaee039d3b..43a223bdfd5e 100644 --- a/pkgs/development/python-modules/turnt/default.nix +++ b/pkgs/development/python-modules/turnt/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, flit, click, tomli }: +{ + lib, + buildPythonPackage, + fetchPypi, + flit, + click, + tomli, +}: buildPythonPackage rec { pname = "turnt"; @@ -10,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; propagatedBuildInputs = [ click diff --git a/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix b/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix index dd95baba855d..3179f22b5a5e 100644 --- a/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix +++ b/pkgs/development/python-modules/tuya-device-sharing-sdk/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, requests -, paho-mqtt -, cryptography +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + requests, + paho-mqtt, + cryptography, }: let pname = "tuya-device-sharing-sdk"; @@ -23,9 +24,7 @@ buildPythonPackage { touch requirements.txt ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ requests diff --git a/pkgs/development/python-modules/tuya-iot-py-sdk/default.nix b/pkgs/development/python-modules/tuya-iot-py-sdk/default.nix index d1b9d482da1d..cf8c96e1b143 100644 --- a/pkgs/development/python-modules/tuya-iot-py-sdk/default.nix +++ b/pkgs/development/python-modules/tuya-iot-py-sdk/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, paho-mqtt -, pycryptodome -, pythonOlder -, requests -, websocket-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + paho-mqtt, + pycryptodome, + pythonOlder, + requests, + websocket-client, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tuyaha/default.nix b/pkgs/development/python-modules/tuyaha/default.nix index 5973b763ef63..eb56f96547d6 100644 --- a/pkgs/development/python-modules/tuyaha/default.nix +++ b/pkgs/development/python-modules/tuyaha/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tvdb-api/default.nix b/pkgs/development/python-modules/tvdb-api/default.nix index f4255d8e854b..31877a0e58d9 100644 --- a/pkgs/development/python-modules/tvdb-api/default.nix +++ b/pkgs/development/python-modules/tvdb-api/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests-cache -, pytest +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests-cache, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/tweedledum/default.nix b/pkgs/development/python-modules/tweedledum/default.nix index bc4808a268cb..ccefd1df6a8a 100644 --- a/pkgs/development/python-modules/tweedledum/default.nix +++ b/pkgs/development/python-modules/tweedledum/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, cmake -, ninja -, scikit-build +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + cmake, + ninja, + scikit-build, # Check Inputs -, pytestCheckHook + pytestCheckHook, }: buildPythonPackage rec { @@ -14,7 +15,7 @@ buildPythonPackage rec { version = "1.1.1"; format = "pyproject"; - src = fetchFromGitHub{ + src = fetchFromGitHub { owner = "boschmitt"; repo = "tweedledum"; rev = "v${version}"; @@ -26,7 +27,11 @@ buildPythonPackage rec { sed -i '/\[project\]/a name = "tweedledum"' pyproject.toml ''; - nativeBuildInputs = [ cmake ninja scikit-build ]; + nativeBuildInputs = [ + cmake + ninja + scikit-build + ]; dontUseCmakeConfigure = true; pythonImportsCheck = [ "tweedledum" ]; @@ -37,7 +42,7 @@ buildPythonPackage rec { meta = with lib; { description = "A library for synthesizing and manipulating quantum circuits"; homepage = "https://github.com/boschmitt/tweedledum"; - license = licenses.mit ; + license = licenses.mit; maintainers = with maintainers; [ drewrisinger ]; }; } diff --git a/pkgs/development/python-modules/tweepy/default.nix b/pkgs/development/python-modules/tweepy/default.nix index 4b8312257592..4d368b403a1e 100644 --- a/pkgs/development/python-modules/tweepy/default.nix +++ b/pkgs/development/python-modules/tweepy/default.nix @@ -1,15 +1,16 @@ -{ lib -, aiohttp -, async-lru -, buildPythonPackage -, fetchFromGitHub -, oauthlib -, pytestCheckHook -, pythonOlder -, requests -, requests-oauthlib -, six -, vcrpy +{ + lib, + aiohttp, + async-lru, + buildPythonPackage, + fetchFromGitHub, + oauthlib, + pytestCheckHook, + pythonOlder, + requests, + requests-oauthlib, + six, + vcrpy, }: buildPythonPackage rec { @@ -40,15 +41,11 @@ buildPythonPackage rec { vcrpy ]; - pythonImportsCheck = [ - "tweepy" - ]; + pythonImportsCheck = [ "tweepy" ]; # The checks with streaming fail due to (seemingly) not decoding (or unexpectedly sending response in) GZIP # Same issue impacted mastodon-py, see https://github.com/halcy/Mastodon.py/commit/cd86887d88bbc07de462d1e00a8fbc3d956c0151 (who just disabled these) - disabledTestPaths = [ - "tests/test_client.py" - ]; + disabledTestPaths = [ "tests/test_client.py" ]; disabledTests = [ "test_indicate_direct_message_typing" diff --git a/pkgs/development/python-modules/twentemilieu/default.nix b/pkgs/development/python-modules/twentemilieu/default.nix index 389f31ba89bf..5148a25e9ffa 100644 --- a/pkgs/development/python-modules/twentemilieu/default.nix +++ b/pkgs/development/python-modules/twentemilieu/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, aiohttp -, yarl -, aresponses -, poetry-core -, pytest-asyncio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + aiohttp, + yarl, + aresponses, + poetry-core, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace '"0.0.0"' '"${version}"' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "twentemilieu" - ]; + pythonImportsCheck = [ "twentemilieu" ]; meta = with lib; { description = "Python client for Twente Milieu"; diff --git a/pkgs/development/python-modules/twiggy/default.nix b/pkgs/development/python-modules/twiggy/default.nix index d25fd36a0d91..1c1759aeb815 100644 --- a/pkgs/development/python-modules/twiggy/default.nix +++ b/pkgs/development/python-modules/twiggy/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six +{ + lib, + buildPythonPackage, + fetchPypi, + six, }: buildPythonPackage rec { @@ -21,8 +22,7 @@ buildPythonPackage rec { homepage = "http://twiggy.wearpants.org"; # Taken from http://i.wearpants.org/blog/meet-twiggy/ description = "Twiggy is the first totally new design for a logger since log4j"; - license = licenses.bsd3; + license = licenses.bsd3; maintainers = with maintainers; [ pierron ]; }; - } diff --git a/pkgs/development/python-modules/twine/default.nix b/pkgs/development/python-modules/twine/default.nix index e61ae137679d..5de355a1cc34 100644 --- a/pkgs/development/python-modules/twine/default.nix +++ b/pkgs/development/python-modules/twine/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, importlib-metadata -, keyring -, pkginfo -, readme-renderer -, requests -, requests-toolbelt -, rich -, rfc3986 -, setuptools-scm -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + importlib-metadata, + keyring, + pkginfo, + readme-renderer, + requests, + requests-toolbelt, + rich, + rfc3986, + setuptools-scm, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/twinkly-client/default.nix b/pkgs/development/python-modules/twinkly-client/default.nix index d9931c044ba9..4f348b29a0ee 100644 --- a/pkgs/development/python-modules/twinkly-client/default.nix +++ b/pkgs/development/python-modules/twinkly-client/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-F/N6yMOvLHIfXvPyR7z3P/Rlh79OvCbvEiNwClLSLl8="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "twinkly_client" - ]; + pythonImportsCheck = [ "twinkly_client" ]; meta = with lib; { description = "Python module to communicate with Twinkly LED strings"; diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix index d919aa568d9d..8492807e71d2 100644 --- a/pkgs/development/python-modules/twisted/default.nix +++ b/pkgs/development/python-modules/twisted/default.nix @@ -1,55 +1,56 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, fetchpatch -, python +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + fetchpatch, + python, -# build-system -, hatchling -, hatch-fancy-pypi-readme + # build-system + hatchling, + hatch-fancy-pypi-readme, -# dependencies -, attrs -, automat -, constantly -, hyperlink -, incremental -, typing-extensions -, zope-interface + # dependencies + attrs, + automat, + constantly, + hyperlink, + incremental, + typing-extensions, + zope-interface, -# optional-dependencies -, appdirs -, bcrypt -, cryptography -, h2 -, idna -, priority -, pyasn1 -, pyopenssl -, pyserial -, service-identity + # optional-dependencies + appdirs, + bcrypt, + cryptography, + h2, + idna, + priority, + pyasn1, + pyopenssl, + pyserial, + service-identity, -# tests -, cython-test-exception-raiser -, git -, glibcLocales -, pyhamcrest -, hypothesis + # tests + cython-test-exception-raiser, + git, + glibcLocales, + pyhamcrest, + hypothesis, # for passthru.tests -, cassandra-driver -, klein -, magic-wormhole -, scrapy -, treq -, txaio -, txamqp -, txrequests -, txtorcon -, thrift -, nixosTests + cassandra-driver, + klein, + magic-wormhole, + scrapy, + treq, + txaio, + txamqp, + txrequests, + txtorcon, + thrift, + nixosTests, }: buildPythonPackage rec { @@ -92,61 +93,64 @@ buildPythonPackage rec { zope-interface ]; - postPatch = '' - echo 'ListingTests.test_localeIndependent.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_newFile.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_newSingleDigitDayOfMonth.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_oldFile.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'ListingTests.test_oldSingleDigitDayOfMonth.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py + postPatch = + '' + echo 'ListingTests.test_localeIndependent.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py + echo 'ListingTests.test_newFile.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py + echo 'ListingTests.test_newSingleDigitDayOfMonth.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py + echo 'ListingTests.test_oldFile.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py + echo 'ListingTests.test_oldSingleDigitDayOfMonth.skip = "Timezone issue"'>> src/twisted/conch/test/test_cftp.py - echo 'WrapClientTLSParserTests.test_tls.skip = "pyopenssl update"' >> src/twisted/internet/test/test_endpoints.py - echo 'UNIXTestsBuilder_AsyncioSelectorReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - echo 'UNIXTestsBuilder_SelectReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py + echo 'WrapClientTLSParserTests.test_tls.skip = "pyopenssl update"' >> src/twisted/internet/test/test_endpoints.py + echo 'UNIXTestsBuilder_AsyncioSelectorReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py + echo 'UNIXTestsBuilder_SelectReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - echo 'FileObserverTests.test_getTimezoneOffsetEastOfUTC.skip = "mktime argument out of range"'>> src/twisted/test/test_log.py - echo 'FileObserverTests.test_getTimezoneOffsetWestOfUTC.skip = "mktime argument out of range"'>> src/twisted/test/test_log.py - echo 'FileObserverTests.test_getTimezoneOffsetWithoutDaylightSavingTime.skip = "tuple differs, values not"'>> src/twisted/test/test_log.py + echo 'FileObserverTests.test_getTimezoneOffsetEastOfUTC.skip = "mktime argument out of range"'>> src/twisted/test/test_log.py + echo 'FileObserverTests.test_getTimezoneOffsetWestOfUTC.skip = "mktime argument out of range"'>> src/twisted/test/test_log.py + echo 'FileObserverTests.test_getTimezoneOffsetWithoutDaylightSavingTime.skip = "tuple differs, values not"'>> src/twisted/test/test_log.py - echo 'FileDescriptorTests.test_expectedFDs.skip = "Expected duplicate file descriptor to be greater than original"' >> src/twisted/internet/test/test_posixprocess.py + echo 'FileDescriptorTests.test_expectedFDs.skip = "Expected duplicate file descriptor to be greater than original"' >> src/twisted/internet/test/test_posixprocess.py - echo 'MulticastTests.test_joinLeave.skip = "No such device"'>> src/twisted/test/test_udp.py - echo 'MulticastTests.test_loopback.skip = "No such device"'>> src/twisted/test/test_udp.py - echo 'MulticastTests.test_multicast.skip = "Reactor was unclean"'>> src/twisted/test/test_udp.py - echo 'MulticastTests.test_multiListen.skip = "No such device"'>> src/twisted/test/test_udp.py + echo 'MulticastTests.test_joinLeave.skip = "No such device"'>> src/twisted/test/test_udp.py + echo 'MulticastTests.test_loopback.skip = "No such device"'>> src/twisted/test/test_udp.py + echo 'MulticastTests.test_multicast.skip = "Reactor was unclean"'>> src/twisted/test/test_udp.py + echo 'MulticastTests.test_multiListen.skip = "No such device"'>> src/twisted/test/test_udp.py - # fails since migrating to libxcrypt - echo 'HelperTests.test_refuteCryptedPassword.skip = "OSError: Invalid argument"' >> src/twisted/conch/test/test_checkers.py + # fails since migrating to libxcrypt + echo 'HelperTests.test_refuteCryptedPassword.skip = "OSError: Invalid argument"' >> src/twisted/conch/test/test_checkers.py - # expectation mismatch with `python -m twisted --help` and `python -m twisted.trial --help` usage output - echo 'MainTests.test_twisted.skip = "Expectation Mismatch"' >> src/twisted/test/test_main.py - echo 'MainTests.test_trial.skip = "Expectation Mismatch"' >> src/twisted/test/test_main.py + # expectation mismatch with `python -m twisted --help` and `python -m twisted.trial --help` usage output + echo 'MainTests.test_twisted.skip = "Expectation Mismatch"' >> src/twisted/test/test_main.py + echo 'MainTests.test_trial.skip = "Expectation Mismatch"' >> src/twisted/test/test_main.py - # tests for missing https support in usage - echo 'ServiceTests.test_HTTPSFailureOnMissingSSL.skip = "Expectation Mismatch"' >> src/twisted/web/test/test_tap.py + # tests for missing https support in usage + echo 'ServiceTests.test_HTTPSFailureOnMissingSSL.skip = "Expectation Mismatch"' >> src/twisted/web/test/test_tap.py - # fail on Python 3.12 - echo 'WorkerReporterTests.test_addSkipPyunit.skip = "'WorkerReporter' object has no attribute '_testStarted'"' >> src/twisted/trial/_dist/test/test_workerreporter.py - echo 'LocalWorkerAMPTests.test_runSkip.skip = "twisted.protocols.amp.UnknownRemoteError: Code: Unknown Error"' >> src/twisted/trial/_dist/test/test_worker.py + # fail on Python 3.12 + echo 'WorkerReporterTests.test_addSkipPyunit.skip = "'WorkerReporter' object has no attribute '_testStarted'"' >> src/twisted/trial/_dist/test/test_workerreporter.py + echo 'LocalWorkerAMPTests.test_runSkip.skip = "twisted.protocols.amp.UnknownRemoteError: Code: Unknown Error"' >> src/twisted/trial/_dist/test/test_worker.py - # not packaged - substituteInPlace src/twisted/test/test_failure.py \ - --replace "from cython_test_exception_raiser import raiser # type: ignore[import]" "raiser = None" - '' + lib.optionalString stdenv.isLinux '' - echo 'PTYProcessTestsBuilder_EPollReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'PTYProcessTestsBuilder_PollReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'UNIXTestsBuilder_EPollReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - echo 'UNIXTestsBuilder_PollReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py + # not packaged + substituteInPlace src/twisted/test/test_failure.py \ + --replace "from cython_test_exception_raiser import raiser # type: ignore[import]" "raiser = None" + '' + + lib.optionalString stdenv.isLinux '' + echo 'PTYProcessTestsBuilder_EPollReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py + echo 'PTYProcessTestsBuilder_PollReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py + echo 'UNIXTestsBuilder_EPollReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py + echo 'UNIXTestsBuilder_PollReactorTests.test_sendFileDescriptorTriggersPauseProducing.skip = "sendFileDescriptor producer was not paused"'>> src/twisted/internet/test/test_unix.py - # Patch t.p._inotify to point to libc. Without this, - # twisted.python.runtime.platform.supportsINotify() == False - substituteInPlace src/twisted/python/_inotify.py --replace \ - "ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'" - '' + lib.optionalString stdenv.isDarwin '' - echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'ProcessTestsBuilder_SelectReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py - echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_processEnded.skip = "exit code 120"' >> src/twisted/internet/test/test_process.py - echo 'ProcessTestsBuilder_SelectReactorTests.test_processEnded.skip = "exit code 120"' >> src/twisted/internet/test/test_process.py - ''; + # Patch t.p._inotify to point to libc. Without this, + # twisted.python.runtime.platform.supportsINotify() == False + substituteInPlace src/twisted/python/_inotify.py --replace \ + "ctypes.util.find_library(\"c\")" "'${stdenv.cc.libc}/lib/libc.so.6'" + '' + + lib.optionalString stdenv.isDarwin '' + echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py + echo 'ProcessTestsBuilder_SelectReactorTests.test_openFileDescriptors.skip = "invalid syntax"'>> src/twisted/internet/test/test_process.py + echo 'ProcessTestsBuilder_AsyncioSelectorReactorTests.test_processEnded.skip = "exit code 120"' >> src/twisted/internet/test/test_process.py + echo 'ProcessTestsBuilder_SelectReactorTests.test_processEnded.skip = "exit code 120"' >> src/twisted/internet/test/test_process.py + ''; # Generate Twisted's plug-in cache. Twisted users must do it as well. See # http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3 @@ -155,18 +159,19 @@ buildPythonPackage rec { $out/bin/twistd --help > /dev/null ''; - nativeCheckInputs = [ - cython-test-exception-raiser - git - glibcLocales - hypothesis - pyhamcrest - ] - ++ passthru.optional-dependencies.conch - ++ passthru.optional-dependencies.http2 - ++ passthru.optional-dependencies.serial - # not supported on aarch64-darwin: https://github.com/pyca/pyopenssl/issues/873 - ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) passthru.optional-dependencies.tls; + nativeCheckInputs = + [ + cython-test-exception-raiser + git + glibcLocales + hypothesis + pyhamcrest + ] + ++ passthru.optional-dependencies.conch + ++ passthru.optional-dependencies.http2 + ++ passthru.optional-dependencies.serial + # not supported on aarch64-darwin: https://github.com/pyca/pyopenssl/issues/873 + ++ lib.optionals (!(stdenv.isDarwin && stdenv.isAarch64)) passthru.optional-dependencies.tls; checkPhase = '' export SOURCE_DATE_EPOCH=315532800 @@ -177,10 +182,22 @@ buildPythonPackage rec { passthru = { optional-dependencies = { - conch = [ appdirs bcrypt cryptography pyasn1 ]; - http2 = [ h2 priority ]; + conch = [ + appdirs + bcrypt + cryptography + pyasn1 + ]; + http2 = [ + h2 + priority + ]; serial = [ pyserial ]; - tls = [ idna pyopenssl service-identity ]; + tls = [ + idna + pyopenssl + service-identity + ]; }; tests = { @@ -194,7 +211,8 @@ buildPythonPackage rec { txamqp txrequests txtorcon - thrift; + thrift + ; inherit (nixosTests) buildbot matrix-synapse; }; }; diff --git a/pkgs/development/python-modules/twitch-python/default.nix b/pkgs/development/python-modules/twitch-python/default.nix index 9a578ebeedc2..ea16e8927fec 100644 --- a/pkgs/development/python-modules/twitch-python/default.nix +++ b/pkgs/development/python-modules/twitch-python/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi, requests, rx, pytestCheckHook, responses, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + rx, + pytestCheckHook, + responses, + isPy3k, +}: buildPythonPackage rec { pname = "twitch-python"; @@ -16,9 +25,15 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "'pipenv'," "" ''; - propagatedBuildInputs = [ requests rx ]; + propagatedBuildInputs = [ + requests + rx + ]; - nativeCheckInputs = [ pytestCheckHook responses ]; + nativeCheckInputs = [ + pytestCheckHook + responses + ]; pythonImportsCheck = [ "twitch" ]; diff --git a/pkgs/development/python-modules/twitchapi/default.nix b/pkgs/development/python-modules/twitchapi/default.nix index 8dc26553d422..743f4892b07e 100644 --- a/pkgs/development/python-modules/twitchapi/default.nix +++ b/pkgs/development/python-modules/twitchapi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, aiohttp -, python-dateutil -, typing-extensions +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + aiohttp, + python-dateutil, + typing-extensions, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-QAxLYujnsudaiz9UepwrBA835Pct5h4VcE9ZrbkwMmg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ aiohttp @@ -49,6 +48,9 @@ buildPythonPackage rec { description = "Python implementation of the Twitch Helix API, its Webhook, PubSub and EventSub"; homepage = "https://github.com/Teekeks/pyTwitchAPI"; license = licenses.mit; - maintainers = with maintainers; [ dotlambda wolfangaukang ]; + maintainers = with maintainers; [ + dotlambda + wolfangaukang + ]; }; } diff --git a/pkgs/development/python-modules/twitter-common-collections/default.nix b/pkgs/development/python-modules/twitter-common-collections/default.nix index 644a97d2b2ec..89137a326391 100644 --- a/pkgs/development/python-modules/twitter-common-collections/default.nix +++ b/pkgs/development/python-modules/twitter-common-collections/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twitter-common-lang +{ + lib, + buildPythonPackage, + fetchPypi, + twitter-common-lang, }: buildPythonPackage rec { - pname = "twitter.common.collections"; + pname = "twitter.common.collections"; version = "0.3.11"; src = fetchPypi { @@ -17,9 +18,8 @@ buildPythonPackage rec { meta = with lib; { description = "Twitter's common collections"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; maintainers = with maintainers; [ copumpkin ]; }; - } diff --git a/pkgs/development/python-modules/twitter-common-confluence/default.nix b/pkgs/development/python-modules/twitter-common-confluence/default.nix index d718a18822be..f7b900f2ca11 100644 --- a/pkgs/development/python-modules/twitter-common-confluence/default.nix +++ b/pkgs/development/python-modules/twitter-common-confluence/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twitter-common-log +{ + lib, + buildPythonPackage, + fetchPypi, + twitter-common-log, }: buildPythonPackage rec { - pname = "twitter.common.confluence"; + pname = "twitter.common.confluence"; version = "0.3.11"; src = fetchPypi { @@ -17,9 +18,8 @@ buildPythonPackage rec { meta = with lib; { description = "Twitter's API to the confluence wiki"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; maintainers = with maintainers; [ copumpkin ]; }; - } diff --git a/pkgs/development/python-modules/twitter-common-dirutil/default.nix b/pkgs/development/python-modules/twitter-common-dirutil/default.nix index bf9ec099ddba..10043c7ead8f 100644 --- a/pkgs/development/python-modules/twitter-common-dirutil/default.nix +++ b/pkgs/development/python-modules/twitter-common-dirutil/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twitter-common-lang +{ + lib, + buildPythonPackage, + fetchPypi, + twitter-common-lang, }: buildPythonPackage rec { - pname = "twitter.common.dirutil"; + pname = "twitter.common.dirutil"; version = "0.3.11"; src = fetchPypi { @@ -17,9 +18,8 @@ buildPythonPackage rec { meta = with lib; { description = "Utilities for manipulating and finding files and directories"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; maintainers = with maintainers; [ copumpkin ]; }; - } diff --git a/pkgs/development/python-modules/twitter-common-lang/default.nix b/pkgs/development/python-modules/twitter-common-lang/default.nix index 93178f467921..975b6d128d0b 100644 --- a/pkgs/development/python-modules/twitter-common-lang/default.nix +++ b/pkgs/development/python-modules/twitter-common-lang/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { - pname = "twitter.common.lang"; + pname = "twitter.common.lang"; version = "0.3.11"; src = fetchPypi { @@ -14,9 +15,8 @@ buildPythonPackage rec { meta = with lib; { description = "Twitter's 2.x / 3.x compatibility swiss-army knife"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; maintainers = with maintainers; [ copumpkin ]; }; - } diff --git a/pkgs/development/python-modules/twitter-common-log/default.nix b/pkgs/development/python-modules/twitter-common-log/default.nix index 61f5d99a8f1c..bd7a2fec8198 100644 --- a/pkgs/development/python-modules/twitter-common-log/default.nix +++ b/pkgs/development/python-modules/twitter-common-log/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twitter-common-options -, twitter-common-dirutil +{ + lib, + buildPythonPackage, + fetchPypi, + twitter-common-options, + twitter-common-dirutil, }: buildPythonPackage rec { - pname = "twitter.common.log"; + pname = "twitter.common.log"; version = "0.3.11"; src = fetchPypi { @@ -14,13 +15,15 @@ buildPythonPackage rec { sha256 = "7160a864eed30044705e05b816077dd193aec0c66f50ef1c077b7f8490e0d06a"; }; - propagatedBuildInputs = [ twitter-common-options twitter-common-dirutil ]; + propagatedBuildInputs = [ + twitter-common-options + twitter-common-dirutil + ]; meta = with lib; { description = "Twitter's common logging library"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; maintainers = with maintainers; [ copumpkin ]; }; - } diff --git a/pkgs/development/python-modules/twitter-common-options/default.nix b/pkgs/development/python-modules/twitter-common-options/default.nix index b3ae7f7f5d94..47aa9e70824e 100644 --- a/pkgs/development/python-modules/twitter-common-options/default.nix +++ b/pkgs/development/python-modules/twitter-common-options/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { - pname = "twitter.common.options"; + pname = "twitter.common.options"; version = "0.3.11"; src = fetchPypi { @@ -14,9 +15,8 @@ buildPythonPackage rec { meta = with lib; { description = "Twitter's optparse wrapper"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; maintainers = with maintainers; [ copumpkin ]; }; - } diff --git a/pkgs/development/python-modules/twitter/default.nix b/pkgs/development/python-modules/twitter/default.nix index 64ca41f60c2f..545b7784b9a0 100644 --- a/pkgs/development/python-modules/twitter/default.nix +++ b/pkgs/development/python-modules/twitter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools-scm -, certifi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools-scm, + certifi, + pythonOlder, }: buildPythonPackage rec { @@ -18,19 +19,13 @@ buildPythonPackage rec { hash = "sha256-gN3WmuLuuIMT/u3uoxvxGf1ueVQe5bN6u5xD0jMZThA="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - certifi - ]; + propagatedBuildInputs = [ certifi ]; doCheck = false; - pythonImportsCheck = [ - "twitter" - ]; + pythonImportsCheck = [ "twitter" ]; meta = with lib; { description = "Twitter API library"; diff --git a/pkgs/development/python-modules/twitterapi/default.nix b/pkgs/development/python-modules/twitterapi/default.nix index 72185f243bed..c9ee6a5af064 100644 --- a/pkgs/development/python-modules/twitterapi/default.nix +++ b/pkgs/development/python-modules/twitterapi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, requests-oauthlib -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + requests-oauthlib, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Tests are interacting with the Twitter API doCheck = false; - pythonImportsCheck = [ - "TwitterAPI" - ]; + pythonImportsCheck = [ "TwitterAPI" ]; meta = with lib; { description = "Python wrapper for Twitter's REST and Streaming APIs"; diff --git a/pkgs/development/python-modules/twofish/default.nix b/pkgs/development/python-modules/twofish/default.nix index 5076de1ad3c3..e741b97d071d 100644 --- a/pkgs/development/python-modules/twofish/default.nix +++ b/pkgs/development/python-modules/twofish/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, -# pythonPackages -, javaobj-py3 + # pythonPackages + javaobj-py3, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "1yihp2n42amrxw0wk9f66llpb3w5kwhgkcdg9krkzcik1nsqp7dh"; }; - propagatedBuildInputs = [ - javaobj-py3 - ]; + propagatedBuildInputs = [ javaobj-py3 ]; # No tests implemented doCheck = false; @@ -27,8 +26,6 @@ buildPythonPackage rec { description = "Bindings for the Twofish implementation by Niels Ferguson"; homepage = "https://github.com/keybase/python-twofish"; license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ - kamadorueda - ]; + maintainers = with lib.maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/txaio/default.nix b/pkgs/development/python-modules/txaio/default.nix index ec8ffb3901fb..60c7f0f44446 100644 --- a/pkgs/development/python-modules/txaio/default.nix +++ b/pkgs/development/python-modules/txaio/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, twisted -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + twisted, + zope-interface, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { "test_cancel" ]; - pythonImportsCheck = [ - "txaio" - ]; + pythonImportsCheck = [ "txaio" ]; meta = with lib; { description = "Utilities to support code that runs unmodified on Twisted and asyncio"; diff --git a/pkgs/development/python-modules/txamqp/default.nix b/pkgs/development/python-modules/txamqp/default.nix index 935ef043f22f..f9dacc571c58 100644 --- a/pkgs/development/python-modules/txamqp/default.nix +++ b/pkgs/development/python-modules/txamqp/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twisted +{ + lib, + buildPythonPackage, + fetchPypi, + twisted, }: buildPythonPackage rec { @@ -20,7 +21,6 @@ buildPythonPackage rec { homepage = "https://github.com/txamqp/txamqp"; description = "Library for communicating with AMQP peers and brokers using Twisted"; license = licenses.asl20; - maintainers = []; + maintainers = [ ]; }; - } diff --git a/pkgs/development/python-modules/txdbus/default.nix b/pkgs/development/python-modules/txdbus/default.nix index 3f377313a0bd..33ed4a66a68e 100644 --- a/pkgs/development/python-modules/txdbus/default.nix +++ b/pkgs/development/python-modules/txdbus/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, six, twisted }: +{ + lib, + buildPythonPackage, + fetchPypi, + six, + twisted, +}: buildPythonPackage rec { pname = "txdbus"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "8375a5fb68a12054f0def91af800c821fb2232949337756ed975f88d8ea2bc97"; }; - propagatedBuildInputs = [ six twisted ]; + propagatedBuildInputs = [ + six + twisted + ]; pythonImportsCheck = [ "txdbus" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/txgithub/default.nix b/pkgs/development/python-modules/txgithub/default.nix index 8fa0229f0ca5..ccd68920145a 100644 --- a/pkgs/development/python-modules/txgithub/default.nix +++ b/pkgs/development/python-modules/txgithub/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyopenssl -, twisted -, service-identity +{ + lib, + buildPythonPackage, + fetchPypi, + pyopenssl, + twisted, + service-identity, }: buildPythonPackage rec { @@ -16,7 +17,11 @@ buildPythonPackage rec { sha256 = "16gbizy8vkxasxylwzj4p66yw8979nvzxdj6csidgmng7gi2k8nx"; }; - propagatedBuildInputs = [ pyopenssl twisted service-identity ]; + propagatedBuildInputs = [ + pyopenssl + twisted + service-identity + ]; # fix python3 issues patchPhase = '' @@ -32,9 +37,8 @@ buildPythonPackage rec { meta = with lib; { description = "GitHub API client implemented using Twisted."; - homepage = "https://github.com/tomprince/txgithub"; - license = licenses.mit; + homepage = "https://github.com/tomprince/txgithub"; + license = licenses.mit; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/txi2p-tahoe/default.nix b/pkgs/development/python-modules/txi2p-tahoe/default.nix index 9ddc10885788..751facddfd1a 100644 --- a/pkgs/development/python-modules/txi2p-tahoe/default.nix +++ b/pkgs/development/python-modules/txi2p-tahoe/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, parsley -, twisted -, python +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + parsley, + twisted, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/txredisapi/default.nix b/pkgs/development/python-modules/txredisapi/default.nix index 315e7f8e2713..d73b87b28621 100644 --- a/pkgs/development/python-modules/txredisapi/default.nix +++ b/pkgs/development/python-modules/txredisapi/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, six -, twisted -, nixosTests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + six, + twisted, + nixosTests, }: buildPythonPackage rec { @@ -19,19 +20,14 @@ buildPythonPackage rec { hash = "sha256-6Z2vurTAw9YHxvEiixtdxBH0YHj+Y9aTdsSkafPMZus="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ six twisted - ] - ++ twisted.optional-dependencies.tls; + ] ++ twisted.optional-dependencies.tls; - pythonImportsCheck = [ - "txredisapi" - ]; + pythonImportsCheck = [ "txredisapi" ]; doCheck = false; @@ -44,4 +40,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ dandellion ]; }; } - diff --git a/pkgs/development/python-modules/txrequests/default.nix b/pkgs/development/python-modules/txrequests/default.nix index 706a97b6297a..db158401d340 100644 --- a/pkgs/development/python-modules/txrequests/default.nix +++ b/pkgs/development/python-modules/txrequests/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, twisted -, requests -, cryptography -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + twisted, + requests, + cryptography, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,7 +18,11 @@ buildPythonPackage rec { sha256 = "b452a1cafa4d005678f6fa47922a330feb4907d5b4732d1841ca98e89f1362e1"; }; - propagatedBuildInputs = [ twisted requests cryptography ]; + propagatedBuildInputs = [ + twisted + requests + cryptography + ]; # Require network access doCheck = false; @@ -26,9 +31,8 @@ buildPythonPackage rec { meta = with lib; { description = "Asynchronous Python HTTP for Humans."; - homepage = "https://github.com/tardyp/txrequests"; - license = licenses.asl20; + homepage = "https://github.com/tardyp/txrequests"; + license = licenses.asl20; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/txtai/default.nix b/pkgs/development/python-modules/txtai/default.nix index 256ed0889bfe..a6f36840e0b6 100644 --- a/pkgs/development/python-modules/txtai/default.nix +++ b/pkgs/development/python-modules/txtai/default.nix @@ -1,73 +1,109 @@ { - lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, pythonRelaxDepsHook -# propagated build input -, faiss -, torch -, transformers -, huggingface-hub -, numpy -, pyyaml -, regex -# optional-dependencies -, aiohttp -, fastapi -, uvicorn -# TODO add apache-libcloud -# , apache-libcloud -, rich -, duckdb -, pillow -, networkx -, python-louvain -, onnx -, onnxruntime -, soundfile -, scipy -, ttstokenizer -, beautifulsoup4 -, nltk -, pandas -, tika -, imagehash -, timm -, fasttext -, sentencepiece -, accelerate -, onnxmltools -, annoy -, hnswlib -# TODO add pymagnitude-lite -#, pymagnitude-lite -, scikit-learn -, sentence-transformers -, croniter -, openpyxl -, requests -, xmltodict -# native check inputs -, unittestCheckHook + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + pythonRelaxDepsHook, + # propagated build input + faiss, + torch, + transformers, + huggingface-hub, + numpy, + pyyaml, + regex, + # optional-dependencies + aiohttp, + fastapi, + uvicorn, + # TODO add apache-libcloud + # , apache-libcloud + rich, + duckdb, + pillow, + networkx, + python-louvain, + onnx, + onnxruntime, + soundfile, + scipy, + ttstokenizer, + beautifulsoup4, + nltk, + pandas, + tika, + imagehash, + timm, + fasttext, + sentencepiece, + accelerate, + onnxmltools, + annoy, + hnswlib, + # TODO add pymagnitude-lite + #, pymagnitude-lite + scikit-learn, + sentence-transformers, + croniter, + openpyxl, + requests, + xmltodict, + # native check inputs + unittestCheckHook, }: let version = "7.1.0"; - api = [ aiohttp fastapi uvicorn ]; + api = [ + aiohttp + fastapi + uvicorn + ]; # cloud = [ apache-libcloud ]; console = [ rich ]; - database = [ duckdb pillow ]; + database = [ + duckdb + pillow + ]; - graph = [ networkx python-louvain ]; + graph = [ + networkx + python-louvain + ]; - model = [ onnx onnxruntime ]; + model = [ + onnx + onnxruntime + ]; - pipeline-audio = [ onnx onnxruntime soundfile scipy ttstokenizer ]; - pipeline-data = [ beautifulsoup4 nltk pandas tika ]; - pipeline-image = [ imagehash pillow timm ]; - pipeline-text = [ fasttext sentencepiece ]; - pipeline-train = [ accelerate onnx onnxmltools onnxruntime ]; + pipeline-audio = [ + onnx + onnxruntime + soundfile + scipy + ttstokenizer + ]; + pipeline-data = [ + beautifulsoup4 + nltk + pandas + tika + ]; + pipeline-image = [ + imagehash + pillow + timm + ]; + pipeline-text = [ + fasttext + sentencepiece + ]; + pipeline-train = [ + accelerate + onnx + onnxmltools + onnxruntime + ]; pipeline = pipeline-audio ++ pipeline-data ++ pipeline-image ++ pipeline-text ++ pipeline-train; similarity = [ @@ -90,8 +126,21 @@ let all = api ++ console ++ database ++ graph ++ model ++ pipeline ++ similarity ++ workflow; optional-dependencies = { - inherit api console database graph model pipeline-audio pipeline-image - pipeline-text pipeline-train pipeline similarity workflow all; + inherit + api + console + database + graph + model + pipeline-audio + pipeline-image + pipeline-text + pipeline-train + pipeline + similarity + workflow + all + ; }; in buildPythonPackage { @@ -108,9 +157,7 @@ buildPythonPackage { hash = "sha256-L+L2jRkCQKOgd1k3N4mft0Kt6kvCN81lgSQUjoon5rk="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; pythonRemoveDeps = [ # We call it faiss, not faiss-cpu. @@ -143,7 +190,9 @@ buildPythonPackage { ] ++ optional-dependencies.api ++ optional-dependencies.similarity; unittestFlagsArray = [ - "-s" "test/python" "-v" + "-s" + "test/python" + "-v" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/txtorcon/default.nix b/pkgs/development/python-modules/txtorcon/default.nix index e9b1fdf24b1c..1c4352caa48f 100644 --- a/pkgs/development/python-modules/txtorcon/default.nix +++ b/pkgs/development/python-modules/txtorcon/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, automat -, buildPythonPackage -, cryptography -, fetchPypi -, geoip -, idna -, incremental -, lsof -, mock -, pyopenssl -, pytestCheckHook -, python -, pythonOlder -, service-identity -, twisted -, zope-interface +{ + lib, + stdenv, + automat, + buildPythonPackage, + cryptography, + fetchPypi, + geoip, + idna, + incremental, + lsof, + mock, + pyopenssl, + pytestCheckHook, + python, + pythonOlder, + service-identity, + twisted, + zope-interface, }: buildPythonPackage rec { @@ -51,7 +52,10 @@ buildPythonPackage rec { description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions"; homepage = "https://github.com/meejah/txtorcon"; changelog = "https://github.com/meejah/txtorcon/releases/tag/v${version}"; - maintainers = with maintainers; [ jluttine exarkun ]; + maintainers = with maintainers; [ + jluttine + exarkun + ]; license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/txzmq/default.nix b/pkgs/development/python-modules/txzmq/default.nix index a8e75896b7c2..d49c52f27462 100644 --- a/pkgs/development/python-modules/txzmq/default.nix +++ b/pkgs/development/python-modules/txzmq/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pyzmq -, twisted +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pyzmq, + twisted, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { twisted ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "txzmq" ]; diff --git a/pkgs/development/python-modules/type-infer/default.nix b/pkgs/development/python-modules/type-infer/default.nix index d9b1b0717f95..93fcfe9b18d7 100644 --- a/pkgs/development/python-modules/type-infer/default.nix +++ b/pkgs/development/python-modules/type-infer/default.nix @@ -1,26 +1,30 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core -, colorlog -, dataclasses-json -, langid -, nltk -, numpy -, pandas -, psutil -, py3langid -, python-dateutil -, scipy -, toml -, nltk-data -, symlinkJoin +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + poetry-core, + colorlog, + dataclasses-json, + langid, + nltk, + numpy, + pandas, + psutil, + py3langid, + python-dateutil, + scipy, + toml, + nltk-data, + symlinkJoin, }: let testNltkData = symlinkJoin { name = "nltk-test-data"; - paths = [ nltk-data.punkt nltk-data.stopwords ]; + paths = [ + nltk-data.punkt + nltk-data.stopwords + ]; }; in buildPythonPackage rec { @@ -37,9 +41,7 @@ buildPythonPackage rec { hash = "sha256-F+gfA7ofrbMEE5SrVt9H3s2mZKQLyr6roNUmL4EMJbI="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ colorlog diff --git a/pkgs/development/python-modules/typechecks/default.nix b/pkgs/development/python-modules/typechecks/default.nix index c458c9c15236..4d7da1759f31 100644 --- a/pkgs/development/python-modules/typechecks/default.nix +++ b/pkgs/development/python-modules/typechecks/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/typecode/default.nix b/pkgs/development/python-modules/typecode/default.nix index 88e76fda670a..ed9bc62959cc 100644 --- a/pkgs/development/python-modules/typecode/default.nix +++ b/pkgs/development/python-modules/typecode/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchPypi -, buildPythonPackage -, setuptools-scm -, attrs -, pdfminer-six -, commoncode -, plugincode -, binaryornot -, typecode-libmagic -, pytestCheckHook -, pytest-xdist -, pythonOlder +{ + lib, + fetchPypi, + buildPythonPackage, + setuptools-scm, + attrs, + pdfminer-six, + commoncode, + plugincode, + binaryornot, + typecode-libmagic, + pytestCheckHook, + pytest-xdist, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { dontConfigure = true; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -60,9 +59,7 @@ buildPythonPackage rec { "test_package_debian" ]; - pythonImportsCheck = [ - "typecode" - ]; + pythonImportsCheck = [ "typecode" ]; meta = with lib; { description = "Comprehensive filetype and mimetype detection using libmagic and Pygments"; diff --git a/pkgs/development/python-modules/typecode/libmagic.nix b/pkgs/development/python-modules/typecode/libmagic.nix index 1c9144226bc2..189c82b35d0b 100644 --- a/pkgs/development/python-modules/typecode/libmagic.nix +++ b/pkgs/development/python-modules/typecode/libmagic.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, plugincode -, file -, zlib +{ + lib, + fetchFromGitHub, + buildPythonPackage, + plugincode, + file, + zlib, }: buildPythonPackage rec { pname = "typecode-libmagic"; @@ -18,9 +19,7 @@ buildPythonPackage rec { sourceRoot = "${src.name}/builtins/typecode_libmagic-linux"; - propagatedBuildInputs = [ - plugincode - ]; + propagatedBuildInputs = [ plugincode ]; preBuild = '' pushd src/typecode_libmagic @@ -36,9 +35,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "typecode_libmagic" - ]; + pythonImportsCheck = [ "typecode_libmagic" ]; meta = with lib; { description = "A ScanCode Toolkit plugin to provide pre-built binary libraries and utilities and their locations"; diff --git a/pkgs/development/python-modules/typed-ast/default.nix b/pkgs/development/python-modules/typed-ast/default.nix index 48ce811b9ebe..68f1a238107e 100644 --- a/pkgs/development/python-modules/typed-ast/default.nix +++ b/pkgs/development/python-modules/typed-ast/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-GRmKw7SRrrIIb61VeB8GLhSKCmLUd54AA+GAf43vor8="; }; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' runHook preCheck diff --git a/pkgs/development/python-modules/typeguard/default.nix b/pkgs/development/python-modules/typeguard/default.nix index 31fb7a3ff43d..1c80ea352c09 100644 --- a/pkgs/development/python-modules/typeguard/default.nix +++ b/pkgs/development/python-modules/typeguard/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, setuptools-scm -, pytestCheckHook -, typing-extensions -, importlib-metadata -, sphinxHook -, sphinx-autodoc-typehints -, sphinx-rtd-theme -, glibcLocales +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + setuptools-scm, + pytestCheckHook, + typing-extensions, + importlib-metadata, + sphinxHook, + sphinx-autodoc-typehints, + sphinx-rtd-theme, + glibcLocales, }: buildPythonPackage rec { @@ -41,19 +42,13 @@ buildPythonPackage rec { propagatedBuildInputs = [ typing-extensions - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]; env.LC_ALL = "en_US.utf-8"; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "typeguard" - ]; + pythonImportsCheck = [ "typeguard" ]; disabledTestPaths = [ # mypy tests aren't passing with latest mypy diff --git a/pkgs/development/python-modules/typepy/default.nix b/pkgs/development/python-modules/typepy/default.nix index ae97d857da8d..91e01efa2019 100644 --- a/pkgs/development/python-modules/typepy/default.nix +++ b/pkgs/development/python-modules/typepy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mbstrdecoder -, python-dateutil -, pytz -, packaging -, pytestCheckHook -, pythonOlder -, tcolorpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mbstrdecoder, + python-dateutil, + pytz, + packaging, + pytestCheckHook, + pythonOlder, + tcolorpy, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-oIDVjJwapHun0Rk04zOZ4IjAh7qZ2k0BXK6zqFmtVds="; }; - propagatedBuildInputs = [ - mbstrdecoder - ]; + propagatedBuildInputs = [ mbstrdecoder ]; passthru.optional-dependencies = { datetime = [ @@ -41,9 +40,7 @@ buildPythonPackage rec { tcolorpy ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "typepy" - ]; + pythonImportsCheck = [ "typepy" ]; meta = with lib; { description = "Library for variable type checker/validator/converter at a run time"; diff --git a/pkgs/development/python-modules/typer/default.nix b/pkgs/development/python-modules/typer/default.nix index a1f0a9033e10..298db51c8f7b 100644 --- a/pkgs/development/python-modules/typer/default.nix +++ b/pkgs/development/python-modules/typer/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, click -, colorama -, coverage -, fetchPypi -, pdm-backend -, pytest-sugar -, pytest-xdist -, pytestCheckHook -, pythonOlder -, rich -, shellingham -, typing-extensions +{ + lib, + stdenv, + buildPythonPackage, + click, + colorama, + coverage, + fetchPypi, + pdm-backend, + pytest-sugar, + pytest-xdist, + pytestCheckHook, + pythonOlder, + rich, + shellingham, + typing-extensions, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-SecxMUgdgEKI72JZjZehzu8wWJBapTahE0+QiRujVII="; }; - nativeBuildInputs = [ - pdm-backend - ]; + nativeBuildInputs = [ pdm-backend ]; propagatedBuildInputs = [ click @@ -61,13 +60,9 @@ buildPythonPackage rec { # fails also on Linux "test_show_completion" "test_install_completion" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ - "test_install_completion" - ]; + ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ "test_install_completion" ]; - pythonImportsCheck = [ - "typer" - ]; + pythonImportsCheck = [ "typer" ]; meta = with lib; { description = "Library for building CLI applications"; diff --git a/pkgs/development/python-modules/types-aiobotocore-packages/default.nix b/pkgs/development/python-modules/types-aiobotocore-packages/default.nix index 3e98124668f3..dc8f4c86cb2f 100644 --- a/pkgs/development/python-modules/types-aiobotocore-packages/default.nix +++ b/pkgs/development/python-modules/types-aiobotocore-packages/default.nix @@ -1,16 +1,18 @@ -{ lib -, aiobotocore -, botocore -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, typing-extensions +{ + lib, + aiobotocore, + botocore, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + typing-extensions, }: let toUnderscore = str: builtins.replaceStrings [ "-" ] [ "_" ] str; - buildTypesAiobotocorePackage = serviceName: version: hash: + buildTypesAiobotocorePackage = + serviceName: version: hash: buildPythonPackage rec { pname = "types-aiobotocore-${serviceName}"; inherit version; @@ -18,27 +20,19 @@ let disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version hash; - }; + src = fetchPypi { inherit pname version hash; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ aiobotocore botocore - ] ++ lib.optionals (pythonOlder "3.12") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.12") [ typing-extensions ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "types_aiobotocore_${toUnderscore serviceName}" - ]; + pythonImportsCheck = [ "types_aiobotocore_${toUnderscore serviceName}" ]; meta = with lib; { description = "Type annotations for aiobotocore ${serviceName}"; @@ -49,709 +43,1415 @@ let }; in rec { - types-aiobotocore-accessanalyzer = buildTypesAiobotocorePackage "accessanalyzer" "2.11.2" "sha256-hUS1ZTj9CbC74Aiinmeh2BEQ2KymcqxuYVSeD12s5xg"; + types-aiobotocore-accessanalyzer = + buildTypesAiobotocorePackage "accessanalyzer" "2.11.2" + "sha256-hUS1ZTj9CbC74Aiinmeh2BEQ2KymcqxuYVSeD12s5xg"; - types-aiobotocore-account = buildTypesAiobotocorePackage "account" "2.11.2" "sha256-XtL7R0UrgI/9rSxfNYbA0Lez+DiVyB7R+rhn49Nxerc="; + types-aiobotocore-account = + buildTypesAiobotocorePackage "account" "2.11.2" + "sha256-XtL7R0UrgI/9rSxfNYbA0Lez+DiVyB7R+rhn49Nxerc="; - types-aiobotocore-acm = buildTypesAiobotocorePackage "acm" "2.11.2" "sha256-vpE1GuvKFPsBf3rTk5V6B4ujFGaHE3wk9yN3j0sM0bo="; + types-aiobotocore-acm = + buildTypesAiobotocorePackage "acm" "2.11.2" + "sha256-vpE1GuvKFPsBf3rTk5V6B4ujFGaHE3wk9yN3j0sM0bo="; - types-aiobotocore-acm-pca = buildTypesAiobotocorePackage "acm-pca" "2.11.2" "sha256-g9a2ad5hZonlKWGnLQchfT5CAgwqsvseeQBQemCSCQw="; + types-aiobotocore-acm-pca = + buildTypesAiobotocorePackage "acm-pca" "2.11.2" + "sha256-g9a2ad5hZonlKWGnLQchfT5CAgwqsvseeQBQemCSCQw="; - types-aiobotocore-alexaforbusiness = buildTypesAiobotocorePackage "alexaforbusiness" "2.12.3" "sha256-eSIy045Ai6VGJTJbCq7sOEskFByShCv1D8S+XyCdP8g="; + types-aiobotocore-alexaforbusiness = + buildTypesAiobotocorePackage "alexaforbusiness" "2.12.3" + "sha256-eSIy045Ai6VGJTJbCq7sOEskFByShCv1D8S+XyCdP8g="; - types-aiobotocore-amp = buildTypesAiobotocorePackage "amp" "2.12.3" "sha256-Q9LX7O74paxJtFgBXpmMHmE5Oymr+KsKc7/a4LkxXsc="; + types-aiobotocore-amp = + buildTypesAiobotocorePackage "amp" "2.12.3" + "sha256-Q9LX7O74paxJtFgBXpmMHmE5Oymr+KsKc7/a4LkxXsc="; - types-aiobotocore-amplify = buildTypesAiobotocorePackage "amplify" "2.12.3" "sha256-/2Ic2KPevRUyQyv2w95ESlGLa1z+j6c7wqO7sJhkglk="; + types-aiobotocore-amplify = + buildTypesAiobotocorePackage "amplify" "2.12.3" + "sha256-/2Ic2KPevRUyQyv2w95ESlGLa1z+j6c7wqO7sJhkglk="; - types-aiobotocore-amplifybackend = buildTypesAiobotocorePackage "amplifybackend" "2.12.3" "sha256-Z/yUxzo0dmcZbguurdnkplc1xF7Ro7t0Fpp4frqo8fw="; + types-aiobotocore-amplifybackend = + buildTypesAiobotocorePackage "amplifybackend" "2.12.3" + "sha256-Z/yUxzo0dmcZbguurdnkplc1xF7Ro7t0Fpp4frqo8fw="; - types-aiobotocore-amplifyuibuilder = buildTypesAiobotocorePackage "amplifyuibuilder" "2.12.3" "sha256-Nziq7FXFXAGfzV36uLVoXJP3N/gA3ydhR1zOL2DAi50="; + types-aiobotocore-amplifyuibuilder = + buildTypesAiobotocorePackage "amplifyuibuilder" "2.12.3" + "sha256-Nziq7FXFXAGfzV36uLVoXJP3N/gA3ydhR1zOL2DAi50="; - types-aiobotocore-apigateway = buildTypesAiobotocorePackage "apigateway" "2.12.3" "sha256-2k0txnK7EV4REsOEynvy1+twaP5rJVI6yIBO59LSKww="; + types-aiobotocore-apigateway = + buildTypesAiobotocorePackage "apigateway" "2.12.3" + "sha256-2k0txnK7EV4REsOEynvy1+twaP5rJVI6yIBO59LSKww="; - types-aiobotocore-apigatewaymanagementapi = buildTypesAiobotocorePackage "apigatewaymanagementapi" "2.12.3" "sha256-0GVRVAWl4NrqJScy69zhNt/sFq03gquN2CbEPoja1ug="; + types-aiobotocore-apigatewaymanagementapi = + buildTypesAiobotocorePackage "apigatewaymanagementapi" "2.12.3" + "sha256-0GVRVAWl4NrqJScy69zhNt/sFq03gquN2CbEPoja1ug="; - types-aiobotocore-apigatewayv2 = buildTypesAiobotocorePackage "apigatewayv2" "2.12.3" "sha256-+CpKEb30BCdrRAE/3xO3wIBxMXLTyCOJxu4YScDDk6k="; + types-aiobotocore-apigatewayv2 = + buildTypesAiobotocorePackage "apigatewayv2" "2.12.3" + "sha256-+CpKEb30BCdrRAE/3xO3wIBxMXLTyCOJxu4YScDDk6k="; - types-aiobotocore-appconfig = buildTypesAiobotocorePackage "appconfig" "2.12.3" "sha256-/90wLlLiPLTKxnAqgqhTbtc1hmSalzwD8yHh7/shrFs="; + types-aiobotocore-appconfig = + buildTypesAiobotocorePackage "appconfig" "2.12.3" + "sha256-/90wLlLiPLTKxnAqgqhTbtc1hmSalzwD8yHh7/shrFs="; - types-aiobotocore-appconfigdata = buildTypesAiobotocorePackage "appconfigdata" "2.12.3" "sha256-KXNCQswudY3MGCBd37kGXuG6TJz3jzD7Y3LsWLvWPYw="; + types-aiobotocore-appconfigdata = + buildTypesAiobotocorePackage "appconfigdata" "2.12.3" + "sha256-KXNCQswudY3MGCBd37kGXuG6TJz3jzD7Y3LsWLvWPYw="; - types-aiobotocore-appfabric = buildTypesAiobotocorePackage "appfabric" "2.12.3" "sha256-1pfpKQ0tmQU3Rm8DGPfDsALecd9XUeeQq/H8Tnp9v4A="; + types-aiobotocore-appfabric = + buildTypesAiobotocorePackage "appfabric" "2.12.3" + "sha256-1pfpKQ0tmQU3Rm8DGPfDsALecd9XUeeQq/H8Tnp9v4A="; - types-aiobotocore-appflow = buildTypesAiobotocorePackage "appflow" "2.12.3" "sha256-c7pC0InqhtHuDKlEln9lt3tQL6w7Af9vxXuIZnhrdqY="; + types-aiobotocore-appflow = + buildTypesAiobotocorePackage "appflow" "2.12.3" + "sha256-c7pC0InqhtHuDKlEln9lt3tQL6w7Af9vxXuIZnhrdqY="; - types-aiobotocore-appintegrations = buildTypesAiobotocorePackage "appintegrations" "2.12.3" "sha256-lJJXK+Wy6PvAQaCrKDe2GdHEjkuIY+mFmQt62xj21y4="; + types-aiobotocore-appintegrations = + buildTypesAiobotocorePackage "appintegrations" "2.12.3" + "sha256-lJJXK+Wy6PvAQaCrKDe2GdHEjkuIY+mFmQt62xj21y4="; - types-aiobotocore-application-autoscaling = buildTypesAiobotocorePackage "application-autoscaling" "2.12.3" "sha256-n1EMzB6uPQtYz4sSx6uvhk3ONjX9olg+5OkJoX6QUUo="; + types-aiobotocore-application-autoscaling = + buildTypesAiobotocorePackage "application-autoscaling" "2.12.3" + "sha256-n1EMzB6uPQtYz4sSx6uvhk3ONjX9olg+5OkJoX6QUUo="; - types-aiobotocore-application-insights = buildTypesAiobotocorePackage "application-insights" "2.12.3" "sha256-m9STzjg6PfbKi4mxM28Nh5eDVPPaoSjwLhy6bJ5z8vg="; + types-aiobotocore-application-insights = + buildTypesAiobotocorePackage "application-insights" "2.12.3" + "sha256-m9STzjg6PfbKi4mxM28Nh5eDVPPaoSjwLhy6bJ5z8vg="; - types-aiobotocore-applicationcostprofiler = buildTypesAiobotocorePackage "applicationcostprofiler" "2.12.3" "sha256-fOZzzkp4q11/pM7tFVsUCuxcAbp09icWOq7Ys89u8Q0="; + types-aiobotocore-applicationcostprofiler = + buildTypesAiobotocorePackage "applicationcostprofiler" "2.12.3" + "sha256-fOZzzkp4q11/pM7tFVsUCuxcAbp09icWOq7Ys89u8Q0="; - types-aiobotocore-appmesh = buildTypesAiobotocorePackage "appmesh" "2.12.3" "sha256-Ovib8qtm+ZCIJ/cQwVB5ksmYpeO8xDoIvkgvnRhL2jY="; + types-aiobotocore-appmesh = + buildTypesAiobotocorePackage "appmesh" "2.12.3" + "sha256-Ovib8qtm+ZCIJ/cQwVB5ksmYpeO8xDoIvkgvnRhL2jY="; - types-aiobotocore-apprunner = buildTypesAiobotocorePackage "apprunner" "2.12.3" "sha256-hRsWYed0ZwgfgkXRAuVfsmAuaJqTYogLVXtQkDGskMI="; + types-aiobotocore-apprunner = + buildTypesAiobotocorePackage "apprunner" "2.12.3" + "sha256-hRsWYed0ZwgfgkXRAuVfsmAuaJqTYogLVXtQkDGskMI="; - types-aiobotocore-appstream = buildTypesAiobotocorePackage "appstream" "2.12.3" "sha256-cpXkWYtPnkVDGbkhgy8s5DgvEHYLRe5Huygkfk/W998="; + types-aiobotocore-appstream = + buildTypesAiobotocorePackage "appstream" "2.12.3" + "sha256-cpXkWYtPnkVDGbkhgy8s5DgvEHYLRe5Huygkfk/W998="; - types-aiobotocore-appsync = buildTypesAiobotocorePackage "appsync" "2.12.3" "sha256-Dem6NGryjCUzQBMCXCNFvop51KhdmIopDUjI2OofEGA="; + types-aiobotocore-appsync = + buildTypesAiobotocorePackage "appsync" "2.12.3" + "sha256-Dem6NGryjCUzQBMCXCNFvop51KhdmIopDUjI2OofEGA="; - types-aiobotocore-arc-zonal-shift = buildTypesAiobotocorePackage "arc-zonal-shift" "2.12.3" "sha256-qAMj0+7ywqR/89lUUyRcaqPdVgbARYLdjqMFKOuohZI="; + types-aiobotocore-arc-zonal-shift = + buildTypesAiobotocorePackage "arc-zonal-shift" "2.12.3" + "sha256-qAMj0+7ywqR/89lUUyRcaqPdVgbARYLdjqMFKOuohZI="; - types-aiobotocore-athena = buildTypesAiobotocorePackage "athena" "2.12.3" "sha256-D1RbyLJdOrMm1dGq6FiRPYEZ1pbMTA14tJEyukqtFXs="; + types-aiobotocore-athena = + buildTypesAiobotocorePackage "athena" "2.12.3" + "sha256-D1RbyLJdOrMm1dGq6FiRPYEZ1pbMTA14tJEyukqtFXs="; - types-aiobotocore-auditmanager = buildTypesAiobotocorePackage "auditmanager" "2.12.3" "sha256-Oqr3fp5uXPeleOlSFGzqeS7yUcqI+WJlPsLsYTBWfp4="; + types-aiobotocore-auditmanager = + buildTypesAiobotocorePackage "auditmanager" "2.12.3" + "sha256-Oqr3fp5uXPeleOlSFGzqeS7yUcqI+WJlPsLsYTBWfp4="; - types-aiobotocore-autoscaling = buildTypesAiobotocorePackage "autoscaling" "2.12.3" "sha256-f32qZpqQ27sujqeA5V7opwQ2LBLuLgcKEvYxgn53Z/A="; + types-aiobotocore-autoscaling = + buildTypesAiobotocorePackage "autoscaling" "2.12.3" + "sha256-f32qZpqQ27sujqeA5V7opwQ2LBLuLgcKEvYxgn53Z/A="; - types-aiobotocore-autoscaling-plans = buildTypesAiobotocorePackage "autoscaling-plans" "2.12.3" "sha256-gZItvHv6bKmUJo7N68E43nNipGuVPru1FpirryM613A="; + types-aiobotocore-autoscaling-plans = + buildTypesAiobotocorePackage "autoscaling-plans" "2.12.3" + "sha256-gZItvHv6bKmUJo7N68E43nNipGuVPru1FpirryM613A="; - types-aiobotocore-backup = buildTypesAiobotocorePackage "backup" "2.12.3" "sha256-n7TwvQPRPpjucEdl8oqhRCyuoUobC94eoaxo3fUcX0k="; + types-aiobotocore-backup = + buildTypesAiobotocorePackage "backup" "2.12.3" + "sha256-n7TwvQPRPpjucEdl8oqhRCyuoUobC94eoaxo3fUcX0k="; - types-aiobotocore-backup-gateway = buildTypesAiobotocorePackage "backup-gateway" "2.12.3" "sha256-y5tONAuzm2ReIX2ZbXkgCdm1mdOwELVTiI/E88y3RRM="; + types-aiobotocore-backup-gateway = + buildTypesAiobotocorePackage "backup-gateway" "2.12.3" + "sha256-y5tONAuzm2ReIX2ZbXkgCdm1mdOwELVTiI/E88y3RRM="; - types-aiobotocore-backupstorage = buildTypesAiobotocorePackage "backupstorage" "2.12.3" "sha256-XMNbgsaMB1xCMffocyb8Qm/vVgwUFJ3HR7vjS4WNJjg="; + types-aiobotocore-backupstorage = + buildTypesAiobotocorePackage "backupstorage" "2.12.3" + "sha256-XMNbgsaMB1xCMffocyb8Qm/vVgwUFJ3HR7vjS4WNJjg="; - types-aiobotocore-batch = buildTypesAiobotocorePackage "batch" "2.12.3" "sha256-+agBXcUaXKm0gmrLk5S5CUaivA7UOxQegBFXRwNIRoI="; + types-aiobotocore-batch = + buildTypesAiobotocorePackage "batch" "2.12.3" + "sha256-+agBXcUaXKm0gmrLk5S5CUaivA7UOxQegBFXRwNIRoI="; - types-aiobotocore-billingconductor = buildTypesAiobotocorePackage "billingconductor" "2.12.3" "sha256-188KzcjDcJF5uoBKsFNBSxrFThz8HzuF20dUA4+2aqY="; + types-aiobotocore-billingconductor = + buildTypesAiobotocorePackage "billingconductor" "2.12.3" + "sha256-188KzcjDcJF5uoBKsFNBSxrFThz8HzuF20dUA4+2aqY="; - types-aiobotocore-braket = buildTypesAiobotocorePackage "braket" "2.12.3" "sha256-Q17Y1YmrT8DdP/iqeXXFg+Nixx6602jVp7EvwglZXHA="; + types-aiobotocore-braket = + buildTypesAiobotocorePackage "braket" "2.12.3" + "sha256-Q17Y1YmrT8DdP/iqeXXFg+Nixx6602jVp7EvwglZXHA="; - types-aiobotocore-budgets = buildTypesAiobotocorePackage "budgets" "2.12.3" "sha256-R1qcbs1TFd/hqXBbE1byIBHfhX71LXITICQtT1y2E0w="; + types-aiobotocore-budgets = + buildTypesAiobotocorePackage "budgets" "2.12.3" + "sha256-R1qcbs1TFd/hqXBbE1byIBHfhX71LXITICQtT1y2E0w="; - types-aiobotocore-ce = buildTypesAiobotocorePackage "ce" "2.12.3" "sha256-zpwmqCaymuhlXNQFmOXRwedgyJXqnbKQkzaJVmL+YcI="; + types-aiobotocore-ce = + buildTypesAiobotocorePackage "ce" "2.12.3" + "sha256-zpwmqCaymuhlXNQFmOXRwedgyJXqnbKQkzaJVmL+YcI="; - types-aiobotocore-chime = buildTypesAiobotocorePackage "chime" "2.12.3" "sha256-qoOzWvS2oU27h0G3rDJrD3A7uDTT1nE3r91Jurs1VL8="; + types-aiobotocore-chime = + buildTypesAiobotocorePackage "chime" "2.12.3" + "sha256-qoOzWvS2oU27h0G3rDJrD3A7uDTT1nE3r91Jurs1VL8="; - types-aiobotocore-chime-sdk-identity = buildTypesAiobotocorePackage "chime-sdk-identity" "2.12.3" "sha256-c4lXCVVtzb1nYHpHCkC6GhaKAGh59f10HOF4pt6jDZQ="; + types-aiobotocore-chime-sdk-identity = + buildTypesAiobotocorePackage "chime-sdk-identity" "2.12.3" + "sha256-c4lXCVVtzb1nYHpHCkC6GhaKAGh59f10HOF4pt6jDZQ="; - types-aiobotocore-chime-sdk-media-pipelines = buildTypesAiobotocorePackage "chime-sdk-media-pipelines" "2.12.3" "sha256-UiUNm5obofAynGBDUU9dDTnALCgquEeD0CWikJoffcg="; + types-aiobotocore-chime-sdk-media-pipelines = + buildTypesAiobotocorePackage "chime-sdk-media-pipelines" "2.12.3" + "sha256-UiUNm5obofAynGBDUU9dDTnALCgquEeD0CWikJoffcg="; - types-aiobotocore-chime-sdk-meetings = buildTypesAiobotocorePackage "chime-sdk-meetings" "2.12.3" "sha256-PRgs4jqH+H77oq8TJnp8BvxFe+VeGAt2HJqGAswsJ48="; + types-aiobotocore-chime-sdk-meetings = + buildTypesAiobotocorePackage "chime-sdk-meetings" "2.12.3" + "sha256-PRgs4jqH+H77oq8TJnp8BvxFe+VeGAt2HJqGAswsJ48="; - types-aiobotocore-chime-sdk-messaging = buildTypesAiobotocorePackage "chime-sdk-messaging" "2.12.3" "sha256-jhelKCrofsCsoEiQCgkgbmyxPDEzRmrflzsOYEG5VBg="; + types-aiobotocore-chime-sdk-messaging = + buildTypesAiobotocorePackage "chime-sdk-messaging" "2.12.3" + "sha256-jhelKCrofsCsoEiQCgkgbmyxPDEzRmrflzsOYEG5VBg="; - types-aiobotocore-chime-sdk-voice = buildTypesAiobotocorePackage "chime-sdk-voice" "2.12.3" "sha256-ycz16wpxuooSUJNo2EF578mQ/vuN19wORbRO4KIYAlw="; + types-aiobotocore-chime-sdk-voice = + buildTypesAiobotocorePackage "chime-sdk-voice" "2.12.3" + "sha256-ycz16wpxuooSUJNo2EF578mQ/vuN19wORbRO4KIYAlw="; - types-aiobotocore-cleanrooms = buildTypesAiobotocorePackage "cleanrooms" "2.12.3" "sha256-chPRscE8/t0zweeG2oI9Ffe9MhUfro3r67WPQMRrVVI="; + types-aiobotocore-cleanrooms = + buildTypesAiobotocorePackage "cleanrooms" "2.12.3" + "sha256-chPRscE8/t0zweeG2oI9Ffe9MhUfro3r67WPQMRrVVI="; - types-aiobotocore-cloud9 = buildTypesAiobotocorePackage "cloud9" "2.12.3" "sha256-MsppSKc4o0kkEn+YS8fjmRHMMHCk/vp7MzwWSeMbfO8="; + types-aiobotocore-cloud9 = + buildTypesAiobotocorePackage "cloud9" "2.12.3" + "sha256-MsppSKc4o0kkEn+YS8fjmRHMMHCk/vp7MzwWSeMbfO8="; - types-aiobotocore-cloudcontrol = buildTypesAiobotocorePackage "cloudcontrol" "2.12.3" "sha256-QtvI10XobuCCTdbJZk1JV8rbUnaKp1NhTQA4pOrl/8A="; + types-aiobotocore-cloudcontrol = + buildTypesAiobotocorePackage "cloudcontrol" "2.12.3" + "sha256-QtvI10XobuCCTdbJZk1JV8rbUnaKp1NhTQA4pOrl/8A="; - types-aiobotocore-clouddirectory = buildTypesAiobotocorePackage "clouddirectory" "2.12.3" "sha256-mrLk190wtLVLBY9oLKCBcGgNRRsOF4SAxMnyDvHif2U="; + types-aiobotocore-clouddirectory = + buildTypesAiobotocorePackage "clouddirectory" "2.12.3" + "sha256-mrLk190wtLVLBY9oLKCBcGgNRRsOF4SAxMnyDvHif2U="; - types-aiobotocore-cloudformation = buildTypesAiobotocorePackage "cloudformation" "2.12.3" "sha256-vjNBwP+SPBXBO9c7W+zOm800kNDfQYHs58ERS82/Hvk="; + types-aiobotocore-cloudformation = + buildTypesAiobotocorePackage "cloudformation" "2.12.3" + "sha256-vjNBwP+SPBXBO9c7W+zOm800kNDfQYHs58ERS82/Hvk="; - types-aiobotocore-cloudfront = buildTypesAiobotocorePackage "cloudfront" "2.12.3" "sha256-xD0zbOk1Vjzr3DslNSQqFBIIN4NliV3rVlAmUcgfp7E="; + types-aiobotocore-cloudfront = + buildTypesAiobotocorePackage "cloudfront" "2.12.3" + "sha256-xD0zbOk1Vjzr3DslNSQqFBIIN4NliV3rVlAmUcgfp7E="; - types-aiobotocore-cloudhsm = buildTypesAiobotocorePackage "cloudhsm" "2.12.3" "sha256-PXuzI5csFVH9FbW7U0p71U9N3Avmjy0SK4ULdnqyWv4="; + types-aiobotocore-cloudhsm = + buildTypesAiobotocorePackage "cloudhsm" "2.12.3" + "sha256-PXuzI5csFVH9FbW7U0p71U9N3Avmjy0SK4ULdnqyWv4="; - types-aiobotocore-cloudhsmv2 = buildTypesAiobotocorePackage "cloudhsmv2" "2.12.3" "sha256-FBC4K4XZglWNdXvaf5vgk0KwlaO4HgQ+CsTxX8RpJSY="; + types-aiobotocore-cloudhsmv2 = + buildTypesAiobotocorePackage "cloudhsmv2" "2.12.3" + "sha256-FBC4K4XZglWNdXvaf5vgk0KwlaO4HgQ+CsTxX8RpJSY="; - types-aiobotocore-cloudsearch = buildTypesAiobotocorePackage "cloudsearch" "2.12.3" "sha256-0bIEY8/+KkoRXyaxV3XlsvNbhZGgi5Yfkaoe2G8Hx7U="; + types-aiobotocore-cloudsearch = + buildTypesAiobotocorePackage "cloudsearch" "2.12.3" + "sha256-0bIEY8/+KkoRXyaxV3XlsvNbhZGgi5Yfkaoe2G8Hx7U="; - types-aiobotocore-cloudsearchdomain = buildTypesAiobotocorePackage "cloudsearchdomain" "2.12.3" "sha256-sQJloZGuAt3FDiVu0rXB4fs6LQ8Ypwanbhk905JlAWE="; + types-aiobotocore-cloudsearchdomain = + buildTypesAiobotocorePackage "cloudsearchdomain" "2.12.3" + "sha256-sQJloZGuAt3FDiVu0rXB4fs6LQ8Ypwanbhk905JlAWE="; - types-aiobotocore-cloudtrail = buildTypesAiobotocorePackage "cloudtrail" "2.12.3" "sha256-kir3GveVZbvSEjnna0xKETIA/qKLgCZUxQ95WCw25vY="; + types-aiobotocore-cloudtrail = + buildTypesAiobotocorePackage "cloudtrail" "2.12.3" + "sha256-kir3GveVZbvSEjnna0xKETIA/qKLgCZUxQ95WCw25vY="; - types-aiobotocore-cloudtrail-data = buildTypesAiobotocorePackage "cloudtrail-data" "2.12.3" "sha256-o+CM6IzDuQJz/Hcmzs4Z//21ujWzILBVN+TpfW0BnAc="; + types-aiobotocore-cloudtrail-data = + buildTypesAiobotocorePackage "cloudtrail-data" "2.12.3" + "sha256-o+CM6IzDuQJz/Hcmzs4Z//21ujWzILBVN+TpfW0BnAc="; - types-aiobotocore-cloudwatch = buildTypesAiobotocorePackage "cloudwatch" "2.12.3" "sha256-s0smSONUSY6hwm81yQXTa0hOe+0FfYHWJ+a2V8vWtnQ="; + types-aiobotocore-cloudwatch = + buildTypesAiobotocorePackage "cloudwatch" "2.12.3" + "sha256-s0smSONUSY6hwm81yQXTa0hOe+0FfYHWJ+a2V8vWtnQ="; - types-aiobotocore-codeartifact = buildTypesAiobotocorePackage "codeartifact" "2.12.3" "sha256-ueY0F1OWpMsFOOSzsE+P4aJ4r0R5UhoefuNyBL5kFSQ="; + types-aiobotocore-codeartifact = + buildTypesAiobotocorePackage "codeartifact" "2.12.3" + "sha256-ueY0F1OWpMsFOOSzsE+P4aJ4r0R5UhoefuNyBL5kFSQ="; - types-aiobotocore-codebuild = buildTypesAiobotocorePackage "codebuild" "2.12.3" "sha256-FdTkOmj1ISBgBTcdf0z5QK/LxvsTobvKMqAd4hFK9bc="; + types-aiobotocore-codebuild = + buildTypesAiobotocorePackage "codebuild" "2.12.3" + "sha256-FdTkOmj1ISBgBTcdf0z5QK/LxvsTobvKMqAd4hFK9bc="; - types-aiobotocore-codecatalyst = buildTypesAiobotocorePackage "codecatalyst" "2.12.3" "sha256-J4kvblSIcjSsdtTIcxFEO5Dhno8Q8yrD1t/CYr4wmaQ="; + types-aiobotocore-codecatalyst = + buildTypesAiobotocorePackage "codecatalyst" "2.12.3" + "sha256-J4kvblSIcjSsdtTIcxFEO5Dhno8Q8yrD1t/CYr4wmaQ="; - types-aiobotocore-codecommit = buildTypesAiobotocorePackage "codecommit" "2.12.3" "sha256-ipolOmnH/0M8Y+GY8qoOPhoDfs1nqMqoMotT2n/BSB8="; + types-aiobotocore-codecommit = + buildTypesAiobotocorePackage "codecommit" "2.12.3" + "sha256-ipolOmnH/0M8Y+GY8qoOPhoDfs1nqMqoMotT2n/BSB8="; - types-aiobotocore-codedeploy = buildTypesAiobotocorePackage "codedeploy" "2.12.3" "sha256-aEIj+XsEq35mzKliuUICkIoJV3Mx+l7kd+pFP+mX+Us="; + types-aiobotocore-codedeploy = + buildTypesAiobotocorePackage "codedeploy" "2.12.3" + "sha256-aEIj+XsEq35mzKliuUICkIoJV3Mx+l7kd+pFP+mX+Us="; - types-aiobotocore-codeguru-reviewer = buildTypesAiobotocorePackage "codeguru-reviewer" "2.12.3" "sha256-UxR7jMxmKeqo2dazqRsnGCHmeycL2uwmuOxzN2Ug06I="; + types-aiobotocore-codeguru-reviewer = + buildTypesAiobotocorePackage "codeguru-reviewer" "2.12.3" + "sha256-UxR7jMxmKeqo2dazqRsnGCHmeycL2uwmuOxzN2Ug06I="; - types-aiobotocore-codeguru-security = buildTypesAiobotocorePackage "codeguru-security" "2.12.3" "sha256-Dn8upHxWZMl5QRye+v47vlgi/SqhQi8PUOcVX8no7zQ="; + types-aiobotocore-codeguru-security = + buildTypesAiobotocorePackage "codeguru-security" "2.12.3" + "sha256-Dn8upHxWZMl5QRye+v47vlgi/SqhQi8PUOcVX8no7zQ="; - types-aiobotocore-codeguruprofiler = buildTypesAiobotocorePackage "codeguruprofiler" "2.12.3" "sha256-s1hhUmQ09fkP7DRGAoajbBrIr8AWioJBXO6vC/kbk9s="; + types-aiobotocore-codeguruprofiler = + buildTypesAiobotocorePackage "codeguruprofiler" "2.12.3" + "sha256-s1hhUmQ09fkP7DRGAoajbBrIr8AWioJBXO6vC/kbk9s="; - types-aiobotocore-codepipeline = buildTypesAiobotocorePackage "codepipeline" "2.12.3" "sha256-pS8TgS/thI4GJY7TqdSLFjnWltjZraE8QDV02GlL0Zc="; + types-aiobotocore-codepipeline = + buildTypesAiobotocorePackage "codepipeline" "2.12.3" + "sha256-pS8TgS/thI4GJY7TqdSLFjnWltjZraE8QDV02GlL0Zc="; - types-aiobotocore-codestar = buildTypesAiobotocorePackage "codestar" "2.12.3" "sha256-jciY4abtX0IMbxCGPrOshFQE8jNyqDS67UqUgt0UYe4="; + types-aiobotocore-codestar = + buildTypesAiobotocorePackage "codestar" "2.12.3" + "sha256-jciY4abtX0IMbxCGPrOshFQE8jNyqDS67UqUgt0UYe4="; - types-aiobotocore-codestar-connections = buildTypesAiobotocorePackage "codestar-connections" "2.12.3" "sha256-W1/tJKDFRpHB1hsguuAbDCHe+lzh0UAIWlqYVS83MyI="; + types-aiobotocore-codestar-connections = + buildTypesAiobotocorePackage "codestar-connections" "2.12.3" + "sha256-W1/tJKDFRpHB1hsguuAbDCHe+lzh0UAIWlqYVS83MyI="; - types-aiobotocore-codestar-notifications = buildTypesAiobotocorePackage "codestar-notifications" "2.12.3" "sha256-1r65KMMX+A6Ww3+MgG9kIXH48zI9yxt/FbNXq7ATACs="; + types-aiobotocore-codestar-notifications = + buildTypesAiobotocorePackage "codestar-notifications" "2.12.3" + "sha256-1r65KMMX+A6Ww3+MgG9kIXH48zI9yxt/FbNXq7ATACs="; - types-aiobotocore-cognito-identity = buildTypesAiobotocorePackage "cognito-identity" "2.12.3" "sha256-Njd/E0EgRqq69EhYhbrmcu71GFvoqG9vI61i4RXIInQ="; + types-aiobotocore-cognito-identity = + buildTypesAiobotocorePackage "cognito-identity" "2.12.3" + "sha256-Njd/E0EgRqq69EhYhbrmcu71GFvoqG9vI61i4RXIInQ="; - types-aiobotocore-cognito-idp = buildTypesAiobotocorePackage "cognito-idp" "2.12.3" "sha256-eFjfo4grkBO9FGUySGAOclXUjJ+RzaeI0FG7GqZweNc="; + types-aiobotocore-cognito-idp = + buildTypesAiobotocorePackage "cognito-idp" "2.12.3" + "sha256-eFjfo4grkBO9FGUySGAOclXUjJ+RzaeI0FG7GqZweNc="; - types-aiobotocore-cognito-sync = buildTypesAiobotocorePackage "cognito-sync" "2.12.3" "sha256-wSOf6kdxIA2oe2a06c9MuIxnvmPb1UZoY+TPKKWNgfA="; + types-aiobotocore-cognito-sync = + buildTypesAiobotocorePackage "cognito-sync" "2.12.3" + "sha256-wSOf6kdxIA2oe2a06c9MuIxnvmPb1UZoY+TPKKWNgfA="; - types-aiobotocore-comprehend = buildTypesAiobotocorePackage "comprehend" "2.12.3" "sha256-TSZn6O5sSqutb+hcA5tJWplkN8jN7q1uVfQyoK6p+sM="; + types-aiobotocore-comprehend = + buildTypesAiobotocorePackage "comprehend" "2.12.3" + "sha256-TSZn6O5sSqutb+hcA5tJWplkN8jN7q1uVfQyoK6p+sM="; - types-aiobotocore-comprehendmedical = buildTypesAiobotocorePackage "comprehendmedical" "2.12.3" "sha256-foykefLjYtgroFE14HAKJ0qK/vL7U6LGGP3z8P/ZV9E="; + types-aiobotocore-comprehendmedical = + buildTypesAiobotocorePackage "comprehendmedical" "2.12.3" + "sha256-foykefLjYtgroFE14HAKJ0qK/vL7U6LGGP3z8P/ZV9E="; - types-aiobotocore-compute-optimizer = buildTypesAiobotocorePackage "compute-optimizer" "2.12.3" "sha256-HM7wBstqaO6pnvXHGTgiIa1FcdJGImW/2BFl/stRJ/w="; + types-aiobotocore-compute-optimizer = + buildTypesAiobotocorePackage "compute-optimizer" "2.12.3" + "sha256-HM7wBstqaO6pnvXHGTgiIa1FcdJGImW/2BFl/stRJ/w="; - types-aiobotocore-config = buildTypesAiobotocorePackage "config" "2.12.3" "sha256-Ab7L47TU/w5Mk36MJGb3VfHG1wXyHmePDaP37FnQikM="; + types-aiobotocore-config = + buildTypesAiobotocorePackage "config" "2.12.3" + "sha256-Ab7L47TU/w5Mk36MJGb3VfHG1wXyHmePDaP37FnQikM="; - types-aiobotocore-connect = buildTypesAiobotocorePackage "connect" "2.12.3" "sha256-R+p+mV/+SMFaWczEwECfoReQ9KBswiYj0jGysFPn/LQ="; + types-aiobotocore-connect = + buildTypesAiobotocorePackage "connect" "2.12.3" + "sha256-R+p+mV/+SMFaWczEwECfoReQ9KBswiYj0jGysFPn/LQ="; - types-aiobotocore-connect-contact-lens = buildTypesAiobotocorePackage "connect-contact-lens" "2.12.3" "sha256-KuyJAoend5pAMEEh1EbqUuhWwoFSI5QyJhL/T4fg3vA="; + types-aiobotocore-connect-contact-lens = + buildTypesAiobotocorePackage "connect-contact-lens" "2.12.3" + "sha256-KuyJAoend5pAMEEh1EbqUuhWwoFSI5QyJhL/T4fg3vA="; - types-aiobotocore-connectcampaigns = buildTypesAiobotocorePackage "connectcampaigns" "2.12.3" "sha256-8RDp99dyEgxBQNJbQXMxU6Td6rCKBaOtvk22mGVkMpo="; + types-aiobotocore-connectcampaigns = + buildTypesAiobotocorePackage "connectcampaigns" "2.12.3" + "sha256-8RDp99dyEgxBQNJbQXMxU6Td6rCKBaOtvk22mGVkMpo="; - types-aiobotocore-connectcases = buildTypesAiobotocorePackage "connectcases" "2.12.3" "sha256-ka9T0Ln54mHiPec74fHYkOBL3RbJJ+hVOSkqh35LBXs="; + types-aiobotocore-connectcases = + buildTypesAiobotocorePackage "connectcases" "2.12.3" + "sha256-ka9T0Ln54mHiPec74fHYkOBL3RbJJ+hVOSkqh35LBXs="; - types-aiobotocore-connectparticipant = buildTypesAiobotocorePackage "connectparticipant" "2.12.3" "sha256-nAUWrVmTO2PbB4aJERZaZ2NBdE/fH5pyj2UYPxn1BJ0="; + types-aiobotocore-connectparticipant = + buildTypesAiobotocorePackage "connectparticipant" "2.12.3" + "sha256-nAUWrVmTO2PbB4aJERZaZ2NBdE/fH5pyj2UYPxn1BJ0="; - types-aiobotocore-controltower = buildTypesAiobotocorePackage "controltower" "2.12.3" "sha256-tXkoU2hPbB0IYR0QP9yKSLwRknrIcupeeIjHoZD8id4="; + types-aiobotocore-controltower = + buildTypesAiobotocorePackage "controltower" "2.12.3" + "sha256-tXkoU2hPbB0IYR0QP9yKSLwRknrIcupeeIjHoZD8id4="; - types-aiobotocore-cur = buildTypesAiobotocorePackage "cur" "2.12.3" "sha256-DbLeEVfr1xXtwIT9eqBY6+Enk1AFfF4ChzOeSO2jSc8="; + types-aiobotocore-cur = + buildTypesAiobotocorePackage "cur" "2.12.3" + "sha256-DbLeEVfr1xXtwIT9eqBY6+Enk1AFfF4ChzOeSO2jSc8="; - types-aiobotocore-customer-profiles = buildTypesAiobotocorePackage "customer-profiles" "2.12.3" "sha256-TpmMtpIVdE2SPr+ZaKHUoNqJQFoglcyF4pBIn0jkW9Q="; + types-aiobotocore-customer-profiles = + buildTypesAiobotocorePackage "customer-profiles" "2.12.3" + "sha256-TpmMtpIVdE2SPr+ZaKHUoNqJQFoglcyF4pBIn0jkW9Q="; - types-aiobotocore-databrew = buildTypesAiobotocorePackage "databrew" "2.12.3" "sha256-fKUL2ZJgytMhv4rni6lD92M1uh1vnUfFcjh30Tdfofk="; + types-aiobotocore-databrew = + buildTypesAiobotocorePackage "databrew" "2.12.3" + "sha256-fKUL2ZJgytMhv4rni6lD92M1uh1vnUfFcjh30Tdfofk="; - types-aiobotocore-dataexchange = buildTypesAiobotocorePackage "dataexchange" "2.12.3" "sha256-x5t5rK4UQ4ltFqSB2dyG6NXrzoJLPBBF8Ovn8Fka8Mo="; + types-aiobotocore-dataexchange = + buildTypesAiobotocorePackage "dataexchange" "2.12.3" + "sha256-x5t5rK4UQ4ltFqSB2dyG6NXrzoJLPBBF8Ovn8Fka8Mo="; - types-aiobotocore-datapipeline = buildTypesAiobotocorePackage "datapipeline" "2.12.3" "sha256-eMMWqVDoEmIJV3P4aA15bXsWEJ1cBpcvFf6elzvKBsM="; + types-aiobotocore-datapipeline = + buildTypesAiobotocorePackage "datapipeline" "2.12.3" + "sha256-eMMWqVDoEmIJV3P4aA15bXsWEJ1cBpcvFf6elzvKBsM="; - types-aiobotocore-datasync = buildTypesAiobotocorePackage "datasync" "2.12.3" "sha256-TMD7XAqQivkQJbwBr6B4s629euXQyvxglG+hFhH7C8s="; + types-aiobotocore-datasync = + buildTypesAiobotocorePackage "datasync" "2.12.3" + "sha256-TMD7XAqQivkQJbwBr6B4s629euXQyvxglG+hFhH7C8s="; - types-aiobotocore-dax = buildTypesAiobotocorePackage "dax" "2.12.3" "sha256-JV8EpsEUOmeGEvSmb2zUboota0wu99TcvBcwkYGFa50="; + types-aiobotocore-dax = + buildTypesAiobotocorePackage "dax" "2.12.3" + "sha256-JV8EpsEUOmeGEvSmb2zUboota0wu99TcvBcwkYGFa50="; - types-aiobotocore-detective = buildTypesAiobotocorePackage "detective" "2.12.3" "sha256-1SRrURvp+hOnYWZsANu8waOJJ4SUBzGPAEFwNFyW4zc="; + types-aiobotocore-detective = + buildTypesAiobotocorePackage "detective" "2.12.3" + "sha256-1SRrURvp+hOnYWZsANu8waOJJ4SUBzGPAEFwNFyW4zc="; - types-aiobotocore-devicefarm = buildTypesAiobotocorePackage "devicefarm" "2.12.3" "sha256-3XTNHMYWlZUK7o7XQYpnsCq3FHBYuXJ6y2iVM+caKcc="; + types-aiobotocore-devicefarm = + buildTypesAiobotocorePackage "devicefarm" "2.12.3" + "sha256-3XTNHMYWlZUK7o7XQYpnsCq3FHBYuXJ6y2iVM+caKcc="; - types-aiobotocore-devops-guru = buildTypesAiobotocorePackage "devops-guru" "2.12.3" "sha256-kfeH7r2zaNw3gDH7QqKe2x93kEfzeUMY5aBOJFDz3vE="; + types-aiobotocore-devops-guru = + buildTypesAiobotocorePackage "devops-guru" "2.12.3" + "sha256-kfeH7r2zaNw3gDH7QqKe2x93kEfzeUMY5aBOJFDz3vE="; - types-aiobotocore-directconnect = buildTypesAiobotocorePackage "directconnect" "2.12.3" "sha256-0fsNThA4QJhTC8JlTJviOv+GwrMvVQxoddvRX4+Nrtk="; + types-aiobotocore-directconnect = + buildTypesAiobotocorePackage "directconnect" "2.12.3" + "sha256-0fsNThA4QJhTC8JlTJviOv+GwrMvVQxoddvRX4+Nrtk="; - types-aiobotocore-discovery = buildTypesAiobotocorePackage "discovery" "2.12.3" "sha256-acjirpyoMe2Mq72IuGHb85q/B0UHhQ2wEJO9Cy+OHmQ="; + types-aiobotocore-discovery = + buildTypesAiobotocorePackage "discovery" "2.12.3" + "sha256-acjirpyoMe2Mq72IuGHb85q/B0UHhQ2wEJO9Cy+OHmQ="; - types-aiobotocore-dlm = buildTypesAiobotocorePackage "dlm" "2.12.3" "sha256-Z4V00bBobcChsYr6MPJ+pwCV1VJwHVMeks2URMVGzgk="; + types-aiobotocore-dlm = + buildTypesAiobotocorePackage "dlm" "2.12.3" + "sha256-Z4V00bBobcChsYr6MPJ+pwCV1VJwHVMeks2URMVGzgk="; - types-aiobotocore-dms = buildTypesAiobotocorePackage "dms" "2.12.3" "sha256-JG8rHk86RHyCEeLPGHERMZ1f+gBAcS+TI+RSfxVWkdI="; + types-aiobotocore-dms = + buildTypesAiobotocorePackage "dms" "2.12.3" + "sha256-JG8rHk86RHyCEeLPGHERMZ1f+gBAcS+TI+RSfxVWkdI="; - types-aiobotocore-docdb = buildTypesAiobotocorePackage "docdb" "2.12.3" "sha256-t6ybt/wp+YL2qNyI89RzijJT1qPX6cBykQ803F81Q/0="; + types-aiobotocore-docdb = + buildTypesAiobotocorePackage "docdb" "2.12.3" + "sha256-t6ybt/wp+YL2qNyI89RzijJT1qPX6cBykQ803F81Q/0="; - types-aiobotocore-docdb-elastic = buildTypesAiobotocorePackage "docdb-elastic" "2.12.3" "sha256-MI9e+SYSjbO8PMRFa8VSyAfoupTb8wzhO+DXCcQgu3Q="; + types-aiobotocore-docdb-elastic = + buildTypesAiobotocorePackage "docdb-elastic" "2.12.3" + "sha256-MI9e+SYSjbO8PMRFa8VSyAfoupTb8wzhO+DXCcQgu3Q="; - types-aiobotocore-drs = buildTypesAiobotocorePackage "drs" "2.12.3" "sha256-qsyiQH75/L2HPM/QrQ5nrf9Bh+7xClIQggCWSA/7xho="; + types-aiobotocore-drs = + buildTypesAiobotocorePackage "drs" "2.12.3" + "sha256-qsyiQH75/L2HPM/QrQ5nrf9Bh+7xClIQggCWSA/7xho="; - types-aiobotocore-ds = buildTypesAiobotocorePackage "ds" "2.12.3" "sha256-ms93yRBMH/9hVVyN5jGZqP6Su4qdP/oKRHyAMlM5Nis="; + types-aiobotocore-ds = + buildTypesAiobotocorePackage "ds" "2.12.3" + "sha256-ms93yRBMH/9hVVyN5jGZqP6Su4qdP/oKRHyAMlM5Nis="; - types-aiobotocore-dynamodb = buildTypesAiobotocorePackage "dynamodb" "2.12.3" "sha256-sBsjF7ZIldzEN6LyXy9r9zmeKMEX8QXQE7GKYmXrYPg="; + types-aiobotocore-dynamodb = + buildTypesAiobotocorePackage "dynamodb" "2.12.3" + "sha256-sBsjF7ZIldzEN6LyXy9r9zmeKMEX8QXQE7GKYmXrYPg="; - types-aiobotocore-dynamodbstreams = buildTypesAiobotocorePackage "dynamodbstreams" "2.12.3" "sha256-0SZQFZf19WRnNA0uTbOoHxfuVZ/Oo4HgttiJcJ+ec3s="; + types-aiobotocore-dynamodbstreams = + buildTypesAiobotocorePackage "dynamodbstreams" "2.12.3" + "sha256-0SZQFZf19WRnNA0uTbOoHxfuVZ/Oo4HgttiJcJ+ec3s="; - types-aiobotocore-ebs = buildTypesAiobotocorePackage "ebs" "2.12.3" "sha256-nGyIT/TXqUMRWwA5tIDie1ktVwy0tspw3avgJ//kW5k="; + types-aiobotocore-ebs = + buildTypesAiobotocorePackage "ebs" "2.12.3" + "sha256-nGyIT/TXqUMRWwA5tIDie1ktVwy0tspw3avgJ//kW5k="; - types-aiobotocore-ec2 = buildTypesAiobotocorePackage "ec2" "2.12.3" "sha256-8OPqG7wMdu92O0BfGb9zI5Wj+NFA25jWZN0dvzQV0Yo="; + types-aiobotocore-ec2 = + buildTypesAiobotocorePackage "ec2" "2.12.3" + "sha256-8OPqG7wMdu92O0BfGb9zI5Wj+NFA25jWZN0dvzQV0Yo="; - types-aiobotocore-ec2-instance-connect = buildTypesAiobotocorePackage "ec2-instance-connect" "2.12.3" "sha256-Va2yM0tmcIj4b2wXUzWyhuhv5lhcfCslR0h0C7A5EsY="; + types-aiobotocore-ec2-instance-connect = + buildTypesAiobotocorePackage "ec2-instance-connect" "2.12.3" + "sha256-Va2yM0tmcIj4b2wXUzWyhuhv5lhcfCslR0h0C7A5EsY="; - types-aiobotocore-ecr = buildTypesAiobotocorePackage "ecr" "2.12.3" "sha256-FshaLIdFjrTh/bxE9X2to7OMqORJUl/THmE4rhIFbFI="; + types-aiobotocore-ecr = + buildTypesAiobotocorePackage "ecr" "2.12.3" + "sha256-FshaLIdFjrTh/bxE9X2to7OMqORJUl/THmE4rhIFbFI="; - types-aiobotocore-ecr-public = buildTypesAiobotocorePackage "ecr-public" "2.12.3" "sha256-GXZ0wSgko3LNMoWFdGAk75Z/ALecaJNJjog9zog+0pY="; + types-aiobotocore-ecr-public = + buildTypesAiobotocorePackage "ecr-public" "2.12.3" + "sha256-GXZ0wSgko3LNMoWFdGAk75Z/ALecaJNJjog9zog+0pY="; - types-aiobotocore-ecs = buildTypesAiobotocorePackage "ecs" "2.12.3" "sha256-JumaYfl8+YpgxAnxZF+1IW4Xhw4UuT2wxX979xbGFqc="; + types-aiobotocore-ecs = + buildTypesAiobotocorePackage "ecs" "2.12.3" + "sha256-JumaYfl8+YpgxAnxZF+1IW4Xhw4UuT2wxX979xbGFqc="; - types-aiobotocore-efs = buildTypesAiobotocorePackage "efs" "2.12.3" "sha256-Ea6AgjHGqrUNP8TF6PFNStVAuRED80agLuzhjdkIUM4="; + types-aiobotocore-efs = + buildTypesAiobotocorePackage "efs" "2.12.3" + "sha256-Ea6AgjHGqrUNP8TF6PFNStVAuRED80agLuzhjdkIUM4="; - types-aiobotocore-eks = buildTypesAiobotocorePackage "eks" "2.12.3" "sha256-JceWf2TRg+t55trAJhFAp4YVarc56ZiZYdjB7lhP/cc="; + types-aiobotocore-eks = + buildTypesAiobotocorePackage "eks" "2.12.3" + "sha256-JceWf2TRg+t55trAJhFAp4YVarc56ZiZYdjB7lhP/cc="; - types-aiobotocore-elastic-inference = buildTypesAiobotocorePackage "elastic-inference" "2.12.3" "sha256-hhgI8CplzvzbKVPB43udHODE+td4B4Tdk2vls+JNyn4="; + types-aiobotocore-elastic-inference = + buildTypesAiobotocorePackage "elastic-inference" "2.12.3" + "sha256-hhgI8CplzvzbKVPB43udHODE+td4B4Tdk2vls+JNyn4="; - types-aiobotocore-elasticache = buildTypesAiobotocorePackage "elasticache" "2.12.3" "sha256-DnZqKJCvFFzgjncV6w+Cxi7HTtA7A7t/RGJyQ9icYos="; + types-aiobotocore-elasticache = + buildTypesAiobotocorePackage "elasticache" "2.12.3" + "sha256-DnZqKJCvFFzgjncV6w+Cxi7HTtA7A7t/RGJyQ9icYos="; - types-aiobotocore-elasticbeanstalk = buildTypesAiobotocorePackage "elasticbeanstalk" "2.12.3" "sha256-HC3+b8rFuJshIax6g8oLFMSxxHcbYHP3HDvP2u3UX3U="; + types-aiobotocore-elasticbeanstalk = + buildTypesAiobotocorePackage "elasticbeanstalk" "2.12.3" + "sha256-HC3+b8rFuJshIax6g8oLFMSxxHcbYHP3HDvP2u3UX3U="; - types-aiobotocore-elastictranscoder = buildTypesAiobotocorePackage "elastictranscoder" "2.12.3" "sha256-jXW3LMDaQgXL7QVUJ0OxEUaNfPED5GjXefbWzzf+MGA="; + types-aiobotocore-elastictranscoder = + buildTypesAiobotocorePackage "elastictranscoder" "2.12.3" + "sha256-jXW3LMDaQgXL7QVUJ0OxEUaNfPED5GjXefbWzzf+MGA="; - types-aiobotocore-elb = buildTypesAiobotocorePackage "elb" "2.12.3" "sha256-L5be76HYM3piIMrbP0QiaLKc6YOdqPMR52fBuNkpLx4="; + types-aiobotocore-elb = + buildTypesAiobotocorePackage "elb" "2.12.3" + "sha256-L5be76HYM3piIMrbP0QiaLKc6YOdqPMR52fBuNkpLx4="; - types-aiobotocore-elbv2 = buildTypesAiobotocorePackage "elbv2" "2.12.3" "sha256-MCM9zyNpUUt4aAO04aMmPzg+r71VqQzeV4eH+ukBZiw="; + types-aiobotocore-elbv2 = + buildTypesAiobotocorePackage "elbv2" "2.12.3" + "sha256-MCM9zyNpUUt4aAO04aMmPzg+r71VqQzeV4eH+ukBZiw="; - types-aiobotocore-emr = buildTypesAiobotocorePackage "emr" "2.12.3" "sha256-5hCuf3QgmnKhaI8L5BmZfOztgsB9Quy/Zwwu3vutKj0="; + types-aiobotocore-emr = + buildTypesAiobotocorePackage "emr" "2.12.3" + "sha256-5hCuf3QgmnKhaI8L5BmZfOztgsB9Quy/Zwwu3vutKj0="; - types-aiobotocore-emr-containers = buildTypesAiobotocorePackage "emr-containers" "2.12.3" "sha256-Qq8koQIHkd4ZsuYfAnW7wpCgRzpGaFyKRCN5WQBIqJY="; + types-aiobotocore-emr-containers = + buildTypesAiobotocorePackage "emr-containers" "2.12.3" + "sha256-Qq8koQIHkd4ZsuYfAnW7wpCgRzpGaFyKRCN5WQBIqJY="; - types-aiobotocore-emr-serverless = buildTypesAiobotocorePackage "emr-serverless" "2.12.3" "sha256-b5iOWjrnxCT/enOPOixlD4tdav5DMavg32xlqE2u4DY="; + types-aiobotocore-emr-serverless = + buildTypesAiobotocorePackage "emr-serverless" "2.12.3" + "sha256-b5iOWjrnxCT/enOPOixlD4tdav5DMavg32xlqE2u4DY="; - types-aiobotocore-entityresolution = buildTypesAiobotocorePackage "entityresolution" "2.12.3" "sha256-aIFYYN2GPbDYPjQsbm9D6WPNRAGmFpfkQPhLYwGwZH8="; + types-aiobotocore-entityresolution = + buildTypesAiobotocorePackage "entityresolution" "2.12.3" + "sha256-aIFYYN2GPbDYPjQsbm9D6WPNRAGmFpfkQPhLYwGwZH8="; - types-aiobotocore-es = buildTypesAiobotocorePackage "es" "2.12.3" "sha256-xVn8IRXYklNychp8P8z79yVVwlCYzvhmnhSgq9LJv8Y="; + types-aiobotocore-es = + buildTypesAiobotocorePackage "es" "2.12.3" + "sha256-xVn8IRXYklNychp8P8z79yVVwlCYzvhmnhSgq9LJv8Y="; - types-aiobotocore-events = buildTypesAiobotocorePackage "events" "2.12.3" "sha256-8n9aFOaZYqQvwnb1Yt509JhZjNisL+dY3PVqkxbwbQA="; + types-aiobotocore-events = + buildTypesAiobotocorePackage "events" "2.12.3" + "sha256-8n9aFOaZYqQvwnb1Yt509JhZjNisL+dY3PVqkxbwbQA="; - types-aiobotocore-evidently = buildTypesAiobotocorePackage "evidently" "2.12.3" "sha256-8QZLlmUwuveQf1dXbJZGUJC2XiKA4vrdxG6Ee9F+jPA="; + types-aiobotocore-evidently = + buildTypesAiobotocorePackage "evidently" "2.12.3" + "sha256-8QZLlmUwuveQf1dXbJZGUJC2XiKA4vrdxG6Ee9F+jPA="; - types-aiobotocore-finspace = buildTypesAiobotocorePackage "finspace" "2.12.3" "sha256-icXRzSXSn/M50jVun2Evm1QB9m9feFGWazKSvZwCa30="; + types-aiobotocore-finspace = + buildTypesAiobotocorePackage "finspace" "2.12.3" + "sha256-icXRzSXSn/M50jVun2Evm1QB9m9feFGWazKSvZwCa30="; - types-aiobotocore-finspace-data = buildTypesAiobotocorePackage "finspace-data" "2.12.3" "sha256-dPw16YNaK5CvMNWxdkK0vNVzXcDY3hocWr9ffg2vtGI="; + types-aiobotocore-finspace-data = + buildTypesAiobotocorePackage "finspace-data" "2.12.3" + "sha256-dPw16YNaK5CvMNWxdkK0vNVzXcDY3hocWr9ffg2vtGI="; - types-aiobotocore-firehose = buildTypesAiobotocorePackage "firehose" "2.12.3" "sha256-xcFTvd7d+lrXiJ4SlxiznwFfFRHnxmTZk6vwVurICvc="; + types-aiobotocore-firehose = + buildTypesAiobotocorePackage "firehose" "2.12.3" + "sha256-xcFTvd7d+lrXiJ4SlxiznwFfFRHnxmTZk6vwVurICvc="; - types-aiobotocore-fis = buildTypesAiobotocorePackage "fis" "2.12.3" "sha256-ivJ/ekU1qvjuOXnLNXUUoGp/xc0DtHnqh4QwqUyIwk8="; + types-aiobotocore-fis = + buildTypesAiobotocorePackage "fis" "2.12.3" + "sha256-ivJ/ekU1qvjuOXnLNXUUoGp/xc0DtHnqh4QwqUyIwk8="; - types-aiobotocore-fms = buildTypesAiobotocorePackage "fms" "2.12.3" "sha256-ddMnkPvFyn2HG88pYapA3TWbOgV6DRLbnSWdd5CauyM="; + types-aiobotocore-fms = + buildTypesAiobotocorePackage "fms" "2.12.3" + "sha256-ddMnkPvFyn2HG88pYapA3TWbOgV6DRLbnSWdd5CauyM="; - types-aiobotocore-forecast = buildTypesAiobotocorePackage "forecast" "2.12.3" "sha256-RvaEG2bWIOOOdPOk1A/CW+UTtYMuQ3ZyD0tYfLzOhfc="; + types-aiobotocore-forecast = + buildTypesAiobotocorePackage "forecast" "2.12.3" + "sha256-RvaEG2bWIOOOdPOk1A/CW+UTtYMuQ3ZyD0tYfLzOhfc="; - types-aiobotocore-forecastquery = buildTypesAiobotocorePackage "forecastquery" "2.12.3" "sha256-I5vvbmW1BO0ZfKkQEXAhcGb8Q9DMKXDR9AYFcAm6bLM="; + types-aiobotocore-forecastquery = + buildTypesAiobotocorePackage "forecastquery" "2.12.3" + "sha256-I5vvbmW1BO0ZfKkQEXAhcGb8Q9DMKXDR9AYFcAm6bLM="; - types-aiobotocore-frauddetector = buildTypesAiobotocorePackage "frauddetector" "2.12.3" "sha256-NGi+3jWxWPMlsKGDjdWzcORI6ElDbtVexeVQh71cego="; + types-aiobotocore-frauddetector = + buildTypesAiobotocorePackage "frauddetector" "2.12.3" + "sha256-NGi+3jWxWPMlsKGDjdWzcORI6ElDbtVexeVQh71cego="; - types-aiobotocore-fsx = buildTypesAiobotocorePackage "fsx" "2.12.3" "sha256-1vl16o9foO6wmumbOvgF3FA8vEOjpCmkcHaktY8pEYY="; + types-aiobotocore-fsx = + buildTypesAiobotocorePackage "fsx" "2.12.3" + "sha256-1vl16o9foO6wmumbOvgF3FA8vEOjpCmkcHaktY8pEYY="; - types-aiobotocore-gamelift = buildTypesAiobotocorePackage "gamelift" "2.12.3" "sha256-FARwguNmU+BDV5XyJSL4dqGESEoKmXPjVoPU6ktzRIg="; + types-aiobotocore-gamelift = + buildTypesAiobotocorePackage "gamelift" "2.12.3" + "sha256-FARwguNmU+BDV5XyJSL4dqGESEoKmXPjVoPU6ktzRIg="; - types-aiobotocore-gamesparks = buildTypesAiobotocorePackage "gamesparks" "2.7.0" "sha256-oVbKtuLMPpCQcZYx/cH1Dqjv/t6/uXsveflfFVqfN+8="; + types-aiobotocore-gamesparks = + buildTypesAiobotocorePackage "gamesparks" "2.7.0" + "sha256-oVbKtuLMPpCQcZYx/cH1Dqjv/t6/uXsveflfFVqfN+8="; - types-aiobotocore-glacier = buildTypesAiobotocorePackage "glacier" "2.12.3" "sha256-Xpob7f0ucl+F+X++5GAdQ4B0IgF4YM7oRFFbm77n4LI="; + types-aiobotocore-glacier = + buildTypesAiobotocorePackage "glacier" "2.12.3" + "sha256-Xpob7f0ucl+F+X++5GAdQ4B0IgF4YM7oRFFbm77n4LI="; - types-aiobotocore-globalaccelerator = buildTypesAiobotocorePackage "globalaccelerator" "2.12.3" "sha256-aMaPlDZGLvuPDjH5p8bKU0JYRImjheJnpP2oKshtVDY="; + types-aiobotocore-globalaccelerator = + buildTypesAiobotocorePackage "globalaccelerator" "2.12.3" + "sha256-aMaPlDZGLvuPDjH5p8bKU0JYRImjheJnpP2oKshtVDY="; - types-aiobotocore-glue = buildTypesAiobotocorePackage "glue" "2.12.3" "sha256-d9rFpL4iv1k2zJgE8qQymisVDuOJMEL6ZuQkuV78d0U="; + types-aiobotocore-glue = + buildTypesAiobotocorePackage "glue" "2.12.3" + "sha256-d9rFpL4iv1k2zJgE8qQymisVDuOJMEL6ZuQkuV78d0U="; - types-aiobotocore-grafana = buildTypesAiobotocorePackage "grafana" "2.12.3" "sha256-jmavkKefg/AZMrhU1bhI6Njy78MDNrT+3riIaKIAUlY="; + types-aiobotocore-grafana = + buildTypesAiobotocorePackage "grafana" "2.12.3" + "sha256-jmavkKefg/AZMrhU1bhI6Njy78MDNrT+3riIaKIAUlY="; - types-aiobotocore-greengrass = buildTypesAiobotocorePackage "greengrass" "2.12.3" "sha256-zvg/8evrSn14vr9RJXeI4YVOiwva8GwdnCHKkfMygKk="; + types-aiobotocore-greengrass = + buildTypesAiobotocorePackage "greengrass" "2.12.3" + "sha256-zvg/8evrSn14vr9RJXeI4YVOiwva8GwdnCHKkfMygKk="; - types-aiobotocore-greengrassv2 = buildTypesAiobotocorePackage "greengrassv2" "2.12.3" "sha256-3DHm+EPlUQA3LHs1Pbi+B9ipCGg/sN7F5etOzJoXTMY="; + types-aiobotocore-greengrassv2 = + buildTypesAiobotocorePackage "greengrassv2" "2.12.3" + "sha256-3DHm+EPlUQA3LHs1Pbi+B9ipCGg/sN7F5etOzJoXTMY="; - types-aiobotocore-groundstation = buildTypesAiobotocorePackage "groundstation" "2.12.3" "sha256-0n8ec0H/Nz7Z5Dl7cK/BdxCSIv+wmP/jsS+uL9+ar9Q="; + types-aiobotocore-groundstation = + buildTypesAiobotocorePackage "groundstation" "2.12.3" + "sha256-0n8ec0H/Nz7Z5Dl7cK/BdxCSIv+wmP/jsS+uL9+ar9Q="; - types-aiobotocore-guardduty = buildTypesAiobotocorePackage "guardduty" "2.12.3" "sha256-POI2RmnRoUfjx74/MC/Nf9bqxsn3jUnkzHwuY5b7Oy4="; + types-aiobotocore-guardduty = + buildTypesAiobotocorePackage "guardduty" "2.12.3" + "sha256-POI2RmnRoUfjx74/MC/Nf9bqxsn3jUnkzHwuY5b7Oy4="; - types-aiobotocore-health = buildTypesAiobotocorePackage "health" "2.12.3" "sha256-5sa+9i8KahglRVdJnTqp8zYUHfvGq4GCfcMYhd2qJdU="; + types-aiobotocore-health = + buildTypesAiobotocorePackage "health" "2.12.3" + "sha256-5sa+9i8KahglRVdJnTqp8zYUHfvGq4GCfcMYhd2qJdU="; - types-aiobotocore-healthlake = buildTypesAiobotocorePackage "healthlake" "2.12.3" "sha256-CQDgDkaJ0hbmsRMxxBXGBOzn2XU5DG4uBFUOl3P4XwY="; + types-aiobotocore-healthlake = + buildTypesAiobotocorePackage "healthlake" "2.12.3" + "sha256-CQDgDkaJ0hbmsRMxxBXGBOzn2XU5DG4uBFUOl3P4XwY="; - types-aiobotocore-honeycode = buildTypesAiobotocorePackage "honeycode" "2.12.3" "sha256-NDecqTRmki4/c55vpjW8aCLW9fkKvkDRHAMrf54P9cM="; + types-aiobotocore-honeycode = + buildTypesAiobotocorePackage "honeycode" "2.12.3" + "sha256-NDecqTRmki4/c55vpjW8aCLW9fkKvkDRHAMrf54P9cM="; - types-aiobotocore-iam = buildTypesAiobotocorePackage "iam" "2.12.3" "sha256-0zxf9IpiVF1nxY+Cfk631+vTtjojo8Ky4M69zfU62MQ="; + types-aiobotocore-iam = + buildTypesAiobotocorePackage "iam" "2.12.3" + "sha256-0zxf9IpiVF1nxY+Cfk631+vTtjojo8Ky4M69zfU62MQ="; - types-aiobotocore-identitystore = buildTypesAiobotocorePackage "identitystore" "2.12.3" "sha256-GZnXAGM2WMamZkyHmxb/+uRfUtLmmXCkN1yRgUmO1pE="; + types-aiobotocore-identitystore = + buildTypesAiobotocorePackage "identitystore" "2.12.3" + "sha256-GZnXAGM2WMamZkyHmxb/+uRfUtLmmXCkN1yRgUmO1pE="; - types-aiobotocore-imagebuilder = buildTypesAiobotocorePackage "imagebuilder" "2.12.3" "sha256-ValWGfzRPnhA2HVwF/bHfCEv/NCOYoOjVPplRomIXgw="; + types-aiobotocore-imagebuilder = + buildTypesAiobotocorePackage "imagebuilder" "2.12.3" + "sha256-ValWGfzRPnhA2HVwF/bHfCEv/NCOYoOjVPplRomIXgw="; - types-aiobotocore-importexport = buildTypesAiobotocorePackage "importexport" "2.12.3" "sha256-o609SDjx1+dzBTmNSGuoh8H6XLfZLJgaqUJVEmG3gzU="; + types-aiobotocore-importexport = + buildTypesAiobotocorePackage "importexport" "2.12.3" + "sha256-o609SDjx1+dzBTmNSGuoh8H6XLfZLJgaqUJVEmG3gzU="; - types-aiobotocore-inspector = buildTypesAiobotocorePackage "inspector" "2.12.3" "sha256-ymj+ugkTQkGEloCtdnFsmwXtLmMnpgxsgINsZjCnPCI="; + types-aiobotocore-inspector = + buildTypesAiobotocorePackage "inspector" "2.12.3" + "sha256-ymj+ugkTQkGEloCtdnFsmwXtLmMnpgxsgINsZjCnPCI="; - types-aiobotocore-inspector2 = buildTypesAiobotocorePackage "inspector2" "2.12.3" "sha256-+kC/viBAYxGSP80pStaSD6bIXN5pdwu96NA6lcfIWzM="; + types-aiobotocore-inspector2 = + buildTypesAiobotocorePackage "inspector2" "2.12.3" + "sha256-+kC/viBAYxGSP80pStaSD6bIXN5pdwu96NA6lcfIWzM="; - types-aiobotocore-internetmonitor = buildTypesAiobotocorePackage "internetmonitor" "2.12.3" "sha256-iCVPf+7LtTfRvrX7vKt2DNkfw1xdTCpzlqvA2w4LsjQ="; + types-aiobotocore-internetmonitor = + buildTypesAiobotocorePackage "internetmonitor" "2.12.3" + "sha256-iCVPf+7LtTfRvrX7vKt2DNkfw1xdTCpzlqvA2w4LsjQ="; - types-aiobotocore-iot = buildTypesAiobotocorePackage "iot" "2.12.3" "sha256-YJSr/C6V7yASlg2Ifif8lAYsy9zOo9ficn0DWmWIZB8="; + types-aiobotocore-iot = + buildTypesAiobotocorePackage "iot" "2.12.3" + "sha256-YJSr/C6V7yASlg2Ifif8lAYsy9zOo9ficn0DWmWIZB8="; - types-aiobotocore-iot-data = buildTypesAiobotocorePackage "iot-data" "2.12.3" "sha256-7LJRrYAcyil9Trw8gCu7lOkrdcSW5yQeZOrQ1bPL+qE="; + types-aiobotocore-iot-data = + buildTypesAiobotocorePackage "iot-data" "2.12.3" + "sha256-7LJRrYAcyil9Trw8gCu7lOkrdcSW5yQeZOrQ1bPL+qE="; - types-aiobotocore-iot-jobs-data = buildTypesAiobotocorePackage "iot-jobs-data" "2.12.3" "sha256-An0qRP6UxBOHwkQ7e/a0ZN9c0drgC8uYz1xXslEwStc="; + types-aiobotocore-iot-jobs-data = + buildTypesAiobotocorePackage "iot-jobs-data" "2.12.3" + "sha256-An0qRP6UxBOHwkQ7e/a0ZN9c0drgC8uYz1xXslEwStc="; - types-aiobotocore-iot-roborunner = buildTypesAiobotocorePackage "iot-roborunner" "2.12.2" "sha256-O/nGvYfUibI4EvHgONtkYHFv/dZSpHCehXjietPiMJo="; + types-aiobotocore-iot-roborunner = + buildTypesAiobotocorePackage "iot-roborunner" "2.12.2" + "sha256-O/nGvYfUibI4EvHgONtkYHFv/dZSpHCehXjietPiMJo="; - types-aiobotocore-iot1click-devices = buildTypesAiobotocorePackage "iot1click-devices" "2.12.3" "sha256-5PQV2KlzOpRWkeJhsPFwCZ8iZQp+flTH1UUGn3q3/7k="; + types-aiobotocore-iot1click-devices = + buildTypesAiobotocorePackage "iot1click-devices" "2.12.3" + "sha256-5PQV2KlzOpRWkeJhsPFwCZ8iZQp+flTH1UUGn3q3/7k="; - types-aiobotocore-iot1click-projects = buildTypesAiobotocorePackage "iot1click-projects" "2.12.3" "sha256-FuC8skyo0yoqd+He5cOKlUUnPiGk9I8vUen0uj5Eqcc="; + types-aiobotocore-iot1click-projects = + buildTypesAiobotocorePackage "iot1click-projects" "2.12.3" + "sha256-FuC8skyo0yoqd+He5cOKlUUnPiGk9I8vUen0uj5Eqcc="; - types-aiobotocore-iotanalytics = buildTypesAiobotocorePackage "iotanalytics" "2.12.3" "sha256-EPHXokF9XO/0EAOnOyhp2MUfs7UHozFKYbWqPeDFweQ="; + types-aiobotocore-iotanalytics = + buildTypesAiobotocorePackage "iotanalytics" "2.12.3" + "sha256-EPHXokF9XO/0EAOnOyhp2MUfs7UHozFKYbWqPeDFweQ="; - types-aiobotocore-iotdeviceadvisor = buildTypesAiobotocorePackage "iotdeviceadvisor" "2.12.3" "sha256-iZVZJZFCrwmKpYglS/UT4Qew1GdttI7rwn+XduS2DPc="; + types-aiobotocore-iotdeviceadvisor = + buildTypesAiobotocorePackage "iotdeviceadvisor" "2.12.3" + "sha256-iZVZJZFCrwmKpYglS/UT4Qew1GdttI7rwn+XduS2DPc="; - types-aiobotocore-iotevents = buildTypesAiobotocorePackage "iotevents" "2.12.3" "sha256-bxW0Wtqua7ny+kv8bSdyss/MFxLWDMqCxbojBsjtNY4="; + types-aiobotocore-iotevents = + buildTypesAiobotocorePackage "iotevents" "2.12.3" + "sha256-bxW0Wtqua7ny+kv8bSdyss/MFxLWDMqCxbojBsjtNY4="; - types-aiobotocore-iotevents-data = buildTypesAiobotocorePackage "iotevents-data" "2.12.3" "sha256-jOVKCfHNJmfGHnqG/y75qz6hsYUWrD911KCV3amWldc="; + types-aiobotocore-iotevents-data = + buildTypesAiobotocorePackage "iotevents-data" "2.12.3" + "sha256-jOVKCfHNJmfGHnqG/y75qz6hsYUWrD911KCV3amWldc="; - types-aiobotocore-iotfleethub = buildTypesAiobotocorePackage "iotfleethub" "2.12.3" "sha256-gp2YjRDGXRFBrHnzs5m/SsugG7U6hh3NvYG8ym5/2FU="; + types-aiobotocore-iotfleethub = + buildTypesAiobotocorePackage "iotfleethub" "2.12.3" + "sha256-gp2YjRDGXRFBrHnzs5m/SsugG7U6hh3NvYG8ym5/2FU="; - types-aiobotocore-iotfleetwise = buildTypesAiobotocorePackage "iotfleetwise" "2.12.3" "sha256-YHZZUZmmmE6T8Z+Vvh4SZEf5xrzzObLKP6EuGY+aIaI="; + types-aiobotocore-iotfleetwise = + buildTypesAiobotocorePackage "iotfleetwise" "2.12.3" + "sha256-YHZZUZmmmE6T8Z+Vvh4SZEf5xrzzObLKP6EuGY+aIaI="; - types-aiobotocore-iotsecuretunneling = buildTypesAiobotocorePackage "iotsecuretunneling" "2.12.3" "sha256-Bx43NAwPTlPqZrV3SN39amD0on7RJvvXC27QJ9kShWY="; + types-aiobotocore-iotsecuretunneling = + buildTypesAiobotocorePackage "iotsecuretunneling" "2.12.3" + "sha256-Bx43NAwPTlPqZrV3SN39amD0on7RJvvXC27QJ9kShWY="; - types-aiobotocore-iotsitewise = buildTypesAiobotocorePackage "iotsitewise" "2.12.3" "sha256-fXmG7vvCgM24P+WwPgVlh+uVJdzT3r5dgEf5eU2763w="; + types-aiobotocore-iotsitewise = + buildTypesAiobotocorePackage "iotsitewise" "2.12.3" + "sha256-fXmG7vvCgM24P+WwPgVlh+uVJdzT3r5dgEf5eU2763w="; - types-aiobotocore-iotthingsgraph = buildTypesAiobotocorePackage "iotthingsgraph" "2.12.3" "sha256-1rdcWFEfM9paoGxm3NhS/A5tDMCgCoMkGeXUG49i238="; + types-aiobotocore-iotthingsgraph = + buildTypesAiobotocorePackage "iotthingsgraph" "2.12.3" + "sha256-1rdcWFEfM9paoGxm3NhS/A5tDMCgCoMkGeXUG49i238="; - types-aiobotocore-iottwinmaker = buildTypesAiobotocorePackage "iottwinmaker" "2.12.3" "sha256-AEp5cF3vVj5t/M7J4hSuk7KsUIKN9sSpSk2XfH4w8Hk="; + types-aiobotocore-iottwinmaker = + buildTypesAiobotocorePackage "iottwinmaker" "2.12.3" + "sha256-AEp5cF3vVj5t/M7J4hSuk7KsUIKN9sSpSk2XfH4w8Hk="; - types-aiobotocore-iotwireless = buildTypesAiobotocorePackage "iotwireless" "2.12.3" "sha256-LfmlJGalNaiZB1UAqG1XwDPNBKxz0hO2S9EiTakmtmA="; + types-aiobotocore-iotwireless = + buildTypesAiobotocorePackage "iotwireless" "2.12.3" + "sha256-LfmlJGalNaiZB1UAqG1XwDPNBKxz0hO2S9EiTakmtmA="; - types-aiobotocore-ivs = buildTypesAiobotocorePackage "ivs" "2.12.3" "sha256-vxFbBTyf0psVvc0N8kAEJrX/JumRoWD5GKQ2JmkJkPg="; + types-aiobotocore-ivs = + buildTypesAiobotocorePackage "ivs" "2.12.3" + "sha256-vxFbBTyf0psVvc0N8kAEJrX/JumRoWD5GKQ2JmkJkPg="; - types-aiobotocore-ivs-realtime = buildTypesAiobotocorePackage "ivs-realtime" "2.12.3" "sha256-78x0QtBZsBztNaAqiUCtosIf+Lm3DCJqVerRBOLiEXs="; + types-aiobotocore-ivs-realtime = + buildTypesAiobotocorePackage "ivs-realtime" "2.12.3" + "sha256-78x0QtBZsBztNaAqiUCtosIf+Lm3DCJqVerRBOLiEXs="; - types-aiobotocore-ivschat = buildTypesAiobotocorePackage "ivschat" "2.12.3" "sha256-/yakndOCbZlLhARZ6jd6eG0YLRZjg8Igw4Fc15obqRo="; + types-aiobotocore-ivschat = + buildTypesAiobotocorePackage "ivschat" "2.12.3" + "sha256-/yakndOCbZlLhARZ6jd6eG0YLRZjg8Igw4Fc15obqRo="; - types-aiobotocore-kafka = buildTypesAiobotocorePackage "kafka" "2.12.3" "sha256-oayTFZfzOURWDfzexxrHxV/JdJDXAmk9LupPWMFZpkc="; + types-aiobotocore-kafka = + buildTypesAiobotocorePackage "kafka" "2.12.3" + "sha256-oayTFZfzOURWDfzexxrHxV/JdJDXAmk9LupPWMFZpkc="; - types-aiobotocore-kafkaconnect = buildTypesAiobotocorePackage "kafkaconnect" "2.12.3" "sha256-pA6EEsfS9W1uK7s92CGqZtk3o+GUI92T/lFOqCQotTI="; + types-aiobotocore-kafkaconnect = + buildTypesAiobotocorePackage "kafkaconnect" "2.12.3" + "sha256-pA6EEsfS9W1uK7s92CGqZtk3o+GUI92T/lFOqCQotTI="; - types-aiobotocore-kendra = buildTypesAiobotocorePackage "kendra" "2.12.3" "sha256-RPSoV974cSYfPL1cFnpZjcMQeSENxThtG44zWUemN9E="; + types-aiobotocore-kendra = + buildTypesAiobotocorePackage "kendra" "2.12.3" + "sha256-RPSoV974cSYfPL1cFnpZjcMQeSENxThtG44zWUemN9E="; - types-aiobotocore-kendra-ranking = buildTypesAiobotocorePackage "kendra-ranking" "2.12.3" "sha256-A5o/guqeDNvH27DCB5SAJuOmgSMYSrJjru5qn3sOL6k="; + types-aiobotocore-kendra-ranking = + buildTypesAiobotocorePackage "kendra-ranking" "2.12.3" + "sha256-A5o/guqeDNvH27DCB5SAJuOmgSMYSrJjru5qn3sOL6k="; - types-aiobotocore-keyspaces = buildTypesAiobotocorePackage "keyspaces" "2.12.3" "sha256-1gACiFQAo1iCzITBQIcRNId8S2t3L7ga8MiC1oKQX58="; + types-aiobotocore-keyspaces = + buildTypesAiobotocorePackage "keyspaces" "2.12.3" + "sha256-1gACiFQAo1iCzITBQIcRNId8S2t3L7ga8MiC1oKQX58="; - types-aiobotocore-kinesis = buildTypesAiobotocorePackage "kinesis" "2.12.3" "sha256-jcFBnfzUcCyWt5qOgiCx/2Lbf2QEGW4G7JjTNclGy/k="; + types-aiobotocore-kinesis = + buildTypesAiobotocorePackage "kinesis" "2.12.3" + "sha256-jcFBnfzUcCyWt5qOgiCx/2Lbf2QEGW4G7JjTNclGy/k="; - types-aiobotocore-kinesis-video-archived-media = buildTypesAiobotocorePackage "kinesis-video-archived-media" "2.12.3" "sha256-DkvRjmHxmyj3TWQK5FxsgpU8vm+I7d7dibkI6rwGg8c="; + types-aiobotocore-kinesis-video-archived-media = + buildTypesAiobotocorePackage "kinesis-video-archived-media" "2.12.3" + "sha256-DkvRjmHxmyj3TWQK5FxsgpU8vm+I7d7dibkI6rwGg8c="; - types-aiobotocore-kinesis-video-media = buildTypesAiobotocorePackage "kinesis-video-media" "2.12.3" "sha256-cDko/AYbz8KLxheVLhGhYr9eUOxB6R3JCoNCXyOBL48="; + types-aiobotocore-kinesis-video-media = + buildTypesAiobotocorePackage "kinesis-video-media" "2.12.3" + "sha256-cDko/AYbz8KLxheVLhGhYr9eUOxB6R3JCoNCXyOBL48="; - types-aiobotocore-kinesis-video-signaling = buildTypesAiobotocorePackage "kinesis-video-signaling" "2.12.3" "sha256-f/8FAIf6DFf0ly5qRhG+kFHYzs4whggUsxhphA2bPuM="; + types-aiobotocore-kinesis-video-signaling = + buildTypesAiobotocorePackage "kinesis-video-signaling" "2.12.3" + "sha256-f/8FAIf6DFf0ly5qRhG+kFHYzs4whggUsxhphA2bPuM="; - types-aiobotocore-kinesis-video-webrtc-storage = buildTypesAiobotocorePackage "kinesis-video-webrtc-storage" "2.12.3" "sha256-dIvQeCqeL+oBy0N+uTcBTbkkNfGfrgKwGYrI8XaLeYQ="; + types-aiobotocore-kinesis-video-webrtc-storage = + buildTypesAiobotocorePackage "kinesis-video-webrtc-storage" "2.12.3" + "sha256-dIvQeCqeL+oBy0N+uTcBTbkkNfGfrgKwGYrI8XaLeYQ="; - types-aiobotocore-kinesisanalytics = buildTypesAiobotocorePackage "kinesisanalytics" "2.12.3" "sha256-nEc26wCazquuuiOVbWWpa7ab4ZQE0TElsWrbIuL2VHE="; + types-aiobotocore-kinesisanalytics = + buildTypesAiobotocorePackage "kinesisanalytics" "2.12.3" + "sha256-nEc26wCazquuuiOVbWWpa7ab4ZQE0TElsWrbIuL2VHE="; - types-aiobotocore-kinesisanalyticsv2 = buildTypesAiobotocorePackage "kinesisanalyticsv2" "2.12.3" "sha256-MX/moxuQphb6YaO3BeuMhDyvuYG8WEevYizg0yQq4Pw="; + types-aiobotocore-kinesisanalyticsv2 = + buildTypesAiobotocorePackage "kinesisanalyticsv2" "2.12.3" + "sha256-MX/moxuQphb6YaO3BeuMhDyvuYG8WEevYizg0yQq4Pw="; - types-aiobotocore-kinesisvideo = buildTypesAiobotocorePackage "kinesisvideo" "2.12.3" "sha256-G3kO0yM3jbw1RdRo5JX7Ju2vzsR+7GXeLjyoPGFIEQg="; + types-aiobotocore-kinesisvideo = + buildTypesAiobotocorePackage "kinesisvideo" "2.12.3" + "sha256-G3kO0yM3jbw1RdRo5JX7Ju2vzsR+7GXeLjyoPGFIEQg="; - types-aiobotocore-kms = buildTypesAiobotocorePackage "kms" "2.12.3" "sha256-6JfxOXCsDjP0QqYqXBiPXp3R31mBL6Z4xUwXMFHGgdI="; + types-aiobotocore-kms = + buildTypesAiobotocorePackage "kms" "2.12.3" + "sha256-6JfxOXCsDjP0QqYqXBiPXp3R31mBL6Z4xUwXMFHGgdI="; - types-aiobotocore-lakeformation = buildTypesAiobotocorePackage "lakeformation" "2.12.3" "sha256-KuXvIcrlvCA7ATv6az1Oeoe0CCysnCUb/B/D9+pd/Q0="; + types-aiobotocore-lakeformation = + buildTypesAiobotocorePackage "lakeformation" "2.12.3" + "sha256-KuXvIcrlvCA7ATv6az1Oeoe0CCysnCUb/B/D9+pd/Q0="; - types-aiobotocore-lambda = buildTypesAiobotocorePackage "lambda" "2.12.3" "sha256-4RSFi2CyKz/0Y3d9xIYM6CpOONTLP1X8rJqzJolVdck="; + types-aiobotocore-lambda = + buildTypesAiobotocorePackage "lambda" "2.12.3" + "sha256-4RSFi2CyKz/0Y3d9xIYM6CpOONTLP1X8rJqzJolVdck="; - types-aiobotocore-lex-models = buildTypesAiobotocorePackage "lex-models" "2.12.3" "sha256-EoASjvQ8uJy15SVq5vNek+vMqNgU40/Rj1i1NwWDHuk="; + types-aiobotocore-lex-models = + buildTypesAiobotocorePackage "lex-models" "2.12.3" + "sha256-EoASjvQ8uJy15SVq5vNek+vMqNgU40/Rj1i1NwWDHuk="; - types-aiobotocore-lex-runtime = buildTypesAiobotocorePackage "lex-runtime" "2.12.3" "sha256-JbL9RhcnbNll+68jzuiF6coqdMYeYLYkuPJz85Q4gAg="; + types-aiobotocore-lex-runtime = + buildTypesAiobotocorePackage "lex-runtime" "2.12.3" + "sha256-JbL9RhcnbNll+68jzuiF6coqdMYeYLYkuPJz85Q4gAg="; - types-aiobotocore-lexv2-models = buildTypesAiobotocorePackage "lexv2-models" "2.12.3" "sha256-cTndR1V9msDL+8NIqp6HRvSmP/rhZlwVuZwLKBoitZA="; + types-aiobotocore-lexv2-models = + buildTypesAiobotocorePackage "lexv2-models" "2.12.3" + "sha256-cTndR1V9msDL+8NIqp6HRvSmP/rhZlwVuZwLKBoitZA="; - types-aiobotocore-lexv2-runtime = buildTypesAiobotocorePackage "lexv2-runtime" "2.12.3" "sha256-V/PGGRZDXhilxUE5YslkyiJYWulQkEsxQZbaAbPP/cU="; + types-aiobotocore-lexv2-runtime = + buildTypesAiobotocorePackage "lexv2-runtime" "2.12.3" + "sha256-V/PGGRZDXhilxUE5YslkyiJYWulQkEsxQZbaAbPP/cU="; - types-aiobotocore-license-manager = buildTypesAiobotocorePackage "license-manager" "2.12.3" "sha256-zA+rcTsvrOFB1/st0q9vK4L0YZTGVlk0XNl5gxcxSK0="; + types-aiobotocore-license-manager = + buildTypesAiobotocorePackage "license-manager" "2.12.3" + "sha256-zA+rcTsvrOFB1/st0q9vK4L0YZTGVlk0XNl5gxcxSK0="; - types-aiobotocore-license-manager-linux-subscriptions = buildTypesAiobotocorePackage "license-manager-linux-subscriptions" "2.12.3" "sha256-vGzT4Q90+FeF8tELo3zWp90MqrbNJ95kzovjFbnz9LY="; + types-aiobotocore-license-manager-linux-subscriptions = + buildTypesAiobotocorePackage "license-manager-linux-subscriptions" "2.12.3" + "sha256-vGzT4Q90+FeF8tELo3zWp90MqrbNJ95kzovjFbnz9LY="; - types-aiobotocore-license-manager-user-subscriptions = buildTypesAiobotocorePackage "license-manager-user-subscriptions" "2.12.3" "sha256-qI9Pw+lK7JGSKEl+wxZz1CmG7UG1AsDmxkHuYY/sQxQ="; + types-aiobotocore-license-manager-user-subscriptions = + buildTypesAiobotocorePackage "license-manager-user-subscriptions" "2.12.3" + "sha256-qI9Pw+lK7JGSKEl+wxZz1CmG7UG1AsDmxkHuYY/sQxQ="; - types-aiobotocore-lightsail = buildTypesAiobotocorePackage "lightsail" "2.12.3" "sha256-hl58xChUqHdkl0KtZjMetrR+am1gHIPZtSfRXSQg6ac="; + types-aiobotocore-lightsail = + buildTypesAiobotocorePackage "lightsail" "2.12.3" + "sha256-hl58xChUqHdkl0KtZjMetrR+am1gHIPZtSfRXSQg6ac="; - types-aiobotocore-location = buildTypesAiobotocorePackage "location" "2.12.3" "sha256-nTBbzRhNWl5B1tGlaQVd0eKbnBvy/8fmDZ4kY9de4cU="; + types-aiobotocore-location = + buildTypesAiobotocorePackage "location" "2.12.3" + "sha256-nTBbzRhNWl5B1tGlaQVd0eKbnBvy/8fmDZ4kY9de4cU="; - types-aiobotocore-logs = buildTypesAiobotocorePackage "logs" "2.12.3" "sha256-mmmR4vLdjfNys1uXGMbvF84/CrI6GKNH/tRkneHI9PQ="; + types-aiobotocore-logs = + buildTypesAiobotocorePackage "logs" "2.12.3" + "sha256-mmmR4vLdjfNys1uXGMbvF84/CrI6GKNH/tRkneHI9PQ="; - types-aiobotocore-lookoutequipment = buildTypesAiobotocorePackage "lookoutequipment" "2.12.3" "sha256-rSoOIJywU+Vzh73LQac0ugfiu2r25SHdsgIjHmmHZnw="; + types-aiobotocore-lookoutequipment = + buildTypesAiobotocorePackage "lookoutequipment" "2.12.3" + "sha256-rSoOIJywU+Vzh73LQac0ugfiu2r25SHdsgIjHmmHZnw="; - types-aiobotocore-lookoutmetrics = buildTypesAiobotocorePackage "lookoutmetrics" "2.12.3" "sha256-hrVID1/a/McspXe+Tl6VPTApYJpjERa1Hb4QmTtWpBM="; + types-aiobotocore-lookoutmetrics = + buildTypesAiobotocorePackage "lookoutmetrics" "2.12.3" + "sha256-hrVID1/a/McspXe+Tl6VPTApYJpjERa1Hb4QmTtWpBM="; - types-aiobotocore-lookoutvision = buildTypesAiobotocorePackage "lookoutvision" "2.12.3" "sha256-KYxkVAaRxZxCHz4FBFNaZUrSLbtumaU1Qh3w467nPjo="; + types-aiobotocore-lookoutvision = + buildTypesAiobotocorePackage "lookoutvision" "2.12.3" + "sha256-KYxkVAaRxZxCHz4FBFNaZUrSLbtumaU1Qh3w467nPjo="; - types-aiobotocore-m2 = buildTypesAiobotocorePackage "m2" "2.12.3" "sha256-1f6YJ6a9OqmJ1szPMao5l3zAs97grpDr4SvldDNohV4="; + types-aiobotocore-m2 = + buildTypesAiobotocorePackage "m2" "2.12.3" + "sha256-1f6YJ6a9OqmJ1szPMao5l3zAs97grpDr4SvldDNohV4="; - types-aiobotocore-machinelearning = buildTypesAiobotocorePackage "machinelearning" "2.12.3" "sha256-0b6bNQvxR+OJd/hyM47qAM5/B0ALYEkWJqO5OosKOtw="; + types-aiobotocore-machinelearning = + buildTypesAiobotocorePackage "machinelearning" "2.12.3" + "sha256-0b6bNQvxR+OJd/hyM47qAM5/B0ALYEkWJqO5OosKOtw="; - types-aiobotocore-macie = buildTypesAiobotocorePackage "macie" "2.7.0" "sha256-hJJtGsK2b56nKX1ZhiarC+ffyjHYWRiC8II4oyDZWWw="; + types-aiobotocore-macie = + buildTypesAiobotocorePackage "macie" "2.7.0" + "sha256-hJJtGsK2b56nKX1ZhiarC+ffyjHYWRiC8II4oyDZWWw="; - types-aiobotocore-macie2 = buildTypesAiobotocorePackage "macie2" "2.12.3" "sha256-sd30ATrunzj5kqZDJLGd7sGdxtpBcR0Kl1qG2QhqeFk="; + types-aiobotocore-macie2 = + buildTypesAiobotocorePackage "macie2" "2.12.3" + "sha256-sd30ATrunzj5kqZDJLGd7sGdxtpBcR0Kl1qG2QhqeFk="; - types-aiobotocore-managedblockchain = buildTypesAiobotocorePackage "managedblockchain" "2.12.3" "sha256-8uZkHItyZfvSv8rr2PKYLHVDHxeL/f/Z8mcHYXBsiXw="; + types-aiobotocore-managedblockchain = + buildTypesAiobotocorePackage "managedblockchain" "2.12.3" + "sha256-8uZkHItyZfvSv8rr2PKYLHVDHxeL/f/Z8mcHYXBsiXw="; - types-aiobotocore-managedblockchain-query = buildTypesAiobotocorePackage "managedblockchain-query" "2.12.3" "sha256-n3hInygsT+Zkl4TTjZ7gtkvT7npEvvl6HoNpRW0kI2M="; + types-aiobotocore-managedblockchain-query = + buildTypesAiobotocorePackage "managedblockchain-query" "2.12.3" + "sha256-n3hInygsT+Zkl4TTjZ7gtkvT7npEvvl6HoNpRW0kI2M="; - types-aiobotocore-marketplace-catalog = buildTypesAiobotocorePackage "marketplace-catalog" "2.12.3" "sha256-GkzlSr5zRispSfeIe2pmOMlLhxoBctn9EM1VXTnMSkg="; + types-aiobotocore-marketplace-catalog = + buildTypesAiobotocorePackage "marketplace-catalog" "2.12.3" + "sha256-GkzlSr5zRispSfeIe2pmOMlLhxoBctn9EM1VXTnMSkg="; - types-aiobotocore-marketplace-entitlement = buildTypesAiobotocorePackage "marketplace-entitlement" "2.12.3" "sha256-61Sgh1moietvRwtc2SrJhWZ5y1ZobI+CiIlL+zkbbgE="; + types-aiobotocore-marketplace-entitlement = + buildTypesAiobotocorePackage "marketplace-entitlement" "2.12.3" + "sha256-61Sgh1moietvRwtc2SrJhWZ5y1ZobI+CiIlL+zkbbgE="; - types-aiobotocore-marketplacecommerceanalytics = buildTypesAiobotocorePackage "marketplacecommerceanalytics" "2.12.3" "sha256-//+fB39zKqT9n+KIa9fMHoj4Oq5S5bq1vwsnEorPS2g="; + types-aiobotocore-marketplacecommerceanalytics = + buildTypesAiobotocorePackage "marketplacecommerceanalytics" "2.12.3" + "sha256-//+fB39zKqT9n+KIa9fMHoj4Oq5S5bq1vwsnEorPS2g="; - types-aiobotocore-mediaconnect = buildTypesAiobotocorePackage "mediaconnect" "2.12.3" "sha256-DoIwvqLsCmcUR4UaEvTShKf6sYs3iQDyWkuDxz//cB8="; + types-aiobotocore-mediaconnect = + buildTypesAiobotocorePackage "mediaconnect" "2.12.3" + "sha256-DoIwvqLsCmcUR4UaEvTShKf6sYs3iQDyWkuDxz//cB8="; - types-aiobotocore-mediaconvert = buildTypesAiobotocorePackage "mediaconvert" "2.12.3" "sha256-ESAo1QuHtL7T5fZMP15bwxtjDdymDOmz0MX/mcDd82s="; + types-aiobotocore-mediaconvert = + buildTypesAiobotocorePackage "mediaconvert" "2.12.3" + "sha256-ESAo1QuHtL7T5fZMP15bwxtjDdymDOmz0MX/mcDd82s="; - types-aiobotocore-medialive = buildTypesAiobotocorePackage "medialive" "2.12.3" "sha256-ZF+D7dzjmQNntkyM271BePIbCchA3o1naO/sChfYrGo="; + types-aiobotocore-medialive = + buildTypesAiobotocorePackage "medialive" "2.12.3" + "sha256-ZF+D7dzjmQNntkyM271BePIbCchA3o1naO/sChfYrGo="; - types-aiobotocore-mediapackage = buildTypesAiobotocorePackage "mediapackage" "2.12.3" "sha256-OiwnSNch2kbYfNbKNCPSrhg+9yAe4sktibGEQ3MPyXI="; + types-aiobotocore-mediapackage = + buildTypesAiobotocorePackage "mediapackage" "2.12.3" + "sha256-OiwnSNch2kbYfNbKNCPSrhg+9yAe4sktibGEQ3MPyXI="; - types-aiobotocore-mediapackage-vod = buildTypesAiobotocorePackage "mediapackage-vod" "2.12.3" "sha256-tmBmDVpO4hTT8xMuFpeAl1Gx+m+MacalYwdxKO8k8o4="; + types-aiobotocore-mediapackage-vod = + buildTypesAiobotocorePackage "mediapackage-vod" "2.12.3" + "sha256-tmBmDVpO4hTT8xMuFpeAl1Gx+m+MacalYwdxKO8k8o4="; - types-aiobotocore-mediapackagev2 = buildTypesAiobotocorePackage "mediapackagev2" "2.12.3" "sha256-siRePAYIWMPCaivNTOCjhfafut6sQzFYqpiGO4rO+v8="; + types-aiobotocore-mediapackagev2 = + buildTypesAiobotocorePackage "mediapackagev2" "2.12.3" + "sha256-siRePAYIWMPCaivNTOCjhfafut6sQzFYqpiGO4rO+v8="; - types-aiobotocore-mediastore = buildTypesAiobotocorePackage "mediastore" "2.12.3" "sha256-S5o0T8mUQ1ppq4vPdNeBr5FjcNpRtFPRQG4C/MZye2U="; + types-aiobotocore-mediastore = + buildTypesAiobotocorePackage "mediastore" "2.12.3" + "sha256-S5o0T8mUQ1ppq4vPdNeBr5FjcNpRtFPRQG4C/MZye2U="; - types-aiobotocore-mediastore-data = buildTypesAiobotocorePackage "mediastore-data" "2.12.3" "sha256-q4AFkM7keYfHWmnFOM5r1xHpVEnDjWsAmyATcfC7264="; + types-aiobotocore-mediastore-data = + buildTypesAiobotocorePackage "mediastore-data" "2.12.3" + "sha256-q4AFkM7keYfHWmnFOM5r1xHpVEnDjWsAmyATcfC7264="; - types-aiobotocore-mediatailor = buildTypesAiobotocorePackage "mediatailor" "2.12.3" "sha256-PLyaXf2/hrmo4YGS6KY8aXyhEv5ewGPWVsGoHS0Ui2g="; + types-aiobotocore-mediatailor = + buildTypesAiobotocorePackage "mediatailor" "2.12.3" + "sha256-PLyaXf2/hrmo4YGS6KY8aXyhEv5ewGPWVsGoHS0Ui2g="; - types-aiobotocore-medical-imaging = buildTypesAiobotocorePackage "medical-imaging" "2.12.3" "sha256-3ZFHete+MHeUGomdkD54eCqwDfshP+5Vtf+jTOkRZww="; + types-aiobotocore-medical-imaging = + buildTypesAiobotocorePackage "medical-imaging" "2.12.3" + "sha256-3ZFHete+MHeUGomdkD54eCqwDfshP+5Vtf+jTOkRZww="; - types-aiobotocore-memorydb = buildTypesAiobotocorePackage "memorydb" "2.12.3" "sha256-PB1wrc6y3enPpB+Wk3ciL7F1dgU8bqRxE5FarSaV/80="; + types-aiobotocore-memorydb = + buildTypesAiobotocorePackage "memorydb" "2.12.3" + "sha256-PB1wrc6y3enPpB+Wk3ciL7F1dgU8bqRxE5FarSaV/80="; - types-aiobotocore-meteringmarketplace = buildTypesAiobotocorePackage "meteringmarketplace" "2.12.3" "sha256-rKVoKaY63jArGx0R5Y9Xnp7OoztedmbshmB9d338LzM="; + types-aiobotocore-meteringmarketplace = + buildTypesAiobotocorePackage "meteringmarketplace" "2.12.3" + "sha256-rKVoKaY63jArGx0R5Y9Xnp7OoztedmbshmB9d338LzM="; - types-aiobotocore-mgh = buildTypesAiobotocorePackage "mgh" "2.12.3" "sha256-bUWSyqyUMzvSQSMkqEPJYjhLoAXG1hUcIqHY5bpAito="; + types-aiobotocore-mgh = + buildTypesAiobotocorePackage "mgh" "2.12.3" + "sha256-bUWSyqyUMzvSQSMkqEPJYjhLoAXG1hUcIqHY5bpAito="; - types-aiobotocore-mgn = buildTypesAiobotocorePackage "mgn" "2.12.3" "sha256-I/NeUqOmAXeiF1Sej2LJkMOgKw1Lz4c7YrNJMf+Q4Ac="; + types-aiobotocore-mgn = + buildTypesAiobotocorePackage "mgn" "2.12.3" + "sha256-I/NeUqOmAXeiF1Sej2LJkMOgKw1Lz4c7YrNJMf+Q4Ac="; - types-aiobotocore-migration-hub-refactor-spaces = buildTypesAiobotocorePackage "migration-hub-refactor-spaces" "2.12.3" "sha256-0mOX1FRHqlY4FggS/ieTRzc6I4dwoNT6syl0lUiSnFs="; + types-aiobotocore-migration-hub-refactor-spaces = + buildTypesAiobotocorePackage "migration-hub-refactor-spaces" "2.12.3" + "sha256-0mOX1FRHqlY4FggS/ieTRzc6I4dwoNT6syl0lUiSnFs="; - types-aiobotocore-migrationhub-config = buildTypesAiobotocorePackage "migrationhub-config" "2.12.3" "sha256-CiobxWUFRuAI5qKFDO1zRQj5Xtp+RzMVjwGm2ZSBijY="; + types-aiobotocore-migrationhub-config = + buildTypesAiobotocorePackage "migrationhub-config" "2.12.3" + "sha256-CiobxWUFRuAI5qKFDO1zRQj5Xtp+RzMVjwGm2ZSBijY="; - types-aiobotocore-migrationhuborchestrator = buildTypesAiobotocorePackage "migrationhuborchestrator" "2.12.3" "sha256-SZ+e7oEbPvRY8J6jLePeoG7osJv7zPtn9SV5z4cU4gU="; + types-aiobotocore-migrationhuborchestrator = + buildTypesAiobotocorePackage "migrationhuborchestrator" "2.12.3" + "sha256-SZ+e7oEbPvRY8J6jLePeoG7osJv7zPtn9SV5z4cU4gU="; - types-aiobotocore-migrationhubstrategy = buildTypesAiobotocorePackage "migrationhubstrategy" "2.12.3" "sha256-vO0Tjigj2x/HsA5gPsPU1peloI7GMvHXHe8dtsxSGTg="; + types-aiobotocore-migrationhubstrategy = + buildTypesAiobotocorePackage "migrationhubstrategy" "2.12.3" + "sha256-vO0Tjigj2x/HsA5gPsPU1peloI7GMvHXHe8dtsxSGTg="; - types-aiobotocore-mobile = buildTypesAiobotocorePackage "mobile" "2.12.3" "sha256-s1ddYopINo+Q6T9QuD1sQ0P1UYgGxmYaSjxW6eCxK+Y="; + types-aiobotocore-mobile = + buildTypesAiobotocorePackage "mobile" "2.12.3" + "sha256-s1ddYopINo+Q6T9QuD1sQ0P1UYgGxmYaSjxW6eCxK+Y="; - types-aiobotocore-mq = buildTypesAiobotocorePackage "mq" "2.12.3" "sha256-tEvBlyvVNNDLRHe8UPzdjnq1hA5QqPDUdtuS2zj6zu0="; + types-aiobotocore-mq = + buildTypesAiobotocorePackage "mq" "2.12.3" + "sha256-tEvBlyvVNNDLRHe8UPzdjnq1hA5QqPDUdtuS2zj6zu0="; - types-aiobotocore-mturk = buildTypesAiobotocorePackage "mturk" "2.12.3" "sha256-59BieemJgQXv3YyitmffaeD7oxlQAKT8xX/E/VxG0JY="; + types-aiobotocore-mturk = + buildTypesAiobotocorePackage "mturk" "2.12.3" + "sha256-59BieemJgQXv3YyitmffaeD7oxlQAKT8xX/E/VxG0JY="; - types-aiobotocore-mwaa = buildTypesAiobotocorePackage "mwaa" "2.12.3" "sha256-ayUivauZR/s6ivrJA5DFviFgH/rq/f3KYGimULyoizY="; + types-aiobotocore-mwaa = + buildTypesAiobotocorePackage "mwaa" "2.12.3" + "sha256-ayUivauZR/s6ivrJA5DFviFgH/rq/f3KYGimULyoizY="; - types-aiobotocore-neptune = buildTypesAiobotocorePackage "neptune" "2.12.3" "sha256-bzIzK9sKecGyKvEVWvgwis8Lm9HRP/y49MSnQQb1XGk="; + types-aiobotocore-neptune = + buildTypesAiobotocorePackage "neptune" "2.12.3" + "sha256-bzIzK9sKecGyKvEVWvgwis8Lm9HRP/y49MSnQQb1XGk="; - types-aiobotocore-network-firewall = buildTypesAiobotocorePackage "network-firewall" "2.12.3" "sha256-2Ze/cG5ixrzYm0jZ4hByh7Wz3nAzH3/jyopgFyTUjdg="; + types-aiobotocore-network-firewall = + buildTypesAiobotocorePackage "network-firewall" "2.12.3" + "sha256-2Ze/cG5ixrzYm0jZ4hByh7Wz3nAzH3/jyopgFyTUjdg="; - types-aiobotocore-networkmanager = buildTypesAiobotocorePackage "networkmanager" "2.12.3" "sha256-F14ejhHjbv2BmfNng0hmI34+aA8pVCf4L+Cvn2Kx6Jc="; + types-aiobotocore-networkmanager = + buildTypesAiobotocorePackage "networkmanager" "2.12.3" + "sha256-F14ejhHjbv2BmfNng0hmI34+aA8pVCf4L+Cvn2Kx6Jc="; - types-aiobotocore-nimble = buildTypesAiobotocorePackage "nimble" "2.12.3" "sha256-8WpARJKsOatdQXzmFt30FFri8b1h3bBeyydbZ73kPMc="; + types-aiobotocore-nimble = + buildTypesAiobotocorePackage "nimble" "2.12.3" + "sha256-8WpARJKsOatdQXzmFt30FFri8b1h3bBeyydbZ73kPMc="; - types-aiobotocore-oam = buildTypesAiobotocorePackage "oam" "2.12.3" "sha256-qJlO69CxqQnDekL7KRoQEkDd3w5rCxwJ0Z6RRGZxVgU="; + types-aiobotocore-oam = + buildTypesAiobotocorePackage "oam" "2.12.3" + "sha256-qJlO69CxqQnDekL7KRoQEkDd3w5rCxwJ0Z6RRGZxVgU="; - types-aiobotocore-omics = buildTypesAiobotocorePackage "omics" "2.12.3" "sha256-TA4kRoEoYZ6awy9TL550xT0sjVg2FEdfOQLrBEurCTo="; + types-aiobotocore-omics = + buildTypesAiobotocorePackage "omics" "2.12.3" + "sha256-TA4kRoEoYZ6awy9TL550xT0sjVg2FEdfOQLrBEurCTo="; - types-aiobotocore-opensearch = buildTypesAiobotocorePackage "opensearch" "2.12.3" "sha256-uDCRtJuEKNh1HuHCq+YjucLj4VAoHTiqVaOvVnTDJr8="; + types-aiobotocore-opensearch = + buildTypesAiobotocorePackage "opensearch" "2.12.3" + "sha256-uDCRtJuEKNh1HuHCq+YjucLj4VAoHTiqVaOvVnTDJr8="; - types-aiobotocore-opensearchserverless = buildTypesAiobotocorePackage "opensearchserverless" "2.12.3" "sha256-KMftaU+mCA1yUnZ1/N1C4N353Lulnmue1Y95GGmIAPg="; + types-aiobotocore-opensearchserverless = + buildTypesAiobotocorePackage "opensearchserverless" "2.12.3" + "sha256-KMftaU+mCA1yUnZ1/N1C4N353Lulnmue1Y95GGmIAPg="; - types-aiobotocore-opsworks = buildTypesAiobotocorePackage "opsworks" "2.12.3" "sha256-0YVnEY6G5Huj3pnvouc6LaIPHb0uJdRkwF2/EPknFd0="; + types-aiobotocore-opsworks = + buildTypesAiobotocorePackage "opsworks" "2.12.3" + "sha256-0YVnEY6G5Huj3pnvouc6LaIPHb0uJdRkwF2/EPknFd0="; - types-aiobotocore-opsworkscm = buildTypesAiobotocorePackage "opsworkscm" "2.12.3" "sha256-o+tbhUjox4tueImh0cWLqe8Z0xDaDmA1BGMUmFDoEkA="; + types-aiobotocore-opsworkscm = + buildTypesAiobotocorePackage "opsworkscm" "2.12.3" + "sha256-o+tbhUjox4tueImh0cWLqe8Z0xDaDmA1BGMUmFDoEkA="; - types-aiobotocore-organizations = buildTypesAiobotocorePackage "organizations" "2.12.3" "sha256-uZ/hxE2GOIPcbtlyG82sBA+uT4RxAORvck4WjghJ+kg="; + types-aiobotocore-organizations = + buildTypesAiobotocorePackage "organizations" "2.12.3" + "sha256-uZ/hxE2GOIPcbtlyG82sBA+uT4RxAORvck4WjghJ+kg="; - types-aiobotocore-osis = buildTypesAiobotocorePackage "osis" "2.12.3" "sha256-kxa5cYYzTSpPmLHV+1ZKjBAC4S9ITmT0p/NI34rQwSs="; + types-aiobotocore-osis = + buildTypesAiobotocorePackage "osis" "2.12.3" + "sha256-kxa5cYYzTSpPmLHV+1ZKjBAC4S9ITmT0p/NI34rQwSs="; - types-aiobotocore-outposts = buildTypesAiobotocorePackage "outposts" "2.12.3" "sha256-Xf3CuvPjTQODNeSmI+meP7aHj9a26lPGWQ7nWfc/FjE="; + types-aiobotocore-outposts = + buildTypesAiobotocorePackage "outposts" "2.12.3" + "sha256-Xf3CuvPjTQODNeSmI+meP7aHj9a26lPGWQ7nWfc/FjE="; - types-aiobotocore-panorama = buildTypesAiobotocorePackage "panorama" "2.12.3" "sha256-nzkVKxoLpkEBthjyO4d2m8QsEVz2pYsjfBC0sGsTkrY="; + types-aiobotocore-panorama = + buildTypesAiobotocorePackage "panorama" "2.12.3" + "sha256-nzkVKxoLpkEBthjyO4d2m8QsEVz2pYsjfBC0sGsTkrY="; - types-aiobotocore-payment-cryptography = buildTypesAiobotocorePackage "payment-cryptography" "2.12.3" "sha256-7H0ew8JQNCUkbNiqCH4jCoO883j5y1hbxXqwwJARuTs="; + types-aiobotocore-payment-cryptography = + buildTypesAiobotocorePackage "payment-cryptography" "2.12.3" + "sha256-7H0ew8JQNCUkbNiqCH4jCoO883j5y1hbxXqwwJARuTs="; - types-aiobotocore-payment-cryptography-data = buildTypesAiobotocorePackage "payment-cryptography-data" "2.12.3" "sha256-awVZZf6o0VRTqOl1myJggGdCmwoC5XBTlYSeupceWr0="; + types-aiobotocore-payment-cryptography-data = + buildTypesAiobotocorePackage "payment-cryptography-data" "2.12.3" + "sha256-awVZZf6o0VRTqOl1myJggGdCmwoC5XBTlYSeupceWr0="; - types-aiobotocore-personalize = buildTypesAiobotocorePackage "personalize" "2.12.3" "sha256-j+q16/K4NSdsLmt+vXF3SEy2Kde+/6BxEZ05zOOPI2w="; + types-aiobotocore-personalize = + buildTypesAiobotocorePackage "personalize" "2.12.3" + "sha256-j+q16/K4NSdsLmt+vXF3SEy2Kde+/6BxEZ05zOOPI2w="; - types-aiobotocore-personalize-events = buildTypesAiobotocorePackage "personalize-events" "2.12.3" "sha256-YY3hOmgc5ZU1rrN5cbHoIS54eby1AM2vYPz//fGH7Mw="; + types-aiobotocore-personalize-events = + buildTypesAiobotocorePackage "personalize-events" "2.12.3" + "sha256-YY3hOmgc5ZU1rrN5cbHoIS54eby1AM2vYPz//fGH7Mw="; - types-aiobotocore-personalize-runtime = buildTypesAiobotocorePackage "personalize-runtime" "2.12.3" "sha256-D8k7Ui77IvVkpODg7p8SQLO7We3/EYhZaHODsJskJgc="; + types-aiobotocore-personalize-runtime = + buildTypesAiobotocorePackage "personalize-runtime" "2.12.3" + "sha256-D8k7Ui77IvVkpODg7p8SQLO7We3/EYhZaHODsJskJgc="; - types-aiobotocore-pi = buildTypesAiobotocorePackage "pi" "2.12.3" "sha256-sOLfoF0t58cvdvB8LModo1fs8cPovn9gkg0d0opDj1c="; + types-aiobotocore-pi = + buildTypesAiobotocorePackage "pi" "2.12.3" + "sha256-sOLfoF0t58cvdvB8LModo1fs8cPovn9gkg0d0opDj1c="; - types-aiobotocore-pinpoint = buildTypesAiobotocorePackage "pinpoint" "2.12.3" "sha256-YMB/QCn6zawXBB2Fw4he6CIdZFMz4s91IZIbx1W5RwU="; + types-aiobotocore-pinpoint = + buildTypesAiobotocorePackage "pinpoint" "2.12.3" + "sha256-YMB/QCn6zawXBB2Fw4he6CIdZFMz4s91IZIbx1W5RwU="; - types-aiobotocore-pinpoint-email = buildTypesAiobotocorePackage "pinpoint-email" "2.12.3" "sha256-7MCEh3ICp+3qD6Uijk4/wpEzaP56khP7lG/1RJ26IJg="; + types-aiobotocore-pinpoint-email = + buildTypesAiobotocorePackage "pinpoint-email" "2.12.3" + "sha256-7MCEh3ICp+3qD6Uijk4/wpEzaP56khP7lG/1RJ26IJg="; - types-aiobotocore-pinpoint-sms-voice = buildTypesAiobotocorePackage "pinpoint-sms-voice" "2.12.3" "sha256-qCnMdlF9VwoTpXxgMObmOa61xzj8NHQoxJriMEbWUPs="; + types-aiobotocore-pinpoint-sms-voice = + buildTypesAiobotocorePackage "pinpoint-sms-voice" "2.12.3" + "sha256-qCnMdlF9VwoTpXxgMObmOa61xzj8NHQoxJriMEbWUPs="; - types-aiobotocore-pinpoint-sms-voice-v2 = buildTypesAiobotocorePackage "pinpoint-sms-voice-v2" "2.12.3" "sha256-eWOhKQR0tTlqLKCmy3zWvRsg5Y0zRKxtQPM8DGEbvuE="; + types-aiobotocore-pinpoint-sms-voice-v2 = + buildTypesAiobotocorePackage "pinpoint-sms-voice-v2" "2.12.3" + "sha256-eWOhKQR0tTlqLKCmy3zWvRsg5Y0zRKxtQPM8DGEbvuE="; - types-aiobotocore-pipes = buildTypesAiobotocorePackage "pipes" "2.12.3" "sha256-kKpp8rQ/co4tJhi1xpuEaIpICy+8sM4grp6bu9HsGMw="; + types-aiobotocore-pipes = + buildTypesAiobotocorePackage "pipes" "2.12.3" + "sha256-kKpp8rQ/co4tJhi1xpuEaIpICy+8sM4grp6bu9HsGMw="; - types-aiobotocore-polly = buildTypesAiobotocorePackage "polly" "2.12.3" "sha256-lwU91zv+IhHXBoGtioox9iB7lqGxXwf+s3A43qDZFRw="; + types-aiobotocore-polly = + buildTypesAiobotocorePackage "polly" "2.12.3" + "sha256-lwU91zv+IhHXBoGtioox9iB7lqGxXwf+s3A43qDZFRw="; - types-aiobotocore-pricing = buildTypesAiobotocorePackage "pricing" "2.12.3" "sha256-n3bM48N4nqgXA5XQ+2lHgqyfADGP8pt8MDcpd3Afdbc="; + types-aiobotocore-pricing = + buildTypesAiobotocorePackage "pricing" "2.12.3" + "sha256-n3bM48N4nqgXA5XQ+2lHgqyfADGP8pt8MDcpd3Afdbc="; - types-aiobotocore-privatenetworks = buildTypesAiobotocorePackage "privatenetworks" "2.12.3" "sha256-EvxCTzjfaxz3sj7S39I1MvOUo5n4vnc4h0X4bWevSwE="; + types-aiobotocore-privatenetworks = + buildTypesAiobotocorePackage "privatenetworks" "2.12.3" + "sha256-EvxCTzjfaxz3sj7S39I1MvOUo5n4vnc4h0X4bWevSwE="; - types-aiobotocore-proton = buildTypesAiobotocorePackage "proton" "2.12.3" "sha256-/0MAjPO7xXsuePNUGpqpSOORe6GsH8IpbZUj4F9+Jp0="; + types-aiobotocore-proton = + buildTypesAiobotocorePackage "proton" "2.12.3" + "sha256-/0MAjPO7xXsuePNUGpqpSOORe6GsH8IpbZUj4F9+Jp0="; - types-aiobotocore-qldb = buildTypesAiobotocorePackage "qldb" "2.12.3" "sha256-2LbMUzIge0Jf+iGDI06ne7QP3EMoiVY3m1KOniiRnsw="; + types-aiobotocore-qldb = + buildTypesAiobotocorePackage "qldb" "2.12.3" + "sha256-2LbMUzIge0Jf+iGDI06ne7QP3EMoiVY3m1KOniiRnsw="; - types-aiobotocore-qldb-session = buildTypesAiobotocorePackage "qldb-session" "2.12.3" "sha256-Ooj8lzd48n+tcICQgAJT9z//7r+obDdv4jvTNTAhzCw="; + types-aiobotocore-qldb-session = + buildTypesAiobotocorePackage "qldb-session" "2.12.3" + "sha256-Ooj8lzd48n+tcICQgAJT9z//7r+obDdv4jvTNTAhzCw="; - types-aiobotocore-quicksight = buildTypesAiobotocorePackage "quicksight" "2.12.3" "sha256-aZGpaXSomaU0+oFEEuN1C/1zjA4UAz4vn/Nu2JJThrA="; + types-aiobotocore-quicksight = + buildTypesAiobotocorePackage "quicksight" "2.12.3" + "sha256-aZGpaXSomaU0+oFEEuN1C/1zjA4UAz4vn/Nu2JJThrA="; - types-aiobotocore-ram = buildTypesAiobotocorePackage "ram" "2.12.3" "sha256-bauCdG3Qf4Uiyw0szQL7SBm7QmYSmcDAOW2nW23xlQ0="; + types-aiobotocore-ram = + buildTypesAiobotocorePackage "ram" "2.12.3" + "sha256-bauCdG3Qf4Uiyw0szQL7SBm7QmYSmcDAOW2nW23xlQ0="; - types-aiobotocore-rbin = buildTypesAiobotocorePackage "rbin" "2.12.3" "sha256-zitp/IE5zJL0qKF5TM3nQdUA1qgSeCSGcK/WS3niRUA="; + types-aiobotocore-rbin = + buildTypesAiobotocorePackage "rbin" "2.12.3" + "sha256-zitp/IE5zJL0qKF5TM3nQdUA1qgSeCSGcK/WS3niRUA="; - types-aiobotocore-rds = buildTypesAiobotocorePackage "rds" "2.12.3" "sha256-scJBwjmxy+UmivIBKl5ncB0/JQSeSwSh3wA30EWH/+o="; + types-aiobotocore-rds = + buildTypesAiobotocorePackage "rds" "2.12.3" + "sha256-scJBwjmxy+UmivIBKl5ncB0/JQSeSwSh3wA30EWH/+o="; - types-aiobotocore-rds-data = buildTypesAiobotocorePackage "rds-data" "2.12.3" "sha256-KmEecWh2Z0O6eoRjEClzDC/Vp3qYwrPtdIW6ty2/jM4="; + types-aiobotocore-rds-data = + buildTypesAiobotocorePackage "rds-data" "2.12.3" + "sha256-KmEecWh2Z0O6eoRjEClzDC/Vp3qYwrPtdIW6ty2/jM4="; - types-aiobotocore-redshift = buildTypesAiobotocorePackage "redshift" "2.12.3" "sha256-H0GqZM72tVXcvs6ciE9wcqOAQfECU84iKn2VdGaNhIg="; + types-aiobotocore-redshift = + buildTypesAiobotocorePackage "redshift" "2.12.3" + "sha256-H0GqZM72tVXcvs6ciE9wcqOAQfECU84iKn2VdGaNhIg="; - types-aiobotocore-redshift-data = buildTypesAiobotocorePackage "redshift-data" "2.12.3" "sha256-3eJxMH1JvdJ1n9XnC/6+q7rT5ipaUE/J5G++O1MGf40="; + types-aiobotocore-redshift-data = + buildTypesAiobotocorePackage "redshift-data" "2.12.3" + "sha256-3eJxMH1JvdJ1n9XnC/6+q7rT5ipaUE/J5G++O1MGf40="; - types-aiobotocore-redshift-serverless = buildTypesAiobotocorePackage "redshift-serverless" "2.12.3" "sha256-+KyAzCuPDV9QTx5COJZjGRpiciYdSHDaaulH++s8Olk="; + types-aiobotocore-redshift-serverless = + buildTypesAiobotocorePackage "redshift-serverless" "2.12.3" + "sha256-+KyAzCuPDV9QTx5COJZjGRpiciYdSHDaaulH++s8Olk="; - types-aiobotocore-rekognition = buildTypesAiobotocorePackage "rekognition" "2.12.3" "sha256-AZ3tTUTTQsxIDn7hmq5DkepvOGRA/OBGC7O0Y9ZCqb4="; + types-aiobotocore-rekognition = + buildTypesAiobotocorePackage "rekognition" "2.12.3" + "sha256-AZ3tTUTTQsxIDn7hmq5DkepvOGRA/OBGC7O0Y9ZCqb4="; - types-aiobotocore-resiliencehub = buildTypesAiobotocorePackage "resiliencehub" "2.12.3" "sha256-mAKlLfWNTYpYA7QJl6VLHv9Kl4xNXKsRFZJbCEpLjdI="; + types-aiobotocore-resiliencehub = + buildTypesAiobotocorePackage "resiliencehub" "2.12.3" + "sha256-mAKlLfWNTYpYA7QJl6VLHv9Kl4xNXKsRFZJbCEpLjdI="; - types-aiobotocore-resource-explorer-2 = buildTypesAiobotocorePackage "resource-explorer-2" "2.12.3" "sha256-Tc2AoAADC9+ElCBKqATsRqAlq12gNcJKr7evJpbZejg="; + types-aiobotocore-resource-explorer-2 = + buildTypesAiobotocorePackage "resource-explorer-2" "2.12.3" + "sha256-Tc2AoAADC9+ElCBKqATsRqAlq12gNcJKr7evJpbZejg="; - types-aiobotocore-resource-groups = buildTypesAiobotocorePackage "resource-groups" "2.12.3" "sha256-U02sdfU+FPpcKf7KP4WEIhwbew7CHnXUhE497fYmEXk="; + types-aiobotocore-resource-groups = + buildTypesAiobotocorePackage "resource-groups" "2.12.3" + "sha256-U02sdfU+FPpcKf7KP4WEIhwbew7CHnXUhE497fYmEXk="; - types-aiobotocore-resourcegroupstaggingapi = buildTypesAiobotocorePackage "resourcegroupstaggingapi" "2.12.3" "sha256-Ydf20+setw1400AydFrUHUWQdvNE4g2x23Q9Vn+FG+0="; + types-aiobotocore-resourcegroupstaggingapi = + buildTypesAiobotocorePackage "resourcegroupstaggingapi" "2.12.3" + "sha256-Ydf20+setw1400AydFrUHUWQdvNE4g2x23Q9Vn+FG+0="; - types-aiobotocore-robomaker = buildTypesAiobotocorePackage "robomaker" "2.12.3" "sha256-trj8NpEEUJTB0WEzX1XyVQtofWH/j52oNb9CKL/lpSQ="; + types-aiobotocore-robomaker = + buildTypesAiobotocorePackage "robomaker" "2.12.3" + "sha256-trj8NpEEUJTB0WEzX1XyVQtofWH/j52oNb9CKL/lpSQ="; - types-aiobotocore-rolesanywhere = buildTypesAiobotocorePackage "rolesanywhere" "2.12.3" "sha256-xd23IpWelx5jtNTBWtCJZEIG4m/o0dpHlXi82goX8m8="; + types-aiobotocore-rolesanywhere = + buildTypesAiobotocorePackage "rolesanywhere" "2.12.3" + "sha256-xd23IpWelx5jtNTBWtCJZEIG4m/o0dpHlXi82goX8m8="; - types-aiobotocore-route53 = buildTypesAiobotocorePackage "route53" "2.12.3" "sha256-oEyb1NE+3wDStkvUX0gtJ6Bzp/oHIUw1gyQVdFv0PXw="; + types-aiobotocore-route53 = + buildTypesAiobotocorePackage "route53" "2.12.3" + "sha256-oEyb1NE+3wDStkvUX0gtJ6Bzp/oHIUw1gyQVdFv0PXw="; - types-aiobotocore-route53-recovery-cluster = buildTypesAiobotocorePackage "route53-recovery-cluster" "2.12.3" "sha256-lnWLEXErO3LO4teDnVnkGRawfEXdh2EgkDL9RVp941Q="; + types-aiobotocore-route53-recovery-cluster = + buildTypesAiobotocorePackage "route53-recovery-cluster" "2.12.3" + "sha256-lnWLEXErO3LO4teDnVnkGRawfEXdh2EgkDL9RVp941Q="; - types-aiobotocore-route53-recovery-control-config = buildTypesAiobotocorePackage "route53-recovery-control-config" "2.12.3" "sha256-FsnXHspKP62zQiB0zhX28V3yeLAMNqMW6JHTVtGVjsk="; + types-aiobotocore-route53-recovery-control-config = + buildTypesAiobotocorePackage "route53-recovery-control-config" "2.12.3" + "sha256-FsnXHspKP62zQiB0zhX28V3yeLAMNqMW6JHTVtGVjsk="; - types-aiobotocore-route53-recovery-readiness = buildTypesAiobotocorePackage "route53-recovery-readiness" "2.12.3" "sha256-mAWpWgYqjnoIHJzw3nNNQA5m5bQd+mkU1536hDb2K+w="; + types-aiobotocore-route53-recovery-readiness = + buildTypesAiobotocorePackage "route53-recovery-readiness" "2.12.3" + "sha256-mAWpWgYqjnoIHJzw3nNNQA5m5bQd+mkU1536hDb2K+w="; - types-aiobotocore-route53domains = buildTypesAiobotocorePackage "route53domains" "2.12.3" "sha256-sm1A/O/k62QDcmrhv5mpHZ3YqixRWcPnV2VEL9AfkFs="; + types-aiobotocore-route53domains = + buildTypesAiobotocorePackage "route53domains" "2.12.3" + "sha256-sm1A/O/k62QDcmrhv5mpHZ3YqixRWcPnV2VEL9AfkFs="; - types-aiobotocore-route53resolver = buildTypesAiobotocorePackage "route53resolver" "2.12.3" "sha256-wZVYaDPSU5d0xTeCJQcPi0hiLRt4pvrbMozalM3fIUA="; + types-aiobotocore-route53resolver = + buildTypesAiobotocorePackage "route53resolver" "2.12.3" + "sha256-wZVYaDPSU5d0xTeCJQcPi0hiLRt4pvrbMozalM3fIUA="; - types-aiobotocore-rum = buildTypesAiobotocorePackage "rum" "2.12.3" "sha256-IMk/fTHusesqUz0k9KC0TIDcCiShh+DSdQowOBBpeJg="; + types-aiobotocore-rum = + buildTypesAiobotocorePackage "rum" "2.12.3" + "sha256-IMk/fTHusesqUz0k9KC0TIDcCiShh+DSdQowOBBpeJg="; - types-aiobotocore-s3 = buildTypesAiobotocorePackage "s3" "2.12.3" "sha256-UcY0A+OAG3Dfi6HfH2leuknKraIHceX6pWcPsXElzX8="; + types-aiobotocore-s3 = + buildTypesAiobotocorePackage "s3" "2.12.3" + "sha256-UcY0A+OAG3Dfi6HfH2leuknKraIHceX6pWcPsXElzX8="; - types-aiobotocore-s3control = buildTypesAiobotocorePackage "s3control" "2.12.3" "sha256-SSD5mCt392ZE0SmypwASM1HeuqnNFbnBjsI/8Uwy+Y0="; + types-aiobotocore-s3control = + buildTypesAiobotocorePackage "s3control" "2.12.3" + "sha256-SSD5mCt392ZE0SmypwASM1HeuqnNFbnBjsI/8Uwy+Y0="; - types-aiobotocore-s3outposts = buildTypesAiobotocorePackage "s3outposts" "2.12.3" "sha256-iFrAYHvNIpgH+M6HeuogIZJiRiyzLhuOboEF3ipCCug="; + types-aiobotocore-s3outposts = + buildTypesAiobotocorePackage "s3outposts" "2.12.3" + "sha256-iFrAYHvNIpgH+M6HeuogIZJiRiyzLhuOboEF3ipCCug="; - types-aiobotocore-sagemaker = buildTypesAiobotocorePackage "sagemaker" "2.12.3" "sha256-DTUta+jol6bEAisciUDPaiubNdc7CE1DC2njjPVCuEw="; + types-aiobotocore-sagemaker = + buildTypesAiobotocorePackage "sagemaker" "2.12.3" + "sha256-DTUta+jol6bEAisciUDPaiubNdc7CE1DC2njjPVCuEw="; - types-aiobotocore-sagemaker-a2i-runtime = buildTypesAiobotocorePackage "sagemaker-a2i-runtime" "2.12.3" "sha256-+DV7vYutJqk3pcA8gaXVQW2foTKD07elUUFyMi13QT8="; + types-aiobotocore-sagemaker-a2i-runtime = + buildTypesAiobotocorePackage "sagemaker-a2i-runtime" "2.12.3" + "sha256-+DV7vYutJqk3pcA8gaXVQW2foTKD07elUUFyMi13QT8="; - types-aiobotocore-sagemaker-edge = buildTypesAiobotocorePackage "sagemaker-edge" "2.12.3" "sha256-SFZJnRXUDM5qlvMf6nTso38RmBXKbN3xqOdXFwoCOEc="; + types-aiobotocore-sagemaker-edge = + buildTypesAiobotocorePackage "sagemaker-edge" "2.12.3" + "sha256-SFZJnRXUDM5qlvMf6nTso38RmBXKbN3xqOdXFwoCOEc="; - types-aiobotocore-sagemaker-featurestore-runtime = buildTypesAiobotocorePackage "sagemaker-featurestore-runtime" "2.12.3" "sha256-PnVM2KeIEodV1RVmiXv6Zh80NfnzxV3ih3RpNYJlnzw="; + types-aiobotocore-sagemaker-featurestore-runtime = + buildTypesAiobotocorePackage "sagemaker-featurestore-runtime" "2.12.3" + "sha256-PnVM2KeIEodV1RVmiXv6Zh80NfnzxV3ih3RpNYJlnzw="; - types-aiobotocore-sagemaker-geospatial = buildTypesAiobotocorePackage "sagemaker-geospatial" "2.12.3" "sha256-Lg2PR/AB5yqsRwUWZfIf7vP7Ig2G8APEZRzCXUm0H48="; + types-aiobotocore-sagemaker-geospatial = + buildTypesAiobotocorePackage "sagemaker-geospatial" "2.12.3" + "sha256-Lg2PR/AB5yqsRwUWZfIf7vP7Ig2G8APEZRzCXUm0H48="; - types-aiobotocore-sagemaker-metrics = buildTypesAiobotocorePackage "sagemaker-metrics" "2.12.3" "sha256-Iv6JOyRcAfkaNdq/m2ot/e8CTZREWIE7V+tEsZNZ3HY="; + types-aiobotocore-sagemaker-metrics = + buildTypesAiobotocorePackage "sagemaker-metrics" "2.12.3" + "sha256-Iv6JOyRcAfkaNdq/m2ot/e8CTZREWIE7V+tEsZNZ3HY="; - types-aiobotocore-sagemaker-runtime = buildTypesAiobotocorePackage "sagemaker-runtime" "2.12.3" "sha256-/jd4KgxRbV9IzTGDm0BkcQ5UIaRpDyLBUFZXLsaYzA4="; + types-aiobotocore-sagemaker-runtime = + buildTypesAiobotocorePackage "sagemaker-runtime" "2.12.3" + "sha256-/jd4KgxRbV9IzTGDm0BkcQ5UIaRpDyLBUFZXLsaYzA4="; - types-aiobotocore-savingsplans = buildTypesAiobotocorePackage "savingsplans" "2.12.3" "sha256-PgrfYlgmvM7QtF0E1z4xi8gGK+ixZykxvdEMpTz3SZw="; + types-aiobotocore-savingsplans = + buildTypesAiobotocorePackage "savingsplans" "2.12.3" + "sha256-PgrfYlgmvM7QtF0E1z4xi8gGK+ixZykxvdEMpTz3SZw="; - types-aiobotocore-scheduler = buildTypesAiobotocorePackage "scheduler" "2.12.3" "sha256-jXpQJ1Uw2nOVZpkXtUf1mCrS9YykBJcvVMCp5Jz9558="; + types-aiobotocore-scheduler = + buildTypesAiobotocorePackage "scheduler" "2.12.3" + "sha256-jXpQJ1Uw2nOVZpkXtUf1mCrS9YykBJcvVMCp5Jz9558="; - types-aiobotocore-schemas = buildTypesAiobotocorePackage "schemas" "2.12.3" "sha256-PiRnAEU/+r/VT3SiboaUpU9FRyOs/3Wj5wCJDyzKZNU="; + types-aiobotocore-schemas = + buildTypesAiobotocorePackage "schemas" "2.12.3" + "sha256-PiRnAEU/+r/VT3SiboaUpU9FRyOs/3Wj5wCJDyzKZNU="; - types-aiobotocore-sdb = buildTypesAiobotocorePackage "sdb" "2.12.3" "sha256-17iQmuTvmeMDkz3fRxYlE/JcCy/XTuCNmlG5EGGY1S8="; + types-aiobotocore-sdb = + buildTypesAiobotocorePackage "sdb" "2.12.3" + "sha256-17iQmuTvmeMDkz3fRxYlE/JcCy/XTuCNmlG5EGGY1S8="; - types-aiobotocore-secretsmanager = buildTypesAiobotocorePackage "secretsmanager" "2.12.3" "sha256-Yk0GEeSSl3Bhx9w/uRrrl9oNjpdw4ekye1Ia38fpvXE="; + types-aiobotocore-secretsmanager = + buildTypesAiobotocorePackage "secretsmanager" "2.12.3" + "sha256-Yk0GEeSSl3Bhx9w/uRrrl9oNjpdw4ekye1Ia38fpvXE="; - types-aiobotocore-securityhub = buildTypesAiobotocorePackage "securityhub" "2.12.3" "sha256-iZzzocPVbiWn6ZaHOEu42hcOLJyjgIRWCJpeSiQE3I4="; + types-aiobotocore-securityhub = + buildTypesAiobotocorePackage "securityhub" "2.12.3" + "sha256-iZzzocPVbiWn6ZaHOEu42hcOLJyjgIRWCJpeSiQE3I4="; - types-aiobotocore-securitylake = buildTypesAiobotocorePackage "securitylake" "2.12.3" "sha256-q9e+7s3//qaswRo1wwIIhtEz7qszUKuHXXG3n4z8piE="; + types-aiobotocore-securitylake = + buildTypesAiobotocorePackage "securitylake" "2.12.3" + "sha256-q9e+7s3//qaswRo1wwIIhtEz7qszUKuHXXG3n4z8piE="; - types-aiobotocore-serverlessrepo = buildTypesAiobotocorePackage "serverlessrepo" "2.12.3" "sha256-sqFr4/WFedUrgVK9PAVffaA4lhEK510679P/RoTv4xw="; + types-aiobotocore-serverlessrepo = + buildTypesAiobotocorePackage "serverlessrepo" "2.12.3" + "sha256-sqFr4/WFedUrgVK9PAVffaA4lhEK510679P/RoTv4xw="; - types-aiobotocore-service-quotas = buildTypesAiobotocorePackage "service-quotas" "2.12.3" "sha256-vCRTtFjQfCe38y/wZaxjIfHRLzkqAakDf/sNXtU2TOY="; + types-aiobotocore-service-quotas = + buildTypesAiobotocorePackage "service-quotas" "2.12.3" + "sha256-vCRTtFjQfCe38y/wZaxjIfHRLzkqAakDf/sNXtU2TOY="; - types-aiobotocore-servicecatalog = buildTypesAiobotocorePackage "servicecatalog" "2.12.3" "sha256-9EXbCcvcrXmKktoZXp+LdKXQOi6V9VKHrFVR++XGhOI="; + types-aiobotocore-servicecatalog = + buildTypesAiobotocorePackage "servicecatalog" "2.12.3" + "sha256-9EXbCcvcrXmKktoZXp+LdKXQOi6V9VKHrFVR++XGhOI="; - types-aiobotocore-servicecatalog-appregistry = buildTypesAiobotocorePackage "servicecatalog-appregistry" "2.12.3" "sha256-VenvRShJhVaZHkM0MN+iEZHGeOeqbAYneRW0lB4+fww="; + types-aiobotocore-servicecatalog-appregistry = + buildTypesAiobotocorePackage "servicecatalog-appregistry" "2.12.3" + "sha256-VenvRShJhVaZHkM0MN+iEZHGeOeqbAYneRW0lB4+fww="; - types-aiobotocore-servicediscovery = buildTypesAiobotocorePackage "servicediscovery" "2.12.3" "sha256-fK38DE6aGY03HmtIBBhyxX4pjA3XOiKKZJ2iMJeZDP8="; + types-aiobotocore-servicediscovery = + buildTypesAiobotocorePackage "servicediscovery" "2.12.3" + "sha256-fK38DE6aGY03HmtIBBhyxX4pjA3XOiKKZJ2iMJeZDP8="; - types-aiobotocore-ses = buildTypesAiobotocorePackage "ses" "2.12.3" "sha256-oYoq9cMFB7qKjUccWa4iunjlwizUA/pevKcQiHS68wY="; + types-aiobotocore-ses = + buildTypesAiobotocorePackage "ses" "2.12.3" + "sha256-oYoq9cMFB7qKjUccWa4iunjlwizUA/pevKcQiHS68wY="; - types-aiobotocore-sesv2 = buildTypesAiobotocorePackage "sesv2" "2.12.3" "sha256-JR16UIvxYyWR+T7Ar9ft8rwxZrqwyzKy5pVJMi6kzbA="; + types-aiobotocore-sesv2 = + buildTypesAiobotocorePackage "sesv2" "2.12.3" + "sha256-JR16UIvxYyWR+T7Ar9ft8rwxZrqwyzKy5pVJMi6kzbA="; - types-aiobotocore-shield = buildTypesAiobotocorePackage "shield" "2.12.3" "sha256-tuzWmBEyMr9k4isVkg5ybz7NBwKl5udmHHdokUVILog="; + types-aiobotocore-shield = + buildTypesAiobotocorePackage "shield" "2.12.3" + "sha256-tuzWmBEyMr9k4isVkg5ybz7NBwKl5udmHHdokUVILog="; - types-aiobotocore-signer = buildTypesAiobotocorePackage "signer" "2.12.3" "sha256-jy6cpicBp423tHyp6ALwPro0CwPddDfQHdo9KBOOtLo="; + types-aiobotocore-signer = + buildTypesAiobotocorePackage "signer" "2.12.3" + "sha256-jy6cpicBp423tHyp6ALwPro0CwPddDfQHdo9KBOOtLo="; - types-aiobotocore-simspaceweaver = buildTypesAiobotocorePackage "simspaceweaver" "2.12.3" "sha256-fDVnFlLYm+8lfSVfFAGu5sjqrVIjmC0WCPpPbIhyf9w="; + types-aiobotocore-simspaceweaver = + buildTypesAiobotocorePackage "simspaceweaver" "2.12.3" + "sha256-fDVnFlLYm+8lfSVfFAGu5sjqrVIjmC0WCPpPbIhyf9w="; - types-aiobotocore-sms = buildTypesAiobotocorePackage "sms" "2.12.3" "sha256-RF91H0JiSTScbqvFbKHkid/Wp7+Qr/qLc6UT9bltEdY="; + types-aiobotocore-sms = + buildTypesAiobotocorePackage "sms" "2.12.3" + "sha256-RF91H0JiSTScbqvFbKHkid/Wp7+Qr/qLc6UT9bltEdY="; - types-aiobotocore-sms-voice = buildTypesAiobotocorePackage "sms-voice" "2.12.3" "sha256-nT82/oiMPjWyVbwWLhLjRoQoEMZERe2ET2ti2OnefQw="; + types-aiobotocore-sms-voice = + buildTypesAiobotocorePackage "sms-voice" "2.12.3" + "sha256-nT82/oiMPjWyVbwWLhLjRoQoEMZERe2ET2ti2OnefQw="; - types-aiobotocore-snow-device-management = buildTypesAiobotocorePackage "snow-device-management" "2.12.3" "sha256-ama8FOWJb2czu+++Ps1nSKCnwZxMk9SP0OGHzX02x7Y="; + types-aiobotocore-snow-device-management = + buildTypesAiobotocorePackage "snow-device-management" "2.12.3" + "sha256-ama8FOWJb2czu+++Ps1nSKCnwZxMk9SP0OGHzX02x7Y="; - types-aiobotocore-snowball = buildTypesAiobotocorePackage "snowball" "2.12.3" "sha256-elqHFPOYXK8xx1XC5yDkcPJPyY2x0/FKt3Kor+gPk9s="; + types-aiobotocore-snowball = + buildTypesAiobotocorePackage "snowball" "2.12.3" + "sha256-elqHFPOYXK8xx1XC5yDkcPJPyY2x0/FKt3Kor+gPk9s="; - types-aiobotocore-sns = buildTypesAiobotocorePackage "sns" "2.12.3" "sha256-HfqnblwWhnFpVfFe6a4OLPQXuSZB+SzKRS5u39viIjE="; + types-aiobotocore-sns = + buildTypesAiobotocorePackage "sns" "2.12.3" + "sha256-HfqnblwWhnFpVfFe6a4OLPQXuSZB+SzKRS5u39viIjE="; - types-aiobotocore-sqs = buildTypesAiobotocorePackage "sqs" "2.12.3" "sha256-m4tcWZXlixyURA7V1bJvThC1VydPmalqIdz7JrqsEl0="; + types-aiobotocore-sqs = + buildTypesAiobotocorePackage "sqs" "2.12.3" + "sha256-m4tcWZXlixyURA7V1bJvThC1VydPmalqIdz7JrqsEl0="; - types-aiobotocore-ssm = buildTypesAiobotocorePackage "ssm" "2.12.3" "sha256-Zl8oXCdd7lPPNpIF27EPUfPcTVnwfjCBKfS1/t0ta60="; + types-aiobotocore-ssm = + buildTypesAiobotocorePackage "ssm" "2.12.3" + "sha256-Zl8oXCdd7lPPNpIF27EPUfPcTVnwfjCBKfS1/t0ta60="; - types-aiobotocore-ssm-contacts = buildTypesAiobotocorePackage "ssm-contacts" "2.12.3" "sha256-TYFO1JBWesLY+oNg+k4IdR5OOtrddgUgDn7ONGARRKU="; + types-aiobotocore-ssm-contacts = + buildTypesAiobotocorePackage "ssm-contacts" "2.12.3" + "sha256-TYFO1JBWesLY+oNg+k4IdR5OOtrddgUgDn7ONGARRKU="; - types-aiobotocore-ssm-incidents = buildTypesAiobotocorePackage "ssm-incidents" "2.12.3" "sha256-IzUQDV1C6TGKT+UXA2c9C6HVBlrg3qHynH/+7klH/6E="; + types-aiobotocore-ssm-incidents = + buildTypesAiobotocorePackage "ssm-incidents" "2.12.3" + "sha256-IzUQDV1C6TGKT+UXA2c9C6HVBlrg3qHynH/+7klH/6E="; - types-aiobotocore-ssm-sap = buildTypesAiobotocorePackage "ssm-sap" "2.12.3" "sha256-xaXFwmc+VBX005jom+oYI0fjqebI2BN7Mj14+dVXGQE="; + types-aiobotocore-ssm-sap = + buildTypesAiobotocorePackage "ssm-sap" "2.12.3" + "sha256-xaXFwmc+VBX005jom+oYI0fjqebI2BN7Mj14+dVXGQE="; - types-aiobotocore-sso = buildTypesAiobotocorePackage "sso" "2.12.3" "sha256-ZC4pgxkd0NM+jxOrdiZCoMv39N5dp6yvCfcbkuWxKkE="; + types-aiobotocore-sso = + buildTypesAiobotocorePackage "sso" "2.12.3" + "sha256-ZC4pgxkd0NM+jxOrdiZCoMv39N5dp6yvCfcbkuWxKkE="; - types-aiobotocore-sso-admin = buildTypesAiobotocorePackage "sso-admin" "2.12.3" "sha256-chLpz3GeLrw6SbnmqeZntzFZb8YseYXswmlU1icccMs="; + types-aiobotocore-sso-admin = + buildTypesAiobotocorePackage "sso-admin" "2.12.3" + "sha256-chLpz3GeLrw6SbnmqeZntzFZb8YseYXswmlU1icccMs="; - types-aiobotocore-sso-oidc = buildTypesAiobotocorePackage "sso-oidc" "2.12.3" "sha256-P7D0/lG3YJbQi12viIdd/Ykl3PCC1u/EAE0oqZv0zAk="; + types-aiobotocore-sso-oidc = + buildTypesAiobotocorePackage "sso-oidc" "2.12.3" + "sha256-P7D0/lG3YJbQi12viIdd/Ykl3PCC1u/EAE0oqZv0zAk="; - types-aiobotocore-stepfunctions = buildTypesAiobotocorePackage "stepfunctions" "2.12.3" "sha256-sYm/6MQNZfRL88M6JPhgZUrPV0r2kWfiNT9nPQB1Uwo="; + types-aiobotocore-stepfunctions = + buildTypesAiobotocorePackage "stepfunctions" "2.12.3" + "sha256-sYm/6MQNZfRL88M6JPhgZUrPV0r2kWfiNT9nPQB1Uwo="; - types-aiobotocore-storagegateway = buildTypesAiobotocorePackage "storagegateway" "2.12.3" "sha256-bdVAioN/pPSA3Ma7PPFhAVL4L1E7clZJzPct0k7ABp8="; + types-aiobotocore-storagegateway = + buildTypesAiobotocorePackage "storagegateway" "2.12.3" + "sha256-bdVAioN/pPSA3Ma7PPFhAVL4L1E7clZJzPct0k7ABp8="; - types-aiobotocore-sts = buildTypesAiobotocorePackage "sts" "2.12.3" "sha256-aQyVJ9UWizJuKDkko6+xHNIONLq3hI+rQfHsPaW6JVU="; + types-aiobotocore-sts = + buildTypesAiobotocorePackage "sts" "2.12.3" + "sha256-aQyVJ9UWizJuKDkko6+xHNIONLq3hI+rQfHsPaW6JVU="; - types-aiobotocore-support = buildTypesAiobotocorePackage "support" "2.12.3" "sha256-pJg8YolBrgYx0FwW3J60x2S9H4XymC0XlBBilb1YIEY="; + types-aiobotocore-support = + buildTypesAiobotocorePackage "support" "2.12.3" + "sha256-pJg8YolBrgYx0FwW3J60x2S9H4XymC0XlBBilb1YIEY="; - types-aiobotocore-support-app = buildTypesAiobotocorePackage "support-app" "2.12.3" "sha256-NMG419sd7+MjfBEGjaDYcr7kHCE3R3wAY5rFLzfIg18="; + types-aiobotocore-support-app = + buildTypesAiobotocorePackage "support-app" "2.12.3" + "sha256-NMG419sd7+MjfBEGjaDYcr7kHCE3R3wAY5rFLzfIg18="; - types-aiobotocore-swf = buildTypesAiobotocorePackage "swf" "2.12.3" "sha256-HFcaf+erCthcjXILJYmkH1YDM6xGR1DVi9xd61/UmUc="; + types-aiobotocore-swf = + buildTypesAiobotocorePackage "swf" "2.12.3" + "sha256-HFcaf+erCthcjXILJYmkH1YDM6xGR1DVi9xd61/UmUc="; - types-aiobotocore-synthetics = buildTypesAiobotocorePackage "synthetics" "2.12.3" "sha256-91qq9ziYFML/0rdn3SP8glsG9mW1LUjvqPlNDt4Fbwo="; + types-aiobotocore-synthetics = + buildTypesAiobotocorePackage "synthetics" "2.12.3" + "sha256-91qq9ziYFML/0rdn3SP8glsG9mW1LUjvqPlNDt4Fbwo="; - types-aiobotocore-textract = buildTypesAiobotocorePackage "textract" "2.12.3" "sha256-WQFJaP++IIr0eWa810stZzMM0gW5Cxh3CPVTfuFzhYg="; + types-aiobotocore-textract = + buildTypesAiobotocorePackage "textract" "2.12.3" + "sha256-WQFJaP++IIr0eWa810stZzMM0gW5Cxh3CPVTfuFzhYg="; - types-aiobotocore-timestream-query = buildTypesAiobotocorePackage "timestream-query" "2.12.3" "sha256-TOXo/JhCp8+dD0umfIuokpF/lmUgFfsMLOoLtkiZNpg="; + types-aiobotocore-timestream-query = + buildTypesAiobotocorePackage "timestream-query" "2.12.3" + "sha256-TOXo/JhCp8+dD0umfIuokpF/lmUgFfsMLOoLtkiZNpg="; - types-aiobotocore-timestream-write = buildTypesAiobotocorePackage "timestream-write" "2.12.3" "sha256-teNvXZu8T74wuYy13s9UvT2sBc/Q8pT27Mj0lP1uDa0="; + types-aiobotocore-timestream-write = + buildTypesAiobotocorePackage "timestream-write" "2.12.3" + "sha256-teNvXZu8T74wuYy13s9UvT2sBc/Q8pT27Mj0lP1uDa0="; - types-aiobotocore-tnb = buildTypesAiobotocorePackage "tnb" "2.12.3" "sha256-y3efi+c+4NOXvdnc+y/PMD2CuFuLDGU9HwFUgkNV8HU="; + types-aiobotocore-tnb = + buildTypesAiobotocorePackage "tnb" "2.12.3" + "sha256-y3efi+c+4NOXvdnc+y/PMD2CuFuLDGU9HwFUgkNV8HU="; - types-aiobotocore-transcribe = buildTypesAiobotocorePackage "transcribe" "2.12.3" "sha256-RdPWi2yNUdoDh3vrQGJx7BoF8tfYO2h9e0juwuNZTPY="; + types-aiobotocore-transcribe = + buildTypesAiobotocorePackage "transcribe" "2.12.3" + "sha256-RdPWi2yNUdoDh3vrQGJx7BoF8tfYO2h9e0juwuNZTPY="; - types-aiobotocore-transfer = buildTypesAiobotocorePackage "transfer" "2.12.3" "sha256-svX7Mr99aXUcYxtuFDAuEYvBF16IJqWbRNjubgxtRww="; + types-aiobotocore-transfer = + buildTypesAiobotocorePackage "transfer" "2.12.3" + "sha256-svX7Mr99aXUcYxtuFDAuEYvBF16IJqWbRNjubgxtRww="; - types-aiobotocore-translate = buildTypesAiobotocorePackage "translate" "2.12.3" "sha256-AY9NzJprshQe5UPAERG+DquylhKLtec05KMjM+CfJx4="; + types-aiobotocore-translate = + buildTypesAiobotocorePackage "translate" "2.12.3" + "sha256-AY9NzJprshQe5UPAERG+DquylhKLtec05KMjM+CfJx4="; - types-aiobotocore-verifiedpermissions = buildTypesAiobotocorePackage "verifiedpermissions" "2.12.3" "sha256-bH15twDf36YZuWTGhIdl2XsV9CYxrTRstI8+9otJA0A="; + types-aiobotocore-verifiedpermissions = + buildTypesAiobotocorePackage "verifiedpermissions" "2.12.3" + "sha256-bH15twDf36YZuWTGhIdl2XsV9CYxrTRstI8+9otJA0A="; - types-aiobotocore-voice-id = buildTypesAiobotocorePackage "voice-id" "2.12.3" "sha256-BA/JY5cusubF2NYIFOotM14O6YHEmcP9PX59ksnj8e0="; + types-aiobotocore-voice-id = + buildTypesAiobotocorePackage "voice-id" "2.12.3" + "sha256-BA/JY5cusubF2NYIFOotM14O6YHEmcP9PX59ksnj8e0="; - types-aiobotocore-vpc-lattice = buildTypesAiobotocorePackage "vpc-lattice" "2.12.3" "sha256-YYH5fIP+7yWLwm/UlAfdQWACsXXuyqGPNVWx1ZTsKq8="; + types-aiobotocore-vpc-lattice = + buildTypesAiobotocorePackage "vpc-lattice" "2.12.3" + "sha256-YYH5fIP+7yWLwm/UlAfdQWACsXXuyqGPNVWx1ZTsKq8="; - types-aiobotocore-waf = buildTypesAiobotocorePackage "waf" "2.12.3" "sha256-3vNi+7zjFmOsphhkiCe3sL3xGc6vJn+QxXfnJiGzeRE="; + types-aiobotocore-waf = + buildTypesAiobotocorePackage "waf" "2.12.3" + "sha256-3vNi+7zjFmOsphhkiCe3sL3xGc6vJn+QxXfnJiGzeRE="; - types-aiobotocore-waf-regional = buildTypesAiobotocorePackage "waf-regional" "2.12.3" "sha256-v/NoOoMS6KwZotYZsCIqwQ3EkUusaK5YuCnQz3eBhz8="; + types-aiobotocore-waf-regional = + buildTypesAiobotocorePackage "waf-regional" "2.12.3" + "sha256-v/NoOoMS6KwZotYZsCIqwQ3EkUusaK5YuCnQz3eBhz8="; - types-aiobotocore-wafv2 = buildTypesAiobotocorePackage "wafv2" "2.12.3" "sha256-DI5GBYssyNe5yDUD9EF4+waE1d/SD6iDyNK93Hhbl38="; + types-aiobotocore-wafv2 = + buildTypesAiobotocorePackage "wafv2" "2.12.3" + "sha256-DI5GBYssyNe5yDUD9EF4+waE1d/SD6iDyNK93Hhbl38="; - types-aiobotocore-wellarchitected = buildTypesAiobotocorePackage "wellarchitected" "2.12.3" "sha256-g+EwfgHlhvFWHlQsjZriiPHFF+VzLlMAo9LtX+AImlc="; + types-aiobotocore-wellarchitected = + buildTypesAiobotocorePackage "wellarchitected" "2.12.3" + "sha256-g+EwfgHlhvFWHlQsjZriiPHFF+VzLlMAo9LtX+AImlc="; - types-aiobotocore-wisdom = buildTypesAiobotocorePackage "wisdom" "2.12.3" "sha256-EHqZb51vIHt4ox9Zd9G/Hl6KGWd7vIipjYn+ru3zwTw="; + types-aiobotocore-wisdom = + buildTypesAiobotocorePackage "wisdom" "2.12.3" + "sha256-EHqZb51vIHt4ox9Zd9G/Hl6KGWd7vIipjYn+ru3zwTw="; - types-aiobotocore-workdocs = buildTypesAiobotocorePackage "workdocs" "2.12.3" "sha256-/lVbhKOMtyTSZEEgzKH2DySZM1+Jv3LM4TJAauTWyLc="; + types-aiobotocore-workdocs = + buildTypesAiobotocorePackage "workdocs" "2.12.3" + "sha256-/lVbhKOMtyTSZEEgzKH2DySZM1+Jv3LM4TJAauTWyLc="; - types-aiobotocore-worklink = buildTypesAiobotocorePackage "worklink" "2.12.3" "sha256-agu/CSxY1gjcVTU42I2DR9Rxrk0c9GANXJe16Nx4U1I="; + types-aiobotocore-worklink = + buildTypesAiobotocorePackage "worklink" "2.12.3" + "sha256-agu/CSxY1gjcVTU42I2DR9Rxrk0c9GANXJe16Nx4U1I="; - types-aiobotocore-workmail = buildTypesAiobotocorePackage "workmail" "2.12.3" "sha256-XYf1bnCmYZI51uvJY9IG+imcUyqNO1AUc3gWF/jMhkA="; + types-aiobotocore-workmail = + buildTypesAiobotocorePackage "workmail" "2.12.3" + "sha256-XYf1bnCmYZI51uvJY9IG+imcUyqNO1AUc3gWF/jMhkA="; - types-aiobotocore-workmailmessageflow = buildTypesAiobotocorePackage "workmailmessageflow" "2.12.3" "sha256-qMBxt5KkYqfDqWAFJVdch2edQCIl+lP5lyjAGkMriN8="; + types-aiobotocore-workmailmessageflow = + buildTypesAiobotocorePackage "workmailmessageflow" "2.12.3" + "sha256-qMBxt5KkYqfDqWAFJVdch2edQCIl+lP5lyjAGkMriN8="; - types-aiobotocore-workspaces = buildTypesAiobotocorePackage "workspaces" "2.12.3" "sha256-KLg4Q2VvinCIBhqD33CnpXqSjaex8JlN0vh1BIq1bpE="; + types-aiobotocore-workspaces = + buildTypesAiobotocorePackage "workspaces" "2.12.3" + "sha256-KLg4Q2VvinCIBhqD33CnpXqSjaex8JlN0vh1BIq1bpE="; - types-aiobotocore-workspaces-web = buildTypesAiobotocorePackage "workspaces-web" "2.12.3" "sha256-y+iQviR02Kuy0czNmKJOefkI9AVBgGGXGm8DQPxVoXM="; + types-aiobotocore-workspaces-web = + buildTypesAiobotocorePackage "workspaces-web" "2.12.3" + "sha256-y+iQviR02Kuy0czNmKJOefkI9AVBgGGXGm8DQPxVoXM="; - types-aiobotocore-xray = buildTypesAiobotocorePackage "xray" "2.12.3" "sha256-l89VAkb3pdSU559nWIaipZOYsRG1DGz1wEDKOyehe0Q="; + types-aiobotocore-xray = + buildTypesAiobotocorePackage "xray" "2.12.3" + "sha256-l89VAkb3pdSU559nWIaipZOYsRG1DGz1wEDKOyehe0Q="; } diff --git a/pkgs/development/python-modules/types-appdirs/default.nix b/pkgs/development/python-modules/types-appdirs/default.nix index ce7bb9cd53df..ec18f6cbcedb 100644 --- a/pkgs/development/python-modules/types-appdirs/default.nix +++ b/pkgs/development/python-modules/types-appdirs/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/types-click/default.nix b/pkgs/development/python-modules/types-click/default.nix index 78c99fe42808..29f2da7b2303 100644 --- a/pkgs/development/python-modules/types-click/default.nix +++ b/pkgs/development/python-modules/types-click/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: let diff --git a/pkgs/development/python-modules/types-colorama/default.nix b/pkgs/development/python-modules/types-colorama/default.nix index a3e5cfba04bd..c14b2e4ded7a 100644 --- a/pkgs/development/python-modules/types-colorama/default.nix +++ b/pkgs/development/python-modules/types-colorama/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-oo5/mNF9KxT7lWXTI4jkGfQQj1V6fZOaZjGZabK5nHo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/types-dateutil/default.nix b/pkgs/development/python-modules/types-dateutil/default.nix index c02934519ca8..46f98100ac75 100644 --- a/pkgs/development/python-modules/types-dateutil/default.nix +++ b/pkgs/development/python-modules/types-dateutil/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-XS8uJAuGkF5AlE3Xh9ttqSY/Deq+8Qdt2u15c1HsAgI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "dateutil-stubs" - ]; + pythonImportsCheck = [ "dateutil-stubs" ]; meta = with lib; { description = "Typing stubs for python-dateutil"; diff --git a/pkgs/development/python-modules/types-decorator/default.nix b/pkgs/development/python-modules/types-decorator/default.nix index 3cc020d8a9f2..88874e3be565 100644 --- a/pkgs/development/python-modules/types-decorator/default.nix +++ b/pkgs/development/python-modules/types-decorator/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-UuMWsDeDiGqKKr3CKPcHFoC6ZYlFRc0ghevjz4hoSg4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Modules doesn't have tests doCheck = false; - pythonImportsCheck = [ - "decorator-stubs" - ]; + pythonImportsCheck = [ "decorator-stubs" ]; meta = with lib; { description = "Typing stubs for decorator"; diff --git a/pkgs/development/python-modules/types-deprecated/default.nix b/pkgs/development/python-modules/types-deprecated/default.nix index 374ed108b7a2..13b371b4e3fe 100644 --- a/pkgs/development/python-modules/types-deprecated/default.nix +++ b/pkgs/development/python-modules/types-deprecated/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,16 +16,12 @@ buildPythonPackage rec { hash = "sha256-BoDomYmoFCcH3oED8V0YJEWlM8EEf9m36MVFkQHpuQo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Modules has no tests doCheck = false; - pythonImportsCheck = [ - "deprecated-stubs" - ]; + pythonImportsCheck = [ "deprecated-stubs" ]; meta = with lib; { description = "Typing stubs for Deprecated"; diff --git a/pkgs/development/python-modules/types-docopt/default.nix b/pkgs/development/python-modules/types-docopt/default.nix index 7c1128efb840..284fa0ea0fcc 100644 --- a/pkgs/development/python-modules/types-docopt/default.nix +++ b/pkgs/development/python-modules/types-docopt/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "docopt-stubs" - ]; + pythonImportsCheck = [ "docopt-stubs" ]; meta = with lib; { description = "Typing stubs for docopt"; diff --git a/pkgs/development/python-modules/types-enum34/default.nix b/pkgs/development/python-modules/types-enum34/default.nix index d82c84c5c5da..ace209f28c86 100644 --- a/pkgs/development/python-modules/types-enum34/default.nix +++ b/pkgs/development/python-modules/types-enum34/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -13,9 +14,7 @@ buildPythonPackage rec { sha256 = "0421lr89vv3fpg77kkj5nmzd7z3nmhw4vh8ibsjp6vfh86b7d73g"; }; - pythonImportsCheck = [ - "enum-python2-stubs" - ]; + pythonImportsCheck = [ "enum-python2-stubs" ]; meta = with lib; { description = "Typing stubs for enum34"; diff --git a/pkgs/development/python-modules/types-freezegun/default.nix b/pkgs/development/python-modules/types-freezegun/default.nix index ebca11ad4776..26456f53f6d7 100644 --- a/pkgs/development/python-modules/types-freezegun/default.nix +++ b/pkgs/development/python-modules/types-freezegun/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "freezegun-stubs" - ]; + pythonImportsCheck = [ "freezegun-stubs" ]; meta = with lib; { description = "Typing stubs for freezegun"; diff --git a/pkgs/development/python-modules/types-futures/default.nix b/pkgs/development/python-modules/types-futures/default.nix index 9eb4b956d3eb..7478d77dc8a7 100644 --- a/pkgs/development/python-modules/types-futures/default.nix +++ b/pkgs/development/python-modules/types-futures/default.nix @@ -1,4 +1,8 @@ -{ buildPythonPackage, fetchPypi, lib }: +{ + buildPythonPackage, + fetchPypi, + lib, +}: buildPythonPackage rec { pname = "types-futures"; diff --git a/pkgs/development/python-modules/types-html5lib/default.nix b/pkgs/development/python-modules/types-html5lib/default.nix index 996f8b4e5c3d..563227bc85b8 100644 --- a/pkgs/development/python-modules/types-html5lib/default.nix +++ b/pkgs/development/python-modules/types-html5lib/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-InNrcpnmBexLpTnUhpHpBf0MYcPqYQrMWZIiMtyEzt4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "html5lib-stubs" - ]; + pythonImportsCheck = [ "html5lib-stubs" ]; meta = with lib; { description = "Typing stubs for html5lib"; diff --git a/pkgs/development/python-modules/types-ipaddress/default.nix b/pkgs/development/python-modules/types-ipaddress/default.nix index 3bdffafb34e3..216195c6e1ce 100644 --- a/pkgs/development/python-modules/types-ipaddress/default.nix +++ b/pkgs/development/python-modules/types-ipaddress/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -13,9 +14,7 @@ buildPythonPackage rec { sha256 = "0h9q9pjvw1ap5k70ygp750d096jkzymxlhx87yh0pr9mb6zg6gd0"; }; - pythonImportsCheck = [ - "ipaddress-python2-stubs" - ]; + pythonImportsCheck = [ "ipaddress-python2-stubs" ]; meta = with lib; { description = "Typing stubs for ipaddress"; diff --git a/pkgs/development/python-modules/types-lxml/default.nix b/pkgs/development/python-modules/types-lxml/default.nix index 21a8dc882161..03a90f292ee7 100644 --- a/pkgs/development/python-modules/types-lxml/default.nix +++ b/pkgs/development/python-modules/types-lxml/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, lxml -, pyright -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm -, typeguard -, types-beautifulsoup4 -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + lxml, + pyright, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, + typeguard, + types-beautifulsoup4, + typing-extensions, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { typeguard ]; - pythonImportsCheck = [ - "lxml-stubs" - ]; + pythonImportsCheck = [ "lxml-stubs" ]; disabledTests = [ # AttributeError: 'bytes' object has no attribute 'find_class' diff --git a/pkgs/development/python-modules/types-markdown/default.nix b/pkgs/development/python-modules/types-markdown/default.nix index 3ea38cde3d83..35b93b468eae 100644 --- a/pkgs/development/python-modules/types-markdown/default.nix +++ b/pkgs/development/python-modules/types-markdown/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-3p+4SGC1W2R7FwyldolfzKYbk0puzcZcMZMsZ5W0QLg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "markdown-stubs" - ]; + pythonImportsCheck = [ "markdown-stubs" ]; meta = with lib; { description = "Typing stubs for Markdown"; diff --git a/pkgs/development/python-modules/types-mock/default.nix b/pkgs/development/python-modules/types-mock/default.nix index 11d81aa0e833..dfad6b26d0e4 100644 --- a/pkgs/development/python-modules/types-mock/default.nix +++ b/pkgs/development/python-modules/types-mock/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-UoGmRdcugn1wBD48wUT+M7HAA9sIT3idwgOqkOgSpaQ="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module has no tests doCheck = false; diff --git a/pkgs/development/python-modules/types-pillow/default.nix b/pkgs/development/python-modules/types-pillow/default.nix index db173d39e74b..c0c39acaf7ea 100644 --- a/pkgs/development/python-modules/types-pillow/default.nix +++ b/pkgs/development/python-modules/types-pillow/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { # Modules doesn't have tests doCheck = false; - pythonImportsCheck = [ - "PIL-stubs" - ]; + pythonImportsCheck = [ "PIL-stubs" ]; meta = with lib; { description = "Typing stubs for Pillow"; diff --git a/pkgs/development/python-modules/types-protobuf/default.nix b/pkgs/development/python-modules/types-protobuf/default.nix index 6482d4e30ba1..eede2efa6d56 100644 --- a/pkgs/development/python-modules/types-protobuf/default.nix +++ b/pkgs/development/python-modules/types-protobuf/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, types-futures +{ + lib, + buildPythonPackage, + fetchPypi, + types-futures, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-w07/F7mzoK22gwYi8PMCSE5MCJ9TOkbj8UdWgxNUQ1I="; }; - propagatedBuildInputs = [ - types-futures - ]; + propagatedBuildInputs = [ types-futures ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "google-stubs" - ]; + pythonImportsCheck = [ "google-stubs" ]; meta = with lib; { description = "Typing stubs for protobuf"; diff --git a/pkgs/development/python-modules/types-psutil/default.nix b/pkgs/development/python-modules/types-psutil/default.nix index dce0292b0ad9..45cef1e52775 100644 --- a/pkgs/development/python-modules/types-psutil/default.nix +++ b/pkgs/development/python-modules/types-psutil/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "psutil-stubs" - ]; + pythonImportsCheck = [ "psutil-stubs" ]; meta = with lib; { description = "Typing stubs for psutil"; diff --git a/pkgs/development/python-modules/types-psycopg2/default.nix b/pkgs/development/python-modules/types-psycopg2/default.nix index e9901ef6678d..8a3f08f8e79a 100644 --- a/pkgs/development/python-modules/types-psycopg2/default.nix +++ b/pkgs/development/python-modules/types-psycopg2/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-Bdslb0pFn7IaQmuOf8oGVsNTkQX/Agjq9r2vQGo4cIc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "psycopg2-stubs" - ]; + pythonImportsCheck = [ "psycopg2-stubs" ]; doCheck = false; diff --git a/pkgs/development/python-modules/types-pyopenssl/default.nix b/pkgs/development/python-modules/types-pyopenssl/default.nix index 586e5138aaac..60457be769c0 100644 --- a/pkgs/development/python-modules/types-pyopenssl/default.nix +++ b/pkgs/development/python-modules/types-pyopenssl/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cryptography +{ + lib, + buildPythonPackage, + fetchPypi, + cryptography, }: buildPythonPackage rec { @@ -15,16 +16,12 @@ buildPythonPackage rec { hash = "sha256-Cn6CYmwZg9yNxZKSvyBlSlHDw4gby7mzN8HabjLwIE4="; }; - propagatedBuildInputs = [ - cryptography - ]; + propagatedBuildInputs = [ cryptography ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "OpenSSL-stubs" - ]; + pythonImportsCheck = [ "OpenSSL-stubs" ]; meta = with lib; { description = "Typing stubs for pyopenssl"; diff --git a/pkgs/development/python-modules/types-python-dateutil/default.nix b/pkgs/development/python-modules/types-python-dateutil/default.nix index 0bee1e8ddca2..a84b7e22b810 100644 --- a/pkgs/development/python-modules/types-python-dateutil/default.nix +++ b/pkgs/development/python-modules/types-python-dateutil/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-XS8uJAuGkF5AlE3Xh9ttqSY/Deq+8Qdt2u15c1HsAgI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Modules doesn't have tests doCheck = false; - pythonImportsCheck = [ - "dateutil-stubs" - ]; + pythonImportsCheck = [ "dateutil-stubs" ]; meta = with lib; { description = "Typing stubs for python-dateutil"; diff --git a/pkgs/development/python-modules/types-pytz/default.nix b/pkgs/development/python-modules/types-pytz/default.nix index 8f86e7be43d8..55aefbd5fd39 100644 --- a/pkgs/development/python-modules/types-pytz/default.nix +++ b/pkgs/development/python-modules/types-pytz/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-aBDIofaPIf3w9PN0pDJIfHdkWgrAsx3kv0aQzyGtOYE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Modules doesn't have tests doCheck = false; - pythonImportsCheck = [ - "pytz-stubs" - ]; + pythonImportsCheck = [ "pytz-stubs" ]; meta = with lib; { description = "Typing stubs for pytz"; diff --git a/pkgs/development/python-modules/types-pyyaml/default.nix b/pkgs/development/python-modules/types-pyyaml/default.nix index 35f02941b6d5..99006754e304 100644 --- a/pkgs/development/python-modules/types-pyyaml/default.nix +++ b/pkgs/development/python-modules/types-pyyaml/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "yaml-stubs" - ]; + pythonImportsCheck = [ "yaml-stubs" ]; meta = with lib; { description = "Typing stubs for PyYAML"; diff --git a/pkgs/development/python-modules/types-retry/default.nix b/pkgs/development/python-modules/types-retry/default.nix index ecef01714f9d..ba1bb5b12455 100644 --- a/pkgs/development/python-modules/types-retry/default.nix +++ b/pkgs/development/python-modules/types-retry/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Modules doesn't have tests doCheck = false; - pythonImportsCheck = [ - "retry-stubs" - ]; + pythonImportsCheck = [ "retry-stubs" ]; meta = with lib; { description = "Typing stubs for retry"; diff --git a/pkgs/development/python-modules/types-s3transfer/default.nix b/pkgs/development/python-modules/types-s3transfer/default.nix index 30533010fbe0..1db9bc7323bd 100644 --- a/pkgs/development/python-modules/types-s3transfer/default.nix +++ b/pkgs/development/python-modules/types-s3transfer/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, poetry-core +{ + lib, + buildPythonPackage, + fetchPypi, + poetry-core, }: buildPythonPackage rec { @@ -15,16 +16,12 @@ buildPythonPackage rec { hash = "sha256-AhVMzkZSgoetdq0aAVOEDgSSI5oIh+iDNGbsz4S5jaA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "s3transfer-stubs" - ]; + pythonImportsCheck = [ "s3transfer-stubs" ]; meta = with lib; { description = "Type annotations and code completion for s3transfer"; diff --git a/pkgs/development/python-modules/types-setuptools/default.nix b/pkgs/development/python-modules/types-setuptools/default.nix index 557a065c68e9..35e2530eeab1 100644 --- a/pkgs/development/python-modules/types-setuptools/default.nix +++ b/pkgs/development/python-modules/types-setuptools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-6mSvCpamdPjEC6NMCcJU88cLw/IYxr/6HQkSvZFYSi8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "setuptools-stubs" - ]; + pythonImportsCheck = [ "setuptools-stubs" ]; meta = with lib; { description = "Typing stubs for setuptools"; diff --git a/pkgs/development/python-modules/types-tabulate/default.nix b/pkgs/development/python-modules/types-tabulate/default.nix index fe5787f805f2..570581e05ac0 100644 --- a/pkgs/development/python-modules/types-tabulate/default.nix +++ b/pkgs/development/python-modules/types-tabulate/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-ybbbEN1/z1W9FxLdNTf4bdznKgj9Yrsa9DOMcJbOlH4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "tabulate-stubs" - ]; + pythonImportsCheck = [ "tabulate-stubs" ]; meta = with lib; { description = "Typing stubs for tabulate"; diff --git a/pkgs/development/python-modules/types-toml/default.nix b/pkgs/development/python-modules/types-toml/default.nix index db58fbc181b5..040177b5e68f 100644 --- a/pkgs/development/python-modules/types-toml/default.nix +++ b/pkgs/development/python-modules/types-toml/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/types-tqdm/default.nix b/pkgs/development/python-modules/types-tqdm/default.nix index 339a83f7b17c..ff3f5c189a0d 100644 --- a/pkgs/development/python-modules/types-tqdm/default.nix +++ b/pkgs/development/python-modules/types-tqdm/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-Ftzp71IuqNQOT1uNhN2KEWbu/BPO7np+FYvw8aFCGjE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; # This package does not have tests. doCheck = false; diff --git a/pkgs/development/python-modules/types-typed-ast/default.nix b/pkgs/development/python-modules/types-typed-ast/default.nix index 32671d584641..13713c669519 100644 --- a/pkgs/development/python-modules/types-typed-ast/default.nix +++ b/pkgs/development/python-modules/types-typed-ast/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "typed_ast-stubs" - ]; + pythonImportsCheck = [ "typed_ast-stubs" ]; meta = with lib; { description = "Typing stubs for typed-ast"; diff --git a/pkgs/development/python-modules/types-urllib3/default.nix b/pkgs/development/python-modules/types-urllib3/default.nix index d02174d7727f..e3c91f48197f 100644 --- a/pkgs/development/python-modules/types-urllib3/default.nix +++ b/pkgs/development/python-modules/types-urllib3/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "urllib3-stubs" - ]; + pythonImportsCheck = [ "urllib3-stubs" ]; meta = with lib; { description = "Typing stubs for urllib3"; diff --git a/pkgs/development/python-modules/typesentry/default.nix b/pkgs/development/python-modules/typesentry/default.nix index f38947c04677..66c594720ff7 100644 --- a/pkgs/development/python-modules/typesentry/default.nix +++ b/pkgs/development/python-modules/typesentry/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, colorama -, pytest -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + colorama, + pytest, + pytest-cov, }: buildPythonPackage { @@ -20,7 +21,10 @@ buildPythonPackage { }; propagatedBuildInputs = [ colorama ]; - nativeCheckInputs = [ pytest pytest-cov ]; + nativeCheckInputs = [ + pytest + pytest-cov + ]; checkPhase = '' pytest ''; diff --git a/pkgs/development/python-modules/typesystem/default.nix b/pkgs/development/python-modules/typesystem/default.nix index 96f351ccaf1f..f46c81d24c1e 100644 --- a/pkgs/development/python-modules/typesystem/default.nix +++ b/pkgs/development/python-modules/typesystem/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, jinja2 -, pytestCheckHook -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + jinja2, + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -26,18 +27,14 @@ buildPythonPackage rec { pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "typesystem" - ]; + pythonImportsCheck = [ "typesystem" ]; meta = with lib; { description = "A type system library for Python"; homepage = "https://github.com/encode/typesystem"; license = licenses.bsd3; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/typing-extensions/default.nix b/pkgs/development/python-modules/typing-extensions/default.nix index b20fe1a05106..fbe96efda419 100644 --- a/pkgs/development/python-modules/typing-extensions/default.nix +++ b/pkgs/development/python-modules/typing-extensions/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit-core -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + flit-core, + pythonOlder, }: buildPythonPackage rec { @@ -18,17 +19,13 @@ buildPythonPackage rec { hash = "sha256-g/CFvVylnIApX8KoKrXaxnnL4CufM/fYOvaOJBvqUbA="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # Tests are not part of PyPI releases. GitHub source can't be used # as it ends with an infinite recursion doCheck = false; - pythonImportsCheck = [ - "typing_extensions" - ]; + pythonImportsCheck = [ "typing_extensions" ]; meta = with lib; { description = "Backported and Experimental Type Hints for Python"; diff --git a/pkgs/development/python-modules/typing-inspect/default.nix b/pkgs/development/python-modules/typing-inspect/default.nix index f88a718c736c..ce03e47d7614 100644 --- a/pkgs/development/python-modules/typing-inspect/default.nix +++ b/pkgs/development/python-modules/typing-inspect/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, typing-extensions -, mypy-extensions -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + typing-extensions, + mypy-extensions, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { mypy-extensions ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/ilevkivskyi/typing_inspect/issues/84 "test_typed_dict_typing_extension" ]; - pythonImportsCheck = [ - "typing_inspect" - ]; + pythonImportsCheck = [ "typing_inspect" ]; meta = with lib; { description = "Runtime inspection utilities for Python typing module"; diff --git a/pkgs/development/python-modules/typing-validation/default.nix b/pkgs/development/python-modules/typing-validation/default.nix index 975119b3be1b..3907fd33a81b 100644 --- a/pkgs/development/python-modules/typing-validation/default.nix +++ b/pkgs/development/python-modules/typing-validation/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, pytestCheckHook + pytestCheckHook, -, pythonOlder + pythonOlder, -, setuptools -, setuptools-scm -, wheel + setuptools, + setuptools-scm, + wheel, -, numpy + numpy, -, typing-extensions + typing-extensions, }: buildPythonPackage rec { @@ -35,18 +36,14 @@ buildPythonPackage rec { wheel ]; - dependencies = [ - typing-extensions - ]; + dependencies = [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook numpy ]; - pythonImportsCheck = [ - "typing_validation" - ]; + pythonImportsCheck = [ "typing_validation" ]; meta = with lib; { description = "A simple library for runtime type-checking"; diff --git a/pkgs/development/python-modules/typish/default.nix b/pkgs/development/python-modules/typish/default.nix index c05518c257f0..8e9677c0d3bc 100644 --- a/pkgs/development/python-modules/typish/default.nix +++ b/pkgs/development/python-modules/typish/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { "test_get_origin" ]; - pythonImportsCheck = [ - "typish" - ]; + pythonImportsCheck = [ "typish" ]; meta = with lib; { description = "Python module for checking types of objects"; diff --git a/pkgs/development/python-modules/typogrify/default.nix b/pkgs/development/python-modules/typogrify/default.nix index 81425b22f181..a2a17791eaa9 100644 --- a/pkgs/development/python-modules/typogrify/default.nix +++ b/pkgs/development/python-modules/typogrify/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, smartypants +{ + lib, + buildPythonPackage, + fetchPypi, + smartypants, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { sha256 = "8be4668cda434163ce229d87ca273a11922cb1614cb359970b7dc96eed13cb38"; }; - propagatedBuildInputs = [ - smartypants - ]; + propagatedBuildInputs = [ smartypants ]; # Wants to set up Django doCheck = false; diff --git a/pkgs/development/python-modules/tzdata/default.nix b/pkgs/development/python-modules/tzdata/default.nix index ac25b071a31b..26e01f033fd9 100644 --- a/pkgs/development/python-modules/tzdata/default.nix +++ b/pkgs/development/python-modules/tzdata/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-resources -, pytest-subtests -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-resources, + pytest-subtests, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-JnQSD42JGQl1HDirzf04asCloRJ5VPvDMq9rXOrgfv0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook pytest-subtests - ] ++ lib.optionals (pythonOlder "3.7") [ - importlib-resources - ]; + ] ++ lib.optionals (pythonOlder "3.7") [ importlib-resources ]; - pythonImportsCheck = [ - "tzdata" - ]; + pythonImportsCheck = [ "tzdata" ]; meta = with lib; { description = "Provider of IANA time zone data"; diff --git a/pkgs/development/python-modules/tzlocal/default.nix b/pkgs/development/python-modules/tzlocal/default.nix index 4f74b552b0c4..81f1ed1d2b80 100644 --- a/pkgs/development/python-modules/tzlocal/default.nix +++ b/pkgs/development/python-modules/tzlocal/default.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, pytest-mock -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + pytest-mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-jTmSBVePGpNCgWQJzB5GqT69V1XjnqLYUzS+qRG/Dm4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-mock diff --git a/pkgs/development/python-modules/u-msgpack-python/default.nix b/pkgs/development/python-modules/u-msgpack-python/default.nix index 1b79d265ff86..9c7bb56583c6 100644 --- a/pkgs/development/python-modules/u-msgpack-python/default.nix +++ b/pkgs/development/python-modules/u-msgpack-python/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, lib -, fetchPypi -, glibcLocales -, unittestCheckHook +{ + buildPythonPackage, + lib, + fetchPypi, + glibcLocales, + unittestCheckHook, }: buildPythonPackage rec { @@ -15,7 +16,7 @@ buildPythonPackage rec { hash = "sha256-uAGoPW7XXm30HkRRi08qnCIdwtpLzVOA46D+2lILxho="; }; - env.LC_ALL="en_US.UTF-8"; + env.LC_ALL = "en_US.UTF-8"; buildInputs = [ glibcLocales ]; diff --git a/pkgs/development/python-modules/ua-parser/default.nix b/pkgs/development/python-modules/ua-parser/default.nix index ba0f75ce6f35..1130e508f9ba 100644 --- a/pkgs/development/python-modules/ua-parser/default.nix +++ b/pkgs/development/python-modules/ua-parser/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyyaml -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyyaml, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,17 +20,11 @@ buildPythonPackage rec { hash = "sha256-GiuGPnyYL0HQ/J2OpDTD1/panZCuzKtD3mKW5op5lXA="; }; - patches = [ - ./dont-fetch-submodule.patch - ]; + patches = [ ./dont-fetch-submodule.patch ]; - nativeBuildInputs = [ - pyyaml - ]; + nativeBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' # import from $out diff --git a/pkgs/development/python-modules/uamqp/default.nix b/pkgs/development/python-modules/uamqp/default.nix index 2881c8ef0d6b..1e49b147a0e2 100644 --- a/pkgs/development/python-modules/uamqp/default.nix +++ b/pkgs/development/python-modules/uamqp/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, cython_0 -, certifi -, CFNetwork -, cmake -, CoreFoundation -, openssl -, Security -, pytestCheckHook -, pytest-asyncio +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + cython_0, + certifi, + CFNetwork, + cmake, + CoreFoundation, + openssl, + Security, + pytestCheckHook, + pytest-asyncio, }: buildPythonPackage rec { @@ -26,29 +27,31 @@ buildPythonPackage rec { hash = "sha256-L4E7nnsVZ/VrOM0t4KtztU9ALmtGfi1vDzUi0ogtZOc="; }; - patches = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - ./darwin-azure-c-shared-utility-corefoundation.patch - ] ++ [ - (fetchpatch { - name = "CVE-2024-25110.patch"; - url = "https://github.com/Azure/azure-uamqp-c/commit/30865c9ccedaa32ddb036e87a8ebb52c3f18f695.patch"; - stripLen = 1; - extraPrefix = "src/vendor/azure-uamqp-c/"; - hash = "sha256-igzZqTLUUyuNcpCUbYHI4RXmWxg+7EC/yyD4DBurR2M="; - }) - (fetchpatch { - name = "CVE-2024-27099.patch"; - url = "https://github.com/Azure/azure-uamqp-c/commit/2ca42b6e4e098af2d17e487814a91d05f6ae4987.patch"; - stripLen = 1; - extraPrefix = "src/vendor/azure-uamqp-c/"; - # other files are just tests which aren't run from the python - # builder anyway - includes = [ "src/vendor/azure-uamqp-c/src/link.c" ]; - hash = "sha256-EqDfG1xAz5CG8MssSSrz8Yrje5qwF8ri1Kdw+UUu5ms="; - }) - # Fix incompatible function pointer conversion error with clang 16. - ./clang-fix-incompatible-function-pointer-conversion.patch - ]; + patches = + lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ + ./darwin-azure-c-shared-utility-corefoundation.patch + ] + ++ [ + (fetchpatch { + name = "CVE-2024-25110.patch"; + url = "https://github.com/Azure/azure-uamqp-c/commit/30865c9ccedaa32ddb036e87a8ebb52c3f18f695.patch"; + stripLen = 1; + extraPrefix = "src/vendor/azure-uamqp-c/"; + hash = "sha256-igzZqTLUUyuNcpCUbYHI4RXmWxg+7EC/yyD4DBurR2M="; + }) + (fetchpatch { + name = "CVE-2024-27099.patch"; + url = "https://github.com/Azure/azure-uamqp-c/commit/2ca42b6e4e098af2d17e487814a91d05f6ae4987.patch"; + stripLen = 1; + extraPrefix = "src/vendor/azure-uamqp-c/"; + # other files are just tests which aren't run from the python + # builder anyway + includes = [ "src/vendor/azure-uamqp-c/src/link.c" ]; + hash = "sha256-EqDfG1xAz5CG8MssSSrz8Yrje5qwF8ri1Kdw+UUu5ms="; + }) + # Fix incompatible function pointer conversion error with clang 16. + ./clang-fix-incompatible-function-pointer-conversion.patch + ]; postPatch = lib.optionalString (stdenv.isDarwin && !stdenv.isx86_64) '' # force darwin aarch64 to use openssl instead of applessl, removing @@ -71,17 +74,15 @@ buildPythonPackage rec { cython_0 ]; - buildInputs = [ - openssl - ] ++ lib.optionals stdenv.isDarwin [ - CoreFoundation - CFNetwork - Security - ]; + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.isDarwin [ + CoreFoundation + CFNetwork + Security + ]; - propagatedBuildInputs = [ - certifi - ]; + propagatedBuildInputs = [ certifi ]; dontUseCmakeConfigure = true; @@ -95,9 +96,7 @@ buildPythonPackage rec { pytest-asyncio ]; - pythonImportsCheck = [ - "uamqp" - ]; + pythonImportsCheck = [ "uamqp" ]; meta = with lib; { description = "An AMQP 1.0 client library for Python"; diff --git a/pkgs/development/python-modules/uarray/default.nix b/pkgs/development/python-modules/uarray/default.nix index b6070cb8d9e1..57dbc81c632d 100644 --- a/pkgs/development/python-modules/uarray/default.nix +++ b/pkgs/development/python-modules/uarray/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, setuptools -, setuptools-scm -, matchpy -, numpy -, astunparse -, typing-extensions -, pytest7CheckHook -, pytest-cov +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + setuptools, + setuptools-scm, + matchpy, + numpy, + astunparse, + typing-extensions, + pytest7CheckHook, + pytest-cov, }: buildPythonPackage rec { @@ -24,10 +25,11 @@ buildPythonPackage rec { hash = "sha256-wTKqOw64b+/kdZpSYLwCJATOuo807BWCtVHB4pH58fY="; }; - nativeBuildInputs = [ setuptools setuptools-scm ]; - build-system = [ + nativeBuildInputs = [ setuptools + setuptools-scm ]; + build-system = [ setuptools ]; dependencies = [ astunparse diff --git a/pkgs/development/python-modules/uart-devices/default.nix b/pkgs/development/python-modules/uart-devices/default.nix index 7859d5ce32d1..790bee28b635 100644 --- a/pkgs/development/python-modules/uart-devices/default.nix +++ b/pkgs/development/python-modules/uart-devices/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-asyncio -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace-fail "-Wdefault --cov=uart_devices --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/uasiren/default.nix b/pkgs/development/python-modules/uasiren/default.nix index 25f28f3d15d3..a30bc00e8ba3 100644 --- a/pkgs/development/python-modules/uasiren/default.nix +++ b/pkgs/development/python-modules/uasiren/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build time -, setuptools-scm + # build time + setuptools-scm, -# propagates -, aiohttp + # propagates + aiohttp, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: let @@ -28,17 +29,11 @@ buildPythonPackage { hash = "sha256-NHrnG5Vhz+JZgcTJyfIgGz0Ye+3dFVv2zLCCqw2++oM="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "uasiren" @@ -53,4 +48,3 @@ buildPythonPackage { maintainers = with maintainers; [ hexa ]; }; } - diff --git a/pkgs/development/python-modules/ubelt/default.nix b/pkgs/development/python-modules/ubelt/default.nix index b964c7d4de42..93bdde63ae7e 100644 --- a/pkgs/development/python-modules/ubelt/default.nix +++ b/pkgs/development/python-modules/ubelt/default.nix @@ -1,16 +1,17 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, wheel -, numpy -, python-dateutil -, xxhash -, pytestCheckHook -, requests -, xdoctest +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + wheel, + numpy, + python-dateutil, + xxhash, + pytestCheckHook, + requests, + xdoctest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/uc-micro-py/default.nix b/pkgs/development/python-modules/uc-micro-py/default.nix index 77f7eb1625d9..fcd45808087b 100644 --- a/pkgs/development/python-modules/uc-micro-py/default.nix +++ b/pkgs/development/python-modules/uc-micro-py/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-Z7XHWeV5I/y19EKg4lzcl9pwRexWnSQ7d8CpQu5xdnI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "uc_micro" - ]; + pythonImportsCheck = [ "uc_micro" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Micro subset of unicode data files for linkify-it-py"; diff --git a/pkgs/development/python-modules/ucsmsdk/default.nix b/pkgs/development/python-modules/ucsmsdk/default.nix index f2442d2a6078..56dcad45e690 100644 --- a/pkgs/development/python-modules/ucsmsdk/default.nix +++ b/pkgs/development/python-modules/ucsmsdk/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyparsing -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyparsing, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/udatetime/default.nix b/pkgs/development/python-modules/udatetime/default.nix index 46824549ba27..41b97a811502 100644 --- a/pkgs/development/python-modules/udatetime/default.nix +++ b/pkgs/development/python-modules/udatetime/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ueagle/default.nix b/pkgs/development/python-modules/ueagle/default.nix index d54b18925e90..5edd077416ef 100644 --- a/pkgs/development/python-modules/ueagle/default.nix +++ b/pkgs/development/python-modules/ueagle/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { sha256 = "1hxwk5alalvmhc31y917dxsnbiwq1xci2krma3235581319xr3w7"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/ueberzug/default.nix b/pkgs/development/python-modules/ueberzug/default.nix index 2e16ea7f2f82..9fa1bd6716ca 100644 --- a/pkgs/development/python-modules/ueberzug/default.nix +++ b/pkgs/development/python-modules/ueberzug/default.nix @@ -1,6 +1,16 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 -, libX11, libXext -, attrs, docopt, pillow, psutil, xlib }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + libX11, + libXext, + attrs, + docopt, + pillow, + psutil, + xlib, +}: buildPythonPackage rec { pname = "ueberzug"; @@ -14,9 +24,18 @@ buildPythonPackage rec { sha256 = "7ce49f351132c7d1b0f8097f6e4c5635376151ca59318540da3e296e5b21adc3"; }; - buildInputs = [ libX11 libXext ]; + buildInputs = [ + libX11 + libXext + ]; - propagatedBuildInputs = [ attrs docopt pillow psutil xlib ]; + propagatedBuildInputs = [ + attrs + docopt + pillow + psutil + xlib + ]; doCheck = false; diff --git a/pkgs/development/python-modules/ufmt/default.nix b/pkgs/development/python-modules/ufmt/default.nix index 3d1f9033cda6..374bc5348175 100644 --- a/pkgs/development/python-modules/ufmt/default.nix +++ b/pkgs/development/python-modules/ufmt/default.nix @@ -1,17 +1,18 @@ -{ lib -, black -, buildPythonPackage -, click -, fetchFromGitHub -, flit-core -, libcst -, moreorless -, pythonOlder -, tomlkit -, trailrunner -, typing-extensions -, unittestCheckHook -, usort +{ + lib, + black, + buildPythonPackage, + click, + fetchFromGitHub, + flit-core, + libcst, + moreorless, + pythonOlder, + tomlkit, + trailrunner, + typing-extensions, + unittestCheckHook, + usort, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { hash = "sha256-eQIbSC0Oxi6JD7/3o2y9f+KhT8GIiFiYiV4A3QBoWl0="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ black @@ -43,13 +42,9 @@ buildPythonPackage rec { usort ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - pythonImportsCheck = [ - "ufmt" - ]; + pythonImportsCheck = [ "ufmt" ]; meta = with lib; { description = "Safe, atomic formatting with black and usort"; diff --git a/pkgs/development/python-modules/ufo2ft/default.nix b/pkgs/development/python-modules/ufo2ft/default.nix index d167d66b3529..8eca7124349c 100644 --- a/pkgs/development/python-modules/ufo2ft/default.nix +++ b/pkgs/development/python-modules/ufo2ft/default.nix @@ -1,19 +1,20 @@ -{ lib -, booleanoperations -, buildPythonPackage -, cffsubr -, compreffor -, cu2qu -, defcon -, fetchPypi -, fontmath -, fonttools -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools-scm -, skia-pathops -, ufolib2 +{ + lib, + booleanoperations, + buildPythonPackage, + cffsubr, + compreffor, + cu2qu, + defcon, + fetchPypi, + fontmath, + fonttools, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools-scm, + skia-pathops, + ufolib2, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "cffsubr" - ]; + pythonRelaxDeps = [ "cffsubr" ]; propagatedBuildInputs = [ cu2qu @@ -47,13 +46,9 @@ buildPythonPackage rec { cffsubr ufolib2 skia-pathops - ] - ++ fonttools.optional-dependencies.lxml - ++ fonttools.optional-dependencies.ufo; + ] ++ fonttools.optional-dependencies.lxml ++ fonttools.optional-dependencies.ufo; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Do not depend on skia. @@ -68,9 +63,7 @@ buildPythonPackage rec { "test_drop_glyph_names_variable" ]; - pythonImportsCheck = [ - "ufo2ft" - ]; + pythonImportsCheck = [ "ufo2ft" ]; meta = with lib; { description = "Bridge from UFOs to FontTools objects"; diff --git a/pkgs/development/python-modules/ufolib2/default.nix b/pkgs/development/python-modules/ufolib2/default.nix index 5712b150569e..2cc899002a79 100644 --- a/pkgs/development/python-modules/ufolib2/default.nix +++ b/pkgs/development/python-modules/ufolib2/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, attrs -, fonttools -, pytestCheckHook -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + attrs, + fonttools, + pytestCheckHook, + setuptools-scm, -# optionals -, cattrs -, lxml -, orjson -, msgpack + # optionals + cattrs, + lxml, + orjson, + msgpack, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-SfDcf3LMrP5/rv4NU9N5cdRWZNiwVj7zaVb6e/pVor0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -36,8 +35,14 @@ buildPythonPackage rec { passthru.optional-dependencies = { lxml = [ lxml ]; converters = [ cattrs ]; - json = [ cattrs orjson ]; - msgpack = [ cattrs msgpack ]; + json = [ + cattrs + orjson + ]; + msgpack = [ + cattrs + msgpack + ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/ufolint/default.nix b/pkgs/development/python-modules/ufolint/default.nix index 0b561bf6f830..95db33a7bfc1 100644 --- a/pkgs/development/python-modules/ufolint/default.nix +++ b/pkgs/development/python-modules/ufolint/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, commandlines -, fonttools -, fs -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + commandlines, + fonttools, + fs, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { ]; doCheck = true; - nativeBuildInputs = [ - pytestCheckHook - ]; + nativeBuildInputs = [ pytestCheckHook ]; meta = with lib; { description = "Linter for Unified Font Object (UFO) source code"; @@ -39,4 +38,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/ufonormalizer/default.nix b/pkgs/development/python-modules/ufonormalizer/default.nix index bfc354c116e0..920a211708b1 100644 --- a/pkgs/development/python-modules/ufonormalizer/default.nix +++ b/pkgs/development/python-modules/ufonormalizer/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools-scm }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, +}: buildPythonPackage rec { pname = "ufonormalizer"; diff --git a/pkgs/development/python-modules/ufoprocessor/default.nix b/pkgs/development/python-modules/ufoprocessor/default.nix index dda782897b8d..fb0ac0e1fd8e 100644 --- a/pkgs/development/python-modules/ufoprocessor/default.nix +++ b/pkgs/development/python-modules/ufoprocessor/default.nix @@ -1,7 +1,15 @@ -{ lib, buildPythonPackage, fetchPypi -, defcon, fonttools, lxml, fs -, mutatormath, fontmath, fontparts -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + defcon, + fonttools, + lxml, + fs, + mutatormath, + fontmath, + fontparts, + setuptools-scm, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/uharfbuzz/default.nix b/pkgs/development/python-modules/uharfbuzz/default.nix index b4ea16f1abd5..3e2cb6051792 100644 --- a/pkgs/development/python-modules/uharfbuzz/default.nix +++ b/pkgs/development/python-modules/uharfbuzz/default.nix @@ -1,13 +1,14 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, cython -, setuptools -, setuptools-scm -, pytestCheckHook -, ApplicationServices +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + cython, + setuptools, + setuptools-scm, + pytestCheckHook, + ApplicationServices, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { buildInputs = lib.optionals stdenv.isDarwin [ ApplicationServices ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "uharfbuzz" ]; diff --git a/pkgs/development/python-modules/uhi/default.nix b/pkgs/development/python-modules/uhi/default.nix index 774ff6f27312..4fab1494d88b 100644 --- a/pkgs/development/python-modules/uhi/default.nix +++ b/pkgs/development/python-modules/uhi/default.nix @@ -1,10 +1,11 @@ -{ lib -, fetchPypi -, buildPythonPackage -, hatchling -, hatch-vcs -, numpy -, pytestCheckHook +{ + lib, + fetchPypi, + buildPythonPackage, + hatchling, + hatch-vcs, + numpy, + pytestCheckHook, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hatch-vcs ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; meta = with lib; { description = "Universal Histogram Interface"; diff --git a/pkgs/development/python-modules/ujson/default.nix b/pkgs/development/python-modules/ujson/default.nix index 1dd98186e26f..9b5ae6fcb60c 100644 --- a/pkgs/development/python-modules/ujson/default.nix +++ b/pkgs/development/python-modules/ujson/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-icyS5z1VAbin9IV17rFK0nFWrQksLp/H48+UnwfnVTI="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ujson" ]; diff --git a/pkgs/development/python-modules/ukkonen/default.nix b/pkgs/development/python-modules/ukkonen/default.nix index 5ea0930d7d89..136303b02b72 100644 --- a/pkgs/development/python-modules/ukkonen/default.nix +++ b/pkgs/development/python-modules/ukkonen/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, cffi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + cffi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { sha256 = "jG6VP/P5sadrdrmneH36/ExSld9blyMAAG963QS9+p0="; }; - nativeBuildInputs = [ - cffi - ]; + nativeBuildInputs = [ cffi ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "ukkonen" - ]; + pythonImportsCheck = [ "ukkonen" ]; meta = with lib; { description = "Python implementation of bounded Levenshtein distance (Ukkonen)"; diff --git a/pkgs/development/python-modules/ukpostcodeparser/default.nix b/pkgs/development/python-modules/ukpostcodeparser/default.nix index 486cee90435a..611e21ed8ada 100644 --- a/pkgs/development/python-modules/ukpostcodeparser/default.nix +++ b/pkgs/development/python-modules/ukpostcodeparser/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "ukpostcodeparser"; @@ -14,9 +18,9 @@ buildPythonPackage rec { meta = with lib; { description = "UK Postcode parser"; - homepage = "https://github.com/hamstah/ukpostcodeparser"; - license = licenses.publicDomain; + homepage = "https://github.com/hamstah/ukpostcodeparser"; + license = licenses.publicDomain; maintainers = with maintainers; [ siddharthist ]; - platforms = platforms.unix; + platforms = platforms.unix; }; } diff --git a/pkgs/development/python-modules/ulid-transform/default.nix b/pkgs/development/python-modules/ulid-transform/default.nix index 95b765bd3e60..0f7ae6d0b42c 100644 --- a/pkgs/development/python-modules/ulid-transform/default.nix +++ b/pkgs/development/python-modules/ulid-transform/default.nix @@ -1,11 +1,12 @@ -{ lib -, cython -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + cython, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -28,18 +29,14 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=ulid_transform --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "ulid_transform" - ]; + pythonImportsCheck = [ "ulid_transform" ]; meta = with lib; { description = "Library to create and transform ULIDs"; diff --git a/pkgs/development/python-modules/ultraheat-api/default.nix b/pkgs/development/python-modules/ultraheat-api/default.nix index b478c7c6c0ab..9b345f073379 100644 --- a/pkgs/development/python-modules/ultraheat-api/default.nix +++ b/pkgs/development/python-modules/ultraheat-api/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyserial -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pyserial, + pythonOlder, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-rRQTjV9hyUawMaXBgUx/d6pQjM8ffjcFJE2x08Cf4Gw="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; # Source is not tagged, only PyPI releases doCheck = false; - pythonImportsCheck = [ - "ultraheat_api" - ]; + pythonImportsCheck = [ "ultraheat_api" ]; meta = with lib; { description = "Module for working with data from Landis+Gyr Ultraheat heat meter unit"; diff --git a/pkgs/development/python-modules/umalqurra/default.nix b/pkgs/development/python-modules/umalqurra/default.nix index f06f1d473104..407edb28ff88 100644 --- a/pkgs/development/python-modules/umalqurra/default.nix +++ b/pkgs/development/python-modules/umalqurra/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -23,5 +24,4 @@ buildPythonPackage rec { homepage = "https://github.com/tytkal/python-hijiri-ummalqura"; license = with licenses; [ publicDomain ]; }; - } diff --git a/pkgs/development/python-modules/umap-learn/default.nix b/pkgs/development/python-modules/umap-learn/default.nix index 195dde57bf2e..238cc2547a36 100644 --- a/pkgs/development/python-modules/umap-learn/default.nix +++ b/pkgs/development/python-modules/umap-learn/default.nix @@ -1,25 +1,26 @@ -{ lib -, bokeh -, buildPythonPackage -, colorcet -, datashader -, fetchFromGitHub -, holoviews -, matplotlib -, numba -, numpy -, pandas -, pynndescent -, pytestCheckHook -, pythonOlder -, scikit-image -, scikit-learn -, scipy -, seaborn -, tbb -, tensorflow -, tensorflow-probability -, tqdm +{ + lib, + bokeh, + buildPythonPackage, + colorcet, + datashader, + fetchFromGitHub, + holoviews, + matplotlib, + numba, + numpy, + pandas, + pynndescent, + pytestCheckHook, + pythonOlder, + scikit-image, + scikit-learn, + scipy, + seaborn, + tbb, + tensorflow, + tensorflow-probability, + tqdm, }: buildPythonPackage rec { @@ -62,16 +63,12 @@ buildPythonPackage rec { tensorflow-probability ]; - tbb = [ - tbb - ]; + tbb = [ tbb ]; all = plot ++ parametric_umap ++ tbb; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/umodbus/default.nix b/pkgs/development/python-modules/umodbus/default.nix index 7ce499734203..0ccefecf0d8c 100644 --- a/pkgs/development/python-modules/umodbus/default.nix +++ b/pkgs/development/python-modules/umodbus/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,19 +22,13 @@ buildPythonPackage rec { hash = "sha256-5IXadb5mjrMwr+L9S1iMN5kba5VGrzYt1p8nBvvLCh4="; }; - propagatedBuildInputs = [ - pyserial - ]; + propagatedBuildInputs = [ pyserial ]; __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "umodbus" - ]; + pythonImportsCheck = [ "umodbus" ]; meta = with lib; { description = "Implementation of the Modbus protocol"; diff --git a/pkgs/development/python-modules/unasync/default.nix b/pkgs/development/python-modules/unasync/default.nix index d6e8c99510e4..ff43f3c81669 100644 --- a/pkgs/development/python-modules/unasync/default.nix +++ b/pkgs/development/python-modules/unasync/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { sha256 = "0h86i09v4909a8nk5lp36jlwz6rsln6vyg3d0i13ykxa6lrx1c2l"; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # mess with $PYTHONPATH @@ -39,7 +36,10 @@ buildPythonPackage rec { meta = with lib; { description = "Project that can transform your asynchronous code into synchronous code"; homepage = "https://github.com/python-trio/unasync"; - license = with licenses; [ mit /* or */ asl20 ]; + license = with licenses; [ + mit # or + asl20 + ]; maintainers = with maintainers; [ dotlambda ]; }; } diff --git a/pkgs/development/python-modules/uncertainties/default.nix b/pkgs/development/python-modules/uncertainties/default.nix index 827a21c811b7..a098bb8c4534 100644 --- a/pkgs/development/python-modules/uncertainties/default.nix +++ b/pkgs/development/python-modules/uncertainties/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future -, numpy -, pynose +{ + lib, + buildPythonPackage, + fetchPypi, + future, + numpy, + pynose, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ future ]; - nativeCheckInputs = [ pynose numpy ]; + nativeCheckInputs = [ + pynose + numpy + ]; checkPhase = '' nosetests -sve test_1to2 diff --git a/pkgs/development/python-modules/uncompyle6/default.nix b/pkgs/development/python-modules/uncompyle6/default.nix index fa48931594c9..abf225feb5ee 100644 --- a/pkgs/development/python-modules/uncompyle6/default.nix +++ b/pkgs/development/python-modules/uncompyle6/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, spark-parser -, xdis -, nose -, pytest -, hypothesis -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + spark-parser, + xdis, + nose, + pytest, + hypothesis, + six, }: buildPythonPackage rec { @@ -20,9 +21,17 @@ buildPythonPackage rec { hash = "sha256-xFHDjrPFzINOuLip5uCwzzIm5NlNCP0nbdA/6RWO2yc="; }; - propagatedBuildInputs = [ spark-parser xdis ]; + propagatedBuildInputs = [ + spark-parser + xdis + ]; - nativeCheckInputs = [ nose pytest hypothesis six ]; + nativeCheckInputs = [ + nose + pytest + hypothesis + six + ]; # Tests attempt to decompile bytecode of the python version # that is running the tests - this does not work for versions @@ -40,5 +49,4 @@ buildPythonPackage rec { homepage = "https://github.com/rocky/python-uncompyle6/"; license = licenses.gpl3; }; - } diff --git a/pkgs/development/python-modules/undefined/default.nix b/pkgs/development/python-modules/undefined/default.nix index 5348688680e1..ccd803bc0802 100644 --- a/pkgs/development/python-modules/undefined/default.nix +++ b/pkgs/development/python-modules/undefined/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit +{ + lib, + buildPythonPackage, + fetchPypi, + flit, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-xvI3wOPX51GWlLIb1HHcJe48M3nZwjt06/Aqo0nFz/c="; }; - nativeBuildInputs = [ - flit - ]; + nativeBuildInputs = [ flit ]; - pythonImportsCheck = [ - "undefined" - ]; + pythonImportsCheck = [ "undefined" ]; meta = with lib; { description = "Ever needed a global object that act as None but not quite?"; diff --git a/pkgs/development/python-modules/unearth/default.nix b/pkgs/development/python-modules/unearth/default.nix index 25be1098eb9d..085c5baf6ed0 100644 --- a/pkgs/development/python-modules/unearth/default.nix +++ b/pkgs/development/python-modules/unearth/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, packaging -, pdm-backend -, httpx -, flask -, pytest-httpserver -, pytest-mock -, pytestCheckHook -, requests-wsgi-adapter -, trustme +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + packaging, + pdm-backend, + httpx, + flask, + pytest-httpserver, + pytest-mock, + pytestCheckHook, + requests-wsgi-adapter, + trustme, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-OB8+aWnbCyjZ/C+/shaGBXm/NBvWlUcvLGLivM6ebT0="; }; - build-system = [ - pdm-backend - ]; + build-system = [ pdm-backend ]; dependencies = [ packaging @@ -45,9 +44,7 @@ buildPythonPackage rec { trustme ]; - pythonImportsCheck = [ - "unearth" - ]; + pythonImportsCheck = [ "unearth" ]; meta = with lib; { description = "A utility to fetch and download Python packages"; diff --git a/pkgs/development/python-modules/unicode-rbnf/default.nix b/pkgs/development/python-modules/unicode-rbnf/default.nix index 6dd4e813312e..42f37883c9be 100644 --- a/pkgs/development/python-modules/unicode-rbnf/default.nix +++ b/pkgs/development/python-modules/unicode-rbnf/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -21,17 +22,11 @@ buildPythonPackage rec { hash = "sha256-PquPoiaO1rEDMz7jaN9MUB0UQGH07M0O9mlrUCsfhm4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "unicode_rbnf" - ]; + pythonImportsCheck = [ "unicode_rbnf" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { changelog = "https://github.com/rhasspy/unicode-rbnf/blob/v${version}/CHANGELOG.md"; diff --git a/pkgs/development/python-modules/unicode-slugify/default.nix b/pkgs/development/python-modules/unicode-slugify/default.nix index e967e187d9f1..47a91979bf43 100644 --- a/pkgs/development/python-modules/unicode-slugify/default.nix +++ b/pkgs/development/python-modules/unicode-slugify/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nose -, six -, unidecode -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + nose, + six, + unidecode, + unittestCheckHook, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { sha256 = "25f424258317e4cb41093e2953374b3af1f23097297664731cdb3ae46f6bd6c3"; }; - propagatedBuildInputs = [ six unidecode ]; + propagatedBuildInputs = [ + six + unidecode + ]; nativeCheckInputs = [ nose diff --git a/pkgs/development/python-modules/unicodecsv/default.nix b/pkgs/development/python-modules/unicodecsv/default.nix index 4690590c03fa..1355a7bab4c7 100644 --- a/pkgs/development/python-modules/unicodecsv/default.nix +++ b/pkgs/development/python-modules/unicodecsv/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { homepage = "https://github.com/jdunck/python-unicodecsv"; maintainers = with maintainers; [ koral ]; }; - } diff --git a/pkgs/development/python-modules/unicodedata2/default.nix b/pkgs/development/python-modules/unicodedata2/default.nix index 972aa3093a8c..4857edc8d73e 100644 --- a/pkgs/development/python-modules/unicodedata2/default.nix +++ b/pkgs/development/python-modules/unicodedata2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-yzDxia1mSC+FKaRdpxsqiEHpvSuzdswpMwA6SlWgdkg="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "unicodedata2" - ]; + pythonImportsCheck = [ "unicodedata2" ]; meta = with lib; { description = "Backport and updates for the unicodedata module"; diff --git a/pkgs/development/python-modules/unicorn/default.nix b/pkgs/development/python-modules/unicorn/default.nix index c1f17ce880a6..a684d0fda817 100644 --- a/pkgs/development/python-modules/unicorn/default.nix +++ b/pkgs/development/python-modules/unicorn/default.nix @@ -1,8 +1,9 @@ -{ lib -, stdenv -, buildPythonPackage -, setuptools -, unicorn-emu +{ + lib, + stdenv, + buildPythonPackage, + setuptools, + unicorn-emu, }: buildPythonPackage rec { @@ -19,14 +20,19 @@ buildPythonPackage rec { ''; # needed on non-x86 linux - setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ] - # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. - # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. - ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "--plat-name" "macosx_11_0" ]; + setupPyBuildFlags = + lib.optionals stdenv.isLinux [ + "--plat-name" + "linux" + ] + # aarch64 only available from MacOS SDK 11 onwards, so fix the version tag. + # otherwise, bdist_wheel may detect "macosx_10_6_arm64" which doesn't make sense. + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + "--plat-name" + "macosx_11_0" + ]; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; checkPhase = '' runHook preCheck @@ -38,14 +44,15 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "unicorn" - ]; + pythonImportsCheck = [ "unicorn" ]; meta = with lib; { description = "Python bindings for Unicorn CPU emulator engine"; homepage = "https://www.unicorn-engine.org/"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ bennofs ris ]; + maintainers = with maintainers; [ + bennofs + ris + ]; }; } diff --git a/pkgs/development/python-modules/unicrypto/default.nix b/pkgs/development/python-modules/unicrypto/default.nix index 5167bc849469..9c992870f669 100644 --- a/pkgs/development/python-modules/unicrypto/default.nix +++ b/pkgs/development/python-modules/unicrypto/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pycryptodome -, pycryptodomex -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pycryptodome, + pycryptodomex, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "unicrypto" - ]; + pythonImportsCheck = [ "unicrypto" ]; meta = with lib; { description = "Unified interface for cryptographic libraries"; diff --git a/pkgs/development/python-modules/unicurses/default.nix b/pkgs/development/python-modules/unicurses/default.nix index 4eae54692b54..273fc56d4b81 100644 --- a/pkgs/development/python-modules/unicurses/default.nix +++ b/pkgs/development/python-modules/unicurses/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, ncurses, x256 }: +{ + lib, + buildPythonPackage, + fetchPypi, + ncurses, + x256, +}: buildPythonPackage rec { pname = "unicurses"; diff --git a/pkgs/development/python-modules/unidata-blocks/default.nix b/pkgs/development/python-modules/unidata-blocks/default.nix index 93857756bb65..87e04c807a86 100644 --- a/pkgs/development/python-modules/unidata-blocks/default.nix +++ b/pkgs/development/python-modules/unidata-blocks/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, nix-update-script -, hatch-vcs -, hatchling -, langcodes +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + nix-update-script, + hatch-vcs, + hatchling, + langcodes, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/unidecode/default.nix b/pkgs/development/python-modules/unidecode/default.nix index 23263403fbd2..aa19b4478861 100644 --- a/pkgs/development/python-modules/unidecode/default.nix +++ b/pkgs/development/python-modules/unidecode/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-OoJSY+dNNISyVwKuRboMH7Je8nYFKxus2c4v3VsmyRE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "unidecode" - ]; + pythonImportsCheck = [ "unidecode" ]; meta = with lib; { description = "ASCII transliterations of Unicode text"; diff --git a/pkgs/development/python-modules/unidic-lite/default.nix b/pkgs/development/python-modules/unidic-lite/default.nix index eec9c7022a0d..5551951aa0a1 100644 --- a/pkgs/development/python-modules/unidic-lite/default.nix +++ b/pkgs/development/python-modules/unidic-lite/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "unidic_lite" - ]; + pythonImportsCheck = [ "unidic_lite" ]; meta = with lib; { description = "A small version of UniDic"; diff --git a/pkgs/development/python-modules/unidic/default.nix b/pkgs/development/python-modules/unidic/default.nix index cd8363d6fc97..69e38dafef06 100644 --- a/pkgs/development/python-modules/unidic/default.nix +++ b/pkgs/development/python-modules/unidic/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, mecab -, setuptools-scm -, requests -, tqdm -, wasabi -, plac -, cython -, platformdirs +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + mecab, + setuptools-scm, + requests, + tqdm, + wasabi, + plac, + cython, + platformdirs, }: buildPythonPackage rec { @@ -35,9 +36,19 @@ buildPythonPackage rec { # no tests doCheck = false; - propagatedBuildInputs = [ requests tqdm wasabi plac platformdirs ]; + propagatedBuildInputs = [ + requests + tqdm + wasabi + plac + platformdirs + ]; - nativeBuildInputs = [ cython mecab setuptools-scm ]; + nativeBuildInputs = [ + cython + mecab + setuptools-scm + ]; pythonImportsCheck = [ "unidic" ]; diff --git a/pkgs/development/python-modules/unidiff/default.nix b/pkgs/development/python-modules/unidiff/default.nix index 3519d35c209f..3f2034098dc0 100644 --- a/pkgs/development/python-modules/unidiff/default.nix +++ b/pkgs/development/python-modules/unidiff/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, unittestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + unittestCheckHook, +}: buildPythonPackage rec { pname = "unidiff"; @@ -12,7 +17,10 @@ buildPythonPackage rec { nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; pythonImportsCheck = [ "unidiff" ]; diff --git a/pkgs/development/python-modules/unifi/default.nix b/pkgs/development/python-modules/unifi/default.nix index bc868f0ed4f4..08075f3f601b 100644 --- a/pkgs/development/python-modules/unifi/default.nix +++ b/pkgs/development/python-modules/unifi/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage -, fetchPypi, urllib3 }: +{ + lib, + buildPythonPackage, + fetchPypi, + urllib3, +}: buildPythonPackage rec { pname = "unifi"; @@ -18,8 +22,8 @@ buildPythonPackage rec { meta = with lib; { description = "An API towards the Ubiquity Networks UniFi controller"; - homepage = "https://pypi.python.org/pypi/unifi/"; - license = licenses.mit; + homepage = "https://pypi.python.org/pypi/unifi/"; + license = licenses.mit; maintainers = with maintainers; [ peterhoeg ]; }; } diff --git a/pkgs/development/python-modules/unifiled/default.nix b/pkgs/development/python-modules/unifiled/default.nix index 9b3b7274a495..0c2ec7dd9645 100644 --- a/pkgs/development/python-modules/unifiled/default.nix +++ b/pkgs/development/python-modules/unifiled/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, urllib3 +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + urllib3, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/unify/default.nix b/pkgs/development/python-modules/unify/default.nix index 52c6ba64e59f..9f6f7d929c6e 100644 --- a/pkgs/development/python-modules/unify/default.nix +++ b/pkgs/development/python-modules/unify/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, pytestCheckHook -, untokenize +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + pytestCheckHook, + untokenize, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-cWV/Q+LbeIxnQNqyatRWQUF8X+HHlQdc10y9qJ7v3dA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - untokenize - ]; + propagatedBuildInputs = [ untokenize ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "unify" - ]; + pythonImportsCheck = [ "unify" ]; disabledTests = [ # https://github.com/myint/unify/issues/21 diff --git a/pkgs/development/python-modules/unique-log-filter/default.nix b/pkgs/development/python-modules/unique-log-filter/default.nix index 2b91ab437adf..9b4c7502cfb9 100644 --- a/pkgs/development/python-modules/unique-log-filter/default.nix +++ b/pkgs/development/python-modules/unique-log-filter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-av1pVPDsO2dto5fhBK74jKfVsVY2ChyUE5NNja2B1Qw="; }; - build-system = [ - flit-core - ]; + build-system = [ flit-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "unique_log_filter" - ]; + pythonImportsCheck = [ "unique_log_filter" ]; meta = with lib; { description = "A log filter that removes duplicate log messages"; diff --git a/pkgs/development/python-modules/unittest-data-provider/default.nix b/pkgs/development/python-modules/unittest-data-provider/default.nix index 9d60e7ccaeb6..d6f3389540de 100644 --- a/pkgs/development/python-modules/unittest-data-provider/default.nix +++ b/pkgs/development/python-modules/unittest-data-provider/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/univers/default.nix b/pkgs/development/python-modules/univers/default.nix index 3308be6a9b29..081641c6cb65 100644 --- a/pkgs/development/python-modules/univers/default.nix +++ b/pkgs/development/python-modules/univers/default.nix @@ -1,16 +1,17 @@ -{ lib -, attrs -, buildPythonPackage -, commoncode -, fetchPypi -, packaging -, pyparsing -, pytestCheckHook -, pythonOlder -, saneyaml -, semantic-version -, semver -, setuptools-scm +{ + lib, + attrs, + buildPythonPackage, + commoncode, + fetchPypi, + packaging, + pyparsing, + pytestCheckHook, + pythonOlder, + saneyaml, + semantic-version, + semver, + setuptools-scm, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-xyrg8B+C5xUN8zHLrMbAe/MWjZb8fCL0MIAz2w4B7/U="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrs @@ -45,9 +44,7 @@ buildPythonPackage rec { dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies - pythonImportsCheck = [ - "univers" - ]; + pythonImportsCheck = [ "univers" ]; disabledTests = [ # No value for us @@ -61,7 +58,14 @@ buildPythonPackage rec { description = "Library for parsing version ranges and expressions"; homepage = "https://github.com/nexB/univers"; changelog = "https://github.com/nexB/univers/blob/v${version}/CHANGELOG.rst"; - license = with licenses; [ asl20 bsd3 mit ]; - maintainers = with maintainers; [ armijnhemel sbruder ]; + license = with licenses; [ + asl20 + bsd3 + mit + ]; + maintainers = with maintainers; [ + armijnhemel + sbruder + ]; }; } diff --git a/pkgs/development/python-modules/universal-pathlib/default.nix b/pkgs/development/python-modules/universal-pathlib/default.nix index 195d6cbfe2a8..e44fed7b9752 100644 --- a/pkgs/development/python-modules/universal-pathlib/default.nix +++ b/pkgs/development/python-modules/universal-pathlib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools -, setuptools-scm -, fsspec +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, + setuptools-scm, + fsspec, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { setuptools-scm ]; - propagatedBuildInputs = [ - fsspec - ]; + propagatedBuildInputs = [ fsspec ]; pythonImportsCheck = [ "upath" ]; diff --git a/pkgs/development/python-modules/universal-silabs-flasher/default.nix b/pkgs/development/python-modules/universal-silabs-flasher/default.nix index bfc6bb97aab4..56b6f22685ce 100644 --- a/pkgs/development/python-modules/universal-silabs-flasher/default.nix +++ b/pkgs/development/python-modules/universal-silabs-flasher/default.nix @@ -1,27 +1,28 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, async-timeout -, bellows -, click -, coloredlogs -, crc -, libgpiod -, typing-extensions -, zigpy + # dependencies + async-timeout, + bellows, + click, + coloredlogs, + crc, + libgpiod, + typing-extensions, + zigpy, -# tests -, pytestCheckHook -, pytest-asyncio -, pytest-mock -, pytest-timeout + # tests + pytestCheckHook, + pytest-asyncio, + pytest-mock, + pytest-timeout, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { --replace-fail 'dynamic = ["version"]' 'version = "${version}"' ''; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; pythonRelaxDeps = [ # https://github.com/NabuCasa/universal-silabs-flasher/pull/50 @@ -63,9 +60,7 @@ buildPythonPackage rec { crc typing-extensions zigpy - ] ++ lib.optionals (stdenv.hostPlatform.isLinux) [ - libgpiod - ]; + ] ++ lib.optionals (stdenv.hostPlatform.isLinux) [ libgpiod ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/unix-ar/default.nix b/pkgs/development/python-modules/unix-ar/default.nix index d77c542b3a9e..04155e74221e 100644 --- a/pkgs/development/python-modules/unix-ar/default.nix +++ b/pkgs/development/python-modules/unix-ar/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/unpaddedbase64/default.nix b/pkgs/development/python-modules/unpaddedbase64/default.nix index b5ff5be20616..f21eff8ec6f9 100644 --- a/pkgs/development/python-modules/unpaddedbase64/default.nix +++ b/pkgs/development/python-modules/unpaddedbase64/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, }: buildPythonPackage rec { @@ -16,14 +17,11 @@ buildPythonPackage rec { sha256 = "1n6har8pxv0mqb96lanzihp1xf76aa17jw3977drb1fgz947pnmz"; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; meta = with lib; { homepage = "https://github.com/matrix-org/python-unpaddedbase64"; description = "Unpadded Base64"; license = licenses.asl20; }; - } diff --git a/pkgs/development/python-modules/unrardll/default.nix b/pkgs/development/python-modules/unrardll/default.nix index c11cf39546ce..ef69a9bbe94e 100644 --- a/pkgs/development/python-modules/unrardll/default.nix +++ b/pkgs/development/python-modules/unrardll/default.nix @@ -1,4 +1,10 @@ -{ lib, stdenv, buildPythonPackage, fetchPypi, unrar }: +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + unrar, +}: buildPythonPackage rec { pname = "unrardll"; diff --git a/pkgs/development/python-modules/unrpa/default.nix b/pkgs/development/python-modules/unrpa/default.nix index f02056506b11..a7c959b2250c 100644 --- a/pkgs/development/python-modules/unrpa/default.nix +++ b/pkgs/development/python-modules/unrpa/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, uncompyle6 -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + uncompyle6, + pythonOlder, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/unstructured-api-tools/default.nix b/pkgs/development/python-modules/unstructured-api-tools/default.nix index 6909d95eb26b..0eae368c30c3 100644 --- a/pkgs/development/python-modules/unstructured-api-tools/default.nix +++ b/pkgs/development/python-modules/unstructured-api-tools/default.nix @@ -1,31 +1,32 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# propagated build inputs -, click -, fastapi -, jinja2 -, mypy -, nbconvert -, python-multipart -, pandas -, types-requests -, types-ujson -, uvicorn -, autoflake -# native check inputs -, pytestCheckHook -, black -, coverage -, flake8 -, httpx -, ipython -, pytest-cov -, requests -, requests-toolbelt -, nbdev -, pytest-mock +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # propagated build inputs + click, + fastapi, + jinja2, + mypy, + nbconvert, + python-multipart, + pandas, + types-requests, + types-ujson, + uvicorn, + autoflake, + # native check inputs + pytestCheckHook, + black, + coverage, + flake8, + httpx, + ipython, + pytest-cov, + requests, + requests-toolbelt, + nbdev, + pytest-mock, }: let version = "0.10.11"; diff --git a/pkgs/development/python-modules/unstructured-inference/default.nix b/pkgs/development/python-modules/unstructured-inference/default.nix index 82cda0652a51..b619b5b70e45 100644 --- a/pkgs/development/python-modules/unstructured-inference/default.nix +++ b/pkgs/development/python-modules/unstructured-inference/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# runtime dependencies -, layoutparser -, python-multipart -, huggingface-hub -, opencv -, onnxruntime -, transformers -, detectron2 -, paddleocr -# check inputs -, pytestCheckHook -, coverage -, click -, httpx -, mypy -, pytest-cov -, pdf2image +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # runtime dependencies + layoutparser, + python-multipart, + huggingface-hub, + opencv, + onnxruntime, + transformers, + detectron2, + paddleocr, + # check inputs + pytestCheckHook, + coverage, + click, + httpx, + mypy, + pytest-cov, + pdf2image, }: buildPythonPackage rec { @@ -37,19 +38,19 @@ buildPythonPackage rec { --replace "opencv-python" "opencv" ''; - propagatedBuildInputs = [ - layoutparser - python-multipart - huggingface-hub - opencv - onnxruntime - transformers - detectron2 - paddleocr - # yolox - ] - ++ layoutparser.optional-dependencies.layoutmodels - ++ layoutparser.optional-dependencies.tesseract; + propagatedBuildInputs = + [ + layoutparser + python-multipart + huggingface-hub + opencv + onnxruntime + transformers + detectron2 + paddleocr + # yolox + ] + ++ layoutparser.optional-dependencies.layoutmodels ++ layoutparser.optional-dependencies.tesseract; nativeCheckInputs = [ pytestCheckHook @@ -94,6 +95,10 @@ buildPythonPackage rec { changelog = "https://github.com/Unstructured-IO/unstructured-inference/blob/${src.rev}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ happysalada ]; - platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ]; + platforms = [ + "x86_64-linux" + "x86_64-darwin" + "aarch64-darwin" + ]; }; } diff --git a/pkgs/development/python-modules/unstructured/default.nix b/pkgs/development/python-modules/unstructured/default.nix index 1340b1c79c7e..8bd41b73b907 100644 --- a/pkgs/development/python-modules/unstructured/default.nix +++ b/pkgs/development/python-modules/unstructured/default.nix @@ -1,59 +1,60 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -# propagated build inputs -, chardet -, filetype -, lxml -, msg-parser -, nltk -, openpyxl -, pandas -, pdf2image -, pdfminer-six -, pillow -, pypandoc -, python-docx -, python-pptx -, python-magic -, markdown -, requests -, tabulate -, xlrd -# optional-dependencies -, langdetect -, sacremoses -, sentencepiece -, torch -, transformers -, unstructured-inference -, s3fs -, fsspec -, adlfs -# , discord-py -, pygithub -, python-gitlab -, praw -, slack-sdk -, wikipedia -, google-api-python-client -# , gcsfs -, elasticsearch8 -, jq -# , dropboxdrivefs -, atlassian-python-api -# test dependencies -, pytestCheckHook -, black -, coverage -, click -, freezegun -# , label-studio-sdk -, mypy -, pytest-cov -, pytest-mock -, vcrpy -, grpcio +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # propagated build inputs + chardet, + filetype, + lxml, + msg-parser, + nltk, + openpyxl, + pandas, + pdf2image, + pdfminer-six, + pillow, + pypandoc, + python-docx, + python-pptx, + python-magic, + markdown, + requests, + tabulate, + xlrd, + # optional-dependencies + langdetect, + sacremoses, + sentencepiece, + torch, + transformers, + unstructured-inference, + s3fs, + fsspec, + adlfs, + # , discord-py + pygithub, + python-gitlab, + praw, + slack-sdk, + wikipedia, + google-api-python-client, + # , gcsfs + elasticsearch8, + jq, + # , dropboxdrivefs + atlassian-python-api, + # test dependencies + pytestCheckHook, + black, + coverage, + click, + freezegun, + # , label-studio-sdk + mypy, + pytest-cov, + pytest-mock, + vcrpy, + grpcio, }: let version = "0.13.7"; @@ -66,8 +67,14 @@ let transformers ]; local-inference = [ unstructured-inference ]; - s3 = [ s3fs fsspec ]; - azure = [ adlfs fsspec ]; + s3 = [ + s3fs + fsspec + ]; + azure = [ + adlfs + fsspec + ]; discord = [ ]; # discord-py github = [ pygithub ]; gitlab = [ python-gitlab ]; @@ -75,9 +82,12 @@ let slack = [ slack-sdk ]; wikipedia = [ wikipedia ]; google-drive = [ google-api-python-client ]; - gcs = []; # gcsfs fsspec - elasticsearch = [ elasticsearch8 jq ]; - dropbox = []; # dropboxdrivefs fsspec + gcs = [ ]; # gcsfs fsspec + elasticsearch = [ + elasticsearch8 + jq + ]; + dropbox = [ ]; # dropboxdrivefs fsspec confluence = [ atlassian-python-api ]; }; in diff --git a/pkgs/development/python-modules/untangle/default.nix b/pkgs/development/python-modules/untangle/default.nix index 253fd6bf9f9a..097ad96a7c91 100644 --- a/pkgs/development/python-modules/untangle/default.nix +++ b/pkgs/development/python-modules/untangle/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, unittestCheckHook, defusedxml }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, + defusedxml, +}: buildPythonPackage rec { pname = "untangle"; @@ -13,13 +19,14 @@ buildPythonPackage rec { hash = "sha256-cJkN8vT5hW5hRuLxr/6udwMO4GVH1pJhAc6qmPO2EEI="; }; - propagatedBuildInputs = [ - defusedxml - ]; + propagatedBuildInputs = [ defusedxml ]; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; meta = with lib; { description = "Convert XML documents into Python objects"; diff --git a/pkgs/development/python-modules/untokenize/default.nix b/pkgs/development/python-modules/untokenize/default.nix index 079a915cee19..e4f6eea843e1 100644 --- a/pkgs/development/python-modules/untokenize/default.nix +++ b/pkgs/development/python-modules/untokenize/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + unittestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/uonet-request-signer-hebe/default.nix b/pkgs/development/python-modules/uonet-request-signer-hebe/default.nix index 19d4bba0b974..3e8fc7fc5f2f 100644 --- a/pkgs/development/python-modules/uonet-request-signer-hebe/default.nix +++ b/pkgs/development/python-modules/uonet-request-signer-hebe/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pyopenssl +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pyopenssl, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { sha256 = "fidopnpAt5CXPsLbx+V8wrJCQQ/WIO6AqxpsYLDv8qM="; }; - propagatedBuildInputs = [ - pyopenssl - ]; + propagatedBuildInputs = [ pyopenssl ]; # Source is not tagged doCheck = false; - pythonImportsCheck = [ - "uonet_request_signer_hebe" - ]; + pythonImportsCheck = [ "uonet_request_signer_hebe" ]; meta = with lib; { description = "UONET+ (hebe) request signer for Python"; diff --git a/pkgs/development/python-modules/upass/default.nix b/pkgs/development/python-modules/upass/default.nix index d8473bd51851..79d2e4389ac6 100644 --- a/pkgs/development/python-modules/upass/default.nix +++ b/pkgs/development/python-modules/upass/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyperclip -, urwid +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyperclip, + urwid, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { mkdir $HOME/.config ''; - pythonImportsCheck = [ - "upass" - ]; + pythonImportsCheck = [ "upass" ]; meta = with lib; { description = "Console UI for pass"; diff --git a/pkgs/development/python-modules/upb-lib/default.nix b/pkgs/development/python-modules/upb-lib/default.nix index da85053a7d18..a1170ed32ff3 100644 --- a/pkgs/development/python-modules/upb-lib/default.nix +++ b/pkgs/development/python-modules/upb-lib/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial-asyncio-fast -, pytestCheckHook -, pythonOlder -, pytz -, poetry-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial-asyncio-fast, + pytestCheckHook, + pythonOlder, + pytz, + poetry-core, }: buildPythonPackage rec { @@ -22,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-e8LYywKA5lNZ4UYFZTwcfePDWB4cTNz38Tiy4xzOxOs="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ pyserial-asyncio-fast pytz ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "upb_lib" ]; diff --git a/pkgs/development/python-modules/upcloud-api/default.nix b/pkgs/development/python-modules/upcloud-api/default.nix index 304feaf069ff..350d52e9d181 100644 --- a/pkgs/development/python-modules/upcloud-api/default.nix +++ b/pkgs/development/python-modules/upcloud-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-fMsI0aZ8jA08rrNPm8HmfYz/a3HLUExvvXIeDGPh2e8="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/update-checker/default.nix b/pkgs/development/python-modules/update-checker/default.nix index 4a6056a99f7b..2ab3be49010f 100644 --- a/pkgs/development/python-modules/update-checker/default.nix +++ b/pkgs/development/python-modules/update-checker/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, requests, isPy27 +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + isPy27, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/update-copyright/default.nix b/pkgs/development/python-modules/update-copyright/default.nix index 2abb9945ece2..5f33f95d086b 100644 --- a/pkgs/development/python-modules/update-copyright/default.nix +++ b/pkgs/development/python-modules/update-copyright/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, +}: buildPythonPackage rec { pname = "update-copyright"; diff --git a/pkgs/development/python-modules/update-dotdee/default.nix b/pkgs/development/python-modules/update-dotdee/default.nix index 7b9f4e3ccc9e..d6f92a0e4061 100644 --- a/pkgs/development/python-modules/update-dotdee/default.nix +++ b/pkgs/development/python-modules/update-dotdee/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, coloredlogs -, executor -, fetchFromGitHub -, humanfriendly -, naturalsort -, property-manager -, pytestCheckHook -, pythonOlder -, six +{ + lib, + buildPythonPackage, + coloredlogs, + executor, + fetchFromGitHub, + humanfriendly, + naturalsort, + property-manager, + pytestCheckHook, + pythonOlder, + six, }: buildPythonPackage rec { @@ -34,18 +35,14 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace tox.ini \ --replace " --cov --showlocals --verbose" "" ''; - pythonImportsCheck = [ - "update_dotdee" - ]; + pythonImportsCheck = [ "update_dotdee" ]; disabledTests = [ # TypeError: %o format: an integer is required, not str diff --git a/pkgs/development/python-modules/uplc/default.nix b/pkgs/development/python-modules/uplc/default.nix index a3aa8d10e7ad..993706665e08 100644 --- a/pkgs/development/python-modules/uplc/default.nix +++ b/pkgs/development/python-modules/uplc/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, pythonRelaxDepsHook -# Python deps -, frozenlist2 -, python-secp256k1-cardano -, setuptools -, poetry-core -, frozendict -, cbor2 -, rply -, pycardano +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pythonRelaxDepsHook, + # Python deps + frozenlist2, + python-secp256k1-cardano, + setuptools, + poetry-core, + frozendict, + cbor2, + rply, + pycardano, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-djJMNXijMVzMVzw8NZSe3YFRGyAPqdvr0P374Za5XkU="; }; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ setuptools @@ -41,7 +40,10 @@ buildPythonPackage rec { python-secp256k1-cardano ]; - pythonRelaxDeps = [ "pycardano" "rply" ]; + pythonRelaxDeps = [ + "pycardano" + "rply" + ]; pythonImportsCheck = [ "uplc" ]; diff --git a/pkgs/development/python-modules/upnpy/default.nix b/pkgs/development/python-modules/upnpy/default.nix index 62cc708f5cc2..b6677afbd2b2 100644 --- a/pkgs/development/python-modules/upnpy/default.nix +++ b/pkgs/development/python-modules/upnpy/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/uproot/default.nix b/pkgs/development/python-modules/uproot/default.nix index 094e118340ff..efcb91c202e5 100644 --- a/pkgs/development/python-modules/uproot/default.nix +++ b/pkgs/development/python-modules/uproot/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, awkward -, cramjam -, hatch-vcs -, hatchling -, numpy -, fsspec -, packaging -, pandas -, pytestCheckHook -, pytest-timeout -, rangehttpserver -, scikit-hep-testdata -, xxhash +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + awkward, + cramjam, + hatch-vcs, + hatchling, + numpy, + fsspec, + packaging, + pandas, + pytestCheckHook, + pytest-timeout, + rangehttpserver, + scikit-hep-testdata, + xxhash, }: buildPythonPackage rec { @@ -98,9 +99,7 @@ buildPythonPackage rec { "tests/test_1043_const_std_string.py" ]; - pythonImportsCheck = [ - "uproot" - ]; + pythonImportsCheck = [ "uproot" ]; meta = with lib; { description = "ROOT I/O in pure Python and Numpy"; diff --git a/pkgs/development/python-modules/uptime-kuma-api/default.nix b/pkgs/development/python-modules/uptime-kuma-api/default.nix index f1f086c2661b..8b02737e76b4 100644 --- a/pkgs/development/python-modules/uptime-kuma-api/default.nix +++ b/pkgs/development/python-modules/uptime-kuma-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, packaging -, python-socketio -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + packaging, + python-socketio, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { python-socketio.optional-dependencies.client ]; - pythonImportsCheck = [ - "uptime_kuma_api" - ]; + pythonImportsCheck = [ "uptime_kuma_api" ]; # Tests need an uptime-kuma instance to run doCheck = false; diff --git a/pkgs/development/python-modules/uptime-kuma-monitor/default.nix b/pkgs/development/python-modules/uptime-kuma-monitor/default.nix index f689942abf93..dcc901125d66 100644 --- a/pkgs/development/python-modules/uptime-kuma-monitor/default.nix +++ b/pkgs/development/python-modules/uptime-kuma-monitor/default.nix @@ -1,9 +1,10 @@ -{ lib -, requests -, buildPythonPackage -, fetchPypi -, prometheus-client -, pythonOlder +{ + lib, + requests, + buildPythonPackage, + fetchPypi, + prometheus-client, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { # Project has no test doCheck = false; - pythonImportsCheck = [ - "uptime_kuma_monitor" - ]; + pythonImportsCheck = [ "uptime_kuma_monitor" ]; meta = with lib; { description = "Python wrapper around UptimeKuma /metrics endpoint"; diff --git a/pkgs/development/python-modules/uqbar/default.nix b/pkgs/development/python-modules/uqbar/default.nix index 046e3425a785..63eaa24ab4fb 100644 --- a/pkgs/development/python-modules/uqbar/default.nix +++ b/pkgs/development/python-modules/uqbar/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, defusedxml -, setuptools -, sphinx -, typing-extensions -, unidecode +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + defusedxml, + setuptools, + sphinx, + typing-extensions, + unidecode, }: buildPythonPackage rec { @@ -29,45 +30,42 @@ buildPythonPackage rec { -e "/--cov/d" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ unidecode sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ defusedxml typing-extensions ]; - disabledTests = [ - # UnboundLocalError: local variable 'output_path' referenced before assignment - "test_01" - # AssertionError: assert False - "test_sphinx_book_html_cached" - # FileNotFoundError: [Errno 2] No such file or directory: 'unflatten' - "test_sphinx_style_html" - # assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for - # graphviz output), check the graphviz_dot setting\x1b[39;49;00m"] - "test_sphinx_style_latex" - ] ++ lib.optional (pythonAtLeast "3.11") [ - # assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring - "test_sphinx_style" - ] ++ lib.optional (pythonAtLeast "3.12") [ - # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93 - "objects.get_vars" - ]; + disabledTests = + [ + # UnboundLocalError: local variable 'output_path' referenced before assignment + "test_01" + # AssertionError: assert False + "test_sphinx_book_html_cached" + # FileNotFoundError: [Errno 2] No such file or directory: 'unflatten' + "test_sphinx_style_html" + # assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for + # graphviz output), check the graphviz_dot setting\x1b[39;49;00m"] + "test_sphinx_style_latex" + ] + ++ lib.optional (pythonAtLeast "3.11") [ + # assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring + "test_sphinx_style" + ] + ++ lib.optional (pythonAtLeast "3.12") [ + # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93 + "objects.get_vars" + ]; - pythonImportsCheck = [ - "uqbar" - ]; + pythonImportsCheck = [ "uqbar" ]; meta = with lib; { description = "Tools for creating Sphinx and Graphviz documentation"; diff --git a/pkgs/development/python-modules/uranium/default.nix b/pkgs/development/python-modules/uranium/default.nix index 8af65b0cc65d..27c568516f31 100644 --- a/pkgs/development/python-modules/uranium/default.nix +++ b/pkgs/development/python-modules/uranium/default.nix @@ -1,5 +1,19 @@ -{ lib, buildPythonPackage, fetchFromGitHub, python, cmake -, pyqt5, numpy, scipy, shapely, libarcus, cryptography, doxygen, gettext, pythonOlder }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + cmake, + pyqt5, + numpy, + scipy, + shapely, + libarcus, + cryptography, + doxygen, + gettext, + pythonOlder, +}: buildPythonPackage rec { version = "4.12.0"; @@ -15,9 +29,22 @@ buildPythonPackage rec { disabled = pythonOlder "3.5.0"; - buildInputs = [ python gettext ]; - propagatedBuildInputs = [ pyqt5 numpy scipy shapely libarcus cryptography ]; - nativeBuildInputs = [ cmake doxygen ]; + buildInputs = [ + python + gettext + ]; + propagatedBuildInputs = [ + pyqt5 + numpy + scipy + shapely + libarcus + cryptography + ]; + nativeBuildInputs = [ + cmake + doxygen + ]; postPatch = '' sed -i 's,/python''${PYTHON_VERSION_MAJOR}/dist-packages,/python''${PYTHON_VERSION_MAJOR}.''${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt @@ -32,6 +59,9 @@ buildPythonPackage rec { homepage = "https://github.com/Ultimaker/Uranium"; license = licenses.lgpl3Plus; platforms = platforms.linux; - maintainers = with maintainers; [ abbradar gebner ]; + maintainers = with maintainers; [ + abbradar + gebner + ]; }; } diff --git a/pkgs/development/python-modules/uri-template/default.nix b/pkgs/development/python-modules/uri-template/default.nix index a403417b1093..d0aa125fcdc6 100644 --- a/pkgs/development/python-modules/uri-template/default.nix +++ b/pkgs/development/python-modules/uri-template/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { ${python.interpreter} test.py ''; - pythonImportsCheck = [ - "uri_template" - ]; + pythonImportsCheck = [ "uri_template" ]; meta = with lib; { description = "An implementation of RFC 6570 URI Templates"; diff --git a/pkgs/development/python-modules/uritemplate/default.nix b/pkgs/development/python-modules/uritemplate/default.nix index 400d7d54e326..1d757d4134a7 100644 --- a/pkgs/development/python-modules/uritemplate/default.nix +++ b/pkgs/development/python-modules/uritemplate/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,23 +19,20 @@ buildPythonPackage rec { hash = "sha256-Q0bt/Fw7efaUvM1tYJmjIrvrYo2/LNhu6lWkVs5RJPA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "uritemplate" - ]; + pythonImportsCheck = [ "uritemplate" ]; meta = with lib; { description = "Implementation of RFC 6570 URI templates"; homepage = "https://github.com/python-hyper/uritemplate"; changelog = "https://github.com/python-hyper/uritemplate/blob/${version}/HISTORY.rst"; - license = with licenses; [ asl20 bsd3 ]; + license = with licenses; [ + asl20 + bsd3 + ]; maintainers = with maintainers; [ matthiasbeyer ]; }; } diff --git a/pkgs/development/python-modules/uritools/default.nix b/pkgs/development/python-modules/uritools/default.nix index 7975e0f74231..f02a31917c59 100644 --- a/pkgs/development/python-modules/uritools/default.nix +++ b/pkgs/development/python-modules/uritools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-BN8reH0Ot2IA6DGTgqA1Yvv+R0H9ZsFVBrCNO4IR1XM="; }; - pythonImportsCheck = [ - "uritools" - ]; + pythonImportsCheck = [ "uritools" ]; meta = with lib; { description = "RFC 3986 compliant, Unicode-aware, scheme-agnostic replacement for urlparse"; diff --git a/pkgs/development/python-modules/url-normalize/default.nix b/pkgs/development/python-modules/url-normalize/default.nix index b851eccbe26f..b914c8ae61eb 100644 --- a/pkgs/development/python-modules/url-normalize/default.nix +++ b/pkgs/development/python-modules/url-normalize/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, poetry-core -, pytest-flakes -, pytest-mock -, pytest-socket -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + poetry-core, + pytest-flakes, + pytest-mock, + pytest-socket, + pytestCheckHook, + six, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-WE3MM9B/voI23taFbLp2FYhl0uxOfuUWsaCTBG1hyiY="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ pytest-flakes @@ -51,9 +48,7 @@ buildPythonPackage rec { sed -i "/--flakes/d" tox.ini ''; - pythonImportsCheck = [ - "url_normalize" - ]; + pythonImportsCheck = [ "url_normalize" ]; meta = with lib; { description = "URL normalization for Python"; diff --git a/pkgs/development/python-modules/urlextract/default.nix b/pkgs/development/python-modules/urlextract/default.nix index a5701ee65160..d7a605b69d69 100644 --- a/pkgs/development/python-modules/urlextract/default.nix +++ b/pkgs/development/python-modules/urlextract/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, dnspython -, fetchPypi -, filelock -, idna -, platformdirs -, pytestCheckHook -, pythonOlder -, setuptools -, uritools +{ + lib, + buildPythonPackage, + dnspython, + fetchPypi, + filelock, + idna, + platformdirs, + pytestCheckHook, + pythonOlder, + setuptools, + uritools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-cFCOArqd83LiXPBkLbNnzs4nPocSzQzngXj8XdfqANs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ filelock @@ -48,9 +47,7 @@ buildPythonPackage rec { "test_dns_cache_reuse" ]; - pythonImportsCheck = [ - "urlextract" - ]; + pythonImportsCheck = [ "urlextract" ]; meta = with lib; { description = "Collects and extracts URLs from given text"; diff --git a/pkgs/development/python-modules/urlgrabber/default.nix b/pkgs/development/python-modules/urlgrabber/default.nix index f991bff5db11..11d97578bae9 100644 --- a/pkgs/development/python-modules/urlgrabber/default.nix +++ b/pkgs/development/python-modules/urlgrabber/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pycurl, six }: +{ + lib, + buildPythonPackage, + fetchPypi, + pycurl, + six, +}: buildPythonPackage rec { pname = "urlgrabber"; @@ -10,7 +16,10 @@ buildPythonPackage rec { sha256 = "075af8afabae6362482d254e5ac3ffa595d1766117b684e53d9c25c2e937e139"; }; - propagatedBuildInputs = [ pycurl six ]; + propagatedBuildInputs = [ + pycurl + six + ]; meta = with lib; { homepage = "http://urlgrabber.baseurl.org"; diff --git a/pkgs/development/python-modules/urllib3/default.nix b/pkgs/development/python-modules/urllib3/default.nix index 70d8750a84d0..77742a521d24 100644 --- a/pkgs/development/python-modules/urllib3/default.nix +++ b/pkgs/development/python-modules/urllib3/default.nix @@ -1,88 +1,84 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, -# build-system -, hatchling + # build-system + hatchling, -# optional-dependencies -, brotli -, brotlicffi -, pysocks + # optional-dependencies + brotli, + brotlicffi, + pysocks, -# tests -, backports-zoneinfo -, pytestCheckHook -, pytest-timeout -, pythonOlder -, tornado -, trustme + # tests + backports-zoneinfo, + pytestCheckHook, + pytest-timeout, + pythonOlder, + tornado, + trustme, }: -let self = buildPythonPackage rec { - pname = "urllib3"; - version = "2.2.1"; - pyproject = true; +let + self = buildPythonPackage rec { + pname = "urllib3"; + version = "2.2.1"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-0FcIdsYaueUg13bDisu7WwWndtP5/5ilyP1RYqREzxk="; + src = fetchPypi { + inherit pname version; + hash = "sha256-0FcIdsYaueUg13bDisu7WwWndtP5/5ilyP1RYqREzxk="; + }; + + nativeBuildInputs = [ hatchling ]; + + passthru.optional-dependencies = { + brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; + socks = [ pysocks ]; + }; + + nativeCheckInputs = + [ + pytest-timeout + pytestCheckHook + tornado + trustme + ] + ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + + # Tests in urllib3 are mostly timeout-based instead of event-based and + # are therefore inherently flaky. On your own machine, the tests will + # typically build fine, but on a loaded cluster such as Hydra random + # timeouts will occur. + # + # The urllib3 test suite has two different timeouts in their test suite + # (see `test/__init__.py`): + # - SHORT_TIMEOUT + # - LONG_TIMEOUT + # When CI is in the env, LONG_TIMEOUT will be significantly increased. + # Still, failures can occur and for that reason tests are disabled. + doCheck = false; + + passthru.tests.pytest = self.overridePythonAttrs (_: { + doCheck = true; + }); + + preCheck = '' + export CI # Increases LONG_TIMEOUT + ''; + + pythonImportsCheck = [ "urllib3" ]; + + meta = with lib; { + description = "Powerful, user-friendly HTTP client for Python"; + homepage = "https://github.com/urllib3/urllib3"; + changelog = "https://github.com/urllib3/urllib3/blob/${version}/CHANGES.rst"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; }; - - nativeBuildInputs = [ - hatchling - ]; - - passthru.optional-dependencies = { - brotli = if isPyPy then [ - brotlicffi - ] else [ - brotli - ]; - socks = [ - pysocks - ]; - }; - - nativeCheckInputs = [ - pytest-timeout - pytestCheckHook - tornado - trustme - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - - # Tests in urllib3 are mostly timeout-based instead of event-based and - # are therefore inherently flaky. On your own machine, the tests will - # typically build fine, but on a loaded cluster such as Hydra random - # timeouts will occur. - # - # The urllib3 test suite has two different timeouts in their test suite - # (see `test/__init__.py`): - # - SHORT_TIMEOUT - # - LONG_TIMEOUT - # When CI is in the env, LONG_TIMEOUT will be significantly increased. - # Still, failures can occur and for that reason tests are disabled. - doCheck = false; - - passthru.tests.pytest = self.overridePythonAttrs (_: { doCheck = true; }); - - preCheck = '' - export CI # Increases LONG_TIMEOUT - ''; - - pythonImportsCheck = [ - "urllib3" - ]; - - meta = with lib; { - description = "Powerful, user-friendly HTTP client for Python"; - homepage = "https://github.com/urllib3/urllib3"; - changelog = "https://github.com/urllib3/urllib3/blob/${version}/CHANGES.rst"; - license = licenses.mit; - maintainers = with maintainers; [ fab ]; - }; -}; -in self +in +self diff --git a/pkgs/development/python-modules/urlman/default.nix b/pkgs/development/python-modules/urlman/default.nix index 8bc7ce028299..fb6ca4ebb5e9 100644 --- a/pkgs/development/python-modules/urlman/default.nix +++ b/pkgs/development/python-modules/urlman/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-p6lRuMHM2xJrlY5LDa0XLCGQPDE39UwCouK6e0U9zJE="; }; - pythonImportsCheck = [ - "urlman" - ]; + pythonImportsCheck = [ "urlman" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Django URL pattern helpers"; diff --git a/pkgs/development/python-modules/urlpy/default.nix b/pkgs/development/python-modules/urlpy/default.nix index ad793f593969..fda5519701fa 100644 --- a/pkgs/development/python-modules/urlpy/default.nix +++ b/pkgs/development/python-modules/urlpy/default.nix @@ -1,9 +1,10 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, publicsuffix2 -, pytestCheckHook -, pythonAtLeast +{ + lib, + fetchFromGitHub, + buildPythonPackage, + publicsuffix2, + pytestCheckHook, + pythonAtLeast, }: buildPythonPackage rec { pname = "urlpy"; @@ -19,22 +20,16 @@ buildPythonPackage rec { dontConfigure = true; - propagatedBuildInputs = [ - publicsuffix2 - ]; + propagatedBuildInputs = [ publicsuffix2 ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals (pythonAtLeast "3.9") [ # Fails with "AssertionError: assert 'unknown' == ''" "test_unknown_protocol" ]; - pythonImportsCheck = [ - "urlpy" - ]; + pythonImportsCheck = [ "urlpy" ]; meta = with lib; { description = "Simple URL parsing, canonicalization and equivalence"; diff --git a/pkgs/development/python-modules/urwid-mitmproxy/default.nix b/pkgs/development/python-modules/urwid-mitmproxy/default.nix index 60dd32fc6fc3..f830a9906617 100644 --- a/pkgs/development/python-modules/urwid-mitmproxy/default.nix +++ b/pkgs/development/python-modules/urwid-mitmproxy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, glibcLocales -, pythonOlder -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + glibcLocales, + pythonOlder, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-93AauYWbrG/2smAhbNKGE0twGJZ2u9gBetlXGCpciH8="; }; - pythonImportsCheck = [ - "urwid" - ]; + pythonImportsCheck = [ "urwid" ]; # Tests which assert on strings don't decode results correctly, see urwid doCheck = false; diff --git a/pkgs/development/python-modules/urwid-readline/default.nix b/pkgs/development/python-modules/urwid-readline/default.nix index 3e47f886cdb7..3e1e009aa382 100644 --- a/pkgs/development/python-modules/urwid-readline/default.nix +++ b/pkgs/development/python-modules/urwid-readline/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, urwid -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + urwid, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,19 +19,13 @@ buildPythonPackage rec { hash = "sha256-ZTg+GZnu7R6Jf2+SIwVo57yHnjwuY92DElTJs8oRErE="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - urwid - ]; + propagatedBuildInputs = [ urwid ]; pythonImportsCheck = [ "urwid_readline" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "A textbox edit widget for urwid that supports readline shortcuts"; diff --git a/pkgs/development/python-modules/urwidgets/default.nix b/pkgs/development/python-modules/urwidgets/default.nix index 82e4eee38379..248470bd8fe6 100644 --- a/pkgs/development/python-modules/urwidgets/default.nix +++ b/pkgs/development/python-modules/urwidgets/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, urwid +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + urwid, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-ultlfNeCGFTqKaMeXu0+NihkN5/6NtMewk33YfIzhu8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - urwid - ]; + propagatedBuildInputs = [ urwid ]; - pythonImportsCheck = [ - "urwidgets" - ]; + pythonImportsCheck = [ "urwidgets" ]; meta = with lib; { description = "A collection of widgets for urwid"; diff --git a/pkgs/development/python-modules/urwidtrees/default.nix b/pkgs/development/python-modules/urwidtrees/default.nix index f12f91906efa..0f03b4fdbc4e 100644 --- a/pkgs/development/python-modules/urwidtrees/default.nix +++ b/pkgs/development/python-modules/urwidtrees/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, setuptools -, urwid +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + setuptools, + urwid, }: buildPythonPackage rec { pname = "urwidtrees"; - version = "1.0.3"; + version = "1.0.3"; pyproject = true; src = fetchFromGitHub { @@ -21,24 +22,18 @@ buildPythonPackage rec { patches = [ (fetchpatch { url = "https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch"; - hash = "sha256-fA+30d2uVaoNCg4rtoWLNPvrZtq41Co4vcmM80hkURs="; + hash = "sha256-fA+30d2uVaoNCg4rtoWLNPvrZtq41Co4vcmM80hkURs="; }) ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - urwid - ]; + propagatedBuildInputs = [ urwid ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "urwidtrees" - ]; + pythonImportsCheck = [ "urwidtrees" ]; meta = with lib; { description = "Tree widgets for urwid"; diff --git a/pkgs/development/python-modules/us/default.nix b/pkgs/development/python-modules/us/default.nix index 6b15bec2684d..772e2f7360a2 100644 --- a/pkgs/development/python-modules/us/default.nix +++ b/pkgs/development/python-modules/us/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jellyfish -, pytestCheckHook -, pythonOlder -, pytz +{ + lib, + buildPythonPackage, + fetchPypi, + jellyfish, + pytestCheckHook, + pythonOlder, + pytz, }: buildPythonPackage rec { @@ -25,18 +26,14 @@ buildPythonPackage rec { --replace "jellyfish==" "jellyfish>=" ''; - propagatedBuildInputs = [ - jellyfish - ]; + propagatedBuildInputs = [ jellyfish ]; nativeCheckInputs = [ pytestCheckHook pytz ]; - pythonImportsCheck = [ - "us" - ]; + pythonImportsCheck = [ "us" ]; meta = with lib; { description = "A package for easily working with US and state metadata"; diff --git a/pkgs/development/python-modules/usb-devices/default.nix b/pkgs/development/python-modules/usb-devices/default.nix index da4abcd5f8f2..bf86e943e2c7 100644 --- a/pkgs/development/python-modules/usb-devices/default.nix +++ b/pkgs/development/python-modules/usb-devices/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { --replace " --cov=usb_devices --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "usb_devices" - ]; + pythonImportsCheck = [ "usb_devices" ]; meta = with lib; { description = "Library for for mapping, describing, and resetting USB devices"; diff --git a/pkgs/development/python-modules/usbtmc/default.nix b/pkgs/development/python-modules/usbtmc/default.nix index 62d7b47dea91..9220c3acde9e 100644 --- a/pkgs/development/python-modules/usbtmc/default.nix +++ b/pkgs/development/python-modules/usbtmc/default.nix @@ -1,4 +1,9 @@ -{ lib, fetchFromGitHub, buildPythonPackage, pyusb }: +{ + lib, + fetchFromGitHub, + buildPythonPackage, + pyusb, +}: buildPythonPackage rec { pname = "usbtmc"; diff --git a/pkgs/development/python-modules/user-agents/default.nix b/pkgs/development/python-modules/user-agents/default.nix index af61caba82c4..7a0fc42657a0 100644 --- a/pkgs/development/python-modules/user-agents/default.nix +++ b/pkgs/development/python-modules/user-agents/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, ua-parser }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ua-parser, +}: buildPythonPackage rec { pname = "user-agents"; diff --git a/pkgs/development/python-modules/userpath/default.nix b/pkgs/development/python-modules/userpath/default.nix index 17783bef05c0..20c387615c48 100644 --- a/pkgs/development/python-modules/userpath/default.nix +++ b/pkgs/development/python-modules/userpath/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, click -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + click, + pythonOlder, }: buildPythonPackage rec { @@ -18,27 +19,24 @@ buildPythonPackage rec { hash = "sha256-bFIojasGklfMgxhG0V1IEzUiRV1Gd+5pqXgfEdvv2BU="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; # Test suite is difficult to emulate in sandbox due to shell manipulation doCheck = false; - pythonImportsCheck = [ - "userpath" - ]; + pythonImportsCheck = [ "userpath" ]; meta = with lib; { description = "Cross-platform tool for adding locations to the user PATH"; mainProgram = "userpath"; homepage = "https://github.com/ofek/userpath"; changelog = "https://github.com/ofek/userpath/releases/tag/v${version}"; - license = with licenses; [ asl20 mit ]; + license = with licenses; [ + asl20 + mit + ]; maintainers = with maintainers; [ yshym ]; }; } diff --git a/pkgs/development/python-modules/ush/default.nix b/pkgs/development/python-modules/ush/default.nix index db66feca8d94..82c089b99c39 100644 --- a/pkgs/development/python-modules/ush/default.nix +++ b/pkgs/development/python-modules/ush/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, six +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + six, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/usort/default.nix b/pkgs/development/python-modules/usort/default.nix index 68dbe6a9b7d5..a32ad97cc465 100644 --- a/pkgs/development/python-modules/usort/default.nix +++ b/pkgs/development/python-modules/usort/default.nix @@ -1,18 +1,19 @@ -{ lib -, attrs -, buildPythonPackage -, click -, fetchFromGitHub -, hatch-vcs -, hatchling -, libcst -, moreorless -, pythonOlder -, stdlibs -, toml -, trailrunner -, unittestCheckHook -, volatile +{ + lib, + attrs, + buildPythonPackage, + click, + fetchFromGitHub, + hatch-vcs, + hatchling, + libcst, + moreorless, + pythonOlder, + stdlibs, + toml, + trailrunner, + unittestCheckHook, + volatile, }: buildPythonPackage rec { @@ -49,9 +50,7 @@ buildPythonPackage rec { volatile ]; - pythonImportsCheck = [ - "usort" - ]; + pythonImportsCheck = [ "usort" ]; meta = with lib; { description = "Safe, minimal import sorting for Python projects"; diff --git a/pkgs/development/python-modules/utils/default.nix b/pkgs/development/python-modules/utils/default.nix index 36b399bed477..e76fa6e6bab0 100644 --- a/pkgs/development/python-modules/utils/default.nix +++ b/pkgs/development/python-modules/utils/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/uvcclient/default.nix b/pkgs/development/python-modules/uvcclient/default.nix index 6be1dc84065c..741c3d39c213 100644 --- a/pkgs/development/python-modules/uvcclient/default.nix +++ b/pkgs/development/python-modules/uvcclient/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pynose, mock }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pynose, + mock, +}: buildPythonPackage rec { pname = "uvcclient"; diff --git a/pkgs/development/python-modules/uvicorn/default.nix b/pkgs/development/python-modules/uvicorn/default.nix index 2694880594b0..09a1ecdaaf22 100644 --- a/pkgs/development/python-modules/uvicorn/default.nix +++ b/pkgs/development/python-modules/uvicorn/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, callPackage -, fetchFromGitHub -, click -, h11 -, httptools -, python-dotenv -, pyyaml -, typing-extensions -, uvloop -, watchfiles -, websockets -, hatchling -, pythonOlder +{ + lib, + buildPythonPackage, + callPackage, + fetchFromGitHub, + click, + h11, + httptools, + python-dotenv, + pyyaml, + typing-extensions, + uvloop, + watchfiles, + websockets, + hatchling, + pythonOlder, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { dependencies = [ click h11 - ] ++ lib.optionals (pythonOlder "3.11") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ]; passthru.optional-dependencies.standard = [ httptools @@ -57,9 +56,7 @@ buildPythonPackage rec { cp -R tests $testsout/tests ''; - pythonImportsCheck = [ - "uvicorn" - ]; + pythonImportsCheck = [ "uvicorn" ]; # check in passthru.tests.pytest to escape infinite recursion with httpx/httpcore doCheck = false; diff --git a/pkgs/development/python-modules/uvicorn/tests.nix b/pkgs/development/python-modules/uvicorn/tests.nix index 805e8df1c710..24dd8d2b848c 100644 --- a/pkgs/development/python-modules/uvicorn/tests.nix +++ b/pkgs/development/python-modules/uvicorn/tests.nix @@ -1,13 +1,14 @@ -{ stdenv -, buildPythonPackage -, a2wsgi -, uvicorn -, httpx -, pytestCheckHook -, pytest-mock -, trustme -, watchgod -, wsproto +{ + stdenv, + buildPythonPackage, + a2wsgi, + uvicorn, + httpx, + pytestCheckHook, + pytest-mock, + trustme, + watchgod, + wsproto, }: buildPythonPackage { @@ -31,8 +32,7 @@ buildPythonPackage { a2wsgi watchgod wsproto - ] - ++ uvicorn.optional-dependencies.standard; + ] ++ uvicorn.optional-dependencies.standard; doCheck = !stdenv.isDarwin; @@ -45,4 +45,3 @@ buildPythonPackage { "test_multiple_server_header" ]; } - diff --git a/pkgs/development/python-modules/uvloop/default.nix b/pkgs/development/python-modules/uvloop/default.nix index 7aa551086869..4f2ff7d11cea 100644 --- a/pkgs/development/python-modules/uvloop/default.nix +++ b/pkgs/development/python-modules/uvloop/default.nix @@ -1,23 +1,24 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, -# build-system -, cython_0 -, setuptools + # build-system + cython_0, + setuptools, -# native dependencies -, libuv -, CoreServices -, ApplicationServices + # native dependencies + libuv, + CoreServices, + ApplicationServices, -# tests -, aiohttp -, psutil -, pyopenssl -, pytestCheckHook + # tests + aiohttp, + psutil, + pyopenssl, + pytestCheckHook, }: buildPythonPackage rec { @@ -39,12 +40,12 @@ buildPythonPackage rec { env.LIBUV_CONFIGURE_HOST = stdenv.hostPlatform.config; - buildInputs = [ - libuv - ] ++ lib.optionals stdenv.isDarwin [ - CoreServices - ApplicationServices - ]; + buildInputs = + [ libuv ] + ++ lib.optionals stdenv.isDarwin [ + CoreServices + ApplicationServices + ]; nativeCheckInputs = [ aiohttp @@ -53,33 +54,37 @@ buildPythonPackage rec { psutil ]; - pytestFlagsArray = [ - # Tries to run "env", but fails to find it, even with coreutils provided - "--deselect=tests/test_process.py::Test_UV_Process::test_process_env_2" - "--deselect=tests/test_process.py::Test_AIO_Process::test_process_env_2" - # AssertionError: b'' != b'out\n' - "--deselect=tests/test_process.py::Test_UV_Process::test_process_streams_redirect" - "--deselect=tests/test_process.py::Test_AIO_Process::test_process_streams_redirect" - ] ++ lib.optionals (stdenv.isDarwin) [ - # Segmentation fault - "--deselect=tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename" - # Broken: https://github.com/NixOS/nixpkgs/issues/160904 - "--deselect=tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost" - ]; + pytestFlagsArray = + [ + # Tries to run "env", but fails to find it, even with coreutils provided + "--deselect=tests/test_process.py::Test_UV_Process::test_process_env_2" + "--deselect=tests/test_process.py::Test_AIO_Process::test_process_env_2" + # AssertionError: b'' != b'out\n' + "--deselect=tests/test_process.py::Test_UV_Process::test_process_streams_redirect" + "--deselect=tests/test_process.py::Test_AIO_Process::test_process_streams_redirect" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # Segmentation fault + "--deselect=tests/test_fs_event.py::Test_UV_FS_EVENT_RENAME::test_fs_event_rename" + # Broken: https://github.com/NixOS/nixpkgs/issues/160904 + "--deselect=tests/test_context.py::Test_UV_Context::test_create_ssl_server_manual_connection_lost" + ]; disabledTestPaths = [ # ignore code linting tests "tests/test_sourcecode.py" ]; - preCheck = '' - # force using installed/compiled uvloop - rm -rf uvloop - '' + lib.optionalString stdenv.isDarwin '' - # Work around "OSError: AF_UNIX path too long" - # https://github.com/MagicStack/uvloop/issues/463 - export TMPDIR="/tmp" - ''; + preCheck = + '' + # force using installed/compiled uvloop + rm -rf uvloop + '' + + lib.optionalString stdenv.isDarwin '' + # Work around "OSError: AF_UNIX path too long" + # https://github.com/MagicStack/uvloop/issues/463 + export TMPDIR="/tmp" + ''; pythonImportsCheck = [ "uvloop" diff --git a/pkgs/development/python-modules/vaa/default.nix b/pkgs/development/python-modules/vaa/default.nix index 54c2520ee665..a94ca49b9131 100644 --- a/pkgs/development/python-modules/vaa/default.nix +++ b/pkgs/development/python-modules/vaa/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core -, pytestCheckHook -, cerberus -, django -, djangorestframework -, marshmallow -, pyschemes -, wtforms -, email-validator +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, + pytestCheckHook, + cerberus, + django, + djangorestframework, + marshmallow, + pyschemes, + wtforms, + email-validator, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace "build-backend = \"flit.buildapi\"" "build-backend = \"flit_core.buildapi\"" ''; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/vacuum-map-parser-base/default.nix b/pkgs/development/python-modules/vacuum-map-parser-base/default.nix index e27ea9d8b6f0..0eb545df0b2a 100644 --- a/pkgs/development/python-modules/vacuum-map-parser-base/default.nix +++ b/pkgs/development/python-modules/vacuum-map-parser-base/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pillow +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pillow, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/vacuum-map-parser-roborock/default.nix b/pkgs/development/python-modules/vacuum-map-parser-roborock/default.nix index 68683c1d7690..7346d779c4c2 100644 --- a/pkgs/development/python-modules/vacuum-map-parser-roborock/default.nix +++ b/pkgs/development/python-modules/vacuum-map-parser-roborock/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pillow -, vacuum-map-parser-base +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pillow, + vacuum-map-parser-base, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/validobj/default.nix b/pkgs/development/python-modules/validobj/default.nix index 4eba3276a9cf..5ee2b0d6d0c8 100644 --- a/pkgs/development/python-modules/validobj/default.nix +++ b/pkgs/development/python-modules/validobj/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flit -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + flit, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,7 +19,10 @@ buildPythonPackage rec { nativeBuildInputs = [ flit ]; - nativeCheckInputs = [ hypothesis pytestCheckHook ]; + nativeCheckInputs = [ + hypothesis + pytestCheckHook + ]; pythonImportsCheck = [ "validobj" ]; diff --git a/pkgs/development/python-modules/validphys2/default.nix b/pkgs/development/python-modules/validphys2/default.nix index 38debb91be11..fd408820a2d7 100644 --- a/pkgs/development/python-modules/validphys2/default.nix +++ b/pkgs/development/python-modules/validphys2/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, lhapdf -, nnpdf -, prompt-toolkit -, reportengine -, requests -, seaborn -, validobj +{ + lib, + buildPythonPackage, + lhapdf, + nnpdf, + prompt-toolkit, + reportengine, + requests, + seaborn, + validobj, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/vallox-websocket-api/default.nix b/pkgs/development/python-modules/vallox-websocket-api/default.nix index a27a512a448f..9558cbe056df 100644 --- a/pkgs/development/python-modules/vallox-websocket-api/default.nix +++ b/pkgs/development/python-modules/vallox-websocket-api/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, buildPythonPackage -, pythonOlder -, pythonRelaxDepsHook -, fetchFromGitHub -, setuptools -, construct -, websockets -, pytest-asyncio -, pytestCheckHook +{ + lib, + aiohttp, + buildPythonPackage, + pythonOlder, + pythonRelaxDepsHook, + fetchFromGitHub, + setuptools, + construct, + websockets, + pytest-asyncio, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "websockets" - ]; + pythonRelaxDeps = [ "websockets" ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/vapoursynth/default.nix b/pkgs/development/python-modules/vapoursynth/default.nix index 2043fb2d4a58..1fb1d4be03ef 100644 --- a/pkgs/development/python-modules/vapoursynth/default.nix +++ b/pkgs/development/python-modules/vapoursynth/default.nix @@ -1,4 +1,10 @@ -{ vapoursynth, cython, buildPythonPackage, unittestCheckHook, python }: +{ + vapoursynth, + cython, + buildPythonPackage, + unittestCheckHook, + python, +}: buildPythonPackage { pname = "vapoursynth"; @@ -6,27 +12,23 @@ buildPythonPackage { inherit (vapoursynth) version src; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; - buildInputs = [ - vapoursynth - ]; + buildInputs = [ vapoursynth ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "$src/test" "-p" "'*test.py'" ]; + unittestFlagsArray = [ + "-s" + "$src/test" + "-p" + "'*test.py'" + ]; passthru = { - withPlugins = plugins: - python.pkgs.vapoursynth.override { - vapoursynth = vapoursynth.withPlugins plugins; - }; + withPlugins = + plugins: python.pkgs.vapoursynth.override { vapoursynth = vapoursynth.withPlugins plugins; }; }; inherit (vapoursynth) meta; } - diff --git a/pkgs/development/python-modules/variants/default.nix b/pkgs/development/python-modules/variants/default.nix index 8379034af9e5..5aa3c89afd1b 100644 --- a/pkgs/development/python-modules/variants/default.nix +++ b/pkgs/development/python-modules/variants/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools-scm -, six +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools-scm, + six, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-UR91tM90g8J+TYbZrM8rUxcmeQDBZtF2Nr7u0RiSm5A="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; nativeCheckInputs = [ pytestCheckHook six ]; - pythonImportsCheck = [ - "variants" - ]; + pythonImportsCheck = [ "variants" ]; meta = with lib; { description = "Library providing syntactic sugar for creating variant forms of a canonical function"; diff --git a/pkgs/development/python-modules/varint/default.nix b/pkgs/development/python-modules/varint/default.nix index dcc24c8de702..5c7426913f82 100644 --- a/pkgs/development/python-modules/varint/default.nix +++ b/pkgs/development/python-modules/varint/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchPypi -, lib +{ + buildPythonPackage, + fetchPypi, + lib, }: buildPythonPackage rec { pname = "varint"; @@ -8,7 +9,7 @@ buildPythonPackage rec { format = "setuptools"; src = fetchPypi { - inherit pname version ; + inherit pname version; sha256 = "a6ecc02377ac5ee9d65a6a8ad45c9ff1dac8ccee19400a5950fb51d594214ca5"; }; diff --git a/pkgs/development/python-modules/vat-moss/default.nix b/pkgs/development/python-modules/vat-moss/default.nix index 1bf0879d3427..14115f3eb5d5 100644 --- a/pkgs/development/python-modules/vat-moss/default.nix +++ b/pkgs/development/python-modules/vat-moss/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,17 +26,11 @@ buildPythonPackage rec { }) ]; - pythonImportsCheck = [ - "vat_moss" - ]; + pythonImportsCheck = [ "vat_moss" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_fetch" - ]; + disabledTests = [ "test_fetch" ]; disabledTestPaths = [ # network access diff --git a/pkgs/development/python-modules/vcard/default.nix b/pkgs/development/python-modules/vcard/default.nix index 1c207387ea85..df882ae250ca 100644 --- a/pkgs/development/python-modules/vcard/default.nix +++ b/pkgs/development/python-modules/vcard/default.nix @@ -1,10 +1,11 @@ -{ buildPythonPackage -, fetchFromGitLab -, lib -, pytestCheckHook -, python-dateutil -, pythonAtLeast -, pythonOlder +{ + buildPythonPackage, + fetchFromGitLab, + lib, + pytestCheckHook, + python-dateutil, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { pname = "vcard"; diff --git a/pkgs/development/python-modules/vcrpy/default.nix b/pkgs/development/python-modules/vcrpy/default.nix index c60d3310cda7..920a439d3379 100644 --- a/pkgs/development/python-modules/vcrpy/default.nix +++ b/pkgs/development/python-modules/vcrpy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest-httpbin -, pytestCheckHook -, pythonOlder -, pyyaml -, six -, yarl -, wrapt +{ + lib, + buildPythonPackage, + fetchPypi, + pytest-httpbin, + pytestCheckHook, + pythonOlder, + pyyaml, + six, + yarl, + wrapt, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTestPaths = [ - "tests/integration" - ]; + disabledTestPaths = [ "tests/integration" ]; disabledTests = [ "TestVCRConnection" @@ -45,9 +44,7 @@ buildPythonPackage rec { "test_testcase_playback" ]; - pythonImportsCheck = [ - "vcr" - ]; + pythonImportsCheck = [ "vcr" ]; meta = with lib; { description = "Automatically mock your HTTP interactions to simplify and speed up testing"; diff --git a/pkgs/development/python-modules/vcver/default.nix b/pkgs/development/python-modules/vcver/default.nix index 56afec9127da..5dcbab7dc6d9 100644 --- a/pkgs/development/python-modules/vcver/default.nix +++ b/pkgs/development/python-modules/vcver/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, packaging +{ + lib, + buildPythonPackage, + fetchFromGitHub, + packaging, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "1cvgs70jf7ki78338zaglaw2dkvyndmx15ybd6k4zqwwsfgk490b"; }; - propagatedBuildInputs = [ - packaging - ]; + propagatedBuildInputs = [ packaging ]; # circular dependency on test tool uranium https://pypi.org/project/uranium/ doCheck = false; diff --git a/pkgs/development/python-modules/vcversioner/default.nix b/pkgs/development/python-modules/vcversioner/default.nix index f3f64015e2a7..25d569b23cf5 100644 --- a/pkgs/development/python-modules/vcversioner/default.nix +++ b/pkgs/development/python-modules/vcversioner/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "vcversioner"; diff --git a/pkgs/development/python-modules/vdf/default.nix b/pkgs/development/python-modules/vdf/default.nix index d473ded6c24a..e74f735538e5 100644 --- a/pkgs/development/python-modules/vdf/default.nix +++ b/pkgs/development/python-modules/vdf/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,7 +18,10 @@ buildPythonPackage rec { hash = "sha256-6ozglzZZNKDtADkHwxX2Zsnkh6BE8WbcRcC9HkTTgPU="; }; - nativeCheckInputs = [ mock pytestCheckHook ]; + nativeCheckInputs = [ + mock + pytestCheckHook + ]; pythonImportsCheck = [ "vdf" ]; meta = with lib; { diff --git a/pkgs/development/python-modules/vdirsyncer/default.nix b/pkgs/development/python-modules/vdirsyncer/default.nix index b41724549897..ab0af940e3e1 100644 --- a/pkgs/development/python-modules/vdirsyncer/default.nix +++ b/pkgs/development/python-modules/vdirsyncer/default.nix @@ -1,28 +1,29 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, click -, click-log -, click-threading -, requests-toolbelt -, requests -, atomicwrites -, hypothesis -, pytestCheckHook -, pytest-subtesthack -, setuptools -, setuptools-scm -, wheel -, aiostream -, aiohttp-oauthlib -, aiohttp -, pytest-asyncio -, trustme -, aioresponses -, vdirsyncer -, testers -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + click, + click-log, + click-threading, + requests-toolbelt, + requests, + atomicwrites, + hypothesis, + pytestCheckHook, + pytest-subtesthack, + setuptools, + setuptools-scm, + wheel, + aiostream, + aiohttp-oauthlib, + aiohttp, + pytest-asyncio, + trustme, + aioresponses, + vdirsyncer, + testers, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "aiostream" - ]; + pythonRelaxDeps = [ "aiostream" ]; propagatedBuildInputs = [ atomicwrites diff --git a/pkgs/development/python-modules/vector/default.nix b/pkgs/development/python-modules/vector/default.nix index 7edad1b6321a..fce9211c6be2 100644 --- a/pkgs/development/python-modules/vector/default.nix +++ b/pkgs/development/python-modules/vector/default.nix @@ -1,16 +1,17 @@ -{ lib -, awkward -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, numba -, numpy -, notebook -, packaging -, papermill -, pytestCheckHook -, pythonOlder +{ + lib, + awkward, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + numba, + numpy, + notebook, + packaging, + papermill, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -43,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "vector" - ]; + pythonImportsCheck = [ "vector" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/vega-datasets/default.nix b/pkgs/development/python-modules/vega-datasets/default.nix index e0c9133767fc..323aa20040c2 100644 --- a/pkgs/development/python-modules/vega-datasets/default.nix +++ b/pkgs/development/python-modules/vega-datasets/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pandas -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pandas, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,28 +18,25 @@ buildPythonPackage rec { hash = "sha256-nb6YNCCOjsMqtElw3zFd6RAoYeTNoT2OFDqreoDZP8A="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pandas ]; nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "--doctest-modules" - ]; + pytestFlagsArray = [ "--doctest-modules" ]; - pythonImportsCheck = [ - "vega_datasets" - ]; + pythonImportsCheck = [ "vega_datasets" ]; - meta = with lib; let - tag = removeSuffix ".0" "v${version}"; - in { - description = "A Python package for offline access to vega datasets"; - homepage = "https://github.com/altair-viz/vega_datasets"; - changelog = "https://github.com/altair-viz/vega_datasets/blob/${tag}/CHANGES.md"; - license = licenses.mit; - }; + meta = + with lib; + let + tag = removeSuffix ".0" "v${version}"; + in + { + description = "A Python package for offline access to vega datasets"; + homepage = "https://github.com/altair-viz/vega_datasets"; + changelog = "https://github.com/altair-viz/vega_datasets/blob/${tag}/CHANGES.md"; + license = licenses.mit; + }; } diff --git a/pkgs/development/python-modules/vega/default.nix b/pkgs/development/python-modules/vega/default.nix index 556d06d7d393..f16347868e48 100644 --- a/pkgs/development/python-modules/vega/default.nix +++ b/pkgs/development/python-modules/vega/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchpatch -, fetchPypi -, pythonOlder -, pythonRelaxDepsHook -, altair -, ipytablewidgets -, ipywidgets -, jupyter -, jupyter-core -, jupyterlab -, pandas -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchpatch, + fetchPypi, + pythonOlder, + pythonRelaxDepsHook, + altair, + ipytablewidgets, + ipywidgets, + jupyter, + jupyter-core, + jupyterlab, + pandas, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -41,9 +42,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pandas" - ]; + pythonRelaxDeps = [ "pandas" ]; propagatedBuildInputs = [ ipytablewidgets @@ -53,12 +52,8 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - widget = [ - ipywidgets - ]; - jupyterlab = [ - jupyterlab - ]; + widget = [ ipywidgets ]; + jupyterlab = [ jupyterlab ]; }; nativeCheckInputs = [ diff --git a/pkgs/development/python-modules/vehicle/default.nix b/pkgs/development/python-modules/vehicle/default.nix index f09e88842bee..767885292989 100644 --- a/pkgs/development/python-modules/vehicle/default.nix +++ b/pkgs/development/python-modules/vehicle/default.nix @@ -1,16 +1,17 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, mashumaro -, orjson -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, syrupy -, yarl +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + syrupy, + yarl, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -52,9 +51,7 @@ buildPythonPackage rec { syrupy ]; - pythonImportsCheck = [ - "vehicle" - ]; + pythonImportsCheck = [ "vehicle" ]; meta = with lib; { description = "Python client providing RDW vehicle information"; diff --git a/pkgs/development/python-modules/venstarcolortouch/default.nix b/pkgs/development/python-modules/venstarcolortouch/default.nix index 04d632b0a185..5d8dbb07e033 100644 --- a/pkgs/development/python-modules/venstarcolortouch/default.nix +++ b/pkgs/development/python-modules/venstarcolortouch/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + requests, }: buildPythonPackage rec { @@ -14,16 +15,12 @@ buildPythonPackage rec { hash = "sha256-QjcoF46GrBH7ExGQno8xDgtOSGNxhAP+NycJb22hL+E="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "venstarcolortouch" - ]; + pythonImportsCheck = [ "venstarcolortouch" ]; meta = with lib; { description = "Python interface for Venstar ColorTouch thermostats Resources"; diff --git a/pkgs/development/python-modules/venusian/default.nix b/pkgs/development/python-modules/venusian/default.nix index b992f518c5fb..8870792aaf5e 100644 --- a/pkgs/development/python-modules/venusian/default.nix +++ b/pkgs/development/python-modules/venusian/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, pytestCheckHook -, pytest-cov -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + pytestCheckHook, + pytest-cov, + setuptools, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-63LNym8xOaFdyA+cldPBD4pUoLqIHu744uxbQtPuOpU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/verboselogs/default.nix b/pkgs/development/python-modules/verboselogs/default.nix index 45f747b936ee..63393b593fc6 100644 --- a/pkgs/development/python-modules/verboselogs/default.nix +++ b/pkgs/development/python-modules/verboselogs/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { mock ]; - pythonImportsCheck = [ - "verboselogs" - ]; + pythonImportsCheck = [ "verboselogs" ]; disabledTests = [ # Do not run pylint plugin test diff --git a/pkgs/development/python-modules/verlib2/default.nix b/pkgs/development/python-modules/verlib2/default.nix index 41c1d95eff25..a98383089f89 100644 --- a/pkgs/development/python-modules/verlib2/default.nix +++ b/pkgs/development/python-modules/verlib2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, versioningit +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + versioningit, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/versioneer/default.nix b/pkgs/development/python-modules/versioneer/default.nix index 6bd7384c9890..d98aa5ab71d1 100644 --- a/pkgs/development/python-modules/versioneer/default.nix +++ b/pkgs/development/python-modules/versioneer/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, tomli +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + tomli, }: buildPythonPackage rec { @@ -20,24 +21,16 @@ buildPythonPackage rec { hash = "sha256-3b7Wfhd24Vym5XCeN/M1832Q1VzvlWi3quTRaZrID2s="; }; - nativeBuildInputs = [ - setuptools - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + nativeBuildInputs = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; passthru.optional-dependencies = { - toml = lib.optionals (pythonOlder "3.11") [ - tomli - ]; + toml = lib.optionals (pythonOlder "3.11") [ tomli ]; }; # Couldn't get tests to work because, for instance, they used virtualenv and pip doCheck = false; - pythonImportsCheck = [ - "versioneer" - ]; + pythonImportsCheck = [ "versioneer" ]; meta = with lib; { description = "Version-string management for VCS-controlled trees"; diff --git a/pkgs/development/python-modules/versionfinder/default.nix b/pkgs/development/python-modules/versionfinder/default.nix index 1930b14edad6..2672fc20f99e 100644 --- a/pkgs/development/python-modules/versionfinder/default.nix +++ b/pkgs/development/python-modules/versionfinder/default.nix @@ -1,12 +1,13 @@ -{ lib -, backoff -, buildPythonPackage -, fetchFromGitHub -, gitpython -, pip -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + backoff, + buildPythonPackage, + fetchFromGitHub, + gitpython, + pip, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -44,9 +45,7 @@ buildPythonPackage rec { "TestFindPipInfo" ]; - pythonImportsCheck = [ - "versionfinder" - ]; + pythonImportsCheck = [ "versionfinder" ]; meta = with lib; { description = "Find the version of another package, whether installed via pip, setuptools or git"; diff --git a/pkgs/development/python-modules/versioningit/default.nix b/pkgs/development/python-modules/versioningit/default.nix index f5c6180b2344..dbbe59f5f60d 100644 --- a/pkgs/development/python-modules/versioningit/default.nix +++ b/pkgs/development/python-modules/versioningit/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, importlib-metadata -, packaging -, tomli -, pytestCheckHook -, build -, hatchling -, pydantic -, pytest-mock -, setuptools -, git -, mercurial +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + importlib-metadata, + packaging, + tomli, + pytestCheckHook, + build, + hatchling, + pydantic, + pytest-mock, + setuptools, + git, + mercurial, }: buildPythonPackage rec { @@ -34,17 +35,12 @@ buildPythonPackage rec { --replace "--no-cov-on-fail" "" ''; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - propagatedBuildInputs = [ - packaging - ] ++ lib.optionals (pythonOlder "3.10") [ - importlib-metadata - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = + [ packaging ] + ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ pytestCheckHook @@ -62,16 +58,14 @@ buildPythonPackage rec { "test_editable_mode" ]; - pythonImportsCheck = [ - "versioningit" - ]; + pythonImportsCheck = [ "versioningit" ]; meta = with lib; { description = "setuptools plugin for determining package version from VCS"; mainProgram = "versioningit"; homepage = "https://github.com/jwodder/versioningit"; changelog = "https://versioningit.readthedocs.io/en/latest/changelog.html"; - license = licenses.mit; + license = licenses.mit; maintainers = with maintainers; [ DeeUnderscore ]; }; } diff --git a/pkgs/development/python-modules/versiontag/default.nix b/pkgs/development/python-modules/versiontag/default.nix index 76024a9e8795..6a50c7996dd8 100644 --- a/pkgs/development/python-modules/versiontag/default.nix +++ b/pkgs/development/python-modules/versiontag/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, git }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + git, +}: buildPythonPackage rec { pname = "versiontag"; diff --git a/pkgs/development/python-modules/versiontools/default.nix b/pkgs/development/python-modules/versiontools/default.nix index 3f7afae09fd7..d2e3d84727f1 100644 --- a/pkgs/development/python-modules/versiontools/default.nix +++ b/pkgs/development/python-modules/versiontools/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, }: buildPythonPackage rec { @@ -21,5 +22,4 @@ buildPythonPackage rec { description = "Smart replacement for plain tuple used in __version__"; license = licenses.lgpl2; }; - } diff --git a/pkgs/development/python-modules/verspec/default.nix b/pkgs/development/python-modules/verspec/default.nix index d8bd972a9963..4064f1a18cae 100644 --- a/pkgs/development/python-modules/verspec/default.nix +++ b/pkgs/development/python-modules/verspec/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pretend -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pretend, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,15 +29,16 @@ buildPythonPackage rec { "test/test_specifiers.py" ]; - pythonImportsCheck = [ - "verspec" - ]; + pythonImportsCheck = [ "verspec" ]; meta = with lib; { description = "Flexible version handling"; homepage = "https://github.com/jimporter/verspec"; changelog = "https://github.com/jimporter/averspec/releases/tag/v${version}"; - license = with licenses; [ bsd2 /* and */ asl20 ]; + license = with licenses; [ + bsd2 # and + asl20 + ]; maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/development/python-modules/vertica-python/default.nix b/pkgs/development/python-modules/vertica-python/default.nix index 8ea7ef738de0..ac2dc4d195fc 100644 --- a/pkgs/development/python-modules/vertica-python/default.nix +++ b/pkgs/development/python-modules/vertica-python/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, future -, mock -, parameterized -, pytestCheckHook -, python-dateutil -, pythonOlder -, six +{ + lib, + buildPythonPackage, + fetchPypi, + future, + mock, + parameterized, + pytestCheckHook, + python-dateutil, + pythonOlder, + six, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { "vertica_python/tests/integration_tests" ]; - pythonImportsCheck = [ - "vertica_python" - ]; + pythonImportsCheck = [ "vertica_python" ]; meta = with lib; { description = "Native Python client for Vertica database"; diff --git a/pkgs/development/python-modules/veryprettytable/default.nix b/pkgs/development/python-modules/veryprettytable/default.nix index 7d87c6737646..3ee759035813 100644 --- a/pkgs/development/python-modules/veryprettytable/default.nix +++ b/pkgs/development/python-modules/veryprettytable/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, termcolor -, colorama +{ + lib, + buildPythonPackage, + fetchPypi, + termcolor, + colorama, }: buildPythonPackage rec { @@ -15,12 +16,14 @@ buildPythonPackage rec { sha256 = "1k1rifz8x6qcicmx2is9vgxcj0qb2f5pvzrp7zhmvbmci3yack3f"; }; - propagatedBuildInputs = [ termcolor colorama ]; + propagatedBuildInputs = [ + termcolor + colorama + ]; meta = with lib; { description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format"; homepage = "https://github.com/smeggingsmegger/VeryPrettyTable"; license = licenses.free; }; - } diff --git a/pkgs/development/python-modules/vg/default.nix b/pkgs/development/python-modules/vg/default.nix index efda04f78b9d..a1695da99aed 100644 --- a/pkgs/development/python-modules/vg/default.nix +++ b/pkgs/development/python-modules/vg/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, poetry-core -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + poetry-core, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -27,21 +28,13 @@ buildPythonPackage rec { --replace 'requires = ["setuptools", "poetry-core>=1.0.0"]' 'requires = ["poetry-core>=1.0.0"]' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "vg" - ]; + pythonImportsCheck = [ "vg" ]; meta = with lib; { description = "Linear algebra for humans: a very good vector-geometry and linear-algebra toolbelt"; diff --git a/pkgs/development/python-modules/vharfbuzz/default.nix b/pkgs/development/python-modules/vharfbuzz/default.nix index 6551ef2cbb7a..5d41a3a2e57b 100644 --- a/pkgs/development/python-modules/vharfbuzz/default.nix +++ b/pkgs/development/python-modules/vharfbuzz/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fonttools -, pythonImportsCheckHook -, uharfbuzz +{ + lib, + buildPythonPackage, + fetchPypi, + fonttools, + pythonImportsCheckHook, + uharfbuzz, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { fonttools uharfbuzz ]; - nativeBuildInputs = [ - pythonImportsCheckHook - ]; + nativeBuildInputs = [ pythonImportsCheckHook ]; # Package has no tests. doCheck = false; @@ -35,4 +34,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ danc86 ]; }; } - diff --git a/pkgs/development/python-modules/videocr/default.nix b/pkgs/development/python-modules/videocr/default.nix index 1f027563d480..cb388dd66d00 100644 --- a/pkgs/development/python-modules/videocr/default.nix +++ b/pkgs/development/python-modules/videocr/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, levenshtein -, pytesseract -, opencv4 -, fuzzywuzzy +{ + lib, + buildPythonPackage, + fetchPypi, + levenshtein, + pytesseract, + opencv4, + fuzzywuzzy, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/vidstab/default.nix b/pkgs/development/python-modules/vidstab/default.nix index b16a5374c10b..fb41510d12dd 100644 --- a/pkgs/development/python-modules/vidstab/default.nix +++ b/pkgs/development/python-modules/vidstab/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, numpy -, pandas -, imutils -, progress -, matplotlib +{ + lib, + buildPythonPackage, + fetchPypi, + numpy, + pandas, + imutils, + progress, + matplotlib, }: buildPythonPackage rec { @@ -18,7 +19,13 @@ buildPythonPackage rec { sha256 = "865c4a097e2a8527aa8bfc96ab0bcc0d280a88cc93eabcc36531268f5d343ce1"; }; - propagatedBuildInputs = [ numpy pandas imutils progress matplotlib ]; + propagatedBuildInputs = [ + numpy + pandas + imutils + progress + matplotlib + ]; # tests not packaged with pypi doCheck = false; diff --git a/pkgs/development/python-modules/viewstate/default.nix b/pkgs/development/python-modules/viewstate/default.nix index aac82239e94e..27cb972bb780 100644 --- a/pkgs/development/python-modules/viewstate/default.nix +++ b/pkgs/development/python-modules/viewstate/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchFromGitHub -, isPy3k -, lib -, pytest +{ + buildPythonPackage, + fetchFromGitHub, + isPy3k, + lib, + pytest, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { sha256 = "15s0n1lhkz0zwi33waqkkjipal3f7s45rxsj1bw89xpr4dj87qx5"; }; - nativeCheckInputs = [ - pytest - ]; + nativeCheckInputs = [ pytest ]; checkPhase = '' pytest @@ -30,8 +29,6 @@ buildPythonPackage rec { description = ".NET viewstate decoder"; homepage = "https://github.com/yuvadm/viewstate"; license = lib.licenses.mit; - maintainers = with lib.maintainers; [ - kamadorueda - ]; + maintainers = with lib.maintainers; [ kamadorueda ]; }; } diff --git a/pkgs/development/python-modules/vilfo-api-client/default.nix b/pkgs/development/python-modules/vilfo-api-client/default.nix index b4b9f77304ef..d8d93c6fa390 100644 --- a/pkgs/development/python-modules/vilfo-api-client/default.nix +++ b/pkgs/development/python-modules/vilfo-api-client/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, getmac -, requests -, semver -, pytestCheckHook -, responses +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + getmac, + requests, + semver, + pytestCheckHook, + responses, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { --replace "get-mac" "getmac" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ getmac diff --git a/pkgs/development/python-modules/vincenty/default.nix b/pkgs/development/python-modules/vincenty/default.nix index 8e1022cc5eb7..c4e28ff23f44 100644 --- a/pkgs/development/python-modules/vincenty/default.nix +++ b/pkgs/development/python-modules/vincenty/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/vine/default.nix b/pkgs/development/python-modules/vine/default.nix index 46330ac4247b..eda027cbc4f3 100644 --- a/pkgs/development/python-modules/vine/default.nix +++ b/pkgs/development/python-modules/vine/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, case -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + case, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { "t/unit/test_synchronization.py" ]; - pythonImportsCheck = [ - "vine" - ]; + pythonImportsCheck = [ "vine" ]; meta = with lib; { description = "Python promises"; diff --git a/pkgs/development/python-modules/virt-firmware/default.nix b/pkgs/development/python-modules/virt-firmware/default.nix index f319de6370fb..960a2327586a 100644 --- a/pkgs/development/python-modules/virt-firmware/default.nix +++ b/pkgs/development/python-modules/virt-firmware/default.nix @@ -1,12 +1,13 @@ -{ lib -, pkgs -, stdenv -, buildPythonPackage -, fetchPypi -, setuptools -, cryptography -, pytestCheckHook -, pefile +{ + lib, + pkgs, + stdenv, + buildPythonPackage, + fetchPypi, + setuptools, + cryptography, + pytestCheckHook, + pefile, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-rqhaKDOQEOj6bcRz3qZJ+a4yG1qTC9SUjuxMhZlnmwU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ setuptools @@ -45,6 +44,9 @@ buildPythonPackage rec { description = "Tools for virtual machine firmware volumes"; homepage = "https://gitlab.com/kraxel/virt-firmware"; license = licenses.gpl2; - maintainers = with maintainers; [ lheckemann raitobezarius ]; + maintainers = with maintainers; [ + lheckemann + raitobezarius + ]; }; } diff --git a/pkgs/development/python-modules/virtkey/default.nix b/pkgs/development/python-modules/virtkey/default.nix index df1d0461e434..4815ce63413f 100644 --- a/pkgs/development/python-modules/virtkey/default.nix +++ b/pkgs/development/python-modules/virtkey/default.nix @@ -1,9 +1,22 @@ -{ stdenv, lib, buildPythonPackage, fetchurl, pkg-config, gtk2, libX11, libXtst, libXi, libxkbfile, xorgproto }: +{ + stdenv, + lib, + buildPythonPackage, + fetchurl, + pkg-config, + gtk2, + libX11, + libXtst, + libXi, + libxkbfile, + xorgproto, +}: let majorVersion = "0.63"; minorVersion = "0"; -in buildPythonPackage rec { +in +buildPythonPackage rec { pname = "virtkey"; version = "${majorVersion}.${minorVersion}"; format = "setuptools"; @@ -15,7 +28,14 @@ in buildPythonPackage rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ gtk2 libX11 libXtst libXi libxkbfile xorgproto ]; + buildInputs = [ + gtk2 + libX11 + libXtst + libXi + libxkbfile + xorgproto + ]; meta = with lib; { broken = stdenv.isDarwin; diff --git a/pkgs/development/python-modules/virtualenv-clone/default.nix b/pkgs/development/python-modules/virtualenv-clone/default.nix index 2ae7abe457db..2e1e864cb81b 100644 --- a/pkgs/development/python-modules/virtualenv-clone/default.nix +++ b/pkgs/development/python-modules/virtualenv-clone/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, virtualenv -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + virtualenv, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { --replace "'virtualenv'" "'${virtualenv}/bin/virtualenv'" ''; - propagatedBuildInputs = [ - virtualenv - ]; + propagatedBuildInputs = [ virtualenv ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { homepage = "https://github.com/edwardgeorge/virtualenv-clone"; diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix index d2b60338121b..54b6c320db6f 100644 --- a/pkgs/development/python-modules/virtualenv/default.nix +++ b/pkgs/development/python-modules/virtualenv/default.nix @@ -1,22 +1,23 @@ -{ lib -, buildPythonPackage -, pythonOlder -, isPy27 -, isPyPy -, cython -, distlib -, fetchPypi -, filelock -, flaky -, hatch-vcs -, hatchling -, importlib-metadata -, platformdirs -, pytest-freezegun -, pytest-mock -, pytest-timeout -, pytestCheckHook -, time-machine +{ + lib, + buildPythonPackage, + pythonOlder, + isPy27, + isPyPy, + cython, + distlib, + fetchPypi, + filelock, + flaky, + hatch-vcs, + hatchling, + importlib-metadata, + platformdirs, + pytest-freezegun, + pytest-mock, + pytest-timeout, + pytestCheckHook, + time-machine, }: buildPythonPackage rec { @@ -40,9 +41,7 @@ buildPythonPackage rec { distlib filelock platformdirs - ] ++ lib.optionals (pythonOlder "3.8") [ - importlib-metadata - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; nativeCheckInputs = [ cython @@ -51,9 +50,7 @@ buildPythonPackage rec { pytest-mock pytest-timeout pytestCheckHook - ] ++ lib.optionals (!isPyPy) [ - time-machine - ]; + ] ++ lib.optionals (!isPyPy) [ time-machine ]; preCheck = '' export HOME=$(mktemp -d) @@ -65,26 +62,25 @@ buildPythonPackage rec { "tests/unit/seed/embed/test_bootstrap_link_via_app_data.py" ]; - disabledTests = [ - # Network access - "test_create_no_seed" - "test_seed_link_via_app_data" - # Permission Error - "test_bad_exe_py_info_no_raise" - ] ++ lib.optionals (pythonOlder "3.11") [ - "test_help" - ] ++ lib.optionals (isPyPy) [ - # encoding problems - "test_bash" - # permission error - "test_can_build_c_extensions" - # fails to detect pypy version - "test_discover_ok" - ]; + disabledTests = + [ + # Network access + "test_create_no_seed" + "test_seed_link_via_app_data" + # Permission Error + "test_bad_exe_py_info_no_raise" + ] + ++ lib.optionals (pythonOlder "3.11") [ "test_help" ] + ++ lib.optionals (isPyPy) [ + # encoding problems + "test_bash" + # permission error + "test_can_build_c_extensions" + # fails to detect pypy version + "test_discover_ok" + ]; - pythonImportsCheck = [ - "virtualenv" - ]; + pythonImportsCheck = [ "virtualenv" ]; meta = with lib; { description = "A tool to create isolated Python environments"; diff --git a/pkgs/development/python-modules/virtualenvwrapper/default.nix b/pkgs/development/python-modules/virtualenvwrapper/default.nix index c7f6dad7c8ce..62f6315880fa 100644 --- a/pkgs/development/python-modules/virtualenvwrapper/default.nix +++ b/pkgs/development/python-modules/virtualenvwrapper/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pbr -, pip -, pkgs -, stevedore -, virtualenv -, virtualenv-clone -, python +{ + lib, + buildPythonPackage, + fetchPypi, + pbr, + pip, + pkgs, + stevedore, + virtualenv, + virtualenv-clone, + python, }: buildPythonPackage rec { @@ -23,8 +24,16 @@ buildPythonPackage rec { # pip depend on $HOME setting preConfigure = "export HOME=$TMPDIR"; - buildInputs = [ pbr pip pkgs.which ]; - propagatedBuildInputs = [ stevedore virtualenv virtualenv-clone ]; + buildInputs = [ + pbr + pip + pkgs.which + ]; + propagatedBuildInputs = [ + stevedore + virtualenv + virtualenv-clone + ]; postPatch = '' for file in "virtualenvwrapper.sh" "virtualenvwrapper_lazy.sh"; do @@ -46,25 +55,25 @@ buildPythonPackage rec { ''; postInstall = '' - # This might look like a dirty hack but we can't use the makeWrapper function because - # the wrapped file were then called via "exec". The virtualenvwrapper shell scripts - # aren't normal executables. Instead, the user has to evaluate them. + # This might look like a dirty hack but we can't use the makeWrapper function because + # the wrapped file were then called via "exec". The virtualenvwrapper shell scripts + # aren't normal executables. Instead, the user has to evaluate them. - for file in "virtualenvwrapper.sh" "virtualenvwrapper_lazy.sh"; do - local wrapper="$out/bin/$file" - local wrapped="$out/bin/.$file-wrapped" - mv "$wrapper" "$wrapped" + for file in "virtualenvwrapper.sh" "virtualenvwrapper_lazy.sh"; do + local wrapper="$out/bin/$file" + local wrapped="$out/bin/.$file-wrapped" + mv "$wrapper" "$wrapped" - # WARNING: Don't indent the lines below because that would break EOF - cat > "$wrapper" << EOF -export PATH="${python}/bin:\$PATH" -export VIRTUALENVWRAPPER_PYTHONPATH="$PYTHONPATH:$(toPythonPath $out)" -source "$wrapped" -EOF + # WARNING: Don't indent the lines below because that would break EOF + cat > "$wrapper" << EOF + export PATH="${python}/bin:\$PATH" + export VIRTUALENVWRAPPER_PYTHONPATH="$PYTHONPATH:$(toPythonPath $out)" + source "$wrapped" + EOF - chmod -x "$wrapped" - chmod +x "$wrapper" - done + chmod -x "$wrapped" + chmod +x "$wrapper" + done ''; meta = with lib; { @@ -72,5 +81,4 @@ EOF homepage = "https://pypi.python.org/pypi/virtualenvwrapper"; license = licenses.mit; }; - } diff --git a/pkgs/development/python-modules/visitor/default.nix b/pkgs/development/python-modules/visitor/default.nix index e0caa64b2b10..95e9961303e0 100644 --- a/pkgs/development/python-modules/visitor/default.nix +++ b/pkgs/development/python-modules/visitor/default.nix @@ -1,4 +1,8 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ + lib, + buildPythonPackage, + fetchPypi, +}: buildPythonPackage rec { pname = "visitor"; diff --git a/pkgs/development/python-modules/vispy/default.nix b/pkgs/development/python-modules/vispy/default.nix index e25133dfda5b..36833c75ff48 100644 --- a/pkgs/development/python-modules/vispy/default.nix +++ b/pkgs/development/python-modules/vispy/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, substituteAll -, fetchPypi -, cython -, fontconfig -, freetype-py -, hsluv -, kiwisolver -, libGL -, numpy -, oldest-supported-numpy -, packaging -, pythonOlder -, setuptools -, setuptools-scm -, wheel +{ + lib, + stdenv, + buildPythonPackage, + substituteAll, + fetchPypi, + cython, + fontconfig, + freetype-py, + hsluv, + kiwisolver, + libGL, + numpy, + oldest-supported-numpy, + packaging, + pythonOlder, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { @@ -46,9 +47,7 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - libGL - ]; + buildInputs = [ libGL ]; propagatedBuildInputs = [ freetype-py @@ -58,7 +57,7 @@ buildPythonPackage rec { packaging ]; - doCheck = false; # otherwise runs OSX code on linux. + doCheck = false; # otherwise runs OSX code on linux. pythonImportsCheck = [ "vispy" diff --git a/pkgs/development/python-modules/viv-utils/default.nix b/pkgs/development/python-modules/viv-utils/default.nix index e411a2dd5758..cc4089cb35af 100644 --- a/pkgs/development/python-modules/viv-utils/default.nix +++ b/pkgs/development/python-modules/viv-utils/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, funcy -, intervaltree -, pefile -, typing-extensions -, vivisect -, pytest-sugar -, pytestCheckHook -, python-flirt +{ + lib, + buildPythonPackage, + fetchFromGitHub, + funcy, + intervaltree, + pefile, + typing-extensions, + vivisect, + pytest-sugar, + pytestCheckHook, + python-flirt, }: buildPythonPackage rec { pname = "viv-utils"; @@ -42,9 +43,7 @@ buildPythonPackage rec { passthru = { optional-dependencies = { - flirt = [ - python-flirt - ]; + flirt = [ python-flirt ]; }; }; diff --git a/pkgs/development/python-modules/vivisect/default.nix b/pkgs/development/python-modules/vivisect/default.nix index bf281f374c50..b5b93f3ccd22 100644 --- a/pkgs/development/python-modules/vivisect/default.nix +++ b/pkgs/development/python-modules/vivisect/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cxxfilt -, fetchPypi -, msgpack -, pyasn1 -, pyasn1-modules -, pycparser -, pyqt5 -, pythonRelaxDepsHook -, pyqtwebengine -, pythonOlder -, withGui ? false -, wrapQtAppsHook +{ + lib, + buildPythonPackage, + cxxfilt, + fetchPypi, + msgpack, + pyasn1, + pyasn1-modules, + pycparser, + pyqt5, + pythonRelaxDepsHook, + pyqtwebengine, + pythonOlder, + withGui ? false, + wrapQtAppsHook, }: buildPythonPackage rec { @@ -57,9 +58,7 @@ buildPythonPackage rec { # requires another repo for test files doCheck = false; - pythonImportsCheck = [ - "vivisect" - ]; + pythonImportsCheck = [ "vivisect" ]; meta = with lib; { description = "Python disassembler, debugger, emulator, and static analysis framework"; diff --git a/pkgs/development/python-modules/vllm/default.nix b/pkgs/development/python-modules/vllm/default.nix index ce739e1d6dd2..8b06a66c1d01 100644 --- a/pkgs/development/python-modules/vllm/default.nix +++ b/pkgs/development/python-modules/vllm/default.nix @@ -1,38 +1,39 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, which -, ninja -, packaging -, setuptools -, torch -, outlines -, wheel -, psutil -, ray -, pandas -, pyarrow -, sentencepiece -, numpy -, transformers -, xformers -, fastapi -, uvicorn -, pydantic -, aioprometheus -, pynvml -, cupy -, writeShellScript +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + which, + ninja, + packaging, + setuptools, + torch, + outlines, + wheel, + psutil, + ray, + pandas, + pyarrow, + sentencepiece, + numpy, + transformers, + xformers, + fastapi, + uvicorn, + pydantic, + aioprometheus, + pynvml, + cupy, + writeShellScript, -, config + config, -, cudaSupport ? config.cudaSupport -, cudaPackages ? {} + cudaSupport ? config.cudaSupport, + cudaPackages ? { }, -, rocmSupport ? config.rocmSupport -, rocmPackages ? {} -, gpuTargets ? [] + rocmSupport ? config.rocmSupport, + rocmPackages ? { }, + gpuTargets ? [ ], }: buildPythonPackage rec { @@ -48,7 +49,9 @@ buildPythonPackage rec { }; # Otherwise it tries to enumerate host supported ROCM gfx archs, and that is not possible due to sandboxing. - PYTORCH_ROCM_ARCH = lib.optionalString rocmSupport (lib.strings.concatStringsSep ";" rocmPackages.clr.gpuTargets); + PYTORCH_ROCM_ARCH = lib.optionalString rocmSupport ( + lib.strings.concatStringsSep ";" rocmPackages.clr.gpuTargets + ); # xformers 0.0.23.post1 github release specifies its version as 0.0.24 # @@ -57,29 +60,32 @@ buildPythonPackage rec { # https://github.com/vllm-project/vllm/pull/2845/commits/34a0ad7f9bb7880c0daa2992d700df3e01e91363 # # hipcc --version works badly on NixOS due to unresolved paths. - postPatch = '' - substituteInPlace requirements.txt \ - --replace "xformers == 0.0.23.post1" "xformers == 0.0.24" - substituteInPlace requirements.txt \ - --replace "cupy-cuda12x == 12.1.0" "cupy == 12.3.0" - substituteInPlace requirements-build.txt \ - --replace "torch==2.1.2" "torch == 2.2.1" - substituteInPlace pyproject.toml \ - --replace "torch == 2.1.2" "torch == 2.2.1" - substituteInPlace requirements.txt \ - --replace "torch == 2.1.2" "torch == 2.2.1" - '' + lib.optionalString rocmSupport '' - substituteInPlace setup.py \ - --replace "'hipcc', '--version'" "'${writeShellScript "hipcc-version-stub" "echo HIP version: 0.0"}'" - ''; + postPatch = + '' + substituteInPlace requirements.txt \ + --replace "xformers == 0.0.23.post1" "xformers == 0.0.24" + substituteInPlace requirements.txt \ + --replace "cupy-cuda12x == 12.1.0" "cupy == 12.3.0" + substituteInPlace requirements-build.txt \ + --replace "torch==2.1.2" "torch == 2.2.1" + substituteInPlace pyproject.toml \ + --replace "torch == 2.1.2" "torch == 2.2.1" + substituteInPlace requirements.txt \ + --replace "torch == 2.1.2" "torch == 2.2.1" + '' + + lib.optionalString rocmSupport '' + substituteInPlace setup.py \ + --replace "'hipcc', '--version'" "'${writeShellScript "hipcc-version-stub" "echo HIP version: 0.0"}'" + ''; - preBuild = lib.optionalString cudaSupport '' - export CUDA_HOME=${cudaPackages.cuda_nvcc} - '' - + lib.optionalString rocmSupport '' - export ROCM_HOME=${rocmPackages.clr} - export PATH=$PATH:${rocmPackages.hipcc} - ''; + preBuild = + lib.optionalString cudaSupport '' + export CUDA_HOME=${cudaPackages.cuda_nvcc} + '' + + lib.optionalString rocmSupport '' + export ROCM_HOME=${rocmPackages.clr} + export PATH=$PATH:${rocmPackages.hipcc} + ''; nativeBuildInputs = [ ninja @@ -88,40 +94,48 @@ buildPythonPackage rec { torch wheel which - ] ++ lib.optionals rocmSupport [ - rocmPackages.hipcc - ]; + ] ++ lib.optionals rocmSupport [ rocmPackages.hipcc ]; - buildInputs = (lib.optionals cudaSupport (with cudaPackages; [ - cuda_cudart # cuda_runtime.h, -lcudart - cuda_cccl.dev # - libcusparse.dev # cusparse.h - libcublas.dev # cublas_v2.h - libcusolver # cusolverDn.h - ])) ++ (lib.optionals rocmSupport (with rocmPackages; [ - clr - rocthrust - rocprim - hipsparse - hipblas - ])); + buildInputs = + (lib.optionals cudaSupport ( + with cudaPackages; + [ + cuda_cudart # cuda_runtime.h, -lcudart + cuda_cccl.dev # + libcusparse.dev # cusparse.h + libcublas.dev # cublas_v2.h + libcusolver # cusolverDn.h + ] + )) + ++ (lib.optionals rocmSupport ( + with rocmPackages; + [ + clr + rocthrust + rocprim + hipsparse + hipblas + ] + )); - propagatedBuildInputs = [ - psutil - ray - pandas - pyarrow - sentencepiece - numpy - torch - transformers - outlines - xformers - fastapi - uvicorn - pydantic - aioprometheus - ] ++ uvicorn.optional-dependencies.standard + propagatedBuildInputs = + [ + psutil + ray + pandas + pyarrow + sentencepiece + numpy + torch + transformers + outlines + xformers + fastapi + uvicorn + pydantic + aioprometheus + ] + ++ uvicorn.optional-dependencies.standard ++ aioprometheus.optional-dependencies.starlette ++ lib.optionals cudaSupport [ pynvml @@ -135,7 +149,10 @@ buildPythonPackage rec { changelog = "https://github.com/vllm-project/vllm/releases/tag/v${version}"; homepage = "https://github.com/vllm-project/vllm"; license = licenses.asl20; - maintainers = with maintainers; [ happysalada lach ]; + maintainers = with maintainers; [ + happysalada + lach + ]; broken = !cudaSupport && !rocmSupport; }; } diff --git a/pkgs/development/python-modules/vncdo/default.nix b/pkgs/development/python-modules/vncdo/default.nix index 2fbee9f2d65a..34b1dd36027d 100644 --- a/pkgs/development/python-modules/vncdo/default.nix +++ b/pkgs/development/python-modules/vncdo/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pexpect -, pillow -, pycryptodomex -, pytestCheckHook -, pythonOlder -, pyvirtualdisplay -, setuptools -, twisted +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pexpect, + pillow, + pycryptodomex, + pytestCheckHook, + pythonOlder, + pyvirtualdisplay, + setuptools, + twisted, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-QrD6z/g85FwaZCJ1PRn8CBKCOQcbVjQ9g0NpPIxguqk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pillow @@ -41,9 +40,7 @@ buildPythonPackage rec { pyvirtualdisplay ]; - pythonImportsCheck = [ - "vncdotool" - ]; + pythonImportsCheck = [ "vncdotool" ]; meta = with lib; { description = "A command line VNC client and Python library"; diff --git a/pkgs/development/python-modules/vobject/default.nix b/pkgs/development/python-modules/vobject/default.nix index 50ebd8c52824..5653e5629d40 100644 --- a/pkgs/development/python-modules/vobject/default.nix +++ b/pkgs/development/python-modules/vobject/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchPypi, isPyPy, python, python-dateutil }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + python, + python-dateutil, +}: buildPythonPackage rec { version = "0.9.7"; diff --git a/pkgs/development/python-modules/volatile/default.nix b/pkgs/development/python-modules/volatile/default.nix index 7be5989b159b..a6ccb842979c 100644 --- a/pkgs/development/python-modules/volatile/default.nix +++ b/pkgs/development/python-modules/volatile/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-TYUvr0bscM/FaPk9oiF4Ob7HdKa2HlbpEFmaPfh4ir0="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "volatile" - ]; + pythonImportsCheck = [ "volatile" ]; meta = with lib; { description = "A small extension for the tempfile module"; diff --git a/pkgs/development/python-modules/volkszaehler/default.nix b/pkgs/development/python-modules/volkszaehler/default.nix index 648447536e37..6b14f37d9e08 100644 --- a/pkgs/development/python-modules/volkszaehler/default.nix +++ b/pkgs/development/python-modules/volkszaehler/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-7SB0x0BO9SMeMG1M/hH4fX7oDbtwPgCzyRrrUq1/WPo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; dependencies = [ aiohttp @@ -33,9 +32,7 @@ buildPythonPackage rec { # no tests are present doCheck = false; - pythonImportsCheck = [ - "volkszaehler" - ]; + pythonImportsCheck = [ "volkszaehler" ]; meta = with lib; { description = "Python module for interacting with the Volkszahler API"; diff --git a/pkgs/development/python-modules/voluptuous-serialize/default.nix b/pkgs/development/python-modules/voluptuous-serialize/default.nix index c5e0093f4487..f23b771e8306 100644 --- a/pkgs/development/python-modules/voluptuous-serialize/default.nix +++ b/pkgs/development/python-modules/voluptuous-serialize/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestCheckHook -, voluptuous +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + pytestCheckHook, + voluptuous, }: -buildPythonPackage rec { +buildPythonPackage rec { pname = "voluptuous-serialize"; version = "2.6.0"; format = "setuptools"; @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-vvreXSQDkA3JkZpOKZqJgMRyObJX/cSR8r+A26h9fNE="; }; - propagatedBuildInputs = [ - voluptuous - ]; + propagatedBuildInputs = [ voluptuous ]; - pythonImportsCheck = [ - "voluptuous_serialize" - ]; + pythonImportsCheck = [ "voluptuous_serialize" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Convert Voluptuous schemas to dictionaries so they can be serialized"; diff --git a/pkgs/development/python-modules/voluptuous-stubs/default.nix b/pkgs/development/python-modules/voluptuous-stubs/default.nix index 840a7cc51004..1f77a12b4183 100644 --- a/pkgs/development/python-modules/voluptuous-stubs/default.nix +++ b/pkgs/development/python-modules/voluptuous-stubs/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mypy +{ + lib, + buildPythonPackage, + fetchPypi, + mypy, }: buildPythonPackage rec { @@ -14,13 +15,9 @@ buildPythonPackage rec { hash = "sha256-cPscCIJC8g4RAjJStWSM13+DH2ks2RDI+XE8wTXPjMg="; }; - nativeBuildInputs = [ - mypy - ]; + nativeBuildInputs = [ mypy ]; - pythonImportsCheck = [ - "voluptuous-stubs" - ]; + pythonImportsCheck = [ "voluptuous-stubs" ]; doCheck = false; diff --git a/pkgs/development/python-modules/voluptuous/default.nix b/pkgs/development/python-modules/voluptuous/default.nix index 1f9d53412d3d..fb86d84a9dcd 100644 --- a/pkgs/development/python-modules/voluptuous/default.nix +++ b/pkgs/development/python-modules/voluptuous/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-2a4lid9NibbvhHfs/fcyHgPRZ2HirIKuPYxMsl5oA4o="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "voluptuous" - ]; + pythonImportsCheck = [ "voluptuous" ]; - pytestFlagsArray = [ - "voluptuous/tests/" - ]; + pytestFlagsArray = [ "voluptuous/tests/" ]; meta = with lib; { description = "Python data validation library"; diff --git a/pkgs/development/python-modules/volvooncall/default.nix b/pkgs/development/python-modules/volvooncall/default.nix index 33efbf4082ac..c3189b86623e 100644 --- a/pkgs/development/python-modules/volvooncall/default.nix +++ b/pkgs/development/python-modules/volvooncall/default.nix @@ -1,18 +1,19 @@ -{ lib -, aiohttp -, amqtt -, buildPythonPackage -, certifi -, docopt -, fetchFromGitHub -, fetchpatch -, geopy -, mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, websockets +{ + lib, + aiohttp, + amqtt, + buildPythonPackage, + certifi, + docopt, + fetchFromGitHub, + fetchpatch, + geopy, + mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + websockets, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; passthru.optional-dependencies = { console = [ @@ -60,9 +59,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.mqtt; - pythonImportsCheck = [ - "volvooncall" - ]; + pythonImportsCheck = [ "volvooncall" ]; meta = with lib; { description = "Retrieve information from the Volvo On Call web service"; diff --git a/pkgs/development/python-modules/vowpalwabbit/default.nix b/pkgs/development/python-modules/vowpalwabbit/default.nix index aae1d3fdf237..55ce92388f50 100644 --- a/pkgs/development/python-modules/vowpalwabbit/default.nix +++ b/pkgs/development/python-modules/vowpalwabbit/default.nix @@ -1,19 +1,20 @@ -{ stdenv -, lib -, fetchPypi -, buildPythonPackage -, cmake -, python -, zlib -, ncurses -, docutils -, pygments -, numpy -, scipy -, scikit-learn -, spdlog -, fmt -, rapidjson +{ + stdenv, + lib, + fetchPypi, + buildPythonPackage, + cmake, + python, + zlib, + ncurses, + docutils, + pygments, + numpy, + scipy, + scikit-learn, + spdlog, + fmt, + rapidjson, }: buildPythonPackage rec { @@ -21,14 +22,12 @@ buildPythonPackage rec { version = "9.9.0"; format = "setuptools"; - src = fetchPypi{ + src = fetchPypi { inherit pname version; hash = "sha256-YCg2EI4rhEMwcVEzx9ES8Z3CoCddeUFVk4lZ0nuQJUc="; }; - nativeBuildInputs = [ - cmake - ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ docutils @@ -68,9 +67,9 @@ buildPythonPackage rec { meta = with lib; { description = "Vowpal Wabbit is a fast machine learning library for online learning, and this is the python wrapper for the project."; - homepage = "https://github.com/JohnLangford/vowpal_wabbit"; - license = licenses.bsd3; - broken = stdenv.isAarch64; + homepage = "https://github.com/JohnLangford/vowpal_wabbit"; + license = licenses.bsd3; + broken = stdenv.isAarch64; maintainers = with maintainers; [ teh ]; }; } diff --git a/pkgs/development/python-modules/vpk/default.nix b/pkgs/development/python-modules/vpk/default.nix index 5a3a841a064d..188ef50b36f1 100644 --- a/pkgs/development/python-modules/vpk/default.nix +++ b/pkgs/development/python-modules/vpk/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-SPkPb8kveAR2cN9kd2plS+TjmBYBCfa6pJ0c22l69M0="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Library for working with Valve Pak files"; diff --git a/pkgs/development/python-modules/vprof/default.nix b/pkgs/development/python-modules/vprof/default.nix index 1f41f7b9a203..9454a25ad81a 100644 --- a/pkgs/development/python-modules/vprof/default.nix +++ b/pkgs/development/python-modules/vprof/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, wheel -, psutil +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, + psutil, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { wheel ]; - propagatedBuildInputs = [ - psutil - ]; + propagatedBuildInputs = [ psutil ]; pythonImportsCheck = [ "vprof" ]; diff --git a/pkgs/development/python-modules/vqgan-jax/default.nix b/pkgs/development/python-modules/vqgan-jax/default.nix index e917230b62b3..87a16ca58bf5 100644 --- a/pkgs/development/python-modules/vqgan-jax/default.nix +++ b/pkgs/development/python-modules/vqgan-jax/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flax -, jax -, jaxlib -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flax, + jax, + jaxlib, + transformers, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { format = "setuptools"; - buildInputs = [ - jaxlib - ]; + buildInputs = [ jaxlib ]; propagatedBuildInputs = [ flax @@ -32,9 +31,7 @@ buildPythonPackage rec { doCheck = false; - pythonImportsCheck = [ - "vqgan_jax" - ]; + pythonImportsCheck = [ "vqgan_jax" ]; meta = with lib; { description = "JAX implementation of VQGAN"; diff --git a/pkgs/development/python-modules/vsts-cd-manager/default.nix b/pkgs/development/python-modules/vsts-cd-manager/default.nix index 8b4e036ac8f7..bd6b7d782967 100644 --- a/pkgs/development/python-modules/vsts-cd-manager/default.nix +++ b/pkgs/development/python-modules/vsts-cd-manager/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, msrest -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + msrest, + mock, }: buildPythonPackage rec { @@ -12,7 +16,10 @@ buildPythonPackage rec { sha256 = "0ys4hrmjbxl4qr26qr3dhhs27yfwn1635vwjdqh1qgjmrmcr1c0b"; }; - propagatedBuildInputs = [ msrest mock ]; + propagatedBuildInputs = [ + msrest + mock + ]; # no tests included doCheck = false; diff --git a/pkgs/development/python-modules/vsts/default.nix b/pkgs/development/python-modules/vsts/default.nix index e91a203d7f14..f56b9d33191f 100644 --- a/pkgs/development/python-modules/vsts/default.nix +++ b/pkgs/development/python-modules/vsts/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, lib -, python -, fetchPypi -, msrest +{ + buildPythonPackage, + lib, + python, + fetchPypi, + msrest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/vsure/default.nix b/pkgs/development/python-modules/vsure/default.nix index 941c753f0e50..837a13f38b44 100644 --- a/pkgs/development/python-modules/vsure/default.nix +++ b/pkgs/development/python-modules/vsure/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, click -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + click, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "verisure" - ]; + pythonImportsCheck = [ "verisure" ]; meta = with lib; { description = "Python library for working with verisure devices"; diff --git a/pkgs/development/python-modules/vtjp/default.nix b/pkgs/development/python-modules/vtjp/default.nix index 006374ee4ec7..64060f202367 100644 --- a/pkgs/development/python-modules/vtjp/default.nix +++ b/pkgs/development/python-modules/vtjp/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools -, tabulate +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, + tabulate, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-3/toHY2PkG87J5bIMNJZHF/4mUvWaeHamMzPa1St7Xo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "vasttrafik" - ]; + pythonImportsCheck = [ "vasttrafik" ]; meta = with lib; { description = "A Python wrapper and cli for Västtrafik public API"; diff --git a/pkgs/development/python-modules/vulcan-api/default.nix b/pkgs/development/python-modules/vulcan-api/default.nix index c04718c1daad..91fb22173469 100644 --- a/pkgs/development/python-modules/vulcan-api/default.nix +++ b/pkgs/development/python-modules/vulcan-api/default.nix @@ -1,18 +1,19 @@ -{ lib -, aenum -, aiodns -, aiohttp -, buildPythonPackage -, faust-cchardet -, fetchFromGitHub -, pyopenssl -, pythonOlder -, pythonRelaxDepsHook -, pytz -, related -, requests -, uonet-request-signer-hebe -, yarl +{ + lib, + aenum, + aiodns, + aiohttp, + buildPythonPackage, + faust-cchardet, + fetchFromGitHub, + pyopenssl, + pythonOlder, + pythonRelaxDepsHook, + pytz, + related, + requests, + uonet-request-signer-hebe, + yarl, }: buildPythonPackage rec { @@ -29,13 +30,9 @@ buildPythonPackage rec { hash = "sha256-ebWKcRxAAkHVqV2RaftIHBRJe/TYSUxS+5Utxb0yhtw="; }; - pythonRemoveDeps = [ - "faust-cchardet" - ]; + pythonRemoveDeps = [ "faust-cchardet" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; propagatedBuildInputs = [ aenum @@ -53,9 +50,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "vulcan" - ]; + pythonImportsCheck = [ "vulcan" ]; meta = with lib; { description = "Python library for UONET+ e-register API"; diff --git a/pkgs/development/python-modules/vultr/default.nix b/pkgs/development/python-modules/vultr/default.nix index f2150153be3a..4e10e0144243 100644 --- a/pkgs/development/python-modules/vultr/default.nix +++ b/pkgs/development/python-modules/vultr/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "00lc5hdhchvm0472p03019bp9541d8y2773xkjy8vblq9qhys8q7"; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests disabled. They fail because they try to access the network doCheck = false; diff --git a/pkgs/development/python-modules/vulture/default.nix b/pkgs/development/python-modules/vulture/default.nix index e3a723ae0743..9a08899a4b2b 100644 --- a/pkgs/development/python-modules/vulture/default.nix +++ b/pkgs/development/python-modules/vulture/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pint -, pytestCheckHook -, pythonOlder -, setuptools -, toml -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + pint, + pytestCheckHook, + pythonOlder, + setuptools, + toml, + tomli, }: buildPythonPackage rec { @@ -26,13 +27,9 @@ buildPythonPackage rec { --replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ - tomli - ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ tomli ]; nativeCheckInputs = [ pint @@ -40,9 +37,7 @@ buildPythonPackage rec { toml ]; - pythonImportsCheck = [ - "vulture" - ]; + pythonImportsCheck = [ "vulture" ]; meta = with lib; { description = "Finds unused code in Python programs"; diff --git a/pkgs/development/python-modules/vxi11/default.nix b/pkgs/development/python-modules/vxi11/default.nix index ff88abb41453..0b3debdd5dd6 100644 --- a/pkgs/development/python-modules/vxi11/default.nix +++ b/pkgs/development/python-modules/vxi11/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchFromGitHub, nose }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + nose, +}: buildPythonPackage rec { pname = "python-vxi11"; diff --git a/pkgs/development/python-modules/w1thermsensor/default.nix b/pkgs/development/python-modules/w1thermsensor/default.nix index 7aa81b158e24..e02dbdcdef3c 100644 --- a/pkgs/development/python-modules/w1thermsensor/default.nix +++ b/pkgs/development/python-modules/w1thermsensor/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pkgs -, setuptools -, aiofiles -, click -, coverage -, tomli -, pytest -, pytest-mock -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pkgs, + setuptools, + aiofiles, + click, + coverage, + tomli, + pytest, + pytest-mock, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -30,34 +31,27 @@ buildPythonPackage rec { sed -i 's/3\.5\.\*/3.5/' setup.py ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - click - ]; + propagatedBuildInputs = [ click ]; passthru.optional-dependencies = { - async = [ - aiofiles - ]; + async = [ aiofiles ]; }; # Don't try to load the kernel module in tests. env.W1THERMSENSOR_NO_KERNEL_MODULE = 1; - nativeCheckInputs = [ - pytest-mock - pytest-asyncio - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.11") [ - tomli - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + nativeCheckInputs = + [ + pytest-mock + pytest-asyncio + pytestCheckHook + ] + ++ lib.optionals (pythonOlder "3.11") [ tomli ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "w1thermsensor" - ]; + pythonImportsCheck = [ "w1thermsensor" ]; meta = with lib; { description = "Python interface to 1-Wire temperature sensors"; diff --git a/pkgs/development/python-modules/w3lib/default.nix b/pkgs/development/python-modules/w3lib/default.nix index 66e48a2b7f29..56db3c2434ed 100644 --- a/pkgs/development/python-modules/w3lib/default.nix +++ b/pkgs/development/python-modules/w3lib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-7Vt06ZfuoqvjwTIfkW40QUTujpBypvM0Y+6OV/hYpLE="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "w3lib" - ]; + pythonImportsCheck = [ "w3lib" ]; disabledTests = lib.optionals (pythonAtLeast "3.11") [ # regressed on Python 3.11.4 diff --git a/pkgs/development/python-modules/wadllib/default.nix b/pkgs/development/python-modules/wadllib/default.nix index 9fc8988de74d..78d8db46b6d0 100644 --- a/pkgs/development/python-modules/wadllib/default.nix +++ b/pkgs/development/python-modules/wadllib/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy3k -, setuptools -, lazr-uri +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, + setuptools, + lazr-uri, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { sha256 = "acd9ad6a2c1007d34ca208e1da6341bbca1804c0e6850f954db04bdd7666c5fc"; }; - propagatedBuildInputs = [ setuptools lazr-uri ]; + propagatedBuildInputs = [ + setuptools + lazr-uri + ]; doCheck = isPy3k; diff --git a/pkgs/development/python-modules/wagtail-factories/default.nix b/pkgs/development/python-modules/wagtail-factories/default.nix index 46a98c39821a..1717f38b49a4 100644 --- a/pkgs/development/python-modules/wagtail-factories/default.nix +++ b/pkgs/development/python-modules/wagtail-factories/default.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, callPackage -, factory-boy -, fetchFromGitHub -, lib -, wagtail +{ + buildPythonPackage, + callPackage, + factory-boy, + fetchFromGitHub, + lib, + wagtail, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wagtail-factories/tests.nix b/pkgs/development/python-modules/wagtail-factories/tests.nix index b340705f2e88..2b4c75844032 100644 --- a/pkgs/development/python-modules/wagtail-factories/tests.nix +++ b/pkgs/development/python-modules/wagtail-factories/tests.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, django-pattern-library -, pytest-django -, pytestCheckHook -, wagtail -, wagtail-factories +{ + buildPythonPackage, + django-pattern-library, + pytest-django, + pytestCheckHook, + wagtail, + wagtail-factories, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/wagtail-localize/default.nix b/pkgs/development/python-modules/wagtail-localize/default.nix index 9a40ca84f860..5312633cd803 100644 --- a/pkgs/development/python-modules/wagtail-localize/default.nix +++ b/pkgs/development/python-modules/wagtail-localize/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, dj-database-url -, django -, django-rq -, fetchFromGitHub -, flit-core -, freezegun -, google-cloud-translate -, polib -, python -, pythonOlder -, typing-extensions -, wagtail -, wagtail-modeladmin +{ + lib, + buildPythonPackage, + dj-database-url, + django, + django-rq, + fetchFromGitHub, + flit-core, + freezegun, + google-cloud-translate, + polib, + python, + pythonOlder, + typing-extensions, + wagtail, + wagtail-modeladmin, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-ENdUXfvQOfd9cgHr6fd5Hf+8AJXFix3YbsYJQfpu4ZE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ django @@ -49,9 +48,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - google = [ - google-cloud-translate - ]; + google = [ google-cloud-translate ]; }; checkPhase = '' diff --git a/pkgs/development/python-modules/wagtail-modeladmin/default.nix b/pkgs/development/python-modules/wagtail-modeladmin/default.nix index cf5352238cab..4d6f6938238c 100644 --- a/pkgs/development/python-modules/wagtail-modeladmin/default.nix +++ b/pkgs/development/python-modules/wagtail-modeladmin/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, dj-database-url -, django -, django-rq -, fetchFromGitHub -, flit-core -, freezegun -, google-cloud-translate -, polib -, python -, pythonOlder -, typing-extensions -, wagtail +{ + lib, + buildPythonPackage, + dj-database-url, + django, + django-rq, + fetchFromGitHub, + flit-core, + freezegun, + google-cloud-translate, + polib, + python, + pythonOlder, + typing-extensions, + wagtail, }: buildPythonPackage rec { @@ -28,17 +29,11 @@ buildPythonPackage rec { hash = "sha256-J6ViGf7lqUvl5EV4/LbADVDp15foY9bUZygs1dSDlKw="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - wagtail - ]; + propagatedBuildInputs = [ wagtail ]; - nativeCheckInputs = [ - dj-database-url - ]; + nativeCheckInputs = [ dj-database-url ]; pythonImportsCheck = [ "wagtail_modeladmin" ]; diff --git a/pkgs/development/python-modules/wagtail/default.nix b/pkgs/development/python-modules/wagtail/default.nix index 46081138403d..220e9000f42c 100644 --- a/pkgs/development/python-modules/wagtail/default.nix +++ b/pkgs/development/python-modules/wagtail/default.nix @@ -1,26 +1,27 @@ -{ lib -, anyascii -, beautifulsoup4 -, buildPythonPackage -, callPackage -, django -, django-filter -, django-modelcluster -, django-taggit -, django-treebeard -, djangorestframework -, draftjs-exporter -, fetchPypi -, html5lib -, l18n -, laces -, openpyxl -, permissionedforms -, pillow -, pythonOlder -, requests -, telepath -, willow +{ + lib, + anyascii, + beautifulsoup4, + buildPythonPackage, + callPackage, + django, + django-filter, + django-modelcluster, + django-taggit, + django-treebeard, + djangorestframework, + draftjs-exporter, + fetchPypi, + html5lib, + l18n, + laces, + openpyxl, + permissionedforms, + pillow, + pythonOlder, + requests, + telepath, + willow, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wagtail/tests.nix b/pkgs/development/python-modules/wagtail/tests.nix index 23eb87c1b17c..de45570c41ca 100644 --- a/pkgs/development/python-modules/wagtail/tests.nix +++ b/pkgs/development/python-modules/wagtail/tests.nix @@ -1,16 +1,17 @@ -{ azure-mgmt-cdn -, azure-mgmt-frontdoor -, boto3 -, buildPythonPackage -, django-pattern-library -, elasticsearch -, freezegun -, jinja2 -, python-dateutil -, python -, pytz -, wagtail -, wagtail-factories +{ + azure-mgmt-cdn, + azure-mgmt-frontdoor, + boto3, + buildPythonPackage, + django-pattern-library, + elasticsearch, + freezegun, + jinja2, + python-dateutil, + python, + pytz, + wagtail, + wagtail-factories, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/waitress-django/default.nix b/pkgs/development/python-modules/waitress-django/default.nix index 3384d2cd4848..e55be143380c 100644 --- a/pkgs/development/python-modules/waitress-django/default.nix +++ b/pkgs/development/python-modules/waitress-django/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, setuptools, django, waitress }: +{ + lib, + buildPythonPackage, + setuptools, + django, + waitress, +}: let fs = lib.fileset; diff --git a/pkgs/development/python-modules/waitress/default.nix b/pkgs/development/python-modules/waitress/default.nix index cf8d0eac97b2..94b004862d59 100644 --- a/pkgs/development/python-modules/waitress/default.nix +++ b/pkgs/development/python-modules/waitress/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -16,11 +17,10 @@ buildPythonPackage rec { doCheck = false; meta = with lib; { - homepage = "https://github.com/Pylons/waitress"; - description = "Waitress WSGI server"; - mainProgram = "waitress-serve"; - license = licenses.zpl20; - maintainers = with maintainers; [ domenkozar ]; + homepage = "https://github.com/Pylons/waitress"; + description = "Waitress WSGI server"; + mainProgram = "waitress-serve"; + license = licenses.zpl20; + maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/wakeonlan/default.nix b/pkgs/development/python-modules/wakeonlan/default.nix index ea4f215a129e..6d2125c8e735 100644 --- a/pkgs/development/python-modules/wakeonlan/default.nix +++ b/pkgs/development/python-modules/wakeonlan/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-VPdklyD3GVn0cex4I6zV61I0bUr4KQp8DdMKAM/r4io="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test_wakeonlan.py" - ]; + pytestFlagsArray = [ "test_wakeonlan.py" ]; - pythonImportsCheck = [ - "wakeonlan" - ]; + pythonImportsCheck = [ "wakeonlan" ]; meta = with lib; { description = "Python module for wake on lan"; diff --git a/pkgs/development/python-modules/wallbox/default.nix b/pkgs/development/python-modules/wallbox/default.nix index 38e2d8a89e00..2f522b0d77c0 100644 --- a/pkgs/development/python-modules/wallbox/default.nix +++ b/pkgs/development/python-modules/wallbox/default.nix @@ -1,10 +1,11 @@ -{ lib -, aenum -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests -, simplejson +{ + lib, + aenum, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, + simplejson, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - pythonImportsCheck = [ - "wallbox" - ]; + pythonImportsCheck = [ "wallbox" ]; meta = with lib; { description = "Module for interacting with Wallbox EV charger api"; diff --git a/pkgs/development/python-modules/wallet-py3k/default.nix b/pkgs/development/python-modules/wallet-py3k/default.nix index f78463e6748a..fb50398d5be4 100644 --- a/pkgs/development/python-modules/wallet-py3k/default.nix +++ b/pkgs/development/python-modules/wallet-py3k/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, substituteAll -, openssl -, setuptools -, six +{ + lib, + buildPythonPackage, + fetchPypi, + substituteAll, + openssl, + setuptools, + six, }: buildPythonPackage rec { @@ -24,19 +25,13 @@ buildPythonPackage rec { }) ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - six - ]; + dependencies = [ six ]; doCheck = false; # no tests - pythonImportsCheck = [ - "wallet" - ]; + pythonImportsCheck = [ "wallet" ]; meta = with lib; { description = "Passbook file generator"; diff --git a/pkgs/development/python-modules/walrus/default.nix b/pkgs/development/python-modules/walrus/default.nix index 6c788c41a95a..976037f92889 100644 --- a/pkgs/development/python-modules/walrus/default.nix +++ b/pkgs/development/python-modules/walrus/default.nix @@ -1,11 +1,12 @@ -{ lib -, pkgs -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, redis -, unittestCheckHook -, fetchpatch +{ + lib, + pkgs, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + redis, + unittestCheckHook, + fetchpatch, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - redis - ]; + propagatedBuildInputs = [ redis ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; preCheck = '' ${pkgs.redis}/bin/redis-server & @@ -49,9 +46,7 @@ buildPythonPackage rec { kill $REDIS_PID ''; - pythonImportsCheck = [ - "walrus" - ]; + pythonImportsCheck = [ "walrus" ]; __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/wand/default.nix b/pkgs/development/python-modules/wand/default.nix index 416fa74eaed5..a559c0a4a334 100644 --- a/pkgs/development/python-modules/wand/default.nix +++ b/pkgs/development/python-modules/wand/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, imagemagickBig -, py -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + imagemagickBig, + py, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index 61f32785757d..bef6acb62ef5 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -1,56 +1,57 @@ -{ lib -, stdenv -, appdirs -, azure-containerregistry -, azure-core -, azure-identity -, azure-storage-blob -, bokeh -, boto3 -, buildPythonPackage -, click -, docker-pycreds -, fetchFromGitHub -, flask -, git -, gitpython -, google-cloud-artifact-registry -, google-cloud-compute -, google-cloud-storage -, hypothesis -, imageio -, jsonref -, jsonschema -, keras -, kubernetes -, matplotlib -, mlflow -, moviepy -, nbclient -, nbformat -, pandas -, parameterized -, pathtools -, protobuf -, psutil -, pydantic -, pyfakefs -, pytest-mock -, pytest-xdist -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, pyyaml -, requests -, responses -, scikit-learn -, sentry-sdk -, setproctitle -, setuptools -, soundfile -, substituteAll -, torch -, tqdm +{ + lib, + stdenv, + appdirs, + azure-containerregistry, + azure-core, + azure-identity, + azure-storage-blob, + bokeh, + boto3, + buildPythonPackage, + click, + docker-pycreds, + fetchFromGitHub, + flask, + git, + gitpython, + google-cloud-artifact-registry, + google-cloud-compute, + google-cloud-storage, + hypothesis, + imageio, + jsonref, + jsonschema, + keras, + kubernetes, + matplotlib, + mlflow, + moviepy, + nbclient, + nbformat, + pandas, + parameterized, + pathtools, + protobuf, + psutil, + pydantic, + pyfakefs, + pytest-mock, + pytest-xdist, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + pyyaml, + requests, + responses, + scikit-learn, + sentry-sdk, + setproctitle, + setuptools, + soundfile, + substituteAll, + torch, + tqdm, }: buildPythonPackage rec { @@ -147,160 +148,163 @@ buildPythonPackage rec { "tests/pytest_tests" ]; - disabledTestPaths = [ - # Tests that try to get chatty over sockets or spin up servers, not possible in the nix build environment. - "tests/pytest_tests/system_tests/test_notebooks/test_notebooks.py" - "tests/pytest_tests/unit_tests_old/test_cli.py" - "tests/pytest_tests/unit_tests_old/test_data_types.py" - "tests/pytest_tests/unit_tests_old/test_file_stream.py" - "tests/pytest_tests/unit_tests_old/test_file_upload.py" - "tests/pytest_tests/unit_tests_old/test_footer.py" - "tests/pytest_tests/unit_tests_old/test_internal_api.py" - "tests/pytest_tests/unit_tests_old/test_metric_internal.py" - "tests/pytest_tests/unit_tests_old/test_public_api.py" - "tests/pytest_tests/unit_tests_old/test_runtime.py" - "tests/pytest_tests/unit_tests_old/test_sender.py" - "tests/pytest_tests/unit_tests_old/test_summary.py" - "tests/pytest_tests/unit_tests_old/test_tb_watcher.py" - "tests/pytest_tests/unit_tests_old/test_time_resolution.py" - "tests/pytest_tests/unit_tests_old/test_wandb_agent.py" - "tests/pytest_tests/unit_tests_old/test_wandb_integration.py" - "tests/pytest_tests/unit_tests_old/test_wandb_run.py" - "tests/pytest_tests/unit_tests_old/test_wandb.py" - "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_aws.py" - "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_cli.py" - "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_docker.py" - "tests/pytest_tests/unit_tests_old/tests_launch/test_launch.py" - "tests/pytest_tests/unit_tests/test_cli.py" - "tests/pytest_tests/unit_tests/test_data_types.py" - "tests/pytest_tests/unit_tests/test_internal_api.py" - "tests/pytest_tests/unit_tests/test_mode_disabled.py" - "tests/pytest_tests/unit_tests/test_model_workflows.py" - "tests/pytest_tests/unit_tests/test_plots.py" - "tests/pytest_tests/unit_tests/test_public_api.py" - "tests/pytest_tests/unit_tests/test_sender.py" - "tests/pytest_tests/unit_tests/test_util.py" - "tests/pytest_tests/unit_tests/test_wandb_verify.py" + disabledTestPaths = + [ + # Tests that try to get chatty over sockets or spin up servers, not possible in the nix build environment. + "tests/pytest_tests/system_tests/test_notebooks/test_notebooks.py" + "tests/pytest_tests/unit_tests_old/test_cli.py" + "tests/pytest_tests/unit_tests_old/test_data_types.py" + "tests/pytest_tests/unit_tests_old/test_file_stream.py" + "tests/pytest_tests/unit_tests_old/test_file_upload.py" + "tests/pytest_tests/unit_tests_old/test_footer.py" + "tests/pytest_tests/unit_tests_old/test_internal_api.py" + "tests/pytest_tests/unit_tests_old/test_metric_internal.py" + "tests/pytest_tests/unit_tests_old/test_public_api.py" + "tests/pytest_tests/unit_tests_old/test_runtime.py" + "tests/pytest_tests/unit_tests_old/test_sender.py" + "tests/pytest_tests/unit_tests_old/test_summary.py" + "tests/pytest_tests/unit_tests_old/test_tb_watcher.py" + "tests/pytest_tests/unit_tests_old/test_time_resolution.py" + "tests/pytest_tests/unit_tests_old/test_wandb_agent.py" + "tests/pytest_tests/unit_tests_old/test_wandb_integration.py" + "tests/pytest_tests/unit_tests_old/test_wandb_run.py" + "tests/pytest_tests/unit_tests_old/test_wandb.py" + "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_aws.py" + "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_cli.py" + "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_docker.py" + "tests/pytest_tests/unit_tests_old/tests_launch/test_launch.py" + "tests/pytest_tests/unit_tests/test_cli.py" + "tests/pytest_tests/unit_tests/test_data_types.py" + "tests/pytest_tests/unit_tests/test_internal_api.py" + "tests/pytest_tests/unit_tests/test_mode_disabled.py" + "tests/pytest_tests/unit_tests/test_model_workflows.py" + "tests/pytest_tests/unit_tests/test_plots.py" + "tests/pytest_tests/unit_tests/test_public_api.py" + "tests/pytest_tests/unit_tests/test_sender.py" + "tests/pytest_tests/unit_tests/test_util.py" + "tests/pytest_tests/unit_tests/test_wandb_verify.py" - # Requires docker access - "tests/pytest_tests/system_tests/test_artifacts/test_artifact_saver.py" - "tests/pytest_tests/system_tests/test_artifacts/test_misc.py" - "tests/pytest_tests/system_tests/test_artifacts/test_misc2.py" - "tests/pytest_tests/system_tests/test_artifacts/test_object_references.py" - "tests/pytest_tests/system_tests/test_artifacts/test_wandb_artifacts_full.py" - "tests/pytest_tests/system_tests/test_artifacts/test_wandb_artifacts.py" - "tests/pytest_tests/system_tests/test_core/test_cli_full.py" - "tests/pytest_tests/system_tests/test_core/test_data_types_full.py" - "tests/pytest_tests/system_tests/test_core/test_file_stream_internal.py" - "tests/pytest_tests/system_tests/test_core/test_file_upload.py" - "tests/pytest_tests/system_tests/test_core/test_footer.py" - "tests/pytest_tests/system_tests/test_core/test_keras_full.py" - "tests/pytest_tests/system_tests/test_core/test_label_full.py" - "tests/pytest_tests/system_tests/test_core/test_metric_full.py" - "tests/pytest_tests/system_tests/test_core/test_metric_internal.py" - "tests/pytest_tests/system_tests/test_core/test_mode_disabled_full.py" - "tests/pytest_tests/system_tests/test_core/test_model_workflow.py" - "tests/pytest_tests/system_tests/test_core/test_mp_full.py" - "tests/pytest_tests/system_tests/test_core/test_public_api.py" - "tests/pytest_tests/system_tests/test_core/test_redir_full.py" - "tests/pytest_tests/system_tests/test_core/test_report_api.py" - "tests/pytest_tests/system_tests/test_core/test_save_policies.py" - "tests/pytest_tests/system_tests/test_core/test_sender.py" - "tests/pytest_tests/system_tests/test_core/test_start_method.py" - "tests/pytest_tests/system_tests/test_core/test_system_info.py" - "tests/pytest_tests/system_tests/test_core/test_tb_watcher.py" - "tests/pytest_tests/system_tests/test_core/test_telemetry_full.py" - "tests/pytest_tests/system_tests/test_core/test_time_resolution.py" - "tests/pytest_tests/system_tests/test_core/test_torch_full.py" - "tests/pytest_tests/system_tests/test_core/test_validation_data_logger.py" - "tests/pytest_tests/system_tests/test_core/test_wandb_init.py" - "tests/pytest_tests/system_tests/test_core/test_wandb_integration.py" - "tests/pytest_tests/system_tests/test_core/test_wandb_run.py" - "tests/pytest_tests/system_tests/test_core/test_wandb_settings.py" - "tests/pytest_tests/system_tests/test_core/test_wandb_tensorflow.py" - "tests/pytest_tests/system_tests/test_core/test_wandb_verify.py" - "tests/pytest_tests/system_tests/test_core/test_wandb.py" - "tests/pytest_tests/system_tests/test_importers/test_import_mlflow.py" - "tests/pytest_tests/system_tests/test_launch/test_github_reference.py" - "tests/pytest_tests/system_tests/test_launch/test_job_status_tracker.py" - "tests/pytest_tests/system_tests/test_launch/test_job.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_add.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_cli.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_kubernetes.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_local_container.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_run.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_sagemaker.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_sweep_cli.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_sweep.py" - "tests/pytest_tests/system_tests/test_launch/test_launch_vertex.py" - "tests/pytest_tests/system_tests/test_launch/test_launch.py" - "tests/pytest_tests/system_tests/test_launch/test_wandb_reference.py" - "tests/pytest_tests/system_tests/test_nexus/test_nexus.py" - "tests/pytest_tests/system_tests/test_sweep/test_public_api.py" - "tests/pytest_tests/system_tests/test_sweep/test_sweep_scheduler.py" - "tests/pytest_tests/system_tests/test_sweep/test_sweep_utils.py" - "tests/pytest_tests/system_tests/test_sweep/test_wandb_agent_full.py" - "tests/pytest_tests/system_tests/test_sweep/test_wandb_agent.py" - "tests/pytest_tests/system_tests/test_sweep/test_wandb_sweep.py" - "tests/pytest_tests/system_tests/test_system_metrics/test_open_metrics.py" - "tests/pytest_tests/system_tests/test_system_metrics/test_system_monitor.py" + # Requires docker access + "tests/pytest_tests/system_tests/test_artifacts/test_artifact_saver.py" + "tests/pytest_tests/system_tests/test_artifacts/test_misc.py" + "tests/pytest_tests/system_tests/test_artifacts/test_misc2.py" + "tests/pytest_tests/system_tests/test_artifacts/test_object_references.py" + "tests/pytest_tests/system_tests/test_artifacts/test_wandb_artifacts_full.py" + "tests/pytest_tests/system_tests/test_artifacts/test_wandb_artifacts.py" + "tests/pytest_tests/system_tests/test_core/test_cli_full.py" + "tests/pytest_tests/system_tests/test_core/test_data_types_full.py" + "tests/pytest_tests/system_tests/test_core/test_file_stream_internal.py" + "tests/pytest_tests/system_tests/test_core/test_file_upload.py" + "tests/pytest_tests/system_tests/test_core/test_footer.py" + "tests/pytest_tests/system_tests/test_core/test_keras_full.py" + "tests/pytest_tests/system_tests/test_core/test_label_full.py" + "tests/pytest_tests/system_tests/test_core/test_metric_full.py" + "tests/pytest_tests/system_tests/test_core/test_metric_internal.py" + "tests/pytest_tests/system_tests/test_core/test_mode_disabled_full.py" + "tests/pytest_tests/system_tests/test_core/test_model_workflow.py" + "tests/pytest_tests/system_tests/test_core/test_mp_full.py" + "tests/pytest_tests/system_tests/test_core/test_public_api.py" + "tests/pytest_tests/system_tests/test_core/test_redir_full.py" + "tests/pytest_tests/system_tests/test_core/test_report_api.py" + "tests/pytest_tests/system_tests/test_core/test_save_policies.py" + "tests/pytest_tests/system_tests/test_core/test_sender.py" + "tests/pytest_tests/system_tests/test_core/test_start_method.py" + "tests/pytest_tests/system_tests/test_core/test_system_info.py" + "tests/pytest_tests/system_tests/test_core/test_tb_watcher.py" + "tests/pytest_tests/system_tests/test_core/test_telemetry_full.py" + "tests/pytest_tests/system_tests/test_core/test_time_resolution.py" + "tests/pytest_tests/system_tests/test_core/test_torch_full.py" + "tests/pytest_tests/system_tests/test_core/test_validation_data_logger.py" + "tests/pytest_tests/system_tests/test_core/test_wandb_init.py" + "tests/pytest_tests/system_tests/test_core/test_wandb_integration.py" + "tests/pytest_tests/system_tests/test_core/test_wandb_run.py" + "tests/pytest_tests/system_tests/test_core/test_wandb_settings.py" + "tests/pytest_tests/system_tests/test_core/test_wandb_tensorflow.py" + "tests/pytest_tests/system_tests/test_core/test_wandb_verify.py" + "tests/pytest_tests/system_tests/test_core/test_wandb.py" + "tests/pytest_tests/system_tests/test_importers/test_import_mlflow.py" + "tests/pytest_tests/system_tests/test_launch/test_github_reference.py" + "tests/pytest_tests/system_tests/test_launch/test_job_status_tracker.py" + "tests/pytest_tests/system_tests/test_launch/test_job.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_add.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_cli.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_kubernetes.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_local_container.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_run.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_sagemaker.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_sweep_cli.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_sweep.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_vertex.py" + "tests/pytest_tests/system_tests/test_launch/test_launch.py" + "tests/pytest_tests/system_tests/test_launch/test_wandb_reference.py" + "tests/pytest_tests/system_tests/test_nexus/test_nexus.py" + "tests/pytest_tests/system_tests/test_sweep/test_public_api.py" + "tests/pytest_tests/system_tests/test_sweep/test_sweep_scheduler.py" + "tests/pytest_tests/system_tests/test_sweep/test_sweep_utils.py" + "tests/pytest_tests/system_tests/test_sweep/test_wandb_agent_full.py" + "tests/pytest_tests/system_tests/test_sweep/test_wandb_agent.py" + "tests/pytest_tests/system_tests/test_sweep/test_wandb_sweep.py" + "tests/pytest_tests/system_tests/test_system_metrics/test_open_metrics.py" + "tests/pytest_tests/system_tests/test_system_metrics/test_system_monitor.py" - # Tries to access /homeless-shelter - "tests/pytest_tests/unit_tests/test_tables.py" + # Tries to access /homeless-shelter + "tests/pytest_tests/unit_tests/test_tables.py" - # E AssertionError: assert 'Cannot use both --async and --queue with wandb launch' in 'wandb: ERROR Find detailed error logs at: /build/source/wandb/debug-cli.nixbld.log\nError: The wandb service process exited with 1. Ensure that `sys.executable` is a valid python interpreter. You can override it with the `_executable` setting or with the `WANDB__EXECUTABLE` environment variable.\n' - # E + where 'wandb: ERROR Find detailed error logs at: /build/source/wandb/debug-cli.nixbld.log\nError: The wandb service process exited with 1. Ensure that `sys.executable` is a valid python interpreter. You can override it with the `_executable` setting or with the `WANDB__EXECUTABLE` environment variable.\n' = .output - "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_jobs.py" + # E AssertionError: assert 'Cannot use both --async and --queue with wandb launch' in 'wandb: ERROR Find detailed error logs at: /build/source/wandb/debug-cli.nixbld.log\nError: The wandb service process exited with 1. Ensure that `sys.executable` is a valid python interpreter. You can override it with the `_executable` setting or with the `WANDB__EXECUTABLE` environment variable.\n' + # E + where 'wandb: ERROR Find detailed error logs at: /build/source/wandb/debug-cli.nixbld.log\nError: The wandb service process exited with 1. Ensure that `sys.executable` is a valid python interpreter. You can override it with the `_executable` setting or with the `WANDB__EXECUTABLE` environment variable.\n' = .output + "tests/pytest_tests/unit_tests_old/tests_launch/test_launch_jobs.py" - # Requires google-cloud-aiplatform which is not packaged as of 2023-04-25. - "tests/pytest_tests/unit_tests/test_launch/test_runner/test_vertex.py" + # Requires google-cloud-aiplatform which is not packaged as of 2023-04-25. + "tests/pytest_tests/unit_tests/test_launch/test_runner/test_vertex.py" - # Requires google-cloud-artifact-registry which is not packaged as of 2023-04-25. - "tests/pytest_tests/unit_tests/test_launch/test_registry/test_gcp_artifact_registry.py" + # Requires google-cloud-artifact-registry which is not packaged as of 2023-04-25. + "tests/pytest_tests/unit_tests/test_launch/test_registry/test_gcp_artifact_registry.py" - # Requires kfp which is not packaged as of 2023-04-25. - "tests/pytest_tests/system_tests/test_core/test_kfp.py" + # Requires kfp which is not packaged as of 2023-04-25. + "tests/pytest_tests/system_tests/test_core/test_kfp.py" - # Requires kubernetes_asyncio which is not packaged as of 2024-01-14. - "tests/pytest_tests/unit_tests/test_launch/test_builder/test_kaniko.py" - "tests/pytest_tests/unit_tests/test_launch/test_runner/test_kubernetes.py" - "tests/pytest_tests/unit_tests/test_launch/test_runner/test_safe_watch.py" + # Requires kubernetes_asyncio which is not packaged as of 2024-01-14. + "tests/pytest_tests/unit_tests/test_launch/test_builder/test_kaniko.py" + "tests/pytest_tests/unit_tests/test_launch/test_runner/test_kubernetes.py" + "tests/pytest_tests/unit_tests/test_launch/test_runner/test_safe_watch.py" - # Requires metaflow which is not packaged as of 2023-04-25. - "tests/pytest_tests/unit_tests/test_metaflow.py" + # Requires metaflow which is not packaged as of 2023-04-25. + "tests/pytest_tests/unit_tests/test_metaflow.py" - # Requires tensorflow which is broken as of 2023-09-03 - "tests/pytest_tests/unit_tests/test_keras.py" + # Requires tensorflow which is broken as of 2023-09-03 + "tests/pytest_tests/unit_tests/test_keras.py" - # Try to get hardware information, not possible in the nix build environment - "tests/pytest_tests/unit_tests/test_system_metrics/test_disk.py" + # Try to get hardware information, not possible in the nix build environment + "tests/pytest_tests/unit_tests/test_system_metrics/test_disk.py" - # See https://github.com/wandb/wandb/issues/5423 - "tests/pytest_tests/unit_tests/test_docker.py" - "tests/pytest_tests/unit_tests/test_library_public.py" + # See https://github.com/wandb/wandb/issues/5423 + "tests/pytest_tests/unit_tests/test_docker.py" + "tests/pytest_tests/unit_tests/test_library_public.py" - # See https://github.com/wandb/wandb/issues/6836 - "tests/pytest_tests/unit_tests_old/test_logging.py" - ] ++ lib.optionals stdenv.isLinux [ - # Same as above - "tests/pytest_tests/unit_tests/test_artifacts/test_storage.py" - ] ++ lib.optionals stdenv.isDarwin [ - # Same as above - "tests/pytest_tests/unit_tests/test_lib/test_filesystem.py" - ]; + # See https://github.com/wandb/wandb/issues/6836 + "tests/pytest_tests/unit_tests_old/test_logging.py" + ] + ++ lib.optionals stdenv.isLinux [ + # Same as above + "tests/pytest_tests/unit_tests/test_artifacts/test_storage.py" + ] + ++ lib.optionals stdenv.isDarwin [ + # Same as above + "tests/pytest_tests/unit_tests/test_lib/test_filesystem.py" + ]; - disabledTests = [ - # Timing sensitive - "test_login_timeout" - ] ++ lib.optionals stdenv.isDarwin [ - # Disable test that fails on darwin due to issue with python3Packages.psutil: - # https://github.com/giampaolo/psutil/issues/1219 - "test_tpu_system_stats" - ]; + disabledTests = + [ + # Timing sensitive + "test_login_timeout" + ] + ++ lib.optionals stdenv.isDarwin [ + # Disable test that fails on darwin due to issue with python3Packages.psutil: + # https://github.com/giampaolo/psutil/issues/1219 + "test_tpu_system_stats" + ]; - pythonImportsCheck = [ - "wandb" - ]; + pythonImportsCheck = [ "wandb" ]; # unmaintainable list of disabled tests passthru.skipBulkUpdate = true; diff --git a/pkgs/development/python-modules/waqiasync/default.nix b/pkgs/development/python-modules/waqiasync/default.nix index dfa51770abbd..91d58d85347c 100644 --- a/pkgs/development/python-modules/waqiasync/default.nix +++ b/pkgs/development/python-modules/waqiasync/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchPypi +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/warble/default.nix b/pkgs/development/python-modules/warble/default.nix index c2c930d0f0a5..da0aa6c92563 100644 --- a/pkgs/development/python-modules/warble/default.nix +++ b/pkgs/development/python-modules/warble/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cython -, boost -, bluez +{ + lib, + buildPythonPackage, + fetchPypi, + cython, + boost, + bluez, }: buildPythonPackage rec { @@ -18,22 +19,26 @@ buildPythonPackage rec { hash = "sha256-oezcRD1AddWmDYDxueE0EwK0+UN/EZ5GQxwkdCz4xoY="; }; - nativeBuildInputs = [ - cython - ]; + nativeBuildInputs = [ cython ]; buildInputs = [ boost bluez ]; - pythonImportsCheck = [ "mbientlab" "mbientlab.warble" ]; + pythonImportsCheck = [ + "mbientlab" + "mbientlab.warble" + ]; meta = with lib; { description = "Python bindings for MbientLab's Warble library"; homepage = "https://github.com/mbientlab/pywarble"; license = with licenses; [ unfree ]; maintainers = with maintainers; [ stepbrobd ]; - platforms = [ "aarch64-linux" "x86_64-linux" ]; + platforms = [ + "aarch64-linux" + "x86_64-linux" + ]; }; } diff --git a/pkgs/development/python-modules/warcio/default.nix b/pkgs/development/python-modules/warcio/default.nix index 3121a49b5b28..1459c11820ca 100644 --- a/pkgs/development/python-modules/warcio/default.nix +++ b/pkgs/development/python-modules/warcio/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, httpbin -, multidict -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, six -, wsgiprox +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + httpbin, + multidict, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + six, + wsgiprox, }: buildPythonPackage rec { @@ -48,18 +49,14 @@ buildPythonPackage rec { wsgiprox ]; - pytestFlagsArray = [ - "--offline" - ]; + pytestFlagsArray = [ "--offline" ]; disabledTests = [ # Tests require network access, see above "test_get_cache_to_file" ]; - pythonImportsCheck = [ - "warcio" - ]; + pythonImportsCheck = [ "warcio" ]; meta = with lib; { description = "Streaming WARC/ARC library for fast web archive IO"; diff --git a/pkgs/development/python-modules/ward/default.nix b/pkgs/development/python-modules/ward/default.nix index d7349e17ec65..6c4327549bb5 100644 --- a/pkgs/development/python-modules/ward/default.nix +++ b/pkgs/development/python-modules/ward/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, click -, click-completion -, click-default-group -, cucumber-tag-expressions -, fetchFromGitHub -, pluggy -, poetry-core -, pprintpp -, pythonOlder -, rich -, tomli +{ + lib, + buildPythonPackage, + click, + click-completion, + click-default-group, + cucumber-tag-expressions, + fetchFromGitHub, + pluggy, + poetry-core, + pprintpp, + pythonOlder, + rich, + tomli, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-4dEMEEPySezgw3dIcYMl56HrhyaYlql9JvtamOn7Y8g="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ click @@ -45,9 +44,7 @@ buildPythonPackage rec { # Fixture is missing. Looks like an issue with the import of the sample file doCheck = false; - pythonImportsCheck = [ - "ward" - ]; + pythonImportsCheck = [ "ward" ]; meta = with lib; { description = "Test framework for Python"; diff --git a/pkgs/development/python-modules/warlock/default.nix b/pkgs/development/python-modules/warlock/default.nix index b0b16aed16a8..cfe32849b539 100644 --- a/pkgs/development/python-modules/warlock/default.nix +++ b/pkgs/development/python-modules/warlock/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, jsonpatch -, jsonschema -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + jsonpatch, + jsonschema, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -27,27 +28,21 @@ buildPythonPackage rec { sed -i '/--cov/d' pytest.ini ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ jsonpatch jsonschema ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # https://github.com/bcwaldon/warlock/issues/64 "test_recursive_models" ]; - pythonImportsCheck = [ - "warlock" - ]; + pythonImportsCheck = [ "warlock" ]; meta = with lib; { description = "Python object model built on JSON schema and JSON patch"; diff --git a/pkgs/development/python-modules/warrant-lite/default.nix b/pkgs/development/python-modules/warrant-lite/default.nix index 4d5d77c2e84d..911aa135a775 100644 --- a/pkgs/development/python-modules/warrant-lite/default.nix +++ b/pkgs/development/python-modules/warrant-lite/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, boto3 -, envs -, python-jose -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + boto3, + envs, + python-jose, + requests, }: buildPythonPackage rec { @@ -36,9 +37,7 @@ buildPythonPackage rec { # Tests require credentials doCheck = false; - pythonImportsCheck = [ - "warrant_lite" - ]; + pythonImportsCheck = [ "warrant_lite" ]; meta = with lib; { description = "Module for process SRP requests for AWS Cognito"; diff --git a/pkgs/development/python-modules/warrant/default.nix b/pkgs/development/python-modules/warrant/default.nix index 33a98da4f277..4dc8e940b3b3 100644 --- a/pkgs/development/python-modules/warrant/default.nix +++ b/pkgs/development/python-modules/warrant/default.nix @@ -1,6 +1,14 @@ -{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch -, mock -, boto3, envs, python-jose, requests }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + mock, + boto3, + envs, + python-jose, + requests, +}: buildPythonPackage { pname = "warrant"; @@ -9,9 +17,9 @@ buildPythonPackage { # move to fetchPyPi when https://github.com/capless/warrant/issues/97 is fixed src = fetchFromGitHub { - owner = "capless"; - repo = "warrant"; - rev = "ff2e4793d8479e770f2461ef7cbc0c15ee784395"; + owner = "capless"; + repo = "warrant"; + rev = "ff2e4793d8479e770f2461ef7cbc0c15ee784395"; sha256 = "0gw3crg64p1zx3k5js0wh0x5bldgs7viy4g8hld9xbka8q0374hi"; }; @@ -31,7 +39,12 @@ buildPythonPackage { nativeCheckInputs = [ mock ]; - propagatedBuildInputs = [ boto3 envs python-jose requests ]; + propagatedBuildInputs = [ + boto3 + envs + python-jose + requests + ]; # all the checks are failing doCheck = false; diff --git a/pkgs/development/python-modules/wasabi/default.nix b/pkgs/development/python-modules/wasabi/default.nix index 618e0490605b..5641063a9109 100644 --- a/pkgs/development/python-modules/wasabi/default.nix +++ b/pkgs/development/python-modules/wasabi/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# tests -, ipykernel -, nbconvert -, pytestCheckHook -, typing-extensions + # tests + ipykernel, + nbconvert, + pytestCheckHook, + typing-extensions, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "wasabi" - ]; + pythonImportsCheck = [ "wasabi" ]; meta = with lib; { description = "A lightweight console printing and formatting toolkit"; diff --git a/pkgs/development/python-modules/wasmer/default.nix b/pkgs/development/python-modules/wasmer/default.nix index 0f2748208817..e3a419589913 100644 --- a/pkgs/development/python-modules/wasmer/default.nix +++ b/pkgs/development/python-modules/wasmer/default.nix @@ -1,26 +1,29 @@ -{ stdenv -, lib -, rustPlatform -, callPackage -, fetchFromGitHub -, buildPythonPackage -, pythonAtLeast -, libiconv -, libffi -, libxml2 -, llvm_14 -, ncurses -, zlib +{ + stdenv, + lib, + rustPlatform, + callPackage, + fetchFromGitHub, + buildPythonPackage, + pythonAtLeast, + libiconv, + libffi, + libxml2, + llvm_14, + ncurses, + zlib, }: let common = - { pname - , buildAndTestSubdir - , cargoHash - , extraNativeBuildInputs ? [ ] - , extraBuildInputs ? [ ] - }: buildPythonPackage rec { + { + pname, + buildAndTestSubdir, + cargoHash, + extraNativeBuildInputs ? [ ], + extraBuildInputs ? [ ], + }: + buildPythonPackage rec { inherit pname; version = "1.1.1"; format = "pyproject"; @@ -40,7 +43,11 @@ let sha256 = cargoHash; }; - nativeBuildInputs = (with rustPlatform; [ cargoSetupHook maturinBuildHook ]) + nativeBuildInputs = + (with rustPlatform; [ + cargoSetupHook + maturinBuildHook + ]) ++ extraNativeBuildInputs; postPatch = '' @@ -49,8 +56,7 @@ let --replace "package.metadata.maturin" "broken" ''; - buildInputs = lib.optionals stdenv.isDarwin [ libiconv ] - ++ extraBuildInputs; + buildInputs = lib.optionals stdenv.isDarwin [ libiconv ] ++ extraBuildInputs; inherit buildAndTestSubdir; @@ -62,11 +68,9 @@ let # check in passthru.tests.pytest because all packages are required to run the tests doCheck = false; - passthru.tests = lib.optionalAttrs (pname == "wasmer") { - pytest = callPackage ./tests.nix { }; - }; + passthru.tests = lib.optionalAttrs (pname == "wasmer") { pytest = callPackage ./tests.nix { }; }; - pythonImportsCheck = [ "${lib.replaceStrings ["-"] ["_"] pname}" ]; + pythonImportsCheck = [ "${lib.replaceStrings [ "-" ] [ "_" ] pname}" ]; meta = with lib; { # https://github.com/wasmerio/wasmer-python/issues/778 @@ -97,7 +101,12 @@ in buildAndTestSubdir = "packages/compiler-llvm"; cargoHash = "sha256-FA/xXlPaK8NxZIw7MCm9Fyesgu72Dsxhmb5xzOIINhE="; extraNativeBuildInputs = [ llvm_14 ]; - extraBuildInputs = [ libffi libxml2.out ncurses zlib ]; + extraBuildInputs = [ + libffi + libxml2.out + ncurses + zlib + ]; }; wasmer-compiler-singlepass = common { diff --git a/pkgs/development/python-modules/wasmer/tests.nix b/pkgs/development/python-modules/wasmer/tests.nix index e46c9f7ac670..6c20ab229cea 100644 --- a/pkgs/development/python-modules/wasmer/tests.nix +++ b/pkgs/development/python-modules/wasmer/tests.nix @@ -1,9 +1,10 @@ -{ buildPythonPackage -, wasmer -, pytestCheckHook -, wasmer-compiler-cranelift -, wasmer-compiler-llvm -, wasmer-compiler-singlepass +{ + buildPythonPackage, + wasmer, + pytestCheckHook, + wasmer-compiler-cranelift, + wasmer-compiler-llvm, + wasmer-compiler-singlepass, }: buildPythonPackage { diff --git a/pkgs/development/python-modules/wasserstein/default.nix b/pkgs/development/python-modules/wasserstein/default.nix index 28626cc5dcfc..c4534dcdf5d0 100644 --- a/pkgs/development/python-modules/wasserstein/default.nix +++ b/pkgs/development/python-modules/wasserstein/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, numpy -, llvmPackages -, wurlitzer -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + numpy, + llvmPackages, + wurlitzer, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,20 +20,14 @@ buildPythonPackage rec { hash = "sha256-s9en6XwvO/WPsF7/+SEmGePHZQgl7zLgu5sEn4nD9YE="; }; - buildInputs = [ - llvmPackages.openmp - ]; + buildInputs = [ llvmPackages.openmp ]; propagatedBuildInputs = [ numpy wurlitzer ]; - nativeCheckInputs = [ - pytestCheckHook - ]; - pytestFlagsArray = [ - "wasserstein/tests" - ]; + nativeCheckInputs = [ pytestCheckHook ]; + pytestFlagsArray = [ "wasserstein/tests" ]; disabledTestPaths = [ "wasserstein/tests/test_emd.py" # requires "ot" # cyclic dependency on energyflow diff --git a/pkgs/development/python-modules/watchdog/default.nix b/pkgs/development/python-modules/watchdog/default.nix index 9ac39683ba39..f7879285e19f 100644 --- a/pkgs/development/python-modules/watchdog/default.nix +++ b/pkgs/development/python-modules/watchdog/default.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildPythonPackage -, CoreServices -, eventlet -, fetchpatch -, fetchPypi -, flaky -, pytest-timeout -, pytestCheckHook -, pythonOlder -, pyyaml +{ + lib, + stdenv, + buildPythonPackage, + CoreServices, + eventlet, + fetchpatch, + fetchPypi, + flaky, + pytest-timeout, + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -26,17 +27,11 @@ buildPythonPackage rec { # force kqueue on x86_64-darwin, because our api version does # not support fsevents - patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ - ./force-kqueue.patch - ]; + patches = lib.optionals (stdenv.isDarwin && !stdenv.isAarch64) [ ./force-kqueue.patch ]; - buildInputs = lib.optionals stdenv.isDarwin [ - CoreServices - ]; + buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; - passthru.optional-dependencies.watchmedo = [ - pyyaml - ]; + passthru.optional-dependencies.watchmedo = [ pyyaml ]; nativeCheckInputs = [ eventlet @@ -51,54 +46,58 @@ buildPythonPackage rec { --replace "--cov-report=term-missing" "" ''; - pytestFlagsArray = [ - "--deselect=tests/test_emitter.py::test_create_wrong_encoding" - "--deselect=tests/test_emitter.py::test_close" - ] ++ lib.optionals (stdenv.isDarwin) [ - # fails to stop process in teardown - "--deselect=tests/test_0_watchmedo.py::test_auto_restart_subprocess_termination" - # assert cap.out.splitlines(keepends=False).count('+++++ 0') == 2 != 3 - "--deselect=tests/test_0_watchmedo.py::test_auto_restart_on_file_change_debounce" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ - # FileCreationEvent != FileDeletionEvent - "--deselect=tests/test_emitter.py::test_separate_consecutive_moves" - "--deselect=tests/test_observers_polling.py::test___init__" - # segfaults - "--deselect=tests/test_delayed_queue.py::test_delayed_get" - "--deselect=tests/test_emitter.py::test_delete" - # AttributeError: '_thread.RLock' object has no attribute 'key'" - "--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" - ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ - # segfaults - "--deselect=tests/test_delayed_queue.py::test_delayed_get" - "--deselect=tests/test_0_watchmedo.py::test_tricks_from_file" - "--deselect=tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_1" - "--deselect=tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_2" - "--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" - "--deselect=tests/test_fsevents.py::test_recursive_check_accepts_relative_paths" - # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter - "--deselect=tests/test_fsevents.py::test_watchdog_recursive" - # SystemError: Cannot start fsevents stream. Use a kqueue or polling observer... - "--deselect=tests/test_fsevents.py::test_add_watch_twice" - # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter - "--deselect=ests/test_fsevents.py::test_recursive_check_accepts_relative_paths" - # gets stuck - "--deselect=tests/test_fsevents.py::test_converting_cfstring_to_pyunicode" - ]; + pytestFlagsArray = + [ + "--deselect=tests/test_emitter.py::test_create_wrong_encoding" + "--deselect=tests/test_emitter.py::test_close" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # fails to stop process in teardown + "--deselect=tests/test_0_watchmedo.py::test_auto_restart_subprocess_termination" + # assert cap.out.splitlines(keepends=False).count('+++++ 0') == 2 != 3 + "--deselect=tests/test_0_watchmedo.py::test_auto_restart_on_file_change_debounce" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ + # FileCreationEvent != FileDeletionEvent + "--deselect=tests/test_emitter.py::test_separate_consecutive_moves" + "--deselect=tests/test_observers_polling.py::test___init__" + # segfaults + "--deselect=tests/test_delayed_queue.py::test_delayed_get" + "--deselect=tests/test_emitter.py::test_delete" + # AttributeError: '_thread.RLock' object has no attribute 'key'" + "--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" + ] + ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ + # segfaults + "--deselect=tests/test_delayed_queue.py::test_delayed_get" + "--deselect=tests/test_0_watchmedo.py::test_tricks_from_file" + "--deselect=tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_1" + "--deselect=tests/test_fsevents.py::test_watcher_deletion_while_receiving_events_2" + "--deselect=tests/test_skip_repeats_queue.py::test_eventlet_monkey_patching" + "--deselect=tests/test_fsevents.py::test_recursive_check_accepts_relative_paths" + # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter + "--deselect=tests/test_fsevents.py::test_watchdog_recursive" + # SystemError: Cannot start fsevents stream. Use a kqueue or polling observer... + "--deselect=tests/test_fsevents.py::test_add_watch_twice" + # fsevents:fsevents.py:318 Unhandled exception in FSEventsEmitter + "--deselect=ests/test_fsevents.py::test_recursive_check_accepts_relative_paths" + # gets stuck + "--deselect=tests/test_fsevents.py::test_converting_cfstring_to_pyunicode" + ]; - disabledTestPaths = [ - # tests timeout easily - "tests/test_inotify_buffer.py" - ] ++ lib.optionals (stdenv.isDarwin) [ - # segfaults the testsuite - "tests/test_emitter.py" - # unsupported on x86_64-darwin - "tests/test_fsevents.py" - ]; + disabledTestPaths = + [ + # tests timeout easily + "tests/test_inotify_buffer.py" + ] + ++ lib.optionals (stdenv.isDarwin) [ + # segfaults the testsuite + "tests/test_emitter.py" + # unsupported on x86_64-darwin + "tests/test_fsevents.py" + ]; - pythonImportsCheck = [ - "watchdog" - ]; + pythonImportsCheck = [ "watchdog" ]; meta = with lib; { description = "Python API and shell utilities to monitor file system events"; diff --git a/pkgs/development/python-modules/watchfiles/default.nix b/pkgs/development/python-modules/watchfiles/default.nix index 47b6e0a4eb26..751a2886f472 100644 --- a/pkgs/development/python-modules/watchfiles/default.nix +++ b/pkgs/development/python-modules/watchfiles/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, anyio -, buildPythonPackage -, cargo -, fetchFromGitHub -, rustPlatform -, rustc -, pythonOlder -, dirty-equals -, pytest-mock -, pytest-timeout -, pytestCheckHook -, CoreServices -, libiconv +{ + lib, + stdenv, + anyio, + buildPythonPackage, + cargo, + fetchFromGitHub, + rustPlatform, + rustc, + pythonOlder, + dirty-equals, + pytest-mock, + pytest-timeout, + pytestCheckHook, + CoreServices, + libiconv, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { rustc ]; - propagatedBuildInputs = [ - anyio - ]; + propagatedBuildInputs = [ anyio ]; # Tests need these permissions in order to use the FSEvents API on macOS. sandboxProfile = '' @@ -76,9 +75,7 @@ buildPythonPackage rec { "test_awatch_interrupt_raise" ]; - pythonImportsCheck = [ - "watchfiles" - ]; + pythonImportsCheck = [ "watchfiles" ]; meta = with lib; { description = "File watching and code reload"; diff --git a/pkgs/development/python-modules/watchgod/default.nix b/pkgs/development/python-modules/watchgod/default.nix index 988fb53601b9..10b93b346dd1 100644 --- a/pkgs/development/python-modules/watchgod/default.nix +++ b/pkgs/development/python-modules/watchgod/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, anyio +{ + lib, + buildPythonPackage, + fetchPypi, + anyio, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-yxH/ZmV777qU2CjjtiLV+3byL72hN281Xz5uUel9lFA="; }; - propagatedBuildInputs = [ - anyio - ]; + propagatedBuildInputs = [ anyio ]; # no tests in release doCheck = false; @@ -30,5 +29,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ globin ]; }; - } diff --git a/pkgs/development/python-modules/waterfurnace/default.nix b/pkgs/development/python-modules/waterfurnace/default.nix index 6b7dce28924f..2eb9b2cbd8be 100644 --- a/pkgs/development/python-modules/waterfurnace/default.nix +++ b/pkgs/development/python-modules/waterfurnace/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, mock -, pytestCheckHook -, requests -, pythonOlder -, websocket-client +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + mock, + pytestCheckHook, + requests, + pythonOlder, + websocket-client, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "waterfurnace" - ]; + pythonImportsCheck = [ "waterfurnace" ]; meta = with lib; { description = "Python interface to waterfurnace geothermal systems"; diff --git a/pkgs/development/python-modules/watermark/default.nix b/pkgs/development/python-modules/watermark/default.nix index daac4416fc08..b6f9eeeb90a8 100644 --- a/pkgs/development/python-modules/watermark/default.nix +++ b/pkgs/development/python-modules/watermark/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, importlib-metadata -, ipython -, py3nvml -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + importlib-metadata, + ipython, + py3nvml, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-4/1Y7cdh1tF33jgPrqdxCGPcRnnxx+Wf8lyztF54Ck0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ ipython @@ -33,18 +32,14 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - gpu = [ - py3nvml - ]; + gpu = [ py3nvml ]; }; - nativeCheckInputs = [ + nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "watermark" - ]; + pythonImportsCheck = [ "watermark" ]; meta = with lib; { description = "IPython extension for printing date and timestamps, version numbers, and hardware information"; diff --git a/pkgs/development/python-modules/wavedrom/default.nix b/pkgs/development/python-modules/wavedrom/default.nix index 3cf3eb30111c..d5e36be1e9f1 100644 --- a/pkgs/development/python-modules/wavedrom/default.nix +++ b/pkgs/development/python-modules/wavedrom/default.nix @@ -1,15 +1,16 @@ -{ lib -, attrdict -, buildPythonPackage -, cairosvg -, fetchPypi -, pillow -, pytestCheckHook -, pyyaml -, setuptools-scm -, six -, svgwrite -, xmldiff +{ + lib, + attrdict, + buildPythonPackage, + cairosvg, + fetchPypi, + pillow, + pytestCheckHook, + pyyaml, + setuptools-scm, + six, + svgwrite, + xmldiff, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-MntNXcpZPIElfCAv6lFvepCHR/sRUnw1nwNPW3r39Hs="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ attrdict @@ -45,9 +44,7 @@ buildPythonPackage rec { "test_upstream" ]; - pythonImportsCheck = [ - "wavedrom" - ]; + pythonImportsCheck = [ "wavedrom" ]; meta = with lib; { description = "WaveDrom compatible Python command line"; diff --git a/pkgs/development/python-modules/wavefile/default.nix b/pkgs/development/python-modules/wavefile/default.nix index 4a8272e2f668..c0e67979e89b 100644 --- a/pkgs/development/python-modules/wavefile/default.nix +++ b/pkgs/development/python-modules/wavefile/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pyaudio -, numpy -, libsndfile -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pyaudio, + numpy, + libsndfile, + substituteAll, }: buildPythonPackage rec { @@ -21,18 +22,14 @@ buildPythonPackage rec { hash = "sha256-TLSWhLARY+3sHkl2p3d3LDGzLu6DggjTJWFpyrwRXSI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ pyaudio libsndfile ]; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; nativeCheckInputs = [ pyaudio @@ -51,9 +48,7 @@ buildPythonPackage rec { doCheck = false; # all test files (test/wavefileTest.py) are failing - pythonImportsCheck = [ - "wavefile" - ]; + pythonImportsCheck = [ "wavefile" ]; meta = with lib; { description = "Pythonic libsndfile wrapper to read and write audio files"; diff --git a/pkgs/development/python-modules/wavinsentio/default.nix b/pkgs/development/python-modules/wavinsentio/default.nix index 22ed0d177a36..b7b1f1cd645f 100644 --- a/pkgs/development/python-modules/wavinsentio/default.nix +++ b/pkgs/development/python-modules/wavinsentio/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-Oko3Ivj95vajNWjQTQK18i5B/DIBngjw2HLlzYqLv2Y="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "wavinsentio" - ]; + pythonImportsCheck = [ "wavinsentio" ]; meta = with lib; { description = "Python module to interact with the Wavin Sentio underfloor heating system"; diff --git a/pkgs/development/python-modules/waybackpy/default.nix b/pkgs/development/python-modules/waybackpy/default.nix index 1faa3beaef8f..222a3566600f 100644 --- a/pkgs/development/python-modules/waybackpy/default.nix +++ b/pkgs/development/python-modules/waybackpy/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, click -, urllib3 -, requests -, pytest +{ + lib, + buildPythonPackage, + fetchPypi, + click, + urllib3, + requests, + pytest, }: buildPythonPackage rec { pname = "waybackpy"; diff --git a/pkgs/development/python-modules/wazeroutecalculator/default.nix b/pkgs/development/python-modules/wazeroutecalculator/default.nix index 34c2430632bd..3812a83ffbfc 100644 --- a/pkgs/development/python-modules/wazeroutecalculator/default.nix +++ b/pkgs/development/python-modules/wazeroutecalculator/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -18,16 +19,12 @@ buildPythonPackage rec { hash = "sha256-DB5oWthWNwamFG3kNxA/kmUBOVogoSg5LI2KrI39s4M="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # there are no tests doCheck = false; - pythonImportsCheck = [ - "WazeRouteCalculator" - ]; + pythonImportsCheck = [ "WazeRouteCalculator" ]; meta = with lib; { description = "Calculate actual route time and distance with Waze API"; diff --git a/pkgs/development/python-modules/wcag-contrast-ratio/default.nix b/pkgs/development/python-modules/wcag-contrast-ratio/default.nix index 6a047c271658..34383f549f99 100644 --- a/pkgs/development/python-modules/wcag-contrast-ratio/default.nix +++ b/pkgs/development/python-modules/wcag-contrast-ratio/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; pythonImportsCheck = [ "wcag_contrast_ratio" ]; diff --git a/pkgs/development/python-modules/wcmatch/default.nix b/pkgs/development/python-modules/wcmatch/default.nix index 7f86afe62117..90c83d35964f 100644 --- a/pkgs/development/python-modules/wcmatch/default.nix +++ b/pkgs/development/python-modules/wcmatch/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatchling -, pytestCheckHook -, bracex +{ + lib, + buildPythonPackage, + fetchPypi, + hatchling, + pytestCheckHook, + bracex, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-pwIiuG3qgvs4Ldh7cyeMEHVsE4vW+PcU4hgxKIh7nrI="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ bracex ]; @@ -28,9 +27,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - disabledTests = [ - "TestTilde" - ]; + disabledTests = [ "TestTilde" ]; pythonImportsCheck = [ "wcmatch" ]; diff --git a/pkgs/development/python-modules/wcwidth/default.nix b/pkgs/development/python-modules/wcwidth/default.nix index 52a411b23269..27a3bac5d7d1 100644 --- a/pkgs/development/python-modules/wcwidth/default.nix +++ b/pkgs/development/python-modules/wcwidth/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -18,20 +19,14 @@ buildPythonPackage rec { hash = "sha256-cuoMBjmesobZeP3ttpI6nrR+HEhs5j6bTmT8GDA5crU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # To prevent infinite recursion with pytest doCheck = false; - pythonImportsCheck = [ - "wcwidth" - ]; + pythonImportsCheck = [ "wcwidth" ]; meta = with lib; { description = "Measures number of Terminal column cells of wide-character codes"; diff --git a/pkgs/development/python-modules/weasel/default.nix b/pkgs/development/python-modules/weasel/default.nix index e38c815d7c7f..be8823a783dd 100644 --- a/pkgs/development/python-modules/weasel/default.nix +++ b/pkgs/development/python-modules/weasel/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, cloudpathlib -, confection -, fetchFromGitHub -, packaging -, pydantic -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, requests -, setuptools -, smart-open -, srsly -, typer -, wasabi +{ + lib, + buildPythonPackage, + cloudpathlib, + confection, + fetchFromGitHub, + packaging, + pydantic, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + requests, + setuptools, + smart-open, + srsly, + typer, + wasabi, }: buildPythonPackage rec { @@ -55,9 +56,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "weasel" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # This test requires internet access diff --git a/pkgs/development/python-modules/weasyprint/default.nix b/pkgs/development/python-modules/weasyprint/default.nix index 5d53bcbb7078..914da465b54c 100644 --- a/pkgs/development/python-modules/weasyprint/default.nix +++ b/pkgs/development/python-modules/weasyprint/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, buildPythonPackage -, cairosvg -, cffi -, cssselect2 -, fetchPypi -, flit-core -, fontconfig -, fonttools -, ghostscript -, glib -, harfbuzz -, html5lib -, pango -, pillow -, pydyf -, pyphen -, pytestCheckHook -, pythonOlder -, substituteAll -, tinycss2 +{ + lib, + stdenv, + buildPythonPackage, + cairosvg, + cffi, + cssselect2, + fetchPypi, + flit-core, + fontconfig, + fonttools, + ghostscript, + glib, + harfbuzz, + html5lib, + pango, + pillow, + pydyf, + pyphen, + pytestCheckHook, + pythonOlder, + substituteAll, + tinycss2, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ cffi @@ -80,9 +79,7 @@ buildPythonPackage rec { FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf"; # Set env variable explicitly for Darwin, but allow overriding when invoking directly - makeWrapperArgs = [ - "--set-default FONTCONFIG_FILE ${FONTCONFIG_FILE}" - ]; + makeWrapperArgs = [ "--set-default FONTCONFIG_FILE ${FONTCONFIG_FILE}" ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -94,9 +91,7 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; - pythonImportsCheck = [ - "weasyprint" - ]; + pythonImportsCheck = [ "weasyprint" ]; meta = with lib; { description = "Converts web documents to PDF"; diff --git a/pkgs/development/python-modules/web-cache/default.nix b/pkgs/development/python-modules/web-cache/default.nix index 18909898c9d8..fbc9cf2aaa8c 100644 --- a/pkgs/development/python-modules/web-cache/default.nix +++ b/pkgs/development/python-modules/web-cache/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, +}: buildPythonPackage rec { pname = "web-cache"; diff --git a/pkgs/development/python-modules/web/default.nix b/pkgs/development/python-modules/web/default.nix index 33017b3a4650..39275ca1eb7a 100644 --- a/pkgs/development/python-modules/web/default.nix +++ b/pkgs/development/python-modules/web/default.nix @@ -1,6 +1,14 @@ -{ lib, buildPythonPackage, fetchPypi, pytestCheckHook -, cheroot -, dbutils, mysqlclient, pymysql, mysql-connector, psycopg2 +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + cheroot, + dbutils, + mysqlclient, + pymysql, + mysql-connector, + psycopg2, }: buildPythonPackage rec { @@ -19,7 +27,14 @@ buildPythonPackage rec { pythonImportsCheck = [ "web" ]; - nativeCheckInputs = [ pytestCheckHook dbutils mysqlclient pymysql mysql-connector psycopg2 ]; + nativeCheckInputs = [ + pytestCheckHook + dbutils + mysqlclient + pymysql + mysql-connector + psycopg2 + ]; meta = with lib; { description = "Makes web apps"; @@ -31,5 +46,4 @@ buildPythonPackage rec { license = licenses.publicDomain; maintainers = with maintainers; [ layus ]; }; - } diff --git a/pkgs/development/python-modules/web3/default.nix b/pkgs/development/python-modules/web3/default.nix index ae709ef40886..25b273051e39 100644 --- a/pkgs/development/python-modules/web3/default.nix +++ b/pkgs/development/python-modules/web3/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, aiohttp -, eth-abi -, eth-account -, eth-hash -, eth-typing -, eth-utils -, hexbytes -, ipfshttpclient -, jsonschema -, lru-dict -, protobuf -, requests -, websockets +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + aiohttp, + eth-abi, + eth-account, + eth-hash, + eth-typing, + eth-utils, + hexbytes, + ipfshttpclient, + jsonschema, + lru-dict, + protobuf, + requests, + websockets, }: buildPythonPackage rec { @@ -36,20 +37,24 @@ buildPythonPackage rec { ipfs = [ ipfshttpclient ]; }; - propagatedBuildInputs = [ - aiohttp - eth-abi - eth-account - eth-hash ] ++ eth-hash.optional-dependencies.pycryptodome ++ [ - eth-typing - eth-utils - hexbytes - jsonschema - lru-dict - protobuf - requests - websockets - ]; + propagatedBuildInputs = + [ + aiohttp + eth-abi + eth-account + eth-hash + ] + ++ eth-hash.optional-dependencies.pycryptodome + ++ [ + eth-typing + eth-utils + hexbytes + jsonschema + lru-dict + protobuf + requests + websockets + ]; # TODO: package eth-tester required for tests doCheck = false; @@ -58,9 +63,7 @@ buildPythonPackage rec { substituteInPlace setup.py --replace "types-protobuf==3.19.13" "types-protobuf" ''; - pythonImportsCheck = [ - "web3" - ]; + pythonImportsCheck = [ "web3" ]; meta = with lib; { description = "A python interface for interacting with the Ethereum blockchain and ecosystem"; diff --git a/pkgs/development/python-modules/webargs/default.nix b/pkgs/development/python-modules/webargs/default.nix index 800649a09388..21c7af1cfdbc 100644 --- a/pkgs/development/python-modules/webargs/default.nix +++ b/pkgs/development/python-modules/webargs/default.nix @@ -1,6 +1,21 @@ -{ buildPythonPackage, fetchPypi, lib, isPy27, marshmallow, pytestCheckHook -, pytest-aiohttp, webtest, webtest-aiohttp, flask, django, bottle, tornado -, pyramid, falcon, aiohttp }: +{ + buildPythonPackage, + fetchPypi, + lib, + isPy27, + marshmallow, + pytestCheckHook, + pytest-aiohttp, + webtest, + webtest-aiohttp, + flask, + django, + bottle, + tornado, + pyramid, + falcon, + aiohttp, +}: buildPythonPackage rec { pname = "webargs"; @@ -13,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-6pk2ghSkzmE5JL6Z1x21jCaWMele/0+gm3NU5S3ABqU="; }; - pythonImportsCheck = [ - "webargs" - ]; + pythonImportsCheck = [ "webargs" ]; propagatedBuildInputs = [ marshmallow ]; diff --git a/pkgs/development/python-modules/webassets/default.nix b/pkgs/development/python-modules/webassets/default.nix index 75a127d475ef..64b45c17154c 100644 --- a/pkgs/development/python-modules/webassets/default.nix +++ b/pkgs/development/python-modules/webassets/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi, pyyaml, nose, jinja2, mock, pytest }: +{ + lib, + buildPythonPackage, + fetchPypi, + pyyaml, + nose, + jinja2, + mock, + pytest, +}: buildPythonPackage rec { pname = "webassets"; @@ -11,7 +20,12 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ pyyaml ]; - nativeCheckInputs = [ nose jinja2 mock pytest ]; + nativeCheckInputs = [ + nose + jinja2 + mock + pytest + ]; # Needs Babel CLI tool doCheck = false; diff --git a/pkgs/development/python-modules/webauthn/default.nix b/pkgs/development/python-modules/webauthn/default.nix index f1197fe4a7af..af0621ad54d4 100644 --- a/pkgs/development/python-modules/webauthn/default.nix +++ b/pkgs/development/python-modules/webauthn/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, asn1crypto -, cbor2 -, pythonOlder -, pyopenssl -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + asn1crypto, + cbor2, + pythonOlder, + pyopenssl, + pytestCheckHook, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { pyopenssl ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "webauthn" - ]; + pythonImportsCheck = [ "webauthn" ]; disabledTests = [ # TypeError: X509StoreContextError.__init__() missing 1 required... diff --git a/pkgs/development/python-modules/webcolors/default.nix b/pkgs/development/python-modules/webcolors/default.nix index 7ee91e7ea2b4..2cd7fed14103 100644 --- a/pkgs/development/python-modules/webcolors/default.nix +++ b/pkgs/development/python-modules/webcolors/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, unittestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + unittestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -18,18 +19,17 @@ buildPythonPackage rec { hash = "sha256-wiW2dMg/qSO+k9I1MwzgMANz0CiFzvIyOIE7DVZoMEo="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; - - pythonImportsCheck = [ - "webcolors" + unittestFlagsArray = [ + "-s" + "tests" ]; + pythonImportsCheck = [ "webcolors" ]; + meta = with lib; { description = "Library for working with color names/values defined by the HTML and CSS specifications"; homepage = "https://github.com/ubernostrum/webcolors"; diff --git a/pkgs/development/python-modules/webdataset/default.nix b/pkgs/development/python-modules/webdataset/default.nix index 1215d5a1c8c4..985111264923 100644 --- a/pkgs/development/python-modules/webdataset/default.nix +++ b/pkgs/development/python-modules/webdataset/default.nix @@ -1,18 +1,19 @@ -{ lib -, stdenv -, buildPythonPackage -, braceexpand -, imageio -, lmdb -, msgpack -, numpy -, pytestCheckHook -, pyyaml -, setuptools -, torch -, torchvision -, wheel -, fetchFromGitHub +{ + lib, + stdenv, + buildPythonPackage, + braceexpand, + imageio, + lmdb, + msgpack, + numpy, + pytestCheckHook, + pyyaml, + setuptools, + torch, + torchvision, + wheel, + fetchFromGitHub, }: buildPythonPackage rec { pname = "webdataset"; @@ -48,36 +49,40 @@ buildPythonPackage rec { pythonImportsCheck = [ "webdataset" ]; - disabledTests = [ - # requires network - "test_batched" - "test_cache_dir" - "test_concurrent_download_and_open" - "test_dataloader" - "test_decode_handlers" - "test_decoder" - "test_download" - "test_handlers" - "test_pipe" - "test_remote_file" - "test_shard_syntax" - "test_torchvision" - "test_unbatched" - "test_yaml3" - ] ++ lib.optionals stdenv.isDarwin [ - # pickling error - "test_background_download" - ] ++ lib.optionals (stdenv.isx86_64 && stdenv.isDarwin) [ - "test_concurrent_access" - # fails to patch 'init_process_group' from torch.distributed - "TestDistributedChunkedSampler" - ] ++ lib.optionals (stdenv.isAarch64 && stdenv.isLinux) [ - # segfaults on aarch64-linux - "test_webloader" - "test_webloader2" - "test_webloader_repeat" - "test_webloader_unbatched" - ]; + disabledTests = + [ + # requires network + "test_batched" + "test_cache_dir" + "test_concurrent_download_and_open" + "test_dataloader" + "test_decode_handlers" + "test_decoder" + "test_download" + "test_handlers" + "test_pipe" + "test_remote_file" + "test_shard_syntax" + "test_torchvision" + "test_unbatched" + "test_yaml3" + ] + ++ lib.optionals stdenv.isDarwin [ + # pickling error + "test_background_download" + ] + ++ lib.optionals (stdenv.isx86_64 && stdenv.isDarwin) [ + "test_concurrent_access" + # fails to patch 'init_process_group' from torch.distributed + "TestDistributedChunkedSampler" + ] + ++ lib.optionals (stdenv.isAarch64 && stdenv.isLinux) [ + # segfaults on aarch64-linux + "test_webloader" + "test_webloader2" + "test_webloader_repeat" + "test_webloader_unbatched" + ]; meta = with lib; { description = "A high-performance Python-based I/O system for large (and small) deep learning problems, with strong support for PyTorch"; diff --git a/pkgs/development/python-modules/webdav4/default.nix b/pkgs/development/python-modules/webdav4/default.nix index 831ebbe43dd4..6e4d6657763c 100644 --- a/pkgs/development/python-modules/webdav4/default.nix +++ b/pkgs/development/python-modules/webdav4/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, cheroot -, colorama -, fetchFromGitHub -, fsspec -, hatch-vcs -, hatchling -, httpx -, pytest-xdist -, pytestCheckHook -, python-dateutil -, pythonOlder -, wsgidav +{ + lib, + buildPythonPackage, + cheroot, + colorama, + fetchFromGitHub, + fsspec, + hatch-vcs, + hatchling, + httpx, + pytest-xdist, + pytestCheckHook, + python-dateutil, + pythonOlder, + wsgidav, }: buildPythonPackage rec { @@ -52,21 +53,15 @@ buildPythonPackage rec { ] ++ passthru.optional-dependencies.fsspec; passthru.optional-dependencies = { - fsspec = [ - fsspec - ]; - http2 = [ - httpx.optional-dependencies.http2 - ]; + fsspec = [ fsspec ]; + http2 = [ httpx.optional-dependencies.http2 ]; all = [ fsspec httpx.optional-dependencies.http2 ]; }; - pythonImportsCheck = [ - "webdav4" - ]; + pythonImportsCheck = [ "webdav4" ]; disabledTests = [ # ValueError: Invalid dir_browser htdocs_path @@ -78,7 +73,6 @@ buildPythonPackage rec { "test_cp_cli" "test_mv_cli" "test_sync_remote_to_local" - ]; disabledTestPaths = [ diff --git a/pkgs/development/python-modules/webdavclient3/default.nix b/pkgs/development/python-modules/webdavclient3/default.nix index 0cd96d389bd0..168ee71745f4 100644 --- a/pkgs/development/python-modules/webdavclient3/default.nix +++ b/pkgs/development/python-modules/webdavclient3/default.nix @@ -1,5 +1,13 @@ -{ buildPythonPackage, fetchPypi, isPy27, lib, python-dateutil, lxml, requests -, pytestCheckHook }: +{ + buildPythonPackage, + fetchPypi, + isPy27, + lib, + python-dateutil, + lxml, + requests, + pytestCheckHook, +}: buildPythonPackage rec { pname = "webdavclient3"; @@ -13,7 +21,11 @@ buildPythonPackage rec { sha256 = "bcd22586bb0d58abc26ca56054fd04228e704bd36073c3080f4597c1556c880d"; }; - propagatedBuildInputs = [ python-dateutil lxml requests ]; + propagatedBuildInputs = [ + python-dateutil + lxml + requests + ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/webencodings/default.nix b/pkgs/development/python-modules/webencodings/default.nix index 8a805888c4a0..334ba54b0ba5 100644 --- a/pkgs/development/python-modules/webencodings/default.nix +++ b/pkgs/development/python-modules/webencodings/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, pytest +{ + buildPythonPackage, + lib, + fetchPypi, + pytest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/webhelpers/default.nix b/pkgs/development/python-modules/webhelpers/default.nix index c9dc7159f2f8..4b7c9c367424 100644 --- a/pkgs/development/python-modules/webhelpers/default.nix +++ b/pkgs/development/python-modules/webhelpers/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, routes -, markupsafe -, webob -, nose +{ + lib, + buildPythonPackage, + fetchPypi, + routes, + markupsafe, + webob, + nose, }: buildPythonPackage rec { @@ -17,7 +18,12 @@ buildPythonPackage rec { sha256 = "ea86f284e929366b77424ba9a89341f43ae8dee3cbeb8702f73bcf86058aa583"; }; - buildInputs = [ routes markupsafe webob nose ]; + buildInputs = [ + routes + markupsafe + webob + nose + ]; # TODO: failing tests https://bitbucket.org/bbangert/webhelpers/pull-request/1/fix-error-on-webob-123/diff doCheck = false; @@ -28,5 +34,4 @@ buildPythonPackage rec { license = licenses.free; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/webob/default.nix b/pkgs/development/python-modules/webob/default.nix index 2b07f61e1d3a..921b75ef0778 100644 --- a/pkgs/development/python-modules/webob/default.nix +++ b/pkgs/development/python-modules/webob/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-tk71FBvlWc+t5EjwRPpFwiYDUe3Lao72t+AMfc7wwyM="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "webob" - ]; + pythonImportsCheck = [ "webob" ]; disabledTestPaths = [ # AttributeError: 'Thread' object has no attribute 'isAlive' diff --git a/pkgs/development/python-modules/weboob/default.nix b/pkgs/development/python-modules/weboob/default.nix index 79a88db2a576..37d639ee336b 100644 --- a/pkgs/development/python-modules/weboob/default.nix +++ b/pkgs/development/python-modules/weboob/default.nix @@ -1,29 +1,30 @@ -{ lib -, babel -, buildPythonPackage -, cssselect -, feedparser -, fetchPypi -, gdata -, gnupg -, google-api-python-client -, html2text -, libyaml -, lxml -, mechanize -, nose -, pdfminer-six -, pillow -, prettytable -, pyqt5 -, pytestCheckHook -, python-dateutil -, pythonOlder -, pyyaml -, requests -, simplejson -, termcolor -, unidecode +{ + lib, + babel, + buildPythonPackage, + cssselect, + feedparser, + fetchPypi, + gdata, + gnupg, + google-api-python-client, + html2text, + libyaml, + lxml, + mechanize, + nose, + pdfminer-six, + pillow, + prettytable, + pyqt5, + pytestCheckHook, + python-dateutil, + pythonOlder, + pyyaml, + requests, + simplejson, + termcolor, + unidecode, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { sha256 = "1c69vzf8sg8471lcaafpz9iw2q3rfj5hmcpqrs2k59fkgbvy32zw"; }; - nativeBuildInputs = [ - pyqt5 - ]; + nativeBuildInputs = [ pyqt5 ]; propagatedBuildInputs = [ babel @@ -76,17 +75,13 @@ buildPythonPackage rec { --replace "weboob.tools.capabilities.bank.transactions," "" ''; - nativeCheckInputs = [ - nose - ]; + nativeCheckInputs = [ nose ]; checkPhase = '' nosetests ''; - pythonImportsCheck = [ - "weboob" - ]; + pythonImportsCheck = [ "weboob" ]; meta = with lib; { description = "Collection of applications and APIs to interact with websites"; diff --git a/pkgs/development/python-modules/webrtc-noise-gain/default.nix b/pkgs/development/python-modules/webrtc-noise-gain/default.nix index 63b02a1bfd0d..2ee864d32426 100644 --- a/pkgs/development/python-modules/webrtc-noise-gain/default.nix +++ b/pkgs/development/python-modules/webrtc-noise-gain/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + stdenv, -# build-system -, pybind11 -, setuptools + # build-system + pybind11, + setuptools, -# native dependencies -, abseil-cpp -, darwin + # native dependencies + abseil-cpp, + darwin, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -34,17 +35,11 @@ buildPythonPackage rec { buildInputs = [ abseil-cpp - ] ++ lib.optionals (stdenv.isDarwin) [ - darwin.apple_sdk.frameworks.CoreServices - ]; + ] ++ lib.optionals (stdenv.isDarwin) [ darwin.apple_sdk.frameworks.CoreServices ]; - pythonImportsCheck = [ - "webrtc_noise_gain" - ]; + pythonImportsCheck = [ "webrtc_noise_gain" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Tiny wrapper around webrtc-audio-processing for noise suppression/auto gain only"; diff --git a/pkgs/development/python-modules/webrtcvad/default.nix b/pkgs/development/python-modules/webrtcvad/default.nix index c47b32a9d3a3..2bc09f2e0c57 100644 --- a/pkgs/development/python-modules/webrtcvad/default.nix +++ b/pkgs/development/python-modules/webrtcvad/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/websocket-client/default.nix b/pkgs/development/python-modules/websocket-client/default.nix index 1903c6cb6466..701583ad521d 100644 --- a/pkgs/development/python-modules/websocket-client/default.nix +++ b/pkgs/development/python-modules/websocket-client/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, python-socks -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + python-socks, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-EOUR6jqMdEYx07135h6xftCTBMQTrULPbd+kx3h+j+Y="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - python-socks - ]; + propagatedBuildInputs = [ python-socks ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "websocket" - ]; + pythonImportsCheck = [ "websocket" ]; meta = with lib; { description = "Websocket client for Python"; diff --git a/pkgs/development/python-modules/websockets/default.nix b/pkgs/development/python-modules/websockets/default.nix index 770e6e654caf..f2c7ce30d799 100644 --- a/pkgs/development/python-modules/websockets/default.nix +++ b/pkgs/development/python-modules/websockets/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, unittestCheckHook -, pythonOlder -, setuptools +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + unittestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-sOL3VI9Ib/PncZs5KN4dAIHOrBc7LfXqT15LO4M6qKg="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; patchPhase = '' # Disable all tests that need to terminate within a predetermined amount of @@ -46,16 +45,12 @@ buildPythonPackage rec { done ''; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; # Tests fail on Darwin with `OSError: AF_UNIX path too long` doCheck = !stdenv.isDarwin; - pythonImportsCheck = [ - "websockets" - ]; + pythonImportsCheck = [ "websockets" ]; meta = with lib; { description = "WebSocket implementation in Python"; diff --git a/pkgs/development/python-modules/websockify/default.nix b/pkgs/development/python-modules/websockify/default.nix index 1dd941379274..470943793d7b 100644 --- a/pkgs/development/python-modules/websockify/default.nix +++ b/pkgs/development/python-modules/websockify/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, jwcrypto -, numpy -, pytestCheckHook -, pythonOlder -, redis -, requests -, simplejson +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + jwcrypto, + numpy, + pytestCheckHook, + pythonOlder, + redis, + requests, + simplejson, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { simplejson ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = lib.optionals stdenv.isDarwin [ # this test failed on macos @@ -43,9 +42,7 @@ buildPythonPackage rec { "test_socket_set_keepalive_options" ]; - pythonImportsCheck = [ - "websockify" - ]; + pythonImportsCheck = [ "websockify" ]; meta = with lib; { description = "WebSockets support for any application/server"; diff --git a/pkgs/development/python-modules/webssh/default.nix b/pkgs/development/python-modules/webssh/default.nix index 4681b186c9ca..53896c039da7 100644 --- a/pkgs/development/python-modules/webssh/default.nix +++ b/pkgs/development/python-modules/webssh/default.nix @@ -1,10 +1,11 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, paramiko -, pytestCheckHook -, tornado +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + paramiko, + pytestCheckHook, + tornado, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { tornado ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "webssh" - ]; + pythonImportsCheck = [ "webssh" ]; disabledTests = [ # Test fails with AttributeError (possibly related to paramiko update) diff --git a/pkgs/development/python-modules/webtest-aiohttp/default.nix b/pkgs/development/python-modules/webtest-aiohttp/default.nix index f8666689ca31..228dab2dae80 100644 --- a/pkgs/development/python-modules/webtest-aiohttp/default.nix +++ b/pkgs/development/python-modules/webtest-aiohttp/default.nix @@ -1,12 +1,13 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytest-aiohttp -, pytestCheckHook -, pythonOlder -, webtest +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytest-aiohttp, + pytestCheckHook, + pythonOlder, + webtest, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ - webtest - ]; + propagatedBuildInputs = [ webtest ]; nativeCheckInputs = [ aiohttp @@ -41,9 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "webtest_aiohttp" - ]; + pythonImportsCheck = [ "webtest_aiohttp" ]; meta = with lib; { changelog = "https://github.com/sloria/webtest-aiohttp/blob/${src.rev}/CHANGELOG.rst"; diff --git a/pkgs/development/python-modules/webtest/default.nix b/pkgs/development/python-modules/webtest/default.nix index 52d48505df47..15a36b3dc8f1 100644 --- a/pkgs/development/python-modules/webtest/default.nix +++ b/pkgs/development/python-modules/webtest/default.nix @@ -1,16 +1,17 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, fetchPypi -, fetchpatch -, pastedeploy -, pyquery -, pytestCheckHook -, pythonOlder -, six -, waitress -, webob -, wsgiproxy2 +{ + lib, + beautifulsoup4, + buildPythonPackage, + fetchPypi, + fetchpatch, + pastedeploy, + pyquery, + pytestCheckHook, + pythonOlder, + six, + waitress, + webob, + wsgiproxy2, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { __darwinAllowLocalNetworking = true; - pythonImportsCheck = [ - "webtest" - ]; + pythonImportsCheck = [ "webtest" ]; meta = with lib; { description = "Helper to test WSGI applications"; diff --git a/pkgs/development/python-modules/webthing-ws/default.nix b/pkgs/development/python-modules/webthing-ws/default.nix index 1e7b89e03b62..83f1c813e88d 100644 --- a/pkgs/development/python-modules/webthing-ws/default.nix +++ b/pkgs/development/python-modules/webthing-ws/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "webthing_ws" - ]; + pythonImportsCheck = [ "webthing_ws" ]; meta = with lib; { description = "WebThing WebSocket consumer and API client"; diff --git a/pkgs/development/python-modules/webthing/default.nix b/pkgs/development/python-modules/webthing/default.nix index aea123bc78c1..4f4ede0e8ba1 100644 --- a/pkgs/development/python-modules/webthing/default.nix +++ b/pkgs/development/python-modules/webthing/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, ifaddr -, jsonschema -, pyee -, pythonOlder -, tornado -, zeroconf +{ + lib, + buildPythonPackage, + fetchFromGitHub, + ifaddr, + jsonschema, + pyee, + pythonOlder, + tornado, + zeroconf, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # No tests are present doCheck = false; - pythonImportsCheck = [ - "webthing" - ]; + pythonImportsCheck = [ "webthing" ]; meta = with lib; { description = "Python implementation of a Web Thing server"; diff --git a/pkgs/development/python-modules/weconnect/default.nix b/pkgs/development/python-modules/weconnect/default.nix index 096e41b89bcc..e653d684d447 100644 --- a/pkgs/development/python-modules/weconnect/default.nix +++ b/pkgs/development/python-modules/weconnect/default.nix @@ -1,13 +1,14 @@ -{ lib -, ascii-magic -, buildPythonPackage -, fetchFromGitHub -, oauthlib -, pillow -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + ascii-magic, + buildPythonPackage, + fetchFromGitHub, + oauthlib, + pillow, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { --replace-fail "required_plugins = pytest-cov" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ oauthlib @@ -51,13 +50,9 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "weconnect" - ]; + pythonImportsCheck = [ "weconnect" ]; meta = with lib; { description = "Python client for the Volkswagen WeConnect Services"; diff --git a/pkgs/development/python-modules/werkzeug/default.nix b/pkgs/development/python-modules/werkzeug/default.nix index 66dca4c90bcb..49d4f1898f83 100644 --- a/pkgs/development/python-modules/werkzeug/default.nix +++ b/pkgs/development/python-modules/werkzeug/default.nix @@ -1,29 +1,30 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchPypi +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchPypi, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, markupsafe + # dependencies + markupsafe, -# optional-dependencies -, watchdog + # optional-dependencies + watchdog, -# tests -, cryptography -, ephemeral-port-reserve -, greenlet -, pytest-timeout -, pytest-xprocess -, pytestCheckHook + # tests + cryptography, + ephemeral-port-reserve, + greenlet, + pytest-timeout, + pytest-xprocess, + pytestCheckHook, -# reverse dependencies -, moto -, sentry-sdk + # reverse dependencies + moto, + sentry-sdk, }: buildPythonPackage rec { @@ -38,13 +39,9 @@ buildPythonPackage rec { hash = "sha256-CX5b/anwq6jaa4VFFG3vSB0Gqn0yZudEjizM9n3YvRg="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ - markupsafe - ]; + propagatedBuildInputs = [ markupsafe ]; passthru.optional-dependencies = { watchdog = lib.optionals (!stdenv.isDarwin) [ @@ -53,21 +50,20 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ - cryptography - ephemeral-port-reserve - pytest-timeout - pytest-xprocess - pytestCheckHook - ] ++ lib.optionals (pythonOlder "3.11") [ - greenlet - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + nativeCheckInputs = + [ + cryptography + ephemeral-port-reserve + pytest-timeout + pytest-xprocess + pytestCheckHook + ] + ++ lib.optionals (pythonOlder "3.11") [ greenlet ] + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); pythonImportsCheck = [ "werkzeug" ]; - disabledTests = lib.optionals stdenv.isDarwin [ - "test_get_machine_id" - ]; + disabledTests = lib.optionals stdenv.isDarwin [ "test_get_machine_id" ]; disabledTestPaths = [ # ConnectionRefusedError: [Errno 111] Connection refused @@ -85,7 +81,9 @@ buildPythonPackage rec { }; meta = { - changelog = "https://werkzeug.palletsprojects.com/en/${lib.versions.majorMinor version}.x/changes/#version-${lib.replaceStrings [ "." ] [ "-" ] version}"; + changelog = "https://werkzeug.palletsprojects.com/en/${lib.versions.majorMinor version}.x/changes/#version-${ + lib.replaceStrings [ "." ] [ "-" ] version + }"; homepage = "https://palletsprojects.com/p/werkzeug/"; description = "The comprehensive WSGI web application library"; longDescription = '' diff --git a/pkgs/development/python-modules/west/default.nix b/pkgs/development/python-modules/west/default.nix index 55ad178d0b38..e644d156edb0 100644 --- a/pkgs/development/python-modules/west/default.nix +++ b/pkgs/development/python-modules/west/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, colorama -, configobj -, fetchPypi -, packaging -, pykwalify -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + colorama, + configobj, + fetchPypi, + packaging, + pykwalify, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { # tests run under 'tox' and have west try to git clone repos (not sandboxable) doCheck = false; - pythonImportsCheck = [ - "west" - ]; + pythonImportsCheck = [ "west" ]; meta = with lib; { description = "Zephyr RTOS meta tool"; diff --git a/pkgs/development/python-modules/wfuzz/default.nix b/pkgs/development/python-modules/wfuzz/default.nix index 1bc512398bd0..8c46f47ffdaf 100644 --- a/pkgs/development/python-modules/wfuzz/default.nix +++ b/pkgs/development/python-modules/wfuzz/default.nix @@ -1,17 +1,18 @@ -{ lib -, stdenv -, buildPythonPackage -, chardet -, colorama -, fetchFromGitHub -, netaddr -, pycurl -, pyparsing -, pytest -, pytestCheckHook -, pythonOlder -, setuptools -, six +{ + lib, + stdenv, + buildPythonPackage, + chardet, + colorama, + fetchFromGitHub, + netaddr, + pycurl, + pyparsing, + pytest, + pytestCheckHook, + pythonOlder, + setuptools, + six, }: buildPythonPackage rec { @@ -39,9 +40,7 @@ buildPythonPackage rec { six setuptools pyparsing - ] ++ lib.optionals stdenv.hostPlatform.isWindows [ - colorama - ]; + ] ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]; nativeCheckInputs = [ netaddr @@ -59,9 +58,7 @@ buildPythonPackage rec { "tests/acceptance/test_saved_filter.py" ]; - pythonImportsCheck = [ - "wfuzz" - ]; + pythonImportsCheck = [ "wfuzz" ]; postInstall = '' mkdir -p $out/share/wordlists/wfuzz diff --git a/pkgs/development/python-modules/wget/default.nix b/pkgs/development/python-modules/wget/default.nix index 394afc50d41b..344592152e9a 100644 --- a/pkgs/development/python-modules/wget/default.nix +++ b/pkgs/development/python-modules/wget/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/whatthepatch/default.nix b/pkgs/development/python-modules/whatthepatch/default.nix index b2379a82006e..1db5e385768c 100644 --- a/pkgs/development/python-modules/whatthepatch/default.nix +++ b/pkgs/development/python-modules/whatthepatch/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-1+OIs77Vyx56pgf7VSmi4UsPgkv8qZXFm8L2jK2CTMk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "whatthepatch" - ]; + pythonImportsCheck = [ "whatthepatch" ]; meta = with lib; { description = "Python library for both parsing and applying patch files"; diff --git a/pkgs/development/python-modules/wheel-filename/default.nix b/pkgs/development/python-modules/wheel-filename/default.nix index fd1ec9d946a2..81a391a79093 100644 --- a/pkgs/development/python-modules/wheel-filename/default.nix +++ b/pkgs/development/python-modules/wheel-filename/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { @@ -35,18 +36,14 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace tox.ini \ --replace " --cov=wheel_filename --no-cov-on-fail" "" ''; - pythonImportsCheck = [ - "wheel_filename" - ]; + pythonImportsCheck = [ "wheel_filename" ]; meta = with lib; { description = "Parse wheel filenames"; diff --git a/pkgs/development/python-modules/wheel-inspect/default.nix b/pkgs/development/python-modules/wheel-inspect/default.nix index 30c8b30a095c..683cec66d3a5 100644 --- a/pkgs/development/python-modules/wheel-inspect/default.nix +++ b/pkgs/development/python-modules/wheel-inspect/default.nix @@ -1,18 +1,19 @@ -{ lib -, attrs -, buildPythonPackage -, entry-points-txt -, fetchFromGitHub -, hatchling -, headerparser -, jsonschema -, pythonRelaxDepsHook -, packaging -, pytestCheckHook -, pythonOlder -, readme-renderer -, setuptools -, wheel-filename +{ + lib, + attrs, + buildPythonPackage, + entry-points-txt, + fetchFromGitHub, + hatchling, + headerparser, + jsonschema, + pythonRelaxDepsHook, + packaging, + pytestCheckHook, + pythonOlder, + readme-renderer, + setuptools, + wheel-filename, }: buildPythonPackage rec { @@ -53,18 +54,14 @@ buildPythonPackage rec { wheel-filename ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ setuptools jsonschema ]; - pythonImportsCheck = [ - "wheel_inspect" - ]; + pythonImportsCheck = [ "wheel_inspect" ]; pytestFlagsArray = [ "-W" diff --git a/pkgs/development/python-modules/wheel/default.nix b/pkgs/development/python-modules/wheel/default.nix index 6a682fc300c9..e3df856893b7 100644 --- a/pkgs/development/python-modules/wheel/default.nix +++ b/pkgs/development/python-modules/wheel/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, flit-core +{ + lib, + buildPythonPackage, + fetchFromGitHub, + flit-core, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { ''; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; # No tests in archive doCheck = false; diff --git a/pkgs/development/python-modules/wheezy-captcha/default.nix b/pkgs/development/python-modules/wheezy-captcha/default.nix index fc0701704d79..157a659f2fc2 100644 --- a/pkgs/development/python-modules/wheezy-captcha/default.nix +++ b/pkgs/development/python-modules/wheezy-captcha/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pillow +{ + lib, + buildPythonPackage, + fetchPypi, + pillow, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wheezy-template/default.nix b/pkgs/development/python-modules/wheezy-template/default.nix index 53a0bf2867d0..52b3553666f6 100644 --- a/pkgs/development/python-modules/wheezy-template/default.nix +++ b/pkgs/development/python-modules/wheezy-template/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/whenever/default.nix b/pkgs/development/python-modules/whenever/default.nix index cb72e8b0aa42..00fbeb703bf6 100644 --- a/pkgs/development/python-modules/whenever/default.nix +++ b/pkgs/development/python-modules/whenever/default.nix @@ -1,14 +1,15 @@ -{ lib -, fetchFromGitHub -, pythonOlder -, buildPythonPackage -, poetry-core -, backports-zoneinfo -, tzdata -, pytestCheckHook -, pytest-mypy-plugins -, hypothesis -, freezegun +{ + lib, + fetchFromGitHub, + pythonOlder, + buildPythonPackage, + poetry-core, + backports-zoneinfo, + tzdata, + pytestCheckHook, + pytest-mypy-plugins, + hypothesis, + freezegun, }: buildPythonPackage rec { @@ -31,15 +32,9 @@ buildPythonPackage rec { --replace-fail '--benchmark-disable' '#--benchmark-disable' ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - dependencies = [ - tzdata - ] ++ lib.optionals (pythonOlder "3.9") [ - backports-zoneinfo - ]; + dependencies = [ tzdata ] ++ lib.optionals (pythonOlder "3.9") [ backports-zoneinfo ]; nativeCheckInputs = [ pytestCheckHook @@ -48,9 +43,7 @@ buildPythonPackage rec { freezegun ]; - pythonImportsCheck = [ - "whenever" - ]; + pythonImportsCheck = [ "whenever" ]; # early TDD, many tests are failing # TODO: try enabling on bump diff --git a/pkgs/development/python-modules/whichcraft/default.nix b/pkgs/development/python-modules/whichcraft/default.nix index a27b8e1660ef..e2156831dbb2 100644 --- a/pkgs/development/python-modules/whichcraft/default.nix +++ b/pkgs/development/python-modules/whichcraft/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }: +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + glibcLocales, +}: buildPythonPackage rec { pname = "whichcraft"; @@ -10,7 +16,7 @@ buildPythonPackage rec { sha256 = "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc"; }; - LC_ALL="en_US.utf-8"; + LC_ALL = "en_US.utf-8"; buildInputs = [ glibcLocales ]; nativeCheckInputs = [ pytest ]; diff --git a/pkgs/development/python-modules/whisper/default.nix b/pkgs/development/python-modules/whisper/default.nix index 28635d04fc1f..c25ed5598992 100644 --- a/pkgs/development/python-modules/whisper/default.nix +++ b/pkgs/development/python-modules/whisper/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, mock -, six -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + mock, + six, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { hash = "sha256-CnCbRmI2jc67mTtfupoE1uHtobrAiWoUXbfX8YeEV6A="; }; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ mock @@ -37,7 +36,10 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://github.com/graphite-project/whisper"; description = "Fixed size round-robin style database"; - maintainers = with maintainers; [ offline basvandijk ]; + maintainers = with maintainers; [ + offline + basvandijk + ]; license = licenses.asl20; }; } diff --git a/pkgs/development/python-modules/whitenoise/default.nix b/pkgs/development/python-modules/whitenoise/default.nix index 04f9528c8d74..a47c58b1adff 100644 --- a/pkgs/development/python-modules/whitenoise/default.nix +++ b/pkgs/development/python-modules/whitenoise/default.nix @@ -1,12 +1,13 @@ -{ lib -, brotli -, buildPythonPackage -, django -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, requests -, setuptools +{ + lib, + brotli, + buildPythonPackage, + django, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hash = "sha256-Z59GjrOL+BPHqBCirg9T4qBOrjiuBng6Q5lTuLQx9ac="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - brotli - ]; + propagatedBuildInputs = [ brotli ]; nativeCheckInputs = [ django @@ -51,9 +48,7 @@ buildPythonPackage rec { "test_modified" ]; - pythonImportsCheck = [ - "whitenoise" - ]; + pythonImportsCheck = [ "whitenoise" ]; meta = with lib; { description = "Library to serve static file for WSGI applications"; diff --git a/pkgs/development/python-modules/whodap/default.nix b/pkgs/development/python-modules/whodap/default.nix index f6707f9fc310..b73b2045a937 100644 --- a/pkgs/development/python-modules/whodap/default.nix +++ b/pkgs/development/python-modules/whodap/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, httpx +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + httpx, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-kw7bmkpDNb/PK/Q2tSbG+ju0G+6tdSy3RaNDaNOVYnE="; }; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; nativeCheckInputs = [ pytest-asyncio @@ -35,9 +34,7 @@ buildPythonPackage rec { "tests/test_client.py" ]; - pythonImportsCheck = [ - "whodap" - ]; + pythonImportsCheck = [ "whodap" ]; meta = with lib; { description = "Python RDAP utility for querying and parsing information about domain names"; diff --git a/pkgs/development/python-modules/whois-api/default.nix b/pkgs/development/python-modules/whois-api/default.nix index 775fb6335697..0623b4297fb7 100644 --- a/pkgs/development/python-modules/whois-api/default.nix +++ b/pkgs/development/python-modules/whois-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -18,13 +19,9 @@ buildPythonPackage rec { hash = "sha256-SeBeJ6k2R53LxHov+8t70geqUosk/yBJQCi6GaVteMM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # all tests touch internet doCheck = false; diff --git a/pkgs/development/python-modules/whois/default.nix b/pkgs/development/python-modules/whois/default.nix index 9d317c92323f..9c31e43a59f5 100644 --- a/pkgs/development/python-modules/whois/default.nix +++ b/pkgs/development/python-modules/whois/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, inetutils -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + inetutils, + pythonOlder, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-uKAqpxb72fo0DiaChuJvDizq0z/oFSDHWJuK4vuYIzo="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; propagatedBuildInputs = [ # whois is needed @@ -32,9 +31,7 @@ buildPythonPackage rec { # Tests require network access doCheck = false; - pythonImportsCheck = [ - "whois" - ]; + pythonImportsCheck = [ "whois" ]; meta = with lib; { description = "Python module/library for retrieving WHOIS information"; diff --git a/pkgs/development/python-modules/whoisdomain/default.nix b/pkgs/development/python-modules/whoisdomain/default.nix index eb28f68c957c..f096e6dcf354 100644 --- a/pkgs/development/python-modules/whoisdomain/default.nix +++ b/pkgs/development/python-modules/whoisdomain/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatchling -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-nRj/WkYjMZuQoYF+QFIHABlek4DxvvEnOTeFYLHYvZc="; }; - nativeBuildInputs = [ - hatchling - ]; + nativeBuildInputs = [ hatchling ]; - pythonImportsCheck = [ - "whoisdomain" - ]; + pythonImportsCheck = [ "whoisdomain" ]; # Tests require network access doCheck = false; diff --git a/pkgs/development/python-modules/whoosh/default.nix b/pkgs/development/python-modules/whoosh/default.nix index 52831486f2b7..fbe8528c0cf2 100644 --- a/pkgs/development/python-modules/whoosh/default.nix +++ b/pkgs/development/python-modules/whoosh/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-fKVjPb+p4OD6QA0xUaigxL7FO9Ls7cCmdwWxdWXDGoM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # Wrong encoding postPatch = '' @@ -34,13 +31,9 @@ buildPythonPackage rec { --replace-fail "[pytest]" "[tool:pytest]" ''; - pythonImportsCheck = [ - "whoosh" - ]; + pythonImportsCheck = [ "whoosh" ]; - disabledTests = [ - "test_minimize_dfa" - ]; + disabledTests = [ "test_minimize_dfa" ]; meta = with lib; { description = "Fast, pure-Python full text indexing, search, and spell checking library"; diff --git a/pkgs/development/python-modules/widgetsnbextension/default.nix b/pkgs/development/python-modules/widgetsnbextension/default.nix index 1e3ab50118c4..bd82e62a5e32 100644 --- a/pkgs/development/python-modules/widgetsnbextension/default.nix +++ b/pkgs/development/python-modules/widgetsnbextension/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jupyter-packaging -, ipywidgets +{ + lib, + buildPythonPackage, + fetchPypi, + jupyter-packaging, + ipywidgets, }: buildPythonPackage rec { @@ -15,13 +16,9 @@ buildPythonPackage rec { hash = "sha256-ZBlsX/O5qRg6jmmaQif7C3AC8lLIFAmOZsTRzQZEaI8="; }; - nativeBuildInputs = [ - jupyter-packaging - ]; + nativeBuildInputs = [ jupyter-packaging ]; - pythonImportsCheck = [ - "widgetsnbextension" - ]; + pythonImportsCheck = [ "widgetsnbextension" ]; # No tests in archive doCheck = false; diff --git a/pkgs/development/python-modules/widlparser/default.nix b/pkgs/development/python-modules/widlparser/default.nix index fcd1e2fe0f12..688c14a024dc 100644 --- a/pkgs/development/python-modules/widlparser/default.nix +++ b/pkgs/development/python-modules/widlparser/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -# build inputs -, typing-extensions +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + # build inputs + typing-extensions, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { sed -i -e 's/0.0.0/${version}/' setup.py ''; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; pythonImportsCheck = [ "widlparser" ]; @@ -34,6 +33,6 @@ buildPythonPackage rec { description = "Stand-alone WebIDL Parser in Python"; homepage = "https://github.com/plinss/widlparser"; license = licenses.mit; - maintainers = []; + maintainers = [ ]; }; } diff --git a/pkgs/development/python-modules/wiffi/default.nix b/pkgs/development/python-modules/wiffi/default.nix index 208265ba9a3b..60e2e667f7e1 100644 --- a/pkgs/development/python-modules/wiffi/default.nix +++ b/pkgs/development/python-modules/wiffi/default.nix @@ -1,8 +1,9 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-pnbzJxq8K947Yg54LysPPho6IRKf0cc+szTETgyzFao="; }; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Project has no tests doCheck = false; - pythonImportsCheck = [ - "wiffi" - ]; + pythonImportsCheck = [ "wiffi" ]; meta = with lib; { description = "Python module to interface with STALL WIFFI devices"; diff --git a/pkgs/development/python-modules/wifi/default.nix b/pkgs/development/python-modules/wifi/default.nix index 260f7e8a937f..76d4e7f8190c 100644 --- a/pkgs/development/python-modules/wifi/default.nix +++ b/pkgs/development/python-modules/wifi/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pbkdf2 -, pytestCheckHook -, pythonOlder -, substituteAll -, wirelesstools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pbkdf2, + pytestCheckHook, + pythonOlder, + substituteAll, + wirelesstools, }: buildPythonPackage rec { @@ -27,13 +28,9 @@ buildPythonPackage rec { --replace "/sbin/iwlist" "${wirelesstools}/bin/iwlist" ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - propagatedBuildInputs = [ - pbkdf2 - ]; + propagatedBuildInputs = [ pbkdf2 ]; pythonImportsCheck = [ "wifi" ]; diff --git a/pkgs/development/python-modules/wikipedia-api/default.nix b/pkgs/development/python-modules/wikipedia-api/default.nix index e8959b078c75..8d77105e6cce 100644 --- a/pkgs/development/python-modules/wikipedia-api/default.nix +++ b/pkgs/development/python-modules/wikipedia-api/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-cmwyQhKbkIpZXkKqqT0X2Lp8OFma2joeb4uxDRPiQe8="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/wikipedia/default.nix b/pkgs/development/python-modules/wikipedia/default.nix index dce8160e7ff8..9db4f12099b7 100644 --- a/pkgs/development/python-modules/wikipedia/default.nix +++ b/pkgs/development/python-modules/wikipedia/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, beautifulsoup4 -, requests -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + beautifulsoup4, + requests, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "tests/ '*test.py'" - ]; + unittestFlagsArray = [ "tests/ '*test.py'" ]; meta = with lib; { description = "A Pythonic wrapper for the Wikipedia API"; diff --git a/pkgs/development/python-modules/wikipedia2vec/default.nix b/pkgs/development/python-modules/wikipedia2vec/default.nix index 2e379b9ccb1e..c682ea2a1c74 100644 --- a/pkgs/development/python-modules/wikipedia2vec/default.nix +++ b/pkgs/development/python-modules/wikipedia2vec/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonPackage -, click -, cython -, fetchFromGitHub -, jieba -, joblib -, lmdb -, marisa-trie -, mwparserfromhell -, numpy -, pythonOlder -, scipy -, setuptools -, tqdm +{ + lib, + buildPythonPackage, + click, + cython, + fetchFromGitHub, + jieba, + joblib, + lmdb, + marisa-trie, + mwparserfromhell, + numpy, + pythonOlder, + scipy, + setuptools, + tqdm, }: buildPythonPackage rec { @@ -51,9 +52,7 @@ buildPythonPackage rec { bash cythonize.sh ''; - pythonImportsCheck = [ - "wikipedia2vec" - ]; + pythonImportsCheck = [ "wikipedia2vec" ]; meta = with lib; { description = "Tool for learning vector representations of words and entities from Wikipedia"; diff --git a/pkgs/development/python-modules/wikitextparser/default.nix b/pkgs/development/python-modules/wikitextparser/default.nix index 8b70b6c63ee1..ed3642d9ae3e 100644 --- a/pkgs/development/python-modules/wikitextparser/default.nix +++ b/pkgs/development/python-modules/wikitextparser/default.nix @@ -1,11 +1,12 @@ -{ buildPythonPackage -, fetchFromGitHub -, flit-core -, lib -, setuptools -, pytestCheckHook -, regex -, wcwidth +{ + buildPythonPackage, + fetchFromGitHub, + flit-core, + lib, + setuptools, + pytestCheckHook, + regex, + wcwidth, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-qLctOX0BsKAn2JzfmV2sTLJ/KcNfaJFAjOB3pxd5LQI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ flit-core @@ -30,9 +29,7 @@ buildPythonPackage rec { regex ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "wikitextparser" ]; diff --git a/pkgs/development/python-modules/willow/default.nix b/pkgs/development/python-modules/willow/default.nix index cb4d128eb246..48306d8ae193 100644 --- a/pkgs/development/python-modules/willow/default.nix +++ b/pkgs/development/python-modules/willow/default.nix @@ -1,23 +1,24 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, flit-core + # build-system + flit-core, -# dependencies -, filetype -, defusedxml + # dependencies + filetype, + defusedxml, -# optional-dependencies -, pillow-heif + # optional-dependencies + pillow-heif, -# tests -, numpy -, opencv4 -, pillow -, pytestCheckHook -, wand + # tests + numpy, + opencv4, + pillow, + pytestCheckHook, + wand, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-g9/v56mdo0sJe5Pl/to/R/kXayaKK3qaYbnnPXpFjXE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ filetype @@ -42,9 +41,7 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - heif = [ - pillow-heif - ]; + heif = [ pillow-heif ]; }; nativeCheckInputs = [ @@ -61,5 +58,4 @@ buildPythonPackage rec { license = licenses.bsd2; maintainers = with maintainers; [ desiderius ]; }; - } diff --git a/pkgs/development/python-modules/winsspi/default.nix b/pkgs/development/python-modules/winsspi/default.nix index d15ce8e261b5..3008cb6f92f3 100644 --- a/pkgs/development/python-modules/winsspi/default.nix +++ b/pkgs/development/python-modules/winsspi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, minikerberos -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + minikerberos, + pythonOlder, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-AXC6SJ+iWPGqTmdgoWKEbD8tDUUcg2aD609hO2bdQfM="; }; - propagatedBuildInputs = [ - minikerberos - ]; + propagatedBuildInputs = [ minikerberos ]; # Module doesn't have tests doCheck = false; - pythonImportsCheck = [ - "winsspi" - ]; + pythonImportsCheck = [ "winsspi" ]; meta = with lib; { description = "Python module for ACL/ACE/Security descriptor manipulation"; diff --git a/pkgs/development/python-modules/withings-api/default.nix b/pkgs/development/python-modules/withings-api/default.nix index 226907f9e95d..0120ac1bc45f 100644 --- a/pkgs/development/python-modules/withings-api/default.nix +++ b/pkgs/development/python-modules/withings-api/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, arrow -, requests-oauthlib -, typing-extensions -, pydantic -, responses -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + arrow, + requests-oauthlib, + typing-extensions, + pydantic, + responses, + pytestCheckHook, }: buildPythonPackage rec { @@ -31,9 +32,7 @@ buildPythonPackage rec { --replace 'addopts = "--capture no --cov ./withings_api --cov-report html:build/coverage_report --cov-report term --cov-report xml:build/coverage.xml"' ''' ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ arrow diff --git a/pkgs/development/python-modules/withings-sync/default.nix b/pkgs/development/python-modules/withings-sync/default.nix index 6200082bc9fd..638369a3314e 100644 --- a/pkgs/development/python-modules/withings-sync/default.nix +++ b/pkgs/development/python-modules/withings-sync/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, garth -, lxml -, python-dotenv -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + garth, + lxml, + python-dotenv, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-nFYEtQob3x6APWDKCVP5p+qkKmgvXIcmegp/6ZRbDQA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ garth @@ -34,9 +33,7 @@ buildPythonPackage rec { requests ]; - pythonImportsCheck = [ - "withings_sync" - ]; + pythonImportsCheck = [ "withings_sync" ]; meta = with lib; { description = "Synchronisation of Withings weight"; diff --git a/pkgs/development/python-modules/wled/default.nix b/pkgs/development/python-modules/wled/default.nix index fe0b4b9a19cf..c8eaedc38340 100644 --- a/pkgs/development/python-modules/wled/default.nix +++ b/pkgs/development/python-modules/wled/default.nix @@ -1,17 +1,18 @@ -{ lib -, aiohttp -, awesomeversion -, backoff -, buildPythonPackage -, cachetools -, fetchFromGitHub -, poetry-core -, yarl -, aresponses -, pytest-asyncio -, pytest-xdist -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + awesomeversion, + backoff, + buildPythonPackage, + cachetools, + fetchFromGitHub, + poetry-core, + yarl, + aresponses, + pytest-asyncio, + pytest-xdist, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -35,9 +36,7 @@ buildPythonPackage rec { --replace "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp @@ -54,9 +53,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "wled" - ]; + pythonImportsCheck = [ "wled" ]; meta = with lib; { description = "Asynchronous Python client for WLED"; diff --git a/pkgs/development/python-modules/wn/default.nix b/pkgs/development/python-modules/wn/default.nix index 5b020a58d393..7d159fe19244 100644 --- a/pkgs/development/python-modules/wn/default.nix +++ b/pkgs/development/python-modules/wn/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonOlder -, flit-core -, requests -, tomli +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonOlder, + flit-core, + requests, + tomli, }: buildPythonPackage rec { @@ -20,26 +21,20 @@ buildPythonPackage rec { hash = "sha256-muYuDmYH9W5j6euDYJMMgzfsxE6eBIhDCqH6P7nFG+Q="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ requests tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "wn" - ]; + pythonImportsCheck = [ "wn" ]; meta = with lib; { description = "A modern, interlingual wordnet interface for Python"; diff --git a/pkgs/development/python-modules/woob/default.nix b/pkgs/development/python-modules/woob/default.nix index 96a3f5ebc9c0..7249390ab718 100644 --- a/pkgs/development/python-modules/woob/default.nix +++ b/pkgs/development/python-modules/woob/default.nix @@ -1,26 +1,27 @@ -{ lib -, babel -, buildPythonPackage -, fetchFromGitLab -, fetchpatch -, pythonRelaxDepsHook -, html2text -, lxml -, packaging -, pillow -, prettytable -, pycountry -, pytestCheckHook -, python-dateutil -, python-jose -, pythonOlder -, pyyaml -, requests -, rich -, setuptools -, testers -, unidecode -, woob +{ + lib, + babel, + buildPythonPackage, + fetchFromGitLab, + fetchpatch, + pythonRelaxDepsHook, + html2text, + lxml, + packaging, + pillow, + prettytable, + pycountry, + pytestCheckHook, + python-dateutil, + python-jose, + pythonOlder, + pyyaml, + requests, + rich, + setuptools, + testers, + unidecode, + woob, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "packaging" - ]; + pythonRelaxDeps = [ "packaging" ]; propagatedBuildInputs = [ babel @@ -70,9 +69,7 @@ buildPythonPackage rec { unidecode ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # require networking @@ -80,9 +77,7 @@ buildPythonPackage rec { "test_verify" ]; - pythonImportsCheck = [ - "woob" - ]; + pythonImportsCheck = [ "woob" ]; passthru.tests.version = testers.testVersion { package = woob; diff --git a/pkgs/development/python-modules/woodblock/default.nix b/pkgs/development/python-modules/woodblock/default.nix index cb0d5bab3df1..a0ccf59d0464 100644 --- a/pkgs/development/python-modules/woodblock/default.nix +++ b/pkgs/development/python-modules/woodblock/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, click -, multimethod -, numpy +{ + lib, + buildPythonPackage, + fetchPypi, + click, + multimethod, + numpy, }: buildPythonPackage rec { pname = "woodblock"; @@ -24,9 +25,7 @@ buildPythonPackage rec { # no tests doCheck = false; - pythonImportsCheck = [ - "woodblock" - ]; + pythonImportsCheck = [ "woodblock" ]; meta = with lib; { description = "A framework to generate file carving test data"; diff --git a/pkgs/development/python-modules/wordfreq/default.nix b/pkgs/development/python-modules/wordfreq/default.nix index 2b98674fb575..4627e2a1e005 100644 --- a/pkgs/development/python-modules/wordfreq/default.nix +++ b/pkgs/development/python-modules/wordfreq/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, poetry-core -, regex -, langcodes -, ftfy -, msgpack -, mecab-python3 -, jieba -, pytestCheckHook -, pythonOlder -, fetchFromGitHub +{ + lib, + buildPythonPackage, + poetry-core, + regex, + langcodes, + ftfy, + msgpack, + mecab-python3, + jieba, + pytestCheckHook, + pythonOlder, + fetchFromGitHub, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-ANOBbQWLB35Vz6oil6QZDpsNpKHeKUJnDKA5Q9JRVdE="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ regex @@ -49,7 +48,7 @@ buildPythonPackage rec { meta = with lib; { description = "A library for looking up the frequencies of words in many languages, based on many sources of data"; - homepage = "https://github.com/rspeer/wordfreq/"; + homepage = "https://github.com/rspeer/wordfreq/"; license = licenses.mit; }; } diff --git a/pkgs/development/python-modules/worldengine/default.nix b/pkgs/development/python-modules/worldengine/default.nix index aa90798aace2..a9a5b5153fbd 100644 --- a/pkgs/development/python-modules/worldengine/default.nix +++ b/pkgs/development/python-modules/worldengine/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gdal -, h5py -, noise -, numpy -, protobuf -, purepng -, pyplatec -, six -, isPy27 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gdal, + h5py, + noise, + numpy, + protobuf, + purepng, + pyplatec, + six, + isPy27, + pytestCheckHook, }: buildPythonPackage rec { @@ -64,9 +65,7 @@ buildPythonPackage rec { doCheck = !isPy27; # google namespace clash nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "TestSerialization" - ]; + disabledTests = [ "TestSerialization" ]; meta = with lib; { broken = true; diff --git a/pkgs/development/python-modules/wrapio/default.nix b/pkgs/development/python-modules/wrapio/default.nix index bf1dd3f5763d..5eda21b85253 100644 --- a/pkgs/development/python-modules/wrapio/default.nix +++ b/pkgs/development/python-modules/wrapio/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + setuptools, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-CUocIbdZ/tJQCxAHzhFpB267ynlXf8Mu+thcRRc0yeg="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; doCheck = false; pythonImportsCheck = [ "wrapio" ]; diff --git a/pkgs/development/python-modules/wrapt/default.nix b/pkgs/development/python-modules/wrapt/default.nix index 3995e291bc3a..caaa6d1c995a 100644 --- a/pkgs/development/python-modules/wrapt/default.nix +++ b/pkgs/development/python-modules/wrapt/default.nix @@ -1,15 +1,19 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, sphinxHook -, sphinx-rtd-theme +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + sphinxHook, + sphinx-rtd-theme, }: buildPythonPackage rec { pname = "wrapt"; version = "1.16.0"; - outputs = [ "out" "doc" ]; + outputs = [ + "out" + "doc" + ]; format = "setuptools"; src = fetchFromGitHub { @@ -19,18 +23,14 @@ buildPythonPackage rec { hash = "sha256-lVpSriXSvRwAKX4iPOIBvJwhqhKjdrUdGaEG4QoTQyo="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; nativeBuildInputs = [ sphinxHook sphinx-rtd-theme ]; - pythonImportsCheck = [ - "wrapt" - ]; + pythonImportsCheck = [ "wrapt" ]; meta = with lib; { description = "Module for decorators, wrappers and monkey patching"; diff --git a/pkgs/development/python-modules/wrf-python/default.nix b/pkgs/development/python-modules/wrf-python/default.nix index 77d5ea8a4eba..340f13059e22 100644 --- a/pkgs/development/python-modules/wrf-python/default.nix +++ b/pkgs/development/python-modules/wrf-python/default.nix @@ -1,16 +1,17 @@ -{ stdenv -, lib -, fetchFromGitHub -, pythonOlder -, buildPythonPackage -, basemap -, gfortran -, netcdf4 -, numpy -, python -, setuptools -, xarray -, wrapt +{ + stdenv, + lib, + fetchFromGitHub, + pythonOlder, + buildPythonPackage, + basemap, + gfortran, + netcdf4, + numpy, + python, + setuptools, + xarray, + wrapt, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-4iIs/M9fzGJsnKCDSl09OTUoh7j6REBXuutE5uXFe3k="; }; - nativeBuildInputs = [ - gfortran - ]; + nativeBuildInputs = [ gfortran ]; propagatedBuildInputs = [ basemap @@ -39,9 +38,7 @@ buildPythonPackage rec { wrapt ]; - nativeCheckInputs = [ - netcdf4 - ]; + nativeCheckInputs = [ netcdf4 ]; checkPhase = '' runHook preCheck @@ -50,9 +47,7 @@ buildPythonPackage rec { runHook postCheck ''; - pythonImportsCheck = [ - "wrf" - ]; + pythonImportsCheck = [ "wrf" ]; meta = with lib; { description = "WRF postprocessing library for Python"; diff --git a/pkgs/development/python-modules/ws4py/default.nix b/pkgs/development/python-modules/ws4py/default.nix index 59dab76820c9..69f04322bdea 100644 --- a/pkgs/development/python-modules/ws4py/default.nix +++ b/pkgs/development/python-modules/ws4py/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, cherrypy -, fetchPypi -, gevent -, git -, mock -, pytestCheckHook -, pythonOlder -, setuptools -, tornado +{ + lib, + buildPythonPackage, + cherrypy, + fetchPypi, + gevent, + git, + mock, + pytestCheckHook, + pythonOlder, + setuptools, + tornado, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-KdBz1/LgBjc+aoSLHQCVGhEH64HzdClSvpBUKdxaVIM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cherrypy @@ -39,9 +38,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "ws4py" - ]; + pythonImportsCheck = [ "ws4py" ]; meta = with lib; { description = "A WebSocket package for Python"; diff --git a/pkgs/development/python-modules/wsdiscovery/default.nix b/pkgs/development/python-modules/wsdiscovery/default.nix index 784172b7cef4..9d5d1e884cb4 100644 --- a/pkgs/development/python-modules/wsdiscovery/default.nix +++ b/pkgs/development/python-modules/wsdiscovery/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, mock -, netifaces -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + mock, + netifaces, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "wsdiscovery" - ]; + pythonImportsCheck = [ "wsdiscovery" ]; meta = with lib; { description = "WS-Discovery implementation for Python"; diff --git a/pkgs/development/python-modules/wsgi-intercept/default.nix b/pkgs/development/python-modules/wsgi-intercept/default.nix index fcc8551f7294..c2644e258232 100644 --- a/pkgs/development/python-modules/wsgi-intercept/default.nix +++ b/pkgs/development/python-modules/wsgi-intercept/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, six -, httplib2 -, py -, pytestCheckHook -, pythonOlder -, requests -, setuptools -, urllib3 +{ + lib, + buildPythonPackage, + fetchPypi, + six, + httplib2, + py, + pytestCheckHook, + pythonOlder, + requests, + setuptools, + urllib3, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { hash = "sha256-daA+HQHdtCAC+1a4Ss0qeo7OJe/dIGREoTqfH7z6k0w="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; nativeCheckInputs = [ httplib2 @@ -49,9 +46,7 @@ buildPythonPackage rec { "test_https_no_ssl_verification_not_intercepted" ]; - pythonImportsCheck = [ - "wsgi_intercept" - ]; + pythonImportsCheck = [ "wsgi_intercept" ]; meta = with lib; { description = "Module that acts as a WSGI application in place of a real URI for testing"; diff --git a/pkgs/development/python-modules/wsgiprox/default.nix b/pkgs/development/python-modules/wsgiprox/default.nix index 2fa81bea6ac4..98bb446f9232 100644 --- a/pkgs/development/python-modules/wsgiprox/default.nix +++ b/pkgs/development/python-modules/wsgiprox/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, six -, certauth +{ + lib, + buildPythonPackage, + fetchFromGitHub, + six, + certauth, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wsgiproxy2/default.nix b/pkgs/development/python-modules/wsgiproxy2/default.nix index 0f50c6474c59..25c66e98cf6d 100644 --- a/pkgs/development/python-modules/wsgiproxy2/default.nix +++ b/pkgs/development/python-modules/wsgiproxy2/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, webob -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + webob, + pythonOlder, }: buildPythonPackage rec { @@ -19,16 +20,12 @@ buildPythonPackage rec { hash = "sha256-ouofw3cBQzBwSh3Pdtdl7KI2pg/T/z3qoh8zoeiKiSs="; }; - propagatedBuildInputs = [ - webob - ]; + propagatedBuildInputs = [ webob ]; # Circular dependency on webtest doCheck = false; - pythonImportsCheck = [ - "wsgiproxy" - ]; + pythonImportsCheck = [ "wsgiproxy" ]; meta = with lib; { description = "HTTP proxying tools for WSGI apps"; diff --git a/pkgs/development/python-modules/wsme/default.nix b/pkgs/development/python-modules/wsme/default.nix index 7af0f410969b..d961eaf9fb35 100644 --- a/pkgs/development/python-modules/wsme/default.nix +++ b/pkgs/development/python-modules/wsme/default.nix @@ -1,24 +1,25 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pbr -, setuptools -, six -, simplegeneric -, netaddr -, pytz -, webob -# Test inputs -, cherrypy -, flask -, flask-restful -, glibcLocales -, nose -, pecan -, sphinx -, transaction -, webtest +{ + lib, + buildPythonPackage, + fetchPypi, + pythonAtLeast, + pbr, + setuptools, + six, + simplegeneric, + netaddr, + pytz, + webob, + # Test inputs + cherrypy, + flask, + flask-restful, + glibcLocales, + nose, + pecan, + sphinx, + transaction, + webtest, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wsnsimpy/default.nix b/pkgs/development/python-modules/wsnsimpy/default.nix index fe5ad78b8a29..37b7b0f41e0a 100644 --- a/pkgs/development/python-modules/wsnsimpy/default.nix +++ b/pkgs/development/python-modules/wsnsimpy/default.nix @@ -1,6 +1,14 @@ -{ buildPythonPackage, fetchPypi, isPy27, lib, setuptools, simpy, tkinter -# GUI-based visualization of the simulation is optional -, enableVisualization ? true }: +{ + buildPythonPackage, + fetchPypi, + isPy27, + lib, + setuptools, + simpy, + tkinter, + # GUI-based visualization of the simulation is optional + enableVisualization ? true, +}: buildPythonPackage rec { pname = "wsnsimpy"; @@ -13,15 +21,16 @@ buildPythonPackage rec { sha256 = "1b7fdqwc2v9alfwf2fr0aqr8rf2pb5lpm4anpilmvrh2lhjar4i2"; }; - propagatedBuildInputs = [ setuptools simpy ] - ++ lib.optional enableVisualization tkinter; + propagatedBuildInputs = [ + setuptools + simpy + ] ++ lib.optional enableVisualization tkinter; # No test cases are included, thus unittest tries to run the examples, which # fail because no DISPLAYs are available. doCheck = false; - pythonImportsCheck = [ "wsnsimpy" ] - ++ lib.optional enableVisualization "wsnsimpy.wsnsimpy_tk"; + pythonImportsCheck = [ "wsnsimpy" ] ++ lib.optional enableVisualization "wsnsimpy.wsnsimpy_tk"; meta = with lib; { description = "SimPy-based WSN Simulator"; diff --git a/pkgs/development/python-modules/wsproto/default.nix b/pkgs/development/python-modules/wsproto/default.nix index b93de0b924f7..92d7f79082a2 100644 --- a/pkgs/development/python-modules/wsproto/default.nix +++ b/pkgs/development/python-modules/wsproto/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, h11 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + h11, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/wtf-peewee/default.nix b/pkgs/development/python-modules/wtf-peewee/default.nix index 33cff8e5ee22..73f5cc14b401 100644 --- a/pkgs/development/python-modules/wtf-peewee/default.nix +++ b/pkgs/development/python-modules/wtf-peewee/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, peewee -, wtforms -, python +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + peewee, + wtforms, + python, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-LQbOWg65rPTSLRVK5vvqmdsRsXaDgcYZ54oqxgpWGRU="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ peewee diff --git a/pkgs/development/python-modules/wtforms-bootstrap5/default.nix b/pkgs/development/python-modules/wtforms-bootstrap5/default.nix index 0150dcb2d72a..280fc791e0b0 100644 --- a/pkgs/development/python-modules/wtforms-bootstrap5/default.nix +++ b/pkgs/development/python-modules/wtforms-bootstrap5/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, wtforms -, poetry-core -, pytestCheckHook -, lxml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + wtforms, + poetry-core, + pytestCheckHook, + lxml, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-TJJ3KOeC9JXnxK0YpnfeBNq1KHwaAZ4+t9CXbc+85Ro="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - wtforms - ]; + propagatedBuildInputs = [ wtforms ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/wtforms/default.nix b/pkgs/development/python-modules/wtforms/default.nix index 9bb47be4a27a..50a88ece4bfa 100644 --- a/pkgs/development/python-modules/wtforms/default.nix +++ b/pkgs/development/python-modules/wtforms/default.nix @@ -1,21 +1,22 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, -# build-system -, babel -, hatchling -, setuptools + # build-system + babel, + hatchling, + setuptools, -# dependencies -, markupsafe + # dependencies + markupsafe, -# optional-dependencies -, email-validator + # optional-dependencies + email-validator, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -38,23 +39,17 @@ buildPythonPackage rec { setuptools ]; - propagatedBuildInputs = [ - markupsafe - ]; + propagatedBuildInputs = [ markupsafe ]; passthru.optional-dependencies = { - email = [ - email-validator - ]; + email = [ email-validator ]; }; nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "wtforms" - ]; + pythonImportsCheck = [ "wtforms" ]; meta = with lib; { description = "A flexible forms validation and rendering library for Python"; @@ -63,5 +58,4 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ bhipple ]; }; - } diff --git a/pkgs/development/python-modules/wunsen/default.nix b/pkgs/development/python-modules/wunsen/default.nix index 5fc6ea2d3803..9f6d12c9f3d4 100644 --- a/pkgs/development/python-modules/wunsen/default.nix +++ b/pkgs/development/python-modules/wunsen/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -, pythonOlder + pythonOlder, -, unittestCheckHook + unittestCheckHook, -, hatchling + hatchling, -, khanaa + khanaa, }: buildPythonPackage rec { @@ -25,28 +26,24 @@ buildPythonPackage rec { hash = "sha256-lMEhtcWG+S3vAz+Y/qDxhaZslsO0pbs5xUn5QgZNs2U="; }; - build-system = [ - hatchling - ]; + build-system = [ hatchling ]; - dependencies = [ - khanaa - ]; + dependencies = [ khanaa ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ "-s" "tests" ]; + unittestFlagsArray = [ + "-s" + "tests" + ]; pythonImportsCheck = [ "wunsen" ]; - meta = with lib; - { - description = "Transliterate/transcribe other languages into Thai Topics"; - homepage = "https://github.com/cakimpei/wunsen"; - changelog = "https://github.com/cakimpei/wunsen/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ vizid ]; - }; + meta = with lib; { + description = "Transliterate/transcribe other languages into Thai Topics"; + homepage = "https://github.com/cakimpei/wunsen"; + changelog = "https://github.com/cakimpei/wunsen/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ vizid ]; + }; } diff --git a/pkgs/development/python-modules/wurlitzer/default.nix b/pkgs/development/python-modules/wurlitzer/default.nix index a5af618cb8ff..84dfd700050b 100644 --- a/pkgs/development/python-modules/wurlitzer/default.nix +++ b/pkgs/development/python-modules/wurlitzer/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-sx07GKtrg5SzrbiyGEGtbUtrsZW5tkKVOHLburTCmyo="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "wurlitzer" - ]; + pythonImportsCheck = [ "wurlitzer" ]; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; meta = with lib; { description = "Capture C-level output in context managers"; diff --git a/pkgs/development/python-modules/wxpython/4.2.nix b/pkgs/development/python-modules/wxpython/4.2.nix index c2e4f1b0c36e..1ead7d38d20b 100644 --- a/pkgs/development/python-modules/wxpython/4.2.nix +++ b/pkgs/development/python-modules/wxpython/4.2.nix @@ -1,42 +1,43 @@ -{ lib -, stdenv -, buildPythonPackage -, setuptools -, pythonAtLeast -, fetchPypi -, substituteAll +{ + lib, + stdenv, + buildPythonPackage, + setuptools, + pythonAtLeast, + fetchPypi, + substituteAll, -# build -, autoPatchelfHook -, attrdict -, doxygen -, pkg-config -, python -, sip -, which + # build + autoPatchelfHook, + attrdict, + doxygen, + pkg-config, + python, + sip, + which, -# runtime -, cairo -, gst_all_1 -, gtk3 -, libGL -, libGLU -, libSM -, libXinerama -, libXtst -, libXxf86vm -, libglvnd -, mesa -, pango -, SDL -, webkitgtk -, wxGTK -, xorgproto + # runtime + cairo, + gst_all_1, + gtk3, + libGL, + libGLU, + libSM, + libXinerama, + libXtst, + libXxf86vm, + libglvnd, + mesa, + pango, + SDL, + webkitgtk, + wxGTK, + xorgproto, -# propagates -, numpy -, pillow -, six + # propagates + numpy, + pillow, + six, }: buildPythonPackage rec { @@ -68,27 +69,27 @@ buildPythonPackage rec { sip which wxGTK - ] ++ lib.optionals stdenv.isLinux [ - autoPatchelfHook - ]; + ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook ]; - buildInputs = [ - wxGTK - SDL - ] ++ lib.optionals stdenv.isLinux [ - gst_all_1.gst-plugins-base - gst_all_1.gstreamer - libGL - libGLU - libSM - libXinerama - libXtst - libXxf86vm - libglvnd - mesa - webkitgtk - xorgproto - ]; + buildInputs = + [ + wxGTK + SDL + ] + ++ lib.optionals stdenv.isLinux [ + gst_all_1.gst-plugins-base + gst_all_1.gstreamer + libGL + libGLU + libSM + libXinerama + libXtst + libXxf86vm + libglvnd + mesa + webkitgtk + xorgproto + ]; propagatedBuildInputs = [ numpy @@ -108,7 +109,6 @@ buildPythonPackage rec { runHook postBuild ''; - installPhase = '' runHook preInstall @@ -126,7 +126,6 @@ buildPythonPackage rec { runHook postCheck ''; - meta = with lib; { changelog = "https://github.com/wxWidgets/Phoenix/blob/wxPython-${version}/CHANGES.rst"; description = "Cross platform GUI toolkit for Python, Phoenix version"; diff --git a/pkgs/development/python-modules/wyoming/default.nix b/pkgs/development/python-modules/wyoming/default.nix index e71107931580..422ba89917d9 100644 --- a/pkgs/development/python-modules/wyoming/default.nix +++ b/pkgs/development/python-modules/wyoming/default.nix @@ -1,17 +1,18 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, setuptools + # build-system + setuptools, -# optional-dependencies -, zeroconf + # optional-dependencies + zeroconf, -# tests -, wyoming-faster-whisper -, wyoming-openwakeword -, wyoming-piper + # tests + wyoming-faster-whisper, + wyoming-openwakeword, + wyoming-piper, }: buildPythonPackage rec { @@ -26,29 +27,19 @@ buildPythonPackage rec { hash = "sha256-SOPkvFMjoDQiWVP39+1Cx4fFmPH8wcBhZhaKapdZaeA="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; passthru.optional-dependencies = { - zeroconf = [ - zeroconf - ]; + zeroconf = [ zeroconf ]; }; - pythonImportsCheck = [ - "wyoming" - ]; + pythonImportsCheck = [ "wyoming" ]; # no tests doCheck = false; passthru.tests = { - inherit - wyoming-faster-whisper - wyoming-openwakeword - wyoming-piper - ; + inherit wyoming-faster-whisper wyoming-openwakeword wyoming-piper; }; meta = with lib; { diff --git a/pkgs/development/python-modules/x-wr-timezone/default.nix b/pkgs/development/python-modules/x-wr-timezone/default.nix index f71e1c062869..4d873e9590f5 100644 --- a/pkgs/development/python-modules/x-wr-timezone/default.nix +++ b/pkgs/development/python-modules/x-wr-timezone/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, icalendar -, pytz -, pytestCheckHook -, restructuredtext-lint -, pygments +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + icalendar, + pytz, + pytestCheckHook, + restructuredtext-lint, + pygments, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-itqsVYYUcpbKTh0BM6IHk6F9xhB+pAQnnJsnZAVpNL4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ icalendar diff --git a/pkgs/development/python-modules/x11-hash/default.nix b/pkgs/development/python-modules/x11-hash/default.nix index 403f1ed3e12f..907c70080dd3 100644 --- a/pkgs/development/python-modules/x11-hash/default.nix +++ b/pkgs/development/python-modules/x11-hash/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,16 +17,12 @@ buildPythonPackage rec { hash = "sha256-QtzqxEzpVGK48/lvOEr8VtPUYexLdXKD3zGv1VOdWpw="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; # pypi's source doesn't include tests doCheck = false; - pythonImportsCheck = [ - "x11_hash" - ]; + pythonImportsCheck = [ "x11_hash" ]; meta = with lib; { description = "Binding for X11 proof of work hashing"; diff --git a/pkgs/development/python-modules/x256/default.nix b/pkgs/development/python-modules/x256/default.nix index c155b00c5172..69359f1578fd 100644 --- a/pkgs/development/python-modules/x256/default.nix +++ b/pkgs/development/python-modules/x256/default.nix @@ -1,4 +1,7 @@ -{ lib, buildPythonPackage, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -20,4 +23,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ Scriptkiddi ]; }; } - diff --git a/pkgs/development/python-modules/xapian/default.nix b/pkgs/development/python-modules/xapian/default.nix index 824ce8620839..7524d415c187 100644 --- a/pkgs/development/python-modules/xapian/default.nix +++ b/pkgs/development/python-modules/xapian/default.nix @@ -1,6 +1,10 @@ -{ lib, buildPythonPackage, fetchurl, python -, sphinx -, xapian +{ + lib, + buildPythonPackage, + fetchurl, + python, + sphinx, + xapian, }: let @@ -25,7 +29,10 @@ buildPythonPackage rec { export XAPIAN_CONFIG=${xapian}/bin/xapian-config ''; - buildInputs = [ sphinx xapian ]; + buildInputs = [ + sphinx + xapian + ]; doCheck = true; diff --git a/pkgs/development/python-modules/xapp/default.nix b/pkgs/development/python-modules/xapp/default.nix index b5dc4e3e82ea..c1f1973957de 100644 --- a/pkgs/development/python-modules/xapp/default.nix +++ b/pkgs/development/python-modules/xapp/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, python -, meson -, ninja -, psutil -, pygobject3 -, gtk3 -, gobject-introspection -, xapp -, polkit -, gitUpdater +{ + lib, + fetchFromGitHub, + buildPythonPackage, + python, + meson, + ninja, + psutil, + pygobject3, + gtk3, + gobject-introspection, + xapp, + polkit, + gitUpdater, }: buildPythonPackage rec { @@ -54,9 +55,7 @@ buildPythonPackage rec { doCheck = false; pythonImportsCheck = [ "xapp" ]; - passthru.updateScript = gitUpdater { - ignoredVersions = "^master.*"; - }; + passthru.updateScript = gitUpdater { ignoredVersions = "^master.*"; }; meta = with lib; { homepage = "https://github.com/linuxmint/python-xapp"; diff --git a/pkgs/development/python-modules/xarray-dataclasses/default.nix b/pkgs/development/python-modules/xarray-dataclasses/default.nix index 44d19a689008..2c350bb03472 100644 --- a/pkgs/development/python-modules/xarray-dataclasses/default.nix +++ b/pkgs/development/python-modules/xarray-dataclasses/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, poetry-core -, pytestCheckHook -, pythonRelaxDepsHook -, numpy -, typing-extensions -, xarray +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + poetry-core, + pytestCheckHook, + pythonRelaxDepsHook, + numpy, + typing-extensions, + xarray, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "xarray" - ]; + pythonRelaxDeps = [ "xarray" ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/xarray-einstats/default.nix b/pkgs/development/python-modules/xarray-einstats/default.nix index bcc29200f5e2..5d5486dbffed 100644 --- a/pkgs/development/python-modules/xarray-einstats/default.nix +++ b/pkgs/development/python-modules/xarray-einstats/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, einops -, fetchFromGitHub -, flit-core -, numba -, numpy -, pandas -, pytestCheckHook -, pythonOlder -, scipy -, xarray +{ + lib, + buildPythonPackage, + einops, + fetchFromGitHub, + flit-core, + numba, + numpy, + pandas, + pytestCheckHook, + pythonOlder, + scipy, + xarray, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { hash = "sha256-aljjwgBJp341aQN3g1PoZPj+46x21Eu+svG1yzURhJE="; }; - nativeBuildInputs = [ - flit-core - ]; + nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ numpy @@ -42,9 +41,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "xarray_einstats" - ]; + pythonImportsCheck = [ "xarray_einstats" ]; meta = with lib; { description = "Stats, linear algebra and einops for xarray"; diff --git a/pkgs/development/python-modules/xarray/default.nix b/pkgs/development/python-modules/xarray/default.nix index ad904dd6e60b..14d0d860d5f5 100644 --- a/pkgs/development/python-modules/xarray/default.nix +++ b/pkgs/development/python-modules/xarray/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, flaky -, numpy -, packaging -, pandas -, pytestCheckHook -, pythonOlder -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + flaky, + numpy, + packaging, + pandas, + pytestCheckHook, + pythonOlder, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -39,14 +40,12 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray =[ + pytestFlagsArray = [ # ModuleNotFoundError: No module named 'xarray.datatree_' "--ignore xarray/tests/datatree" ]; - pythonImportsCheck = [ - "xarray" - ]; + pythonImportsCheck = [ "xarray" ]; meta = with lib; { description = "N-D labeled arrays and datasets in Python"; diff --git a/pkgs/development/python-modules/xattr/default.nix b/pkgs/development/python-modules/xattr/default.nix index 6d24e5dffc8f..e700a0a80d64 100644 --- a/pkgs/development/python-modules/xattr/default.nix +++ b/pkgs/development/python-modules/xattr/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, cffi -, setuptools -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python, + cffi, + setuptools, + pythonOlder, }: buildPythonPackage rec { @@ -27,17 +28,13 @@ buildPythonPackage rec { # https://github.com/xattr/xattr/issues/43 doCheck = false; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; postBuild = '' ${python.pythonOnBuildForHost.interpreter} -m compileall -f xattr ''; - pythonImportsCheck = [ - "xattr" - ]; + pythonImportsCheck = [ "xattr" ]; meta = with lib; { description = "Python wrapper for extended filesystem attributes"; diff --git a/pkgs/development/python-modules/xbox-webapi/default.nix b/pkgs/development/python-modules/xbox-webapi/default.nix index c5180c1f15c0..931d0be5748c 100644 --- a/pkgs/development/python-modules/xbox-webapi/default.nix +++ b/pkgs/development/python-modules/xbox-webapi/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, appdirs -, ecdsa -, httpx -, ms-cv -, pydantic -, pytest-asyncio -, pytestCheckHook -, respx +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + appdirs, + ecdsa, + httpx, + ms-cv, + pydantic, + pytest-asyncio, + pytestCheckHook, + respx, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-9A3gdSlRjBCx5fBW+jkaSWsFuGieXQKvbEbZzGzLf94="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ appdirs diff --git a/pkgs/development/python-modules/xboxapi/default.nix b/pkgs/development/python-modules/xboxapi/default.nix index e0bb1614e339..b100259cea6b 100644 --- a/pkgs/development/python-modules/xboxapi/default.nix +++ b/pkgs/development/python-modules/xboxapi/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/xcffib/default.nix b/pkgs/development/python-modules/xcffib/default.nix index ff5215ccb4cc..90890581dddc 100644 --- a/pkgs/development/python-modules/xcffib/default.nix +++ b/pkgs/development/python-modules/xcffib/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, cffi -, fetchPypi -, pytestCheckHook -, pythonOlder -, xorg +{ + lib, + buildPythonPackage, + cffi, + fetchPypi, + pytestCheckHook, + pythonOlder, + xorg, }: buildPythonPackage rec { @@ -24,13 +25,9 @@ buildPythonPackage rec { sed -e 's,ffi\.dlopen(,&"${xorg.libxcb.out}/lib/" + ,' -i xcffib/__init__.py ''; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; nativeCheckInputs = [ pytestCheckHook @@ -43,9 +40,7 @@ buildPythonPackage rec { rm -r xcffib ''; - pythonImportsCheck = [ - "xcffib" - ]; + pythonImportsCheck = [ "xcffib" ]; # Tests use xvfb __darwinAllowLocalNetworking = true; diff --git a/pkgs/development/python-modules/xdg-base-dirs/default.nix b/pkgs/development/python-modules/xdg-base-dirs/default.nix index b2eb4094c927..35368db2dec7 100644 --- a/pkgs/development/python-modules/xdg-base-dirs/default.nix +++ b/pkgs/development/python-modules/xdg-base-dirs/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-nbdF1tjVqlxwiGW0pySS6HyJbmNuQ7mVdQYfhofO4Dk="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/xdg/default.nix b/pkgs/development/python-modules/xdg/default.nix index 065f434bd7ee..ddd0c4551242 100644 --- a/pkgs/development/python-modules/xdg/default.nix +++ b/pkgs/development/python-modules/xdg/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, clikit -, poetry-core +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + clikit, + poetry-core, }: buildPythonPackage rec { @@ -22,16 +23,12 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - clikit - ]; + propagatedBuildInputs = [ clikit ]; # sdist has no tests doCheck = false; - pythonImportsCheck = [ - "xdg" - ]; + pythonImportsCheck = [ "xdg" ]; meta = with lib; { description = "XDG Base Directory Specification for Python"; diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix index 5fda8fce96cc..20169ea57e7a 100644 --- a/pkgs/development/python-modules/xdis/default.nix +++ b/pkgs/development/python-modules/xdis/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, fetchpatch -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, six +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + fetchpatch, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + six, }: buildPythonPackage rec { @@ -28,13 +29,9 @@ buildPythonPackage rec { six ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "xdis" - ]; + pythonImportsCheck = [ "xdis" ]; disabledTestPaths = [ # import file mismatch: diff --git a/pkgs/development/python-modules/xdoctest/default.nix b/pkgs/development/python-modules/xdoctest/default.nix index 68eb1a0f426b..30be646bcf65 100644 --- a/pkgs/development/python-modules/xdoctest/default.nix +++ b/pkgs/development/python-modules/xdoctest/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, setuptools -, wheel -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + wheel, + pytestCheckHook, }: buildPythonPackage rec { @@ -26,9 +27,7 @@ buildPythonPackage rec { wheel ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR diff --git a/pkgs/development/python-modules/xdot/default.nix b/pkgs/development/python-modules/xdot/default.nix index 3cf0564c70a3..c77f281ebd50 100644 --- a/pkgs/development/python-modules/xdot/default.nix +++ b/pkgs/development/python-modules/xdot/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, xvfb-run -, wrapGAppsHook3 -, gobject-introspection -, pygobject3 -, graphviz -, gtk3 -, numpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + xvfb-run, + wrapGAppsHook3, + gobject-introspection, + pygobject3, + graphviz, + gtk3, + numpy, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { gtk3 numpy ]; - nativeCheckInputs = [ - xvfb-run - ]; + nativeCheckInputs = [ xvfb-run ]; dontWrapGApps = true; # Arguments to be passed to `makeWrapper`, only used by buildPython* diff --git a/pkgs/development/python-modules/xdxf2html/default.nix b/pkgs/development/python-modules/xdxf2html/default.nix index 496627c3724f..4c31e36ff128 100644 --- a/pkgs/development/python-modules/xdxf2html/default.nix +++ b/pkgs/development/python-modules/xdxf2html/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -, setuptools + setuptools, }: buildPythonPackage rec { @@ -15,9 +16,7 @@ buildPythonPackage rec { hash = "sha256-u2UaEALzD583+hbgwTItQOdGQ6GIhdVy79C2gfJwzlI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; pythonImportsCheck = [ "xdxf2html" ]; diff --git a/pkgs/development/python-modules/xformers/default.nix b/pkgs/development/python-modules/xformers/default.nix index e0e6e9569ef3..b63270f6f4c5 100644 --- a/pkgs/development/python-modules/xformers/default.nix +++ b/pkgs/development/python-modules/xformers/default.nix @@ -1,27 +1,28 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, which -# runtime dependencies -, numpy -, torch -# check dependencies -, pytestCheckHook -, pytest-cov -# , pytest-mpi -, pytest-timeout -# , pytorch-image-models -, hydra-core -, fairscale -, scipy -, cmake -, openai-triton -, networkx -#, apex -, einops -, transformers -, timm +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + which, + # runtime dependencies + numpy, + torch, + # check dependencies + pytestCheckHook, + pytest-cov, + # , pytest-mpi + pytest-timeout, + # , pytorch-image-models + hydra-core, + fairscale, + scipy, + cmake, + openai-triton, + networkx, + #, apex + einops, + transformers, + timm, #, flash-attn }: let @@ -43,33 +44,34 @@ buildPythonPackage { fetchSubmodules = true; }; - patches = [ - ./0001-fix-allow-building-without-git.patch - ]; + patches = [ ./0001-fix-allow-building-without-git.patch ]; - preBuild = '' - cat << EOF > ./xformers/version.py - # noqa: C801 - __version__ = "${version}" - EOF - '' + lib.optionalString cudaSupport '' - export CUDA_HOME=${cudaPackages.cuda_nvcc} - export TORCH_CUDA_ARCH_LIST="${lib.concatStringsSep ";" cudaCapabilities}" - ''; + preBuild = + '' + cat << EOF > ./xformers/version.py + # noqa: C801 + __version__ = "${version}" + EOF + '' + + lib.optionalString cudaSupport '' + export CUDA_HOME=${cudaPackages.cuda_nvcc} + export TORCH_CUDA_ARCH_LIST="${lib.concatStringsSep ";" cudaCapabilities}" + ''; - buildInputs = lib.optionals cudaSupport (with cudaPackages; [ - # flash-attn build - cuda_cudart # cuda_runtime_api.h - libcusparse.dev # cusparse.h - cuda_cccl.dev # nv/target - libcublas.dev # cublas_v2.h - libcusolver.dev # cusolverDn.h - libcurand.dev # curand_kernel.h - ]); + buildInputs = lib.optionals cudaSupport ( + with cudaPackages; + [ + # flash-attn build + cuda_cudart # cuda_runtime_api.h + libcusparse.dev # cusparse.h + cuda_cccl.dev # nv/target + libcublas.dev # cublas_v2.h + libcusolver.dev # cusolverDn.h + libcurand.dev # curand_kernel.h + ] + ); - nativeBuildInputs = [ - which - ]; + nativeBuildInputs = [ which ]; propagatedBuildInputs = [ numpy diff --git a/pkgs/development/python-modules/xgboost/default.nix b/pkgs/development/python-modules/xgboost/default.nix index 2a65992e048d..320b1d1d6ab1 100644 --- a/pkgs/development/python-modules/xgboost/default.nix +++ b/pkgs/development/python-modules/xgboost/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, cmake -, numpy -, scipy -, hatchling -, stdenv -, xgboost +{ + lib, + buildPythonPackage, + pythonOlder, + cmake, + numpy, + scipy, + hatchling, + stdenv, + xgboost, }: buildPythonPackage { @@ -16,16 +17,24 @@ buildPythonPackage { disabled = pythonOlder "3.8"; - nativeBuildInputs = [ cmake hatchling ]; + nativeBuildInputs = [ + cmake + hatchling + ]; buildInputs = [ xgboost ]; - propagatedBuildInputs = [ numpy scipy ]; + propagatedBuildInputs = [ + numpy + scipy + ]; # Override existing logic for locating libxgboost.so which is not appropriate for Nix - prePatch = let - libPath = "${xgboost}/lib/libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}"; - in '' - echo 'find_lib_path = lambda: ["${libPath}"]' > python-package/xgboost/libpath.py - ''; + prePatch = + let + libPath = "${xgboost}/lib/libxgboost${stdenv.hostPlatform.extensions.sharedLibrary}"; + in + '' + echo 'find_lib_path = lambda: ["${libPath}"]' > python-package/xgboost/libpath.py + ''; dontUseCmakeConfigure = true; @@ -38,9 +47,7 @@ buildPythonPackage { # and are extremely cpu intensive anyway doCheck = false; - pythonImportsCheck = [ - "xgboost" - ]; + pythonImportsCheck = [ "xgboost" ]; __darwinAllowLocalNetworking = true; } diff --git a/pkgs/development/python-modules/xhtml2pdf/default.nix b/pkgs/development/python-modules/xhtml2pdf/default.nix index f223e63c7f0e..c6cf902cae78 100644 --- a/pkgs/development/python-modules/xhtml2pdf/default.nix +++ b/pkgs/development/python-modules/xhtml2pdf/default.nix @@ -1,20 +1,21 @@ -{ lib -, arabic-reshaper -, buildPythonPackage -, fetchFromGitHub -, fetchpatch2 -, html5lib -, pillow -, pyhanko -, pyhanko-certvalidator -, pypdf -, pytestCheckHook -, python-bidi -, pythonOlder -, pythonRelaxDepsHook -, reportlab -, setuptools -, svglib +{ + lib, + arabic-reshaper, + buildPythonPackage, + fetchFromGitHub, + fetchpatch2, + html5lib, + pillow, + pyhanko, + pyhanko-certvalidator, + pypdf, + pytestCheckHook, + python-bidi, + pythonOlder, + pythonRelaxDepsHook, + reportlab, + setuptools, + svglib, }: buildPythonPackage rec { @@ -45,9 +46,7 @@ buildPythonPackage rec { setuptools ]; - pythonRelaxDeps = [ - "reportlab" - ]; + pythonRelaxDeps = [ "reportlab" ]; propagatedBuildInputs = [ arabic-reshaper @@ -61,9 +60,7 @@ buildPythonPackage rec { svglib ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTests = [ # Tests requires network access diff --git a/pkgs/development/python-modules/xkbcommon/default.nix b/pkgs/development/python-modules/xkbcommon/default.nix index 4e1ef0ea0ef7..a7db6ea5fe52 100644 --- a/pkgs/development/python-modules/xkbcommon/default.nix +++ b/pkgs/development/python-modules/xkbcommon/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, cffi -, pkg-config -, libxkbcommon -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + python, + cffi, + pkg-config, + libxkbcommon, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/xkcdpass/default.nix b/pkgs/development/python-modules/xkcdpass/default.nix index 121af2bca29a..709a26328ac4 100644 --- a/pkgs/development/python-modules/xkcdpass/default.nix +++ b/pkgs/development/python-modules/xkcdpass/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, installShellFiles -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + installShellFiles, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,21 +21,13 @@ buildPythonPackage rec { hash = "sha256-qU+HG9qHBmjlxl64QpbpOWADYt8swDa5HFyjgVvSktc="; }; - nativeBuildInputs = [ - installShellFiles - ]; + nativeBuildInputs = [ installShellFiles ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "xkcdpass" - ]; + pythonImportsCheck = [ "xkcdpass" ]; disabledTests = lib.optionals (pythonAtLeast "3.10") [ # https://github.com/redacted/XKCD-password-generator/issues/138 diff --git a/pkgs/development/python-modules/xknx/default.nix b/pkgs/development/python-modules/xknx/default.nix index dc3e1adb1707..a4c05c70f0c3 100644 --- a/pkgs/development/python-modules/xknx/default.nix +++ b/pkgs/development/python-modules/xknx/default.nix @@ -1,13 +1,14 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, cryptography -, ifaddr -, pytest-asyncio_0_21 -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + cryptography, + ifaddr, + pytest-asyncio_0_21, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,29 +25,21 @@ buildPythonPackage rec { hash = "sha256-gajxXIR3lmHsW7258v4z20RilzGfm5KGVrXZwRm74Mk="; }; - patches = [ - ./pytest-asyncio-0.22-compat.patch - ]; + patches = [ ./pytest-asyncio-0.22-compat.patch ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cryptography ifaddr - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ pytest-asyncio_0_21 pytestCheckHook ]; - pythonImportsCheck = [ - "xknx" - ]; + pythonImportsCheck = [ "xknx" ]; disabledTests = [ # Test requires network access diff --git a/pkgs/development/python-modules/xlib/default.nix b/pkgs/development/python-modules/xlib/default.nix index 92a9c5e40263..0852e4b13fc3 100644 --- a/pkgs/development/python-modules/xlib/default.nix +++ b/pkgs/development/python-modules/xlib/default.nix @@ -1,14 +1,16 @@ -{ lib, stdenv -, buildPythonPackage -, fetchFromGitHub -, six -, setuptools-scm -, xorg -, python -, mock -, nose -, pytestCheckHook -, util-linux +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + six, + setuptools-scm, + xorg, + python, + mock, + nose, + pytestCheckHook, + util-linux, }: buildPythonPackage rec { @@ -23,17 +25,11 @@ buildPythonPackage rec { hash = "sha256-u06OWlMIOUzHOVS4hvm72jGgTSXWUqMvEQd8bTpFog0="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; - buildInputs = [ - xorg.libX11 - ]; + buildInputs = [ xorg.libX11 ]; - propagatedBuildInputs = [ - six - ]; + propagatedBuildInputs = [ six ]; doCheck = !stdenv.isDarwin; @@ -58,5 +54,4 @@ buildPythonPackage rec { license = licenses.lgpl21Plus; maintainers = with maintainers; [ ]; }; - } diff --git a/pkgs/development/python-modules/xlrd/default.nix b/pkgs/development/python-modules/xlrd/default.nix index ce17ca1502ad..d5a98d170ab5 100644 --- a/pkgs/development/python-modules/xlrd/default.nix +++ b/pkgs/development/python-modules/xlrd/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "f72f148f54442c6b056bf931dbc34f986fd0c3b0b6b5a58d013c9aef274d0c88"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; # No tests in archive doCheck = false; @@ -27,5 +26,4 @@ buildPythonPackage rec { mainProgram = "runxlrd.py"; license = licenses.bsd0; }; - } diff --git a/pkgs/development/python-modules/xlsx2csv/default.nix b/pkgs/development/python-modules/xlsx2csv/default.nix index 5d4b37342f6f..272fe740981e 100644 --- a/pkgs/development/python-modules/xlsx2csv/default.nix +++ b/pkgs/development/python-modules/xlsx2csv/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, setuptools-scm -, wheel +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + setuptools-scm, + wheel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/xlsxwriter/default.nix b/pkgs/development/python-modules/xlsxwriter/default.nix index 115993e756bc..919849730f8e 100644 --- a/pkgs/development/python-modules/xlsxwriter/default.nix +++ b/pkgs/development/python-modules/xlsxwriter/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -20,17 +21,11 @@ buildPythonPackage rec { hash = "sha256-HLSIKoGBSzU7N/lskVeVbfdOezTloMrwAahJbcnqJrw="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "xlsxwriter" - ]; + pythonImportsCheck = [ "xlsxwriter" ]; meta = with lib; { description = "Module for creating Excel XLSX files"; diff --git a/pkgs/development/python-modules/xlwt/default.nix b/pkgs/development/python-modules/xlwt/default.nix index f1e3a2565b6d..67b2de049e87 100644 --- a/pkgs/development/python-modules/xlwt/default.nix +++ b/pkgs/development/python-modules/xlwt/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, nose -, lib +{ + buildPythonPackage, + fetchPypi, + nose, + lib, }: buildPythonPackage rec { @@ -22,6 +23,10 @@ buildPythonPackage rec { meta = { description = "Library to create spreadsheet files compatible with MS"; homepage = "https://github.com/python-excel/xlwt"; - license = with lib.licenses; [ bsdOriginal bsd3 lgpl21 ]; + license = with lib.licenses; [ + bsdOriginal + bsd3 + lgpl21 + ]; }; } diff --git a/pkgs/development/python-modules/xmind/default.nix b/pkgs/development/python-modules/xmind/default.nix index ab12f26a72df..cd1510b263c5 100644 --- a/pkgs/development/python-modules/xmind/default.nix +++ b/pkgs/development/python-modules/xmind/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { # Projec thas no tests doCheck = false; - pythonImportsCheck = [ - "xmind" - ]; + pythonImportsCheck = [ "xmind" ]; meta = with lib; { description = "Python module to create mindmaps"; diff --git a/pkgs/development/python-modules/xml-marshaller/default.nix b/pkgs/development/python-modules/xml-marshaller/default.nix index 43e08cae2426..1b73fe015595 100644 --- a/pkgs/development/python-modules/xml-marshaller/default.nix +++ b/pkgs/development/python-modules/xml-marshaller/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, lib -, lxml -, six +{ + buildPythonPackage, + fetchPypi, + lib, + lxml, + six, }: buildPythonPackage rec { @@ -16,7 +17,10 @@ buildPythonPackage rec { hash = "sha256-QvBALLDD8o5nZQ5Z4bembhadK6jcydWKQpJaSmGqqJM="; }; - propagatedBuildInputs = [ lxml six ]; + propagatedBuildInputs = [ + lxml + six + ]; pythonImportsCheck = [ "xml_marshaller" ]; diff --git a/pkgs/development/python-modules/xml2rfc/default.nix b/pkgs/development/python-modules/xml2rfc/default.nix index 7ab5192b6a04..a2f1191de9a3 100644 --- a/pkgs/development/python-modules/xml2rfc/default.nix +++ b/pkgs/development/python-modules/xml2rfc/default.nix @@ -1,28 +1,29 @@ -{ lib -, appdirs -, buildPythonPackage -, configargparse -, decorator -, dict2xml -, fetchFromGitHub -, google-i18n-address -, html5lib -, intervaltree -, jinja2 -, lxml -, markupsafe -, platformdirs -, pycairo -, pycountry -, pyflakes -, pypdf2 -, pytestCheckHook -, python-fontconfig -, pythonOlder -, pyyaml -, requests -, six -, wcwidth +{ + lib, + appdirs, + buildPythonPackage, + configargparse, + decorator, + dict2xml, + fetchFromGitHub, + google-i18n-address, + html5lib, + intervaltree, + jinja2, + lxml, + markupsafe, + platformdirs, + pycairo, + pycountry, + pyflakes, + pypdf2, + pytestCheckHook, + python-fontconfig, + pythonOlder, + pyyaml, + requests, + six, + wcwidth, }: buildPythonPackage rec { @@ -74,16 +75,14 @@ buildPythonPackage rec { python-fontconfig ]; - # Requires Noto Serif and Roboto Mono font + # Requires Noto Serif and Roboto Mono font doCheck = false; checkPhase = '' make tests-no-network ''; - pythonImportsCheck = [ - "xml2rfc" - ]; + pythonImportsCheck = [ "xml2rfc" ]; meta = with lib; { description = "Tool generating IETF RFCs and drafts from XML sources"; @@ -93,6 +92,9 @@ buildPythonPackage rec { # Well, parts might be considered unfree, if being strict; see: # http://metadata.ftp-master.debian.org/changelogs/non-free/x/xml2rfc/xml2rfc_2.9.6-1_copyright license = licenses.bsd3; - maintainers = with maintainers; [ vcunat yrashk ]; + maintainers = with maintainers; [ + vcunat + yrashk + ]; }; } diff --git a/pkgs/development/python-modules/xmldiff/default.nix b/pkgs/development/python-modules/xmldiff/default.nix index df927dabab4e..6bf2fd9607d6 100644 --- a/pkgs/development/python-modules/xmldiff/default.nix +++ b/pkgs/development/python-modules/xmldiff/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, lxml -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + lxml, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,22 +20,16 @@ buildPythonPackage rec { hash = "sha256-wJELH4ADZt1+xikj5dBuiwahvZEgVpocJ/TyRGucaKI="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ lxml setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "xmldiff" - ]; + pythonImportsCheck = [ "xmldiff" ]; meta = with lib; { description = "Creates diffs of XML files"; diff --git a/pkgs/development/python-modules/xmljson/default.nix b/pkgs/development/python-modules/xmljson/default.nix index 441a0e571dc2..3f1e37c9a38e 100644 --- a/pkgs/development/python-modules/xmljson/default.nix +++ b/pkgs/development/python-modules/xmljson/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, fetchPypi -, lib -, lxml +{ + buildPythonPackage, + fetchPypi, + lib, + lxml, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { sha256 = "b4158e66aa1e62ee39f7f80eb2fe4f767670ba3c0d5de9804420dc53427fdec8"; }; - nativeCheckInputs = [ - lxml - ]; + nativeCheckInputs = [ lxml ]; meta = with lib; { description = "Converts XML into dictionary structures and vice-versa"; diff --git a/pkgs/development/python-modules/xmlsec/default.nix b/pkgs/development/python-modules/xmlsec/default.nix index 28dfd80dcd9d..229fa8171371 100644 --- a/pkgs/development/python-modules/xmlsec/default.nix +++ b/pkgs/development/python-modules/xmlsec/default.nix @@ -1,16 +1,17 @@ -{ lib -, fetchPypi -, buildPythonPackage -, pytestCheckHook -, libxslt -, libxml2 -, libtool -, pkg-config -, xmlsec -, pkgconfig -, setuptools-scm -, lxml -, hypothesis +{ + lib, + fetchPypi, + buildPythonPackage, + pytestCheckHook, + libxslt, + libxml2, + libtool, + pkg-config, + xmlsec, + pkgconfig, + setuptools-scm, + lxml, + hypothesis, }: buildPythonPackage rec { @@ -23,13 +24,25 @@ buildPythonPackage rec { hash = "sha256-k0+ATy+JW824bx6u4ja2YQE1YO5p7BCNKc3W5fKSotk="; }; - nativeBuildInputs = [ pkg-config pkgconfig setuptools-scm ]; + nativeBuildInputs = [ + pkg-config + pkgconfig + setuptools-scm + ]; - buildInputs = [ xmlsec libxslt libxml2 libtool ]; + buildInputs = [ + xmlsec + libxslt + libxml2 + libtool + ]; propagatedBuildInputs = [ lxml ]; - nativeCheckInputs = [ pytestCheckHook hypothesis ]; + nativeCheckInputs = [ + pytestCheckHook + hypothesis + ]; disabledTestPaths = [ # Full git clone required for test_doc_examples diff --git a/pkgs/development/python-modules/xmltodict/default.nix b/pkgs/development/python-modules/xmltodict/default.nix index 3b06401c3924..9a6142501630 100644 --- a/pkgs/development/python-modules/xmltodict/default.nix +++ b/pkgs/development/python-modules/xmltodict/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, }: buildPythonPackage rec { @@ -14,9 +15,7 @@ buildPythonPackage rec { hash = "sha256-NBWVpIjj4BqFqdiRHYkS/ZIu3l/sxNzkN+tLbI0DflY="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "xmltodict" ]; diff --git a/pkgs/development/python-modules/xmod/default.nix b/pkgs/development/python-modules/xmod/default.nix index d5ba4bf1a322..e16652e971f5 100644 --- a/pkgs/development/python-modules/xmod/default.nix +++ b/pkgs/development/python-modules/xmod/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,21 +18,13 @@ buildPythonPackage rec { hash = "sha256-pfFxtDQ4kaBrx4XzYMQO1vE4dUr2zs8jgGUQUdXB798="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - "test_partial_function" - ]; + disabledTests = [ "test_partial_function" ]; - pythonImportsCheck = [ - "xmod" - ]; + pythonImportsCheck = [ "xmod" ]; meta = with lib; { description = "Turn any object into a module"; diff --git a/pkgs/development/python-modules/xmodem/default.nix b/pkgs/development/python-modules/xmodem/default.nix index ea4396d28f30..44e30abe4ff3 100644 --- a/pkgs/development/python-modules/xmodem/default.nix +++ b/pkgs/development/python-modules/xmodem/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytest, which, lrzsz }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytest, + which, + lrzsz, +}: buildPythonPackage rec { pname = "xmodem"; @@ -12,7 +19,11 @@ buildPythonPackage rec { sha256 = "sha256-kwPA/lYiv6IJSKGRuH13tBofZwp19vebwQniHK7A/i8="; }; - nativeCheckInputs = [ pytest which lrzsz ]; + nativeCheckInputs = [ + pytest + which + lrzsz + ]; checkPhase = '' pytest diff --git a/pkgs/development/python-modules/xnatpy/default.nix b/pkgs/development/python-modules/xnatpy/default.nix index 4738f137d427..bdd69ab8614c 100644 --- a/pkgs/development/python-modules/xnatpy/default.nix +++ b/pkgs/development/python-modules/xnatpy/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, click -, isodate -, progressbar2 -, pydicom -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + click, + isodate, + progressbar2, + pydicom, + requests, }: buildPythonPackage rec { @@ -40,8 +41,7 @@ buildPythonPackage rec { meta = with lib; { homepage = "https://xnat.readthedocs.io"; - description = - "A new XNAT client (distinct from pyxnat) that exposes XNAT objects/functions as Python objects/functions"; + description = "A new XNAT client (distinct from pyxnat) that exposes XNAT objects/functions as Python objects/functions"; changelog = "https://gitlab.com/radiology/infrastructure/xnatpy/-/blob/${version}/CHANGELOG?ref_type=tags"; license = licenses.asl20; maintainers = with maintainers; [ bcdarwin ]; diff --git a/pkgs/development/python-modules/xnd/default.nix b/pkgs/development/python-modules/xnd/default.nix index 93c2c928f86b..404069497e97 100644 --- a/pkgs/development/python-modules/xnd/default.nix +++ b/pkgs/development/python-modules/xnd/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, fetchpatch -, buildPythonPackage -, python -, ndtypes -, libndtypes -, libxnd -, isPy27 +{ + lib, + stdenv, + fetchpatch, + buildPythonPackage, + python, + ndtypes, + libndtypes, + libxnd, + isPy27, }: buildPythonPackage { @@ -38,12 +39,14 @@ buildPythonPackage { 'runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib"]' \ ''; - postInstall = '' - mkdir $out/include - cp python/xnd/*.h $out/include - '' + lib.optionalString stdenv.isDarwin '' - install_name_tool -add_rpath ${libxnd}/lib $out/${python.sitePackages}/xnd/_xnd.*.so - ''; + postInstall = + '' + mkdir $out/include + cp python/xnd/*.h $out/include + '' + + lib.optionalString stdenv.isDarwin '' + install_name_tool -add_rpath ${libxnd}/lib $out/${python.sitePackages}/xnd/_xnd.*.so + ''; checkPhase = '' pushd python diff --git a/pkgs/development/python-modules/xpath-expressions/default.nix b/pkgs/development/python-modules/xpath-expressions/default.nix index 97e5e62b01aa..56d514db4055 100644 --- a/pkgs/development/python-modules/xpath-expressions/default.nix +++ b/pkgs/development/python-modules/xpath-expressions/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, lxml -, poetry-core -, pythonOlder -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + lxml, + poetry-core, + pythonOlder, + pytestCheckHook, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; nativeCheckInputs = [ lxml diff --git a/pkgs/development/python-modules/xpybutil/default.nix b/pkgs/development/python-modules/xpybutil/default.nix index 4a3f7681ed58..aefae435af5e 100644 --- a/pkgs/development/python-modules/xpybutil/default.nix +++ b/pkgs/development/python-modules/xpybutil/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, fetchFromGitHub, xcffib, pillow }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + xcffib, + pillow, +}: buildPythonPackage rec { pname = "xpybutil"; @@ -14,16 +20,17 @@ buildPythonPackage rec { }; # pillow is a dependency in image.py which is not listed in setup.py - propagatedBuildInputs = [ pillow xcffib ]; + propagatedBuildInputs = [ + pillow + xcffib + ]; propagatedNativeBuildInputs = [ xcffib ]; # no tests doCheck = false; - pythonImportsCheck = [ - "xpybutil" - ]; + pythonImportsCheck = [ "xpybutil" ]; meta = with lib; { homepage = "https://github.com/BurntSushi/xpybutil"; diff --git a/pkgs/development/python-modules/xrootd/default.nix b/pkgs/development/python-modules/xrootd/default.nix index d17a56e2f914..cfba619fcf1c 100644 --- a/pkgs/development/python-modules/xrootd/default.nix +++ b/pkgs/development/python-modules/xrootd/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, cmake -, setuptools -, wheel -, xrootd +{ + lib, + buildPythonPackage, + cmake, + setuptools, + wheel, + xrootd, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { wheel ]; - buildInputs = [ - xrootd - ]; + buildInputs = [ xrootd ]; dontUseCmakeConfigure = true; diff --git a/pkgs/development/python-modules/xsdata/default.nix b/pkgs/development/python-modules/xsdata/default.nix index b57fff4a94f0..a9a1ed7a5e6d 100644 --- a/pkgs/development/python-modules/xsdata/default.nix +++ b/pkgs/development/python-modules/xsdata/default.nix @@ -1,19 +1,20 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, substituteAll -, ruff -, click -, click-default-group -, docformatter -, jinja2 -, toposort -, typing-extensions -, lxml -, requests -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + ruff, + click, + click-default-group, + docformatter, + jinja2, + toposort, + typing-extensions, + lxml, + requests, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -42,13 +43,9 @@ buildPythonPackage rec { --replace "--benchmark-skip" "" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - typing-extensions - ]; + propagatedBuildInputs = [ typing-extensions ]; passthru.optional-dependencies = { cli = [ @@ -58,23 +55,17 @@ buildPythonPackage rec { jinja2 toposort ]; - lxml = [ - lxml - ]; - soap = [ - requests - ]; + lxml = [ lxml ]; + soap = [ requests ]; }; - nativeCheckInputs = [ - pytestCheckHook - ] ++ passthru.optional-dependencies.cli + nativeCheckInputs = + [ pytestCheckHook ] + ++ passthru.optional-dependencies.cli ++ passthru.optional-dependencies.lxml ++ passthru.optional-dependencies.soap; - disabledTestPaths = [ - "tests/integration/benchmarks" - ]; + disabledTestPaths = [ "tests/integration/benchmarks" ]; pythonImportsCheck = [ "xsdata.formats.dataclass.context" diff --git a/pkgs/development/python-modules/xstatic-asciinema-player/default.nix b/pkgs/development/python-modules/xstatic-asciinema-player/default.nix index 7651ce57c10d..187a9c7baf93 100644 --- a/pkgs/development/python-modules/xstatic-asciinema-player/default.nix +++ b/pkgs/development/python-modules/xstatic-asciinema-player/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/xstatic-bootbox/default.nix b/pkgs/development/python-modules/xstatic-bootbox/default.nix index 49c0f7d783fb..419e05188930 100644 --- a/pkgs/development/python-modules/xstatic-bootbox/default.nix +++ b/pkgs/development/python-modules/xstatic-bootbox/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { @@ -16,11 +17,10 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - meta = with lib;{ + meta = with lib; { homepage = "http://bootboxjs.com"; description = "Bootboxjs packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xstatic-bootstrap/default.nix b/pkgs/development/python-modules/xstatic-bootstrap/default.nix index 808957f70d14..55e1f68761a0 100644 --- a/pkgs/development/python-modules/xstatic-bootstrap/default.nix +++ b/pkgs/development/python-modules/xstatic-bootstrap/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { @@ -16,11 +17,10 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - meta = with lib;{ + meta = with lib; { homepage = "https://getbootstrap.com"; description = "Bootstrap packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xstatic-font-awesome/default.nix b/pkgs/development/python-modules/xstatic-font-awesome/default.nix index 07bce6f3c4c0..1a8868a84685 100644 --- a/pkgs/development/python-modules/xstatic-font-awesome/default.nix +++ b/pkgs/development/python-modules/xstatic-font-awesome/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix index 29ab4f1cb062..cb5efd7aebb8 100644 --- a/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-file-upload/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, xstatic-jquery +{ + buildPythonPackage, + lib, + fetchPypi, + xstatic-jquery, }: buildPythonPackage rec { @@ -19,11 +20,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ xstatic-jquery ]; - meta = with lib;{ - homepage = "https://plugins.jquery.com/project/jQuery-File-Upload"; + meta = with lib; { + homepage = "https://plugins.jquery.com/project/jQuery-File-Upload"; description = "jquery-file-upload packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xstatic-jquery-ui/default.nix b/pkgs/development/python-modules/xstatic-jquery-ui/default.nix index 0f74a49f929c..9af1d20c0cdb 100644 --- a/pkgs/development/python-modules/xstatic-jquery-ui/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery-ui/default.nix @@ -1,7 +1,8 @@ -{ buildPythonPackage -, lib -, fetchPypi -, xstatic-jquery +{ + buildPythonPackage, + lib, + fetchPypi, + xstatic-jquery, }: buildPythonPackage rec { @@ -19,11 +20,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ xstatic-jquery ]; - meta = with lib;{ + meta = with lib; { homepage = "https://jqueryui.com/"; description = "jquery-ui packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xstatic-jquery/default.nix b/pkgs/development/python-modules/xstatic-jquery/default.nix index bd48c889f3f0..2e3f4b9831a5 100644 --- a/pkgs/development/python-modules/xstatic-jquery/default.nix +++ b/pkgs/development/python-modules/xstatic-jquery/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { @@ -16,11 +17,10 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - meta = with lib;{ - homepage = "https://jquery.org"; + meta = with lib; { + homepage = "https://jquery.org"; description = "jquery packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xstatic-pygments/default.nix b/pkgs/development/python-modules/xstatic-pygments/default.nix index 6d8391dcb8aa..39c41f74ced7 100644 --- a/pkgs/development/python-modules/xstatic-pygments/default.nix +++ b/pkgs/development/python-modules/xstatic-pygments/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { @@ -16,11 +17,10 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - meta = with lib;{ + meta = with lib; { homepage = "https://pygments.org"; description = "pygments packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xstatic/default.nix b/pkgs/development/python-modules/xstatic/default.nix index 593dd7e9dd9e..4d6fd00d221c 100644 --- a/pkgs/development/python-modules/xstatic/default.nix +++ b/pkgs/development/python-modules/xstatic/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, lib -, fetchPypi +{ + buildPythonPackage, + lib, + fetchPypi, }: buildPythonPackage rec { @@ -16,11 +17,10 @@ buildPythonPackage rec { # no tests implemented doCheck = false; - meta = with lib;{ + meta = with lib; { homepage = "https://bitbucket.org/thomaswaldmann/xstatic"; description = "Base packaged static files for python"; license = licenses.mit; maintainers = with maintainers; [ makefu ]; }; - } diff --git a/pkgs/development/python-modules/xtensor-python/default.nix b/pkgs/development/python-modules/xtensor-python/default.nix index 4b2123162cc1..2467bac97096 100644 --- a/pkgs/development/python-modules/xtensor-python/default.nix +++ b/pkgs/development/python-modules/xtensor-python/default.nix @@ -1,50 +1,45 @@ -{ lib -, toPythonModule -, stdenv -, fetchFromGitHub -, cmake -, gtest -, xtensor -, pybind11 -, numpy +{ + lib, + toPythonModule, + stdenv, + fetchFromGitHub, + cmake, + gtest, + xtensor, + pybind11, + numpy, }: -toPythonModule (stdenv.mkDerivation(finalAttrs: { - pname = "xtensor-python"; - version = "0.26.1"; +toPythonModule ( + stdenv.mkDerivation (finalAttrs: { + pname = "xtensor-python"; + version = "0.26.1"; - src = fetchFromGitHub { - owner = "xtensor-stack"; - repo = "xtensor-python"; - rev = finalAttrs.version; - sha256 = "sha256-kLFt5Ah5/ZO6wfTZQviVXeIAVok+/F/XCwpgPSagOMo="; - }; + src = fetchFromGitHub { + owner = "xtensor-stack"; + repo = "xtensor-python"; + rev = finalAttrs.version; + sha256 = "sha256-kLFt5Ah5/ZO6wfTZQviVXeIAVok+/F/XCwpgPSagOMo="; + }; - nativeBuildInputs = [ - cmake - ]; - buildInputs = [ - pybind11 - ]; - nativeCheckInputs = [ - gtest - ]; - doCheck = true; - cmakeFlags = [ - "-DBUILD_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}" - ]; + nativeBuildInputs = [ cmake ]; + buildInputs = [ pybind11 ]; + nativeCheckInputs = [ gtest ]; + doCheck = true; + cmakeFlags = [ "-DBUILD_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}" ]; - propagatedBuildInputs = [ - xtensor - numpy - ]; + propagatedBuildInputs = [ + xtensor + numpy + ]; - checkTarget = "xtest"; + checkTarget = "xtest"; - meta = with lib; { - homepage = "https://github.com/xtensor-stack/xtensor-python"; - description = "Python bindings for the xtensor C++ multi-dimensional array library"; - license = licenses.bsd3; - maintainers = with maintainers; [ lsix ]; - }; -})) + meta = with lib; { + homepage = "https://github.com/xtensor-stack/xtensor-python"; + description = "Python bindings for the xtensor C++ multi-dimensional array library"; + license = licenses.bsd3; + maintainers = with maintainers; [ lsix ]; + }; + }) +) diff --git a/pkgs/development/python-modules/xvfbwrapper/default.nix b/pkgs/development/python-modules/xvfbwrapper/default.nix index 6ace2506afd0..75155e475035 100644 --- a/pkgs/development/python-modules/xvfbwrapper/default.nix +++ b/pkgs/development/python-modules/xvfbwrapper/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, xorgserver -, mock +{ + lib, + buildPythonPackage, + fetchPypi, + xorgserver, + mock, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/xxhash/default.nix b/pkgs/development/python-modules/xxhash/default.nix index 6eb774677bfc..3108d6f4ef5f 100644 --- a/pkgs/development/python-modules/xxhash/default.nix +++ b/pkgs/development/python-modules/xxhash/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-A3nWzx/5h81CFgmiZM4CXnTzRuPhRd0QbAzC4+w/mak="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - pythonImportsCheck = [ - "xxhash" - ]; + pythonImportsCheck = [ "xxhash" ]; meta = with lib; { description = "Python Binding for xxHash"; diff --git a/pkgs/development/python-modules/xyzservices/default.nix b/pkgs/development/python-modules/xyzservices/default.nix index 6e49ec04eaf3..5d9e1d4d48e1 100644 --- a/pkgs/development/python-modules/xyzservices/default.nix +++ b/pkgs/development/python-modules/xyzservices/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, mercantile -, pytestCheckHook -, requests -, setuptools -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + mercantile, + pytestCheckHook, + requests, + setuptools, + setuptools-scm, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { "test_free_providers" ]; - pythonImportsCheck = [ - "xyzservices.providers" - ]; + pythonImportsCheck = [ "xyzservices.providers" ]; nativeCheckInputs = [ mercantile diff --git a/pkgs/development/python-modules/y-py/default.nix b/pkgs/development/python-modules/y-py/default.nix index 97747ccfdf5b..7284ceca55a4 100644 --- a/pkgs/development/python-modules/y-py/default.nix +++ b/pkgs/development/python-modules/y-py/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, rustPlatform -, cargo -, rustc -, libiconv -, pytestCheckHook +{ + lib, + stdenv, + buildPythonPackage, + fetchPypi, + rustPlatform, + cargo, + rustc, + libiconv, + pytestCheckHook, }: buildPythonPackage rec { @@ -37,9 +38,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "y_py" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = { description = "Python bindings for Y-CRDT"; diff --git a/pkgs/development/python-modules/yacs/default.nix b/pkgs/development/python-modules/yacs/default.nix index de2a27a93797..f3e15c5ce41e 100644 --- a/pkgs/development/python-modules/yacs/default.nix +++ b/pkgs/development/python-modules/yacs/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, python -, pyyaml +{ + lib, + buildPythonPackage, + fetchFromGitHub, + python, + pyyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/yahooweather/default.nix b/pkgs/development/python-modules/yahooweather/default.nix index 6f61645b9b22..1b183d0e8aca 100644 --- a/pkgs/development/python-modules/yahooweather/default.nix +++ b/pkgs/development/python-modules/yahooweather/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, isPy3k }: +{ + lib, + buildPythonPackage, + fetchPypi, + isPy3k, +}: buildPythonPackage rec { pname = "yahooweather"; diff --git a/pkgs/development/python-modules/yalesmartalarmclient/default.nix b/pkgs/development/python-modules/yalesmartalarmclient/default.nix index c621fa1138e6..e7c02838221c 100644 --- a/pkgs/development/python-modules/yalesmartalarmclient/default.nix +++ b/pkgs/development/python-modules/yalesmartalarmclient/default.nix @@ -1,9 +1,10 @@ -{ lib -, backoff -, buildPythonPackage -, fetchFromGitHub -, requests -, pythonOlder +{ + lib, + backoff, + buildPythonPackage, + fetchFromGitHub, + requests, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { # Project has no tests doCheck = false; - pythonImportsCheck = [ - "yalesmartalarmclient" - ]; + pythonImportsCheck = [ "yalesmartalarmclient" ]; meta = with lib; { description = "Python module to interface with Yale Smart Alarm Systems"; diff --git a/pkgs/development/python-modules/yalexs-ble/default.nix b/pkgs/development/python-modules/yalexs-ble/default.nix index 93a16ea29f9b..337ffbf114c9 100644 --- a/pkgs/development/python-modules/yalexs-ble/default.nix +++ b/pkgs/development/python-modules/yalexs-ble/default.nix @@ -1,16 +1,17 @@ -{ lib -, async-interrupt -, async-timeout -, bleak -, bleak-retry-connector -, buildPythonPackage -, cryptography -, fetchFromGitHub -, lru-dict -, poetry-core -, pytest-asyncio -, pytestCheckHook -, pythonOlder +{ + lib, + async-interrupt, + async-timeout, + bleak, + bleak-retry-connector, + buildPythonPackage, + cryptography, + fetchFromGitHub, + lru-dict, + poetry-core, + pytest-asyncio, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-A/4N3vmFuzg9vaPISs0P3KxRQZSquPpR1zYcYEePkTA="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ async-interrupt @@ -50,9 +49,7 @@ buildPythonPackage rec { --replace " --cov=yalexs_ble --cov-report=term-missing:skip-covered" "" ''; - pythonImportsCheck = [ - "yalexs_ble" - ]; + pythonImportsCheck = [ "yalexs_ble" ]; meta = with lib; { description = "Library for Yale BLE devices"; diff --git a/pkgs/development/python-modules/yamlfix/default.nix b/pkgs/development/python-modules/yamlfix/default.nix index ee3a15d11bd0..f2f2e7379b07 100644 --- a/pkgs/development/python-modules/yamlfix/default.nix +++ b/pkgs/development/python-modules/yamlfix/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, click -, fetchFromGitHub -, maison -, pdm-backend -, pytest-freezegun -, pytest-xdist -, pytest -, pytestCheckHook -, pythonOlder -, ruyaml -, setuptools +{ + lib, + buildPythonPackage, + click, + fetchFromGitHub, + maison, + pdm-backend, + pytest-freezegun, + pytest-xdist, + pytest, + pytestCheckHook, + pythonOlder, + ruyaml, + setuptools, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { export HOME=$(mktemp -d) ''; - pythonImportsCheck = [ - "yamlfix" - ]; + pythonImportsCheck = [ "yamlfix" ]; pytestFlagsArray = [ "-W" diff --git a/pkgs/development/python-modules/yamllint/default.nix b/pkgs/development/python-modules/yamllint/default.nix index 79687d6cf621..5784413e45e3 100644 --- a/pkgs/development/python-modules/yamllint/default.nix +++ b/pkgs/development/python-modules/yamllint/default.nix @@ -1,12 +1,13 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pathspec -, pytestCheckHook -, pythonOlder -, pyyaml +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pathspec, + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -23,32 +24,28 @@ buildPythonPackage rec { hash = "sha256-+7Q2cPl4XElI2IfLAkteifFVTrGkj2IjZk7nPuc6eYM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyyaml pathspec ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # test failure reported upstream: https://github.com/adrienverge/yamllint/issues/373 - "test_find_files_recursively" - ] ++ lib.optionals stdenv.isDarwin [ - # locale tests are broken on BSDs; see https://github.com/adrienverge/yamllint/issues/307 - "test_locale_accents" - "test_locale_case" - "test_run_with_locale" - ]; + disabledTests = + [ + # test failure reported upstream: https://github.com/adrienverge/yamllint/issues/373 + "test_find_files_recursively" + ] + ++ lib.optionals stdenv.isDarwin [ + # locale tests are broken on BSDs; see https://github.com/adrienverge/yamllint/issues/307 + "test_locale_accents" + "test_locale_case" + "test_run_with_locale" + ]; - pythonImportsCheck = [ - "yamllint" - ]; + pythonImportsCheck = [ "yamllint" ]; meta = with lib; { description = "A linter for YAML files"; @@ -56,6 +53,9 @@ buildPythonPackage rec { homepage = "https://github.com/adrienverge/yamllint"; changelog = "https://github.com/adrienverge/yamllint/blob/v${version}/CHANGELOG.rst"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ jonringer mikefaille ]; + maintainers = with maintainers; [ + jonringer + mikefaille + ]; }; } diff --git a/pkgs/development/python-modules/yamlloader/default.nix b/pkgs/development/python-modules/yamlloader/default.nix index 69019ab75e06..e7f586266b9e 100644 --- a/pkgs/development/python-modules/yamlloader/default.nix +++ b/pkgs/development/python-modules/yamlloader/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytest -, pyyaml -, hypothesis -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pytest, + pyyaml, + hypothesis, + pythonOlder, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { hash = "sha256-tv5A7PWvWW2EDpIGcO00dfmBNJK/blWyTyrUUMISurU="; }; - propagatedBuildInputs = [ - pyyaml - ]; + propagatedBuildInputs = [ pyyaml ]; nativeCheckInputs = [ hypothesis diff --git a/pkgs/development/python-modules/yamlordereddictloader/default.nix b/pkgs/development/python-modules/yamlordereddictloader/default.nix index a862386b0fc8..89f871e50be2 100644 --- a/pkgs/development/python-modules/yamlordereddictloader/default.nix +++ b/pkgs/development/python-modules/yamlordereddictloader/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pyyaml +{ + lib, + buildPythonPackage, + fetchPypi, + pyyaml, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/yanc/default.nix b/pkgs/development/python-modules/yanc/default.nix index 44ecf960c95e..30d0e302cd43 100644 --- a/pkgs/development/python-modules/yanc/default.nix +++ b/pkgs/development/python-modules/yanc/default.nix @@ -1,4 +1,10 @@ -{ lib, buildPythonPackage, pythonOlder, fetchPypi, nose }: +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + nose, +}: buildPythonPackage rec { pname = "yanc"; diff --git a/pkgs/development/python-modules/yangson/default.nix b/pkgs/development/python-modules/yangson/default.nix index aea6481b6c1a..80fa146f3d26 100644 --- a/pkgs/development/python-modules/yangson/default.nix +++ b/pkgs/development/python-modules/yangson/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, elementpath -, pyyaml -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + elementpath, + pyyaml, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,9 +21,7 @@ buildPythonPackage rec { hash = "sha256-c/UWyfJdVz6wSluL1Ej9cSV3EpDUTkP0GTeHPYfAduE="; }; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; dependencies = [ elementpath @@ -30,13 +29,9 @@ buildPythonPackage rec { setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "yangson" - ]; + pythonImportsCheck = [ "yangson" ]; meta = with lib; { description = "Library for working with data modelled in YANG"; diff --git a/pkgs/development/python-modules/yappi/default.nix b/pkgs/development/python-modules/yappi/default.nix index 7160245e8ec0..634914a18c30 100644 --- a/pkgs/development/python-modules/yappi/default.nix +++ b/pkgs/development/python-modules/yappi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gevent -, python -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gevent, + python, + pythonOlder, }: buildPythonPackage rec { @@ -20,21 +21,15 @@ buildPythonPackage rec { hash = "sha256-zA4apOGyrbjBOxUKBARiKmmM9rSVFVGWsDpOaItOoLU="; }; - patches = [ - ./tests.patch - ]; + patches = [ ./tests.patch ]; - nativeCheckInputs = [ - gevent - ]; + nativeCheckInputs = [ gevent ]; checkPhase = '' ${python.interpreter} run_tests.py ''; - pythonImportsCheck = [ - "yappi" - ]; + pythonImportsCheck = [ "yappi" ]; meta = with lib; { description = "Python profiler that supports multithreading and measuring CPU time"; diff --git a/pkgs/development/python-modules/yapsy/default.nix b/pkgs/development/python-modules/yapsy/default.nix index 044ce2cf8318..12ad6fc215f8 100644 --- a/pkgs/development/python-modules/yapsy/default.nix +++ b/pkgs/development/python-modules/yapsy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: buildPythonPackage { @@ -19,9 +20,7 @@ buildPythonPackage { sourceRoot = "source/package"; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; diff --git a/pkgs/development/python-modules/yara-python/default.nix b/pkgs/development/python-modules/yara-python/default.nix index c386e5a56511..ae1b88bec239 100644 --- a/pkgs/development/python-modules/yara-python/default.nix +++ b/pkgs/development/python-modules/yara-python/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, pytestCheckHook -, pythonOlder -, yara +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + pythonOlder, + yara, }: buildPythonPackage rec { @@ -28,29 +29,17 @@ buildPythonPackage rec { --replace "include_dirs=['yara/libyara/include', 'yara/libyara/', '.']" "libraries = ['yara']" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - buildInputs = [ - yara - ]; + buildInputs = [ yara ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - setupPyBuildFlags = [ - "--dynamic-linking" - ]; + setupPyBuildFlags = [ "--dynamic-linking" ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; - pythonImportsCheck = [ - "yara" - ]; + pythonImportsCheck = [ "yara" ]; meta = with lib; { description = "Python interface for YARA"; diff --git a/pkgs/development/python-modules/yaramod/default.nix b/pkgs/development/python-modules/yaramod/default.nix index 78920969bc95..63c4e14ba814 100644 --- a/pkgs/development/python-modules/yaramod/default.nix +++ b/pkgs/development/python-modules/yaramod/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, cmake -, fetchFromGitHub -, pytestCheckHook -, libxcrypt -, pythonOlder -, gtest -, pybind11 -, nlohmann_json +{ + lib, + buildPythonPackage, + cmake, + fetchFromGitHub, + pytestCheckHook, + libxcrypt, + pythonOlder, + gtest, + pybind11, + nlohmann_json, }: let @@ -18,61 +19,51 @@ let hash = "sha256-El4WA92t2O/L4wUqH6Xj8w+ANtb6liRwafDhqn8jxjQ="; }; in - buildPythonPackage rec { - pname = "yaramod"; - version = "3.21.0"; - format = "setuptools"; +buildPythonPackage rec { + pname = "yaramod"; + version = "3.21.0"; + format = "setuptools"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.7"; - src = fetchFromGitHub { - owner = "avast"; - repo = pname; - rev = "refs/tags/v${version}"; - hash = "sha256-YkMDoFwWPrDhAgDnPpNCU1NlnAPhwYQF/KFaRFn+juQ="; - }; + src = fetchFromGitHub { + owner = "avast"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-YkMDoFwWPrDhAgDnPpNCU1NlnAPhwYQF/KFaRFn+juQ="; + }; - postPatch = '' - rm -r deps/googletest deps/pog/ deps/pybind11/ deps/json/json.hpp - cp -r --no-preserve=all ${pog} deps/pog/ - cp -r --no-preserve=all ${nlohmann_json.src}/single_include/nlohmann/json.hpp deps/json/ - cp -r --no-preserve=all ${pybind11.src} deps/pybind11/ - cp -r --no-preserve=all ${gtest.src} deps/googletest/ - ''; + postPatch = '' + rm -r deps/googletest deps/pog/ deps/pybind11/ deps/json/json.hpp + cp -r --no-preserve=all ${pog} deps/pog/ + cp -r --no-preserve=all ${nlohmann_json.src}/single_include/nlohmann/json.hpp deps/json/ + cp -r --no-preserve=all ${pybind11.src} deps/pybind11/ + cp -r --no-preserve=all ${gtest.src} deps/googletest/ + ''; - dontUseCmakeConfigure = true; + dontUseCmakeConfigure = true; - buildInputs = [ - libxcrypt - ]; + buildInputs = [ libxcrypt ]; - nativeBuildInputs = [ - cmake - pog - gtest - ]; + nativeBuildInputs = [ + cmake + pog + gtest + ]; - setupPyBuildFlags = [ - "--with-unit-tests" - ]; + setupPyBuildFlags = [ "--with-unit-tests" ]; - checkInputs = [ - pytestCheckHook - ]; + checkInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "tests/" - ]; + pytestFlagsArray = [ "tests/" ]; - pythonImportsCheck = [ - "yaramod" - ]; + pythonImportsCheck = [ "yaramod" ]; - meta = with lib; { - description = "Parsing of YARA rules into AST and building new rulesets in C++"; - homepage = "https://github.com/avast/yaramod"; - changelog = "https://github.com/avast/yaramod/blob/v${version}/CHANGELOG.md"; - license = licenses.mit; - maintainers = with maintainers; [ msm ]; - }; - } + meta = with lib; { + description = "Parsing of YARA rules into AST and building new rulesets in C++"; + homepage = "https://github.com/avast/yaramod"; + changelog = "https://github.com/avast/yaramod/blob/v${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ msm ]; + }; +} diff --git a/pkgs/development/python-modules/yarg/default.nix b/pkgs/development/python-modules/yarg/default.nix index f6e08ecd05ac..d14001935a4a 100644 --- a/pkgs/development/python-modules/yarg/default.nix +++ b/pkgs/development/python-modules/yarg/default.nix @@ -1,4 +1,11 @@ -{ lib, buildPythonPackage, fetchFromGitHub, requests, nose, mock }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + nose, + mock, +}: buildPythonPackage rec { pname = "yarg"; @@ -14,7 +21,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ nose mock ]; + nativeCheckInputs = [ + nose + mock + ]; checkPhase = '' nosetests ''; diff --git a/pkgs/development/python-modules/yargy/default.nix b/pkgs/development/python-modules/yargy/default.nix index 73ba35f6c8b5..b4350676665f 100644 --- a/pkgs/development/python-modules/yargy/default.nix +++ b/pkgs/development/python-modules/yargy/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pymorphy2 -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pymorphy2, + pytestCheckHook, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/yark/default.nix b/pkgs/development/python-modules/yark/default.nix index cdcd1ab08afd..9196169d27de 100644 --- a/pkgs/development/python-modules/yark/default.nix +++ b/pkgs/development/python-modules/yark/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, click -, colorama -, fetchPypi -, flask -, poetry-core -, progress -, pythonOlder -, pythonRelaxDepsHook -, requests -, yt-dlp +{ + lib, + buildPythonPackage, + click, + colorama, + fetchPypi, + flask, + poetry-core, + progress, + pythonOlder, + pythonRelaxDepsHook, + requests, + yt-dlp, }: buildPythonPackage rec { @@ -47,9 +48,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "yark" - ]; + pythonImportsCheck = [ "yark" ]; meta = with lib; { description = "Module for YouTube archiving"; diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index a0c75cd23856..0fd0f0ae6898 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, cython -, expandvars -, setuptools -, idna -, multidict -, typing-extensions -, pytest-xdist -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + cython, + expandvars, + setuptools, + idna, + multidict, + typing-extensions, + pytest-xdist, + pytestCheckHook, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ idna multidict - ] ++ lib.optionals (pythonOlder "3.8") [ - typing-extensions - ]; + ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; preCheck = '' # don't import yarl from ./ so the C extension is available diff --git a/pkgs/development/python-modules/yasi/default.nix b/pkgs/development/python-modules/yasi/default.nix index dbcbfe1a5378..4e9ddb82f180 100644 --- a/pkgs/development/python-modules/yasi/default.nix +++ b/pkgs/development/python-modules/yasi/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, colorama -, fetchFromGitHub -, pytestCheckHook -, setuptools +{ + lib, + buildPythonPackage, + colorama, + fetchFromGitHub, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -18,17 +19,11 @@ buildPythonPackage rec { hash = "sha256-xKhVTmh/vrtBkatxtk8R4yqbGroH0I+xTKNYUpuikt4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - colorama - ]; + propagatedBuildInputs = [ colorama ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ diff --git a/pkgs/development/python-modules/yaspin/default.nix b/pkgs/development/python-modules/yaspin/default.nix index 0235c06ab149..e66d8fc3cd45 100644 --- a/pkgs/development/python-modules/yaspin/default.nix +++ b/pkgs/development/python-modules/yaspin/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytest-xdist -, pytestCheckHook -, pythonOlder -, termcolor +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-xdist, + pytestCheckHook, + pythonOlder, + termcolor, }: buildPythonPackage rec { @@ -22,13 +23,9 @@ buildPythonPackage rec { hash = "sha256-cYTCJyHZ9yNg6BfpZ+g3P0yMWFhYUxgYtlbANNgfohQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - termcolor - ]; + propagatedBuildInputs = [ termcolor ]; nativeCheckInputs = [ pytest-xdist @@ -40,9 +37,7 @@ buildPythonPackage rec { export FORCE_COLOR=1 ''; - pythonImportsCheck = [ - "yaspin" - ]; + pythonImportsCheck = [ "yaspin" ]; meta = with lib; { description = "Yet Another Terminal Spinner"; diff --git a/pkgs/development/python-modules/yaswfp/default.nix b/pkgs/development/python-modules/yaswfp/default.nix index 65542562df94..45be71807178 100644 --- a/pkgs/development/python-modules/yaswfp/default.nix +++ b/pkgs/development/python-modules/yaswfp/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { sha256 = "1dxdz89hlycy1rnn269fwl1f0qxgxqarkc0ivs2m77f8xba2qgj9"; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "yaswfp" ]; diff --git a/pkgs/development/python-modules/yattag/default.nix b/pkgs/development/python-modules/yattag/default.nix index c66f85cc1583..f5a87425a075 100644 --- a/pkgs/development/python-modules/yattag/default.nix +++ b/pkgs/development/python-modules/yattag/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, }: buildPythonPackage rec { @@ -16,9 +17,7 @@ buildPythonPackage rec { hash = "sha256-qtn1QL0i3FA+W1UGzEeFb6zwgapx/TX3JzcbY+HkAr8="; }; - pythonImportsCheck = [ - "yattag" - ]; + pythonImportsCheck = [ "yattag" ]; meta = with lib; { description = "Library to generate HTML or XML"; diff --git a/pkgs/development/python-modules/ydiff/default.nix b/pkgs/development/python-modules/ydiff/default.nix index fa91086ed5d5..db3bfceea9e4 100644 --- a/pkgs/development/python-modules/ydiff/default.nix +++ b/pkgs/development/python-modules/ydiff/default.nix @@ -1,5 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi, pygments -, gitMinimal, mercurial, subversion, patchutils, less +{ + lib, + buildPythonPackage, + fetchPypi, + pygments, + gitMinimal, + mercurial, + subversion, + patchutils, + less, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/yeelight/default.nix b/pkgs/development/python-modules/yeelight/default.nix index 12fb6ffccc72..cf9e8da676ec 100644 --- a/pkgs/development/python-modules/yeelight/default.nix +++ b/pkgs/development/python-modules/yeelight/default.nix @@ -1,12 +1,13 @@ -{ lib -, async-timeout -, buildPythonPackage -, fetchFromGitLab -, flit-core -, future -, ifaddr -, pytestCheckHook -, pythonOlder +{ + lib, + async-timeout, + buildPythonPackage, + fetchFromGitLab, + flit-core, + future, + ifaddr, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,21 +29,13 @@ buildPythonPackage rec { propagatedBuildInputs = [ future ifaddr - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "yeelight/tests.py" - ]; + pytestFlagsArray = [ "yeelight/tests.py" ]; - pythonImportsCheck = [ - "yeelight" - ]; + pythonImportsCheck = [ "yeelight" ]; meta = with lib; { description = "Python library for controlling YeeLight RGB bulbs"; diff --git a/pkgs/development/python-modules/youseedee/default.nix b/pkgs/development/python-modules/youseedee/default.nix index 3e04540dc577..a5f45c10cbb5 100644 --- a/pkgs/development/python-modules/youseedee/default.nix +++ b/pkgs/development/python-modules/youseedee/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, substituteAll -, filelock -, requests -, unicode-character-database +{ + lib, + buildPythonPackage, + fetchPypi, + substituteAll, + filelock, + requests, + unicode-character-database, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/youtokentome/default.nix b/pkgs/development/python-modules/youtokentome/default.nix index 0dfe0336c056..ad39637c12b1 100644 --- a/pkgs/development/python-modules/youtokentome/default.nix +++ b/pkgs/development/python-modules/youtokentome/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, click -, cython -, pytestCheckHook -, pythonOlder -, tabulate +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + click, + cython, + pytestCheckHook, + pythonOlder, + tabulate, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { tabulate ]; - pythonImportsCheck = [ - "youtokentome" - ]; + pythonImportsCheck = [ "youtokentome" ]; meta = with lib; { description = "Unsupervised text tokenizer"; diff --git a/pkgs/development/python-modules/youtube-search-python/default.nix b/pkgs/development/python-modules/youtube-search-python/default.nix index 60ec65467d61..b9eeabea51fe 100644 --- a/pkgs/development/python-modules/youtube-search-python/default.nix +++ b/pkgs/development/python-modules/youtube-search-python/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, httpx +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, + httpx, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-RWjR12ns1+tLuDZfBO7G42TF9w7sezdl9UPa67E1/PU="; }; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; - pythonImportsCheck = [ - "youtubesearchpython" - ]; + pythonImportsCheck = [ "youtubesearchpython" ]; # Project has no tests doCheck = false; diff --git a/pkgs/development/python-modules/youtube-search/default.nix b/pkgs/development/python-modules/youtube-search/default.nix index 215b9516c650..9b575729b34d 100644 --- a/pkgs/development/python-modules/youtube-search/default.nix +++ b/pkgs/development/python-modules/youtube-search/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-V0mm2Adv2mVVfJE2fw+rCTYpDs3qRXyDHJ8/BZGKOqI="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # Tests require network connection doCheck = false; - pythonImportsCheck = [ - "youtube_search" - ]; + pythonImportsCheck = [ "youtube_search" ]; meta = with lib; { description = "Tool for searching for youtube videos to avoid using their heavily rate-limited API"; diff --git a/pkgs/development/python-modules/youtube-transcript-api/default.nix b/pkgs/development/python-modules/youtube-transcript-api/default.nix index 526f7e761135..cd3fcea8540a 100644 --- a/pkgs/development/python-modules/youtube-transcript-api/default.nix +++ b/pkgs/development/python-modules/youtube-transcript-api/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, requests -, mock -, httpretty -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + requests, + mock, + httpretty, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -22,9 +23,7 @@ buildPythonPackage rec { hash = "sha256-xCB1XhXRq4jxyfst/n2wXj2k4dERm+/bVUJwP8b70gQ="; }; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; nativeCheckInputs = [ mock @@ -32,9 +31,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "youtube_transcript_api" - ]; + pythonImportsCheck = [ "youtube_transcript_api" ]; meta = with lib; { description = "Python API which allows you to get the transcripts/subtitles for a given YouTube video"; diff --git a/pkgs/development/python-modules/youtubeaio/default.nix b/pkgs/development/python-modules/youtubeaio/default.nix index 94056aca5bd3..82123108880f 100644 --- a/pkgs/development/python-modules/youtubeaio/default.nix +++ b/pkgs/development/python-modules/youtubeaio/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, poetry-core -, aiohttp -, pydantic -, yarl -, aresponses -, pytest-asyncio -, pytestCheckHook -, syrupy +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + poetry-core, + aiohttp, + pydantic, + yarl, + aresponses, + pytest-asyncio, + pytestCheckHook, + syrupy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { sed -i "/^addopts/d" pyproject.toml ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ aiohttp diff --git a/pkgs/development/python-modules/yowsup/default.nix b/pkgs/development/python-modules/yowsup/default.nix index a88a296944a5..0acf1adc235f 100644 --- a/pkgs/development/python-modules/yowsup/default.nix +++ b/pkgs/development/python-modules/yowsup/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, isPy3k -, fetchFromGitHub -, appdirs -, consonance -, protobuf -, python-axolotl -, six -, pyasyncore -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + isPy3k, + fetchFromGitHub, + appdirs, + consonance, + protobuf, + python-axolotl, + six, + pyasyncore, + pytestCheckHook, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { --replace "==" ">=" \ ''; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ appdirs @@ -44,10 +43,7 @@ buildPythonPackage rec { protobuf python-axolotl six - ] - ++ lib.optionals (!pythonOlder "3.12") [ - pyasyncore - ]; + ] ++ lib.optionals (!pythonOlder "3.12") [ pyasyncore ]; meta = with lib; { homepage = "https://github.com/tgalal/yowsup"; diff --git a/pkgs/development/python-modules/yoyo-migrations/default.nix b/pkgs/development/python-modules/yoyo-migrations/default.nix index 493d6a77b4c1..f0688fdc1e74 100644 --- a/pkgs/development/python-modules/yoyo-migrations/default.nix +++ b/pkgs/development/python-modules/yoyo-migrations/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, importlib-metadata -, setuptools -, sqlparse -, tabulate +{ + lib, + buildPythonPackage, + fetchPypi, + importlib-metadata, + setuptools, + sqlparse, + tabulate, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/ypy-websocket/default.nix b/pkgs/development/python-modules/ypy-websocket/default.nix index b1840800622f..06aa6fec33c5 100644 --- a/pkgs/development/python-modules/ypy-websocket/default.nix +++ b/pkgs/development/python-modules/ypy-websocket/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, hatchling -, aiosqlite -, anyio -, y-py -, pytest-asyncio -, pytestCheckHook -, pythonRelaxDepsHook -, uvicorn -, websockets +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + hatchling, + aiosqlite, + anyio, + y-py, + pytest-asyncio, + pytestCheckHook, + pythonRelaxDepsHook, + uvicorn, + websockets, }: buildPythonPackage rec { @@ -27,9 +28,7 @@ buildPythonPackage rec { hash = "sha256-48x+MUhev9dErC003XOP3oGKd5uOghlBFgcR8Nm/0xs="; }; - pythonRelaxDeps = [ - "aiofiles" - ]; + pythonRelaxDeps = [ "aiofiles" ]; nativeBuildInputs = [ hatchling @@ -42,9 +41,7 @@ buildPythonPackage rec { y-py ]; - pythonImportsCheck = [ - "ypy_websocket" - ]; + pythonImportsCheck = [ "ypy_websocket" ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/yq/default.nix b/pkgs/development/python-modules/yq/default.nix index febf3aad2fd1..dfc1ae08903e 100644 --- a/pkgs/development/python-modules/yq/default.nix +++ b/pkgs/development/python-modules/yq/default.nix @@ -1,14 +1,15 @@ -{ lib -, argcomplete -, buildPythonPackage -, fetchPypi -, jq -, pytestCheckHook -, pyyaml -, setuptools-scm -, substituteAll -, tomlkit -, xmltodict +{ + lib, + argcomplete, + buildPythonPackage, + fetchPypi, + jq, + pytestCheckHook, + pyyaml, + setuptools-scm, + substituteAll, + tomlkit, + xmltodict, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ argcomplete @@ -39,9 +38,7 @@ buildPythonPackage rec { xmltodict ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "test/test.py" ]; @@ -51,7 +48,10 @@ buildPythonPackage rec { description = "Command-line YAML/XML/TOML processor - jq wrapper for YAML, XML, TOML documents"; homepage = "https://github.com/kislyuk/yq"; license = licenses.asl20; - maintainers = with maintainers; [ womfoo SuperSandro2000 ]; + maintainers = with maintainers; [ + womfoo + SuperSandro2000 + ]; mainProgram = "yq"; }; } diff --git a/pkgs/development/python-modules/yte/default.nix b/pkgs/development/python-modules/yte/default.nix index 6b8bcfb95be1..a269cdd69176 100644 --- a/pkgs/development/python-modules/yte/default.nix +++ b/pkgs/development/python-modules/yte/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, dpath -, fetchFromGitHub -, plac -, poetry-core -, pytestCheckHook -, pythonOlder -, pyyaml +{ + lib, + buildPythonPackage, + dpath, + fetchFromGitHub, + plac, + poetry-core, + pytestCheckHook, + pythonOlder, + pyyaml, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-Rm3EKxRZCdYErkyWK9+fF2W7C+v5/MXD/LkehmB6UNQ="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ dpath @@ -33,17 +32,11 @@ buildPythonPackage rec { pyyaml ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "yte" - ]; + pythonImportsCheck = [ "yte" ]; - pytestFlagsArray = [ - "tests.py" - ]; + pytestFlagsArray = [ "tests.py" ]; preCheck = '' # The CLI test need yte on the PATH diff --git a/pkgs/development/python-modules/yubico-client/default.nix b/pkgs/development/python-modules/yubico-client/default.nix index 3dec1966fdf5..c32239120ba7 100644 --- a/pkgs/development/python-modules/yubico-client/default.nix +++ b/pkgs/development/python-modules/yubico-client/default.nix @@ -1,5 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi -, requests }: +{ + lib, + buildPythonPackage, + fetchPypi, + requests, +}: buildPythonPackage rec { pname = "yubico-client"; @@ -19,7 +23,7 @@ buildPythonPackage rec { meta = with lib; { description = "Verifying Yubico OTPs based on the validation protocol version 2.0"; homepage = "https://github.com/Kami/python-yubico-client/"; - maintainers= with maintainers; [ peterromfeldhk ]; + maintainers = with maintainers; [ peterromfeldhk ]; license = licenses.bsd3; }; } diff --git a/pkgs/development/python-modules/yubico/default.nix b/pkgs/development/python-modules/yubico/default.nix index 441b313be406..43f3a8994b66 100644 --- a/pkgs/development/python-modules/yubico/default.nix +++ b/pkgs/development/python-modules/yubico/default.nix @@ -1,4 +1,11 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, pytestCheckHook, pyusb }: +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pyusb, +}: buildPythonPackage rec { pname = "python-yubico"; @@ -20,8 +27,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python code to talk to YubiKeys"; - homepage = "https://github.com/Yubico/python-yubico"; - license = licenses.bsd2; + homepage = "https://github.com/Yubico/python-yubico"; + license = licenses.bsd2; maintainers = with maintainers; [ s1341 ]; }; } diff --git a/pkgs/development/python-modules/z3c-checkversions/default.nix b/pkgs/development/python-modules/z3c-checkversions/default.nix index 9f6a7ed4258e..4f17e183396b 100644 --- a/pkgs/development/python-modules/z3c-checkversions/default.nix +++ b/pkgs/development/python-modules/z3c-checkversions/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, python -, zc-buildout -, zope-testrunner +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + python, + zc-buildout, + zope-testrunner, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zadnegoale/default.nix b/pkgs/development/python-modules/zadnegoale/default.nix index 64feef272491..b93f86d56950 100644 --- a/pkgs/development/python-modules/zadnegoale/default.nix +++ b/pkgs/development/python-modules/zadnegoale/default.nix @@ -1,14 +1,15 @@ -{ lib -, aiohttp -, aioresponses -, buildPythonPackage -, fetchFromGitHub -, dacite -, orjson -, pytest-asyncio -, pytest-error-for-skips -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aioresponses, + buildPythonPackage, + fetchFromGitHub, + dacite, + orjson, + pytest-asyncio, + pytest-error-for-skips, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -38,9 +39,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "zadnegoale" - ]; + pythonImportsCheck = [ "zadnegoale" ]; meta = with lib; { description = "Python wrapper for getting allergen concentration data from Żadnego Ale servers"; diff --git a/pkgs/development/python-modules/zamg/default.nix b/pkgs/development/python-modules/zamg/default.nix index 770764dde09d..82e6d5bb0e91 100644 --- a/pkgs/development/python-modules/zamg/default.nix +++ b/pkgs/development/python-modules/zamg/default.nix @@ -1,10 +1,11 @@ -{ lib -, aiohttp -, aresponses -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder +{ + lib, + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, }: buildPythonPackage rec { @@ -26,20 +27,14 @@ buildPythonPackage rec { --replace " --cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - aiohttp - ]; + propagatedBuildInputs = [ aiohttp ]; # Module has no tests doCheck = false; - pythonImportsCheck = [ - "zamg" - ]; + pythonImportsCheck = [ "zamg" ]; meta = with lib; { description = "Library to read weather data from ZAMG Austria"; diff --git a/pkgs/development/python-modules/zarr/default.nix b/pkgs/development/python-modules/zarr/default.nix index 826a496445f6..c863b5e624d9 100644 --- a/pkgs/development/python-modules/zarr/default.nix +++ b/pkgs/development/python-modules/zarr/default.nix @@ -1,14 +1,15 @@ -{ lib -, asciitree -, buildPythonPackage -, fasteners -, fetchPypi -, numcodecs -, msgpack -, numpy -, pytestCheckHook -, pythonOlder -, setuptools-scm +{ + lib, + asciitree, + buildPythonPackage, + fasteners, + fetchPypi, + numcodecs, + msgpack, + numpy, + pytestCheckHook, + pythonOlder, + setuptools-scm, }: buildPythonPackage rec { @@ -23,9 +24,7 @@ buildPythonPackage rec { hash = "sha256-LLqmy040LUUVLUp6SyATwzf806jnvJglNWAYDeYFUs4="; }; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ asciitree @@ -34,13 +33,9 @@ buildPythonPackage rec { numcodecs ] ++ numcodecs.optional-dependencies.msgpack; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "zarr" - ]; + pythonImportsCheck = [ "zarr" ]; meta = with lib; { description = "An implementation of chunked, compressed, N-dimensional arrays for Python"; diff --git a/pkgs/development/python-modules/zbaemon/default.nix b/pkgs/development/python-modules/zbaemon/default.nix index 00f1c57abb03..dd9303bcf113 100644 --- a/pkgs/development/python-modules/zbaemon/default.nix +++ b/pkgs/development/python-modules/zbaemon/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zconfig +{ + lib, + buildPythonPackage, + fetchPypi, + zconfig, }: buildPythonPackage rec { @@ -24,5 +25,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zc-lockfile/default.nix b/pkgs/development/python-modules/zc-lockfile/default.nix index 8b7818ef119b..8cfd30c2e710 100644 --- a/pkgs/development/python-modules/zc-lockfile/default.nix +++ b/pkgs/development/python-modules/zc-lockfile/default.nix @@ -1,8 +1,9 @@ -{ buildPythonPackage -, fetchPypi -, mock -, zope-testing -, lib +{ + buildPythonPackage, + fetchPypi, + mock, + zope-testing, + lib, }: buildPythonPackage rec { @@ -20,7 +21,7 @@ buildPythonPackage rec { meta = with lib; { description = "Inter-process locks"; - homepage = "https://www.python.org/pypi/zc.lockfile"; + homepage = "https://www.python.org/pypi/zc.lockfile"; license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; diff --git a/pkgs/development/python-modules/zcbor/default.nix b/pkgs/development/python-modules/zcbor/default.nix index 0ac5f5323b64..fec625f5f0c4 100644 --- a/pkgs/development/python-modules/zcbor/default.nix +++ b/pkgs/development/python-modules/zcbor/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, -# build dependencies -, setuptools + # build dependencies + setuptools, -# dependencies -, cbor2 -, pyyaml -, regex + # dependencies + cbor2, + pyyaml, + regex, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-U3Y/r3tBhzK6bGnMxdqKzS7bLHyAzgpGZ5PVK9pw7Pk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ cbor2 diff --git a/pkgs/development/python-modules/zconfig/default.nix b/pkgs/development/python-modules/zconfig/default.nix index 8947badb91bf..3fc0d7946757 100644 --- a/pkgs/development/python-modules/zconfig/default.nix +++ b/pkgs/development/python-modules/zconfig/default.nix @@ -1,14 +1,15 @@ -{ lib -, stdenv -, buildPythonPackage -, docutils -, fetchPypi -, manuel -, pygments -, pytestCheckHook -, pythonOlder -, setuptools -, zope-testrunner +{ + lib, + stdenv, + buildPythonPackage, + docutils, + fetchPypi, + manuel, + pygments, + pytestCheckHook, + pythonOlder, + setuptools, + zope-testrunner, }: buildPythonPackage rec { @@ -26,31 +27,23 @@ buildPythonPackage rec { patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ docutils manuel ]; - propagatedBuildInputs = [ - zope-testrunner - ]; + propagatedBuildInputs = [ zope-testrunner ]; nativeCheckInputs = [ pygments pytestCheckHook ]; - pythonImportsCheck = [ - "ZConfig" - ]; + pythonImportsCheck = [ "ZConfig" ]; - pytestFlagsArray = [ - "-s" - ]; + pytestFlagsArray = [ "-s" ]; meta = with lib; { description = "Structured Configuration Library"; diff --git a/pkgs/development/python-modules/zcs/default.nix b/pkgs/development/python-modules/zcs/default.nix index 89ee7a239098..d6aaad9d8ab7 100644 --- a/pkgs/development/python-modules/zcs/default.nix +++ b/pkgs/development/python-modules/zcs/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, python -, yacs -, boxx -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + python, + yacs, + boxx, + pythonOlder, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-/QIyRQtxLDVW+vcQi5bL8rJ0o3+OhqGhQEALR1YO1pg="; }; - patches = [ - ./fix-test-yaml.patch - ]; + patches = [ ./fix-test-yaml.patch ]; - propagatedBuildInputs = [ - yacs - ]; + propagatedBuildInputs = [ yacs ]; - pythonImportsCheck = [ - "zcs" - ]; + pythonImportsCheck = [ "zcs" ]; - nativeCheckInputs = [ - boxx - ]; + nativeCheckInputs = [ boxx ]; checkPhase = '' ${python.interpreter} test/test_zcs.py diff --git a/pkgs/development/python-modules/zdaemon/default.nix b/pkgs/development/python-modules/zdaemon/default.nix index 4e72500da1dc..2ea52b048696 100644 --- a/pkgs/development/python-modules/zdaemon/default.nix +++ b/pkgs/development/python-modules/zdaemon/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, zconfig +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + zconfig, }: buildPythonPackage rec { @@ -17,16 +18,12 @@ buildPythonPackage rec { hash = "sha256-Iun+UFDq67ngPZrWTk9jzNheBMOP2zUc8RO+9vaNt6Q="; }; - propagatedBuildInputs = [ - zconfig - ]; + propagatedBuildInputs = [ zconfig ]; # too many deps.. doCheck = false; - pythonImportsCheck = [ - "zdaemon" - ]; + pythonImportsCheck = [ "zdaemon" ]; meta = with lib; { description = "A daemon process control library and tools for Unix-based systems"; diff --git a/pkgs/development/python-modules/zeep/default.nix b/pkgs/development/python-modules/zeep/default.nix index 75e23838c0a4..d5965d455f6e 100644 --- a/pkgs/development/python-modules/zeep/default.nix +++ b/pkgs/development/python-modules/zeep/default.nix @@ -1,27 +1,28 @@ -{ lib -, aiohttp -, aioresponses -, attrs -, buildPythonPackage -, defusedxml -, fetchFromGitHub -, freezegun -, httpx -, isodate -, lxml -, mock -, platformdirs -, pretend -, pytest-asyncio -, pytest-httpx -, pytestCheckHook -, pythonOlder -, pytz -, requests -, requests-toolbelt -, requests-file -, requests-mock -, xmlsec +{ + lib, + aiohttp, + aioresponses, + attrs, + buildPythonPackage, + defusedxml, + fetchFromGitHub, + freezegun, + httpx, + isodate, + lxml, + mock, + platformdirs, + pretend, + pytest-asyncio, + pytest-httpx, + pytestCheckHook, + pythonOlder, + pytz, + requests, + requests-toolbelt, + requests-file, + requests-mock, + xmlsec, }: buildPythonPackage rec { @@ -51,17 +52,11 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - async_require = [ - httpx - ]; - xmlsec_require = [ - xmlsec - ]; + async_require = [ httpx ]; + xmlsec_require = [ xmlsec ]; }; - pythonImportsCheck = [ - "zeep" - ]; + pythonImportsCheck = [ "zeep" ]; nativeCheckInputs = [ aiohttp @@ -73,8 +68,7 @@ buildPythonPackage rec { pytest-httpx pytestCheckHook requests-mock - ] - ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); disabledTests = [ # Failed: External connections not allowed during tests. diff --git a/pkgs/development/python-modules/zephyr-python-api/default.nix b/pkgs/development/python-modules/zephyr-python-api/default.nix index c91feacb7f6d..3e14819e5224 100644 --- a/pkgs/development/python-modules/zephyr-python-api/default.nix +++ b/pkgs/development/python-modules/zephyr-python-api/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + requests, + setuptools, }: buildPythonPackage rec { @@ -18,9 +19,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; # No tests in archive doCheck = false; diff --git a/pkgs/development/python-modules/zeroc-ice/default.nix b/pkgs/development/python-modules/zeroc-ice/default.nix index d68c90edd161..f9b62c46603f 100644 --- a/pkgs/development/python-modules/zeroc-ice/default.nix +++ b/pkgs/development/python-modules/zeroc-ice/default.nix @@ -1,10 +1,11 @@ -{ stdenv -, lib -, buildPythonPackage -, fetchPypi -, setuptools -, bzip2 -, openssl +{ + stdenv, + lib, + buildPythonPackage, + fetchPypi, + setuptools, + bzip2, + openssl, }: buildPythonPackage rec { @@ -17,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-Bwn2Y/Bbu6O89iaSNWvMpXBhyJRmj6eL8j6HiPpbQbM="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; buildInputs = [ bzip2 diff --git a/pkgs/development/python-modules/zeroconf/default.nix b/pkgs/development/python-modules/zeroconf/default.nix index bd00a51c3fa5..a611985ad855 100644 --- a/pkgs/development/python-modules/zeroconf/default.nix +++ b/pkgs/development/python-modules/zeroconf/default.nix @@ -1,15 +1,16 @@ -{ lib -, cython -, async-timeout -, buildPythonPackage -, fetchFromGitHub -, ifaddr -, poetry-core -, pytest-asyncio -, pytest-timeout -, pythonOlder -, pytestCheckHook -, setuptools +{ + lib, + cython, + async-timeout, + buildPythonPackage, + fetchFromGitHub, + ifaddr, + poetry-core, + pytest-asyncio, + pytest-timeout, + pythonOlder, + pytestCheckHook, + setuptools, }: buildPythonPackage rec { @@ -37,11 +38,7 @@ buildPythonPackage rec { setuptools ]; - dependencies = [ - ifaddr - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + dependencies = [ ifaddr ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/zerorpc/default.nix b/pkgs/development/python-modules/zerorpc/default.nix index 3734496531a1..591af2fe6953 100644 --- a/pkgs/development/python-modules/zerorpc/default.nix +++ b/pkgs/development/python-modules/zerorpc/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, future, gevent, msgpack, pyzmq }: +{ + lib, + buildPythonPackage, + fetchPypi, + future, + gevent, + msgpack, + pyzmq, +}: buildPythonPackage rec { pname = "zerorpc"; @@ -10,7 +18,12 @@ buildPythonPackage rec { sha256 = "d2ee247a566fc703f29c277d767f6f61f1e12f76d0402faea4bd815f32cbf37f"; }; - propagatedBuildInputs = [ future gevent msgpack pyzmq ]; + propagatedBuildInputs = [ + future + gevent + msgpack + pyzmq + ]; doCheck = false; # pypi version doesn't include tests diff --git a/pkgs/development/python-modules/zetup/default.nix b/pkgs/development/python-modules/zetup/default.nix index 4417134d4d17..5f46e398bbcb 100644 --- a/pkgs/development/python-modules/zetup/default.nix +++ b/pkgs/development/python-modules/zetup/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchPypi -, nbconvert -, path -, pytestCheckHook -, setuptools-scm -, pythonAtLeast +{ + lib, + buildPythonPackage, + fetchPypi, + nbconvert, + path, + pytestCheckHook, + setuptools-scm, + pythonAtLeast, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zeversolarlocal/default.nix b/pkgs/development/python-modules/zeversolarlocal/default.nix index b1e515d76320..58b756108a2f 100644 --- a/pkgs/development/python-modules/zeversolarlocal/default.nix +++ b/pkgs/development/python-modules/zeversolarlocal/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchPypi -, fetchpatch -, flit-core -, dos2unix -, httpx -, pytest-asyncio -, pytest-mock -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + fetchpatch, + flit-core, + dos2unix, + httpx, + pytest-asyncio, + pytest-mock, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -28,9 +29,7 @@ buildPythonPackage rec { dos2unix ]; - propagatedBuildInputs = [ - httpx - ]; + propagatedBuildInputs = [ httpx ]; nativeCheckInputs = [ pytest-asyncio @@ -62,9 +61,7 @@ buildPythonPackage rec { "test_httpx_timeout" ]; - pythonImportsCheck = [ - "zeversolarlocal" - ]; + pythonImportsCheck = [ "zeversolarlocal" ]; meta = with lib; { description = "Python module to interact with Zeversolar inverters"; diff --git a/pkgs/development/python-modules/zfec/default.nix b/pkgs/development/python-modules/zfec/default.nix index 1e135da34b3a..dd12475d893d 100644 --- a/pkgs/development/python-modules/zfec/default.nix +++ b/pkgs/development/python-modules/zfec/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hypothesis -, pyutil -, setuptools -, twisted +{ + lib, + buildPythonPackage, + fetchPypi, + hypothesis, + pyutil, + setuptools, + twisted, }: buildPythonPackage rec { @@ -17,13 +18,9 @@ buildPythonPackage rec { hash = "sha256-EGmFchj4ur5AhEOXEnIIA6Ef6RsU8gvHepak5vThER8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - pyutil - ]; + propagatedBuildInputs = [ pyutil ]; nativeCheckInputs = [ hypothesis @@ -34,9 +31,7 @@ buildPythonPackage rec { trial zfec ''; - pythonImportsCheck = [ - "zfec" - ]; + pythonImportsCheck = [ "zfec" ]; meta = with lib; { homepage = "https://github.com/tahoe-lafs/zfec"; @@ -52,5 +47,4 @@ buildPythonPackage rec { license = licenses.gpl2Plus; maintainers = with maintainers; [ prusnak ]; }; - } diff --git a/pkgs/development/python-modules/zha/default.nix b/pkgs/development/python-modules/zha/default.nix index 0987ddfab283..7958be28794c 100644 --- a/pkgs/development/python-modules/zha/default.nix +++ b/pkgs/development/python-modules/zha/default.nix @@ -1,27 +1,28 @@ -{ lib -, awesomeversion -, bellows -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pyserial-asyncio -, pyserial-asyncio-fast -, pytest-asyncio -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, python-slugify -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, universal-silabs-flasher -, wheel -, zha-quirks -, zigpy -, zigpy-deconz -, zigpy-xbee -, zigpy-zigate -, zigpy-znp +{ + lib, + awesomeversion, + bellows, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pyserial-asyncio, + pyserial-asyncio-fast, + pytest-asyncio, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + python-slugify, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + universal-silabs-flasher, + wheel, + zha-quirks, + zigpy, + zigpy-deconz, + zigpy-xbee, + zigpy-zigate, + zigpy-znp, }: buildPythonPackage rec { @@ -50,9 +51,7 @@ buildPythonPackage rec { "zha-quirks" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; build-system = [ setuptools @@ -82,9 +81,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "zha" - ]; + pythonImportsCheck = [ "zha" ]; disabledTests = [ # Tests are long-running and often keep hanging @@ -107,9 +104,7 @@ buildPythonPackage rec { "test_zha_group_light_entity" ]; - disabledTestPaths = [ - "tests/test_cluster_handlers.py" - ]; + disabledTestPaths = [ "tests/test_cluster_handlers.py" ]; pytestFlagsArray = [ "-v" diff --git a/pkgs/development/python-modules/ziafont/default.nix b/pkgs/development/python-modules/ziafont/default.nix index d50e5fdefe17..8f4f9f876991 100644 --- a/pkgs/development/python-modules/ziafont/default.nix +++ b/pkgs/development/python-modules/ziafont/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, pytestCheckHook -, nbval +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + pytestCheckHook, + nbval, }: buildPythonPackage rec { @@ -21,16 +22,14 @@ buildPythonPackage rec { hash = "sha256-C+dC+mNquDuj6RfJpiEbeuGZOIXcgSrTB4XM21reBPs="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook nbval ]; - preCheck = "rm test/manyfonts.ipynb"; # Tries to download fonts + preCheck = "rm test/manyfonts.ipynb"; # Tries to download fonts pytestFlagsArray = [ "--nbval-lax" ]; diff --git a/pkgs/development/python-modules/ziamath/default.nix b/pkgs/development/python-modules/ziamath/default.nix index 592e486edce1..ac2cd8610929 100644 --- a/pkgs/development/python-modules/ziamath/default.nix +++ b/pkgs/development/python-modules/ziamath/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, ziafont -, pytestCheckHook -, nbval -, latex2mathml +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + ziafont, + pytestCheckHook, + nbval, + latex2mathml, }: buildPythonPackage rec { @@ -23,13 +24,9 @@ buildPythonPackage rec { hash = "sha256-Drssi+YySh4OhVYAOvgIwzeeu5dQbUUXuhwTedhUUt8="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - ziafont - ]; + dependencies = [ ziafont ]; nativeCheckInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/zict/default.nix b/pkgs/development/python-modules/zict/default.nix index 4bd3e7692283..057d1e0f4ad1 100644 --- a/pkgs/development/python-modules/zict/default.nix +++ b/pkgs/development/python-modules/zict/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pytest-asyncio -, pytest-repeat -, pytest-timeout -, pythonOlder -, setuptools +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pytest-asyncio, + pytest-repeat, + pytest-timeout, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-4yHiY7apeq/AeQw8+zwEZWtwZuZzjDf//MqV2APJ+6U="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytest-asyncio diff --git a/pkgs/development/python-modules/zigpy-cc/default.nix b/pkgs/development/python-modules/zigpy-cc/default.nix index 505e152f087b..7cd3ea92489c 100644 --- a/pkgs/development/python-modules/zigpy-cc/default.nix +++ b/pkgs/development/python-modules/zigpy-cc/default.nix @@ -1,13 +1,14 @@ -{ lib -, asynctest -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pyserial-asyncio -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, zigpy +{ + lib, + asynctest, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pyserial-asyncio, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + zigpy, }: buildPythonPackage rec { @@ -48,9 +49,7 @@ buildPythonPackage rec { "tests/test_application.py " ]; - pythonImportsCheck = [ - "zigpy_cc" - ]; + pythonImportsCheck = [ "zigpy_cc" ]; meta = with lib; { description = "Library which communicates with Texas Instruments CC2531 radios for zigpy"; diff --git a/pkgs/development/python-modules/zigpy-deconz/default.nix b/pkgs/development/python-modules/zigpy-deconz/default.nix index 930fcf0a7d2b..9ea32dde5b7d 100644 --- a/pkgs/development/python-modules/zigpy-deconz/default.nix +++ b/pkgs/development/python-modules/zigpy-deconz/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pyserial-asyncio -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, zigpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pyserial-asyncio, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + zigpy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace 'dynamic = ["version"]' 'version = "${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyserial @@ -45,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "zigpy_deconz" - ]; + pythonImportsCheck = [ "zigpy_deconz" ]; meta = with lib; { description = "Library which communicates with Deconz radios for zigpy"; diff --git a/pkgs/development/python-modules/zigpy-xbee/default.nix b/pkgs/development/python-modules/zigpy-xbee/default.nix index 848f253243cf..fad394ac2662 100644 --- a/pkgs/development/python-modules/zigpy-xbee/default.nix +++ b/pkgs/development/python-modules/zigpy-xbee/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pyserial -, pyserial-asyncio -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, zigpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyserial, + pyserial-asyncio, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + zigpy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { --replace 'dynamic = ["version"]' 'version = "${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ pyserial diff --git a/pkgs/development/python-modules/zigpy-zigate/default.nix b/pkgs/development/python-modules/zigpy-zigate/default.nix index 0c11c6ed5c3d..1684d18ff10e 100644 --- a/pkgs/development/python-modules/zigpy-zigate/default.nix +++ b/pkgs/development/python-modules/zigpy-zigate/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, gpiozero -, mock -, pyserial -, pyserial-asyncio -, pyusb -, pytest-asyncio -, pytestCheckHook -, pythonOlder -, setuptools -, zigpy +{ + lib, + buildPythonPackage, + fetchFromGitHub, + gpiozero, + mock, + pyserial, + pyserial-asyncio, + pyusb, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, + zigpy, }: buildPythonPackage rec { @@ -33,9 +34,7 @@ buildPythonPackage rec { --replace 'dynamic = ["version"]' 'version = "${version}"' ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ gpiozero @@ -51,9 +50,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "zigpy_zigate" - ]; + pythonImportsCheck = [ "zigpy_zigate" ]; disabledTestPaths = [ # Fails in sandbox diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix index 8bc40b8a5566..1df9053e08c5 100644 --- a/pkgs/development/python-modules/zigpy-znp/default.nix +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -1,19 +1,20 @@ -{ lib -, async-timeout -, buildPythonPackage -, coloredlogs -, fetchFromGitHub -, jsonschema -, pytest-asyncio -, pytest-mock -, pytest-rerunfailures -, pytest-timeout -, pytest-xdist -, pytestCheckHook -, pythonOlder -, setuptools -, voluptuous -, zigpy +{ + lib, + async-timeout, + buildPythonPackage, + coloredlogs, + fetchFromGitHub, + jsonschema, + pytest-asyncio, + pytest-mock, + pytest-rerunfailures, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + pythonOlder, + setuptools, + voluptuous, + zigpy, }: buildPythonPackage rec { @@ -30,9 +31,7 @@ buildPythonPackage rec { hash = "sha256-Bs/m9Iyr8x+sMUVXt1whk2E4EJ5bpitMsEWZtmCyIf8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; postPatch = '' substituteInPlace pyproject.toml \ @@ -58,9 +57,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--reruns=3" - ]; + pytestFlagsArray = [ "--reruns=3" ]; disabledTests = [ # failing since zigpy 0.60.0 @@ -73,9 +70,7 @@ buildPythonPackage rec { "test_zigpy_request_failure" ]; - pythonImportsCheck = [ - "zigpy_znp" - ]; + pythonImportsCheck = [ "zigpy_znp" ]; meta = with lib; { description = "Library for zigpy which communicates with TI ZNP radios"; diff --git a/pkgs/development/python-modules/zigpy/default.nix b/pkgs/development/python-modules/zigpy/default.nix index a52549728bb6..5e70e78e4dc2 100644 --- a/pkgs/development/python-modules/zigpy/default.nix +++ b/pkgs/development/python-modules/zigpy/default.nix @@ -1,26 +1,27 @@ -{ lib -, stdenv -, aiohttp -, aioresponses -, aiosqlite -, async-timeout -, attrs -, buildPythonPackage -, crccheck -, cryptography -, fetchFromGitHub -, freezegun -, importlib-resources -, jsonschema -, pycryptodome -, pyserial-asyncio -, pytest-asyncio -, pytest-timeout -, pytestCheckHook -, pythonOlder -, setuptools -, typing-extensions -, voluptuous +{ + lib, + stdenv, + aiohttp, + aioresponses, + aiosqlite, + async-timeout, + attrs, + buildPythonPackage, + crccheck, + cryptography, + fetchFromGitHub, + freezegun, + importlib-resources, + jsonschema, + pycryptodome, + pyserial-asyncio, + pytest-asyncio, + pytest-timeout, + pytestCheckHook, + pythonOlder, + setuptools, + typing-extensions, + voluptuous, }: buildPythonPackage rec { @@ -43,26 +44,23 @@ buildPythonPackage rec { --replace-fail 'dynamic = ["version"]' 'version = "${version}"' ''; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - attrs - aiohttp - aiosqlite - crccheck - cryptography - jsonschema - pyserial-asyncio - typing-extensions - pycryptodome - voluptuous - ] ++ lib.optionals (pythonOlder "3.9") [ - importlib-resources - ] ++ lib.optionals (pythonOlder "3.11") [ - async-timeout - ]; + dependencies = + [ + attrs + aiohttp + aiosqlite + crccheck + cryptography + jsonschema + pyserial-asyncio + typing-extensions + pycryptodome + voluptuous + ] + ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ] + ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ aioresponses @@ -75,9 +73,7 @@ buildPythonPackage rec { disabledTests = [ # assert quirked.quirk_metadata.quirk_location.endswith("zigpy/tests/test_quirks_v2.py]-line:104") is False "test_quirks_v2" - ] ++ lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ - "test_periodic_scan_priority" - ]; + ] ++ lib.optionals (stdenv.isLinux && stdenv.isx86_64) [ "test_periodic_scan_priority" ]; disabledTestPaths = [ # Tests require network access diff --git a/pkgs/development/python-modules/zimports/default.nix b/pkgs/development/python-modules/zimports/default.nix index 22cd50c9189e..f5d50241a881 100644 --- a/pkgs/development/python-modules/zimports/default.nix +++ b/pkgs/development/python-modules/zimports/default.nix @@ -1,13 +1,14 @@ -{ lib -, fetchFromGitHub -, buildPythonPackage -, flake8-import-order -, pyflakes -, tomli -, setuptools -, pytestCheckHook -, pythonAtLeast -, pythonOlder +{ + lib, + fetchFromGitHub, + buildPythonPackage, + flake8-import-order, + pyflakes, + tomli, + setuptools, + pytestCheckHook, + pythonAtLeast, + pythonOlder, }: buildPythonPackage rec { @@ -32,13 +33,9 @@ buildPythonPackage rec { tomli ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "zimports" - ]; + pythonImportsCheck = [ "zimports" ]; meta = with lib; { description = "Python import rewriter"; diff --git a/pkgs/development/python-modules/zipfile2/default.nix b/pkgs/development/python-modules/zipfile2/default.nix index 304696ae117a..e16a0cc6b25b 100644 --- a/pkgs/development/python-modules/zipfile2/default.nix +++ b/pkgs/development/python-modules/zipfile2/default.nix @@ -1,6 +1,7 @@ -{ buildPythonPackage -, fetchFromGitHub -, lib +{ + buildPythonPackage, + fetchFromGitHub, + lib, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zipp/default.nix b/pkgs/development/python-modules/zipp/default.nix index 9ddbd4b43313..9a8729f7515d 100644 --- a/pkgs/development/python-modules/zipp/default.nix +++ b/pkgs/development/python-modules/zipp/default.nix @@ -1,48 +1,50 @@ -{ lib -, buildPythonPackage -, fetchPypi -, func-timeout -, jaraco-itertools -, pythonOlder -, setuptools-scm +{ + lib, + buildPythonPackage, + fetchPypi, + func-timeout, + jaraco-itertools, + pythonOlder, + setuptools-scm, }: -let zipp = buildPythonPackage rec { - pname = "zipp"; - version = "3.18.1"; - format = "pyproject"; +let + zipp = buildPythonPackage rec { + pname = "zipp"; + version = "3.18.1"; + format = "pyproject"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-KITtIufYlh3hyaBRQutpokfxICkbwCBqAKdkLwm1txU="; + src = fetchPypi { + inherit pname version; + hash = "sha256-KITtIufYlh3hyaBRQutpokfxICkbwCBqAKdkLwm1txU="; + }; + + nativeBuildInputs = [ setuptools-scm ]; + + # Prevent infinite recursion with pytest + doCheck = false; + + nativeCheckInputs = [ + func-timeout + jaraco-itertools + ]; + + pythonImportsCheck = [ "zipp" ]; + + passthru.tests = { + check = zipp.overridePythonAttrs (_: { + doCheck = true; + }); + }; + + meta = with lib; { + description = "Pathlib-compatible object wrapper for zip files"; + homepage = "https://github.com/jaraco/zipp"; + license = licenses.mit; + maintainers = with maintainers; [ ]; + }; }; - - nativeBuildInputs = [ - setuptools-scm - ]; - - # Prevent infinite recursion with pytest - doCheck = false; - - nativeCheckInputs = [ - func-timeout - jaraco-itertools - ]; - - pythonImportsCheck = [ - "zipp" - ]; - - passthru.tests = { - check = zipp.overridePythonAttrs (_: { doCheck = true; }); - }; - - meta = with lib; { - description = "Pathlib-compatible object wrapper for zip files"; - homepage = "https://github.com/jaraco/zipp"; - license = licenses.mit; - maintainers = with maintainers; [ ]; - }; -}; in zipp +in +zipp diff --git a/pkgs/development/python-modules/zipstream-ng/default.nix b/pkgs/development/python-modules/zipstream-ng/default.nix index d4972f70e450..b8f054c27840 100644 --- a/pkgs/development/python-modules/zipstream-ng/default.nix +++ b/pkgs/development/python-modules/zipstream-ng/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -19,13 +20,9 @@ buildPythonPackage rec { hash = "sha256-BYQse+DlyLUH9CofRfGrPUZjP7E8AP/wpirvJmSRfow="; }; - pythonImportsCheck = [ - "zipstream" - ]; + pythonImportsCheck = [ "zipstream" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Library to generate streamable zip files"; diff --git a/pkgs/development/python-modules/zipstream/default.nix b/pkgs/development/python-modules/zipstream/default.nix index bedc0b62267e..b48d65cf576a 100644 --- a/pkgs/development/python-modules/zipstream/default.nix +++ b/pkgs/development/python-modules/zipstream/default.nix @@ -1,4 +1,9 @@ -{ lib, buildPythonPackage, fetchPypi, nose }: +{ + lib, + buildPythonPackage, + fetchPypi, + nose, +}: buildPythonPackage rec { pname = "zipstream"; diff --git a/pkgs/development/python-modules/zlib-ng/default.nix b/pkgs/development/python-modules/zlib-ng/default.nix index 71f2c0b768ae..cf75f9fd51eb 100644 --- a/pkgs/development/python-modules/zlib-ng/default.nix +++ b/pkgs/development/python-modules/zlib-ng/default.nix @@ -1,16 +1,17 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub +{ + lib, + buildPythonPackage, + fetchFromGitHub, -# build-system -, cmake -, setuptools + # build-system + cmake, + setuptools, -# native dependencies -, zlib-ng + # native dependencies + zlib-ng, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { @@ -34,17 +35,11 @@ buildPythonPackage rec { env.PYTHON_ZLIB_NG_LINK_DYNAMIC = true; - buildInputs = [ - zlib-ng - ]; + buildInputs = [ zlib-ng ]; - pythonImportsCheck = [ - "zlib_ng" - ]; + pythonImportsCheck = [ "zlib_ng" ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' rm -rf src diff --git a/pkgs/development/python-modules/zm-py/default.nix b/pkgs/development/python-modules/zm-py/default.nix index ddd5b72b929d..e1605701d388 100644 --- a/pkgs/development/python-modules/zm-py/default.nix +++ b/pkgs/development/python-modules/zm-py/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, requests +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + requests, }: buildPythonPackage rec { @@ -21,21 +22,13 @@ buildPythonPackage rec { hash = "sha256-n9FRX2Pnn96H0HVT4SHLJgONc0XzQ005itMNpvl9IYg="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = [ - requests - ]; + propagatedBuildInputs = [ requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "zoneminder" - ]; + pythonImportsCheck = [ "zoneminder" ]; meta = with lib; { description = "A loose python wrapper around the ZoneMinder REST API"; diff --git a/pkgs/development/python-modules/zodb/default.nix b/pkgs/development/python-modules/zodb/default.nix index 2ac592db4223..d14b0e1565cd 100644 --- a/pkgs/development/python-modules/zodb/default.nix +++ b/pkgs/development/python-modules/zodb/default.nix @@ -1,17 +1,18 @@ -{ lib -, fetchPypi -, buildPythonPackage -, python -, zope-testrunner -, transaction -, six -, zope-interface -, zodbpickle -, zconfig -, persistent -, zc-lockfile -, btrees -, manuel +{ + lib, + fetchPypi, + buildPythonPackage, + python, + zope-testrunner, + transaction, + six, + zope-interface, + zodbpickle, + zconfig, + persistent, + zc-lockfile, + btrees, + manuel, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zodbpickle/default.nix b/pkgs/development/python-modules/zodbpickle/default.nix index 6fd93b922621..08ba3dc21ba8 100644 --- a/pkgs/development/python-modules/zodbpickle/default.nix +++ b/pkgs/development/python-modules/zodbpickle/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchPypi +{ + lib, + buildPythonPackage, + pythonOlder, + fetchPypi, }: buildPythonPackage rec { @@ -19,9 +20,7 @@ buildPythonPackage rec { # fails.. doCheck = false; - pythonImportsCheck = [ - "zodbpickle" - ]; + pythonImportsCheck = [ "zodbpickle" ]; meta = with lib; { description = "Fork of Python's pickle module to work with ZODB"; diff --git a/pkgs/development/python-modules/zope-cachedescriptors/default.nix b/pkgs/development/python-modules/zope-cachedescriptors/default.nix index e6aa92cd357b..73aef8961525 100644 --- a/pkgs/development/python-modules/zope-cachedescriptors/default.nix +++ b/pkgs/development/python-modules/zope-cachedescriptors/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,17 +18,11 @@ buildPythonPackage rec { hash = "sha256-MVe+hm/Jck0Heotb9sP8IcOKQUerZk5yRiLf5fr/BIo="; }; - propagatedBuildInputs = [ - setuptools - ]; + propagatedBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "src/zope/cachedescriptors/tests.py" - ]; + pytestFlagsArray = [ "src/zope/cachedescriptors/tests.py" ]; pythonImportsCheck = [ "zope.cachedescriptors" ]; diff --git a/pkgs/development/python-modules/zope-component/default.nix b/pkgs/development/python-modules/zope-component/default.nix index eaa5bf84ea69..ffe2dc672cb7 100644 --- a/pkgs/development/python-modules/zope-component/default.nix +++ b/pkgs/development/python-modules/zope-component/default.nix @@ -1,13 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-configuration -, zope-deferredimport -, zope-deprecation -, zope-event -, zope-hookable -, zope-i18nmessageid -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + zope-configuration, + zope-deferredimport, + zope-deprecation, + zope-event, + zope-hookable, + zope-i18nmessageid, + zope-interface, }: buildPythonPackage rec { @@ -34,9 +35,7 @@ buildPythonPackage rec { # ignore tests because of a circular dependency on zope-security doCheck = false; - pythonImportsCheck = [ - "zope.component" - ]; + pythonImportsCheck = [ "zope.component" ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.component"; @@ -45,5 +44,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-configuration/default.nix b/pkgs/development/python-modules/zope-configuration/default.nix index 6a664daaf026..1717a45e7143 100644 --- a/pkgs/development/python-modules/zope-configuration/default.nix +++ b/pkgs/development/python-modules/zope-configuration/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, zope-i18nmessageid -, zope-interface -, zope-schema -, pytestCheckHook -, zope-testing -, zope-testrunner -, manuel +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + zope-i18nmessageid, + zope-interface, + zope-schema, + pytestCheckHook, + zope-testing, + zope-testrunner, + manuel, }: buildPythonPackage rec { @@ -25,9 +26,7 @@ buildPythonPackage rec { hash = "sha256-81h36tXpmANjhdLdxGkZ6ryZjmmcBZh5ZPFxrY3ZJxs="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ manuel @@ -45,13 +44,9 @@ buildPythonPackage rec { # Need to investigate how to run the tests with zope-testrunner doCheck = false; - pythonImportsCheck = [ - "zope.configuration" - ]; + pythonImportsCheck = [ "zope.configuration" ]; - pythonNamespaces = [ - "zope" - ]; + pythonNamespaces = [ "zope" ]; meta = with lib; { description = "Zope Configuration Markup Language (ZCML)"; diff --git a/pkgs/development/python-modules/zope-contenttype/default.nix b/pkgs/development/python-modules/zope-contenttype/default.nix index d979ff9e78f5..4e0aeb935056 100644 --- a/pkgs/development/python-modules/zope-contenttype/default.nix +++ b/pkgs/development/python-modules/zope-contenttype/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, zope-testrunner -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + zope-testrunner, + pytestCheckHook, }: buildPythonPackage rec { @@ -20,18 +21,14 @@ buildPythonPackage rec { hash = "sha256-AAHvG2XKZQUZBW3OUwxY0LOWlXzPBQIyPIoVSdtk0xc="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook zope-testrunner ]; - pythonImportsCheck = [ - "zope.contenttype" - ]; + pythonImportsCheck = [ "zope.contenttype" ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.contenttype"; diff --git a/pkgs/development/python-modules/zope-copy/default.nix b/pkgs/development/python-modules/zope-copy/default.nix index d5571b6417ef..daa93782014d 100644 --- a/pkgs/development/python-modules/zope-copy/default.nix +++ b/pkgs/development/python-modules/zope-copy/default.nix @@ -1,14 +1,14 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPy27 -, zope-interface -, zope-location -, zope-schema -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + isPy27, + zope-interface, + zope-location, + zope-schema, + unittestCheckHook, }: - buildPythonPackage rec { pname = "zope.copy"; version = "4.3"; @@ -21,9 +21,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ zope-interface ]; doCheck = !isPy27; # namespace conflicts - nativeCheckInputs = [ unittestCheckHook zope-location zope-schema ]; + nativeCheckInputs = [ + unittestCheckHook + zope-location + zope-schema + ]; - unittestFlagsArray = [ "-s" "src/zope/copy" ]; + unittestFlagsArray = [ + "-s" + "src/zope/copy" + ]; meta = { maintainers = with lib.maintainers; [ domenkozar ]; diff --git a/pkgs/development/python-modules/zope-deferredimport/default.nix b/pkgs/development/python-modules/zope-deferredimport/default.nix index 367131b400ec..352fefbcd373 100644 --- a/pkgs/development/python-modules/zope-deferredimport/default.nix +++ b/pkgs/development/python-modules/zope-deferredimport/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-proxy -, zope-testrunner +{ + lib, + buildPythonPackage, + fetchPypi, + zope-proxy, + zope-testrunner, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zope-deprecation/default.nix b/pkgs/development/python-modules/zope-deprecation/default.nix index 4a0437e2b2f4..3abbff8e18cd 100644 --- a/pkgs/development/python-modules/zope-deprecation/default.nix +++ b/pkgs/development/python-modules/zope-deprecation/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,21 +20,13 @@ buildPythonPackage rec { hash = "sha256-t8MtM5IDayFFxAsxA+cyLbaGYqsJtyZ6/hUyqdk/ZA8="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "src/zope/deprecation/tests.py" - ]; + pytestFlagsArray = [ "src/zope/deprecation/tests.py" ]; - pythonImportsCheck = [ - "zope.deprecation" - ]; + pythonImportsCheck = [ "zope.deprecation" ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.deprecation"; @@ -42,5 +35,4 @@ buildPythonPackage rec { license = licenses.zpl21; maintainers = with maintainers; [ domenkozar ]; }; - } diff --git a/pkgs/development/python-modules/zope-dottedname/default.nix b/pkgs/development/python-modules/zope-dottedname/default.nix index 895b00231aea..44b1749d791f 100644 --- a/pkgs/development/python-modules/zope-dottedname/default.nix +++ b/pkgs/development/python-modules/zope-dottedname/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -19,25 +20,15 @@ buildPythonPackage rec { hash = "sha256-28S4W/vzSx74jasWJSrG7xbZBDnyIjstCiYs9Bnq6QI="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "src/zope/dottedname/tests.py" - ]; + pytestFlagsArray = [ "src/zope/dottedname/tests.py" ]; - pythonImportsCheck = [ - "zope.dottedname" - ]; + pythonImportsCheck = [ "zope.dottedname" ]; - pythonNamespaces = [ - "zope" - ]; + pythonNamespaces = [ "zope" ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.dottedname"; diff --git a/pkgs/development/python-modules/zope-event/default.nix b/pkgs/development/python-modules/zope-event/default.nix index 93cfc749c923..b0f2d02c56f9 100644 --- a/pkgs/development/python-modules/zope-event/default.nix +++ b/pkgs/development/python-modules/zope-event/default.nix @@ -1,6 +1,7 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, }: buildPythonPackage rec { @@ -18,5 +19,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-exceptions/default.nix b/pkgs/development/python-modules/zope-exceptions/default.nix index ae38402c9736..9952c56d7522 100644 --- a/pkgs/development/python-modules/zope-exceptions/default.nix +++ b/pkgs/development/python-modules/zope-exceptions/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + zope-interface, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-MPxT5TOfX72dEzXg97afd/FePwbisXt/t++SXMJP3ZY="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ zope-interface ]; # circular deps doCheck = false; - pythonImportsCheck = [ - "zope.exceptions" - ]; + pythonImportsCheck = [ "zope.exceptions" ]; meta = with lib; { description = "Exception interfaces and implementations"; @@ -39,5 +36,4 @@ buildPythonPackage rec { license = licenses.zpl21; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-filerepresentation/default.nix b/pkgs/development/python-modules/zope-filerepresentation/default.nix index 960b4a9e881e..b9f394f03d2f 100644 --- a/pkgs/development/python-modules/zope-filerepresentation/default.nix +++ b/pkgs/development/python-modules/zope-filerepresentation/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-schema -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + zope-schema, + zope-interface, }: buildPythonPackage rec { @@ -14,7 +15,10 @@ buildPythonPackage rec { hash = "sha256-yza3iGspJ2+C8WhfPykfQjXmac2HhdFHQtRl0Trvaqs="; }; - propagatedBuildInputs = [ zope-interface zope-schema ]; + propagatedBuildInputs = [ + zope-interface + zope-schema + ]; checkPhase = '' cd src/zope/filerepresentation && python -m unittest @@ -26,5 +30,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-hookable/default.nix b/pkgs/development/python-modules/zope-hookable/default.nix index 8ee46c58943f..8af1d3d0b752 100644 --- a/pkgs/development/python-modules/zope-hookable/default.nix +++ b/pkgs/development/python-modules/zope-hookable/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, zope-testing +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + zope-testing, }: buildPythonPackage rec { @@ -16,13 +17,9 @@ buildPythonPackage rec { hash = "sha256-FmiZPUCnz9yGeEPdVyWSnn+DpbDBlccJrx2u+CdPQ8s="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - nativeCheckInputs = [ - zope-testing - ]; + nativeCheckInputs = [ zope-testing ]; meta = with lib; { description = "Supports the efficient creation of “hookable” objects"; diff --git a/pkgs/development/python-modules/zope-i18nmessageid/default.nix b/pkgs/development/python-modules/zope-i18nmessageid/default.nix index 0b0ef641d329..df703e2c3b15 100644 --- a/pkgs/development/python-modules/zope-i18nmessageid/default.nix +++ b/pkgs/development/python-modules/zope-i18nmessageid/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-testrunner -, unittestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + zope-testrunner, + unittestCheckHook, }: buildPythonPackage rec { @@ -21,13 +22,9 @@ buildPythonPackage rec { zope-testrunner ]; - unittestFlagsArray = [ - "src/zope/i18nmessageid" - ]; + unittestFlagsArray = [ "src/zope/i18nmessageid" ]; - pythonImportsCheck = [ - "zope.i18nmessageid" - ]; + pythonImportsCheck = [ "zope.i18nmessageid" ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.i18nmessageid"; diff --git a/pkgs/development/python-modules/zope-interface/default.nix b/pkgs/development/python-modules/zope-interface/default.nix index f834301a464e..3cc208094d26 100644 --- a/pkgs/development/python-modules/zope-interface/default.nix +++ b/pkgs/development/python-modules/zope-interface/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-event +{ + lib, + buildPythonPackage, + fetchPypi, + zope-event, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zope-lifecycleevent/default.nix b/pkgs/development/python-modules/zope-lifecycleevent/default.nix index 1b94583ce9d8..d54a9225dc8c 100644 --- a/pkgs/development/python-modules/zope-lifecycleevent/default.nix +++ b/pkgs/development/python-modules/zope-lifecycleevent/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, zope-event -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + zope-event, + zope-interface, }: buildPythonPackage rec { @@ -20,11 +21,12 @@ buildPythonPackage rec { hash = "sha256-6tP7SW52FPm1adFtrUt4BSsKwhh1utjWbKNQNS2bb50="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ zope-event zope-interface ]; + propagatedBuildInputs = [ + zope-event + zope-interface + ]; # namespace colides with local directory doCheck = false; diff --git a/pkgs/development/python-modules/zope-location/default.nix b/pkgs/development/python-modules/zope-location/default.nix index caefe5799b0e..3b47baea5b19 100644 --- a/pkgs/development/python-modules/zope-location/default.nix +++ b/pkgs/development/python-modules/zope-location/default.nix @@ -1,7 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-proxy +{ + lib, + buildPythonPackage, + fetchPypi, + zope-proxy, }: buildPythonPackage rec { @@ -28,5 +29,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-proxy/default.nix b/pkgs/development/python-modules/zope-proxy/default.nix index 6084a86f65ae..cb5717d8abef 100644 --- a/pkgs/development/python-modules/zope-proxy/default.nix +++ b/pkgs/development/python-modules/zope-proxy/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonOlder -, setuptools -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + zope-interface, }: buildPythonPackage rec { @@ -19,18 +20,14 @@ buildPythonPackage rec { hash = "sha256-93fVbCqy/PQNAmraHmfx45z2MY497rmhzVCH/MsfKG4="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ zope-interface ]; # circular deps doCheck = false; - pythonImportsCheck = [ - "zope.proxy" - ]; + pythonImportsCheck = [ "zope.proxy" ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.proxy"; diff --git a/pkgs/development/python-modules/zope-schema/default.nix b/pkgs/development/python-modules/zope-schema/default.nix index 6fde974b6205..197022900efd 100644 --- a/pkgs/development/python-modules/zope-schema/default.nix +++ b/pkgs/development/python-modules/zope-schema/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-location -, zope-event -, zope-interface -, zope-testing +{ + lib, + buildPythonPackage, + fetchPypi, + zope-location, + zope-event, + zope-interface, + zope-testing, }: buildPythonPackage rec { @@ -16,7 +17,12 @@ buildPythonPackage rec { hash = "sha256-6tTbywM1TU5BDJo7kERR60TZAlR1Gxy97fSmGu3p+7k="; }; - propagatedBuildInputs = [ zope-location zope-event zope-interface zope-testing ]; + propagatedBuildInputs = [ + zope-location + zope-event + zope-interface + zope-testing + ]; # ImportError: No module named 'zope.event' # even though zope-event has been included. @@ -29,5 +35,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-size/default.nix b/pkgs/development/python-modules/zope-size/default.nix index a6ef2a588550..33838d51cc73 100644 --- a/pkgs/development/python-modules/zope-size/default.nix +++ b/pkgs/development/python-modules/zope-size/default.nix @@ -1,8 +1,9 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-i18nmessageid -, zope-interface +{ + lib, + buildPythonPackage, + fetchPypi, + zope-i18nmessageid, + zope-interface, }: buildPythonPackage rec { @@ -14,7 +15,10 @@ buildPythonPackage rec { hash = "sha256-sVRT40+Bb/VFmtg82TUCmqWBxqRTRj4DxeLZe9IKQyo="; }; - propagatedBuildInputs = [ zope-i18nmessageid zope-interface ]; + propagatedBuildInputs = [ + zope-i18nmessageid + zope-interface + ]; meta = with lib; { homepage = "https://github.com/zopefoundation/zope.size"; @@ -22,5 +26,4 @@ buildPythonPackage rec { license = licenses.zpl20; maintainers = with maintainers; [ goibhniu ]; }; - } diff --git a/pkgs/development/python-modules/zope-testbrowser/default.nix b/pkgs/development/python-modules/zope-testbrowser/default.nix index 732c367de577..f2a9e692b083 100644 --- a/pkgs/development/python-modules/zope-testbrowser/default.nix +++ b/pkgs/development/python-modules/zope-testbrowser/default.nix @@ -1,20 +1,21 @@ -{ lib -, buildPythonPackage -, fetchPypi -, setuptools -, zope-interface -, zope-schema -, zope-cachedescriptors -, pytz -, webtest -, beautifulsoup4 -, soupsieve -, wsgiproxy2 -, six -, mock -, zope-testing -, zope-testrunner -, python +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + zope-interface, + zope-schema, + zope-cachedescriptors, + pytz, + webtest, + beautifulsoup4, + soupsieve, + wsgiproxy2, + six, + mock, + zope-testing, + zope-testrunner, + python, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/zope-testing/default.nix b/pkgs/development/python-modules/zope-testing/default.nix index 65672118e4ef..c6b4f61ef707 100644 --- a/pkgs/development/python-modules/zope-testing/default.nix +++ b/pkgs/development/python-modules/zope-testing/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, isPyPy -, setuptools -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchPypi, + isPyPy, + setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -17,31 +18,21 @@ buildPythonPackage rec { hash = "sha256-6HzQ2NZmVzza8TOBare5vuyAGmSoZZXBnLX+mS7z1kk="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; doCheck = !isPyPy; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "src/zope/testing/tests.py" - ]; + pytestFlagsArray = [ "src/zope/testing/tests.py" ]; - pythonImportsCheck = [ - "zope.testing" - ]; + pythonImportsCheck = [ "zope.testing" ]; - pythonNamespaces = [ - "zope" - ]; + pythonNamespaces = [ "zope" ]; meta = with lib; { description = "Zope testing helpers"; - homepage = "https://github.com/zopefoundation/zope.testing"; + homepage = "https://github.com/zopefoundation/zope.testing"; changelog = "https://github.com/zopefoundation/zope.testing/blob/${version}/CHANGES.rst"; license = licenses.zpl21; maintainers = with maintainers; [ goibhniu ]; diff --git a/pkgs/development/python-modules/zope-testrunner/default.nix b/pkgs/development/python-modules/zope-testrunner/default.nix index aa06e7344233..5fc0813c9d41 100644 --- a/pkgs/development/python-modules/zope-testrunner/default.nix +++ b/pkgs/development/python-modules/zope-testrunner/default.nix @@ -1,13 +1,13 @@ -{ lib -, buildPythonPackage -, fetchPypi -, zope-interface -, zope-exceptions -, zope-testing -, six +{ + lib, + buildPythonPackage, + fetchPypi, + zope-interface, + zope-exceptions, + zope-testing, + six, }: - buildPythonPackage rec { pname = "zope.testrunner"; version = "6.4"; @@ -17,7 +17,12 @@ buildPythonPackage rec { hash = "sha256-C4Wfx01vK2xd2K353uTsdAX3PykOyrJXCsY2+DYSKMg="; }; - propagatedBuildInputs = [ zope-interface zope-exceptions zope-testing six ]; + propagatedBuildInputs = [ + zope-interface + zope-exceptions + zope-testing + six + ]; doCheck = false; # custom test modifies sys.path diff --git a/pkgs/development/python-modules/zopfli/default.nix b/pkgs/development/python-modules/zopfli/default.nix index c8ecd77730d8..f26eb8385a6e 100644 --- a/pkgs/development/python-modules/zopfli/default.nix +++ b/pkgs/development/python-modules/zopfli/default.nix @@ -1,4 +1,12 @@ -{ lib, buildPythonPackage, fetchPypi, pythonOlder, setuptools-scm, zopfli, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools-scm, + zopfli, + pytestCheckHook, +}: buildPythonPackage rec { pname = "zopfli"; diff --git a/pkgs/development/python-modules/zstandard/default.nix b/pkgs/development/python-modules/zstandard/default.nix index ae75db9f7b13..e76b19f95c41 100644 --- a/pkgs/development/python-modules/zstandard/default.nix +++ b/pkgs/development/python-modules/zstandard/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchPypi -, cffi -, hypothesis -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + cffi, + hypothesis, + pythonOlder, }: buildPythonPackage rec { @@ -18,21 +19,13 @@ buildPythonPackage rec { hash = "sha256-giajPFQry1TNa9CjZgZ7YQtBcTtkyavsG8RTPWn1HnA="; }; - propagatedNativeBuildInputs = [ - cffi - ]; + propagatedNativeBuildInputs = [ cffi ]; - propagatedBuildInputs = [ - cffi - ]; + propagatedBuildInputs = [ cffi ]; - nativeCheckInputs = [ - hypothesis - ]; + nativeCheckInputs = [ hypothesis ]; - pythonImportsCheck = [ - "zstandard" - ]; + pythonImportsCheck = [ "zstandard" ]; meta = with lib; { description = "zstandard bindings for Python"; diff --git a/pkgs/development/python-modules/zstd/default.nix b/pkgs/development/python-modules/zstd/default.nix index 368d246d9dc6..b4a335efca11 100644 --- a/pkgs/development/python-modules/zstd/default.nix +++ b/pkgs/development/python-modules/zstd/default.nix @@ -1,10 +1,11 @@ -{ lib -, pkg-config -, fetchPypi -, buildPythonPackage -, buildPackages -, zstd -, pytest +{ + lib, + pkg-config, + fetchPypi, + buildPythonPackage, + buildPackages, + zstd, + pytest, }: buildPythonPackage rec { @@ -46,8 +47,6 @@ buildPythonPackage rec { description = "Simple python bindings to Yann Collet ZSTD compression library"; homepage = "https://github.com/sergey-dryabzhinsky/python-zstd"; license = licenses.bsd2; - maintainers = with maintainers; [ - eadwu - ]; + maintainers = with maintainers; [ eadwu ]; }; } diff --git a/pkgs/development/python-modules/zulip/default.nix b/pkgs/development/python-modules/zulip/default.nix index 81b068e23212..9f623b01c8c6 100644 --- a/pkgs/development/python-modules/zulip/default.nix +++ b/pkgs/development/python-modules/zulip/default.nix @@ -1,15 +1,16 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, setuptools -, requests -, matrix-client -, distro -, click -, typing-extensions -, matrix-nio -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + requests, + matrix-client, + distro, + click, + typing-extensions, + matrix-nio, + pytestCheckHook, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { }; sourceRoot = "${src.name}/zulip"; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ requests diff --git a/pkgs/development/python-modules/zwave-me-ws/default.nix b/pkgs/development/python-modules/zwave-me-ws/default.nix index 152beb51c326..db7803c4ed16 100644 --- a/pkgs/development/python-modules/zwave-me-ws/default.nix +++ b/pkgs/development/python-modules/zwave-me-ws/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, poetry-core -, pythonOlder -, requests -, websocket-client +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pythonOlder, + requests, + websocket-client, }: buildPythonPackage rec { @@ -21,9 +22,7 @@ buildPythonPackage rec { hash = "sha256-bTchtgr+UbHCpcXMaQA3bTrhasJ79TguvAqLNlpD/2c="; }; - nativeBuildInputs = [ - poetry-core - ]; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ requests @@ -33,9 +32,7 @@ buildPythonPackage rec { # Module has no tests doCheck = false; - pythonImportsCheck = [ - "zwave_me_ws" - ]; + pythonImportsCheck = [ "zwave_me_ws" ]; meta = with lib; { description = "Library to connect to a ZWave-Me instance"; diff --git a/pkgs/development/python-modules/zxcvbn/default.nix b/pkgs/development/python-modules/zxcvbn/default.nix index 34f51ab5b766..7ce1af48a906 100644 --- a/pkgs/development/python-modules/zxcvbn/default.nix +++ b/pkgs/development/python-modules/zxcvbn/default.nix @@ -1,7 +1,9 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pytestCheckHook }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, +}: buildPythonPackage rec { pname = "zxcvbn"; @@ -16,9 +18,7 @@ buildPythonPackage rec { hash = "sha256-etcST7pxlpOH5Q9KtOPGf1vmnkyjEp6Cd5QCmBjW9Hc="; }; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; meta = with lib; { description = "Python implementation of Dropbox's realistic password strength estimator"; diff --git a/pkgs/development/python-modules/zxing-cpp/default.nix b/pkgs/development/python-modules/zxing-cpp/default.nix index dbdc4c50effd..511a939cf6fb 100644 --- a/pkgs/development/python-modules/zxing-cpp/default.nix +++ b/pkgs/development/python-modules/zxing-cpp/default.nix @@ -1,12 +1,13 @@ -{ lib -, buildPythonPackage -, cmake -, setuptools-scm -, numpy -, pillow -, pybind11 -, libzxing-cpp -, pytestCheckHook +{ + lib, + buildPythonPackage, + cmake, + setuptools-scm, + numpy, + pillow, + pybind11, + libzxing-cpp, + pytestCheckHook, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { dontUseCmakeConfigure = true; - propagatedBuildInputs = [ - numpy - ]; + propagatedBuildInputs = [ numpy ]; - buildInputs = [ - pybind11 - ]; + buildInputs = [ pybind11 ]; nativeBuildInputs = [ cmake @@ -43,11 +40,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "test.py" - ]; + pytestFlagsArray = [ "test.py" ]; - pythonImportsCheck = [ - "zxingcpp" - ]; + pythonImportsCheck = [ "zxingcpp" ]; }