depot/third_party/nixpkgs/pkgs/development/python-modules/pylama/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

66 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll
, git
, eradicate
, mccabe
, mypy
, pycodestyle
, pydocstyle
, pyflakes
, vulture
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pylama";
version = "8.0.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "klen";
repo = "pylama";
rev = version;
sha256 = "sha256-Olq/CZ/t1wqACoknAKsvdDKnyLZkxRtHokpu33I3trg=";
};
patches = [
(substituteAll {
src = ./paths.patch;
git = "${lib.getBin git}/bin/git";
})
];
propagatedBuildInputs = [
eradicate
mccabe
mypy
pycodestyle
pydocstyle
pyflakes
vulture
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
"test_pylint" # infinite recursion
"test_quotes" # FIXME package pylama-quotes
"test_radon" # FIXME package radon
];
pythonImportsCheck = [
"pylama.main"
];
meta = with lib; {
description = "Code audit tool for python";
homepage = "https://github.com/klen/pylama";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}