pythonPackages.user-agents: init at 1.1.0

This commit is contained in:
Robert Schütz
2018-01-13 23:01:06 +01:00
parent 3eb0ddcfc4
commit 9121a97366
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, ua-parser }:
buildPythonPackage rec {
pname = "user-agents";
version = "1.1.0";
# PyPI is missing devices.json
src = fetchFromGitHub {
owner = "selwin";
repo = "python-user-agents";
rev = "v${version}";
sha256 = "14kxd780zhp8718xr1z63xffaj3bvxgr4pldh9sv943m4hvi0gw5";
};
propagatedBuildInputs = [ ua-parser ];
meta = with stdenv.lib; {
description = "A Python library to identify devices by parsing user agent strings";
homepage = https://github.com/selwin/python-user-agents;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ dotlambda ];
};
}