Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.twisted: 24.3.0 -> 24.7.0 #335112

Merged
merged 8 commits into from
Aug 19, 2024
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
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/aioazuredevops/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ buildPythonPackage rec {
hash = "sha256-1v58I9WOyyrp9n+qdvVeMZ3EObqP/06XCOZYS0nEvPU=";
};

postPatch = ''
substituteInPlace requirements_setup.txt \
--replace-fail "==" ">="
'';

build-system = [
incremental
setuptools
Expand Down
17 changes: 11 additions & 6 deletions pkgs/development/python-modules/aiolyric/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
fetchFromGitHub,
incremental,
pythonOlder,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
Expand All @@ -24,7 +25,15 @@ buildPythonPackage rec {
hash = "sha256-pN/F4Rdov06sm1yfJQEzmWyujWVeVU+bNGGkgnN4jYw=";
};

build-system = [ setuptools ];
postPatch = ''
substituteInPlace requirements_setup.txt \
--replace-fail "==" ">="
'';
mweinelt marked this conversation as resolved.
Show resolved Hide resolved

build-system = [
incremental
setuptools
];

dependencies = [
aiohttp
Expand All @@ -33,14 +42,10 @@ buildPythonPackage rec {

nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];

disabledTests = [
# AssertionError, https://github.com/timmo001/aiolyric/issues/61
"test_priority"
];

pythonImportsCheck = [ "aiolyric" ];

meta = with lib; {
Expand Down
10 changes: 10 additions & 0 deletions pkgs/development/python-modules/daphne/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
buildPythonPackage,
django,
fetchFromGitHub,
fetchpatch2,
hypothesis,
pytest-asyncio,
pytestCheckHook,
Expand All @@ -28,6 +29,15 @@ buildPythonPackage rec {
hash = "sha256-RAK2CaKKVmVIv1MBK+9xyADOrHq664MQOry4KaGTNCw=";
};

patches = [
# https://github.com/django/daphne/pull/526
(fetchpatch2 {
name = "fix-tests-with-Twisted-24.7.0.patch";
url = "https://github.com/django/daphne/commit/0370c7a0937011d5345b14d484ec171d3ae9f875.patch";
hash = "sha256-/3d2pRcEtGvINGHRQF3RZ8IVIETSZb6rhf+ZHUFSQQo=";
})
];

postPatch = ''
substituteInPlace setup.cfg \
--replace-fail "pytest-runner" ""
Expand Down
40 changes: 27 additions & 13 deletions pkgs/development/python-modules/incremental/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
{
lib,
buildPythonPackage,
fetchPypi,
click,
fetchFromGitHub,
lib,
pythonOlder,
setuptools,
tomli,
twisted,
}:

let
incremental = buildPythonPackage rec {
pname = "incremental";
version = "22.10.0";
format = "setuptools";

src = fetchPypi {
inherit pname version;
hash = "sha256-kS/uteD34BiOb0IkHS9FAALhG7wJN8ZYZQRYVMJMC9A=";
version = "24.7.2";
pyproject = true;

src = fetchFromGitHub {
owner = "twisted";
repo = "incremental";
rev = "refs/tags/incremental-${version}";
hash = "sha256-5MlIKUaBUwLTet23Rjd2Opf5e54LcHuZDowcGon0lOE=";
};

propagatedBuildInputs = [ click ];
# From upstream's pyproject.toml:
# "Keep this aligned with the project dependencies."
build-system = dependencies;

dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];

optional-dependencies = {
scripts = [ click ];
};

# escape infinite recursion with twisted
doCheck = false;
Expand All @@ -36,11 +49,12 @@ let

pythonImportsCheck = [ "incremental" ];

meta = with lib; {
meta = {
changelog = "https://github.com/twisted/incremental/blob/${src.rev}/NEWS.rst";
homepage = "https://github.com/twisted/incremental";
description = "Incremental is a small library that versions your Python projects";
license = licenses.mit;
maintainers = [ ];
description = "Small library that versions your Python projects";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
};
in
Expand Down
10 changes: 9 additions & 1 deletion pkgs/development/python-modules/ovoenergy/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ buildPythonPackage rec {
hash = "sha256-ZcTSf7UejEUqQo0qEXP3fWjZYRx0a3ZBNVkwS2dL3Yk=";
};

build-system = [ setuptools ];
postPatch = ''
substituteInPlace requirements_setup.txt \
--replace-fail "==" ">="
'';

build-system = [
incremental
setuptools
];

nativeBuildInputs = [ incremental ];

Expand Down
Loading