buku: 3.7 -> 3.8

This commit is contained in:
Silvan Mosberger 2018-08-14 19:37:14 +02:00
parent 01bbc716e2
commit dce1332c5a
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7

View file

@ -1,28 +1,23 @@
{ stdenv, python3, fetchFromGitHub, fetchpatch }:
with python3.pkgs; buildPythonApplication rec {
version = "3.7";
version = "3.8";
pname = "buku";
src = fetchFromGitHub {
owner = "jarun";
repo = "buku";
rev = "v${version}";
sha256 = "0qc6xkrhf2phaj9fhym19blr4rr2vllvnyljjz909xr4vsynvb41";
};
patches = fetchpatch {
url = https://github.com/jarun/Buku/commit/495d6eac4d9371e8ce6d3f601e2bb9e5e74962b4.patch;
sha256 = "0py4l5qcgdzqr0iqmcc8ddld1bspk8iwypz4dcr88y70j86588gk";
sha256 = "0gv26c4rr1akcaiff1nrwil03sv7d58mfxr86pgsw6nwld67ns0r";
};
checkInputs = [
pytestcov
pytest-catchlog
hypothesis
pytest
pylint
flake8
pyyaml
];
propagatedBuildInputs = [
@ -30,6 +25,14 @@ with python3.pkgs; buildPythonApplication rec {
beautifulsoup4
requests
urllib3
flask
flask-api
flask-bootstrap
flask-paginate
flask_wtf
arrow
werkzeug
click
];
preCheck = ''
@ -43,7 +46,7 @@ with python3.pkgs; buildPythonApplication rec {
--replace "self.assertEqual(url, 'https://www.google.com')" ""
'';
installPhase = ''
postInstall = ''
make install PREFIX=$out
mkdir -p $out/share/zsh/site-functions $out/share/bash-completion/completions $out/share/fish/vendor_completions.d