mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
41 lines
898 B
Nix
41 lines
898 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pdm-backend,
|
|
pkgs,
|
|
pytest,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "pytest-gitconfig";
|
|
version = "0.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noirbizarre";
|
|
repo = "pytest-gitconfig";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-z3W9AL74i47k/eYCbFMn3foVaD2h7lFrGzyOnbDwkyc=";
|
|
};
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
buildInput = [ pytest ];
|
|
|
|
nativeCheckInputs = [
|
|
pkgs.gitMinimal
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pytest_gitconfig" ];
|
|
|
|
meta = {
|
|
description = "Pytest gitconfig sandbox";
|
|
homepage = "https://github.com/noirbizarre/pytest-gitconfig";
|
|
changelog = "https://github.com/noirbizarre/pytest-gitconfig/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|