2023-05-22 22:50:17 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
|
|
|
|
, hatchling
|
|
|
|
|
|
|
|
, click
|
|
|
|
, gitpython
|
|
|
|
, honcho
|
|
|
|
, jinja2
|
|
|
|
, python-crontab
|
|
|
|
, requests
|
|
|
|
, semantic-version
|
|
|
|
, setuptools
|
|
|
|
, tomli
|
|
|
|
}:
|
2023-06-05 17:19:43 +00:00
|
|
|
let
|
|
|
|
pinData = import ../srcs/pin.nix;
|
|
|
|
inherit (pinData) benchVersion;
|
|
|
|
inherit (pinData.hashes) benchSrcHash;
|
|
|
|
in
|
2023-05-22 22:50:17 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "frappe-bench";
|
2023-07-17 19:10:27 +00:00
|
|
|
version = benchVersion;
|
2023-06-05 17:19:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frappe";
|
|
|
|
repo = "bench";
|
|
|
|
rev = "v${benchVersion}";
|
2023-07-17 19:10:27 +00:00
|
|
|
sha256 = benchSrcHash;
|
2023-06-05 17:19:43 +00:00
|
|
|
};
|
|
|
|
|
2023-05-22 22:50:17 +00:00
|
|
|
format = "pyproject";
|
2023-06-05 17:19:43 +00:00
|
|
|
|
2023-05-22 22:50:17 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2024-09-19 10:14:07 +00:00
|
|
|
pythonRelaxDeps = [ "jinja2" "python-crontab" "semantic-version" "hatchling" ];
|
2023-06-05 17:19:43 +00:00
|
|
|
|
2023-05-22 22:50:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
2023-06-05 17:19:43 +00:00
|
|
|
|
2023-05-22 22:50:17 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
gitpython
|
|
|
|
honcho
|
|
|
|
jinja2
|
|
|
|
python-crontab
|
|
|
|
requests
|
|
|
|
semantic-version
|
|
|
|
setuptools
|
|
|
|
tomli
|
|
|
|
];
|
|
|
|
}
|