about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/slimit/default.nix
blob: 40b4f0ca67b04866cf22252d78713faf5013dd3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchFromGitHub
, ply
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "slimit";
  version = "unstable-2018-08-08";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "rspivak";
    repo = "slimit";
    rev = "3533eba9ad5b39f3a015ae6269670022ab310847";
    hash = "sha256-J+8RGENM/+eaTNvoC54XXPP+aWmazlssjnZAY88J/F0=";
  };

  propagatedBuildInputs = [
    ply
  ];

  pythonImportsCheck = [
    "slimit"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  meta = with lib; {
    description = "SlimIt -  a JavaScript minifier/parser in Python";
    mainProgram = "slimit";
    homepage = "https://github.com/rspivak/slimit";
    changelog = "https://github.com/rspivak/slimit/blob/${src.rev}/CHANGES";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}