python3Packages.bubop: init at 0.1.12
bubop is a set of helper libraries for Bergercookie's program ecosystem which we will introduce later.
This commit is contained in:
parent
b8d649e4b2
commit
1a88442d4a
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, loguru
|
||||
, python-dateutil
|
||||
, pyyaml
|
||||
, tqdm
|
||||
, click
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bubop";
|
||||
version = "0.1.12";
|
||||
format = "pyproject";
|
||||
|
||||
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 = with lib; {
|
||||
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 = licenses.mit;
|
||||
maintainers = with maintainers; [ raitobezarius ];
|
||||
};
|
||||
}
|
|
@ -1772,6 +1772,8 @@ self: super: with self; {
|
|||
|
||||
btsocket = callPackage ../development/python-modules/btsocket { };
|
||||
|
||||
bubop = callPackage ../development/python-modules/bubop { };
|
||||
|
||||
bucketstore = callPackage ../development/python-modules/bucketstore { };
|
||||
|
||||
bugsnag = callPackage ../development/python-modules/bugsnag { };
|
||||
|
|
Loading…
Reference in New Issue