nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python-dateutil,
6 requests,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "sunweg";
12 version = "3.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "rokam";
17 repo = "sunweg";
18 tag = version;
19 hash = "sha256-T67eH5WjS7J2pcNjq9psNmD4MwMfH+HRvk9llqI3FoQ=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 propagatedBuildInputs = [
25 python-dateutil
26 requests
27 ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "sunweg" ];
33
34 meta = {
35 description = "Module to access the WEG solar energy platform";
36 homepage = "https://github.com/rokam/sunweg";
37 changelog = "https://github.com/rokam/sunweg/releases/tag/${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}