diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-01-23 11:47:02 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-01-23 12:21:03 +0100 |
commit | 5d861604cf8c0967bf9173bae144e385ef5504c7 (patch) | |
tree | 32ba9da85bf85e1f68706896354237578580a54c /pkgs/development/python-modules/jsmin | |
parent | c4bb9084aa159f029ae9e35edb580d22f0ed5fdb (diff) |
python3Packages.jsmin: add pythonImportsCheck
python3Packages.jsmin: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/jsmin')
-rw-r--r-- | pkgs/development/python-modules/jsmin/default.nix | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/jsmin/default.nix b/pkgs/development/python-modules/jsmin/default.nix index 3160af6f88f47..58759393bbed2 100644 --- a/pkgs/development/python-modules/jsmin/default.nix +++ b/pkgs/development/python-modules/jsmin/default.nix @@ -1,17 +1,38 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib +, buildPythonPackage +, fetchPypi +, pytestCheckHook +, pythonOlder +}: buildPythonPackage rec { pname = "jsmin"; version = "3.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; sha256 = "c0959a121ef94542e807a674142606f7e90214a2b3d1eb17300244bbb5cc2bfc"; }; + checkInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "jsmin/test.py" + ]; + + pythonImportsCheck = [ + "jsmin" + ]; + meta = with lib; { description = "JavaScript minifier"; homepage = "https://github.com/tikitu/jsmin/"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; } |