2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mortgage";
|
|
|
|
version = "1.0.5";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlumbroso";
|
|
|
|
repo = "mortgage";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-UwSEKfMQqxpcF+7TF/+qD6l8gEO/qDCUklpZz1Nt/Ok=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mortgage" ];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "Mortgage calculator";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/jlumbroso/mortgage";
|
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
2020-06-02 18:00:15 +00:00
|
|
|
}
|