nixpkgs/pkgs/development/python-modules/fyta-cli/default.nix
2024-04-11 20:15:25 +00:00

41 lines
842 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pythonOlder,
}:
buildPythonPackage rec {
pname = "fyta-cli";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dontinelli";
repo = "fyta_cli";
rev = "refs/tags/v${version}";
hash = "sha256-ThxC+s0vkvFQw9FKMWO+cHJB1ci+USdxQa4PRqHrKLM=";
};
build-system = [ hatchling ];
dependencies = [ aiohttp ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "fyta_cli" ];
meta = with lib; {
description = "Module to access the FYTA API";
homepage = "https://github.com/dontinelli/fyta_cli";
changelog = "https://github.com/dontinelli/fyta_cli/releases/tag/v${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}