forked from mirrors/nixpkgs
buku: 3.0 -> 3.3.1
This commit is contained in:
parent
65b91cd23b
commit
678c149e53
|
@ -1,14 +1,14 @@
|
||||||
{ stdenv, python3, fetchFromGitHub }:
|
{ stdenv, python3, fetchFromGitHub }:
|
||||||
|
|
||||||
with python3.pkgs; buildPythonApplication rec {
|
with python3.pkgs; buildPythonApplication rec {
|
||||||
version = "3.0"; # When updating to 3.1, make sure to remove the marked line in preCheck
|
version = "3.3.1";
|
||||||
name = "buku-${version}";
|
name = "buku-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = "buku";
|
repo = "buku";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1a33x3197vi5s8rq5fvhy021jdlsc8ww8zc4kysss6r9mvdlk7ax";
|
sha256 = "1byq8jgv1rb67ygibk0vzgz5ri1il4q4hpg23z5q0ml27fif9hw3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -16,6 +16,8 @@ with python3.pkgs; buildPythonApplication rec {
|
||||||
pytest-catchlog
|
pytest-catchlog
|
||||||
hypothesis
|
hypothesis
|
||||||
pytest
|
pytest
|
||||||
|
pylint
|
||||||
|
flake8
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -29,11 +31,6 @@ with python3.pkgs; buildPythonApplication rec {
|
||||||
# Fixes two tests for wrong encoding
|
# Fixes two tests for wrong encoding
|
||||||
export PYTHONIOENCODING=utf-8
|
export PYTHONIOENCODING=utf-8
|
||||||
|
|
||||||
### Remove this for 3.1 ###
|
|
||||||
# See https://github.com/jarun/Buku/pull/167 (merged)
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "hypothesis==3.7.0" "hypothesis>=3.7.0"
|
|
||||||
|
|
||||||
# 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')"
|
||||||
|
|
Loading…
Reference in a new issue