depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-pytest/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

45 lines
809 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytest
, sphinx
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sphinx-pytest";
version = "0.0.3";
src = fetchFromGitHub {
owner = "chrisjsewell";
repo = pname;
rev = "v${version}";
sha256 = "sha256-vRHPq6BAuhn5QvHG2BGen9v6ezA3RgFVtustsNxU+n8=";
};
format = "flit";
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
sphinx
];
buildInputs = [
pytest
];
pythonImportsCheck = [ "sphinx_pytest" ];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Helpful pytest fixtures for Sphinx extensions";
homepage = "https://github.com/chrisjsewell/sphinx-pytest";
license = licenses.mit;
maintainers = with maintainers; [ loicreynier ];
};
}