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

38 lines
820 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mktestdocs";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "koaning";
repo = "mktestdocs";
rev = "refs/tags/${version}";
hash = "sha256-snlt6SDiDYr04b2b2NgBC/1IBffpei034vFx3fnYUOc=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "mktestdocs" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Run pytest against markdown files/docstrings";
homepage = "https://github.com/koaning/mktestdocs";
changelog = "https://github.com/koaning/mktestdocs/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}