about summary refs log tree commit diff
path: root/pkgs/development/python-modules/httpagentparser/default.nix
blob: fae412075bc12185f6be763b93289202235cd86f (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
{ lib
, buildPythonPackage
, fetchPypi
}:

buildPythonPackage rec {
  pname = "httpagentparser";
  version = "1.9.3";

  # Github version does not have any release tags
  src = fetchPypi {
    inherit pname version;
    sha256 = "1x20j4gyx4vfsxs3bx8qcbdhq7n34gjr8gd01qlri96wpmn4c3rp";
  };

  # PyPi version does not include test directory
  doCheck = false;

  pythonImportsCheck = [ "httpagentparser" ];

  meta = with lib; {
    homepage = "https://github.com/shon/httpagentparser";
    description = "Extracts OS Browser etc information from http user agent string";
    license = licenses.mit;
    maintainers = with maintainers; [ gador ];
  };
}