diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-01-22 19:15:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 19:15:29 +0100 |
commit | 050586bf162488e81d2c1954e7f72213e52b8e8a (patch) | |
tree | 8c45b6830acc2e301af7f4f5b2fa13c32efa5557 | |
parent | 341a90059f913837019c3d8eff552f043f409138 (diff) | |
parent | 630b4c3a38d3dd092fcffbafa0456b8f632a8e5d (diff) |
Merge pull request #212129 from fabaff/aiojobs-fix
python310Packages.aiojobs: fix build
-rw-r--r-- | pkgs/development/python-modules/aiojobs/default.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/aiojobs/default.nix b/pkgs/development/python-modules/aiojobs/default.nix index 8a555c695f772..320593f79370d 100644 --- a/pkgs/development/python-modules/aiojobs/default.nix +++ b/pkgs/development/python-modules/aiojobs/default.nix @@ -1,33 +1,40 @@ { lib +, aiohttp +, async-timeout , buildPythonPackage , fetchFromGitHub -, pythonOlder -, aiohttp -, pytestCheckHook , pytest-aiohttp -, pygments +, pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "aiojobs"; version = "1.1.0"; - format = "flit"; + format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "aio-libs"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-FHdEVt/XXmuTrPAETyod3fHJIK1wg957/+QMAhZG1xk="; + hash = "sha256-FHdEVt/XXmuTrPAETyod3fHJIK1wg957/+QMAhZG1xk="; }; + postPatch = '' + substituteInPlace setup.cfg \ + --replace "--cov=aiojobs/ --cov=tests/" "" + ''; + nativeBuildInputs = [ - pygments + setuptools ]; propagatedBuildInputs = [ aiohttp + async-timeout ]; nativeCheckInputs = [ @@ -42,6 +49,7 @@ buildPythonPackage rec { meta = with lib; { description = "Jobs scheduler for managing background task (asyncio)"; homepage = "https://github.com/aio-libs/aiojobs"; + changelog = "https://github.com/aio-libs/aiojobs/blob/v${version}/CHANGES.rst"; license = licenses.asl20; maintainers = with maintainers; [ cmcdragonkai ]; }; |