Skip to content
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
30 changes: 21 additions & 9 deletions pkgs/development/python-modules/aiocache/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,43 @@
, buildPythonPackage
, fetchFromGitHub
, msgpack
, pythonOlder
}:

buildPythonPackage rec {
pname = "aiocache";
version = "0.11.1";
version = "0.12.0";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = version;
sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx";
rev = "refs/tags/v${version}";
hash = "sha256-jNfU5jT2xLgwVeVp8jXrQ6QQuUDwMOxf+hZ7VFsMFpM=";
};

propagatedBuildInputs = [
aioredis
msgpack
];
passthru.optional-dependencies = {
redis = [
aioredis
];
msgpack = [
msgpack
];
};

# aiomcache would be required but last release was in 2017
doCheck = false;
pythonImportsCheck = [ "aiocache" ];

pythonImportsCheck = [
"aiocache"
];

meta = with lib; {
description = "Python API Rate Limit Decorator";
homepage = "https://github.com/tomasbasham/ratelimit";
homepage = "https://github.com/aio-libs/aiocache";
changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
Expand Down
10 changes: 6 additions & 4 deletions pkgs/development/python-modules/pyflunearyou/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, msgpack
, ujson
}:
Expand All @@ -27,13 +28,14 @@ buildPythonPackage rec {
sha256 = "sha256-Q65OSE4qckpvaIvZULBR434i7hwuVM97eSq1Blb1oIU=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace 'ujson = ">=1.35,<5.0"' 'ujson = "*"'
'';
pythonRelaxDeps = [
"aiocache"
"ujson"
];

nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];

propagatedBuildInputs = [
Expand Down