Merge pull request #155217 from gador/httpagentparser-init

This commit is contained in:
Sandro 2022-01-18 19:19:32 +01:00 committed by GitHub
commit 1d3ab9fedf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "httpagentparser";
version = "1.9.1";
src = fetchPypi {
inherit pname version;
sha256 = "73Y9MZk912GCWs7myLNL4yuVzxZ10cc8PNNfnlKDGyY=";
};
# 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 ];
};
}

View file

@ -3731,6 +3731,8 @@ in {
httmock = callPackage ../development/python-modules/httmock { };
httpagentparser = callPackage ../development/python-modules/httpagentparser { };
httpauth = callPackage ../development/python-modules/httpauth { };
httpbin = callPackage ../development/python-modules/httpbin { };