Merge pull request #131140 from Ma27/bump-buku

buku: fix build, 4.5 -> 4.6

authored by

Matthieu Coudron and committed by
GitHub
daa29dd4 45980bc6

+27 -6
+27 -6
pkgs/applications/misc/buku/default.nix
··· 1 1 { lib, python3, fetchFromGitHub }: 2 2 3 - with python3.pkgs; buildPythonApplication rec { 4 - version = "4.5"; 3 + let 4 + python3' = python3.override { 5 + packageOverrides = self: super: { 6 + sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 7 + version = "1.3.24"; 8 + src = oldAttrs.src.override { 9 + inherit version; 10 + sha256 = "ebbb777cbf9312359b897bf81ba00dae0f5cb69fba2a18265dcc18a6f5ef7519"; 11 + }; 12 + }); 13 + sqlalchemy-utils = super.sqlalchemy-utils.overridePythonAttrs (oldAttrs: rec { 14 + version = "0.36.6"; 15 + src = oldAttrs.src.override { 16 + inherit version; 17 + sha256 = "0srs5w486wp5zydjs70igi5ypgxhm6h73grb85jz03fqpqaanzvs"; 18 + }; 19 + }); 20 + }; 21 + }; 22 + in 23 + with python3'.pkgs; buildPythonApplication rec { 24 + version = "4.6"; 5 25 pname = "buku"; 6 26 7 27 src = fetchFromGitHub { 8 28 owner = "jarun"; 9 29 repo = "buku"; 10 30 rev = "v${version}"; 11 - sha256 = "1lcq5fk8d5j2kfhn9m5l2hk46v7nj4vfa22m1psz35c9zpw4px8q"; 31 + sha256 = "sha256-hr9qiP7SbloigDcs+6KVWu0SOlggMaBr7CCfY8zoJG0="; 12 32 }; 13 33 14 34 checkInputs = [ 15 35 pytest-cov 16 36 hypothesis 17 37 pytest 38 + pytest-vcr 18 39 pylint 19 40 flake8 20 41 pyyaml ··· 55 76 # Disables a test which requires internet 56 77 substituteInPlace tests/test_bukuDb.py \ 57 78 --replace "@pytest.mark.slowtest" "@unittest.skip('skipping')" \ 58 - --replace "self.assertEqual(shorturl, 'http://tny.im/yt')" "" \ 59 - --replace "self.assertEqual(url, 'https://www.google.com')" "" 79 + --replace "self.assertEqual(shorturl, \"http://tny.im/yt\")" "" \ 80 + --replace "self.assertEqual(url, \"https://www.google.com\")" "" 60 81 substituteInPlace setup.py \ 61 82 --replace mypy-extensions==0.4.1 mypy-extensions>=0.4.1 62 83 ''; ··· 75 96 homepage = "https://github.com/jarun/Buku"; 76 97 license = licenses.gpl3; 77 98 platforms = platforms.unix; 78 - maintainers = with maintainers; [ matthiasbeyer infinisil ]; 99 + maintainers = with maintainers; [ matthiasbeyer infinisil ma27 ]; 79 100 }; 80 101 } 81 102