diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index 0fd0f0ae6898..356e3f792639 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -1,45 +1,43 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pythonOlder, cython, expandvars, setuptools, idna, multidict, - typing-extensions, + pytest-cov-stub, pytest-xdist, pytestCheckHook, }: buildPythonPackage rec { pname = "yarl"; - version = "1.9.4"; + version = "1.13.1"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Vm24ZxfPgIC5m1iwg7dzqQiuQPBmgeh+WJqXb6+CRr8="; + src = fetchFromGitHub { + owner = "aio-libs"; + repo = "yarl"; + rev = "refs/tags/v${version}"; + hash = "sha256-I6/c5Q6/SRw8PIW4rPLKhVRVPRIC+n+Cz+UrKn5Pv/0="; }; - postPatch = '' - sed -i '/cov/d' pytest.ini - ''; - - nativeBuildInputs = [ + build-system = [ cython expandvars setuptools ]; - propagatedBuildInputs = [ + dependencies = [ idna multidict - ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; + ]; preCheck = '' # don't import yarl from ./ so the C extension is available @@ -47,6 +45,7 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ + pytest-cov-stub pytest-xdist pytestCheckHook ];