1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "psychrolib";
12 version = "2.5.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "psychrometrics";
19 repo = "psychrolib";
20 rev = "refs/tags/${version}";
21 hash = "sha256-OkjoYIakF7NXluNTaJnUHk5cI5t8GnpqrbqHYwnLOts=";
22 };
23
24 sourceRoot = "${src.name}/src/python";
25
26 nativeBuildInputs = [ setuptools ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "psychrolib" ];
32
33 meta = with lib; {
34 description = "Library of psychrometric functions to calculate thermodynamic properties";
35 homepage = "https://github.com/psychrometrics/psychrolib";
36 changelog = "https://github.com/psychrometrics/psychrolib/releases/tag/${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}