erpnext-nix/python/erpnext.nix

64 lines
1 KiB
Nix
Raw Permalink Normal View History

2023-05-20 21:36:21 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
, flit-core
2023-05-20 21:36:21 +00:00
# Core dependencies
, pycountry
, unidecode
2024-01-06 16:15:26 +00:00
, barcodenumber
, rapidfuzz
2024-01-06 16:15:26 +00:00
, holidays
# Integration dependencies
, googlemaps
2023-05-20 21:36:21 +00:00
, plaid-python
, 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
}:
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";
version = erpnextVersion;
src = fetchFromGitHub {
owner = "frappe";
repo = pname;
rev = "v${erpnextVersion}";
sha256 = erpnextSrcHash;
};
format = "pyproject";
nativeBuildInputs = [ pythonRelaxDepsHook flit-core ];
pythonRelaxDeps = [
"pycountry"
"rapidfuzz"
"Unidecode"
"python-youtube"
];
2023-05-21 15:51:45 +00:00
propagatedBuildInputs = [
# Core dependencies
pycountry
unidecode
2024-01-06 16:15:26 +00:00
barcodenumber
rapidfuzz
2024-01-06 16:15:26 +00:00
holidays
# Integration dependencies
googlemaps
2023-05-18 13:57:22 +00:00
plaid-python
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
];
}