1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 requests,
7 beautifulsoup4,
8 feather-format,
9 joblib,
10 openpyxl,
11 pandas,
12 pyarrow,
13 xlrd,
14}:
15
16buildPythonPackage rec {
17 pname = "nemosis";
18 version = "3.8.1";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "UNSW-CEEM";
23 repo = "NEMOSIS";
24 tag = "v${version}";
25 hash = "sha256-4Bb9yZUfwkFQVNSVGtg3APXPovos23oHAx4v+6aa7MM=";
26 };
27
28 build-system = [ hatchling ];
29 dependencies = [
30 beautifulsoup4
31 feather-format
32 joblib
33 openpyxl
34 pandas
35 pyarrow
36 requests
37 xlrd
38 ];
39
40 pythonImportsCheck = [ "nemosis" ];
41 doCheck = false; # require network and patching
42
43 meta = {
44 description = "Downloader of historical data published by the Australian Energy Market Operator";
45 homepage = "https://github.com/UNSW-CEEM/NEMOSIS";
46 license = lib.licenses.gpl3Only;
47 maintainers = with lib.maintainers; [ sigmanificient ];
48 };
49}