git.iko.soy/typeable/nixpkgs
on master help sign in
python310Packages.ratelimiter: fix check part
commit5edb6ec949818302ff1847bb53e4496f5d8a5f9b authorFabian Affolter <mail@fabian-affolter.ch> dateSun 1 May 2022, 00:59 (5 years ago) parent1ac9ac8
1 file changed+21−13
pkgs/development/python-modules/ratelimiter/default.nix+21−13
pkgs/development/python-modules/ratelimiter/default.nix+21−13
@@ -1,35 +1,43 @@
1−{
2− lib
1+{ lib
32, buildPythonPackage
43, fetchPypi
5−, pytest
6−, glibcLocales
4+, pytest-asyncio
5+, pytestCheckHook
76}:
87
98buildPythonPackage rec {
109 pname = "ratelimiter";
1110 version = "1.2.0.post0";
11+ format = "setuptools";
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "5c395dcabdbbde2e5178ef3f89b568a3066454a6ddc223b76473dac22f89b4f7";
15+ hash = "sha256-XDldyr273i5ReO8/ibVoowZkVKbdwiO3ZHPawi+JtPc=";
1616 };
1717
18− LC_ALL = "en_US.utf-8";
18+ checkInputs = [
19+ pytest-asyncio
20+ pytestCheckHook
21+ ];
1922
20− nativeBuildInputs = [ glibcLocales ];
23+ pythonImportsCheck = [
24+ "ratelimiter"
25+ ];
2126
22− checkInputs = [ pytest ];
23−
24− checkPhase = ''
25− py.test tests
27+ preCheck = ''
28+ # Uses out-dated options
29+ rm tests/conftest.py
2630 '';
2731
32+ disabledTests = [
33+ # TypeError: object Lock can't be used in 'await' expression
34+ "test_alock"
35+ ];
36+
2837 meta = with lib; {
38+ description = "Simple python rate limiting object";
2939 homepage = "https://github.com/RazerM/ratelimiter";
3040 license = licenses.asl20;
31− description = "Simple python rate limiting object";
3241 maintainers = with maintainers; [ helkafen ];
3342 };
3443}
35−