diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-03-20 10:31:35 +0100 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-03-20 10:59:37 +0100 |
commit | 127045d8e0a9481084649567c1520468582e3f33 (patch) | |
tree | f3c4e479cc67652d1939d03525298f18c899408e /pkgs/development/python-modules/slimit | |
parent | ba74cf4d5ceb3aa516af2a10d2ee86b79ff75ac1 (diff) | |
download | nixlib-127045d8e0a9481084649567c1520468582e3f33.tar nixlib-127045d8e0a9481084649567c1520468582e3f33.tar.gz nixlib-127045d8e0a9481084649567c1520468582e3f33.tar.bz2 nixlib-127045d8e0a9481084649567c1520468582e3f33.tar.lz nixlib-127045d8e0a9481084649567c1520468582e3f33.tar.xz nixlib-127045d8e0a9481084649567c1520468582e3f33.tar.zst nixlib-127045d8e0a9481084649567c1520468582e3f33.zip |
pythonPackages.slimit: init at 0.8.1
Diffstat (limited to 'pkgs/development/python-modules/slimit')
-rw-r--r-- | pkgs/development/python-modules/slimit/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/slimit/default.nix b/pkgs/development/python-modules/slimit/default.nix new file mode 100644 index 000000000000..ff4c63891e55 --- /dev/null +++ b/pkgs/development/python-modules/slimit/default.nix @@ -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; + }; +} |