Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions pkgs/development/python-modules/aioguardian/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, buildPythonPackage
, docutils
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-aiohttp
, pytest-asyncio
Expand All @@ -27,6 +28,20 @@ buildPythonPackage rec {
hash = "sha256-plgO+pyKmG0mYnFZxDcrENcuEg5AG2Og2xWipzuzyHo=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aioguardian/pull/288
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aioguardian/commit/ffaad4b396645f599815010995fb71ca976e761e.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
poetry-core
];
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/python-modules/aionotion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pydantic
, pytest-aiohttp
Expand All @@ -26,6 +27,20 @@ buildPythonPackage rec {
hash = "sha256-/2sF8m5R8YXkP89bi5zR3h13r5LrFOl1OsixAcX0D4o=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aionotion/pull/269
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aionotion/commit/53c7285110d12810f9b43284295f71d052a81b83.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
poetry-core
];
Expand All @@ -35,6 +50,8 @@ buildPythonPackage rec {
pydantic
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-aiohttp
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/python-modules/aiopurpleair/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pydantic
, pytest-aiohttp
Expand All @@ -25,6 +26,20 @@ buildPythonPackage rec {
hash = "sha256-YmJH4brWkTpgzyHwu9UnIWrY5qlDCmMtvF+KxQFXwfk=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aiopurpleair/pull/207
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aiopurpleair/commit/8c704c51ea50da266f52a7f53198d29d643b30c5.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'pydantic = "^1.10.2"' 'pydantic = "*"'
Expand All @@ -39,6 +54,8 @@ buildPythonPackage rec {
pydantic
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-aiohttp
Expand Down
27 changes: 25 additions & 2 deletions pkgs/development/python-modules/aiorecollect/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, freezegun
, poetry-core
, pytest-asyncio
Expand All @@ -12,7 +13,7 @@

buildPythonPackage rec {
pname = "aiorecollect";
version = "2022.10.0";
version = "2023.08.0";
format = "pyproject";

disabled = pythonOlder "3.7";
Expand All @@ -21,9 +22,29 @@ buildPythonPackage rec {
owner = "bachya";
repo = pname;
rev = version;
hash = "sha256-JIh6jr4pFXGZTUi6K7VsymaCxCrTNBevk9xo9TsrFnM=";
hash = "sha256-oTkWirq3w0DgQWWe0ziK+ry4pg6j6SQbBESLG4xgDE4=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aiorecollect/pull/207
#
(fetchpatch {
name = "clean-up-dependencies.patch";
url = "https://github.com/bachya/aiorecollect/commit/0bfddead1c1b176be4d599b8e12ed608eac97b8b.patch";
hash = "sha256-w/LAtyuyYsAAukDeIy8XLlp9QrydC1Wmi2zxEj1Zdm8=";
includes = [ "pyproject.toml" ];
})
];

postPatch = ''
# this is not used directly by the project
sed -i '/certifi =/d' pyproject.toml
'';

nativeBuildInputs = [
poetry-core
];
Expand All @@ -32,6 +53,8 @@ buildPythonPackage rec {
aiohttp
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
freezegun
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/python-modules/aioridwell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, freezegun
, poetry-core
, pyjwt
Expand All @@ -29,6 +30,20 @@ buildPythonPackage rec {
hash = "sha256-8EPELXxSq+B9o9eMFeM5ZPVYTa1+kT/S6cO7hKtD18s=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aioridwell/pull/234
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aioridwell/commit/79a9dd7462dcfeb0833abca73a1f184827120a6f.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
poetry-core
];
Expand All @@ -40,6 +55,8 @@ buildPythonPackage rec {
titlecase
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
freezegun
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/python-modules/aiowatttime/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-aiohttp
, pytest-asyncio
Expand All @@ -24,6 +25,20 @@ buildPythonPackage rec {
hash = "sha256-rqmsUvVwXC/XkR/v2d9d3t7u6Poms4ORiOci41ajXIo=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/aiowatttime/pull/206
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/aiowatttime/commit/c3cd53f794964c5435148caacd04f4e0ab8f550a.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
poetry-core
];
Expand All @@ -32,6 +47,8 @@ buildPythonPackage rec {
aiohttp
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-aiohttp
Expand Down
25 changes: 17 additions & 8 deletions pkgs/development/python-modules/py17track/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ lib
, aiohttp
, aresponses
, async-timeout
, attrs
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-asyncio
, pytestCheckHook
Expand All @@ -26,29 +26,38 @@ buildPythonPackage rec {
hash = "sha256-T0Jjdu6QC8rTqZwe4cdsBbs0hQXUY6CkrImCgYwWL9o=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/py17track/pull/80
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/py17track/commit/3b52394759aa50c62e2a56581e30cdb94003e2f1.patch";
hash = "sha256-iLgklhEZ61rrdzQoO6rp1HGZcqLsqGNitwIiPNLNHQ4=";
})
];

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
aiohttp
async-timeout
attrs
pytz
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'attrs = ">=19.3,<21.0"' 'attrs = ">=19.3,<22.0"' \
--replace 'async-timeout = "^3.0.1"' 'async-timeout = ">=3.0.1,<5.0.0"'
'';

disabledTestPaths = [
# Ignore the examples directory as the files are prefixed with test_
"examples/"
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/python-modules/pyiqvia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, aresponses
, backoff
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-aiohttp
, pytest-asyncio
Expand All @@ -25,6 +26,20 @@ buildPythonPackage rec {
hash = "sha256-4xoK/SwpcsjIpGUertWoSlRsKIpgpV1XmuIzDJcZMZg=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/pyiqvia/pull/245
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/pyiqvia/commit/760d5bd1f4d60f3a97f6ea9a9a57860f4be3abdd.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
poetry-core
];
Expand All @@ -34,6 +49,8 @@ buildPythonPackage rec {
backoff
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-aiohttp
Expand Down
13 changes: 13 additions & 0 deletions pkgs/development/python-modules/pyopenuv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ buildPythonPackage rec {
url = "https://github.com/bachya/pyopenuv/commit/af15736b0d82ef811c3f380f5da32007752644fe.patch";
hash = "sha256-5uQS3DoM91mhfyxLTNii3JBxwXIDK4/GwtadkVagjuw=";
})
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/pyopenuv/pull/244
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/pyopenuv/commit/1663f697dd5528fb03af1400e5ffd3fba076c64c.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
Expand All @@ -44,6 +55,8 @@ buildPythonPackage rec {
backoff
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-asyncio
Expand Down
17 changes: 17 additions & 0 deletions pkgs/development/python-modules/pyoutbreaksnearme/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, aresponses
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytest-asyncio
, pytest-aiohttp
Expand All @@ -25,6 +26,20 @@ buildPythonPackage rec {
hash = "sha256-D7oXkKDSg+yF+j1WyG/VVY12hLU6oyhEtxLrF6IkMSA=";
};

patches = [
# This patch removes references to setuptools and wheel that are no longer
# necessary and changes poetry to poetry-core, so that we don't need to add
# unnecessary nativeBuildInputs.
#
# https://github.com/bachya/pyoutbreaksnearme/pull/174
#
(fetchpatch {
name = "clean-up-build-dependencies.patch";
url = "https://github.com/bachya/pyoutbreaksnearme/commit/45fba9f689253a0f79ebde93086ee731a4151553.patch";
hash = "sha256-RLRbHmaR2A8MNc96WHx0L8ccyygoBUaOulAuRJkFuUM=";
})
];

nativeBuildInputs = [
poetry-core
];
Expand All @@ -34,6 +49,8 @@ buildPythonPackage rec {
ujson
];

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-asyncio
Expand Down
Loading