nixpkgs/pkgs/development/python-modules/docformatter/default.nix
2022-05-26 20:38:28 +00:00

38 lines
708 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, untokenize
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "docformatter";
version = "1.4";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "064e6d81f04ac96bc0d176cbaae953a0332482b22d3ad70d47c8a7f2732eef6f";
};
propagatedBuildInputs = [
untokenize
];
checkInputs = [
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 ];
};
}