{ lib , buildPythonPackage , fetchFromGitHub , pythonRelaxDepsHook , flit-core # Core dependencies , pycountry , unidecode , barcodenumber , rapidfuzz , holidays # Integration dependencies , googlemaps , plaid-python , python-stdnum , python-youtube , pypng }: let pinData = import ../srcs/pin.nix; inherit (pinData) erpnextVersion; inherit (pinData.hashes) erpnextSrcHash; in 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" ]; propagatedBuildInputs = [ # Core dependencies pycountry unidecode barcodenumber rapidfuzz holidays # Integration dependencies googlemaps plaid-python python-stdnum python-youtube # used for QR code generation pypng ]; }