nixpkgs/pkgs/development/python-modules/ghapi/default.nix
2024-09-02 08:23:57 +02:00

45 lines
860 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fastcore,
packaging,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "ghapi";
version = "1.0.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "fastai";
repo = "ghapi";
rev = "refs/tags/${version}";
hash = "sha256-ii19wuFAxMiGce37TNXRNSdvMcGWQjCfPukeqxySYnc=";
};
build-system = [ setuptools ];
dependencies = [
fastcore
packaging
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "ghapi" ];
meta = with lib; {
description = "Python interface to GitHub's API";
homepage = "https://github.com/fastai/ghapi";
changelog = "https://github.com/fastai/ghapi/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}