mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
40 lines
912 B
Nix
40 lines
912 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "psychrolib";
|
|
version = "2.5.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "psychrometrics";
|
|
repo = "psychrolib";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-OkjoYIakF7NXluNTaJnUHk5cI5t8GnpqrbqHYwnLOts=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/src/python";
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "psychrolib" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library of psychrometric functions to calculate thermodynamic properties";
|
|
homepage = "https://github.com/psychrometrics/psychrolib";
|
|
changelog = "https://github.com/psychrometrics/psychrolib/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|