2023-05-20 21:36:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-07-17 19:10:27 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-05-20 21:36:21 +00:00
|
|
|
|
2023-07-17 19:10:27 +00:00
|
|
|
# Core dependencies
|
|
|
|
, pycountry
|
|
|
|
, python-stdnum
|
|
|
|
, unidecode
|
|
|
|
, redisearch
|
|
|
|
, rapidfuzz
|
|
|
|
|
|
|
|
# Integration dependencies
|
2023-05-20 21:36:21 +00:00
|
|
|
, gocardless-pro
|
2023-07-17 19:10:27 +00:00
|
|
|
, googlemaps
|
2023-05-20 21:36:21 +00:00
|
|
|
, plaid-python
|
|
|
|
, python-youtube
|
2023-07-17 19:10:27 +00:00
|
|
|
, taxjar
|
2023-05-20 21:36:21 +00:00
|
|
|
, tweepy
|
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
|
|
|
};
|
|
|
|
|
2023-05-18 15:49:23 +00:00
|
|
|
format = "flit";
|
2023-06-05 17:19:43 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pycountry"
|
2023-07-17 19:10:27 +00:00
|
|
|
"rapidfuzz"
|
2023-06-05 17:19:43 +00:00
|
|
|
"Unidecode"
|
|
|
|
];
|
|
|
|
|
2023-05-21 15:51:45 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-17 19:10:27 +00:00
|
|
|
# Core dependencies
|
|
|
|
pycountry
|
|
|
|
python-stdnum
|
|
|
|
unidecode
|
|
|
|
redisearch
|
|
|
|
rapidfuzz
|
|
|
|
|
|
|
|
# Integration dependencies
|
2023-05-18 13:57:22 +00:00
|
|
|
gocardless-pro
|
2023-07-17 19:10:27 +00:00
|
|
|
googlemaps
|
2023-05-18 13:57:22 +00:00
|
|
|
plaid-python
|
|
|
|
python-youtube
|
2023-07-17 19:10:27 +00:00
|
|
|
taxjar
|
2023-05-18 13:57:22 +00:00
|
|
|
tweepy
|
|
|
|
];
|
|
|
|
}
|