36 lines
767 B
Nix
36 lines
767 B
Nix
{
|
|
buildPythonPackage,
|
|
pythonRelaxDepsHook,
|
|
flit-core,
|
|
mkAssets,
|
|
fetchFromGitea,
|
|
}:
|
|
let
|
|
version = "0.0.1";
|
|
src = fetchFromGitea {
|
|
domain = "git.b4l.co.th";
|
|
owner = "newedge";
|
|
repo = "default_thai_company";
|
|
rev = "68f08171252099920d52f5c47800d65ddf4689b3";
|
|
sha256 = "sha256-9UomP8G5K+nkAMCfn+gXbBNivLlDo0c/36FYZgHm2Cw=";
|
|
};
|
|
in
|
|
buildPythonPackage (finalAttrs: {
|
|
# pname doubles as the frappe app name (services.frappe reads app.pname)
|
|
pname = "default_thai_company";
|
|
inherit version;
|
|
|
|
pyproject = true;
|
|
|
|
src = mkAssets {
|
|
inherit (finalAttrs) pname version;
|
|
inherit src;
|
|
yarnHash = "sha256-oZgyP0hTU9bxszOVg3Bmiu6yos2d2Inc1Do8To4z8GQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
flit-core
|
|
];
|
|
})
|