Merge pull request #131140 from Ma27/bump-buku
buku: fix build, 4.5 -> 4.6
This commit is contained in:
commit
daa29dd4b8
|
@ -1,20 +1,41 @@
|
||||||
{ lib, python3, fetchFromGitHub }:
|
{ lib, python3, fetchFromGitHub }:
|
||||||
|
|
||||||
with python3.pkgs; buildPythonApplication rec {
|
let
|
||||||
version = "4.5";
|
python3' = python3.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "1.3.24";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
|
inherit version;
|
||||||
|
sha256 = "ebbb777cbf9312359b897bf81ba00dae0f5cb69fba2a18265dcc18a6f5ef7519";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
sqlalchemy-utils = super.sqlalchemy-utils.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "0.36.6";
|
||||||
|
src = oldAttrs.src.override {
|
||||||
|
inherit version;
|
||||||
|
sha256 = "0srs5w486wp5zydjs70igi5ypgxhm6h73grb85jz03fqpqaanzvs";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in
|
||||||
|
with python3'.pkgs; buildPythonApplication rec {
|
||||||
|
version = "4.6";
|
||||||
pname = "buku";
|
pname = "buku";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = "buku";
|
repo = "buku";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1lcq5fk8d5j2kfhn9m5l2hk46v7nj4vfa22m1psz35c9zpw4px8q";
|
sha256 = "sha256-hr9qiP7SbloigDcs+6KVWu0SOlggMaBr7CCfY8zoJG0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest-cov
|
pytest-cov
|
||||||
hypothesis
|
hypothesis
|
||||||
pytest
|
pytest
|
||||||
|
pytest-vcr
|
||||||
pylint
|
pylint
|
||||||
flake8
|
flake8
|
||||||
pyyaml
|
pyyaml
|
||||||
|
@ -55,8 +76,8 @@ with python3.pkgs; buildPythonApplication rec {
|
||||||
# Disables a test which requires internet
|
# Disables a test which requires internet
|
||||||
substituteInPlace tests/test_bukuDb.py \
|
substituteInPlace tests/test_bukuDb.py \
|
||||||
--replace "@pytest.mark.slowtest" "@unittest.skip('skipping')" \
|
--replace "@pytest.mark.slowtest" "@unittest.skip('skipping')" \
|
||||||
--replace "self.assertEqual(shorturl, 'http://tny.im/yt')" "" \
|
--replace "self.assertEqual(shorturl, \"http://tny.im/yt\")" "" \
|
||||||
--replace "self.assertEqual(url, 'https://www.google.com')" ""
|
--replace "self.assertEqual(url, \"https://www.google.com\")" ""
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace mypy-extensions==0.4.1 mypy-extensions>=0.4.1
|
--replace mypy-extensions==0.4.1 mypy-extensions>=0.4.1
|
||||||
'';
|
'';
|
||||||
|
@ -75,7 +96,7 @@ with python3.pkgs; buildPythonApplication rec {
|
||||||
homepage = "https://github.com/jarun/Buku";
|
homepage = "https://github.com/jarun/Buku";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ matthiasbeyer infinisil ];
|
maintainers = with maintainers; [ matthiasbeyer infinisil ma27 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue