mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
43 lines
769 B
Nix
43 lines
769 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, fastcore
|
|
, packaging
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ghapi";
|
|
version = "1.0.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fastai";
|
|
repo = "ghapi";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-nH3OciLhet4620WAEmm8mUAmlnpniyIsF2oIzqbZ7FI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
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";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|