erpnext-nix/python/erpnext.nix
teutat3s cb9630c787
wip: use nixos-unstable
update frappe
update erpnext
refactor versions
2023-06-05 19:19:43 +02:00

63 lines
995 B
Nix

{ lib
, buildPythonPackage
, pythonRelaxDepsHook
, fetchFromGitHub
, taxjar
, gocardless-pro
, plaid-python
, unidecode
, pycountry
, python-youtube
, tweepy
, redisearch
, googlemaps
, python-stdnum
, frappe
, bench
}:
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}";
hash = erpnextSrcHash;
};
format = "flit";
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRelaxDeps = [
"pycountry"
"Unidecode"
];
propagatedBuildInputs = [
taxjar
gocardless-pro
plaid-python
unidecode
pycountry
python-youtube
tweepy
redisearch
googlemaps
python-stdnum
frappe
];
#nativeCheckInputs = [
# bench
#];
#checkPhase = ''
# bench --site test_site run-tests --app erpnext
#'';
}