diff options
author | Jonas Chevalier <zimbatm@zimbatm.com> | 2024-04-21 12:39:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 12:39:11 +0200 |
commit | bdc19e9916cf48e5b5bf95dc5bb51e6a4ffe6b1e (patch) | |
tree | cae566ed03a4075ce9439a60cd8c6a2d6b77f656 /pkgs/development | |
parent | 11f504061e2fa7e8bec2ae4401a7b34a5732c3be (diff) | |
parent | f535df51b9263d5053488b1cf42fceb3c31f8db9 (diff) |
Merge pull request #255361 from RaitoBezarius/syncall
syncall: init at 1.5.1
Diffstat (limited to 'pkgs/development')
3 files changed, 151 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/bubop/default.nix b/pkgs/development/python-modules/bubop/default.nix new file mode 100644 index 0000000000000..72c9737ce7b58 --- /dev/null +++ b/pkgs/development/python-modules/bubop/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/development/python-modules/item-synchronizer/default.nix b/pkgs/development/python-modules/item-synchronizer/default.nix new file mode 100644 index 0000000000000..2f568499eb086 --- /dev/null +++ b/pkgs/development/python-modules/item-synchronizer/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, bidict +, bubop +}: + +buildPythonPackage rec { + pname = "item-synchronizer"; + version = "1.1.5"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "bergercookie"; + repo = "item_synchronizer"; + rev = "v${version}"; + hash = "sha256-+mviKtCLlJhYV576Q07kcFJvtls5qohKSrqZtBqE/s4="; + }; + + postPatch = '' + substituteInPlace pyproject.toml --replace-fail 'bidict = "^0.21.4"' 'bidict = "^0.23"' + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + bidict + bubop + ]; + + pythonImportsCheck = [ "item_synchronizer" ]; + + meta = with lib; { + description = ""; + homepage = "https://github.com/bergercookie/item_synchronizer"; + changelog = "https://github.com/bergercookie/item_synchronizer/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ raitobezarius ]; + }; +} diff --git a/pkgs/development/python-modules/taskw-ng/default.nix b/pkgs/development/python-modules/taskw-ng/default.nix new file mode 100644 index 0000000000000..28c15922d2544 --- /dev/null +++ b/pkgs/development/python-modules/taskw-ng/default.nix @@ -0,0 +1,56 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, poetry-dynamic-versioning +, kitchen +, packaging +, python-dateutil +, pytz +, taskwarrior +}: + +buildPythonPackage rec { + pname = "taskw-ng"; + version = "0.2.6"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bergercookie"; + repo = "taskw-ng"; + rev = "v${version}"; + hash = "sha256-tlidTt0TzWnvfajYiIfvRv7OfakHY6zWAicmAwq/Z8w="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail 'pytz = "^2023.3.post1"' 'pytz = "*"' + ''; + + nativeBuildInputs = [ + poetry-core + poetry-dynamic-versioning + ]; + + propagatedBuildInputs = [ + kitchen + packaging + python-dateutil + pytz + ]; + + checkInputs = [ + taskwarrior + ]; + + # TODO: doesn't pass because `can_use` fails and `task --version` seems not to be answering. + # pythonImportsCheck = [ "taskw_ng" ]; + + meta = with lib; { + description = ""; + homepage = "https://github.com/bergercookie/taskw-ng"; + changelog = "https://github.com/bergercookie/taskw-ng/blob/${src.rev}/CHANGELOG.rst"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ raitobezarius ]; + }; +} |