erpnext-nix/python/bench.nix
teutat3s 7763af845d
Update bench, erpnext, frappe versions
bench: 5.16.2 -> 5.16.4
https://github.com/frappe/bench/releases/tag/v5.16.4

erpnext: 14.26.0 -> 14.30.6
https://github.com/frappe/erpnext/releases/tag/v14.30.6
Use new relaxed dependency: rapidfuzz

frappe: 14.37.0 -> 14.40.3
https://github.com/frappe/frappe/releases/tag/v14.40.3

Add update.sh script to quickly update all versions in pin.nix

Sort erpnext dependencies like upstream

Update Readme with docs how to use update.sh script
2023-07-17 21:10:27 +02:00

55 lines
857 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
, hatchling
, click
, gitpython
, honcho
, jinja2
, python-crontab
, requests
, semantic-version
, setuptools
, tomli
}:
let
pinData = import ../srcs/pin.nix;
inherit (pinData) benchVersion;
inherit (pinData.hashes) benchSrcHash;
in
buildPythonPackage rec {
pname = "frappe-bench";
version = benchVersion;
src = fetchFromGitHub {
owner = "frappe";
repo = "bench";
rev = "v${benchVersion}";
sha256 = benchSrcHash;
};
format = "pyproject";
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [ "jinja2" "python-crontab" "semantic-version" ];
buildInputs = [
hatchling
];
propagatedBuildInputs = [
click
gitpython
honcho
jinja2
python-crontab
requests
semantic-version
setuptools
tomli
];
}