python3Packages: format with nixfmt

This commit is contained in:
Martin Weinelt
2024-05-22 16:01:06 +02:00
parent 691216eca3
commit 59b1aef590
6796 changed files with 97594 additions and 98381 deletions

View File

@@ -1,7 +1,8 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, pytest fetchPypi,
pytest,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, asgiref fetchPypi,
, httpx asgiref,
, pdm-backend httpx,
, pytest-asyncio pdm-backend,
, pytestCheckHook pytest-asyncio,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -18,9 +19,7 @@ buildPythonPackage rec {
hash = "sha256-UOgaxVqmCfosZm5CuswlxCTIiEzmBy8afpAhFLfuXWM="; hash = "sha256-UOgaxVqmCfosZm5CuswlxCTIiEzmBy8afpAhFLfuXWM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ pdm-backend ];
pdm-backend
];
nativeCheckInputs = [ nativeCheckInputs = [
asgiref asgiref

View File

@@ -1,9 +1,10 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, six fetchPypi,
, pynose six,
, setuptools pynose,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -16,21 +17,13 @@ buildPythonPackage rec {
hash = "sha256-p3MorFXbtXNdqZRBhwJRvv4TX2h6twenoXhWE2OydwQ="; hash = "sha256-p3MorFXbtXNdqZRBhwJRvv4TX2h6twenoXhWE2OydwQ=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [ six ];
six
];
nativeCheckInputs = [ nativeCheckInputs = [ pynose ];
pynose
];
pythonImportsCheck = [ pythonImportsCheck = [ "aadict" ];
"aadict"
];
meta = with lib; { meta = with lib; {
description = "An auto-attribute dict (and a couple of other useful dict functions)"; description = "An auto-attribute dict (and a couple of other useful dict functions)";

View File

@@ -1,4 +1,9 @@
{ lib, buildPythonPackage, fetchPypi, pillow }: {
lib,
buildPythonPackage,
fetchPypi,
pillow,
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aafigure"; pname = "aafigure";

View File

@@ -1,25 +1,26 @@
{ lib {
, stdenv lib,
, arc4 stdenv,
, asn1crypto arc4,
, asn1tools asn1crypto,
, asyauth asn1tools,
, asysocks asyauth,
, buildPythonPackage asysocks,
, cargo buildPythonPackage,
, colorama cargo,
, fetchFromGitHub colorama,
, iconv fetchFromGitHub,
, minikerberos iconv,
, pillow minikerberos,
, pyperclip pillow,
, pythonOlder pyperclip,
, rustPlatform pythonOlder,
, rustc rustPlatform,
, setuptools-rust rustc,
, tqdm setuptools-rust,
, unicrypto tqdm,
, winsspi unicrypto,
winsspi,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -65,16 +66,12 @@ buildPythonPackage rec {
tqdm tqdm
unicrypto unicrypto
winsspi winsspi
] ++ lib.optionals (stdenv.isDarwin) [ ] ++ lib.optionals (stdenv.isDarwin) [ iconv ];
iconv
];
# Module doesn't have tests # Module doesn't have tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aardwolf" ];
"aardwolf"
];
meta = with lib; { meta = with lib; {
description = "Asynchronous RDP protocol implementation"; description = "Asynchronous RDP protocol implementation";

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, ply fetchPypi,
, roman ply,
, uqbar roman,
, pythonOlder uqbar,
, pytestCheckHook pythonOlder,
, lilypond pytestCheckHook,
lilypond,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -27,13 +28,9 @@ buildPythonPackage rec {
uqbar uqbar
]; ];
buildInputs = [ buildInputs = [ lilypond ];
lilypond
];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
postPatch = '' postPatch = ''
substituteInPlace abjad/io.py \ substituteInPlace abjad/io.py \

View File

@@ -1,6 +1,7 @@
{ lib {
, fetchPypi lib,
, buildPythonPackage fetchPypi,
buildPythonPackage,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -19,9 +20,7 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "about_time" ];
"about_time"
];
meta = with lib; { meta = with lib; {
description = "A cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions"; description = "A cool helper for tracking time and throughput of code blocks, with beautiful human friendly renditions";

View File

@@ -1,8 +1,9 @@
{ buildPythonPackage {
, lib buildPythonPackage,
, fetchPypi lib,
, setuptools fetchPypi,
, six setuptools,
six,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -15,13 +16,9 @@ buildPythonPackage rec {
hash = "sha256-eCB5DvuzFnOc3otOGTVyQ/w2CKFSAkKIUT3ZaNfZWf8="; hash = "sha256-eCB5DvuzFnOc3otOGTVyQ/w2CKFSAkKIUT3ZaNfZWf8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [ six ];
six
];
# checks use bazel; should be revisited # checks use bazel; should be revisited
doCheck = false; doCheck = false;

View File

@@ -1,23 +1,24 @@
{ stdenv {
, lib stdenv,
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pythonAtLeast fetchFromGitHub,
, pythonOlder pythonAtLeast,
, llvmPackages pythonOlder,
, pytest7CheckHook llvmPackages,
, setuptools pytest7CheckHook,
, numpy setuptools,
, packaging numpy,
, psutil packaging,
, pyyaml psutil,
, safetensors pyyaml,
, torch safetensors,
, config torch,
, cudatoolkit config,
, evaluate cudatoolkit,
, parameterized evaluate,
, transformers parameterized,
transformers,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -34,9 +35,7 @@ buildPythonPackage rec {
hash = "sha256-E20pI5BrcTrMYrhriuOUl5/liSaQQy6eqRyCoauwb9Q="; hash = "sha256-E20pI5BrcTrMYrhriuOUl5/liSaQQy6eqRyCoauwb9Q=";
}; };
buildInputs = [ buildInputs = [ llvmPackages.openmp ];
llvmPackages.openmp
];
build-system = [ setuptools ]; build-system = [ setuptools ];
@@ -55,14 +54,17 @@ buildPythonPackage rec {
pytest7CheckHook pytest7CheckHook
transformers transformers
]; ];
preCheck = '' preCheck =
''
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
export PATH=$out/bin:$PATH export PATH=$out/bin:$PATH
'' + lib.optionalString config.cudaSupport '' ''
+ lib.optionalString config.cudaSupport ''
export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas" export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas"
''; '';
pytestFlagsArray = [ "tests" ]; pytestFlagsArray = [ "tests" ];
disabledTests = [ disabledTests =
[
# try to download data: # try to download data:
"FeatureExamplesTests" "FeatureExamplesTests"
"test_infer_auto_device_map_on_t0pp" "test_infer_auto_device_map_on_t0pp"
@@ -82,19 +84,23 @@ buildPythonPackage rec {
# set the environment variable, CC, which conflicts with standard environment # set the environment variable, CC, which conflicts with standard environment
"test_patch_environment_key_exists" "test_patch_environment_key_exists"
] ++ lib.optionals (pythonAtLeast "3.12") [ ]
++ lib.optionals (pythonAtLeast "3.12") [
# RuntimeError: Dynamo is not supported on Python 3.12+ # RuntimeError: Dynamo is not supported on Python 3.12+
"test_convert_to_fp32" "test_convert_to_fp32"
"test_send_to_device_compiles" "test_send_to_device_compiles"
] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ ]
++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [
# usual aarch64-linux RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly # usual aarch64-linux RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly
"CheckpointTest" "CheckpointTest"
# TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' (it seems cpuinfo doesn't work here) # TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' (it seems cpuinfo doesn't work here)
"test_mpi_multicpu_config_cmd" "test_mpi_multicpu_config_cmd"
] ++ lib.optionals (!config.cudaSupport) [ ]
++ lib.optionals (!config.cudaSupport) [
# requires ptxas from cudatoolkit, which is unfree # requires ptxas from cudatoolkit, which is unfree
"test_dynamo_extract_model" "test_dynamo_extract_model"
] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ ]
++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [
# RuntimeError: torch_shm_manager: execl failed: Permission denied # RuntimeError: torch_shm_manager: execl failed: Permission denied
"CheckpointTest" "CheckpointTest"
]; ];
@@ -107,9 +113,7 @@ buildPythonPackage rec {
"tests/test_scheduler.py" "tests/test_scheduler.py"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "accelerate" ];
"accelerate"
];
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;

View File

@@ -1,9 +1,10 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, pythonOlder fetchPypi,
, setuptools pythonOlder,
, pygments setuptools,
pygments,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -18,13 +19,9 @@ buildPythonPackage rec {
hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4="; hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [ pygments ];
pygments
];
# Tests only execute pygments with these styles # Tests only execute pygments with these styles
doCheck = false; doCheck = false;

View File

@@ -1,19 +1,20 @@
{ lib {
, stdenv lib,
, buildPythonPackage stdenv,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
, setuptools pythonOlder,
, mpmath setuptools,
, numpy mpmath,
, pybind11 numpy,
, pyfma pybind11,
, eigen pyfma,
, importlib-metadata eigen,
, pytestCheckHook importlib-metadata,
, matplotlib pytestCheckHook,
, dufte matplotlib,
, perfplot dufte,
perfplot,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -35,9 +36,7 @@ buildPythonPackage rec {
pybind11 pybind11
]; ];
buildInputs = [ buildInputs = [ eigen ];
eigen
];
dependencies = [ dependencies = [
mpmath mpmath
@@ -73,7 +72,10 @@ buildPythonPackage rec {
done done
''; '';
disabledTests = [ "test_speed_comparison1" "test_speed_comparison2" ]; disabledTests = [
"test_speed_comparison1"
"test_speed_comparison2"
];
pythonImportsCheck = [ "accupy" ]; pythonImportsCheck = [ "accupy" ];

View File

@@ -1,10 +1,11 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, setuptools-scm fetchPypi,
, fusepy setuptools-scm,
, fuse fusepy,
, openssl fuse,
openssl,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -25,7 +26,10 @@ buildPythonPackage rec {
buildInputs = [ setuptools-scm ]; buildInputs = [ setuptools-scm ];
nativeCheckInputs = [ fusepy fuse ]; nativeCheckInputs = [
fusepy
fuse
];
doCheck = false; # seems to hang, not sure doCheck = false; # seems to hang, not sure

View File

@@ -1,16 +1,17 @@
{ buildPythonPackage {
, certbot buildPythonPackage,
, cryptography certbot,
, pyasn1 cryptography,
, pyopenssl pyasn1,
, pyrfc3339 pyopenssl,
, josepy pyrfc3339,
, pytz josepy,
, requests pytz,
, requests-toolbelt requests,
, six requests-toolbelt,
, werkzeug six,
, ndg-httpsclient werkzeug,
ndg-httpsclient,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,8 +21,17 @@ buildPythonPackage rec {
format = "setuptools"; format = "setuptools";
propagatedBuildInputs = [ propagatedBuildInputs = [
cryptography pyasn1 pyopenssl pyrfc3339 pytz requests requests-toolbelt six cryptography
werkzeug ndg-httpsclient josepy pyasn1
pyopenssl
pyrfc3339
pytz
requests
requests-toolbelt
six
werkzeug
ndg-httpsclient
josepy
]; ];
# does not contain any tests # does not contain any tests

View File

@@ -1,14 +1,15 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, flit-core fetchFromGitHub,
, matplotlib flit-core,
, numpy matplotlib,
, pandas numpy,
, pytestCheckHook pandas,
, pythonOlder pytestCheckHook,
, scipy pythonOlder,
, tabulate scipy,
tabulate,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -35,9 +36,7 @@ buildPythonPackage rec {
tabulate tabulate
]; ];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
preCheck = '' preCheck = ''
export HOME=$TMPDIR export HOME=$TMPDIR
@@ -45,9 +44,7 @@ buildPythonPackage rec {
echo "backend: ps" > $HOME/.matplotlib/matplotlibrc echo "backend: ps" > $HOME/.matplotlib/matplotlibrc
''; '';
pytestFlagsArray = [ pytestFlagsArray = [ "-Wignore::DeprecationWarning" ];
"-Wignore::DeprecationWarning"
];
pythonImportsCheck = [ "acoustics" ]; pythonImportsCheck = [ "acoustics" ];

View File

@@ -1,18 +1,19 @@
{ lib {
, buildPythonPackage lib,
, defusedxml buildPythonPackage,
, dissect-cstruct defusedxml,
, dissect-target dissect-cstruct,
, fetchFromGitHub dissect-target,
, minio fetchFromGitHub,
, pycryptodome minio,
, pytestCheckHook pycryptodome,
, pythonOlder pytestCheckHook,
, requests pythonOlder,
, requests-toolbelt requests,
, rich requests-toolbelt,
, setuptools rich,
, setuptools-scm setuptools,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -51,13 +52,9 @@ buildPythonPackage rec {
] ++ dissect-target.optional-dependencies.full; ] ++ dissect-target.optional-dependencies.full;
}; };
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ] ++ passthru.optional-dependencies.full;
pytestCheckHook
] ++ passthru.optional-dependencies.full;
pythonImportsCheck = [ pythonImportsCheck = [ "acquire" ];
"acquire"
];
meta = with lib; { meta = with lib; {
description = "Tool to quickly gather forensic artifacts from disk images or a live system"; description = "Tool to quickly gather forensic artifacts from disk images or a live system";

View File

@@ -1,11 +1,12 @@
{ lib {
, blockdiag lib,
, buildPythonPackage blockdiag,
, fetchFromGitHub buildPythonPackage,
, pynose fetchFromGitHub,
, pytestCheckHook pynose,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -22,22 +23,16 @@ buildPythonPackage rec {
hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o="; hash = "sha256-WmprkHOgvlsOIg8H77P7fzEqxGnj6xaL7Df7urRkg3o=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [ blockdiag ];
blockdiag
];
nativeCheckInputs = [ nativeCheckInputs = [
pynose pynose
pytestCheckHook pytestCheckHook
]; ];
pytestFlagsArray = [ pytestFlagsArray = [ "src/actdiag/tests/" ];
"src/actdiag/tests/"
];
disabledTests = [ disabledTests = [
# AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches' # AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
@@ -45,9 +40,7 @@ buildPythonPackage rec {
"noviewbox" "noviewbox"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "actdiag" ];
"actdiag"
];
meta = with lib; { meta = with lib; {
description = "Generate activity-diagram image from spec-text file (similar to Graphviz)"; description = "Generate activity-diagram image from spec-text file (similar to Graphviz)";

View File

@@ -1,9 +1,10 @@
{ lib {
, aiofiles lib,
, buildPythonPackage aiofiles,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
, requests pythonOlder,
requests,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -29,9 +30,7 @@ buildPythonPackage rec {
# Module has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "acunetix" ];
"acunetix"
];
meta = with lib; { meta = with lib; {
description = "Acunetix Web Vulnerability Scanner SDK for Python"; description = "Acunetix Web Vulnerability Scanner SDK for Python";

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, paho-mqtt fetchFromGitHub,
, pytestCheckHook paho-mqtt,
, pythonOlder pytestCheckHook,
, requests pythonOlder,
, setuptools-scm requests,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -22,22 +23,16 @@ buildPythonPackage rec {
hash = "sha256-JBpF08WGe1pMK1y7HZLH/jSQkJtbWdiTGYHWRd39UIk="; hash = "sha256-JBpF08WGe1pMK1y7HZLH/jSQkJtbWdiTGYHWRd39UIk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools-scm ];
setuptools-scm
];
propagatedBuildInputs = [ propagatedBuildInputs = [
paho-mqtt paho-mqtt
requests requests
]; ];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [ "Adafruit_IO" ];
"Adafruit_IO"
];
disabledTestPaths = [ disabledTestPaths = [
# Tests requires valid credentials # Tests requires valid credentials

View File

@@ -1,8 +1,9 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, pythonOlder fetchPypi,
, setuptools-scm pythonOlder,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -18,16 +19,12 @@ buildPythonPackage rec {
hash = "sha256-xM+7NlcxlC0fEJKhFvR9/a4K7xjFsn8QcrWCStXqjHw="; hash = "sha256-xM+7NlcxlC0fEJKhFvR9/a4K7xjFsn8QcrWCStXqjHw=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools-scm ];
setuptools-scm
];
# Physical SMBus is not present # Physical SMBus is not present
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "Adafruit_PureIO" ];
"Adafruit_PureIO"
];
meta = with lib; { meta = with lib; {
description = "Python interface to Linux IO including I2C and SPI"; description = "Python interface to Linux IO including I2C and SPI";

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, httpretty fetchFromGitHub,
, pyjwt httpretty,
, pytestCheckHook pyjwt,
, python-dateutil pytestCheckHook,
, requests python-dateutil,
, setuptools requests,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -25,9 +26,7 @@ buildPythonPackage rec {
sed -i '/cryptography/d' setup.py sed -i '/cryptography/d' setup.py
''; '';
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [
pyjwt pyjwt
@@ -45,9 +44,7 @@ buildPythonPackage rec {
"test_failed_request" "test_failed_request"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "adal" ];
"adal"
];
meta = with lib; { meta = with lib; {
description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources"; description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources";

View File

@@ -1,10 +1,11 @@
{ lib {
, aiohttp lib,
, bleak aiohttp,
, buildPythonPackage bleak,
, fetchFromGitHub buildPythonPackage,
, async-timeout fetchFromGitHub,
, pythonOlder async-timeout,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -30,9 +31,7 @@ buildPythonPackage rec {
# Module has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "adax_local" ];
"adax_local"
];
meta = with lib; { meta = with lib; {
description = "Module for local access to Adax"; description = "Module for local access to Adax";

View File

@@ -1,9 +1,10 @@
{ lib {
, aiohttp lib,
, async-timeout aiohttp,
, buildPythonPackage async-timeout,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,9 +29,7 @@ buildPythonPackage rec {
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "adax" ];
"adax"
];
meta = with lib; { meta = with lib; {
description = "Python module to communicate with Adax"; description = "Python module to communicate with Adax";

View File

@@ -1,10 +1,11 @@
{ lib {
, buildPythonPackage lib,
, docopt buildPythonPackage,
, fetchFromGitHub docopt,
, jdk11 fetchFromGitHub,
, psutil jdk11,
, pythonOlder psutil,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -34,9 +35,7 @@ buildPythonPackage rec {
# Disable tests because they require a dedicated Android emulator # Disable tests because they require a dedicated Android emulator
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "adbe" ];
"adbe"
];
meta = with lib; { meta = with lib; {
description = "Tool for Android testing and development"; description = "Tool for Android testing and development";

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, libusb1 fetchFromGitHub,
, rsa libusb1,
, pycryptodome rsa,
, pytest pycryptodome,
, mock pytest,
mock,
}: }:
buildPythonPackage { buildPythonPackage {
pname = "adb-homeassistant"; pname = "adb-homeassistant";
@@ -18,7 +19,6 @@ buildPythonPackage {
repo = "python-adb"; repo = "python-adb";
rev = "5949bf432307cbba7128e84d7bc6add7f054a078"; rev = "5949bf432307cbba7128e84d7bc6add7f054a078";
sha256 = "0s3fazvbzchn1fsvjrd1jl8w9y4dvvgq6q8m8p5lr2gri0npr581"; sha256 = "0s3fazvbzchn1fsvjrd1jl8w9y4dvvgq6q8m8p5lr2gri0npr581";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@@ -27,7 +27,10 @@ buildPythonPackage {
pycryptodome pycryptodome
]; ];
nativeCheckInputs = [ pytest mock ]; nativeCheckInputs = [
pytest
mock
];
checkPhase = '' checkPhase = ''
py.test test py.test test
''; '';

View File

@@ -1,17 +1,18 @@
{ lib {
, aiofiles lib,
, async-timeout aiofiles,
, buildPythonPackage async-timeout,
, cryptography buildPythonPackage,
, fetchFromGitHub cryptography,
, isPy3k fetchFromGitHub,
, libusb1 isPy3k,
, mock libusb1,
, pyasn1 mock,
, pythonAtLeast pyasn1,
, pycryptodome pythonAtLeast,
, pytestCheckHook pycryptodome,
, rsa pytestCheckHook,
rsa,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -39,9 +40,7 @@ buildPythonPackage rec {
aiofiles aiofiles
async-timeout async-timeout
]; ];
usb = [ usb = [ libusb1 ];
libusb1
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@@ -50,9 +49,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ pythonImportsCheck = [ "adb_shell" ];
"adb_shell"
];
meta = with lib; { meta = with lib; {
description = "Python implementation of ADB with shell and FileSync functionality"; description = "Python implementation of ADB with shell and FileSync functionality";

View File

@@ -1,18 +1,19 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, fetchpatch fetchFromGitHub,
, buildPythonPackage fetchpatch,
, rustPlatform buildPythonPackage,
, pkg-config rustPlatform,
, openssl pkg-config,
, publicsuffix-list openssl,
, pythonOlder publicsuffix-list,
, libiconv pythonOlder,
, CoreFoundation libiconv,
, Security CoreFoundation,
, pytestCheckHook Security,
, toml pytestCheckHook,
toml,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -50,16 +51,16 @@ buildPythonPackage rec {
hash = "sha256-1xmYmF5P7a5O9MilxDy+CVhmWMGRetdM2fGvTPy7JmM="; hash = "sha256-1xmYmF5P7a5O9MilxDy+CVhmWMGRetdM2fGvTPy7JmM=";
}; };
nativeBuildInputs = [ nativeBuildInputs =
pkg-config [ pkg-config ]
] ++ (with rustPlatform; [ ++ (with rustPlatform; [
cargoSetupHook cargoSetupHook
maturinBuildHook maturinBuildHook
]); ]);
buildInputs = [ buildInputs =
openssl [ openssl ]
] ++ lib.optionals stdenv.isDarwin [ ++ lib.optionals stdenv.isDarwin [
libiconv libiconv
CoreFoundation CoreFoundation
Security Security
@@ -92,6 +93,9 @@ buildPythonPackage rec {
homepage = "https://github.com/ArniDagur/python-adblock/"; homepage = "https://github.com/ArniDagur/python-adblock/";
changelog = "https://github.com/ArniDagur/python-adblock/blob/${version}/CHANGELOG.md"; changelog = "https://github.com/ArniDagur/python-adblock/blob/${version}/CHANGELOG.md";
maintainers = with maintainers; [ dotlambda ]; maintainers = with maintainers; [ dotlambda ];
license = with licenses; [ asl20 /* or */ mit ]; license = with licenses; [
asl20 # or
mit
];
}; };
} }

View File

@@ -1,9 +1,10 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pytestCheckHook fetchFromGitHub,
, pythonOlder pytestCheckHook,
, tokenize-rt pythonOlder,
tokenize-rt,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,17 +21,11 @@ buildPythonPackage rec {
hash = "sha256-B+wjBy42RwabVz/6qEMGpB0JmwJ9hqSskwcNj4x/B/k="; hash = "sha256-B+wjBy42RwabVz/6qEMGpB0JmwJ9hqSskwcNj4x/B/k=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ tokenize-rt ];
tokenize-rt
];
pythonImportsCheck = [ pythonImportsCheck = [ "add_trailing_comma" ];
"add_trailing_comma"
];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
meta = with lib; { meta = with lib; {
description = "A tool (and pre-commit hook) to automatically add trailing commas to calls and literals"; description = "A tool (and pre-commit hook) to automatically add trailing commas to calls and literals";

View File

@@ -1,7 +1,8 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, pytestCheckHook fetchPypi,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,13 +1,14 @@
{ lib {
, aiohttp lib,
, aresponses aiohttp,
, buildPythonPackage aresponses,
, fetchFromGitHub buildPythonPackage,
, poetry-core fetchFromGitHub,
, pytest-asyncio poetry-core,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, yarl pythonOlder,
yarl,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -33,9 +34,7 @@ buildPythonPackage rec {
--replace 0.0.0 ${version} --replace 0.0.0 ${version}
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -50,9 +49,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "adguardhome" ];
"adguardhome"
];
meta = with lib; { meta = with lib; {
description = "Python client for the AdGuard Home API"; description = "Python client for the AdGuard Home API";

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, matplotlib fetchFromGitHub,
, numpy matplotlib,
, packaging numpy,
, pythonOlder packaging,
, scipy pythonOlder,
, setuptools scipy,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -37,9 +38,7 @@ buildPythonPackage rec {
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "adjustText" ];
"adjustText"
];
meta = with lib; { meta = with lib; {
description = "Iteratively adjust text position in matplotlib plots to minimize overlaps"; description = "Iteratively adjust text position in matplotlib plots to minimize overlaps";

View File

@@ -1,8 +1,9 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchPypi buildPythonPackage,
, pythonOlder fetchPypi,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -18,16 +19,12 @@ buildPythonPackage rec {
hash = "sha256-4rRR9IxzH5EiYfWzWYeyCwoLB2LetBVyH7L3nkvp+gA="; hash = "sha256-4rRR9IxzH5EiYfWzWYeyCwoLB2LetBVyH7L3nkvp+gA=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ aiohttp ];
aiohttp
];
# No tests # No tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "advantage_air" ];
"advantage_air"
];
meta = with lib; { meta = with lib; {
description = "API helper for Advantage Air's MyAir and e-zone API"; description = "API helper for Advantage Air's MyAir and e-zone API";

View File

@@ -1,13 +1,14 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, ndg-httpsclient fetchFromGitHub,
, netifaces ndg-httpsclient,
, pyasn1 netifaces,
, pyopenssl pyasn1,
, requests pyopenssl,
, six requests,
, urllib3 six,
urllib3,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,13 +1,14 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, geopy fetchFromGitHub,
, pythonOlder geopy,
, requests pythonOlder,
, setuptools requests,
, urllib3 setuptools,
, wheel urllib3,
wheel,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -39,9 +40,7 @@ buildPythonPackage rec {
# no tests implemented # no tests implemented
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aemet_opendata.interface" ];
"aemet_opendata.interface"
];
meta = with lib; { meta = with lib; {
description = "Python client for AEMET OpenData Rest API"; description = "Python client for AEMET OpenData Rest API";

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, pyparsing fetchPypi,
, pytestCheckHook pyparsing,
, pythonAtLeast pytestCheckHook,
, pythonOlder pythonAtLeast,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,20 +21,17 @@ buildPythonPackage rec {
hash = "sha256-jL12zRjE+HD/ObJChNPqAo++hzGljfOqWB5DTFdblVk="; hash = "sha256-jL12zRjE+HD/ObJChNPqAo++hzGljfOqWB5DTFdblVk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
nativeCheckInputs = [ nativeCheckInputs = [
pyparsing pyparsing
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aenum" ];
"aenum"
];
disabledTests = [ disabledTests =
[
# https://github.com/ethanfurman/aenum/issues/27 # https://github.com/ethanfurman/aenum/issues/27
"test_class_nested_enum_and_pickle_protocol_four" "test_class_nested_enum_and_pickle_protocol_four"
"test_pickle_enum_function_with_qualname" "test_pickle_enum_function_with_qualname"
@@ -42,7 +40,8 @@ buildPythonPackage rec {
"test_arduino_headers" "test_arduino_headers"
"test_c_header_scanner" "test_c_header_scanner"
"test_extend_flag_backwards_stdlib" "test_extend_flag_backwards_stdlib"
] ++ lib.optionals (pythonAtLeast "3.12") [ ]
++ lib.optionals (pythonAtLeast "3.12") [
# AttributeError: <enum 'Color'> has no attribute 'value'. Did you mean: 'blue'? # AttributeError: <enum 'Color'> has no attribute 'value'. Did you mean: 'blue'?
"test_extend_enum_shadow_property_stdlib" "test_extend_enum_shadow_property_stdlib"
]; ];

View File

@@ -1,13 +1,14 @@
{ lib {
, buildPythonPackage lib,
, pythonOlder buildPythonPackage,
, fetchFromGitHub pythonOlder,
, setuptools fetchFromGitHub,
, aesara setuptools,
, numpy aesara,
, scipy numpy,
, numdifftools scipy,
, pytestCheckHook numdifftools,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -24,9 +25,7 @@ buildPythonPackage rec {
hash = "sha256-mqBbXwWJwQA2wSHuEdBeXQMfTIcgwYEjpq8AVmOjmHM="; hash = "sha256-mqBbXwWJwQA2wSHuEdBeXQMfTIcgwYEjpq8AVmOjmHM=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [
aesara aesara
@@ -43,9 +42,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d); export HOME=$(mktemp -d);
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "aeppl" ];
"aeppl"
];
disabledTests = [ disabledTests = [
# Compute issue # Compute issue

View File

@@ -1,25 +1,26 @@
{ lib {
, stdenv lib,
, buildPythonPackage stdenv,
, cons buildPythonPackage,
, cython cons,
, etuples cython,
, fetchFromGitHub etuples,
, filelock fetchFromGitHub,
, hatch-vcs filelock,
, hatchling hatch-vcs,
, jax hatchling,
, jaxlib jax,
, logical-unification jaxlib,
, minikanren logical-unification,
, numba minikanren,
, numba-scipy numba,
, numpy numba-scipy,
, pytestCheckHook numpy,
, pythonAtLeast pytestCheckHook,
, pythonOlder pythonAtLeast,
, scipy pythonOlder,
, typing-extensions scipy,
typing-extensions,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -72,9 +73,7 @@ buildPythonPackage rec {
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "aesara" ];
"aesara"
];
disabledTestPaths = [ disabledTestPaths = [
# Don't run the most compute-intense tests # Don't run the most compute-intense tests

View File

@@ -1,13 +1,14 @@
{ lib {
, aiowinreg lib,
, buildPythonPackage aiowinreg,
, colorama buildPythonPackage,
, fetchFromGitHub colorama,
, pycryptodomex fetchFromGitHub,
, pythonOlder pycryptodomex,
, setuptools pythonOlder,
, tqdm setuptools,
, unicrypto tqdm,
unicrypto,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -24,9 +25,7 @@ buildPythonPackage rec {
hash = "sha256-nYuMWE03Rsw1XuD/bxccpu8rddeXgS/EKJcO1VBLTLU="; hash = "sha256-nYuMWE03Rsw1XuD/bxccpu8rddeXgS/EKJcO1VBLTLU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiowinreg aiowinreg
@@ -39,9 +38,7 @@ buildPythonPackage rec {
# Module has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aesedb" ];
"aesedb"
];
meta = with lib; { meta = with lib; {
description = "Parser for JET databases"; description = "Parser for JET databases";

View File

@@ -1,14 +1,15 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, grpcio fetchFromGitHub,
, protobuf grpcio,
, pytest-asyncio protobuf,
, pytest-mock pytest-asyncio,
, pytestCheckHook pytest-mock,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
, setuptools-scm setuptools,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -48,9 +49,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aetcd" ];
"aetcd"
];
disabledTestPaths = [ disabledTestPaths = [
# Tests require a running ectd instance # Tests require a running ectd instance

View File

@@ -1,33 +1,34 @@
{ lib {
, stdenv lib,
, buildPythonPackage stdenv,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
, fonttools pythonOlder,
, defcon fonttools,
, lxml defcon,
, fs lxml,
, unicodedata2 fs,
, zopfli unicodedata2,
, brotlipy zopfli,
, fontpens brotlipy,
, brotli fontpens,
, fontmath brotli,
, mutatormath fontmath,
, booleanoperations mutatormath,
, ufoprocessor booleanoperations,
, ufonormalizer ufoprocessor,
, tqdm ufonormalizer,
, setuptools-scm tqdm,
, scikit-build setuptools-scm,
, cmake scikit-build,
, ninja cmake,
, antlr4_9 ninja,
, libxml2 antlr4_9,
, pytestCheckHook libxml2,
# Enables some expensive tests, useful for verifying an update pytestCheckHook,
, runAllTests ? false # Enables some expensive tests, useful for verifying an update
, afdko runAllTests ? false,
afdko,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -107,7 +108,8 @@ buildPythonPackage rec {
rm -rf _skbuild rm -rf _skbuild
''; '';
disabledTests = lib.optionals (!runAllTests) [ disabledTests =
lib.optionals (!runAllTests) [
# Disable slow tests, reduces test time ~25 % # Disable slow tests, reduces test time ~25 %
"test_report" "test_report"
"test_post_overflow" "test_post_overflow"
@@ -116,11 +118,13 @@ buildPythonPackage rec {
"test_filename_without_dir" "test_filename_without_dir"
"test_overwrite" "test_overwrite"
"test_options" "test_options"
] ++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [ ]
++ lib.optionals (stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isRiscV) [
# unknown reason so far # unknown reason so far
# https://github.com/adobe-type-tools/afdko/issues/1425 # https://github.com/adobe-type-tools/afdko/issues/1425
"test_spec" "test_spec"
] ++ lib.optionals (stdenv.hostPlatform.isi686) [ ]
++ lib.optionals (stdenv.hostPlatform.isi686) [
"test_dump_option" "test_dump_option"
"test_type1mm_inputs" "test_type1mm_inputs"
]; ];

View File

@@ -1,9 +1,10 @@
{ lib {
, buildPythonPackage lib,
, pythonOlder buildPythonPackage,
, fetchPypi pythonOlder,
, flit-core fetchPypi,
, pytestCheckHook flit-core,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -19,13 +20,9 @@ buildPythonPackage rec {
hash = "sha256-ok2BjWqDbBMZdtIvjCe408oy0K9kwdjSnet7r6TaHuo="; hash = "sha256-ok2BjWqDbBMZdtIvjCe408oy0K9kwdjSnet7r6TaHuo=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ flit-core ];
flit-core
];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/rasterio/affine/blob/${version}/CHANGES.txt"; changelog = "https://github.com/rasterio/affine/blob/${version}/CHANGES.txt";
@@ -34,5 +31,4 @@ buildPythonPackage rec {
homepage = "https://github.com/rasterio/affine"; homepage = "https://github.com/rasterio/affine";
maintainers = with maintainers; [ mredaelli ]; maintainers = with maintainers; [ mredaelli ];
}; };
} }

View File

@@ -1,12 +1,13 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, lxml fetchFromGitHub,
, pytest-aiohttp lxml,
, pytestCheckHook pytest-aiohttp,
, pythonOlder pytestCheckHook,
, setuptools-scm pythonOlder,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -23,9 +24,7 @@ buildPythonPackage rec {
hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I="; hash = "sha256-eE5BsXNtSU6YUhRn4/SKpMrqaYf8tyfLKdxxGOmNJ9I=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools-scm ];
setuptools-scm
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -37,13 +36,9 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pytestFlagsArray = [ pytestFlagsArray = [ "async_tests.py" ];
"async_tests.py"
];
pythonImportsCheck = [ pythonImportsCheck = [ "afsapi" ];
"afsapi"
];
meta = with lib; { meta = with lib; {
description = "Python implementation of the Frontier Silicon API"; description = "Python implementation of the Frontier Silicon API";

View File

@@ -1,11 +1,22 @@
{ lib, fetchPypi, buildPythonPackage, agate, dbf, dbfread }: {
lib,
fetchPypi,
buildPythonPackage,
agate,
dbf,
dbfread,
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "agate-dbf"; pname = "agate-dbf";
version = "0.2.3"; version = "0.2.3";
format = "setuptools"; format = "setuptools";
propagatedBuildInputs = [ agate dbf dbfread ]; propagatedBuildInputs = [
agate
dbf
dbfread
];
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;

View File

@@ -1,12 +1,13 @@
{ lib {
, fetchPypi lib,
, buildPythonPackage fetchPypi,
, agate buildPythonPackage,
, openpyxl agate,
, xlrd openpyxl,
, olefile xlrd,
, pytestCheckHook olefile,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,13 +29,9 @@ buildPythonPackage rec {
olefile olefile
]; ];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [ "agate" ];
"agate"
];
meta = with lib; { meta = with lib; {
description = "Adds read support for excel files to agate"; description = "Adds read support for excel files to agate";

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, isPy27 buildPythonPackage,
, fetchPypi isPy27,
, agate fetchPypi,
, sqlalchemy agate,
, crate sqlalchemy,
, pytestCheckHook crate,
, geojson pytestCheckHook,
geojson,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -21,9 +22,16 @@ buildPythonPackage rec {
hash = "sha256-mxswKEpXP9QWdZQ3Jz3MXIECK98vrLJLSqAppir9U7A="; hash = "sha256-mxswKEpXP9QWdZQ3Jz3MXIECK98vrLJLSqAppir9U7A=";
}; };
propagatedBuildInputs = [ agate sqlalchemy ]; propagatedBuildInputs = [
agate
sqlalchemy
];
nativeCheckInputs = [ crate geojson pytestCheckHook ]; nativeCheckInputs = [
crate
geojson
pytestCheckHook
];
pythonImportsCheck = [ "agatesql" ]; pythonImportsCheck = [ "agatesql" ];

View File

@@ -1,20 +1,21 @@
{ lib {
, babel lib,
, buildPythonPackage babel,
, cssselect buildPythonPackage,
, fetchFromGitHub cssselect,
, glibcLocales fetchFromGitHub,
, isodate glibcLocales,
, leather isodate,
, lxml leather,
, parsedatetime lxml,
, pyicu parsedatetime,
, pynose pyicu,
, python-slugify pynose,
, pythonOlder python-slugify,
, pytimeparse pythonOlder,
, pytz pytimeparse,
, setuptools pytz,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -31,9 +32,7 @@ buildPythonPackage rec {
hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw="; hash = "sha256-I7jvZA/m06kUuUcfglySaroDbJ5wbgiF2lb84EFPmpw=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [
babel babel
@@ -57,9 +56,7 @@ buildPythonPackage rec {
LC_ALL="en_US.UTF-8" nosetests tests LC_ALL="en_US.UTF-8" nosetests tests
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "agate" ];
"agate"
];
meta = with lib; { meta = with lib; {
description = "Python data analysis library that is optimized for humans instead of machines"; description = "Python data analysis library that is optimized for humans instead of machines";

View File

@@ -1,4 +1,12 @@
{ aiohttp, buildPythonPackage, fetchPypi, isPy3k, lib, python, requests }: {
aiohttp,
buildPythonPackage,
fetchPypi,
isPy3k,
lib,
python,
requests,
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "agent-py"; pname = "agent-py";
@@ -12,7 +20,10 @@ buildPythonPackage rec {
sha256 = "1hx88m8b8kfb2gm6hii5ldjv7hlvqf99cz0w2vj0d0grrxcbn5cz"; sha256 = "1hx88m8b8kfb2gm6hii5ldjv7hlvqf99cz0w2vj0d0grrxcbn5cz";
}; };
propagatedBuildInputs = [ requests aiohttp ]; propagatedBuildInputs = [
requests
aiohttp
];
checkPhase = '' checkPhase = ''
${python.interpreter} tests/test_agent.py ${python.interpreter} tests/test_agent.py

View File

@@ -1,14 +1,15 @@
{ lib {
, fetchFromGitHub lib,
, buildPythonPackage fetchFromGitHub,
, packaging buildPythonPackage,
, setuptools packaging,
, pkgconfig setuptools,
, freetype pkgconfig,
, pytest freetype,
, python pytest,
, pillow python,
, numpy pillow,
numpy,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -29,9 +30,7 @@ buildPythonPackage rec {
pkgconfig pkgconfig
]; ];
buildInputs = [ buildInputs = [ freetype ];
freetype
];
nativeCheckInputs = [ nativeCheckInputs = [
numpy numpy

View File

@@ -1,8 +1,9 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, pytestCheckHook fetchPypi,
, setuptools pytestCheckHook,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -15,13 +16,9 @@ buildPythonPackage rec {
hash = "sha256-0gEPXqw99UTsSOwRYQLgaFkaNFsaWA8ylz24pQX8p0Q="; hash = "sha256-0gEPXqw99UTsSOwRYQLgaFkaNFsaWA8ylz24pQX8p0Q=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
pythonImportsCheck = [ "ago" ]; pythonImportsCheck = [ "ago" ];

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, mutagen fetchPypi,
, requests mutagen,
, colorama requests,
, prettytable colorama,
, pycrypto prettytable,
, pydub pycrypto,
pydub,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -19,7 +20,14 @@ buildPythonPackage rec {
sha256 = "sha256-1kQced6YdC/wvegqFVhZfej4+4aemGXvKysKjejP13w="; sha256 = "sha256-1kQced6YdC/wvegqFVhZfej4+4aemGXvKysKjejP13w=";
}; };
propagatedBuildInputs = [ mutagen requests colorama prettytable pycrypto pydub ]; propagatedBuildInputs = [
mutagen
requests
colorama
prettytable
pycrypto
pydub
];
meta = { meta = {
homepage = "https://github.com/AIGMix/AIGPY"; homepage = "https://github.com/AIGMix/AIGPY";

View File

@@ -1,15 +1,16 @@
{ lib {
, aiohttp lib,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, geojson fetchFromGitHub,
, haversine geojson,
, mock haversine,
, pytest-asyncio mock,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,9 +29,7 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -45,9 +44,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_geojson_client" ];
"aio_geojson_client"
];
meta = with lib; { meta = with lib; {
description = "Python module for accessing GeoJSON feeds"; description = "Python module for accessing GeoJSON feeds";

View File

@@ -1,16 +1,17 @@
{ lib {
, aio-geojson-client lib,
, aiohttp aio-geojson-client,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, geojson fetchFromGitHub,
, pytest-asyncio geojson,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
, pytz pythonRelaxDepsHook,
, setuptools pytz,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -52,9 +53,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_geojson_generic_client" ];
"aio_geojson_generic_client"
];
meta = with lib; { meta = with lib; {
description = "Python library for accessing GeoJSON feeds"; description = "Python library for accessing GeoJSON feeds";

View File

@@ -1,14 +1,15 @@
{ lib {
, aio-geojson-client lib,
, aiohttp aio-geojson-client,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytestCheckHook pytest-asyncio,
, pytz pytestCheckHook,
, pythonOlder pytz,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -25,9 +26,7 @@ buildPythonPackage rec {
hash = "sha256-8OpmA3yHjUY+N5Obri4RWeuJiW916xGSWUYUgdpmjkw="; hash = "sha256-8OpmA3yHjUY+N5Obri4RWeuJiW916xGSWUYUgdpmjkw=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aio-geojson-client aio-geojson-client
@@ -43,9 +42,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_geojson_geonetnz_quakes" ];
"aio_geojson_geonetnz_quakes"
];
meta = with lib; { meta = with lib; {
description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds"; description = "Python module for accessing the GeoNet NZ Quakes GeoJSON feeds";

View File

@@ -1,16 +1,17 @@
{ lib {
, aio-geojson-client lib,
, aiohttp aio-geojson-client,
, aioresponses aiohttp,
, mock aioresponses,
, buildPythonPackage mock,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytest-xdist pytest-asyncio,
, pytestCheckHook pytest-xdist,
, pytz pytestCheckHook,
, pythonOlder pytz,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -27,9 +28,7 @@ buildPythonPackage rec {
hash = "sha256-ZmGDO9EROFMlxdj5txNh719M+3l/0jRFbB2h2AyZAdI="; hash = "sha256-ZmGDO9EROFMlxdj5txNh719M+3l/0jRFbB2h2AyZAdI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aio-geojson-client aio-geojson-client
@@ -47,9 +46,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_geojson_geonetnz_volcano" ];
"aio_geojson_geonetnz_volcano"
];
meta = with lib; { meta = with lib; {
description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds"; description = "Python module for accessing the GeoNet NZ Volcanic GeoJSON feeds";

View File

@@ -1,14 +1,15 @@
{ lib {
, aio-geojson-client lib,
, aiohttp aio-geojson-client,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, pytz pythonOlder,
, setuptools pytz,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -25,9 +26,7 @@ buildPythonPackage rec {
hash = "sha256-HksiKfXhLASAgU81x7YiOXFmBLIkqJ9ldWLLY1ZbZlk="; hash = "sha256-HksiKfXhLASAgU81x7YiOXFmBLIkqJ9ldWLLY1ZbZlk=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aio-geojson-client aio-geojson-client
@@ -43,9 +42,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_geojson_nsw_rfs_incidents" ];
"aio_geojson_nsw_rfs_incidents"
];
meta = with lib; { meta = with lib; {
description = "Python module for accessing the NSW Rural Fire Service incidents feeds"; description = "Python module for accessing the NSW Rural Fire Service incidents feeds";

View File

@@ -1,14 +1,15 @@
{ lib {
, aio-geojson-client lib,
, aiohttp aio-geojson-client,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytestCheckHook pytest-asyncio,
, pytz pytestCheckHook,
, pythonOlder pytz,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -25,9 +26,7 @@ buildPythonPackage rec {
hash = "sha256-Q9vBy5R5N5ihJdSMALo88qVYcFVs2/33lYRPdLej4S8="; hash = "sha256-Q9vBy5R5N5ihJdSMALo88qVYcFVs2/33lYRPdLej4S8=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aio-geojson-client aio-geojson-client
@@ -37,18 +36,14 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
checkInputs = [ checkInputs = [
aioresponses aioresponses
pytest-asyncio pytest-asyncio
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_geojson_usgs_earthquakes" ];
"aio_geojson_usgs_earthquakes"
];
meta = with lib; { meta = with lib; {
description = "Python module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds"; description = "Python module for accessing the U.S. Geological Survey Earthquake Hazards Program feeds";

View File

@@ -1,17 +1,18 @@
{ lib {
, aiohttp lib,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, dateparser buildPythonPackage,
, fetchFromGitHub dateparser,
, haversine fetchFromGitHub,
, mock haversine,
, pytest-asyncio mock,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, requests pythonOlder,
, setuptools requests,
, xmltodict setuptools,
xmltodict,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -30,9 +31,7 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -49,9 +48,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_georss_client" ];
"aio_georss_client"
];
meta = with lib; { meta = with lib; {
description = "Python library for accessing GeoRSS feeds"; description = "Python library for accessing GeoRSS feeds";

View File

@@ -1,13 +1,14 @@
{ lib {
, aio-georss-client lib,
, aioresponses aio-georss-client,
, buildPythonPackage aioresponses,
, dateparser buildPythonPackage,
, fetchFromGitHub dateparser,
, pytest-asyncio fetchFromGitHub,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -26,9 +27,7 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aio-georss-client aio-georss-client
@@ -41,9 +40,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aio_georss_gdacs" ];
"aio_georss_gdacs"
];
meta = with lib; { meta = with lib; {
description = "Python library for accessing GeoRSS feeds"; description = "Python library for accessing GeoRSS feeds";

View File

@@ -1,9 +1,10 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,20 +21,14 @@ buildPythonPackage rec {
hash = "sha256-99Km1zizAA0BF4ZlLmKOBoOQzKS/QdWpWC9dzg2s3lU="; hash = "sha256-99Km1zizAA0BF4ZlLmKOBoOQzKS/QdWpWC9dzg2s3lU=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [ aiohttp ];
aiohttp
];
# Module has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aioairzone" ];
"aioairzone"
];
meta = with lib; { meta = with lib; {
description = "Module to control AirZone devices"; description = "Module to control AirZone devices";
@@ -43,4 +38,3 @@ buildPythonPackage rec {
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };
} }

View File

@@ -1,9 +1,10 @@
{ lib {
, aioboto3 lib,
, aiohttp aioboto3,
, buildPythonPackage aiohttp,
, fetchPypi buildPythonPackage,
, pythonOlder fetchPypi,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -27,9 +28,7 @@ buildPythonPackage rec {
# Module has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "AIOAladdinConnect" ];
"AIOAladdinConnect"
];
meta = with lib; { meta = with lib; {
description = "Library for controlling Genie garage doors connected to Aladdin Connect devices"; description = "Library for controlling Genie garage doors connected to Aladdin Connect devices";

View File

@@ -1,17 +1,18 @@
{ lib {
, aiohttp lib,
, aresponses aiohttp,
, buildPythonPackage aresponses,
, certifi buildPythonPackage,
, fetchFromGitHub certifi,
, poetry-core fetchFromGitHub,
, pytest-aiohttp poetry-core,
, pytest-asyncio pytest-aiohttp,
, pytestCheckHook pytest-asyncio,
, python-engineio pytestCheckHook,
, python-socketio python-engineio,
, pythonOlder python-socketio,
, websockets pythonOlder,
websockets,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,9 +29,7 @@ buildPythonPackage rec {
hash = "sha256-eqZVY0L+2BWF7cCXW/VLQYYXNPtUF6tJHQmeZNW1W5o="; hash = "sha256-eqZVY0L+2BWF7cCXW/VLQYYXNPtUF6tJHQmeZNW1W5o=";
}; };
build-system = [ build-system = [ poetry-core ];
poetry-core
];
dependencies = [ dependencies = [
aiohttp aiohttp
@@ -50,13 +49,9 @@ buildPythonPackage rec {
]; ];
# Ignore the examples directory as the files are prefixed with test_ # Ignore the examples directory as the files are prefixed with test_
disabledTestPaths = [ disabledTestPaths = [ "examples/" ];
"examples/"
];
pythonImportsCheck = [ pythonImportsCheck = [ "aioambient" ];
"aioambient"
];
meta = with lib; { meta = with lib; {
description = "Python library for the Ambient Weather API"; description = "Python library for the Ambient Weather API";

View File

@@ -1,9 +1,10 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pamqp fetchFromGitHub,
, pythonOlder pamqp,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,20 +21,14 @@ buildPythonPackage rec {
hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk="; hash = "sha256-fssPknJn1tLtzb+2SFyZjfdhUdD8jqkwlInoi5uaplk=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [ pamqp ];
pamqp
];
# Tests assume rabbitmq server running # Tests assume rabbitmq server running
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aioamqp" ];
"aioamqp"
];
meta = with lib; { meta = with lib; {
description = "AMQP implementation using asyncio"; description = "AMQP implementation using asyncio";

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
, setuptools-scm setuptools,
setuptools-scm,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -32,9 +33,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioapcaccess" ];
"aioapcaccess"
];
meta = with lib; { meta = with lib; {
description = "Module for working with apcaccess"; description = "Module for working with apcaccess";

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, h2 fetchPypi,
, pyjwt h2,
, pyopenssl pyjwt,
, pythonOlder pyopenssl,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -20,9 +21,7 @@ buildPythonPackage rec {
hash = "sha256-QPayQogW97saMmaPUP5x0CiXd6Qptg/OROigi5ASNQg="; hash = "sha256-QPayQogW97saMmaPUP5x0CiXd6Qptg/OROigi5ASNQg=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
h2 h2
@@ -33,9 +32,7 @@ buildPythonPackage rec {
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aioapns" ];
"aioapns"
];
meta = with lib; { meta = with lib; {
description = "An efficient APNs Client Library"; description = "An efficient APNs Client Library";

View File

@@ -1,10 +1,11 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
, setuptools pythonOlder,
, pyjwt setuptools,
pyjwt,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -21,9 +22,7 @@ buildPythonPackage rec {
hash = "sha256-bjPl0yrRaTIEEuPV8NbWu2hx/es5bcu2tDBZV+95fUc="; hash = "sha256-bjPl0yrRaTIEEuPV8NbWu2hx/es5bcu2tDBZV+95fUc=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -33,9 +32,7 @@ buildPythonPackage rec {
# Module has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aioaseko" ];
"aioaseko"
];
meta = with lib; { meta = with lib; {
description = "Module to interact with the Aseko Pool Live API"; description = "Module to interact with the Aseko Pool Live API";

View File

@@ -1,22 +1,23 @@
{ lib {
, buildPythonPackage lib,
, pythonOlder buildPythonPackage,
, fetchFromGitHub pythonOlder,
fetchFromGitHub,
# build-system # build-system
, setuptools setuptools,
# dependencies # dependencies
, aiohttp aiohttp,
, incremental incremental,
# tests # tests
, aioresponses aioresponses,
, pytest-aiohttp pytest-aiohttp,
, pytest-asyncio pytest-asyncio,
, pytest-socket pytest-socket,
, pytestCheckHook pytestCheckHook,
, syrupy syrupy,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, poetry-core fetchFromGitHub,
, protobuf poetry-core,
, pytest-asyncio protobuf,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, zeroconf pythonOlder,
zeroconf,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -23,9 +24,7 @@ buildPythonPackage rec {
hash = "sha256-QxjrspvNrcMcGChjj1B4QF/SnWCsGmPxnI2bWAL6BiI="; hash = "sha256-QxjrspvNrcMcGChjj1B4QF/SnWCsGmPxnI2bWAL6BiI=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
protobuf protobuf
@@ -37,9 +36,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiobafi6" ];
"aiobafi6"
];
meta = with lib; { meta = with lib; {
description = "Library for communication with the Big Ass Fans i6 firmware"; description = "Library for communication with the Big Ass Fans i6 firmware";

View File

@@ -1,15 +1,16 @@
{ lib {
, aiohttp lib,
, auth0-python aiohttp,
, buildPythonPackage auth0-python,
, fetchFromGitHub buildPythonPackage,
, poetry-core fetchFromGitHub,
, pyjwt poetry-core,
, pytest-aiohttp pyjwt,
, pytestCheckHook pytest-aiohttp,
, python-dateutil pytestCheckHook,
, pythonOlder python-dateutil,
, pythonRelaxDepsHook pythonOlder,
pythonRelaxDepsHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -32,17 +33,11 @@ buildPythonPackage rec {
--replace-fail "auth0.v3" "auth0" --replace-fail "auth0.v3" "auth0"
''; '';
pythonRelaxDeps = [ pythonRelaxDeps = [ "auth0-python" ];
"auth0-python"
];
build-system = [ build-system = [ poetry-core ];
poetry-core
];
nativeBuildInputs = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDepsHook
];
dependencies = [ dependencies = [
aiohttp aiohttp
@@ -51,13 +46,9 @@ buildPythonPackage rec {
pyjwt pyjwt
]; ];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [ "aiobiketrax" ];
"aiobiketrax"
];
meta = with lib; { meta = with lib; {
description = "Library for interacting with the PowUnity BikeTrax GPS tracker"; description = "Library for interacting with the PowUnity BikeTrax GPS tracker";

View File

@@ -1,8 +1,9 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pytestCheckHook fetchFromGitHub,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -19,13 +20,9 @@ buildPythonPackage rec {
hash = "sha256-JeA9jX566OSRiejdnlifbcNGm0J0C+xzA6zXDUyZ6jc="; hash = "sha256-JeA9jX566OSRiejdnlifbcNGm0J0C+xzA6zXDUyZ6jc=";
}; };
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
pythonImportsCheck = [ pythonImportsCheck = [ "aioblescan" ];
"aioblescan"
];
meta = with lib; { meta = with lib; {
description = "Library to listen for BLE advertized packets"; description = "Library to listen for BLE advertized packets";

View File

@@ -1,19 +1,20 @@
{ lib {
, aiobotocore lib,
, aiofiles aiobotocore,
, buildPythonPackage aiofiles,
, chalice buildPythonPackage,
, cryptography chalice,
, dill cryptography,
, fetchFromGitHub dill,
, moto fetchFromGitHub,
, poetry-core moto,
, poetry-dynamic-versioning poetry-core,
, pytest-asyncio poetry-dynamic-versioning,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, pythonRelaxDepsHook pythonOlder,
, requests pythonRelaxDepsHook,
requests,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -36,21 +37,13 @@ buildPythonPackage rec {
pythonRelaxDepsHook pythonRelaxDepsHook
]; ];
pythonRelaxDeps = [ pythonRelaxDeps = [ "aiobotocore" ];
"aiobotocore"
];
propagatedBuildInputs = [ propagatedBuildInputs = [ aiobotocore ] ++ aiobotocore.optional-dependencies.boto3;
aiobotocore
] ++ aiobotocore.optional-dependencies.boto3;
passthru.optional-dependencies = { passthru.optional-dependencies = {
chalice = [ chalice = [ chalice ];
chalice s3cse = [ cryptography ];
];
s3cse = [
cryptography
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@@ -62,9 +55,7 @@ buildPythonPackage rec {
requests requests
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ pythonImportsCheck = [ "aioboto3" ];
"aioboto3"
];
disabledTests = [ disabledTests = [
# Our moto package is not ready to support more tests # Our moto package is not ready to support more tests

View File

@@ -1,21 +1,22 @@
{ lib {
, aiohttp lib,
, aioitertools aiohttp,
, botocore aioitertools,
, buildPythonPackage botocore,
, dill buildPythonPackage,
, fetchFromGitHub dill,
, flask fetchFromGitHub,
, flask-cors flask,
, awscli flask-cors,
, moto awscli,
, boto3 moto,
, setuptools boto3,
, pytest-asyncio setuptools,
, pytestCheckHook pytest-asyncio,
, pythonAtLeast pytestCheckHook,
, pythonOlder pythonAtLeast,
, wrapt pythonOlder,
wrapt,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -38,9 +39,7 @@ buildPythonPackage rec {
sed -i "s/'botocore>=.*'/'botocore'/" setup.py sed -i "s/'botocore>=.*'/'botocore'/" setup.py
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -50,12 +49,8 @@ buildPythonPackage rec {
]; ];
passthru.optional-dependencies = { passthru.optional-dependencies = {
awscli = [ awscli = [ awscli ];
awscli boto3 = [ boto3 ];
];
boto3 = [
boto3
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@@ -67,9 +62,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiobotocore" ];
"aiobotocore"
];
disabledTestPaths = [ disabledTestPaths = [
# Tests require network access # Tests require network access
@@ -90,14 +83,16 @@ buildPythonPackage rec {
"tests/test_waiter.py" "tests/test_waiter.py"
]; ];
disabledTests = [ disabledTests =
[
"test_get_credential" "test_get_credential"
"test_load_sso_credentials_without_cache" "test_load_sso_credentials_without_cache"
"test_load_sso_credentials" "test_load_sso_credentials"
"test_required_config_not_set" "test_required_config_not_set"
"test_sso_cred_fetcher_raises_helpful_message_on_unauthorized_exception" "test_sso_cred_fetcher_raises_helpful_message_on_unauthorized_exception"
"test_sso_credential_fetcher_can_fetch_credentials" "test_sso_credential_fetcher_can_fetch_credentials"
] ++ lib.optionals (pythonAtLeast "3.12.") [ ]
++ 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. # 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_updated_on_success_response"
"test_max_rate_cant_exceed_20_percent_max" "test_max_rate_cant_exceed_20_percent_max"

View File

@@ -1,8 +1,9 @@
{ lib {
, buildPythonPackage lib,
, cryptography buildPythonPackage,
, fetchPypi cryptography,
, pythonOlder fetchPypi,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -17,16 +18,12 @@ buildPythonPackage rec {
hash = "sha256-uTUtDhL9VtWZE+Y6ZJY4prmlE+Yh2UrCg5+eSyAQzMk="; hash = "sha256-uTUtDhL9VtWZE+Y6ZJY4prmlE+Yh2UrCg5+eSyAQzMk=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ cryptography ];
cryptography
];
# Project has no tests # Project has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [ "aiobroadlink" ];
"aiobroadlink"
];
meta = with lib; { meta = with lib; {
description = "Python module to control various Broadlink devices"; description = "Python module to control various Broadlink devices";

View File

@@ -1,17 +1,18 @@
{ lib {
, aiohttp lib,
, aiomcache aiohttp,
, buildPythonPackage aiomcache,
, fetchFromGitHub buildPythonPackage,
, marshmallow fetchFromGitHub,
, msgpack marshmallow,
, pkgs msgpack,
, pythonOlder pkgs,
, pytest-asyncio pythonOlder,
, pytest-mock pytest-asyncio,
, pytestCheckHook pytest-mock,
, redis pytestCheckHook,
, setuptools redis,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -33,20 +34,12 @@ buildPythonPackage rec {
--replace-fail "--cov=aiocache --cov=tests/ --cov-report term" "" --replace-fail "--cov=aiocache --cov=tests/ --cov-report term" ""
''; '';
build-system = [ build-system = [ setuptools ];
setuptools
];
optional-dependencies = { optional-dependencies = {
redis = [ redis = [ redis ];
redis memcached = [ aiomcache ];
]; msgpack = [ msgpack ];
memcached = [
aiomcache
];
msgpack = [
msgpack
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@@ -58,7 +51,8 @@ buildPythonPackage rec {
] ++ lib.flatten (lib.attrValues optional-dependencies); ] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [ pytestFlagsArray = [
"-W" "ignore::DeprecationWarning" "-W"
"ignore::DeprecationWarning"
# TypeError: object MagicMock can't be used in 'await' expression # TypeError: object MagicMock can't be used in 'await' expression
"--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close" "--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close"
]; ];
@@ -83,9 +77,7 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
pythonImportsCheck = [ pythonImportsCheck = [ "aiocache" ];
"aiocache"
];
meta = with lib; { meta = with lib; {
description = "Python API Rate Limit Decorator"; description = "Python API Rate Limit Decorator";

View File

@@ -1,12 +1,13 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, colorlog buildPythonPackage,
, fetchFromGitHub colorlog,
, pint fetchFromGitHub,
, poetry-core pint,
, pytestCheckHook poetry-core,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,9 +29,7 @@ buildPythonPackage rec {
--replace-fail " --cov=aiocomelit --cov-report=term-missing:skip-covered" "" --replace-fail " --cov=aiocomelit --cov-report=term-missing:skip-covered" ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -42,9 +41,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiocomelit" ];
"aiocomelit"
];
meta = with lib; { meta = with lib; {
description = "Library to control Comelit Simplehome"; description = "Library to control Comelit Simplehome";

View File

@@ -1,10 +1,11 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
# This package provides a binary "apython" which sometimes invokes # This package provides a binary "apython" which sometimes invokes
@@ -29,9 +30,7 @@ buildPythonPackage rec {
hash = "sha256-c8zeKebS04bZS9pMIKAauaLPvRrWaGoDKbnF906tFzQ="; hash = "sha256-c8zeKebS04bZS9pMIKAauaLPvRrWaGoDKbnF906tFzQ=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
@@ -51,9 +50,7 @@ buildPythonPackage rec {
"test_interact_multiple_indented_lines" "test_interact_multiple_indented_lines"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioconsole" ];
"aioconsole"
];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/vxgmichel/aioconsole/releases/tag/v${version}"; changelog = "https://github.com/vxgmichel/aioconsole/releases/tag/v${version}";

View File

@@ -1,10 +1,11 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, setuptools fetchFromGitHub,
, pytestCheckHook setuptools,
, pytest-asyncio pytestCheckHook,
, isPy27 pytest-asyncio,
isPy27,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,11 +1,12 @@
{ lib {
, buildPythonPackage lib,
, fetchPypi buildPythonPackage,
, setuptools fetchPypi,
, python setuptools,
, croniter python,
, tzlocal croniter,
, pytestCheckHook tzlocal,
pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -18,9 +19,7 @@ buildPythonPackage rec {
hash = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE="; hash = "sha256-SFRlE/ry63kB5lpk66e2U8gBBu0A7ZyjQZw9ELZVWgE=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
croniter croniter

View File

@@ -1,12 +1,13 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, httpx fetchFromGitHub,
, poetry-core httpx,
, pytest-asyncio poetry-core,
, pytest-httpx pytest-asyncio,
, pytestCheckHook pytest-httpx,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -23,13 +24,9 @@ buildPythonPackage rec {
hash = "sha256-VOzgWN+dDPaGEcahFPSWjBR989b9eNkx4zcnI9o2Xiw="; hash = "sha256-VOzgWN+dDPaGEcahFPSWjBR989b9eNkx4zcnI9o2Xiw=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [ httpx ];
httpx
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
@@ -37,9 +34,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiocurrencylayer" ];
"aiocurrencylayer"
];
meta = with lib; { meta = with lib; {
description = "Python API for interacting with currencylayer"; description = "Python API for interacting with currencylayer";

View File

@@ -1,16 +1,17 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
fetchFromGitHub,
# build-system # build-system
, poetry-core poetry-core,
# dependencies # dependencies
, scapy scapy,
# tests # tests
, pytest-asyncio pytest-asyncio,
, pytestCheckHook pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -29,22 +30,16 @@ buildPythonPackage rec {
sed -i "/addopts =/d" pyproject.toml sed -i "/addopts =/d" pyproject.toml
''; '';
build-system = [ build-system = [ poetry-core ];
poetry-core
];
dependencies = [ dependencies = [ scapy ];
scapy
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiodhcpwatcher" ];
"aiodhcpwatcher"
];
meta = with lib; { meta = with lib; {
description = "Watch for DHCP packets with asyncio"; description = "Watch for DHCP packets with asyncio";

View File

@@ -1,7 +1,8 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, aiohttp fetchFromGitHub,
aiohttp,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -17,9 +18,7 @@ buildPythonPackage rec {
sha256 = "RL5Ck4wsBZO88afmoojeFKbdIeCjDo/SwNqUcERH6Ls="; sha256 = "RL5Ck4wsBZO88afmoojeFKbdIeCjDo/SwNqUcERH6Ls=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ aiohttp ];
aiohttp
];
# tests require docker daemon # tests require docker daemon
doCheck = false; doCheck = false;

View File

@@ -1,12 +1,13 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, meteocalc fetchFromGitHub,
, pytest-aiohttp meteocalc,
, pytestCheckHook pytest-aiohttp,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -23,9 +24,7 @@ buildPythonPackage rec {
hash = "sha256-QfUawUtkNl2molropV8NSU7Kfm/D5/xuaPCjgm2TVOs="; hash = "sha256-QfUawUtkNl2molropV8NSU7Kfm/D5/xuaPCjgm2TVOs=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -37,9 +36,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioecowitt" ];
"aioecowitt"
];
meta = with lib; { meta = with lib; {
description = "Wrapper for the EcoWitt protocol"; description = "Wrapper for the EcoWitt protocol";

View File

@@ -1,15 +1,16 @@
{ lib {
, aiohttp lib,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, mashumaro fetchFromGitHub,
, orjson mashumaro,
, poetry-core orjson,
, pytest-asyncio poetry-core,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, syrupy pythonOlder,
syrupy,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -31,9 +32,7 @@ buildPythonPackage rec {
--replace-warn "--cov" "" --replace-warn "--cov" ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -48,9 +47,7 @@ buildPythonPackage rec {
syrupy syrupy
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioelectricitymaps" ];
"aioelectricitymaps"
];
meta = with lib; { meta = with lib; {
description = "Module for interacting with Electricity maps"; description = "Module for interacting with Electricity maps";

View File

@@ -1,13 +1,14 @@
{ lib {
, aiohttp lib,
, aioresponses aiohttp,
, buildPythonPackage aioresponses,
, fetchFromGitHub buildPythonPackage,
, pytest-asyncio fetchFromGitHub,
, pytest-raises pytest-asyncio,
, pytestCheckHook pytest-raises,
, pythonOlder pytestCheckHook,
, xmltodict pythonOlder,
xmltodict,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,26 +1,27 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
pythonOlder,
# build-system # build-system
, cython cython,
, setuptools setuptools,
# dependencies # dependencies
, aiohappyeyeballs aiohappyeyeballs,
, async-interrupt async-interrupt,
, async-timeout async-timeout,
, chacha20poly1305-reuseable chacha20poly1305-reuseable,
, cryptography cryptography,
, noiseprotocol noiseprotocol,
, protobuf protobuf,
, zeroconf zeroconf,
# tests # tests
, mock mock,
, pytest-asyncio pytest-asyncio,
, pytestCheckHook pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -50,9 +51,7 @@ buildPythonPackage rec {
noiseprotocol noiseprotocol
protobuf protobuf
zeroconf zeroconf
] ++ lib.optionals (pythonOlder "3.11") [ ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
async-timeout
];
nativeCheckInputs = [ nativeCheckInputs = [
mock mock
@@ -65,15 +64,16 @@ buildPythonPackage rec {
"test_reconnect_logic_stop_callback" "test_reconnect_logic_stop_callback"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioesphomeapi" ];
"aioesphomeapi"
];
meta = with lib; { meta = with lib; {
description = "Python Client for ESPHome native API"; description = "Python Client for ESPHome native API";
homepage = "https://github.com/esphome/aioesphomeapi"; homepage = "https://github.com/esphome/aioesphomeapi";
changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}"; changelog = "https://github.com/esphome/aioesphomeapi/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab hexa ]; maintainers = with maintainers; [
fab
hexa
];
}; };
} }

View File

@@ -1,11 +1,12 @@
{ buildPythonPackage {
, fetchPypi buildPythonPackage,
, lib fetchPypi,
, pythonOlder lib,
pythonOlder,
# Python dependencies # Python dependencies
, uvloop uvloop,
, pytest pytest,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,11 +1,12 @@
{ lib {
, aiomisc lib,
, aiomisc-pytest aiomisc,
, caio aiomisc-pytest,
, buildPythonPackage caio,
, fetchFromGitHub buildPythonPackage,
, pytestCheckHook fetchFromGitHub,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -22,9 +23,7 @@ buildPythonPackage rec {
hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54="; hash = "sha256-KBly/aeHHZh7mL8MJ9gmxbqS7PmR4sedtBY/2HCXt54=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ caio ];
caio
];
nativeCheckInputs = [ nativeCheckInputs = [
aiomisc aiomisc
@@ -32,9 +31,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiofile" ];
"aiofile"
];
disabledTests = [ disabledTests = [
# Tests (SystemError) fails randomly during nix-review # Tests (SystemError) fails randomly during nix-review

View File

@@ -1,11 +1,12 @@
{ stdenv {
, lib stdenv,
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, hatchling fetchFromGitHub,
, pytest-asyncio hatchling,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -22,9 +23,7 @@ buildPythonPackage rec {
hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM="; hash = "sha256-EbRQD/AoTMWAlPOMWmD0UdFjRyjt5MUBkJtcydUCdHM=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ hatchling ];
hatchling
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
@@ -41,9 +40,7 @@ buildPythonPackage rec {
"test_slow_file" "test_slow_file"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiofiles" ];
"aiofiles"
];
meta = with lib; { meta = with lib; {
description = "File support for asyncio"; description = "File support for asyncio";

View File

@@ -1,14 +1,15 @@
{ lib {
, aiohttp lib,
, aresponses aiohttp,
, buildPythonPackage aresponses,
, fetchFromGitHub buildPythonPackage,
, fetchpatch fetchFromGitHub,
, poetry-core fetchpatch,
, pytest-aiohttp poetry-core,
, pytest-asyncio pytest-aiohttp,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -39,13 +40,9 @@ buildPythonPackage rec {
}) })
]; ];
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [ aiohttp ];
aiohttp
];
__darwinAllowLocalNetworking = true; __darwinAllowLocalNetworking = true;
@@ -56,9 +53,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioflo" ];
"aioflo"
];
meta = with lib; { meta = with lib; {
description = "Python library for Flo by Moen Smart Water Detectors"; description = "Python library for Flo by Moen Smart Water Detectors";

View File

@@ -1,14 +1,15 @@
{ lib {
, stdenv lib,
, async-timeout stdenv,
, buildPythonPackage async-timeout,
, fetchPypi buildPythonPackage,
, pytest-asyncio fetchPypi,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
, siosocks setuptools,
, trustme siosocks,
trustme,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,18 +29,12 @@ buildPythonPackage rec {
--replace " --cov" "" --replace " --cov" ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ setuptools ];
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [ siosocks ];
siosocks
];
passthru.optional-dependencies = { passthru.optional-dependencies = {
socks = [ socks = [ siosocks ];
siosocks
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
@@ -54,9 +49,7 @@ buildPythonPackage rec {
"test_pasv_connection_pasv_forced_response_address" "test_pasv_connection_pasv_forced_response_address"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aioftp" ];
"aioftp"
];
meta = with lib; { meta = with lib; {
description = "Python FTP client/server for asyncio"; description = "Python FTP client/server for asyncio";

View File

@@ -1,15 +1,16 @@
{ lib {
, aiohttp lib,
, aresponses aiohttp,
, async-timeout aresponses,
, backoff async-timeout,
, buildPythonPackage backoff,
, fetchFromGitHub buildPythonPackage,
, poetry-core fetchFromGitHub,
, pytest-asyncio poetry-core,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, sigstore pythonOlder,
sigstore,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -37,9 +38,7 @@ buildPythonPackage rec {
--replace 'sigstore = "<2"' 'sigstore = "*"' --replace 'sigstore = "<2"' 'sigstore = "*"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -54,17 +53,13 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pytestFlagsArray = [ pytestFlagsArray = [ "--asyncio-mode=auto" ];
"--asyncio-mode=auto"
];
preCheck = '' preCheck = ''
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "aiogithubapi" ];
"aiogithubapi"
];
disabledTests = [ disabledTests = [
# sigstore.errors.TUFError: Failed to refresh TUF metadata # sigstore.errors.TUFError: Failed to refresh TUF metadata

View File

@@ -1,17 +1,18 @@
{ lib {
, aiohttp lib,
, async-timeout aiohttp,
, asyncio-dgram async-timeout,
, buildPythonPackage asyncio-dgram,
, certifi buildPythonPackage,
, docutils certifi,
, fetchFromGitHub docutils,
, poetry-core fetchFromGitHub,
, pytest-aiohttp poetry-core,
, pytest-asyncio pytest-aiohttp,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
, voluptuous pythonOlder,
voluptuous,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -28,9 +29,7 @@ buildPythonPackage rec {
hash = "sha256-7fY8+aAxlDtOBLu8SadY5qiH6+RvxnFpOw1RXTonP2o="; hash = "sha256-7fY8+aAxlDtOBLu8SadY5qiH6+RvxnFpOw1RXTonP2o=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
@@ -48,13 +47,9 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
disabledTestPaths = [ disabledTestPaths = [ "examples/" ];
"examples/"
];
pythonImportsCheck = [ pythonImportsCheck = [ "aioguardian" ];
"aioguardian"
];
meta = with lib; { meta = with lib; {
description = " Python library to interact with Elexa Guardian devices"; description = " Python library to interact with Elexa Guardian devices";

View File

@@ -1,20 +1,21 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, pythonOlder fetchFromGitHub,
pythonOlder,
# build-system # build-system
, poetry-core poetry-core,
# optional-dependencies # optional-dependencies
, furo furo,
, myst-parser myst-parser,
, sphinx-autobuild sphinx-autobuild,
, sphinxHook sphinxHook,
# tests # tests
, pytest-asyncio pytest-asyncio,
, pytestCheckHook pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -41,9 +42,7 @@ buildPythonPackage rec {
--replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" "" --replace " --cov=aiohappyeyeballs --cov-report=term-missing:skip-covered" ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ] ++ passthru.optional-dependencies.docs;
poetry-core
] ++ passthru.optional-dependencies.docs;
passthru.optional-dependencies = { passthru.optional-dependencies = {
docs = [ docs = [
@@ -59,9 +58,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiohappyeyeballs" ];
"aiohappyeyeballs"
];
disabledTestPaths = [ disabledTestPaths = [
# https://github.com/bdraco/aiohappyeyeballs/issues/30 # https://github.com/bdraco/aiohappyeyeballs/issues/30
@@ -73,6 +70,9 @@ buildPythonPackage rec {
homepage = "https://github.com/bdraco/aiohappyeyeballs"; homepage = "https://github.com/bdraco/aiohappyeyeballs";
changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/bdraco/aiohappyeyeballs/blob/v${version}/CHANGELOG.md";
license = licenses.psfl; license = licenses.psfl;
maintainers = with maintainers; [ fab hexa ]; maintainers = with maintainers; [
fab
hexa
];
}; };
} }

View File

@@ -1,10 +1,11 @@
{ lib {
, aiohttp lib,
, async-timeout aiohttp,
, buildPythonPackage async-timeout,
, fetchPypi buildPythonPackage,
, pythonOlder fetchPypi,
, slixmpp pythonOlder,
slixmpp,
}: }:
buildPythonPackage rec { buildPythonPackage rec {

View File

@@ -1,21 +1,22 @@
{ lib {
, buildPythonPackage lib,
, aiocoap buildPythonPackage,
, aiohappyeyeballs aiocoap,
, async-interrupt aiohappyeyeballs,
, bleak async-interrupt,
, bleak-retry-connector bleak,
, chacha20poly1305 bleak-retry-connector,
, chacha20poly1305-reuseable chacha20poly1305,
, commentjson chacha20poly1305-reuseable,
, cryptography commentjson,
, fetchFromGitHub cryptography,
, orjson fetchFromGitHub,
, poetry-core orjson,
, pytest-aiohttp poetry-core,
, pytestCheckHook pytest-aiohttp,
, pythonOlder pytestCheckHook,
, zeroconf pythonOlder,
zeroconf,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -32,9 +33,7 @@ buildPythonPackage rec {
hash = "sha256-F3PhZsuIgT3x1Y3/kx9juPwN2WKxvdbahrRm+r6ZPps="; hash = "sha256-F3PhZsuIgT3x1Y3/kx9juPwN2WKxvdbahrRm+r6ZPps=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiocoap aiocoap
@@ -73,9 +72,7 @@ buildPythonPackage rec {
"test_discover_device_id_case_upper" "test_discover_device_id_case_upper"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiohomekit" ];
"aiohomekit"
];
meta = with lib; { meta = with lib; {
description = "Python module that implements the HomeKit protocol"; description = "Python module that implements the HomeKit protocol";

View File

@@ -1,16 +1,17 @@
{ lib {
, aiohttp lib,
, apispec aiohttp,
, buildPythonPackage apispec,
, callPackage buildPythonPackage,
, fetchFromGitHub callPackage,
, fetchPypi fetchFromGitHub,
, jinja2 fetchPypi,
, packaging jinja2,
, pytest-aiohttp packaging,
, pytestCheckHook pytest-aiohttp,
, pythonOlder pytestCheckHook,
, webargs pythonOlder,
webargs,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -40,9 +41,7 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiohttp_apispec" ];
"aiohttp_apispec"
];
meta = with lib; { meta = with lib; {
description = "Build and document REST APIs with aiohttp and apispec"; description = "Build and document REST APIs with aiohttp and apispec";

View File

@@ -1,10 +1,11 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
, aiohttp fetchFromGitHub,
, pytestCheckHook aiohttp,
, pytest-asyncio pytestCheckHook,
, pythonOlder pytest-asyncio,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -21,9 +22,7 @@ buildPythonPackage rec {
hash = "sha256-UaRzauHmBHYwXFqRwDn1py79BScqq5j5SWALM4dQBP4="; hash = "sha256-UaRzauHmBHYwXFqRwDn1py79BScqq5j5SWALM4dQBP4=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ aiohttp ];
aiohttp
];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook

View File

@@ -1,11 +1,12 @@
{ lib {
, fetchPypi lib,
, buildPythonPackage fetchPypi,
, poetry-core buildPythonPackage,
, aiohttp poetry-core,
, attrs aiohttp,
, itsdangerous attrs,
, url-normalize itsdangerous,
url-normalize,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -16,9 +17,7 @@ buildPythonPackage rec {
inherit pname version; inherit pname version;
sha256 = "sha256-B2b/9O2gVJjHUlN0pYeBDcwsy3slaAnd5SroeQqEU+s="; sha256 = "sha256-B2b/9O2gVJjHUlN0pYeBDcwsy3slaAnd5SroeQqEU+s=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
aiohttp aiohttp
attrs attrs

View File

@@ -1,5 +1,10 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder {
, typing ? null, aiohttp lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
typing ? null,
aiohttp,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -14,8 +19,7 @@ buildPythonPackage rec {
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
propagatedBuildInputs = [ aiohttp ] propagatedBuildInputs = [ aiohttp ] ++ lib.optional (pythonOlder "3.5") typing;
++ lib.optional (pythonOlder "3.5") typing;
# Requires network access # Requires network access
doCheck = false; doCheck = false;

View File

@@ -1,11 +1,12 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchFromGitHub buildPythonPackage,
, poetry-core fetchFromGitHub,
, pytest-asyncio poetry-core,
, pytestCheckHook pytest-asyncio,
, pythonOlder pytestCheckHook,
pythonOlder,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -27,22 +28,16 @@ buildPythonPackage rec {
--replace " --cov=aiohttp_fast_url_dispatcher --cov-report=term-missing:skip-covered" "" --replace " --cov=aiohttp_fast_url_dispatcher --cov-report=term-missing:skip-covered" ""
''; '';
nativeBuildInputs = [ nativeBuildInputs = [ poetry-core ];
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [ aiohttp ];
aiohttp
];
nativeCheckInputs = [ nativeCheckInputs = [
pytest-asyncio pytest-asyncio
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiohttp_fast_url_dispatcher" ];
"aiohttp_fast_url_dispatcher"
];
meta = with lib; { meta = with lib; {
description = "A faster URL dispatcher for aiohttp"; description = "A faster URL dispatcher for aiohttp";

View File

@@ -1,16 +1,17 @@
{ lib {
, buildPythonPackage lib,
, fetchFromGitHub buildPythonPackage,
fetchFromGitHub,
# build-system # build-system
, poetry-core poetry-core,
# dependencies # dependencies
, aiohttp aiohttp,
, isal isal,
# tests # tests
, pytestCheckHook pytestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -25,26 +26,20 @@ buildPythonPackage rec {
hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U="; hash = "sha256-rSXV5Z5JdznQGtRI83UIbaSfbIYkUHphJTVK/LM2V4U=";
}; };
build-system = [ build-system = [ poetry-core ];
poetry-core
];
dependencies = [ dependencies = [
aiohttp aiohttp
isal isal
]; ];
nativeCheckInputs = [ nativeCheckInputs = [ pytestCheckHook ];
pytestCheckHook
];
preCheck = '' preCheck = ''
sed -i '/addopts/d' pyproject.toml sed -i '/addopts/d' pyproject.toml
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "aiohttp_isal" ];
"aiohttp_isal"
];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/bdraco/aiohttp-isal/blob/${src.rev}/CHANGELOG.md";

View File

@@ -1,12 +1,13 @@
{ lib {
, aiohttp lib,
, buildPythonPackage aiohttp,
, fetchPypi buildPythonPackage,
, jinja2 fetchPypi,
, pytest-aiohttp jinja2,
, pytestCheckHook pytest-aiohttp,
, pythonOlder pytestCheckHook,
, setuptools pythonOlder,
setuptools,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@@ -21,9 +22,7 @@ buildPythonPackage rec {
hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI="; hash = "sha256-o6f/UmTlvKUuiuVHu/0HYbcklSMNQ40FtsCRW+YZsOI=";
}; };
build-system = [ build-system = [ setuptools ];
setuptools
];
dependencies = [ dependencies = [
aiohttp aiohttp
@@ -45,9 +44,7 @@ buildPythonPackage rec {
"ignore::DeprecationWarning" "ignore::DeprecationWarning"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [ "aiohttp_jinja2" ];
"aiohttp_jinja2"
];
meta = with lib; { meta = with lib; {
description = "Jinja2 support for aiohttp"; description = "Jinja2 support for aiohttp";

Some files were not shown because too many files have changed in this diff Show More