erpnext-nix/python/erpnext.nix
2023-06-12 15:28:17 +02:00

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
];
}