python3Packages.jsbeautifier: switch to pytestCheckHook, add pythonImportsCheck
This commit is contained in:
parent
b69780ecdb
commit
db282610c6
1 changed files with 31 additions and 7 deletions
|
@ -1,21 +1,45 @@
|
||||||
{ lib, fetchPypi, buildPythonApplication, editorconfig, pytest, six }:
|
{ lib
|
||||||
|
, fetchPypi
|
||||||
|
, buildPythonApplication
|
||||||
|
, editorconfig
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "jsbeautifier";
|
pname = "jsbeautifier";
|
||||||
version = "1.14.1";
|
version = "1.14.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
propagatedBuildInputs = [ six editorconfig ];
|
disabled = pythonOlder "3.7";
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-ZfT3dLDkywIutJmbRc1ndi92Qnxe80CCq6VLwdjvI+s=";
|
hash = "sha256-ZfT3dLDkywIutJmbRc1ndi92Qnxe80CCq6VLwdjvI+s=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
editorconfig
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"jsbeautifier"
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"jsbeautifier/tests/testindentation.py"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://jsbeautifier.org";
|
description = "JavaScript unobfuscator and beautifier";
|
||||||
description = "JavaScript unobfuscator and beautifier.";
|
homepage = "http://jsbeautifier.org";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ apeyroux ];
|
maintainers = with maintainers; [ apeyroux ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue