diff --git a/pkgs/development/python-modules/aiorwlock/default.nix b/pkgs/development/python-modules/aiorwlock/default.nix index f5033ae3431e..91a492542718 100644 --- a/pkgs/development/python-modules/aiorwlock/default.nix +++ b/pkgs/development/python-modules/aiorwlock/default.nix @@ -1,24 +1,32 @@ { - buildPythonPackage, - fetchPypi, lib, + buildPythonPackage, + fetchFromGitHub, pytest-asyncio, pytestCheckHook, + poetry-core, + pythonOlder, }: buildPythonPackage rec { pname = "aiorwlock"; - version = "1.4.0"; - format = "setuptools"; + version = "1.5.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-TOpb7E6dA1M6JpGSmTlIIqFCKqUZvKndCReOxJD40cw="; + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "aio-libs"; + repo = "aiorwlock"; + rev = "refs/tags/v${version}"; + hash = "sha256-QwjwuXjaxE1Y+Jzn8hJXY4wKltAT8mdOM7jJ9MF+DhA="; }; + build-system = [ poetry-core ]; + nativeCheckInputs = [ - pytestCheckHook pytest-asyncio + pytestCheckHook ]; pythonImportsCheck = [ "aiorwlock" ]; @@ -26,6 +34,7 @@ buildPythonPackage rec { meta = with lib; { description = "Read write lock for asyncio"; homepage = "https://github.com/aio-libs/aiorwlock"; + changelog = "https://github.com/aio-libs/aiorwlock/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ billhuang ]; };