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