erpnext-nix/python/bench.nix

55 lines
869 B
Nix
Raw Normal View History

{ 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 ];
2024-09-19 10:14:07 +00:00
pythonRelaxDeps = [ "jinja2" "python-crontab" "semantic-version" "hatchling" ];
buildInputs = [
hatchling
];
propagatedBuildInputs = [
click
gitpython
honcho
jinja2
python-crontab
requests
semantic-version
setuptools
tomli
];
}