about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/user-agents/default.nix
blob: 07cbdc57ef9e446176904e968ffc5ad9186f0a40 (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
{ 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 ];

  doCheck = false; # some tests fail due to ua-parser bump to 0.8.0

  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 ];
  };
}