diff --git a/pkgs/development/python-modules/asyncio-rlock/default.nix b/pkgs/development/python-modules/asyncio-rlock/default.nix new file mode 100644 index 000000000000..5ad616180cee --- /dev/null +++ b/pkgs/development/python-modules/asyncio-rlock/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "asyncio-rlock"; + version = "0.1.0"; + + src = fetchPypi { + pname = "asyncio_rlock"; + inherit version; + sha256 = "7e29824331619873e10d5d99dcc46d7b8f196c4a11b203f4eeccc0c091039d43"; + }; + + # no tests on PyPI, no tags on GitLab + doCheck = false; + + pythonImportsCheck = [ "asyncio_rlock" ]; + + meta = with lib; { + description = "Rlock like in threading module but for asyncio"; + homepage = "https://gitlab.com/heckad/asyncio_rlock"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ccbe38140a0e..f38132cac2ba 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -671,6 +671,8 @@ in { asyncio-nats-client = callPackage ../development/python-modules/asyncio-nats-client { }; + asyncio-rlock = callPackage ../development/python-modules/asyncio-rlock { }; + asyncmy = callPackage ../development/python-modules/asyncmy { }; asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { };