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";
|
|
|
|
version = "5.16.2";
|
2023-06-05 17:19:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frappe";
|
|
|
|
repo = "bench";
|
|
|
|
rev = "v${benchVersion}";
|
|
|
|
hash = benchSrcHash;
|
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
pythonRelaxDeps = [ "jinja2" "python-crontab" "semantic-version" ];
|
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
|
|
|
|
];
|
|
|
|
}
|