tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.user-agents: init at 1.1.0
Robert Schütz
8 years ago
9121a973
3eb0ddcf
+51
3 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
ua-parser
default.nix
user-agents
default.nix
top-level
python-packages.nix
+23
pkgs/development/python-modules/ua-parser/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, buildPythonPackage, fetchPypi, pyyaml }:
2
+
3
+
buildPythonPackage rec {
4
+
pname = "ua-parser";
5
+
version = "0.7.3";
6
+
7
+
src = fetchPypi {
8
+
inherit pname version;
9
+
sha256 = "1p8siba0rnb5nsl354fd5fc4751d5ybw7hgnd56yn8dncxdb1bqa";
10
+
};
11
+
12
+
buildInputs = [ pyyaml ];
13
+
14
+
doCheck = false; # requires files from uap-core
15
+
16
+
meta = with stdenv.lib; {
17
+
description = "A python implementation of the UA Parser";
18
+
homepage = https://github.com/ua-parser/uap-python;
19
+
license = licenses.asl20;
20
+
platforms = platforms.unix;
21
+
maintainers = with maintainers; [ dotlambda ];
22
+
};
23
+
}
+24
pkgs/development/python-modules/user-agents/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv, buildPythonPackage, fetchFromGitHub, ua-parser }:
2
+
3
+
buildPythonPackage rec {
4
+
pname = "user-agents";
5
+
version = "1.1.0";
6
+
7
+
# PyPI is missing devices.json
8
+
src = fetchFromGitHub {
9
+
owner = "selwin";
10
+
repo = "python-user-agents";
11
+
rev = "v${version}";
12
+
sha256 = "14kxd780zhp8718xr1z63xffaj3bvxgr4pldh9sv943m4hvi0gw5";
13
+
};
14
+
15
+
propagatedBuildInputs = [ ua-parser ];
16
+
17
+
meta = with stdenv.lib; {
18
+
description = "A Python library to identify devices by parsing user agent strings";
19
+
homepage = https://github.com/selwin/python-user-agents;
20
+
license = licenses.mit;
21
+
platforms = platforms.unix;
22
+
maintainers = with maintainers; [ dotlambda ];
23
+
};
24
+
}
+4
pkgs/top-level/python-packages.nix
···
18134
18135
u-msgpack-python = callPackage ../development/python-modules/u-msgpack-python { };
18136
0
0
18137
ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { };
18138
18139
umalqurra = buildPythonPackage rec {
···
18353
maintainers = with maintainers; [ profpatsch ];
18354
};
18355
};
0
0
18356
18357
pyuv = buildPythonPackage rec {
18358
name = "pyuv-1.2.0";
···
18134
18135
u-msgpack-python = callPackage ../development/python-modules/u-msgpack-python { };
18136
18137
+
ua-parser = callPackage ../development/python-modules/ua-parser { };
18138
+
18139
ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { };
18140
18141
umalqurra = buildPythonPackage rec {
···
18355
maintainers = with maintainers; [ profpatsch ];
18356
};
18357
};
18358
+
18359
+
user-agents = callPackage ../development/python-modules/user-agents { };
18360
18361
pyuv = buildPythonPackage rec {
18362
name = "pyuv-1.2.0";