python3Packages.jsbeautifier: modernize and migrate to pyproject
This commit is contained in:
@@ -5,19 +5,21 @@
|
||||
editorconfig,
|
||||
pytestCheckHook,
|
||||
six,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "jsbeautifier";
|
||||
version = "1.15.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-W7GNnvuTMdglc1+8U2DujxqsXlJ4AEKAOUOqf4VPdZI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
dependencies = [
|
||||
editorconfig
|
||||
six
|
||||
];
|
||||
@@ -32,8 +34,8 @@ buildPythonPackage rec {
|
||||
description = "JavaScript unobfuscator and beautifier";
|
||||
mainProgram = "js-beautify";
|
||||
homepage = "http://jsbeautifier.org";
|
||||
changelog = "https://github.com/beautify-web/js-beautify/blob/v${version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/beautify-web/js-beautify/blob/v${finalAttrs.version}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ apeyroux ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user