mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
Merge master into staging-next
This commit is contained in:
34
pkgs/development/python-modules/aiocache/default.nix
Normal file
34
pkgs/development/python-modules/aiocache/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, aioredis
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, msgpack
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiocache";
|
||||
version = "0.11.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aio-libs";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aioredis
|
||||
msgpack
|
||||
];
|
||||
|
||||
# aiomcache would be required but last release was in 2017
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "aiocache" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API Rate Limit Decorator";
|
||||
homepage = "https://github.com/tomasbasham/ratelimit";
|
||||
license = with licenses; [ bsd3 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
56
pkgs/development/python-modules/pyflunearyou/default.nix
Normal file
56
pkgs/development/python-modules/pyflunearyou/default.nix
Normal file
@@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, aiocache
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytest-asyncio
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, msgpack
|
||||
, ujson
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyflunearyou";
|
||||
version = "2.0.0";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bachya";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "18vxwfyvicbx8idpa0h0alp4ygnwfph6g4kq93hfm0fc94gi6h94";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
aiocache
|
||||
msgpack
|
||||
ujson
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aresponses
|
||||
pytest-asyncio
|
||||
pytest-aiohttp
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# Ignore the examples directory as the files are prefixed with test_.
|
||||
# disabledTestFiles doesn't seem to work here
|
||||
pytestFlagsArray = [ "--ignore examples/" ];
|
||||
pythonImportsCheck = [ "pyflunearyou" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for retrieving UV-related information from Flu Near You";
|
||||
homepage = "https://github.com/bachya/pyflunearyou";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,13 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, attrs, boto3, google-pasta
|
||||
, importlib-metadata, numpy, protobuf, protobuf3-to-dict, smdebug-rulesconfig }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, attrs
|
||||
, boto3
|
||||
, google-pasta
|
||||
, importlib-metadata
|
||||
, numpy
|
||||
, protobuf
|
||||
, protobuf3-to-dict
|
||||
, smdebug-rulesconfig
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sagemaker";
|
||||
version = "2.24.5";
|
||||
version = "2.25.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1j1a058ic00yxnf0cc364fzn82pacih5ffrh5s4dw1q4s3by4cvd";
|
||||
sha256 = "sha256-xQ1nt8FcjuoilzM5PbU8KHgirPyj9us+ykyjfgEqZhg=";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
Reference in New Issue
Block a user