summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsmin
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-01-23 11:47:02 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2022-01-23 12:21:03 +0100
commit5d861604cf8c0967bf9173bae144e385ef5504c7 (patch)
tree32ba9da85bf85e1f68706896354237578580a54c /pkgs/development/python-modules/jsmin
parentc4bb9084aa159f029ae9e35edb580d22f0ed5fdb (diff)
downloadnixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.tar
nixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.tar.gz
nixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.tar.bz2
nixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.tar.lz
nixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.tar.xz
nixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.tar.zst
nixpkgs-5d861604cf8c0967bf9173bae144e385ef5504c7.zip
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.nix23
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 3160af6f88f..58759393bbe 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; [ ];
   };
 }