lol

python313Packages.url-normalize: 1.4.3 -> 2.2.1 (#404612)

authored by

dotlambda and committed by
GitHub
236c99e2 30ea6919

+17 -36
+2 -5
pkgs/development/python-modules/aiohttp-client-cache/default.nix
··· 14 14 poetry-core, 15 15 pytest-aiohttp, 16 16 pytestCheckHook, 17 - pythonOlder, 18 17 redis, 19 18 url-normalize, 20 19 }: 21 20 22 21 buildPythonPackage rec { 23 22 pname = "aiohttp-client-cache"; 24 - version = "0.12.4"; 23 + version = "0.13.0"; 25 24 pyproject = true; 26 25 27 - disabled = pythonOlder "3.8"; 28 - 29 26 src = fetchPypi { 30 27 pname = "aiohttp_client_cache"; 31 28 inherit version; 32 - hash = "sha256-5g/oFhNrWx1m87trJyq4HZeFTqHk2bVwhaNgQmln0mU="; 29 + hash = "sha256-3FzWI0CtvuGOD+3HsMN1Qmkt8I+O2ZRddRtykqBDOFM="; 33 30 }; 34 31 35 32 build-system = [ poetry-core ];
+15 -31
pkgs/development/python-modules/url-normalize/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 - poetry-core, 7 - pytest-flakes, 8 - pytest-mock, 5 + idna, 6 + pytest-cov-stub, 9 7 pytest-socket, 10 8 pytestCheckHook, 11 - six, 9 + setuptools, 12 10 }: 13 11 14 12 buildPythonPackage rec { 15 13 pname = "url-normalize"; 16 - version = "1.4.3"; 17 - format = "pyproject"; 14 + version = "2.2.1"; 15 + pyproject = true; 18 16 19 17 src = fetchFromGitHub { 20 18 owner = "niksite"; 21 - repo = pname; 22 - rev = version; 23 - hash = "sha256-WE3MM9B/voI23taFbLp2FYhl0uxOfuUWsaCTBG1hyiY="; 19 + repo = "url-normalize"; 20 + tag = "v${version}"; 21 + hash = "sha256-ZFY1KMEHvteMFVM3QcYjCiTz3dLxRWyv/dZQMzVxGvo="; 24 22 }; 25 23 26 - nativeBuildInputs = [ poetry-core ]; 24 + build-system = [ setuptools ]; 27 25 28 - propagatedBuildInputs = [ six ]; 26 + dependencies = [ idna ]; 29 27 30 28 nativeCheckInputs = [ 31 - pytest-flakes 32 - pytest-mock 29 + pytest-cov-stub 33 30 pytest-socket 34 31 pytestCheckHook 35 32 ]; 36 33 37 - patches = [ 38 - # Switch to poetry-core, https://github.com/niksite/url-normalize/pull/28 39 - (fetchpatch { 40 - name = "switch-to-poetry-core.patch"; 41 - url = "https://github.com/niksite/url-normalize/commit/b8557b10c977b191cc9d37e6337afe874a24ad08.patch"; 42 - hash = "sha256-SVCQATV9V6HbLmjOHs7V7eBagO0PuqZLubIJghBYfQQ="; 43 - }) 44 - ]; 45 - 46 - postPatch = '' 47 - sed -i "/--cov/d" tox.ini 48 - sed -i "/--flakes/d" tox.ini 49 - ''; 50 - 51 34 pythonImportsCheck = [ "url_normalize" ]; 52 35 53 - meta = with lib; { 36 + meta = { 37 + changelog = "https://github.com/niksite/url-normalize/blob/${src.tag}/CHANGELOG.md"; 54 38 description = "URL normalization for Python"; 55 39 homepage = "https://github.com/niksite/url-normalize"; 56 - license = with licenses; [ mit ]; 57 - maintainers = with maintainers; [ fab ]; 40 + license = lib.licenses.mit; 41 + maintainers = with lib.maintainers; [ fab ]; 58 42 }; 59 43 }