nixpkgs/pkgs/development/python-modules/docstring-parser/default.nix
2021-12-31 18:24:13 +02:00

28 lines
719 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, setuptools-scm
, wheel
, pytest
}: buildPythonPackage rec {
pname = "docstring-parser";
version = "0.12";
src = fetchFromGitHub {
owner = "rr-";
repo = "docstring_parser";
rev = "${version}";
sha256 = "sha256-hQuPJQrGvDs4dJrMLSR4sSnqy45xrF2ufinBG+azuCg=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ pytest setuptools wheel ];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
meta = with lib; {
description = "Parse Python docstrings in various flavors. ";
homepage = "https://github.com/rr-/docstring_parser";
license = licenses.mit;
maintainers = with maintainers; [ SomeoneSerge ];
};
}