mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
buku: 3.4 -> 3.6
Some more tests were disabled as they require internet connection. The tests were disabled by simply removing the "assertEqual" statements, as this is the simplest way to do it.
This commit is contained in:
parent
3c735493fb
commit
a8d4d996c1
1 changed files with 5 additions and 3 deletions
|
@ -1,14 +1,14 @@
|
|||
{ stdenv, python3, fetchFromGitHub }:
|
||||
|
||||
with python3.pkgs; buildPythonApplication rec {
|
||||
version = "3.4";
|
||||
version = "3.6";
|
||||
name = "buku-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jarun";
|
||||
repo = "buku";
|
||||
rev = "v${version}";
|
||||
sha256 = "0v0wvsxw78g6yl606if25k1adghr5764chwy1kl7dsxvchqwvmg0";
|
||||
sha256 = "1639sf200n9rxgkvvhlhnrjsb7vn42p1fl1rx562axh3vpr6j4c4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -33,7 +33,9 @@ with python3.pkgs; buildPythonApplication rec {
|
|||
|
||||
# Disables a test which requires internet
|
||||
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(url, 'https://www.google.com')" ""
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue