erpnext-nix/python/erpnext.nix

64 lines
1,022 B
Nix
Raw Normal View History

2023-05-20 21:36:21 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
, flit-core
2023-05-20 21:36:21 +00:00
# Core dependencies
, pycountry
, python-stdnum
, unidecode
, redisearch
, rapidfuzz
# Integration dependencies
2023-05-20 21:36:21 +00:00
, gocardless-pro
, googlemaps
2023-05-20 21:36:21 +00:00
, plaid-python
, python-youtube
, taxjar
2023-05-20 21:36:21 +00:00
, tweepy
2023-05-18 13:57:22 +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";
version = erpnextVersion;
src = fetchFromGitHub {
owner = "frappe";
repo = pname;
rev = "v${erpnextVersion}";
sha256 = erpnextSrcHash;
};
format = "pyproject";
nativeBuildInputs = [ pythonRelaxDepsHook flit-core ];
pythonRelaxDeps = [
"pycountry"
"rapidfuzz"
"Unidecode"
];
2023-05-21 15:51:45 +00:00
propagatedBuildInputs = [
# Core dependencies
pycountry
python-stdnum
unidecode
redisearch
rapidfuzz
# Integration dependencies
2023-05-18 13:57:22 +00:00
gocardless-pro
googlemaps
2023-05-18 13:57:22 +00:00
plaid-python
python-youtube
taxjar
2023-05-18 13:57:22 +00:00
tweepy
];
}