forked from axeman/erpnext-nix
teutat3s
7763af845d
bench: 5.16.2 -> 5.16.4 https://github.com/frappe/bench/releases/tag/v5.16.4 erpnext: 14.26.0 -> 14.30.6 https://github.com/frappe/erpnext/releases/tag/v14.30.6 Use new relaxed dependency: rapidfuzz frappe: 14.37.0 -> 14.40.3 https://github.com/frappe/frappe/releases/tag/v14.40.3 Add update.sh script to quickly update all versions in pin.nix Sort erpnext dependencies like upstream Update Readme with docs how to use update.sh script
63 lines
995 B
Nix
63 lines
995 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonRelaxDepsHook
|
|
|
|
# Core dependencies
|
|
, pycountry
|
|
, python-stdnum
|
|
, unidecode
|
|
, redisearch
|
|
, rapidfuzz
|
|
|
|
# Integration dependencies
|
|
, gocardless-pro
|
|
, googlemaps
|
|
, plaid-python
|
|
, python-youtube
|
|
, taxjar
|
|
, tweepy
|
|
}:
|
|
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 = "flit";
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
pythonRelaxDeps = [
|
|
"pycountry"
|
|
"rapidfuzz"
|
|
"Unidecode"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
# Core dependencies
|
|
pycountry
|
|
python-stdnum
|
|
unidecode
|
|
redisearch
|
|
rapidfuzz
|
|
|
|
# Integration dependencies
|
|
gocardless-pro
|
|
googlemaps
|
|
plaid-python
|
|
python-youtube
|
|
taxjar
|
|
tweepy
|
|
];
|
|
}
|