Files
nixpkgs/pkgs/development/python-modules/bubop/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

52 lines
1.1 KiB
Nix

{
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 ];
};
}