mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-24 06:08:16 +03:00
Merge pull request #312722 from fabaff/mortgage-bump
python311Packages.mortgage: refactor
This commit is contained in:
commit
339ab0469b
@ -1,31 +1,36 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mortgage";
|
||||
version = "1.0.5";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "18fcb356c631e9cc27fa7019f6ff6021707e34b9ce3a3b7dc815661288709921";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jlumbroso";
|
||||
repo = "mortgage";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-UwSEKfMQqxpcF+7TF/+qD6l8gEO/qDCUklpZz1Nt/Ok=";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
doCheck = false; # No tests in sdist
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
pythonImportsCheck = [ "mortgage" ];
|
||||
|
||||
meta = {
|
||||
meta = with lib; {
|
||||
description = "Mortgage calculator";
|
||||
license = lib.licenses.mit;
|
||||
homepage = "https://github.com/jlumbroso/mortgage";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user