summary refs log tree commit diff
path: root/pkgs/development/python-modules/leather/default.nix
blob: 99977e7c6a2f2c50998bff1d5dae97717a38e8d8 (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
, fetchPypi
, buildPythonPackage
, six
, cssselect
, lxml
, nose
}:

buildPythonPackage rec {
  pname = "leather";
  version = "0.3.4";

  src = fetchPypi {
    inherit pname version;
    sha256 = "b43e21c8fa46b2679de8449f4d953c06418666dc058ce41055ee8a8d3bb40918";
  };

  propagatedBuildInputs = [ six ];

  nativeCheckInputs = [
    cssselect
    lxml
    nose
  ];

  checkPhase = ''
    runHook preCheck
    nosetests
    runHook postCheck
  '';

  meta = with lib; {
    homepage = "http://leather.rtfd.io";
    description = "Python charting library";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ vrthra ];
  };
}