depot/third_party/nixpkgs/pkgs/development/python-modules/docformatter/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

42 lines
770 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, untokenize
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "docformatter";
version = "1.5.0";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-GSfsM6sPSLOIH0YJYFVTB3SigI62/ps51mA2iZ7GOEg=";
};
propagatedBuildInputs = [
untokenize
];
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "docformatter" ];
meta = {
description = "Formats docstrings to follow PEP 257";
homepage = "https://github.com/myint/docformatter";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}