mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
style50: init at 2.10.4 (#412428)
This commit is contained in:
commit
b5dfd2ab2c
1 changed files with 68 additions and 0 deletions
68
pkgs/by-name/st/style50/package.nix
Normal file
68
pkgs/by-name/st/style50/package.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
libclang,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "style50";
|
||||
version = "2.10.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cs50";
|
||||
repo = "style50";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-59V3QZMYH5edBXv1GNdoaQxerDfKmLKUZ7VL3cvDvuE=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
python3Packages.setuptools
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
autopep8
|
||||
icdiff
|
||||
jinja2
|
||||
jsbeautifier
|
||||
pycodestyle
|
||||
python-magic
|
||||
termcolor
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
libclang # clang-format
|
||||
]
|
||||
})
|
||||
'';
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"pycodestyle"
|
||||
];
|
||||
|
||||
pythonRemoveDeps = [
|
||||
"clang-format"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "style50" ];
|
||||
|
||||
nativeCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
# no python tests
|
||||
|
||||
meta = {
|
||||
description = "Tool for checking code against the CS50 style guide";
|
||||
homepage = "https://cs50.readthedocs.io/style50/";
|
||||
downloadPage = "https://github.com/cs50/style50";
|
||||
changelog = "https://github.com/cs50/style50/releases/tag/v${version}";
|
||||
license = lib.licenses.gpl3Only;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
||||
mainProgram = "style50";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue