diff options
Diffstat (limited to 'pkgs/development/python-modules/pylama/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pylama/default.nix | 143 |
1 files changed, 73 insertions, 70 deletions
diff --git a/pkgs/development/python-modules/pylama/default.nix b/pkgs/development/python-modules/pylama/default.nix index 5e379cefac63..112d9392d80d 100644 --- a/pkgs/development/python-modules/pylama/default.nix +++ b/pkgs/development/python-modules/pylama/default.nix @@ -1,84 +1,87 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, substituteAll -, git -, eradicate -, mccabe -, mypy -, pycodestyle -, pydocstyle -, pyflakes -, vulture -, setuptools -, isort -, pylint -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + substituteAll, + git, + eradicate, + mccabe, + mypy, + pycodestyle, + pydocstyle, + pyflakes, + vulture, + setuptools, + pylint, + pytestCheckHook, }: -let pylama = buildPythonPackage rec { - pname = "pylama"; - version = "8.4.1"; +let + pylama = buildPythonPackage rec { + pname = "pylama"; + version = "8.4.1"; - format = "setuptools"; + format = "setuptools"; - src = fetchFromGitHub { - name = "${pname}-${version}-source"; - owner = "klen"; - repo = "pylama"; - rev = version; - hash = "sha256-WOGtZ412tX3YH42JCd5HIngunluwtMmQrOSUZp23LPU="; - }; + src = fetchFromGitHub { + name = "${pname}-${version}-source"; + owner = "klen"; + repo = "pylama"; + rev = version; + hash = "sha256-WOGtZ412tX3YH42JCd5HIngunluwtMmQrOSUZp23LPU="; + }; - patches = [ - (substituteAll { - src = ./paths.patch; - git = "${lib.getBin git}/bin/git"; - }) - ]; + patches = [ + (substituteAll { + src = ./paths.patch; + git = "${lib.getBin git}/bin/git"; + }) + ]; - propagatedBuildInputs = [ - eradicate - mccabe - mypy - pycodestyle - pydocstyle - pyflakes - setuptools - vulture - ]; + propagatedBuildInputs = [ + eradicate + mccabe + mypy + pycodestyle + pydocstyle + pyflakes + setuptools + vulture + ]; - # escape infinite recursion pylint -> isort -> pylama - doCheck = false; + # escape infinite recursion pylint -> isort -> pylama + doCheck = false; - nativeCheckInputs = [ - pylint - pytestCheckHook - ]; + nativeCheckInputs = [ + pylint + pytestCheckHook + ]; - preCheck = '' - export HOME=$TEMP - ''; + preCheck = '' + export HOME=$TEMP + ''; - disabledTests = [ - "test_quotes" # FIXME package pylama-quotes - "test_radon" # FIXME package radon - ]; + disabledTests = [ + "test_quotes" # FIXME package pylama-quotes + "test_radon" # FIXME package radon + ]; - pythonImportsCheck = [ - "pylama.main" - ]; + pythonImportsCheck = [ "pylama.main" ]; - passthru.tests = { - check = pylama.overridePythonAttrs (_: { doCheck = true; }); - }; + passthru.tests = { + check = pylama.overridePythonAttrs (_: { + doCheck = true; + }); + }; - meta = with lib; { - description = "Code audit tool for python"; - mainProgram = "pylama"; - homepage = "https://github.com/klen/pylama"; - changelog = "https://github.com/klen/pylama/blob/${version}/Changelog"; - license = licenses.mit; - maintainers = with maintainers; [ dotlambda ]; + meta = with lib; { + description = "Code audit tool for python"; + mainProgram = "pylama"; + homepage = "https://github.com/klen/pylama"; + changelog = "https://github.com/klen/pylama/blob/${version}/Changelog"; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; + }; }; -}; in pylama +in +pylama |