depot/third_party/nixpkgs/pkgs/development/python-modules/ghapi/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 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 ];
};
}