Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-07-09 00:01:34 +00:00
committed by GitHub
35 changed files with 3152 additions and 2423 deletions

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "pytest-cases";
version = "3.6.2";
version = "3.6.3";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "1hipm73s97dx37la57aif1x7myidirfslr1k6apvwyc2929y2lsk";
sha256 = "sha256-ExNiaSQGFbx5BB+K+PyW4OPghdpy3SKxhiVFH9okQ7g=";
};
nativeBuildInputs = [

View File

@@ -10,12 +10,12 @@
buildPythonPackage rec {
pname = "pytest-httpserver";
version = "0.3.7";
version = "1.0.0";
src = fetchPypi {
pname = "pytest_httpserver";
inherit version;
sha256 = "sha256-YgTcrUlwh2jz0tJdMUgjm8RcqrtpJ/oUQm3SnxUc5Z4=";
sha256 = "sha256-rjCV0TTUBgLpVyEUDiIhOdpKV5lWEjmQr4WCUyTQdG0=";
};
propagatedBuildInputs = [ werkzeug ];

View File

@@ -1,18 +1,33 @@
{ lib, buildPythonPackage, fetchPypi
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "shellingham";
version = "1.3.2";
version = "1.4.0";
format = "pyproject";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "576c1982bea0ba82fb46c36feb951319d7f42214a82634233f58b40d858a751e";
src = fetchFromGitHub {
owner = "sarugaku";
repo = pname;
rev = version;
sha256 = "0f686ym3ywjffis5jfqkhsshjgii64060hajysczflhffrjn9jcp";
};
checkInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "shellingham" ];
meta = with lib; {
description = "Tool to Detect Surrounding Shell";
description = "Tool to detect the surrounding shell";
homepage = "https://github.com/sarugaku/shellingham";
license = licenses.isc;
maintainers = with maintainers; [ mbode ];

View File

@@ -0,0 +1,63 @@
{ lib
, buildPythonPackage
, fastapi
, fetchFromGitHub
, fetchpatch
, limits
, mock
, hiro
, poetry-core
, pytestCheckHook
, pythonOlder
, redis
, starlette
}:
buildPythonPackage rec {
pname = "slowapi";
version = "0.1.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "laurentS";
repo = pname;
rev = "v${version}";
sha256 = "0bnnzgv2wy145sdab54hljwv1b5029ndrr0y9rc2q0mraz8lf8lm";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
limits
redis
];
checkInputs = [
fastapi
hiro
mock
pytestCheckHook
starlette
];
patches = [
# Switch to poetry-core, https://github.com/laurentS/slowapi/pull/54
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/laurentS/slowapi/commit/fe165f2d479f4f8e4b7dd9cd88ec0ae847b490c5.patch";
sha256 = "16vjxdjjiyg8zjrgfyg9q2ym2lmnms2zy5d2cg3ccg51cfl715fi";
})
];
pythonImportsCheck = [ "slowapi" ];
meta = with lib; {
description = "Python library for API rate limiting";
homepage = "https://github.com/laurentS/slowapi";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@@ -9,12 +9,12 @@
buildPythonPackage rec {
pname = "yfinance";
version = "0.1.59";
version = "0.1.61";
# GitHub source releases aren't tagged
src = fetchPypi {
inherit pname version;
sha256 = "fe4dc46807eceadc6604bf51ece7297b752dc5402a38a87385094fbfc7565fa0";
sha256 = "sha256-+tc0rwweGFaBkrl7LBHdsff98PuupqovKh4nRP3hRJ0=";
};
propagatedBuildInputs = [