Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
58cc225
python3.pkgs.flask-reverse-proxy: fix invalid version number when bui…
tjni Aug 23, 2023
137c453
python3.pkgs.flask-security-too: fix tests with setuptools 67.5.0+
tjni Aug 23, 2023
4805086
python3.pkgs.pyinsteon: relax setuptools dependency
tjni Aug 23, 2023
a25d553
python3.pkgs.pypck: relax setuptools dependency
tjni Aug 23, 2023
333c180
python3.pkgs.python-creole: replace poetry with poetry-core
tjni Aug 23, 2023
f851b3a
python3.pkgs.python-homewizard-energy: remove setuptools dependency
tjni Aug 23, 2023
b7df9ed
python3.pkgs.python-otbr-api: relax setuptools dependency
tjni Aug 23, 2023
5f00ddc
python3.pkgs.python-vagrant: 1.0.0 -> 1.1.0
tjni Aug 23, 2023
95197fe
python3.pkgs.pyvisa-sim: add missing build dependencies
tjni Aug 23, 2023
f7d1a97
python3.pkgs.repoze_sphinx_autointerface: add missing test dependencies
tjni Aug 23, 2023
f0ed49f
python3.pkgs.riscv-config: removing dangling pip import
tjni Aug 23, 2023
8a79c8e
python3.pkgs.rst2pdf: add missing build dependencies
tjni Aug 23, 2023
87239a0
python3.pkgs.scikit-misc: add and relax build dependencies
tjni Aug 23, 2023
24fcb50
python3.pkgs.scim2-filter-parser: replace poetry with poetry-core
tjni Aug 23, 2023
286e3eb
python3.pkgs.setupmeta: add missing dependencies
tjni Aug 23, 2023
68d5e2e
python3.pkgs.sphinxcontrib-spelling: add missing build dependencies
tjni Aug 23, 2023
3c734d8
python3.pkgs.stravalib: add missing build dependencies
tjni Aug 23, 2023
e800535
python3.pkgs.tweedledum: fix broken pyproject.toml
tjni Aug 23, 2023
db4ba9a
python3.pkgs.xlsx2csv: add missing build dependencies
tjni Aug 23, 2023
a81ac2a
python3.pkgs.xpath-expressions: replace poetry with poetry-core
tjni Aug 23, 2023
01578d5
tesh: replace poetry with poetry-core
tjni Aug 23, 2023
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
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, flask
, werkzeug
}:

buildPythonPackage rec {
pname = "flask-reverse-proxy-fix";
version = "0.2.1";
format = "setuptools";

# master fixes flask import syntax and has no major changes
# new release requested: https://github.com/sublee/flask-silk/pull/6
src = fetchFromGitHub {
owner = "antarctica";
repo = "flask-reverse-proxy-fix";
rev = "v${version}";
sha256 = "1jbr67cmnryn0igv05qkvqjwrwj2rsajvvjnv3cdkm9bkgb4h5k5";
hash = "sha256-ZRZI1psr1dnY2FbuLZXOQvLMJd4TF7BfBNZnW9kxeck=";
};

disabled = !isPy3k;

postPatch = ''
sed -i 's@werkzeug.contrib.fixers@werkzeug.middleware.proxy_fix@g' flask_reverse_proxy_fix/middleware/__init__.py
'';

# This is needed so that setup.py does not add "devNone" to the version,
# after which setuptools throws an error for an invalid version.
env.CI_COMMIT_TAG = "v${version}";

propagatedBuildInputs = [
flask
werkzeug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ buildPythonPackage rec {
hash = "sha256-lZzm43m30y+2qjxNddFEeg9HDlQP9afq5VtuR25zaLc=";
};

postPatch = ''
# This should be removed after updating to version 5.3.0.
sed -i '/filterwarnings =/a ignore:pkg_resources is deprecated:DeprecationWarning' pytest.ini
'';

propagatedBuildInputs = [
blinker
email-validator
Expand Down
12 changes: 12 additions & 0 deletions pkgs/development/python-modules/pyinsteon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
, async-generator
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pypubsub
, pyserial
, pyserial-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, voluptuous
, wheel
}:

buildPythonPackage rec {
Expand All @@ -27,8 +29,18 @@ buildPythonPackage rec {
hash = "sha256-KKF+XYQgdmLbbicyMFyZBG4ol69xAWCF2W/r15gH2Mo=";
};

patches = [
# https://github.com/pyinsteon/pyinsteon/pull/361
(fetchpatch {
name = "relax-setuptools-dependency.patch";
url = "https://github.com/pyinsteon/pyinsteon/commit/676bc5fff11b73a4c3fd189a6ac6d3de9ca21ae0.patch";
hash = "sha256-kTu1+IwDrcdqelyK/vfhxw8MQBis5I1jag7YTytKQhs=";
})
];

nativeBuildInputs = [
setuptools
wheel
];

propagatedBuildInputs = [
Expand Down
12 changes: 12 additions & 0 deletions pkgs/development/python-modules/pypck/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, wheel
}:

buildPythonPackage rec {
Expand All @@ -23,8 +25,18 @@ buildPythonPackage rec {
hash = "sha256-Vlt4+fRULb9mB0ceRmc7MJ50DnF9DAJPHA8iCbNVvcE=";
};

patches = [
# https://github.com/alengwenus/pypck/pull/109
(fetchpatch {
name = "relax-setuptools-dependency.patch";
url = "https://github.com/alengwenus/pypck/commit/17023ebe8082120b1eec086842ca809ec6e9df2b.patch";
hash = "sha256-kTu1+IwDrcdqelyK/vfhxw8MQBis5I1jag7YTytKQhs=";
})
];

nativeBuildInputs = [
setuptools
wheel
];

nativeCheckInputs = [
Expand Down
13 changes: 10 additions & 3 deletions pkgs/development/python-modules/python-creole/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, runtimeShell

# build
Expand All @@ -27,14 +28,20 @@ buildPythonPackage rec {
hash = "sha256-8pXOnLNjhIv0d+BqjW8wlb6BT6CmFHSsxn5wLOv3LBQ=";
};

patches = [
# https://github.com/jedie/python-creole/pull/77
(fetchpatch {
name = "replace-poetry-with-poetry-core.patch";
url = "https://github.com/jedie/python-creole/commit/bfc46730ab4a189f3142246cead8d26005a28671.patch";
hash = "sha256-WtoEQyu/154Cfj6eSnNA+t37+o7Ij328QGMKxwcLg5k=";
})
];

nativeBuildInputs = [
poetry-core
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"

substituteInPlace Makefile \
--replace "/bin/bash" "${runtimeShell}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, awesomeversion
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, protobuf
, pytest-asyncio
Expand All @@ -25,6 +26,15 @@ buildPythonPackage rec {
hash = "sha256-XTSnIL/hBL1Rsyv/tBce/WCvA3n7mZern0v3i6gTOeA=";
};

patches = [
# https://github.com/DCSBL/python-homewizard-energy/pull/235
(fetchpatch {
name = "remove-setuptools-dependency.patch";
url = "https://github.com/DCSBL/python-homewizard-energy/commit/b006b0bc1f3d0b4a7569654a1afa90dd4cffaf18.patch";
hash = "sha256-WQeepxiYnBfFcQAmrc3pavBz5j1Qo0HmUcOxsK/pr50=";
})
];

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

__darwinAllowLocalNetworking = true;

nativeCheckInputs = [
aresponses
pytest-asyncio
Expand Down
14 changes: 14 additions & 0 deletions pkgs/development/python-modules/python-otbr-api/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
, buildPythonPackage
, cryptography
, fetchFromGitHub
, fetchpatch
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
, voluptuous
, wheel
}:

buildPythonPackage rec {
Expand All @@ -24,8 +27,18 @@ buildPythonPackage rec {
hash = "sha256-bPN2h60ypjlKpXs1xDS7bZcGRXvatA3EdlAX/HLxxTM=";
};

patches = [
# https://github.com/home-assistant-libs/python-otbr-api/pull/68
(fetchpatch {
name = "relax-setuptools-dependency.patch";
url = "https://github.com/home-assistant-libs/python-otbr-api/commit/37eb19c12d17ac7d040ded035d8401def872fbda.patch";
hash = "sha256-JGsaLQNbUfz0uK/MeGnR2XTJDs4RnTOEg7BavfDPArg=";
})
];

nativeBuildInputs = [
setuptools
wheel
];

propagatedBuildInputs = [
Expand All @@ -36,6 +49,7 @@ buildPythonPackage rec {
];

nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];

Expand Down
18 changes: 13 additions & 5 deletions pkgs/development/python-modules/python-vagrant/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, setuptools
, setuptools-scm
, wheel
}:

buildPythonPackage rec {
version = "1.0.0";
version = "1.1.0";
pname = "python-vagrant";
format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-qP6TzPL/N+zJXsL0nqdKkabOc6TbShapjdJtOXz9CeU=";
src = fetchFromGitHub {
owner = "pycontribs";
repo = "python-vagrant";
rev = "refs/tags/v${version}";
hash = "sha256-apvYzH0IY6ZyUP/FiOVbGN3dXejgN7gn7Mq2tlEaTww=";
};

env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];

# The tests try to connect to qemu
Expand Down
11 changes: 10 additions & 1 deletion pkgs/development/python-modules/pyvisa-sim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
, stringparser
, typing-extensions
, pytestCheckHook
, setuptools
, setuptools-scm
, wheel
}:

buildPythonPackage rec {
Expand All @@ -19,9 +22,15 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "PyVISA-sim";
inherit version;
sha256 = "sha256-vWxW941/1e58pqL/Rzq+eoZJpwsvLphgIe48SuJtohY=";
hash = "sha256-vWxW941/1e58pqL/Rzq+eoZJpwsvLphgIe48SuJtohY=";
};

nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];

propagatedBuildInputs = [
pyvisa
pyyaml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, zope_interface
, zope_testrunner
, sphinx
}:

buildPythonPackage rec {
pname = "repoze.sphinx.autointerface";
version = "1.0.0";
format = "setuptools";

src = fetchPypi {
inherit pname version;
hash = "sha256-SGvxQjpGlrkVPkiM750ybElv/Bbd6xSwyYh7RsYOKKE=";
};

propagatedBuildInputs = [ zope_interface sphinx ];
propagatedBuildInputs = [
zope_interface
sphinx
];

nativeCheckInputs = [
pytestCheckHook
zope_testrunner
];

meta = with lib; {
homepage = "https://github.com/repoze/repoze.sphinx.autointerface";
Expand Down
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/riscv-config/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ buildPythonPackage
, fetchFromGitHub
, fetchpatch
, lib
, cerberus
, pyyaml
Expand All @@ -9,6 +10,7 @@
buildPythonPackage rec {
pname = "riscv-config";
version = "3.5.2";
format = "setuptools";

src = fetchFromGitHub {
owner = "riscv-software-src";
Expand All @@ -17,6 +19,15 @@ buildPythonPackage rec {
hash = "sha256-K7W6yyqy/2c4WHyOojuvw2P/v7bND5K6WFfTujkofBw=";
};

patches = [
# Remove when updating to v3.8.0+
(fetchpatch {
name = "remove-dangling-pip-import.patch";
url = "https://github.com/riscv-software-src/riscv-config/commit/f75e7e13fe600b71254b0391be015ec533d3c3ef.patch";
hash = "sha256-oVRynBIJevq3UzlMDRh2rVuBJZoEwEYhDma3Bb/QV2E=";
})
];

propagatedBuildInputs = [ cerberus pyyaml ruamel-yaml ];

meta = with lib; {
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/python-modules/rst2pdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
, wheel
, docutils
, importlib-metadata
, jinja2
Expand All @@ -19,18 +21,19 @@
buildPythonPackage rec {
pname = "rst2pdf";
version = "0.101";

format = "pyproject";

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

outputs = [ "out" "man" ];

nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];

propagatedBuildInputs = [
Expand Down
Loading