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