41 lines
856 B
Nix
41 lines
856 B
Nix
|
{
|
||
|
lib,
|
||
|
aiohttp,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
setuptools,
|
||
|
pythonOlder,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "monzopy";
|
||
|
version = "1.4.2";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.10";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "JakeMartin-ICL";
|
||
|
repo = "monzopy";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-yO0mdqdoRdyl6BDT1vBuTh83zECck3atQtdtWhQCh9s=";
|
||
|
};
|
||
|
|
||
|
build-system = [ setuptools ];
|
||
|
|
||
|
dependencies = [ aiohttp ];
|
||
|
|
||
|
# Module has no tests
|
||
|
doCheck = false;
|
||
|
|
||
|
pythonImportsCheck = [ "monzopy" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Module to work with the Monzo API";
|
||
|
homepage = "https://github.com/JakeMartin-ICL/monzopy";
|
||
|
changelog = "https://github.com/JakeMartin-ICL/monzopy/releases/tag/v${version}";
|
||
|
license = licenses.gpl3Only;
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|