1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 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 tag = version; 20 hash = "sha256-OkjoYIakF7NXluNTaJnUHk5cI5t8GnpqrbqHYwnLOts="; 21 }; 22 23 sourceRoot = "${src.name}/src/python"; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 # Module has no tests 28 doCheck = false; 29 30 pythonImportsCheck = [ "psychrolib" ]; 31 32 meta = with lib; { 33 description = "Library of psychrometric functions to calculate thermodynamic properties"; 34 homepage = "https://github.com/psychrometrics/psychrolib"; 35 changelog = "https://github.com/psychrometrics/psychrolib/releases/tag/${version}"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}