forked from axeman/erpnext-nix
57 lines
875 B
Nix
57 lines
875 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
|
|
];
|
|
}
|