diff --git a/pkgs/development/python-modules/aniso8601/default.nix b/pkgs/development/python-modules/aniso8601/default.nix index 0c10170d5c104..bfc8cb22c8ac3 100644 --- a/pkgs/development/python-modules/aniso8601/default.nix +++ b/pkgs/development/python-modules/aniso8601/default.nix @@ -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 ]; }; } diff --git a/pkgs/development/python-modules/graphene/default.nix b/pkgs/development/python-modules/graphene/default.nix index a7cf197828c27..ccda491ae7e6a 100644 --- a/pkgs/development/python-modules/graphene/default.nix +++ b/pkgs/development/python-modules/graphene/default.nix @@ -1,6 +1,5 @@ { lib, - aniso8601, buildPythonPackage, fetchFromGitHub, setuptools, @@ -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" ]; diff --git a/pkgs/development/python-modules/logutils/default.nix b/pkgs/development/python-modules/logutils/default.nix index df79cc9dc3e46..d9afd8823653a 100644 --- a/pkgs/development/python-modules/logutils/default.nix +++ b/pkgs/development/python-modules/logutils/default.nix @@ -4,9 +4,10 @@ buildPythonPackage, fetchPypi, pytestCheckHook, + pythonAtLeast, pythonOlder, - redis, redis-server, + redis, setuptools, }: @@ -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" ];