pythonPackages.user-agents: init at 1.1.0
This commit is contained in:
parent
3eb0ddcfc4
commit
9121a97366
23
pkgs/development/python-modules/ua-parser/default.nix
Normal file
23
pkgs/development/python-modules/ua-parser/default.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pyyaml }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ua-parser";
|
||||
version = "0.7.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1p8siba0rnb5nsl354fd5fc4751d5ybw7hgnd56yn8dncxdb1bqa";
|
||||
};
|
||||
|
||||
buildInputs = [ pyyaml ];
|
||||
|
||||
doCheck = false; # requires files from uap-core
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A python implementation of the UA Parser";
|
||||
homepage = https://github.com/ua-parser/uap-python;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
24
pkgs/development/python-modules/user-agents/default.nix
Normal file
24
pkgs/development/python-modules/user-agents/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -18134,6 +18134,8 @@ in {
|
||||
|
||||
u-msgpack-python = callPackage ../development/python-modules/u-msgpack-python { };
|
||||
|
||||
ua-parser = callPackage ../development/python-modules/ua-parser { };
|
||||
|
||||
ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { };
|
||||
|
||||
umalqurra = buildPythonPackage rec {
|
||||
@ -18354,6 +18356,8 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
user-agents = callPackage ../development/python-modules/user-agents { };
|
||||
|
||||
pyuv = buildPythonPackage rec {
|
||||
name = "pyuv-1.2.0";
|
||||
disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49
|
||||
|
Loading…
Reference in New Issue
Block a user