mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 22:14:42 +00:00
Merge pull request #171073 from fabaff/ratelimiter-fix
python310Packages.ratelimiter: fix check part
This commit is contained in:
commit
f734041415
@ -1,35 +1,43 @@
|
|||||||
{
|
{ lib
|
||||||
lib
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pytest
|
, pytest-asyncio
|
||||||
, glibcLocales
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "ratelimiter";
|
pname = "ratelimiter";
|
||||||
version = "1.2.0.post0";
|
version = "1.2.0.post0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5c395dcabdbbde2e5178ef3f89b568a3066454a6ddc223b76473dac22f89b4f7";
|
hash = "sha256-XDldyr273i5ReO8/ibVoowZkVKbdwiO3ZHPawi+JtPc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
LC_ALL = "en_US.utf-8";
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ glibcLocales ];
|
pythonImportsCheck = [
|
||||||
|
"ratelimiter"
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
preCheck = ''
|
||||||
|
# Uses out-dated options
|
||||||
checkPhase = ''
|
rm tests/conftest.py
|
||||||
py.test tests
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# TypeError: object Lock can't be used in 'await' expression
|
||||||
|
"test_alock"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Simple python rate limiting object";
|
||||||
homepage = "https://github.com/RazerM/ratelimiter";
|
homepage = "https://github.com/RazerM/ratelimiter";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
description = "Simple python rate limiting object";
|
|
||||||
maintainers = with maintainers; [ helkafen ];
|
maintainers = with maintainers; [ helkafen ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user