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