depot/third_party/nixpkgs/pkgs/development/python-modules/docstring-parser/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
870 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "docstring-parser";
version = "0.15";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rr-";
repo = "docstring_parser";
rev = "refs/tags/${version}";
hash = "sha256-rnDitZn/xI0I9KMQv6gxzVYevWUymDgyFETjAnRlEHw=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "docstring_parser" ];
meta = with lib; {
description = "Parse Python docstrings in various flavors";
homepage = "https://github.com/rr-/docstring_parser";
changelog = "https://github.com/rr-/docstring_parser/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ SomeoneSerge ];
};
}