summary refs log tree commit diff
path: root/pkgs/development/python-modules/mf2py/default.nix
blob: 110da8e60f8f67ef04e4d776580d3670f392e47e (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
41
42
43
{ lib
, buildPythonPackage
, fetchFromGitHub
, beautifulsoup4
, html5lib
, requests
, lxml
, mock
, nose
}:

buildPythonPackage rec {
  pname = "mf2py";
  version = "1.1.2";

  src = fetchFromGitHub {
    owner = "microformats";
    repo = "mf2py";
    rev = version;
    sha256 = "sha256-9pAD/eCmc/l7LGmKixDhZy3hhj1jCmcyo9wbqgtz/wI=";
  };

  propagatedBuildInputs = [
    beautifulsoup4
    html5lib
    requests
  ];

  checkInputs = [
    lxml
    mock
    nose
  ];

  pythonImportsCheck = [ "mf2py" ];

  meta = with lib; {
    description = "Microformats2 parser written in Python";
    homepage = "https://microformats.org/wiki/mf2py";
    license = licenses.mit;
    maintainers = with maintainers; [ ambroisie ];
  };
}