Skip to content

Commit

Permalink
python313Packages.aniso8601: 9.0.1 -> 10.0.0 (#372587)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 10, 2025
2 parents a3c6ed7 + e14ef07 commit 0f95c71
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 26 deletions.
23 changes: 14 additions & 9 deletions pkgs/development/python-modules/aniso8601/default.nix
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
{
lib,
buildPythonPackage,
python-dateutil,
fetchPypi,
isPy3k,
mock,
pytestCheckHook,
python-dateutil,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "aniso8601";
version = "9.0.1";
format = "setuptools";
version = "10.0.0";
pyproject = true;

disabled = pythonOlder "3.10";

src = fetchPypi {
inherit pname version;
hash = "sha256-cuMRdmfu32aVG7LZP0KWpWuUsHioqVkFoFJhH7PxuXM=";
hash = "sha256-/x0PwjRmiMYsAVFUcTasMOMiiW7YrzFu92AsR9qUJs8=";
};

propagatedBuildInputs = [ python-dateutil ];
build-system = [ setuptools ];

dependencies = [ python-dateutil ];

nativeCheckInputs = [ pytestCheckHook ] ++ lib.optional (!isPy3k) mock;
nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "aniso8601" ];

meta = with lib; {
description = "Python Parser for ISO 8601 strings";
homepage = "https://bitbucket.org/nielsenb/aniso8601";
license = with licenses; [ bsd3 ];
changelog = "https://bitbucket.org/nielsenb/aniso8601/src/v${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
19 changes: 7 additions & 12 deletions pkgs/development/python-modules/graphene/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
lib,
aniso8601,
buildPythonPackage,
fetchFromGitHub,
setuptools,
Expand All @@ -11,42 +10,38 @@
pytest-mock,
pytest7CheckHook,
pythonOlder,
pytz,
snapshottest,
typing-extensions,
python-dateutil,
}:

buildPythonPackage rec {
pname = "graphene";
version = "3.3.0";
version = "3.4.3";
pyproject = true;

disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "graphql-python";
repo = "graphene";
tag = "v${version}";
hash = "sha256-DGxicCXZp9kW/OFkr0lAWaQ+GaECx+HD8+X4aW63vgQ=";
hash = "sha256-K1IGKK3nTsRBe2D/cKJ/ahnAO5xxjf4gtollzTwt1zU=";
};

build-system = [ setuptools ];

dependencies = [
aniso8601
graphql-core
graphql-relay
python-dateutil
typing-extensions
];

# snaphottest->fastdiff->wasmer dependency chain does not support 3.12.
doCheck = pythonOlder "3.12";

nativeCheckInputs = [
pytest7CheckHook
pytest-asyncio
pytest-benchmark
pytest-mock
pytz
snapshottest
];

pytestFlagsArray = [ "--benchmark-disable" ];
Expand Down
15 changes: 10 additions & 5 deletions pkgs/development/python-modules/logutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
buildPythonPackage,
fetchPypi,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
redis,
redis-server,
redis,
setuptools,
}:

Expand Down Expand Up @@ -41,10 +42,14 @@ buildPythonPackage rec {
"test_hashandlers"
];

disabledTestPaths = lib.optionals (stdenv.hostPlatform.isDarwin) [
# Exception: unable to connect to Redis server
"tests/test_redis.py"
];
disabledTestPaths =
lib.optionals (stdenv.hostPlatform.isDarwin) [
# Exception: unable to connect to Redis server
"tests/test_redis.py"
]
++ lib.optionals (pythonAtLeast "3.13") [
"tests/test_dictconfig.py"
];

pythonImportsCheck = [ "logutils" ];

Expand Down

0 comments on commit 0f95c71

Please sign in to comment.