Skip to content
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/bqplot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, pythonOlder
, fetchPypi
, jupyter-packaging
, jupyterlab
, bqscales
, ipywidgets
, numpy
Expand All @@ -23,8 +24,17 @@ buildPythonPackage rec {
hash = "sha256-FNjeb5pNGUW76mwTIOpNHJMlb3JoN3T24AINzFefPdI=";
};

# upstream seems in flux for 0.13 release. they seem to want to migrate from
# jupyter_packaging to hatch, so let's patch instead of fixing upstream
postPatch = ''
substituteInPlace pyproject.toml \
--replace "jupyter_packaging~=" "jupyter_packaging>=" \
--replace "jupyterlab~=" "jupyterlab>="
'';

nativeBuildInputs = [
jupyter-packaging
jupyterlab
];

propagatedBuildInputs = [
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/django-scim2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ buildPythonPackage rec {
hash = "sha256-larDh4f9/xVr11/n/WfkJ2Tx45DMQqyK3ZzkWAvzeig=";
};

# remove this when upstream releases a new version > 0.19.0
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry>=0.12" "poetry-core>=1.5.2" \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, jupyter-server
, jupyter-server-fileid
, jupyter-ydoc
, jupyterlab
, ypy-websocket
, pytest-asyncio
, pytest-jupyter
Expand Down Expand Up @@ -38,6 +39,7 @@ buildPythonPackage rec {
hatch-jupyter-builder
hatch-nodejs-version
hatchling
jupyterlab
pythonRelaxDepsHook
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@
, pytestCheckHook
, pythonOlder
, pytz
, setuptools
, wheel
, tornado
}:

buildPythonPackage rec {
pname = "python-telegram-bot";
version = "20.4";
format = "setuptools";
format = "pyproject";

disabled = pythonOlder "3.8";

Expand All @@ -31,6 +33,11 @@ buildPythonPackage rec {
hash = "sha256-owbJJZjBkMjsgfBLRl+rnePrIvQ0sUZs7rP9ie912pw=";
};

nativeBuildInputs = [
setuptools
wheel
];

propagatedBuildInputs = [
aiolimiter
apscheduler
Expand Down
18 changes: 16 additions & 2 deletions pkgs/development/python-modules/qcodes-loop/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{ lib
, fetchpatch
, fetchPypi
, pythonOlder
, buildPythonPackage
Expand All @@ -8,7 +9,9 @@
, matplotlib
, numpy
, pandas
, setuptools
, versioningit
, wheel
, xarray
, hickle
, ipython
Expand All @@ -24,18 +27,29 @@
buildPythonPackage rec {
pname = "qcodes-loop";
version = "0.1.1";
format = "pyproject";

disabled = pythonOlder "3.8";
format = "pyproject";

src = fetchPypi {
inherit version;
pname = "qcodes_loop";
sha256 = "sha256-pDR0Ws8cYQifftdE9dKcSzMxmouFo4tJmQvNanm6zyM=";
hash = "sha256-pDR0Ws8cYQifftdE9dKcSzMxmouFo4tJmQvNanm6zyM=";
};

patches = [
# https://github.com/QCoDeS/Qcodes_loop/pull/39
(fetchpatch {
name = "relax-versioningit-dependency.patch";
url = "https://github.com/QCoDeS/Qcodes_loop/commit/58006d3fb57344ae24dd44bceca98004617b5b57.patch";
hash = "sha256-mSlm/Ql8e5xPL73ifxSoVc9+U58AAcAmBkdW5P6zEsg=";
})
];

nativeBuildInputs = [
setuptools
versioningit
wheel
];

propagatedBuildInputs = [
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/soxr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
, buildPythonPackage
, fetchFromGitHub

# build-sytem
# build-system
, cython_3
, numpy
, oldest-supported-numpy
, setuptools
, setuptools-scm
, gnutar
Expand All @@ -29,12 +30,13 @@ buildPythonPackage rec {
hash = "sha256-q/K7XlqvDHAna+fqN6iiJ9wD8efsuwHiEfKjXS46jz8=";
};

SETUPTOOLS_SCM_PRETEND_VERSION = version;
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

nativeBuildInputs = [
cython_3
gnutar
numpy
oldest-supported-numpy
setuptools
setuptools-scm
];
Expand Down
14 changes: 13 additions & 1 deletion pkgs/tools/backup/gphotos-sync/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,19 @@ python3.pkgs.buildPythonApplication rec {
./skip-network-tests.patch
];

nativeBuildInputs = [ python3.pkgs.pythonRelaxDepsHook ];
# Consider fixing this upstream by following up on:
# https://github.com/gilesknap/gphotos-sync/issues/441
postPatch = ''
substituteInPlace pyproject.toml \
--replace "setuptools<57" "setuptools" \
--replace "wheel==0.33.1" "wheel"
'';

nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
setuptools
wheel
];

pythonRelaxDeps = [
"psutil"
Expand Down
6 changes: 6 additions & 0 deletions pkgs/tools/security/apachetomcatscanner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-ChVVXUjm6y71iRs64Kv63oiOG1GSqmx6J0YiGtEI0ao=";
};

# Posted a PR for discussion upstream that can be followed:
# https://github.com/p0dalirius/ApacheTomcatScanner/pull/32
postPatch = ''
sed -i '/apachetomcatscanner=apachetomcatscanner\.__main__:main/d' setup.py
'';

propagatedBuildInputs = with python3.pkgs; [
requests
sectools
Expand Down
5 changes: 4 additions & 1 deletion pkgs/tools/virtualization/mkosi/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ lib
, fetchFromGitHub
, setuptools
, setuptools-scm
, wheel
, buildPythonApplication
, pytestCheckHook
, bubblewrap
Expand Down Expand Up @@ -41,9 +43,10 @@ buildPythonApplication rec {

nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];


propagatedBuildInputs = [
systemdForMkosi
bubblewrap
Expand Down