Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 36 lines 847 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "psychrolib"; 10 version = "2.5.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "psychrometrics"; 15 repo = "psychrolib"; 16 tag = version; 17 hash = "sha256-OkjoYIakF7NXluNTaJnUHk5cI5t8GnpqrbqHYwnLOts="; 18 }; 19 20 sourceRoot = "${src.name}/src/python"; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 # Module has no tests 25 doCheck = false; 26 27 pythonImportsCheck = [ "psychrolib" ]; 28 29 meta = { 30 description = "Library of psychrometric functions to calculate thermodynamic properties"; 31 homepage = "https://github.com/psychrometrics/psychrolib"; 32 changelog = "https://github.com/psychrometrics/psychrolib/releases/tag/${version}"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ fab ]; 35 }; 36}