mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-05-11 16:47:02 +00:00
buku: 3.7 -> 3.8
This commit is contained in:
parent
01bbc716e2
commit
dce1332c5a
1 changed files with 12 additions and 9 deletions
|
@ -1,28 +1,23 @@
|
||||||
{ stdenv, python3, fetchFromGitHub, fetchpatch }:
|
{ stdenv, python3, fetchFromGitHub, fetchpatch }:
|
||||||
|
|
||||||
with python3.pkgs; buildPythonApplication rec {
|
with python3.pkgs; buildPythonApplication rec {
|
||||||
version = "3.7";
|
version = "3.8";
|
||||||
pname = "buku";
|
pname = "buku";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = "buku";
|
repo = "buku";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0qc6xkrhf2phaj9fhym19blr4rr2vllvnyljjz909xr4vsynvb41";
|
sha256 = "0gv26c4rr1akcaiff1nrwil03sv7d58mfxr86pgsw6nwld67ns0r";
|
||||||
};
|
|
||||||
|
|
||||||
patches = fetchpatch {
|
|
||||||
url = https://github.com/jarun/Buku/commit/495d6eac4d9371e8ce6d3f601e2bb9e5e74962b4.patch;
|
|
||||||
sha256 = "0py4l5qcgdzqr0iqmcc8ddld1bspk8iwypz4dcr88y70j86588gk";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestcov
|
pytestcov
|
||||||
pytest-catchlog
|
|
||||||
hypothesis
|
hypothesis
|
||||||
pytest
|
pytest
|
||||||
pylint
|
pylint
|
||||||
flake8
|
flake8
|
||||||
|
pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -30,6 +25,14 @@ with python3.pkgs; buildPythonApplication rec {
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
requests
|
requests
|
||||||
urllib3
|
urllib3
|
||||||
|
flask
|
||||||
|
flask-api
|
||||||
|
flask-bootstrap
|
||||||
|
flask-paginate
|
||||||
|
flask_wtf
|
||||||
|
arrow
|
||||||
|
werkzeug
|
||||||
|
click
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
@ -43,7 +46,7 @@ with python3.pkgs; buildPythonApplication rec {
|
||||||
--replace "self.assertEqual(url, 'https://www.google.com')" ""
|
--replace "self.assertEqual(url, 'https://www.google.com')" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
postInstall = ''
|
||||||
make install PREFIX=$out
|
make install PREFIX=$out
|
||||||
|
|
||||||
mkdir -p $out/share/zsh/site-functions $out/share/bash-completion/completions $out/share/fish/vendor_completions.d
|
mkdir -p $out/share/zsh/site-functions $out/share/bash-completion/completions $out/share/fish/vendor_completions.d
|
||||||
|
|
Loading…
Add table
Reference in a new issue