nixpkgs/pkgs/development/python-modules/jsmin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
658 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
2017-10-15 15:13:32 +01:00
buildPythonPackage rec {
pname = "jsmin";
version = "3.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-10-15 15:13:32 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "c0959a121ef94542e807a674142606f7e90214a2b3d1eb17300244bbb5cc2bfc";
2017-10-15 15:13:32 +01:00
};
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"jsmin/test.py"
];
pythonImportsCheck = [
"jsmin"
];
2017-10-15 15:13:32 +01:00
meta = with lib; {
description = "JavaScript minifier";
homepage = "https://github.com/tikitu/jsmin/";
license = licenses.mit;
maintainers = with maintainers; [ ];
2017-10-15 15:13:32 +01:00
};
}