python312Packages.ircrobots: 0.6.0 -> 0.7.2 (#344884)

This commit is contained in:
Martin Weinelt 2024-10-02 12:59:22 +02:00 committed by GitHub
commit bbaa8c9676
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 45 additions and 41 deletions

View File

@ -1,8 +1,9 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
pythonOlder,
setuptools,
pytestCheckHook,
pytest-asyncio,
pytest-mock,
@ -10,17 +11,20 @@
buildPythonPackage rec {
pname = "async-stagger";
version = "0.3.1";
format = "setuptools";
version = "0.4.0.post1";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.11";
src = fetchPypi {
pname = "async_stagger";
inherit version;
hash = "sha256-qp81fp79J36aUWqUvegSStXkZ+m8Zcn62qrJjpVqQ9Y=";
src = fetchFromGitHub {
owner = "twisteroidambassador";
repo = "async_stagger";
rev = "refs/tags/v${version}";
hash = "sha256-uJohc3EsAKevqT0J+N0Cqop3xy0PCM5jsP6YYtx+HuQ=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
@ -28,8 +32,8 @@ buildPythonPackage rec {
];
disabledTests = [
# RuntimeError: Logic bug in...
"test_stagger_coro_gen"
# "OSError: [Errno 0] fileno not supported" during teardown
"test_create_connected_sock_normal"
];
pythonImportsCheck = [ "async_stagger" ];

View File

@ -2,33 +2,31 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
anyio,
asyncio-rlock,
asyncio-throttle,
ircstates,
async-stagger,
async-timeout,
python,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "ircrobots";
version = "0.6.6";
format = "setuptools";
disabled = pythonOlder "3.7";
version = "0.7.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jesopo";
repo = pname;
rev = "v${version}";
hash = "sha256-mIh3tERwHtGH9eA0AT8Lcnwp1Wn9lQhKkUjuZcOXO/c=";
hash = "sha256-slz4AH2Mi21N3aV+OrnoXoQsseS7arW2NuUZARQJsf0=";
};
postPatch = ''
# too specific pins https://github.com/jesopo/ircrobots/issues/3
sed -iE 's/anyio.*/anyio/' requirements.txt
'';
build-system = [ setuptools ];
pythonRelaxDeps = true;
propagatedBuildInputs = [
anyio
@ -39,9 +37,7 @@ buildPythonPackage rec {
async-timeout
];
checkPhase = ''
${python.interpreter} -m unittest test
'';
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "ircrobots" ];

View File

@ -2,36 +2,36 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
irctokens,
pendulum,
freezegun,
python,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "ircstates";
version = "0.12.1";
format = "setuptools";
disabled = pythonOlder "3.6"; # f-strings
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jesopo";
repo = pname;
rev = "v${version}";
hash = "sha256-F9yOY3YBacyoUzNTvPs7pxp6yNx08tiq1jWQKhGiagc=";
hash = "sha256-Mq9aOj6PXzPjaz3ofoPcAbur59oUWffmEg8aHt0v+0Q=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
irctokens
pendulum
];
nativeCheckInputs = [ freezegun ];
checkPhase = ''
${python.interpreter} -m unittest test
'';
nativeCheckInputs = [
freezegun
unittestCheckHook
];
pythonImportsCheck = [ "ircstates" ];

View File

@ -3,14 +3,16 @@
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pyyaml,
python,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "irctokens";
version = "2.0.2";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6"; # f-strings
src = fetchFromGitHub {
@ -20,10 +22,12 @@ buildPythonPackage rec {
hash = "sha256-Y9NBqxGUkt48hnXxsmfydHkJmWWb+sRrElV8C7l9bpw=";
};
nativeCheckInputs = [ pyyaml ];
checkPhase = ''
${python.interpreter} -m unittest test
'';
build-system = [ setuptools ];
nativeCheckInputs = [
pyyaml
unittestCheckHook
];
pythonImportsCheck = [ "irctokens" ];