2023-05-20 21:36:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-07-17 19:10:27 +00:00
|
|
|
, pythonRelaxDepsHook
|
2024-01-06 10:49:51 +00:00
|
|
|
, flit-core
|
2023-05-20 21:36:21 +00:00
|
|
|
|
2023-07-17 19:10:27 +00:00
|
|
|
# Core dependencies
|
|
|
|
, pycountry
|
|
|
|
, unidecode
|
2024-01-06 16:15:26 +00:00
|
|
|
, barcodenumber
|
2023-07-17 19:10:27 +00:00
|
|
|
, rapidfuzz
|
2024-01-06 16:15:26 +00:00
|
|
|
, holidays
|
2023-07-17 19:10:27 +00:00
|
|
|
|
|
|
|
# Integration dependencies
|
|
|
|
, googlemaps
|
2023-05-20 21:36:21 +00:00
|
|
|
, plaid-python
|
2024-09-19 21:29:54 +00:00
|
|
|
, python-stdnum
|
2023-05-20 21:36:21 +00:00
|
|
|
, python-youtube
|
2024-01-06 16:15:26 +00:00
|
|
|
, pypng
|
2023-05-18 13:57:22 +00:00
|
|
|
}:
|
2023-06-05 17:19:43 +00:00
|
|
|
let
|
|
|
|
pinData = import ../srcs/pin.nix;
|
|
|
|
inherit (pinData) erpnextVersion;
|
|
|
|
inherit (pinData.hashes) erpnextSrcHash;
|
|
|
|
in
|
2023-05-18 13:57:22 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "erpnext";
|
2023-06-05 17:19:43 +00:00
|
|
|
version = erpnextVersion;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frappe";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${erpnextVersion}";
|
2023-07-17 19:10:27 +00:00
|
|
|
sha256 = erpnextSrcHash;
|
2023-06-05 17:19:43 +00:00
|
|
|
};
|
|
|
|
|
2024-01-06 10:49:51 +00:00
|
|
|
format = "pyproject";
|
2023-06-05 17:19:43 +00:00
|
|
|
|
2024-01-06 10:49:51 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook flit-core ];
|
2023-06-05 17:19:43 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pycountry"
|
2023-07-17 19:10:27 +00:00
|
|
|
"rapidfuzz"
|
2023-06-05 17:19:43 +00:00
|
|
|
"Unidecode"
|
2024-09-19 10:04:52 +00:00
|
|
|
"python-youtube"
|
2023-06-05 17:19:43 +00:00
|
|
|
];
|
|
|
|
|
2023-05-21 15:51:45 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-17 19:10:27 +00:00
|
|
|
# Core dependencies
|
|
|
|
pycountry
|
|
|
|
unidecode
|
2024-01-06 16:15:26 +00:00
|
|
|
barcodenumber
|
2023-07-17 19:10:27 +00:00
|
|
|
rapidfuzz
|
2024-01-06 16:15:26 +00:00
|
|
|
holidays
|
2023-07-17 19:10:27 +00:00
|
|
|
|
|
|
|
# Integration dependencies
|
|
|
|
googlemaps
|
2023-05-18 13:57:22 +00:00
|
|
|
plaid-python
|
2024-09-19 21:29:54 +00:00
|
|
|
python-stdnum
|
2023-05-18 13:57:22 +00:00
|
|
|
python-youtube
|
2024-01-06 16:15:26 +00:00
|
|
|
# used for QR code generation
|
|
|
|
pypng
|
2023-05-18 13:57:22 +00:00
|
|
|
];
|
|
|
|
}
|