1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "meteocalc";
10 version = "1.1.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "malexer";
17 repo = pname;
18 rev = version;
19 hash = "sha256-WuIW6hROQkjMfbCLUouECIrp4s6oCd2/N79hsrTbVTk=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "meteocalc"
28 ];
29
30 meta = with lib; {
31 description = "Module for calculation of meteorological variables";
32 homepage = "https://github.com/malexer/meteocalc";
33 license = licenses.mit;
34 maintainers = with maintainers; [ fab ];
35 };
36}