depot/third_party/nixpkgs/pkgs/development/python-modules/docstring-parser/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

41 lines
778 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "docstring-parser";
version = "0.14.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rr-";
repo = "docstring_parser";
rev = "${version}";
hash = "sha256-NIijq+QR0panVCGDEQrTlkAvHfIexwS0PxFikglxd74=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"docstring_parser"
];
meta = with lib; {
description = "Parse Python docstrings in various flavors";
homepage = "https://github.com/rr-/docstring_parser";
license = licenses.mit;
maintainers = with maintainers; [ SomeoneSerge ];
};
}