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