erpnext-nix/python/erpnext.nix

63 lines
995 B
Nix
Raw Normal View History

2023-05-20 21:36:21 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonRelaxDepsHook
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;
};
2023-05-18 15:49:23 +00:00
format = "flit";
nativeBuildInputs = [ pythonRelaxDepsHook ];
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
];
}