1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 loguru,
7 python-dateutil,
8 pyyaml,
9 tqdm,
10 click,
11}:
12
13buildPythonPackage rec {
14 pname = "bubop";
15 version = "0.1.12";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "bergercookie";
20 repo = "bubop";
21 rev = "v${version}";
22 hash = "sha256-p4Mv73oX5bsYKby7l0nGon89KyAMIUhDAEKSTNB++Cw=";
23 };
24
25 postPatch = ''
26 # Those versions seems to work with `bubop`.
27 substituteInPlace pyproject.toml \
28 --replace-fail 'loguru = "^0.5.3"' 'loguru = "^0.7"' \
29 --replace-fail 'PyYAML = "~5.3.1"' 'PyYAML = "^6.0"'
30 '';
31
32 nativeBuildInputs = [ poetry-core ];
33
34 propagatedBuildInputs = [
35 loguru
36 python-dateutil
37 pyyaml
38 tqdm
39 click
40 ];
41
42 pythonImportsCheck = [ "bubop" ];
43
44 meta = with lib; {
45 description = "Bergercookie's Useful Bits Of Python; helper libraries for Bergercookie's programs";
46 homepage = "https://github.com/bergercookie/bubop";
47 changelog = "https://github.com/bergercookie/bubop/blob/${src.rev}/CHANGELOG.md";
48 license = licenses.mit;
49 maintainers = with maintainers; [ raitobezarius ];
50 };
51}