Skip to content

Commit

Permalink
pythonPackages.slimit: init at 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schütz committed Mar 20, 2018
1 parent ba74cf4 commit 127045d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/slimit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, fetchpatch, python, ply }:

buildPythonPackage rec {
pname = "slimit";
version = "0.8.1";

src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "f433dcef899f166b207b67d91d3f7344659cb33b8259818f084167244e17720b";
};

# Some patches from https://github.com/rspivak/slimit/pull/65
patches = lib.optionals isPy3k [
(fetchpatch {
url = https://github.com/lelit/slimit/commit/a61e12d88cc123c4b7af2abef21d06fd182e561a.patch;
sha256 = "0lbhvkgn4l8g9fwvb81rfwjx7hsaq2pid8a5gczdk1ba65wfvdq5";
})
(fetchpatch {
url = https://github.com/lelit/slimit/commit/e8331659fb89e8a4613c5e4e338c877fead9c551.patch;
sha256 = "1hv4ysn09c9bfd5bxhhrp51hsi81hdidmx0y7zcrjjiich9ayrni";
})
];

propagatedBuildInputs = [ ply ];

checkPhase = ''
${python.interpreter} -m unittest discover -s src/slimit
'';

meta = with lib; {
description = "JavaScript minifier";
homepage = http://slimit.readthedocs.org/;
license = licenses.mit;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15021,6 +15021,8 @@ in {
};
};

slimit = callPackage ../development/python-modules/slimit { };

slob = buildPythonPackage rec {
name = "slob-unstable-2016-11-03";

Expand Down

0 comments on commit 127045d

Please sign in to comment.